Commit Graph

26546 Commits

Author SHA1 Message Date
Chalard Jean
7fa63afe6d Merge changes Ibc9b1965,I288ea32f
* changes:
  Fix invalid usage of javadoc
  Add a systemapi constructor for NetworkAgent
2020-02-12 06:10:32 +00:00
Xiangyu/Malcolm Chen
cb47d86158 Merge "Add HomeVisibilityObserver APIs in ActivityManager." 2020-02-11 21:00:16 +00:00
Xiangyu/Malcolm Chen
fd46f62892 Merge changes I7099048c,If6965979
* changes:
  Expose RESULT_RECEIVER_CONTROLLER_KEY as @SystemApi.
  Make Telephony to Setting notification @SystemApi
2020-02-11 20:59:52 +00:00
Brad Ebinger
c71b27c2d5 Merge "Move the UCE APIs to @hide for Android R" 2020-02-11 17:18:20 +00:00
Chalard Jean
6dc9854996 Add a systemapi constructor for NetworkAgent
Bug: 138306002
Bug: 139268426
Test: atest FrameworksNetTests FrameworksWifiTests FrameworksTelephonyTests
      make doc-comment-check-docs
Change-Id: I288ea32fac07a9a486e2ea451a2c9b098446a74c
Merged-In: I288ea32fac07a9a486e2ea451a2c9b098446a74c
2020-02-11 16:26:10 +08:00
Tyler Gunn
32c29d1ee6 Merge "Hide Adhoc conference call API." 2020-02-11 01:40:54 +00:00
Tyler Gunn
a967af5514 Hide Adhoc conference call API.
Marking the adhoc conference call API as @hide.

Test: make -j update-api
Bug: 148165780
Change-Id: I447ec317c66f0c1b4e7a828635b5dcf8b144e32a
2020-02-10 15:19:07 -08:00
Treehugger Robot
88fba38a1c Merge "BluetoothA2dpSink System APIs now require BLUETOOTH_ADMIN permission" 2020-02-10 23:16:52 +00:00
Treehugger Robot
cc89e59203 Merge "Update BluetoothPbap class description to indicate how to create an instance of the class, add intdef to return value of BluetoothPbap#getConnectionState, and move all SystemApis to require the BLUETOOTH_PRIVILEGED permission" 2020-02-10 22:39:57 +00:00
Rahul Sabnis
eaa088f14b BluetoothA2dpSink System APIs now require BLUETOOTH_ADMIN permission
Bug: 149216030
Test: Manual
Change-Id: Ib28c7f3133eb96c1ba0b43c8b140babde699d5f4
2020-02-10 14:02:25 -08:00
Zoey Chen
e6d7525805 Merge "[Settings] To avoid use APIs in IccCard directly, moving APIs into TelephonyManager." 2020-02-08 04:25:32 +00:00
Zoey Chen
3ba74ca897 Merge "[Settings] Expose @hide #setDataAllowedDuringVoiceCall and #isDataAllowedInVoiceCall as @SystemApi" 2020-02-08 04:25:22 +00:00
Treehugger Robot
6c812cc994 Merge "API review cleanups." 2020-02-08 01:57:13 +00:00
Treehugger Robot
59401aab80 Merge changes from topic "lights-manager"
* changes:
  Add LightsManager implementation to LightsService
  Add Lights AIDL HAL support to LightsService
  Rename Light to LogicalLight to avoid namespace conflicts when adding AIDL HAL lights support.
2020-02-08 01:23:29 +00:00
Rahul Sabnis
b0a9a5dfac Update BluetoothPbap class description to indicate how to create an
instance of the class, add intdef to return value of
BluetoothPbap#getConnectionState, and move all SystemApis to require
the BLUETOOTH_PRIVILEGED permission

