Commit Graph

27146 Commits

Author SHA1 Message Date
Treehugger Robot
e3b0b6d007 Merge "Parcelable getStability SystemApi MODULE_LIBRARIES" 2020-08-10 20:22:05 +00:00
Steven Moreland
7542475521 Parcelable getStability SystemApi MODULE_LIBRARIES
This method is intentionally overridden by subclasses. The
infrastructure doesn't detect that this is happening, but we should
still annotate this as part of the API.

As requested by API review council.

Bug: 162811168
Test: build only
Change-Id: I27714a93b71108cc0cc62fc858c260e2a6920ba9
2020-08-06 21:22:15 +00:00
Peter Wang
8ba18c0508 Merge "[Telephony Mainline] Rename getActiveAndHiddenSubscriptionIdList and guard with permission" 2020-07-31 08:43:44 +00:00
Treehugger Robot
1054fd8e86 Merge "Allow module libs to use VINTF AIDL (part II)" 2020-07-28 19:25:45 +00:00
Treehugger Robot
8ebbe3c038 Merge "Expose adhoc conference calling API as public." 2020-07-28 17:08:47 +00:00
Steven Moreland
291348786a Allow module libs to use VINTF AIDL (part II)
Allow parcelables to be compiled which report VINTF stability.

Bug: 161501127
Test: atest aidl_integration_test
Change-Id: Idc2acb28ac0475ee69385487c7ef619951f93516
Merged-In: Idc2acb28ac0475ee69385487c7ef619951f93516
2020-07-28 01:47:10 +00:00
Grace Jia
8587ee5cd5 Expose adhoc conference calling API as public.
Bug: 159944852
Test: make
Change-Id: I2cf39a6fd8a02ca4f2d0c83c484ab12bb13f74c3
2020-07-27 11:18:36 -07:00
Steven Moreland
298d06f292 Merge "Allow module libs to use VINTF AIDL." 2020-07-24 22:54:24 +00:00
Steven Moreland
a7fb8cb669 Allow module libs to use VINTF AIDL.
Currently a native APEX can get and use a VINTF AIDL. However, this
can't be passed over JNI to be used by Java code.

This does not open VINTF AIDLs to any type of apps, where AIDL as an API
is completely disallowed. Also, no Java ServiceManager APIs are
available, and they couldn't be until b/139325468 is fixed.

Bug: 161501127
Test: atest binderVendorDoubleLoadTest

Change-Id: I1ab977248b1c39a7d08e0ca34389a7ba168c05b0
Merged-In: I1ab977248b1c39a7d08e0ca34389a7ba168c05b0
2020-07-24 18:12:19 +00:00
Treehugger Robot
3846b1e2c2 Merge "[DO NOT MERGE] Rollup changes from R related to CertInstaller and KeyChain" 2020-07-17 08:28:38 +00:00
Peter Wang
c061cdf467 [Telephony Mainline] Rename getActiveAndHiddenSubscriptionIdList and
guard with permission

Bug: 150878235
Fix: 150878235
Test: Build
Change-Id: I7f3b1f5170e032336d9b39b322c49e2b92573586
Merged-In: I7f3b1f5170e032336d9b39b322c49e2b92573586
2020-07-16 02:01:06 -07:00
Rubin Xu
ac51bf8a40 [DO NOT MERGE] Rollup changes from R related to CertInstaller and KeyChain
This change includes the following commits that are related to
CertInstaller and KeyChain:

7a5c8fe4afd KeyChain: Unify manual and programmatic key installation flows
a894225c7da Added functionality to select type of certificate to be installed from the Settings app
a9131939a35 Add KeyChain.KEY_ALIAS_SELECTION_DENIED constant.
485be505f19 Fix KeyChain.KEY_ALIAS_SELECTION_DENIED

Bug: 161347472
Test: builds & manual testing
Change-Id: I560bade479b41a5b88f81ea6dfdecba689c2f4ad
2020-07-15 15:50:14 +01:00
Makoto Onuki
a13287f573 Proper API hierarchy between MODULE_LIBS and PRIV_APPS system APIs
Test: build / treehugger
Bug: 146727827
Exempt-From-Owner-Approval: Cherry-picking from goog/master to aosp/master
Merged-in: Ie1ad6711c490c679ebcfacd97154380a8810ba1c
Change-Id: Ie1ad6711c490c679ebcfacd97154380a8810ba1c
2020-07-15 01:36:38 +00:00
Nathan Harold
bf3fff073f Deprecate CellLocation#requestLocationUpdate
Remove this method, which is undesirable, has unfortunate
side effects, and which is a worse way of getting the current
location than other methods such as TelephonyManager#getAllCellInfo()
(since KK) and TelephonyManager#requestCellInfoUpdate() (since QT/11).

