Commit Graph

31724 Commits

Author SHA1 Message Date
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
Julia Reynolds
41be51a5cf Merge "Let apps see if their conversations have been demoted" 2020-07-27 18:41:14 +00: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
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
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
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
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
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
Darryl Johnson
ed1f9947f5 Merge "Ensure split-screen support isn't reported on devices with small displays." 2020-07-08 15:21:43 +00:00
Nikolas Havrikov
045951b133 Wire test API to reset the state of AppErrors
Bug: 159443507
Test: Built and flashed onto local adt-3 device
Test: Ran tests from ag/12034683
Test: Attempted to execute resetAppErrors via
  adb shell service call activity 219
Change-Id: I3723d9aae18679b4292c6efb8549563063d64b98
2020-07-08 10:45:18 +02:00
TreeHugger Robot
dadc0c5a72 Merge "Broadcast events for AOA handshake" 2020-07-07 07:48:29 +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
Darryl L Johnson
138c24fb13 Ensure split-screen support isn't reported on devices with small displays.
Several partners with devices that have small displays have run into
issues w/ CTS-on-GSI testing as these builds hardcode support for
split-screen. This prevents split-screen from being reported as
supported if the display isn't compatible according to the CDD.

Bug: 158310372
Test: android.server.wm.SplitScreenTests#testMinimumDeviceSize()

Change-Id: I0dfd6caca5116dccc115d64b755998171abe831f
2020-07-06 09:41:50 -07:00
Nikolas Havrikov
d2560e2f2c Merge "Update test-lint-baseline with new checks from S" 2020-07-02 16:52:37 +00:00
Nikolas Havrikov
87ea5e1717 Update test-lint-baseline with new checks from S
The previous version of the file was generated from R
and was missing baseline entries for lint warnings
that were added to AOSP since March 2020.

Bug: 160405597
Test: built locally
Change-Id: If17fa952e9ca5b246eba9f4556b7ff13e5dc18d6
2020-07-02 15:52:30 +00:00
Michal Olech
eacebb90f6 CEC: Add @CallbackExecutor to HdmiControlManager Listener methods
API guidelines recommend adding ability to set the executor

Bug: 156046799
Test: atest HdmiControlServiceTest
Change-Id: I1f6dde6efc498a112ac7da2c61c36fcc2afa6638
2020-07-01 15:28:41 +02:00
rickyniu
e62f703e4c Broadcast events for AOA handshake
Broadcast intents on below control request

Log both the request and response for 51 control request (Get Protocol)
Log both the request and response for 52 control request (Identifying information)
Log both the request and response for 53 control request (Start accessory mode)

bug: 139264039

Test: Check the broadcast intent could be received
Change-Id: I7c8db41ee05398200e235cf10dde96ba89b306e8
2020-07-01 21:19:09 +08:00
lesl
2c8cee82f5 wifi: Add supported channel list in SoftApCapability
Support API: get current supported channel list

Bug: 151189102
Test: atest frameworks/base/wifi/tests
Change-Id: I2decc0764243fb61e3b42b83eb04f83fab2270db
2020-06-29 16:54:47 +08:00
Jorim Jaggi
7a9fa4689a Merge "Pass in callsite of SurfaceControl constructor explicitly (1/3)" into rvc-dev am: 37cf2279c9 am: 3f8fc80e42
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11920862

Change-Id: I2f30c74dab0cf842a5e06257c357cdb23798397a
2020-06-27 00:28:22 +00:00
Jorim Jaggi
41bd44e606 Merge "Pass in callsite of SurfaceControl constructor explicitly (1/3)" into rvc-dev am: 37cf2279c9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11920862

Change-Id: I19b6f83b3777bfeccbe90f1c531efcc59e41f54e
2020-06-27 00:14:24 +00:00
Sally Yuen
798d4cbf68 Merge "Unhide global action constants" 2020-06-26 17:08:04 +00:00
Jorim Jaggi
067e04be4d Merge "Pass in callsite of SurfaceControl constructor explicitly (1/3)" 2020-06-26 16:19:04 +00:00
Changwan Ryu
02f44fdb96 Merge "[WebView] Listen to window insets change" 2020-06-26 16:13:26 +00:00