Bug: 148966894
Test: Manual
Change-Id: I4a798b0a16ab839f2047fc58f21c420cc99b6db6
2020-02-07 17:21:21 -08:00
Malcolm Chen
c27a3f37b1 Expose RESULT_RECEIVER_CONTROLLER_KEY as @SystemApi.
It's used by a @SystemApi as key of it's return bundule. So we
should expose it. Also it's currently linked to BatteryStats.
RESULT_RECEIVER_CONTROLLER_KEY which makes no sense as they are
functionally independent and BatteryStats.RESULT_RECEIVER_CONTROLLER_KEY
is @hide. So also make it a hardcoded String.

Bug: 148116922
Test: build
Change-Id: I7099048c126e88f75cf5bd7e779ddfe923cc1c02
Merged-In: I7099048c126e88f75cf5bd7e779ddfe923cc1c02
2020-02-07 23:07:30 +00:00
Malcolm Chen
7c5e823965 Make Telephony to Setting notification @SystemApi
They are intents and extras used by Setting to monitor certain SIM
change and to pop up dialogs to users.

Bug: 148097978
Test: build
Change-Id: If6965979b5ab15b53f8e81cad895cc2d3dc29e0e
Merged-In: If6965979b5ab15b53f8e81cad895cc2d3dc29e0e
2020-02-07 23:07:11 +00:00
Grace Jia
83cbd8f886 API review cleanups.
1) Make all exposed APIs SystemApi, instead of public APIs.
2) Indicate SipException when errors happen.
3) Change API name from getListOfProfiles to getProfiles

Test: make, atest TeleServiceTests:PhoneGlobalsTest
Bug: 148604927
Change-Id: Idae8353cb27ba8cc461f68e66c5f7fe14ecc9354
2020-02-07 12:20:38 -08:00
Brad Ebinger
d79eca8801 Move the UCE APIs to @hide for Android R
The UCE APIs are not ready to be released in Android R
due to gaps in the API surface for Presence exchange cases.

Bug: 149051280
Test: atest CtsTelephonyTestCases
Change-Id: I2f9cb828c07d7246981424c51d479164512b22a5
2020-02-07 11:01:24 -08:00
Cody Kesting
d222986acd Merge "Fix typo in ConnectivityDiagnosticsManager constant." 2020-02-07 16:57:19 +00:00
Aaron Huang
c8b7cff7f4 Merge "NetworkPolicyManager: Add @SystemApi for mainlne module" 2020-02-07 05:47:45 +00:00
zoey chen
6e4648c718 [Settings] Expose @hide #setDataAllowedDuringVoiceCall and #isDataAllowedInVoiceCall as @SystemApi
Bug: 146107006
Test: make
Change-Id: Ib0e6bfa01db9cfabae7ebcce4548dc885e589144
Merged-In: Ib0e6bfa01db9cfabae7ebcce4548dc885e589144
2020-02-07 11:07:59 +08:00
Ivailo Karamanolev
3e376b79ce Add LightsManager implementation to LightsService
Includes backend code to support LightsManager binder calls and route
them to the HALs.

Bug: 144979010
Bug: 144978691
Bug: 142715294
Change-Id: I0080972620ba7a3fb1197cdd0288287d3cfa8780
Fix: 142230898
Test: atest LightsManagerTest
Test: atest LightsServiceTest
Merged-In: I2db7f2caa432cd1e2389ea5ca6544200ada18675
2020-02-07 02:11:18 +01:00
atrost
8a3cd58882 Add CompatChanges API.
This wraps our existing APIs for isChangeEnabled, and is exposed for
mainline modules to use.
Also upgrading PlatformCompatChangeRule to androidx to match with
frameworks coretests.

Test: http://aosp/1203413
Test: atest android.app.compat.CompatChangesTest
Test: atest com.android.tests.gating.PlatformCompatGatingTest
Bug: 142650523
Change-Id: I12b9436c2ea955e9b74228f150b872d6eb3a1081
2020-02-06 14:42:31 +00:00
zoey chen
183d505f90 [Settings] To avoid use APIs in IccCard directly, moving APIs into TelephonyManager.
IccCard#changeIccLockPassword
IccCard#setIccLockEnabled
IccCard#getIccLockEnabled
Bug: 146983487
Test: manual

