Commit Graph

1224 Commits

Author SHA1 Message Date
Mathew Inwood
8c854f86a4 Move some members to the "Q blacklist".
Based on some analysis, these fields/methods are likely false positives.
Set maxTargetSdk=P so that any apps using them are required to migrate off
them in future. See the bug for more details.

Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 115609023
Test: m
Change-Id: I719b5c94e5b1f4fa562dd5d655953422958ad37e
2018-09-14 13:18:34 +01:00
Shaotang Li
85105e5685 Merge "Add new telecom metrics for emergency dialer" am: 0dcc53fd52 am: 28d138a6aa
am: 7d14032afe

Change-Id: I789f6659f25078fcfce673799cb88d1a05c0aa9f
2018-09-13 00:51:51 -07:00
Shaotang Li
28d138a6aa Merge "Add new telecom metrics for emergency dialer"
am: 0dcc53fd52

Change-Id: I0a1537c8dbd6723614869e6bfcd95292ac603872
2018-09-13 00:26:01 -07:00
Shaotang Li
8cec25c346 Add new telecom metrics for emergency dialer
These includes,
1. The source where user initiated the call.
2. The duration between START_CONNECTION and REQUEST_DISCONNECT.

Bug: 111818008
Test: manual and check the result of
'adb shell dumpsys telecom' for metrics data
Change-Id: Iddc7f256362abe9fe252bd12cead05a7d77d329e
2018-09-06 12:38:18 +08:00
sqian
54016bdbca Merge "Call Redirection Surface in Telecom out going call flow"
am: 11486bfab2

Change-Id: Id5426d4695a8b9caceb2a429f1201f78e5f5c9cb
2018-08-31 17:36:01 -07:00
sqian
cae1f264b9 Call Redirection Surface in Telecom out going call flow
- Provide a Call Redirection API Surface
- Provide a key "KEY_CALL_REDIRECTION_SERVICE_COMPONENT_NAME_STRING"
  in the CarrierConfigManager
- Create .aidl interfaces for Call Redirection
(CallRedirectionService.aidl, CallRedirectionAdapter.aidl)

Bug: 64959558
Test: Compile
Change-Id: Ic119fa445e66f1275eabf944c77fdc981bc9a2a7
Merged-In: Ic119fa445e66f1275eabf944c77fdc981bc9a2a7
(cherry picked from commit ea8970cd55)
2018-08-31 12:59:40 -07:00
Tyler Gunn
5992fe404e Merge "Add new team member to owners file." am: 05d5ec7842 am: cc2f23b6b9
am: f38640ae5f

Change-Id: Id5cda42de0964c6211b46eafd62d7bb63de77f02
2018-08-29 17:34:39 -07:00
Tyler Gunn
cc2f23b6b9 Merge "Add new team member to owners file."
am: 05d5ec7842

Change-Id: I64d191cda6d1e30960c912d451da4b1dde386387
2018-08-29 17:09:00 -07:00
Treehugger Robot
05d5ec7842 Merge "Add new team member to owners file." 2018-08-29 23:45:12 +00:00
Tyler Gunn
87a1397ee0 Add new team member to owners file.
Bug: 113528087
Test: Manual
Change-Id: I17d82d53386c14cfd0324d455b892ca17e07a079
2018-08-29 14:07:42 -07:00
TreeHugger Robot
0399b85f14 Merge "Revision of CallRedirectionService API Review" 2018-08-28 20:27:48 +00:00
Tyler Gunn
a04bd3d292 Merge "Add equality method for PhoneAccount." am: 6af1516b22 am: 491be78832
am: 24bcf8b5d1

Change-Id: Ibd0c69425bf185dc6b79db4ca4e9ca4a770320a3
2018-08-28 08:39:39 -07:00
Tyler Gunn
491be78832 Merge "Add equality method for PhoneAccount."
am: 6af1516b22

