1580 Commits

Author SHA1 Message Date
Tyler Gunn
8c7bd33748 Merge "Add Verstat fields to Telecom call/connection classes." am: 4efe689e4c am: 86445ea5c3
am: 5904b9ebe6

Change-Id: Ia93b27dd57b9a0292d2a951e022806a7c0090bd3
2019-12-06 00:28:49 -08:00
Tyler Gunn
4efe689e4c Merge "Add Verstat fields to Telecom call/connection classes." 2019-12-05 23:58:45 +00:00
Allen Su
1a88f1745b Merge "Define EXTRA_AUDIO_CODEC_TYPE in Connection" am: d154c93041 am: 5cc86edf81
am: f64a2dd67b

Change-Id: Ie604039589f880d5a48e2ebce64473a626726e61
2019-12-05 00:38:50 -08:00
Allen Su
d154c93041 Merge "Define EXTRA_AUDIO_CODEC_TYPE in Connection" 2019-12-05 01:32:21 +00:00
Tyler Gunn
bf7be6def1 Merge "Car mode InCallService changes." am: 1d4fcf1703 am: 920d3e0fbf
am: bed4e9789c

Change-Id: I10f1de2db0dfc6657c7aece1e31f35da5c07a37c
2019-12-04 14:46:55 -08:00
Automerger Merge Worker
166ab00cd3 Merge "Change name of setShouldScreenCallFurther" am: cebf791676 am: ddbfa780eb
Change-Id: I310c084a950d5a7556eff46e13a3bc549d1f0d32
2019-12-04 17:05:52 +00:00
Tyler Gunn
1d4fcf1703 Merge "Car mode InCallService changes." 2019-12-04 16:50:47 +00:00
allenwtsu
2aca989255 Define EXTRA_AUDIO_CODEC_TYPE in Connection
Bug: 143576354
Test: By manual
Change-Id: Ib8e701632676cfbe9993f1de2b58546f59ba580f
2019-12-04 15:21:19 +08:00
Hall Liu
cebf791676 Merge "Change name of setShouldScreenCallFurther" 2019-12-04 00:28:48 +00:00
Hall Liu
71a5de277e Merge "Expose new Telecom APIs for use by Telephony" am: fd191d895e am: 5defb332c9
am: 0c6a39b078

Change-Id: I187b58a7b9fd3234ba9cd367498723d0fcf06866
2019-12-02 14:13:52 -08:00
Tyler Gunn
d57d76c371 Add Verstat fields to Telecom call/connection classes.
Test: Added new CTS tests to verify operation.
Bug: 135929421
Change-Id: I42360dad677060e03ecec865f31145b1760cf46a
2019-12-02 13:59:17 -08:00
Hall Liu
fd191d895e Merge "Expose new Telecom APIs for use by Telephony" 2019-12-02 21:43:02 +00:00
Tyler Gunn
f701f7a765 Car mode InCallService changes.
1. Grant ENTER_CAR_MODE and CONTROL_INCALL_EXPERIENCE permissions to the
shell identity for use within CTS tests.
2. Remove un-needed Telecom shell command.

Test: unit tests, telecom CTS tests, manual testing
Bug: 144345414
Change-Id: I54a2e723d6ef9552117e6cadf4ab7c449dd5e3cb
2019-11-26 13:43:53 -08:00
Chen Xu
b6d1319d1a telephony annotations part 2
adding missing annotations

Bug: 140908357
Test: Build

Merged-In: I6de632ef7ef01a939971b7d1bacb227ec5ff4048
Change-Id: I6de632ef7ef01a939971b7d1bacb227ec5ff4048
(cherry picked from commit f85cf993d38462a45a7c4c4ab623742a13a7c4e8)
2019-11-20 14:09:16 -08:00
Brad Ebinger
15bc4c6a0c Merge "Add support for disconnecting outgoing calls for emergency calls" am: 252fcc7b27 am: 5dc01f163a
am: dd1cd69743

