Commit Graph

11315 Commits

Author SHA1 Message Date
Brad Ebinger 85af7f48e3 Fix repo hook error upon upload
Some lines of the presubmit message are coming back as
bytes instead of a string using pyton3. So, ensure
each line is a str before checking contents.

Also, send code 77 back to ensure that the error message
is actually printed

Test: repo upload
Change-Id: Ieecd6228318b3001098ac45e4767b8bf46826387
2021-04-29 20:36:47 +00:00
Treehugger Robot 9ee28de248 Merge "Check for null call id in ConnectionServiceWrapper" 2021-04-26 19:36:57 +00:00
Bill Yi 60887bbfa3 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I39f2ae8d0b550fb977c4700d82754d0e68147330
2021-04-22 10:03:09 -07:00
Hall Liu 2c2241a05f Check for null call id in ConnectionServiceWrapper
Abort the connection attempt if the call ID is null. See full analysis
in attached bug.

Fixes: 169827867
Test: lol
Change-Id: I53318d8000f1175935fa4b969a65c8b957f41391
2021-04-21 20:56:58 +00:00
Treehugger Robot cf8ff32bea Merge "Prevent Telecom from holding focus indefinitely" 2021-04-21 01:00:09 +00:00
Hall Liu 0803e30b5d Prevent Telecom from holding focus indefinitely
In certain churny conditions, CARSM may receive a notification that says
that we're releasing focus after it's transitioned into a quiescent
state. In these cases, notify CAMSM that all audio operations are
complete (there's nothing to do anyway), since CAMSM waits for
confirmation that CARSM is done before actually releasing focus.

Fixes: 184238880
Test: manual
Change-Id: I88a457394f9a2371278bd1001a9f044bcd651495
2021-04-20 15:22:27 -07:00
Hall Liu ff43d889e7 Merge "Fix race condition in CARSM unit tests" 2021-04-20 20:19:16 +00:00
Hall Liu 2a81f7cc18 Merge "Fix py3 error in aosp checker" 2021-04-19 22:29:31 +00:00
Hall Liu 6fcd956e57 Fix py3 error in aosp checker
Test: repo upload
Change-Id: Ib871ad60c14aa5ce811c94f87e1e38823c6d9615
2021-04-19 15:25:30 -07:00
Hall Liu 514e4dbeae Fix race condition in CARSM unit tests
Fixes: 185703290
Test: atest CallAudioRouteStateMachineTest
Change-Id: I5b2a6d9837c49cdcf7c98657d943380adc98bead
2021-04-19 15:20:38 -07:00
Hall Liu a40bcd1434 Merge "Unset conference state when dng_cnf removed" 2021-03-31 22:38:53 +00:00
Hall Liu 1299625214 Merge "Set PendingIntent in RespondViaSmsManager as immutable" 2021-03-30 19:14:41 +00:00
Hall Liu 6d9b9e21bb Set PendingIntent in RespondViaSmsManager as immutable
Fixes: 181278873
Test: manual
Change-Id: I7d535a965e37887be7533a7d85ba5f11299f1ba2
2021-03-29 17:13:22 -07:00
Nazanin 4b8b1f52f8 add inCall tone for in call quality notification
Bug: 180435684
Test: none
Change-Id: I0deb572c717017210f4838b09a9f977550882ee3
2021-03-08 12:34:55 -08:00
Hall Liu 15ce91ef90 Merge "Fix Telecom PendingIntent mutability, logging fixes" 2021-03-08 19:05:46 +00:00
Hall Liu 34d5a951b5 Merge "Play tone when RTT upgrade received" 2021-03-06 01:30:49 +00:00
Hall Liu 3f1828f8f1 Play tone when RTT upgrade received
When the device receives an RTT upgrade request from the remote user, or
when the IMS stack auto-upgrades an RTT call mid-call, play a tone to
alert the user.

Fixes: 171587427
Test: manual

Change-Id: Ib21b17d0209dde20d048b72e8d0a626e7c4c8e33
Merged-In: Ib21b17d0209dde20d048b72e8d0a626e7c4c8e33
2021-03-05 15:22:45 -08:00
Hall Liu ec798b52f7 Fix Telecom PendingIntent mutability, logging fixes
Fix a non-marked PendingIntent in Telecom that's been causing crashes
during emergency call CTS.

Add some logging to reveal the crash logs that were being previously
swallowed by a completable future.

Also force unbind all incallservices during the special testing cleanup
command to further avoid cascading fails

Bug: 181057509
Test: atest EmergencyCallTests
Change-Id: I8bf6189535689d6c357c679f4de28915bcdbcf58
2021-03-05 12:02:19 -08:00
Xin Li d174bcfe80 Merge RQ2A.210305.007
Bug: 180401296
Merged-In: I63cde3ff5a1af9a9a9d89e35f3ed355336d50f01
Change-Id: I12fc160557beda52d91495d8b47014ffaf680272
2021-03-03 09:12:25 -08:00
Tyler Gunn 9930c57cd0 Merge "Call Diagnostic Service implementation" am: f4f7063e45
Original change: https://android-review.googlesource.com/c/platform/packages/services/Telecomm/+/1604772

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I63cde3ff5a1af9a9a9d89e35f3ed355336d50f01
2021-03-02 22:11:20 +00:00
Tyler Gunn f4f7063e45 Merge "Call Diagnostic Service implementation" 2021-03-02 21:33:02 +00:00
Shuo Qian 77b01841f1 Rename API for Call Companion InCallService API Review am: 0e44b583b0
Original change: https://android-review.googlesource.com/c/platform/packages/services/Telecomm/+/1607477

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib0e4c24359da2dcf771d60de544aa68e6898134d
2021-03-01 18:57:22 +00:00
Tyler Gunn 16f5dd95f3 Call Diagnostic Service implementation
Implement binding to Call Diagnostic Service from Telecom and passing
of relevant signals to the bound CDS.

Test: Added CTS test suite.
Test: Manual testing using test implementation in the Telecom test app.
Bug: 163085177
Change-Id: I65f6d749bdeeefae78946a567a09f5264fd1fe95
2021-02-26 09:57:34 -08:00
Shuo Qian 0e44b583b0 Rename API for Call Companion InCallService API Review
Test: cts
Bug: 179116441
Change-Id: Icd5de48fa5d338f7571f1127706fd11c5e8accc2
Merged-In: Icd5de48fa5d338f7571f1127706fd11c5e8accc2
(cherry picked from commit e90d9de602)
2021-02-25 20:41:47 +00:00
Xin Li 8c95afd563 Merge ab/7061308 into stage.
Bug: 180401296
Merged-In: I1f3c96de396b9bfbdee7496ae8e4e6691b7f9a8a
Change-Id: I47955dade0e6fa63283bfea5ef28e563a3fdcf44
2021-02-21 09:25:17 -08:00
Bob Badour cfe551f6e2 [LSC] Add LOCAL_LICENSE_KINDS to packages/services/Telecomm am: d4d38d5e2e
Original change: https://android-review.googlesource.com/c/platform/packages/services/Telecomm/+/1588593

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia039593fc8ff07ff624c249853dfa469fbf1b8d2
2021-02-19 06:54:32 +00:00
Bob Badour d4d38d5e2e [LSC] Add LOCAL_LICENSE_KINDS to packages/services/Telecomm
Added SPDX-license-identifier-Apache-2.0 to:
  Android.bp
  testapps/Android.bp
  testapps/carmodedialer/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: Ie5d06aea794e895202885be54a3e65d71641a74d
2021-02-12 15:08:24 -08:00
Hall Liu eb1fff1090 Unset conference state when dng_cnf removed
When PROPERTY_IS_DOWNGRADED_CONFERENCE is removed from a call, mark the
call as no-longer-a-conference.

Bug: 153530054
Test: manual
Change-Id: I02d89213189282449f5dbca0b94e4d988f735c4a
2021-02-11 12:31:52 -08:00
Grace Jia 5e9d933db7 Set default value of EXTRA_ADD_SELF_MANAGED_CALLS_TO_INCALLSERVICE am: 1a360c47bd
Original change: https://android-review.googlesource.com/c/platform/packages/services/Telecomm/+/1570988

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If201c12ca9f70edda41c7ad796aad47ba3d811d2
2021-02-11 03:36:33 +00:00
Grace Jia 1a360c47bd Set default value of EXTRA_ADD_SELF_MANAGED_CALLS_TO_INCALLSERVICE
true.

Self-managed connections need to bind to special in-call service in
order to expose itself to bluetooth stack.

Bug: 178679937
Test: Manually use duo to make self-managed calls and make sure it's
audible on BT

Change-Id: If09e080398643ee76836eaaed15dd9d09d925df3
2021-02-02 15:25:07 -08:00
Grace Jia f566b76086 Bind self-managed calls to InCallService that support these kind of am: 18bc8a5b75
Original change: https://android-review.googlesource.com/c/platform/packages/services/Telecomm/+/1526861

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I408119360aac61b20124d6a9ab50aa20f70ddd38
2021-02-01 18:18:12 +00:00
Grace Jia 18bc8a5b75 Bind self-managed calls to InCallService that support these kind of
calls.

Bug: 161144815
Test: TelecomUnitTest, manually test with test apps.
Change-Id: Ifa3566d5e681b5ab41fb3123a25fc841fa96fe60
Merged-In: Ifa3566d5e681b5ab41fb3123a25fc841fa96fe60
2021-02-01 15:56:46 +00:00
Hall Liu d2104c5209 Turn on speaker when transitioning from quiescent am: 53e4d9d3b3
Original change: https://android-review.googlesource.com/c/platform/packages/services/Telecomm/+/1558751

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8bb1ccab066f3aafd5a82a4dd2d92d90c2543963
2021-01-23 03:04:12 +00:00
Hall Liu 53e4d9d3b3 Turn on speaker when transitioning from quiescent
When going from the quiescent speaker state to the active speaker state,
turn the speakerphone on.

Fixes: 176199784
Test: atest CallRouteStateMachineTest
Change-Id: I33149a6a5be6397640cd2989939608ddb96040a9
2021-01-22 13:55:06 -08:00
Chen Chen 4af189629c Merge "Bind to non-ui incall services for self-mgd calls" am: 83ade72360
Original change: https://android-review.googlesource.com/c/platform/packages/services/Telecomm/+/1543904

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I998e056fb06f39e21ef65a0c4659faf167dad49d
2021-01-11 19:54:19 +00:00
Chen Chen 7f66052c19 Bluetooth updateability: Move BluetoothPhoneService out from Telecom am: ca8f7fb20e
Original change: https://android-review.googlesource.com/c/platform/packages/services/Telecomm/+/1543887

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4cf058a22ea134c86925e74795eec538a0550f4c
2021-01-11 19:54:12 +00:00
Chen Chen 83ade72360 Merge "Bind to non-ui incall services for self-mgd calls" 2021-01-11 19:00:46 +00:00
Chen Chen ca8f7fb20e Bluetooth updateability: Move BluetoothPhoneService out from Telecom
Bug: 147244266
Test: Fully test hfp manually, and run BluetoothInCallServiceTest
Change-Id: Id16ddd7a1beff9278ac816059d354b60de51aee5
2021-01-07 17:42:02 -08:00
Hall Liu c1a1dbf18e Bind to non-ui incall services for self-mgd calls
Bind to non-ui incall services that support self managed calls for a
self-managed call, even if the main ui incall service doesn't get bound.

Bug: 176883407
Test: atest InCallControllerTests, manual

Merged-In: I02745189954e4453ce43e5900d4787513f030084
Change-Id: Ida3889b5be4c0ca98d11890afa5984a106b64c5a
(cherry picked from 6c3e04a9b1)
2021-01-08 01:37:02 +00:00
chapin 8dc61e0b94 Revert "Bluetooth updateability: Move BluetoothPhoneService out ..." am: df68d921e8
Original change: https://android-review.googlesource.com/c/platform/packages/services/Telecomm/+/1542646

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I51269969588767dc09c1318de9ac17718c21bc9a
2021-01-07 23:07:02 +00:00
chapin df68d921e8 Revert "Bluetooth updateability: Move BluetoothPhoneService out ..."
Revert "Updateability: Remove IBluetoothHeadsetPhone aidl"

Revert submission 1311861-BluetoothInCallService

Reason for revert: Bug: 176883407
Reverted Changes:
Ie3a5ceda5:UpdateAbility: Implement BluetoothInCallService an...
I2e3bc64eb:Updateability: Remove IBluetoothHeadsetPhone aidl
If26bab4ad:Bluetooth updateability: Move BluetoothPhoneServic...

Change-Id: Id9649e78d447a6c360860bcdde3069bb9b09c89f
2021-01-07 20:08:08 +00:00
Treehugger Robot 4677f77316 Merge "Fix issue that default dialer change is broadcasted unintentionally" am: b36985d523
Original change: https://android-review.googlesource.com/c/platform/packages/services/Telecomm/+/1533045

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9bfa7b173912ea42a138c01afe4d6c4322cc6927
2021-01-07 02:08:59 +00:00
Treehugger Robot b36985d523 Merge "Fix issue that default dialer change is broadcasted unintentionally" 2021-01-07 01:33:35 +00:00
Treehugger Robot 624ad15357 Merge "Implement call filters part of the missed call information." am: 765f9fe64e
Original change: https://android-review.googlesource.com/c/platform/packages/services/Telecomm/+/1174507

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If904d311386ec807c96586f2f097708fae642a83
2021-01-06 04:42:36 +00:00
Automerger Merge Worker f1d1d4a559 Merge "Merge "Connect TelecomManager extra in CallIntentProcess for call composer" am: ed42afc95f" into stage-aosp-master 2021-01-06 04:28:29 +00:00
Shuo Qian ae94d970e2 Merge "Connect TelecomManager extra in CallIntentProcess for call composer" am: ed42afc95f
Original change: https://android-review.googlesource.com/c/platform/packages/services/Telecomm/+/1535286

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9e1be8e6b997bd7a393f5538c6de7a7a541c53c5
2021-01-06 04:07:26 +00:00
Shuo Qian 83c903a80c Merge "Connect TelecomManager extra in CallIntentProcess for call composer" am: ed42afc95f
Original change: https://android-review.googlesource.com/c/platform/packages/services/Telecomm/+/1535286

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I496bf4f8efb132b18c2a75041733eddbd44077ce
2021-01-06 03:45:02 +00:00
Treehugger Robot 765f9fe64e Merge "Implement call filters part of the missed call information." 2021-01-06 01:40:17 +00:00
Shuo Qian ed42afc95f Merge "Connect TelecomManager extra in CallIntentProcess for call composer" 2021-01-06 00:48:00 +00:00
Wei Huang a028425d47 Fix issue that default dialer change is broadcasted unintentionally
With current code logic, whenever there is any role change, it is
marked as default dialer changed, as a result broadcast indicating
that the current default dialer has changed is sent unintentionally.

This patch adds new condition that only when the dialer role matches
then the broadcast is sent.

Test: Build and manual test on device.
Change-Id: Ie4f782ecf46c1e9e98747d731a4eecdb01041363
Signed-off-by: Wei Huang <hwbest.v@gmail.com>
Signed-off-by: Shu Wang <wangshu921978095@gmail.com>
Signed-off-by: Haoyu Luo <haoyu.luo1020@gmail.com>
2020-12-30 09:00:56 +08:00