Change-Id: I22447a3d9348e68c23cbed1283005d8d61d5fc37
2018-08-28 08:15:27 -07:00
Tyler Gunn
6af1516b22 Merge "Add equality method for PhoneAccount." 2018-08-28 14:59:25 +00:00
Tyler Gunn
3b34781f84 Add equality method for PhoneAccount.
Checks for equality between two PhoneAccounts, not taking into account
the icon, which cannot be compared with equality.

Test: Manual as part of telephony account registry updates.
Test: Added new unit tests to test equality.
Bug: 112884689
Change-Id: I0129954b5c124e349b82fcc91604fdccf0bad089
2018-08-24 14:17:05 -07:00
Hall Liu
1c334634d3 Merge "Add EXTRA_SKIP_CALL_FILTERING PhoneAccount extra"
am: 7fe46504be

Change-Id: Id9a878b4551633bd61db81cfbaee59a237bc1289
2018-08-23 13:44:44 -07:00
Sean Kelley
4d3c17862c Add EXTRA_SKIP_CALL_FILTERING PhoneAccount extra
This adds a new @hide extra to PhoneAccount which will allow
TelecomService to skip call filtering on PhoneAccounts which set it to
true. This will be useful to allow devices like Wear which receive
bridged calls that have already undergone call filtering to avoid doing
it again.

Bug: 65223222
Change-Id: I5b9992735a8cc29c70282daf5c6e285bfc8a4217
Merged-In: I5b9992735a8cc29c70282daf5c6e285bfc8a4217
2018-08-23 00:01:51 +00:00
sqian
4ec07dd68a Revision of CallRedirectionService API Review
- onBind should be final (I think also for onUnBind)
- Remove verbose logging
- Document redirectCall/placeCallUnmodified/cancelCall can only be
called from onPlaceCall

Bug: 112303670
Test: compile
Change-Id: I7d70a5ac3063a638d9383f69c99e4c1f822e8948
2018-08-09 16:01:37 -07:00
Mathew Inwood
9eb284c658 Merge "Add @UnsupportedAppUsage annotations" am: 44091cdb47
am: ec3f7c80ce

Change-Id: I50594b690a776145e4b0278e1e0685c5ebc53832
2018-08-06 12:25:51 -07:00
Mathew Inwood
ec3f7c80ce Merge "Add @UnsupportedAppUsage annotations"
am: 44091cdb47

Change-Id: I1dfae6f3d8ba8d5ff63f378c71f9670199a3adc3
2018-08-06 09:47:13 -07:00
Treehugger Robot
44091cdb47 Merge "Add @UnsupportedAppUsage annotations" 2018-08-06 12:23:09 +00:00
Mathew Inwood
cf17bf830f Merge "Add @UnsupportedAppUsage annotations" 2018-08-03 10:28:53 +00:00
Hall Liu
6a2d7cc29d Merge "Telecom: Reset the duration after the CDMA call is accepted" am: 2cbf44dc2f am: e784d5e5ca am: a4c0632746
am: 47dceea7d8

Change-Id: I28e69d1b32e71b467dded2d90118a46f9ef3fffc
2018-08-01 18:41:20 -07:00
Hall Liu
a4c0632746 Merge "Telecom: Reset the duration after the CDMA call is accepted" am: 2cbf44dc2f
am: e784d5e5ca

Change-Id: I3ce3d19c460f3e95bdbdd4c983d53657c06443d3
2018-08-01 16:46:15 -07:00
Hall Liu
e784d5e5ca Merge "Telecom: Reset the duration after the CDMA call is accepted"
am: 2cbf44dc2f

Change-Id: I823efd5765b77fcf55f4c38a6091d980530abae8
2018-08-01 16:09:51 -07:00
Mathew Inwood
42346d1dd2 Add @UnsupportedAppUsage annotations
For packages:
  android.telecom.Logging
  android.telecom

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I540cb034b933c0d1417a138747ed347fcf0748d7
Merged-In: I04a94d7555be608dc3958787554a3d33b72158ec
2018-08-01 11:33:05 +01:00
Mathew Inwood
e5bfa3ec56 Add @UnsupportedAppUsage annotations
For packages:
  android.telecom.Logging
  android.telecom

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I04a94d7555be608dc3958787554a3d33b72158ec
2018-08-01 11:26:20 +01:00
Mengjun Leng
2570774338 Telecom: Reset the duration after the CDMA call is accepted
In android original design, the duration of CDMA MO call is started from
the dial command sent, so it is not the real duration of the active time.

