Commit Graph

1282 Commits

Author SHA1 Message Date
Tyler Gunn
743ad8a78c Merge "Unsupported app usage API cleanup" am: a2b2183a24 am: ff98c6d69f
am: 940dd816a3

Change-Id: I571ad85a3e643459c3040ee4ccb3e3e2d84c741a
2018-11-13 10:34:43 -08:00
Tyler Gunn
3808bca1f7 Merge "Expose capabilitiesToString for use in Telecom." am: b7d9e55bc7 am: b9cdc48c1f
am: 1e44acb566

Change-Id: I887d9a702c85252612751a7209210db0bf78613f
2018-11-13 10:20:04 -08:00
Tyler Gunn
940dd816a3 Merge "Unsupported app usage API cleanup" am: a2b2183a24
am: ff98c6d69f

Change-Id: I3bbf9b130374b2f387de56034d22e2cf6248a9ac
2018-11-13 10:18:44 -08:00
Tyler Gunn
1e44acb566 Merge "Expose capabilitiesToString for use in Telecom." am: b7d9e55bc7
am: b9cdc48c1f

Change-Id: Ib35d4013fe5f7e7a1a34d9e74eae1b7e642f0a26
2018-11-13 10:06:16 -08:00
Tyler Gunn
a2b2183a24 Merge "Unsupported app usage API cleanup" 2018-11-13 17:49:01 +00:00
Tyler Gunn
b7d9e55bc7 Merge "Expose capabilitiesToString for use in Telecom." 2018-11-13 17:47:49 +00:00
Tyler Gunn
6e3ecc40f8 Unsupported app usage API cleanup
This CL includes a number of cleanups related to unsupported app usage
tags.

TelecomManager#EXTRA_IS_HANDOVER - public APIS exist for this usecase;
updated docs and limit to P with maxtarget sdk.
TelecomManager#getSimCallManager(int userId) - marked as max target P;
there is a public API available which can be used to accomplish the same
thing.  Nobody should be calling this.
TelecomManager#getCallCapablePhoneAccounts(boolean) - marked as max
target P; callers should use the version without the boolean parameter.

Deprecate CAPABILITY_CAN_UPGRADE_TO_VIDEO; its redundant.

New public API:
Promote TelecomManager#getSystemDialerPackage() to public API; its a
benign API and doesn't expose anything which can't be inferred other ways.

New system APIs:
TelecomManager#getCurrentTtyMode() - used by settings app.
TelecomManager#setDefaultDialer() - used by useful for settings app.
TelecomManager#TTY_MODE* constants - used by getCurrentTtyMode API.

Test: Compile / run unit tests
Bug: 119305590
Change-Id: I67d6213e6c689fb545fc9ceae4a359831f97c32f
2018-11-12 11:30:56 -08:00
Hall Liu
f6f09c5491 Merge "Fix flaky AnalytisTest by locking in EventRecord" am: 0a390095df am: e90962ff1d
am: d96fd15364

Change-Id: I37232a10e503887fdd436c4504a53f993da4f1b2
2018-11-09 14:03:51 -08:00
Tyler Gunn
1847b4eb74 Expose capabilitiesToString for use in Telecom.
We will use this in phone account registrar to make the logs more useful.

Test: Manual
Bug: 119306215
Change-Id: Ic882192bc5f135e70f37ddbba055127fdb9c1569
2018-11-09 08:43:02 -08:00
Hall Liu
d96fd15364 Merge "Fix flaky AnalytisTest by locking in EventRecord" am: 0a390095df
am: e90962ff1d

Change-Id: Ifa04c8d827c3ce9c34454115fcb45ed092377dda
2018-11-08 18:40:29 -08:00
Hall Liu
0a390095df Merge "Fix flaky AnalytisTest by locking in EventRecord" 2018-11-09 02:21:56 +00:00
Tony Zhu
6aceee0b7c Merge "[Call Screening]Logging of calls blocked by call blocking feature, call screening app." am: b5e8d45245 am: 20b0ca7ef8
am: f922fb1375

