Commit Graph

31739 Commits

Author SHA1 Message Date
TreeHugger Robot
61ea220266 Merge "Create SmsManager from a context" 2020-07-29 03:01:30 +00:00
Steven Moreland
fd06eb7bee Merge "Allow module libs to use VINTF AIDL (part II)" into rvc-dev-plus-aosp am: 31457aebae am: 93bdd4451a am: f846f3e206
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12244505

Change-Id: I0234084ef9535c9dec8cc1265b43cff953438ff6
2020-07-28 19:04:01 +00:00
Steven Moreland
f846f3e206 Merge "Allow module libs to use VINTF AIDL (part II)" into rvc-dev-plus-aosp am: 31457aebae am: 93bdd4451a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12244505

Change-Id: I22b494e17c1784df81e8620eb032a73676784d79
2020-07-28 18:47:37 +00:00
Treehugger Robot
deb216c05e Merge "Expose adhoc conference calling API as public." am: 8ebbe3c038 am: fb8f41f0c2 am: e8a4750ac5 am: bb50f0e74c am: d5be65f281
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1368819

Change-Id: I75f11643c333f69e4e27d72caf8b11f1ce5e5c75
2020-07-28 18:37:35 +00:00
Treehugger Robot
d5be65f281 Merge "Expose adhoc conference calling API as public." am: 8ebbe3c038 am: fb8f41f0c2 am: e8a4750ac5 am: bb50f0e74c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1368819

Change-Id: I3c1ba14ebf107ca37baa0c254be72ef3e0e755c1
2020-07-28 18:20:50 +00:00
Steven Moreland
31457aebae Merge "Allow module libs to use VINTF AIDL (part II)" into rvc-dev-plus-aosp 2020-07-28 18:14:20 +00:00
Treehugger Robot
e8a4750ac5 Merge "Expose adhoc conference calling API as public." am: 8ebbe3c038 am: fb8f41f0c2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1368819

Change-Id: Ia5e17f2dbbfbb539f2415348e1ddb960354d3662
2020-07-28 17:41:13 +00:00
Treehugger Robot
8ebbe3c038 Merge "Expose adhoc conference calling API as public." 2020-07-28 17:08:47 +00:00
TreeHugger Robot
5948d5c209 Merge changes from topic "max_bounds"
* changes:
  Verify DisplayArea bounds in WindowMetricsTests
  Add DisplayArea support for WM#getMaximumWindowMetrics
2020-07-28 09:11:34 +00:00
Steven Moreland
e5bd46e639 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
2020-07-28 01:21:13 +00:00
Julia Reynolds
41be51a5cf Merge "Let apps see if their conversations have been demoted" 2020-07-27 18:41:14 +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
Julia Reynolds
cecd53dc71 Let apps see if their conversations have been demoted
Test: cts
Bug: 154140688
Change-Id: Ief3c2535f3f253e60470c63fde9325e06ceda484
2020-07-27 11:31:00 -04:00
Jin Seok Park
d08c338d88 Merge "Add hasEnabledNotificationListener API" 2020-07-26 04:43:02 +00:00
Steven Moreland
298d06f292 Merge "Allow module libs to use VINTF AIDL." 2020-07-24 22:54:24 +00:00
Steven Moreland
d811429b4b Merge "Allow module libs to use VINTF AIDL." into rvc-dev-plus-aosp am: b9440149be am: 88cab6ba53 am: 178e6ff50a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12219679

Change-Id: I4a454f847575eddd84439614a49be4f2ee9e3e1e
2020-07-24 21:39:36 +00:00
Steven Moreland
178e6ff50a Merge "Allow module libs to use VINTF AIDL." into rvc-dev-plus-aosp am: b9440149be am: 88cab6ba53
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12219679

Change-Id: Ib0a14fb8c6fa5d7de1573b440947164d6b0b2a6a
2020-07-24 21:25:52 +00:00
Steven Moreland
95dd53bb5f 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
2020-07-24 18:35:55 +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
Kweku Adams
7d13ed48e0 Merge "Remove dead code." 2020-07-23 17:57:30 +00:00
TreeHugger Robot
f806c211b3 Merge "AudioDeviceInfo: make TYPE_REMOTE_SUBMIX public" 2020-07-23 00:48:26 +00:00
Sergey Nikolaienkov
2aa0647f4d Merge "Add permission for CTS UnsupportedErrorDialogTests" 2020-07-22 12:14:40 +00:00
Sergey Nikolaienkov
9c9fb8870f Merge "Wire test API to reset the state of AppErrors" 2020-07-22 12:14:40 +00:00
Sergey Nikolaienkov
4d8d93b55c Merge "Make ANR dialog settings visible to tests" 2020-07-22 12:14:40 +00:00
Philip P. Moltmann
7ebd559ba9 Create SmsManager from a context
Test: atest CtsAppOpsTestCases:android.app.appops.cts.AppOpsLoggingTest#sendSms
Bug: 161451649, 132365432
Change-Id: I072e13f44f1f7f433ecba8716a6f9b1236275de1
2020-07-20 19:21:23 -07:00
TreeHugger Robot
1241c8709f Merge "Add HapticGenerator." 2020-07-20 20:07:20 +00:00
jiabin
2ea6a26b4d Add HapticGenerator.
Add HapticGenertor, which is an audio effect that can generate haptic
data from audio data.