Bug: 152648516
Test: make update-api && make (docstring-only change)
Change-Id: I3c7d345abcdd8c35cf539d33166ddf76ba987b1c
2020-07-06 13:54:42 -07:00
Hall Liu
ae6a918ba9 Mark TelecomManager#isRinging as a TestApi
Bug: 150320750
Test: atest BackgroundCallAudioTest
Change-Id: I048960feb97cd6cf081056ee649e7ea8dacdc8e3
Merged-In: I048960feb97cd6cf081056ee649e7ea8dacdc8e3
2020-06-16 16:52:24 -07:00
Hall Liu
6f68b4bf53 Merge "Rename addServiceAnnouncement-related methods" 2020-06-12 22:47:53 +00:00
Adrian Roos
0f06c99d3a API: Remove ViewDebug.ExportedProperty and CapturedViewProperty from current.txt
Bug: 144284873
Test: make checkapi
Change-Id: I99ed93e96f7465f1f7c9a32c3715a874055dc809
Merged-In: I99ed93e96f7465f1f7c9a32c3715a874055dc809
2020-06-09 15:14:18 +02:00
Hall Liu
70afad6952 Rename addServiceAnnouncement-related methods
Address feedback on the API

Fixes: 155926142
Test: CTS
Change-Id: I69e17faf4d09ab686fdd97975bc7f069597b87b3
2020-06-08 16:32:47 -07:00
Charles Munger
e73a6a704e Deprecate public PackageManager constructor.
BUG=63112905

Change-Id: I0277737eb9e683073f27d2ddea30c93f78ec4b91
2020-06-08 17:37:31 +00:00
Makoto Onuki
2ba0a25175 Merge "Update api-lint baseline for NO_SETTINGS_PROVIDER" 2020-05-28 17:02:57 +00:00
Zach Johnson
61a01fb0ca Add NAMESPACE_BLUETOOTH for bluetooth feature experiments
Exempt-From-Owner-Approval: dianne approved, but from her android.com account instead of google.com account
Test: compile
Bug: 156757711
Merged-In: I330b8cc5aeb14ebcc15fb88c605ac72770497040
Change-Id: I330b8cc5aeb14ebcc15fb88c605ac72770497040
2020-05-27 03:39:06 +00:00
Makoto Onuki
7821658dfb Update api-lint baseline for NO_SETTINGS_PROVIDER
Bug: 151454839
Test: See the other CL in the topic

Merged-in: I4e1d6c419c79663a47341cf26d5229ec17b9ca01
Change-Id: I4e1d6c419c79663a47341cf26d5229ec17b9ca01
2020-05-26 17:16:31 -07:00
Dorin Drimus
9d5b804ea3 Attest device base properties
Add API to allow inclusion of device base properties to the
attestation certificate generated with a Key in Keystore.

Test: atest KeyAttestationTest
Bug: 152945378

Change-Id: Iaf282709f800501aa4c988ebf51cf3238583f9b6
2020-05-15 07:56:05 +00:00
Cody Kesting
655b811c3d Merge "Create TestApi for simulating a Data Stall on ConnectivityService." 2020-05-12 16:52:35 +00:00
Jack Yu
de8b8c39e2 Added a new capability for temporarily unmetered network.
Added a new network capability TEMOPORARILY_NOT_METERED to support
the case that a network can temporarily become unmetered. This
allows carriers to deploy unmetered 5G network. When devices
camp on 5G network, this capability will be dynamically added
to the network and will be removed once leaving 5G coverage.

Bug: 153081494
Test: Manual
Change-Id: I10e26cb0852e67f614e7b9c4e49f95e078602e21
Merged-In: I10e26cb0852e67f614e7b9c4e49f95e078602e21
2020-05-06 13:13:45 -07:00
Hall Liu
1ba0bc20b9 Merge "Add the addServiceAnnouncement API for EMBMS" 2020-05-05 20:42:31 +00:00
Hall Liu
4343998de3 Add the addServiceAnnouncement API for EMBMS
Add addServiceAnnouncement to MbmsDownloadSession, allowing apps to add
service announcements from group call servers and receive information
about available files via the MbmsDownloadSession API surface.