In this patch, a new message is registered to listen the event of the call
accepted, and then reset the duration when the event happens.

Change-Id: Icc447012030ae243f200ec2c83b7d5210af9b31c
2018-07-31 14:14:22 +08:00
sqian
ea8970cd55 Call Redirection Surface in Telecom out going call flow
- Provide a Call Redirection API Surface
- Provide a key "KEY_CALL_REDIRECTION_SERVICE_COMPONENT_NAME_STRING"
  in the CarrierConfigManager
- Create .aidl interfaces for Call Redirection
(CallRedirectionService.aidl, CallRedirectionAdapter.aidl)

Bug: 64959558
Test: Compile
Change-Id: Ic119fa445e66f1275eabf944c77fdc981bc9a2a7
2018-07-16 20:34:07 +00:00
Tyler Gunn
7354073f9e Merge "Update InCallService API docs to explain how to show incoming call UI." am: ac47c63b36 am: 0bd810f5ea
am: ba70f0803a

Change-Id: I240e0aa8158a83e5964febd9b28171194bb35da9
2018-07-13 18:12:45 -07:00
Tyler Gunn
ba70f0803a Merge "Update InCallService API docs to explain how to show incoming call UI." am: ac47c63b36
am: 0bd810f5ea

Change-Id: I649bdb38348a507c5c01d66d99df0c6d6f5dcd6f
2018-07-13 17:20:45 -07:00
Tyler Gunn
0bd810f5ea Merge "Update InCallService API docs to explain how to show incoming call UI."
am: ac47c63b36

Change-Id: I4b3f34199c471006c71c2560f365ad314580b0a3
2018-07-13 15:37:40 -07:00
Tyler Gunn
ec8b97e60b Merge "Make Connection#onSilence a public API." am: cbe3737f13 am: 01ab0b90bf
am: 9aca012ab5

Change-Id: Icf3491038487e47983b84255cdc32214595ce470
2018-07-13 13:22:48 -07:00
Tyler Gunn
9aca012ab5 Merge "Make Connection#onSilence a public API." am: cbe3737f13
am: 01ab0b90bf

Change-Id: I8c011d4a495d5240ebec83b07bc0b8f57a3c40ac
2018-07-13 12:45:28 -07:00
Tyler Gunn
01ab0b90bf Merge "Make Connection#onSilence a public API."
am: cbe3737f13

Change-Id: I4ab192ca160219770d7384e88c8e0025137b42bd
2018-07-13 12:15:45 -07:00
Treehugger Robot
ac47c63b36 Merge "Update InCallService API docs to explain how to show incoming call UI." 2018-07-13 18:52:52 +00:00
Tyler Gunn
06f0616f6d Make Connection#onSilence a public API.
Connection#onSilence is generally applicable to apps implementing the
self-managed ConnectionService API.
Also updated the docs to make it more clear where that API is to be used
and how the developer can silence the ringtone.

Test: CTS test, manual test.
Bug: 110348674
Change-Id: I1c1791c101827780949fd633c531ed83037e7b4e
2018-07-11 09:04:43 -07:00
Tyler Gunn
dc6e6c43bb Update InCallService API docs to explain how to show incoming call UI.
Updating InCallService API docs to give an example of how an InCallService
should display a new incoming call notification.

Test: make docs ; proof generated HTML
Bug: 110916900
Change-Id: I6f3c8d0d9f14a916336d5a84897772ed4aba3105
2018-07-10 10:53:12 -07:00
Hall Liu
8e46f400ff Merge "Fix readImmediately for CTS" into pi-dev am: ec328eea49
am: df1ac1700e