Bug: 136490803
Test: atest HapticGeneratorTest
Change-Id: Ib677f0ad82ae4a164546300c7a86760cdb6a52b4
2020-07-20 18:00:26 +00:00
Jin Seok Park
e1f4d51d55 Add hasEnabledNotificationListener API
This CL adds a system API to NotificationManager for checking whether
the NotificationListener for the current package name and user id is
enabled or not.

This replaces existing implementation which was using binder calls
directly to NotificationManagerService.

Bug: 160762852
Test: atest CtsMediaHostTestCases:\
    android.media.session.cts.MediaSessionManagerHostTest\
    #testGetActiveSessions_withSession2

-> MediaSessionManager#getActiveSessions verifies call by checking if
the notification listener is currently enabled.

Change-Id: Ic730b0abfe08c40171062421b2015be9cc05310a
2020-07-20 16:01:23 +09:00
Nikita Ioffe
89f7de19c3 Promote NO_ISOLATED_STORAGE app op to SystemApi(MODULE_LIBRARIES)
This app op was introduced to support --no-isolated-storage
instrumentation flag in MediaProvider mainline module. Because it was
very late in the release cycle, app op wasn't exposed as @SystemApi in
rvc-dev, even though there CTS tests written around it, and
MediaProvider module depends on it.

To make things fair, expose it as @SystemApi.

Test: atest CtsScopedStorageHostTest
Bug: 159708202
Change-Id: Ifddf2cb920285eda5f859972937b0f9084fc32a3
2020-07-17 14:59:34 +01: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
Jean-Michel Trivi
c17a2423de AudioDeviceInfo: make TYPE_REMOTE_SUBMIX public
SUBMIX type can be returned by routing query APIs such as
MediaPlayer.getRoutedDevice(), make it public.

Bug: 160819170
Test: atest AudioHostTest#testTwoChannelCapturingCheckSubmixDevice
Change-Id: Ie5854ad86464c40137d0a1b10420116bc5cc270e
2020-07-16 09:58:41 -07:00
Nikolas Havrikov
14ab28f20e Add permission for CTS UnsupportedErrorDialogTests
Bug: 159443507
Test: no
Change-Id: I6a341d1b13393479d35d03f71226c410e17be4e2
2020-07-15 22:42:50 +02:00
Makoto Onuki
1ec5094699 Merge "Proper API hierarchy between MODULE_LIBS and PRIV_APPS system APIs" am: 06b1ba180d am: 1e085a1db4 am: a553a497fd am: 42337f43f0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1360884

Change-Id: Ifb1b9b7aeb1ec6e5e11b4c60be477d7154915b61
2020-07-15 16:22:41 +00:00
Makoto Onuki
a553a497fd Merge "Proper API hierarchy between MODULE_LIBS and PRIV_APPS system APIs" am: 06b1ba180d am: 1e085a1db4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1360884

Change-Id: Ie45f32b2d46c8ac989a4a9242017eb4c2b73484b
2020-07-15 16:00:22 +00: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
Charles Chen
5a24a59d0c Verify DisplayArea bounds in WindowMetricsTests
Also add some test APIs to report max bounds value.

Test: atest WindowMetricsTests
Bug: 151414021
Change-Id: I6d0127925d51d2bd2b2879ce133504a46c66350e
2020-07-15 11:28:44 +08: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
Makoto Onuki
41ccbfb422 Proper API hierarchy between MODULE_LIBS and PRIV_APPS system APIs
Test: build / treehugger
Bug: 146727827
Change-Id: Ie1ad6711c490c679ebcfacd97154380a8810ba1c
2020-07-14 17:46:10 +00:00
Nathan Harold
d8e4cdc656 Merge "Expose MmTelCapabilities#isCapable() as Public API" 2020-07-13 16:55:45 +00:00
Nathan Harold
721cf2550b Merge "Deprecate CellLocation#requestLocationUpdate" am: 277f52a0f4 am: 3153f5efb9 am: ad12e8d8b8 am: a4570afac8 am: 6c4487f9d9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1355809