Change-Id: I1a3c3b15063ea00d0ca59bd5395f2bca8cdfe391
Merged-In: I1a3c3b15063ea00d0ca59bd5395f2bca8cdfe391
2020-02-06 20:32:10 +08:00
Treehugger Robot
750ab04052 Merge "BluetoothAdapter#connectAllEnabledProfiles and BluetoothAdapter#disconnectAllEnabledProfiles updated to require BLUETOOTH_PRIVILEGED permission and update documentation to indicate connection and disconnection is asynchronous" 2020-02-06 04:36:14 +00:00
Shuo Qian
a4335f0840 Merge "Make hidden API isDataCapable for Telephony" 2020-02-06 04:07:37 +00:00
Rahul Sabnis
966cef37c2 BluetoothAdapter#connectAllEnabledProfiles and
BluetoothAdapter#disconnectAllEnabledProfiles updated to require
BLUETOOTH_PRIVILEGED permission and update documentation to indicate
connection and disconnection is asynchronous

Bug: 147321746
Test: Manual
Change-Id: I961f02a539a247b1397ce4f478b9dc804d9973ab
2020-02-05 16:37:18 -08:00
Malcolm Chen
7521f33c8a Add HomeVisibilityObserver APIs in ActivityManager.
The new API will be @System which is used by Telephony stk app to
monitor foreground activity change.

Bug: 144351078
Test: manual with a test app that registers HomeVisibilityObserver
and monitor its callback.
Change-Id: I2f250cdd53a667b2d89e84e589b0ae0bc94a8aa3
Merged-In: I2f250cdd53a667b2d89e84e589b0ae0bc94a8aa3
2020-02-05 23:32:22 +00:00
Xiangyu/Malcolm Chen
53ae130d31 Merge "Move ACTION_CARRIER_* intent and extras from TelephonyIntents to TelephonyManager." 2020-02-05 23:31:51 +00:00
Jiashen Wang
e37c8d26c2 Merge "Add isEuiccSupportedCountry system API to EuiccManager" 2020-02-05 22:14:06 +00:00
Radhika Agrawal
5867fb23e9 Merge "Add rtp silence detection and inactivity detection to call quality" 2020-02-05 21:37:10 +00:00
nchalko
19f99b96eb Merge "TvProvider API standardization for ATSC3.0 and DVB" 2020-02-05 21:09:42 +00:00
Jack Yu
361cae3630 Merge changes from topics "cbs_area_info", "subscription_id"
* changes:
  Added area info support in cell broadcast service
  Renamed SUB_ID to SUBSCRIPTION_ID
2020-02-05 19:13:54 +00:00
radhika
c3cc7d0324 Add rtp silence detection and inactivity detection to call quality
Test: builds
Bug: b/143307441
Change-Id: Idc9b2077f73a05542ab531e67b41545022ec25a1
Merged-In: Idc9b2077f73a05542ab531e67b41545022ec25a1
2020-02-05 18:53:31 +00:00
Cody Kesting
5c3e7d50cf Fix typo in ConnectivityDiagnosticsManager constant.
This change fixes a typo in the value assigned to the constant
KEY_NETWORK_PROBES_ATTEMPTED_BITMASK, which is defined in
ConnectivityDiagnosticsManager.ConnectivityReport.

Bug: 148939502
Test: compiles
Change-Id: I63863efa8c69593012bf4e95d896db192c6bfb5c
2020-02-05 08:56:48 -08:00
Neil Fuller
f5f137b9d3 Merge "Remove System APIs not required for R" 2020-02-05 11:56:20 +00:00
Aaron Huang
12aeaefeaf Merge "Add setSubscriptionPlans() and getSubscriptionPlans() @SystemApi" 2020-02-05 11:48:26 +00:00
sqian
3ba4afa5d5 Make hidden API isDataCapable for Telephony
Rename isDataCapable to isDataConnectionEnabled as a System API for
 System UI.