Fixes: 144368478
Test: CTS
Change-Id: I760400f56219879fe71d0115042a3be2f83cef90
Merged-In: I760400f56219879fe71d0115042a3be2f83cef90
2020-05-05 01:58:57 +00:00
Treehugger Robot
c042e44813 Merge "API to get hardware variant (SKU)" 2020-04-29 21:29:37 +00:00
Brad Ebinger
12df9e3d69 Merge "Using RegistrationManager was causing unintended public APIs" 2020-04-29 17:07:04 +00:00
Cody Kesting
5228aad2c1 Create TestApi for simulating a Data Stall on ConnectivityService.
This change adds a TestApi for simulating a Data Stall to
ConnectivityService. This allows for Data Stalls to be triggered without
having to manipulate the signals used by NetworkMonitor . This also
allows NetworkMonitor to update the ways it detects Data Stalls without
affecting CTS tests for ConnectivityDiagnosticsManager.

Bug: 148032944
Test: atest ConnectivityDiagnosticsManagerTest
Change-Id: Icad439efa2ab4c872c21d3ee6ceaae8c5b49f18d
2020-04-27 20:55:00 -07:00
Brad Ebinger
0cb1eda634 Using RegistrationManager was causing unintended public APIs
Remove the dependency on this interface until it is intended
to be public.

Fixes: 153908410
Fixes: 155097858
Test: atest CtsTelephonyTestCases
Merged-In: Iad82b7d06738468861bd49164fbb4b4dafb8c014
Change-Id: Iad82b7d06738468861bd49164fbb4b4dafb8c014
2020-04-27 18:05:17 -07:00
Hall Liu
6884145ba3 Unhide and update documentation for DisconnectCause
Unhide several constants and update the documentation for
android.telephony.DisconnectCause to reflect where it's being used.

Fixes: 154826441
Test: build
Change-Id: Ib3177367519a704bb469bc494f686c96fb516b85
2020-04-27 17:57:17 -07:00
Robin Lee
18556095b9 API to get hardware variant (SKU)
Bug: 151157621
Test: atest android.os.cts.BuildTest
Change-Id: I39b97f5ca3db25724bc50e7f0bbd177f6dc8cc02
2020-04-27 18:54:04 +00:00
Hall Liu
233ee8126c Merge "Expose android.telephony.DisconnectCause" 2020-04-22 23:44:02 +00:00
Tyler Gunn
988ca64c3d Merge "Hide adhoc conference APIs." 2020-04-22 19:44:50 +00:00
Tyler Gunn
2c1bef9037 Hide adhoc conference APIs.
Most of this was previously hidden; these last stragglers were missed.

Test: make update-api ; verify hidden
Bug: 152394802
Fixes: 153376610
Merged-In: I90e05379d3c779bdc6b64e3ff68513bb3f302456
Change-Id: I41bda5b8ad368e1c88e4dd9e45d978a111a22e53
2020-04-22 16:08:28 +00:00
Hall Liu
04ca56ddc6 Expose android.telephony.DisconnectCause
Expose these constants since they're referred to by a public carrier
config key.

Fixes: 145663507
Test: compile
Change-Id: I276761170b3cf5d740f7dbe945834934082a1428
Merged-In: I276761170b3cf5d740f7dbe945834934082a1428
2020-04-22 00:35:38 +00:00
Jack Yu
ecfb37b868 Renamed DisplayInfo to TelephonyDisplayInfo
To reduce ambiguity with android.view.DisplayInfo.

Test: Telephony sanity tests + unit tests
Bug: 151101989
Merged-In: Ic507b6bf082ca5510ff6d1dcde501f5be9ef074f
Change-Id: Ic507b6bf082ca5510ff6d1dcde501f5be9ef074f
(cherry picked from commit ac3ca33567)
2020-04-20 09:22:33 -07:00
Sarah Chin
3ff26a3bed Update Bands API
Test: build
Bug: 151842542
Change-Id: Ib033758d469b9b485eb7cce6c026b5a649e6a6fa
Merged-In: Ib033758d469b9b485eb7cce6c026b5a649e6a6fa
2020-04-14 18:07:55 -07:00
Amit Mahajan
f360f2cf05 Exposing TelephonyManager.isIccLockEnabled as a system API.
This was recently removed as part of un-exposing telephony
mainline related APIs (b/146983487), but being added back in R as GMSCore
already uses it (b/151742706).