Change-Id: I588f15fd76f6bb1b863c612aa8f896be098317f4
2019-11-19 19:55:15 -08:00
Treehugger Robot
252fcc7b27 Merge "Add support for disconnecting outgoing calls for emergency calls" 2019-11-19 22:44:18 +00:00
Brad Ebinger
6271387650 Add support for disconnecting outgoing calls for emergency calls
1) Add CarrierConfig to allow/disallow holding calls for emergency
calls.
2) If holding an ongoing call for an emergency call is disallowed,
define a new DisconnectCause reason to notify telecom/dialer of this
disconnect reason.

Bug: 138741228
Test: atest CtsTelecomTestCases; atest CtsTelephonyTestCases
Change-Id: I7c6a1d0f648c598111ed047fbb9c609843c6aba9
2019-11-18 18:57:54 -08:00
Hall Liu
b230624a42 Expose new Telecom APIs for use by Telephony
Expose TelecomManager#getCallCapablePhoneAccounts(boolean) and
ConnectionRequest#getTelecomCallId

Bug: 141576153
Test: CTS
Change-Id: Ie0214fc93682229a3e5781f62743f00f68472702
2019-11-16 14:30:31 -08:00
Brad Ebinger
c890e023c7 Merge "Fix infinite recursion due to error log message" am: a57d7229ae am: 4f4181825a
am: 751351a022

Change-Id: I7681e833c032ac765bd712b9d5ba122a4ca78b2a
2019-11-14 15:23:47 -08:00
Brad Ebinger
c4044355eb Fix infinite recursion due to error log message
Bug: 144446106
Test: atest TelecomUnitTests:SessionTest
Change-Id: I382f90ad6f91262b06ac8816ecf1ecabfa9f6bb6
2019-11-13 16:51:16 -08:00
Tyler Gunn
d1da43b514 Merge "Cleanup video provider binder code." am: 398794c0a6 am: bd9bf9f9c7
am: b0078ccd04

Change-Id: Idc1ff7ed64dd0c6fa70e39c14ca97cd174e58a84
2019-11-12 13:21:14 -08:00
Grace Jia
82fe63b484 Merge "Add response to notify that an outgoing call is screened." am: 46758be25c am: 4f8cd35a90
am: 12726efeeb

Change-Id: I021a114961a776a82f67b7c39410e642b50083c3
2019-11-12 13:14:40 -08:00
Tyler Gunn
398794c0a6 Merge "Cleanup video provider binder code." 2019-11-12 20:47:38 +00:00
Treehugger Robot
46758be25c Merge "Add response to notify that an outgoing call is screened." 2019-11-12 20:44:43 +00:00
Tyler Gunn
d1fdf3a85b Cleanup video provider binder code.
1. Ensure we always unlink for death from the VideoCallImpl.
2. Ensure we compare the binders in the Call instance properly so that
we are not always replacing the VideoCallImpl used.
3. Ensure we cleanup the VideoCallImpl when its being removed.

Test: Manual testing of video calls for regressions.
Bug: 121156974
Change-Id: I440e8fb4ab9a5051ee02358933c495de736e2bd0
2019-11-12 10:43:09 -08:00
Tyler Gunn
5be8504888 Merge "More telephony updates for mainline." 2019-11-12 03:24:01 +00:00
Hall Liu
69554cff8d Change name of setShouldScreenCallFurther
Change the name of the method to setShouldScreenCallViaAudioProcessing
Also remove some commented out lines

Fixes: 143564665
Test: CTS
Change-Id: Ib163e3dad49ad2301238256339be9bb3ba5fec3a
2019-11-11 17:44:09 -08:00
Hall Liu
4489dcf225 Merge "Fix double-add of calls" am: e8a5b8a76d am: 811338631d
am: 745dd02a15