Cherry-picking TelephonyManager part of ag/10063635

Test: RILTest; Treehugger; cts
Bug: 147017757
Merged-In: I96b45575eb7f030f3dcb9539c06f8ec25539e2e9
Merged-In: I19ac83f5865e8763cd9414c41d4609f79d0db164
(cherry picked from commit 291415806f)

Change-Id: I96b45575eb7f030f3dcb9539c06f8ec25539e2e9
2020-02-04 18:36:00 -08:00
Jack Yu
d588c33c71 Added area info support in cell broadcast service
Added a broadcast for area info changed event, and
also a get method in cell broadcast service to
retrieve the area info.

Test: Cell broadcast sanity tests
Bug: 141318859

Merged-In: I5995e3c5099a1e49cb0c54d33da1dbfcc94d4037
Change-Id: I5995e3c5099a1e49cb0c54d33da1dbfcc94d4037
(cherry picked from commit afaa71d418)
2020-02-04 17:03:01 -08:00
Rahul Sabnis
6d4004fc61 Merge "Change data type of duration param from int representing seconds to long representing milliseconds in BluetoothAdapter#setScanMode" 2020-02-05 00:41:33 +00:00
Jack Yu
087568092a Renamed SUB_ID to SUBSCRIPTION_ID
In order to be consistent with other existing APIs.

Test: Build
Bug: 146563563

Merged-In: Iac8d9abe3b011485ffe8220d94f25f99d022014b
Change-Id: Iac8d9abe3b011485ffe8220d94f25f99d022014b
(cherry picked from commit e94a7a4f97)
2020-02-04 16:20:44 -08:00
Malcolm Chen
d1a3b37bb9 Move ACTION_CARRIER_* intent and extras from TelephonyIntents to
TelephonyManager.

The purpose is to expose them as @SystemApi as they are used externally.

Bug: 140908357
Test: unittest
Change-Id: I3dabcb853ebbd648b20d97b446db11476780be25
Merged-In: I3dabcb853ebbd648b20d97b446db11476780be25
2020-02-04 23:28:22 +00:00
Rahul Sabnis
99507b5eb3 Change data type of duration param from int representing seconds to long
representing milliseconds in BluetoothAdapter#setScanMode

Bug: 144380530
Test: Manual
Change-Id: I76528478a64d22afefd4ec964d1a78295dd3c94f
2020-02-04 14:29:09 -08:00
Alex Lin
f22d8eac6f Merge "Add public API for EuiccService log dump" 2020-02-04 22:26:53 +00:00
Neil Fuller
4222b7bec8 Remove System APIs not required for R
Test: treehugger
Bug: 148842434
Merged-In: If022a726a058a90cb5446d220628c76800da8e96
Change-Id: If022a726a058a90cb5446d220628c76800da8e96
2020-02-04 21:21:34 +00:00
Jack Yu
eba90e264a Added data coding scheme and location check time support
AT&T requires showing data coding scheme, location check
time, whether shown to the user or not in the test menu.
Expanded database to support this.

Bug: 144152683
Test: Manully sending fake messages and verified database
Merged-In: Ib5b78802e7548da9f92492aae4c94ed3488b5e3d
Change-Id: Ib5b78802e7548da9f92492aae4c94ed3488b5e3d
(cherry picked from commit 641db9a36a)
2020-02-04 10:39:52 -08:00
Anton Hansson
e534a33ca3 Merge "Remove build rules for module-app API" 2020-02-04 15:23:19 +00:00
Neil Fuller
f4e1ac840c Merge "More API council tidy up" 2020-02-04 11:35:11 +00:00
Chalard Jean
f734372173 Merge "Add setSubscriptionOverride() to system API" 2020-02-04 07:07:57 +00:00