Test: TH
Bug: 151742706
Bug: 146983487
Merged-in: If4e8e87c7dfbb261ee3abfec2a4774980c24d0c2
Change-Id: If4e8e87c7dfbb261ee3abfec2a4774980c24d0c2
(cherry picked from commit 1c6679a3ad)
2020-04-14 14:41:56 -07:00
Amit Mahajan
c8c1919abe Un-expose LISTEN_ALWAYS_REPORTED_SIGNAL_STRENGTH for R.
Test: TH
Bug: 147322848
Merged-in: Ie8e4842264eb47e09397c9e56355d00c732c86c1
Change-Id: Ie8e4842264eb47e09397c9e56355d00c732c86c1
(cherry picked from commit aed5beae53)
2020-04-14 14:34:40 -07:00
Amit Mahajan
6b2eddec32 Un-expose ACTION_SERVICE_PROVIDERS_UPDATED.
Will be exposed/reworked on in S.

Test: basic sanity
Bug: 147921202
Merged-in: Iab4974f9cd7cecde1ef6eba35c320101a288b481
Change-Id: Iab4974f9cd7cecde1ef6eba35c320101a288b481
(cherry picked from commit 13a8d14fcd)
2020-04-14 14:28:01 -07:00
Tyler Gunn
9a3201583a Hide car barring with password API.
Not needed in R.

Test: Build APIs
Bug: 148184879
Change-Id: I036980c2e565bf4f84e51b028d0b6938b7afff97
2020-04-08 15:42:39 -07:00
Xiangyu/Malcolm Chen
349a19d904 Merge "Remove @ModemCount enum definitions." 2020-04-07 23:45:33 +00:00
Xiangyu/Malcolm Chen
beccb937dd Merge "Hide APIs exposed for Telephony mainline which is no longer needed in R." 2020-04-07 23:45:00 +00:00
Eric Laurent
f340f3a01d Merge changes I3aab572e,Iff9abda2
* changes:
  [AudioServer][Strategies] Fix Min/Max index overwritting
  AudioSystem: add annotation on API used by CTS media
2020-04-07 21:08:45 +00:00
François Gaffie
adcbf9004a AudioSystem: add annotation on API used by CTS media
Add @TestApi for the class so some methods and
constants can be visible to test API.
  Also @hide for all other members of the class
that are not @TestApi, as they are exposed to the
test API visibility.

Bug: 136121584
Test: run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioProductStrategyTest
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioVolumeGroupTest
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioVolumeGroupChangeHandlerTest
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioManagerTest#testPermissionsForVolumePerAttributes
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioManagerTest#testGetAndValidateProductStrategies
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioManagerTest#testGetAndValidateVolumeGroups
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioManagerTest#testSetGetVolumePerAttributesWithInvalidAttributes
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioManagerTest#testSetGetVolumePerAttributes
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioManagerTest#testVolumeGroupCallback
Signed-off-by: François Gaffie <francois.gaffie@renault.com>

Change-Id: Iff9abda2cf971d9c234dcf7df7c2b9a4ad5294c3
Merged-In: Iff9abda2cf971d9c234dcf7df7c2b9a4ad5294c3
2020-04-07 18:07:26 +00:00
Daniel Bright
30970c1745 Merge "Remove simColors from public.xml and rename" 2020-04-06 19:49:55 +00:00
Malcolm Chen
4c96811356 Remove @ModemCount enum definitions.
Per API council's feedback, they are not needed. Replacing enums
with integers 0, 1, 2, 3.

Bug: 143652732
Test: build
Change-Id: Id9e87ea28a2f31e1aa842424770096e16f1cb208
Merged-In: Id9e87ea28a2f31e1aa842424770096e16f1cb208
2020-04-02 15:33:57 -07:00
Chalard Jean
90c292b13e Merge changes from topics "api-fix-networkagent", "satisfiedby"
* changes:
  Rename satisfiedBy into canBeSatisfiedBy
  Address further API council comments.
2020-04-02 05:51:02 +00:00