Change-Id: I3f3bbb75a1565880f846321bb3aca04e9644990b
2019-11-11 13:26:24 -08:00
Tyler Gunn
4857c1f9ef Merge "More telephony updates for mainline." 2019-11-11 19:22:46 +00:00
Tyler Gunn
00d737bd17 More telephony updates for mainline.
Add new TelecomManager#getDefaultDialerPackage which is multiuse aware;
this is used when showing the voicemail notification.
Remove some @hide methods from Conference; push these inline.
Move ConferenceParticipantConnection into frameworks/opt/net/ims since
it is just an IMS implementation detail.

Bug: 141576016
Test: Manual smoke test.
Test: Run unit tests.
Test: Run CTS tests.
Change-Id: I39b6955cb14cc1ca68b05c620c3d09a2cdfe30c9
2019-11-11 08:28:38 -08:00
Hall Liu
fc2be9c0d2 Fix double-add of calls
In the api compatibility logic for the new call states, we might end up
adding a call by accident in internalUpdateCall if a call was updated in
the NEW state, and it'd then get added again when internalAddCall gets
called.

To fix this, restrict the call states that would result in an add from
internalUpdateCall, and also don't add the call again in internalAddCall
if it's already present.

Fixes: 143049799
Test: CTS
Change-Id: I2a6b646a5200fedf9e02029a7120595210a24c76
2019-11-08 18:31:24 -08:00
Tyler Gunn
5567d7408c More telephony updates for mainline.
Add new TelecomManager#getDefaultDialerPackage which is multiuse aware;
this is used when showing the voicemail notification.
Remove some @hide methods from Conference; push these inline.
Move ConferenceParticipantConnection into frameworks/opt/net/ims since
it is just an IMS implementation detail.

Bug: 141576016
Test: Manual smoke test.
Test: Run unit tests.
Test: Run CTS tests.
Change-Id: I39b6955cb14cc1ca68b05c620c3d09a2cdfe30c9
Merged-In: I39b6955cb14cc1ca68b05c620c3d09a2cdfe30c9
2019-11-08 21:27:32 +00:00
Treehugger Robot
f363f3549e Merge "Add new SystemApi methods for mainline" 2019-11-08 15:46:53 +00:00
Hall Liu
d2f962a6db Add new SystemApi methods for mainline
Add new SystemApi methods for Telecom to call in lieu of the old @hide
methods. Also moved CallerInfo and CallerInfoAsyncQuery to Telecom
because there are no more users in Telephony.

Bug: 141576016
Test: CTS
Change-Id: I458ba6bcfc03db72c0419b0cab2f0d0adfa971d4
Merged-In: I458ba6bcfc03db72c0419b0cab2f0d0adfa971d4
2019-11-07 17:22:28 -08:00
Hall Liu
e2f17aad5e Add new SystemApi methods for mainline
Add new SystemApi methods for Telecom to call in lieu of the old @hide
methods. Also moved CallerInfo and CallerInfoAsyncQuery to Telecom
because there are no more users in Telephony.

Bug: 141576016
Test: CTS
Change-Id: I458ba6bcfc03db72c0419b0cab2f0d0adfa971d4
2019-11-07 13:34:11 -08:00
Grace Jia
90b38041e8 Add response to notify that an outgoing call is screened.
Test: CTS
Bug: 135929421
Change-Id: Ied5076e1ac0dc4aca2e5709b2e817f6a6895c58b
2019-11-06 14:17:50 -08:00
Chen Xu
7631ff7c48 new telephony annotation class
This is a preparatory work for mainline. since Intdef is hidden, so we
have to move some annotations (applied in SDK/system API) to a separate
annotation class and having other module statically link to it.

TODO: include telephony annotation in framework-non-updatable-sources

Bug: 140908357
Test: Build
Change-Id: I37f8a0624bbf27f264870ee9dbf03d3aaa5cadc1
(cherry picked from commit c9d4ee112e5441ae01502d597f6661f0feecc363)
Merged-in: I37f8a0624bbf27f264870ee9dbf03d3aaa5cadc1
(cherry picked from commit 4712711d3d91621083bf92f5a1647b92c20a8b81)
2019-11-04 21:26:50 +00:00
Tyler Gunn
6f49dc168a Merge "Make Connection.Listener methods package private." am: 9c3abc4692 am: 48c29257d3
am: 8d6e633a6e