Change-Id: I4c7270d0ae8ea1fd42488e0e3efe2ca1b6d33d94
2018-11-08 10:22:41 -08:00
Tony Zhu
f922fb1375 Merge "[Call Screening]Logging of calls blocked by call blocking feature, call screening app." am: b5e8d45245
am: 20b0ca7ef8

Change-Id: Id2794379c6dd94bd5616ef0c86e6186324c33799
2018-11-08 10:07:13 -08:00
Tony Zhu
b5e8d45245 Merge "[Call Screening]Logging of calls blocked by call blocking feature, call screening app." 2018-11-08 17:22:43 +00:00
tonyzhu
9e1d4f86ba [Call Screening]Logging of calls blocked by call blocking feature, call screening app.
Add three call log entries, ALL_SCREENING_COMPONENT_NAME, CALL_SCREENING_APP_NAME,
BLOCK_REASON, and call block reasons. Add new parameter to get the
package name and component name of the implementation of CallScreenService.java.

Bug: 113243596
Test: Build pass
Change-Id: I63debd80d7f4a92278fdbb84b64ff1199591349c
2018-11-08 17:28:34 +08:00
Hall Liu
48e2615128 Fix flaky AnalytisTest by locking in EventRecord
AnalyticsTests were flaking with concurrent modification exceptions. Fix
this by locking mEvents properly in EventRecord.

Bug: 119226554
Test: leave it to presubmit
Change-Id: I4df0afe399fab148bbebcef51272c56f628ee18f
2018-11-07 18:32:02 -08:00
Tony Zhu
c8d935d2bb Merge "[Call Screening]Programmatically changing the default call screening app." am: 6dd64df8b3 am: 21457121f4
am: c274ac53a7

Change-Id: Ia013e710c961b8887bfaff1e8fe7af40fba26df1
2018-11-05 03:14:48 -08:00
Tony Zhu
c274ac53a7 Merge "[Call Screening]Programmatically changing the default call screening app." am: 6dd64df8b3
am: 21457121f4

Change-Id: I1b570954254b4b13e3368372e17cebd0017cfa4d
2018-11-05 03:02:57 -08:00
Tony Zhu
6dd64df8b3 Merge "[Call Screening]Programmatically changing the default call screening app." 2018-11-05 10:35:27 +00:00
Tyler Gunn
ee72c438b7 Merge "Add PROPERTY_VOIP_AUDIO_MODE to android.telecom.Call." am: cc690e9a48 am: f2dc5a204a
am: 3584c0a088

Change-Id: Ie20ead7404d1f200785104d896129212d126d9e7
2018-11-01 16:34:34 -07:00
Tyler Gunn
3584c0a088 Merge "Add PROPERTY_VOIP_AUDIO_MODE to android.telecom.Call." am: cc690e9a48
am: f2dc5a204a

Change-Id: I39dd19c1c09b15136460854fd0e5a2b8161766c3
2018-11-01 16:15:49 -07:00
Tyler Gunn
80a5e1e940 Add PROPERTY_VOIP_AUDIO_MODE to android.telecom.Call.
This property is used to report the voip audio mode requested by the
underlying connection.  This is useful for ringing calls and held calls
where the current system audio mode will not necessarily match what the
Connection would use.

Test: Added and ran new CTS tests.
Bug: 110540796
Change-Id: I8c26db4b35de4d40d7b76b3c1adc93223afa104b
2018-10-31 15:09:17 -07:00
tonyzhu
ff60f5ec27 [Call Screening]Programmatically changing the default call screening app.
Increase three methods in TelecomManager.java, modify
ITelecomService.aidl to make sure framworks can comunicate with service.

Bug: 113302920
Test: atest TelecomServiceImplTest.
Test: simulate third party call screening application to use methods in
TelecomManager.java, and triggle the activity to show the dialog of
setting default call screeening application.

Change-Id: I1e34061acd575813e92403c137731e618abb88d5
2018-10-30 15:50:49 +00:00
Chen Xu
40e6f7ed00 Merge "Revert "Revert "Telephony light grey list clean up for Q""" am: d4e2c6cd5a
am: 39cc174191