Change-Id: Ia80975223bf06bf6d8a04403a6ab11274ff22d6c
2018-07-09 18:01:01 -07:00
Hall Liu
df1ac1700e Merge "Fix readImmediately for CTS" into pi-dev
am: ec328eea49

Change-Id: Ife6c64a03a3ac46430198db05ec6c9ac87524900
2018-07-09 17:44:16 -07:00
Hall Liu
17eb1bd6e4 Fix readImmediately for CTS
The readImmediately API (only used by CTS so far) was broken by a
previous change that unknowingly changed the semantics of ready().
Fixing this so that CTS tests work again.

Change-Id: I6970713eae2a01dd07e30778ca8ee0d9bc7dfeb9
Fixes: 111125833
Test: CTS
2018-07-03 15:17:41 -07:00
Hall Liu
7fe985fa28 Merge "Make RttTextStream's read interruptible" into pi-dev am: 21ef4b3acb
am: 6574cac322

Change-Id: I5a3946a2555ed2ac3cbe5a4f1a2ef6f664554667
2018-06-26 15:39:56 -07:00
Hall Liu
6574cac322 Merge "Make RttTextStream's read interruptible" into pi-dev
am: 21ef4b3acb

Change-Id: Ifc793a3b59e7e9cc5c09cffa8d147feeb5a6e900
2018-06-26 15:17:12 -07:00
Hall Liu
730a25995e Make RttTextStream's read interruptible
Wrap the FileInputStream in a java.nio.Channel so that sending a
Thread.interrupt() to the thread blocked on the read will actually do
something.

Change-Id: Icc11ba69167f448e2b33d9a1a13a1dfa5e5d0d58
Fixes: 110570772
Test: manual (follow repro steps in bug, but type really fast),treehugger
2018-06-25 19:48:33 -07:00
Tyler Gunn
3193b1537c Merge "Merge "Ensure self-managed calls use voip audio mode." am: b62aa315d1 am: fd3e10b1bc" into pi-dev-plus-aosp
am: 6823c8a822

Change-Id: I1352a44cbb55fdeeb79771b27055a70b83a3cbb8
2018-06-06 18:08:05 -07:00
Tyler Gunn
2c556faf3d Merge "Ensure self-managed calls use voip audio mode." am: b62aa315d1
am: fd3e10b1bc

Change-Id: I8f7842fa84fcce91a292b32189cd827b4a125fb0
2018-06-06 16:33:19 -07:00
Tyler Gunn
b62aa315d1 Merge "Ensure self-managed calls use voip audio mode." 2018-06-06 21:19:04 +00:00
Sean Kelley
ad51ddba78 Add EXTRA_SKIP_CALL_FILTERING PhoneAccount extra
This adds a new @hide extra to PhoneAccount which will allow
TelecomService to skip call filtering on PhoneAccounts which set it to
true. This will be useful to allow devices like Wear which receive
bridged calls that have already undergone call filtering to avoid doing
it again.

Bug: 65223222
Change-Id: I5b9992735a8cc29c70282daf5c6e285bfc8a4217
2018-06-04 18:38:50 +00:00
Hall Liu
378f1f4972 Add CallAudioState ctor as TestApi
Needed for CTS testing

Bug: 79528185
Test: CTS
Change-Id: Iad154257a93cc776d5800527e46e777fd6c88220
Merged-In: Iad154257a93cc776d5800527e46e777fd6c88220
2018-05-25 15:22:16 -07:00
Tyler Gunn
f2e08b4c2c Ensure self-managed calls use voip audio mode.
Although Telecom ensures that new calls use voip audio mode, the default
value from a Connection would override the Telecom default.

Bug: 76362663
Test: Modify test app to ensure it does not set voip audio mode, ensure
Telecom uses voip audio mode for new calls.

Change-Id: Ie6477659cf6dabd08f371d4958ece1d258cd3106
2018-05-24 10:44:44 -07:00