Change-Id: Ic37e0a62448769ffe5184a82fdd8bbd63b74b30c
2019-10-31 11:36:14 -07:00
Tyler Gunn
9c3abc4692 Merge "Make Connection.Listener methods package private." 2019-10-31 18:10:16 +00:00
Tyler Gunn
633e4c3f19 Make Connection.Listener methods package private.
To prevent using these outside of the API surface, making package private
so we don't get tempted to use in the framework.

Bug: 141576016
Test: Manual smoke test.
Test: Run unit tests.
Test: Run CTS tests.
Change-Id: Ife3a82371b018b74efbe10e11015526d7aaeb7a9
2019-10-25 07:24:17 -07:00
Hall Liu
1d61a632d2 Merge "Add logging values for new call states" am: e87b7156c9 am: 737210b7bb am: 2e6ef064d0
am: e2bb309446

Change-Id: I4afe191dafa4fe7657b6dfe2625749dbd689df7f
2019-10-22 16:41:08 -07:00
Hall Liu
e87b7156c9 Merge "Add logging values for new call states" 2019-10-22 23:10:58 +00:00
Fan Zhang
5431ef5394 Introduce telecom api to launch emeregency dialer.
Test: manual
Bug: 136194151
Change-Id: I5c9732062e5123539343843fb9a9ae3ca7111890
2019-10-18 18:12:15 +00:00
Tyler Gunn
affa2ff5c3 Merge "Telecom API updates for mainline support." 2019-10-18 15:35:20 +00:00
Tyler Gunn
d9da477002 Telecom API updates for mainline support.
Moving some Telecom APIs into public since they are harmless to expose.
Moving some other Telecom APIs into the System API space since they're
API details specific to the TelephonyConnectionService so don't need to
be exposed in the public API.

Bug: 141576016
Test: Manual smoke test.
Test: Run unit tests.
Test: Run CTS tests.
Change-Id: Iaf75b9d671712d791f501c11536e73436908f7de
2019-10-17 22:55:15 +00:00
Tyler Gunn
c63f9082a6 Telecom API updates for mainline support.
Moving some Telecom APIs into public since they are harmless to expose.
Moving some other Telecom APIs into the System API space since they're
API details specific to the TelephonyConnectionService so don't need to
be exposed in the public API.

Bug: 141576016
Test: Manual smoke test.
Test: Run unit tests.
Test: Run CTS tests.
Change-Id: Iaf75b9d671712d791f501c11536e73436908f7de
Merged-In: Iaf75b9d671712d791f501c11536e73436908f7de
2019-10-17 10:05:44 -07:00
Hall Liu
79092b08b2 Merge "Add SDK compatibility code for new call states" am: 22027a86e2 am: d071c48af9 am: 6355d3947f
am: afefb720bb

Change-Id: If2abe4e044f7a6a084cde40a1fa89be9e634ec2a
2019-10-16 16:57:13 -07:00
Hall Liu
4e35b64bc3 Add logging values for new call states
Add the string values for the new call states so we don't get warnings
about unknown states in the logs.

Bug: 140317205
Test: manual
Change-Id: Ia6a27179639748287436a0785a03201985d8ab50
2019-10-14 17:50:45 -07:00
Hall Liu
31de23da21 Add SDK compatibility code for new call states
Add code that translates the new call states to old call states for
in-call UIs that don't yet support background call screening.

Test: CTS
Bug: 140317205
Change-Id: I104f5f7ab3e3dc075e1d9ed5c64fcd924f9a977b
2019-10-11 17:59:42 -07:00
Chen Xu
fac787d7f2 Merge "telephony annotations part 2" 2019-10-03 18:15:17 +00:00