Change-Id: I6c8bdd4d4df115abe6fd1914d21019da8930c8be
2018-10-29 11:55:14 -07:00
Chen Xu
d4e2c6cd5a Merge "Revert "Revert "Telephony light grey list clean up for Q""" 2018-10-29 17:20:48 +00:00
Chen Xu
4c0b06d1d1 Revert "Revert "Telephony light grey list clean up for Q""
This reverts commit bab59cb9db.

Reason for revert: Put maxTargetSdk=P now will move APIs onto light greylist
because per-SDK versioned dark greylist is not yet supported by ART. We can
keep doing annotation work without breaking existing apps targeting on P.

Bug:117934933
Bug:112477300

Change-Id: I5e0e693dde49fac3044cd73fd6360c4485f312ec
Merged-in: I5e0e693dde49fac3044cd73fd6360c4485f312ec
2018-10-26 23:31:40 +00:00
Chen Xu
91f600902b Revert "Revert "Telephony light grey list clean up for Q""
This reverts commit bab59cb9db.

Reason for revert: Put maxTargetSdk=P now will move APIs onto light greylist
because per-SDK versioned dark greylist is not yet supported by ART. We can
keep doing annotation work without breaking existing apps targeting on P.

Bug:117934933
Bug:112477300

Change-Id: I5e0e693dde49fac3044cd73fd6360c4485f312ec
2018-10-26 17:24:23 +00:00
Nathan Harold
41e2d7494f Merge "Move some members to the "Q blacklist"." am: f5cf9f24ed
am: 13c9e7e2f3

Change-Id: Ia2419cce28d26d9464da2a5172cb332b629e943e
2018-10-24 16:14:06 -07:00
Nathan Harold
f5cf9f24ed Merge "Move some members to the "Q blacklist"." 2018-10-23 21:53:51 +00:00
Mathew Inwood
45d2c252b1 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
Merged-In: I719b5c94e5b1f4fa562dd5d655953422958ad37e
Change-Id: I719b5c94e5b1f4fa562dd5d655953422958ad37e
(cherry picked from commit 8c854f86a4)
2018-10-22 17:28:24 -07:00
Chen Xu
2d42ee1147 Revert "Telephony light grey list clean up for Q"
Reason for revert: This CL caused MMS break because Bugle is using the
hidden API in Q's darkgrey list. The proper fix should either come from
Bugle team if their apk moved to Q, or compat team to explore why this
caused issue for app target on P.

Bug: 117899984
Test: telehony unit test
Change-Id: I49207b7f66d75e6e6cc3aa4828601938a3172828
2018-10-19 13:21:24 -07:00
Bill Yi
0b537c73f7 Merge pi-dr1-dev to aosp-master
Change-Id: I40fca8b785049f8563809a70f6671b8af89f3cfd
2018-10-19 12:20:31 -07:00
Chen Xu
cd6874f0bf Merge "Revert "Telephony light grey list clean up for Q"" am: a18e095754
am: c16c2f7c8e

Change-Id: I17fee4991fbe3a8987710be55e73898c1abebe82
2018-10-19 12:11:23 -07:00
Chen Xu
c16c2f7c8e Merge "Revert "Telephony light grey list clean up for Q""
am: a18e095754

Change-Id: I413ff7a0e759ae257d3be6fba180c220b15f07d2
2018-10-19 11:58:21 -07:00
Chen Xu
bab59cb9db Revert "Telephony light grey list clean up for Q"
This reverts commit 253bdb7175.

Reason for revert: This CL caused MMS break because Bugle is using the
hidden API in Q's darkgrey list. The proper fix should either come from
Bugle team if their apk moved to Q, or compat team to explore why this
caused issue for app target on P.

Change-Id: Icc6c190cde79c10d9045183c0b80cdf008e95578

Bug: 117899984
2018-10-19 18:05:32 +00:00
chen xu
6ea046e734 Merge "Telephony light grey list clean up for Q" am: b9749f750f
am: 700b5c3062