Change-Id: Ib9df9f512ac32dac1d159f2bdf1bb1d83b2735c5
2020-07-13 02:57:52 +00:00
Nathan Harold
6c4487f9d9 Merge "Deprecate CellLocation#requestLocationUpdate" am: 277f52a0f4 am: 3153f5efb9 am: ad12e8d8b8 am: a4570afac8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1355809

Change-Id: I5578c6535d2d13e819e492661b139f3884703981
2020-07-13 02:41:58 +00:00
Nathan Harold
ad12e8d8b8 Merge "Deprecate CellLocation#requestLocationUpdate" am: 277f52a0f4 am: 3153f5efb9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1355809

Change-Id: I87143f17132186dea7575318d0a4c28c4f3e924c
2020-07-13 02:32:34 +00:00
Nathan Harold
21157d56a9 Expose MmTelCapabilities#isCapable() as Public API
Expose the MmTelCapabilities#isCapable() API to complete
a chain of APIs exposed for debuggability in Android RVC.

Without this API, there is no (public) way for a caller that
receives a capability callback to determine whether a particular
MMTel feature is enabled for a particular IMS Connection.

Bug: 156107100
Test: make update-api && make offline-sdk-docs && make
Test: cts - ImsServiceTest#testCapabilityStatusCallback()
Change-Id: I0a0d72897112460370e6981ae33cef4da6e3ce4b
2020-07-10 21:47:50 +00:00
Nathan Harold
3a47293cb4 Remove Deprecated-At-Birth APIs from PDCS
Two APIs were added as @SystemApi and then @Deprecated within
the same API level (RVC). These methods were never exposed
publicly, and instead were replaced with more-appropriate
named methods that were added to the public API. As such they
were not fully deleted in RVC but were never exposed and expected
to be deleted following SDK finalization. This CL does precisely
that - removes all traces of these methods, as per the will of
the API Council.

-Remove #getDataConnectionLinkProperties()
-Remove #getDataConnectionNetworkType()

Bug: 152787887
Test: make update-api && make
Change-Id: I89463b0bd641e9316f90fe4f535d326f6e74a061
2020-07-09 15:43:34 -07:00
Nikolas Havrikov
79331e77f1 Make ANR dialog settings visible to tests
Bug: 159443507
Test: atest CtsWindowManagerDeviceTestCases:UnsupportedDialogTests on local device

Change-Id: I837ecd008fec7d31fd348f1529148afa5b7aa231
2020-07-09 12:50:35 +00:00
Zim
a813bc1f05 Remove persist.sys.fuse == false code paths
Since Android R, the FUSE prop is always on and FUSE-off is no longer
supported

Test: m
Bug: 160159282
Change-Id: Ia815c39d898b05bf8082ec5b7dfd903cc9e150bc
2020-07-09 11:54:45 +01:00
Jian-Yang Liu
042623ba3b Merge "Added systemui controller to control system bars." into rvc-qpr-dev am: 32fe6cf1d6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12013479

Change-Id: I48e0177ec6f428dcf5a57006d2411437cc720912
2020-07-09 01:45:49 +00:00
JianYang Liu
2c403a6526 Added systemui controller to control system bars.
When config_remoteInsetsControllerControlsSystemBars is true,
DisplaySystemBarsController provides its own policy of how system
bars are displayed for specific packages. Currently limited to
only auto versions of Android.

Bug: 149585273
Test: Manual, atest BarControlPolicyTest, atest InsetsPolicyTest,
      atest DisplaySystemBarsControllerTest
Change-Id: Ie6b1cc3e2760cbc9e48d62dfbd8bc3e23ffca20c
Merged-In: Ie6b1cc3e2760cbc9e48d62dfbd8bc3e23ffca20c
2020-07-08 23:06:14 +00:00
Jian-Yang Liu
d5717c9ef7 Merge "Added systemui controller to control system bars." 2020-07-08 22:46:32 +00:00
JianYang Liu
6d7745e1bc Added systemui controller to control system bars.
When config_remoteInsetsControllerControlsSystemBars is true,
DisplaySystemBarsController provides its own policy of how system
bars are displayed for specific packages. Currently limited to
only auto versions of Android.

Bug: 149585273
Test: Manual, atest BarControlPolicyTest, atest InsetsPolicyTest,
      atest DisplaySystemBarsControllerTest
Change-Id: Ie6b1cc3e2760cbc9e48d62dfbd8bc3e23ffca20c
2020-07-08 20:10:42 +00:00