Change-Id: I22775147345a2c2159f18c49a94ec7e9d2a314a3
2018-10-15 16:02:42 -07:00
chen xu
700b5c3062 Merge "Telephony light grey list clean up for Q"
am: b9749f750f

Change-Id: Ia23066251baf4f1f876f7e80bfd31e465917d8dc
2018-10-15 15:44:17 -07:00
chen xu
e2592af979 Telephony light grey list clean up for Q
Bug: 112477300
Test: Telehony unit test
Change-Id: I5229224fe9a65b3647a42070f287e23f67084bda
2018-10-15 18:47:20 +00:00
chen xu
253bdb7175 Telephony light grey list clean up for Q
Bug: 112477300
Test: Telehony unit test
Change-Id: I5229224fe9a65b3647a42070f287e23f67084bda
Merged-in: I5229224fe9a65b3647a42070f287e23f67084bda
2018-10-15 10:19:43 -07:00
Tyler Gunn
06ee120b05 Merge "Update PROPERTY_HIGH_DEF_AUDIO API docs." am: 5674805cda am: f17f1d7cdc
am: 5101473303

Change-Id: I641c2f173c97736c52c6f153e77b68b16b31c4f1
2018-10-11 14:24:12 -07:00
Tyler Gunn
5101473303 Merge "Update PROPERTY_HIGH_DEF_AUDIO API docs." am: 5674805cda
am: f17f1d7cdc

Change-Id: I884edd29bd9bd42c44c537d2e22879815086e4c6
2018-10-11 13:57:35 -07:00
Tyler Gunn
f17f1d7cdc Merge "Update PROPERTY_HIGH_DEF_AUDIO API docs."
am: 5674805cda

Change-Id: I4ebe0542fc233f992e123f1715621855e253bf14
2018-10-11 13:40:57 -07:00
Tyler Gunn
6b6ae55f72 Update PROPERTY_HIGH_DEF_AUDIO API docs.
Make it more clear that the intention of the property is to convey whether
a call is high definition on the UI or not, and NOT to report the actual
audio codec in use.

Test: Build
Bug: 78550833
Change-Id: Id002cd1c9cc1d5aea6f8d9ab4e3d99956b7c42b2
2018-10-11 10:42:10 -07:00
kopriva
dae6ec0db7 Merge "docs: fixing 'mange' instead of 'manage'" into pi-dev am: 14aa42cfda
am: 57adb99451

Change-Id: I477a610e0602e464847c1a1ccb13b21644ee1ae8
2018-10-08 19:30:00 -07:00
kopriva
57adb99451 Merge "docs: fixing 'mange' instead of 'manage'" into pi-dev
am: 14aa42cfda

Change-Id: Id461e2430301c62be5ee76f5046370069cb1a34c
2018-10-08 19:14:44 -07:00
kopriva
82c591b78b docs: fixing 'mange' instead of 'manage'
Test: make ds-docs

Bug: 117449040

Change-Id: I282a2e960bbf722bf3a72dd932e3bf685abb74e5
Exempt-From-Owner-Approval: Docs-only change
2018-10-08 15:57:00 -07:00
Shaotang Li
403675bd3c 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: 112168722
Bug: 111818008

Test: manual and check the result of
'adb shell dumpsys telecom' for metrics data
Change-Id: Iddc7f256362abe9fe252bd12cead05a7d77d329e
Merged-In: Iddc7f256362abe9fe252bd12cead05a7d77d329e
2018-10-03 02:59:42 +00:00
Tyler Gunn
e3adae5287 Merge "Add handleCallIntent method in TelecomManager." am: e35965e881 am: ffbc91f6e8
am: e353ef0152

Change-Id: I5cfec86ccf5b31b8c6de728f3012276d32cec71f
2018-10-02 18:13:07 -07:00
Tyler Gunn
ffbc91f6e8 Merge "Add handleCallIntent method in TelecomManager."
am: e35965e881

Change-Id: I3875eee60ddbdb522b60d3066e0c14125c3a1780
2018-10-02 15:55:22 -07:00
Tyler Gunn
e35965e881 Merge "Add handleCallIntent method in TelecomManager." 2018-10-02 22:27:14 +00:00