Commit Graph

31700 Commits

Author SHA1 Message Date
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
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
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
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
Jorim Jaggi
543db32125 Pass in callsite of SurfaceControl constructor explicitly (1/3)
Creating a new Throwable (and filling in the stack trace) can take
up to 150us. Since we do this on the critical path when sending
over SurfaceControl via binder multiple times, this is too much.
Instead, add an option to pass in callsite manually.

Bug: 159056748
Change-Id: I46c339c15a07192d61c4c546e46f260684a47120
Exempt-From-Owner-Approval: Large scale refactor
2020-06-26 13:40:07 +00:00
Jorim Jaggi
d42ab1b938 Pass in callsite of SurfaceControl constructor explicitly (1/3)
Creating a new Throwable (and filling in the stack trace) can take
up to 150us. Since we do this on the critical path when sending
over SurfaceControl via binder multiple times, this is too much.
Instead, add an option to pass in callsite manually.

Bug: 159056748
Change-Id: I46c339c15a07192d61c4c546e46f260684a47120
Merged-In: I46c339c15a07192d61c4c546e46f260684a47120
Exempt-From-Owner-Approval: Large scale refactor
2020-06-26 15:35:23 +02:00
Changwan Ryu
47c0a48089 [WebView] Listen to window insets change
Overriding these methods in preparation for notch and safe area implementation
for WebView.

A corresponding implementation for Chrome app does this:
https://source.chromium.org/chromium/chromium/src/+/master:components/browser_ui/widget/android/java/src/org/chromium/components/browser_ui/widget/InsetObserverView.java;l=179;drc=b17e62321db0f69a9131d3bb87ab9cef502a0eaf?originalUrl=https:%2F%2Fcs.chromium.org%2F

An alternative would be to call View#setOnApplyWindowInsetsListener(),
but that might not be as straightforward and might conflict with app's own
usage around windowinsets.

Returning null from a default implementation and use super method until
we can actually implement it in the chromium repo.

(Note: I would like to merge this to R if possible.)

Bug: 159610496
Test: CL does not break build/test.
Change-Id: Ic0421d7347e8091e02af6c9d5a24fdb334f37c47
2020-06-25 17:15:26 -07:00
Sally Yuen
f55b5b9620 Unhide global action constants
Bug: 158004529
Test: Builds
Change-Id: Ida65a458767417536975519b89afc2a81a9034e9
2020-06-24 18:03:41 +00:00
Svetoslav Ganov
3e38462491 Merge "Handle reperenting of InlineContentView" into rvc-dev am: f8b9ddea71 am: a962563758 am: bf50afcb4e am: e6e30d2948
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11907687

Change-Id: Id8c4a07af383ef3f58bad760b28fdb5a69dc3e03
2020-06-24 07:22:38 +00:00
Svetoslav Ganov
bf50afcb4e Merge "Handle reperenting of InlineContentView" into rvc-dev am: f8b9ddea71 am: a962563758
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11907687

Change-Id: Ia18fc12a4015296d59985b376b159a1560717d90
2020-06-24 06:56:18 +00:00
Svetoslav Ganov
0de1884aef Merge "Handle reperenting of InlineContentView" into rvc-dev am: f8b9ddea71
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11907687

Change-Id: I9b0919075bc6e29cf4beb6d2e92097d74ac4d99b
2020-06-24 06:44:18 +00:00
Svetoslav Ganov
f8b9ddea71 Merge "Handle reperenting of InlineContentView" into rvc-dev 2020-06-24 06:28:59 +00:00
Svet Ganov
a5b4990d96 Handle reperenting of InlineContentView
When an inline content view is reparented its surface is
getting offset and not being under the view itelf. This is
because the surface views manage the postion of their
surface and are assuming a location based off the window's
surface position. However after a reparenting the inline
content view's surface position becomes relative to that
of the new parent surface view. For example, two surface
views at position (10, 10) being reparented would reslut
in the surface of the parent being at (10, 10) while the
surface of the child being at (20, 20) while both views
would still be at (10, 10).

To address this we are intecepting when an inline content
view's surface is reparented and get a weak reference to
the view that owns the new parent surface. We then position
the inline content view's surface relative to the view that
owns the new parent surface, i.e. we position the surface
such that its location would not change because of the
fact it is being reparented.

While at this make sure the inline content view is marked
as not important for a11y to ernsure the a11y plugins don't
try to click on the view tree in the app's process but
insted on the views in the remote proccess, i.e. on the
embedded view tree.

bug:153826463

Test: atest android.widget.cts.inline.InlineContentViewTest#testReparenting

Change-Id: I2cff4b88d404a740bc447668e948eabccad084d2
2020-06-24 06:27:17 +00:00
Joanne Chung
1a990d9656 Merge "Made AutofillId.withoutSession is testable." into rvc-dev am: 234a31e2f5 am: d199a42291
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11716078

Change-Id: I0310cca11efa125868f8f3a981912874e38a1110
2020-06-23 23:10:58 +00:00
Joanne Chung
4d616e1062 Merge "Made AutofillId.withoutSession is testable." into rvc-dev am: 234a31e2f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11716078

Change-Id: I10153e22b7540c53e2c00d4a0b8d5f36409a405e
2020-06-23 23:00:38 +00:00
Joanne Chung
234a31e2f5 Merge "Made AutofillId.withoutSession is testable." into rvc-dev 2020-06-23 22:56:59 +00:00
TreeHugger Robot
9bc8e57bbe Merge changes from topic "featureIdCleanup"
* changes:
  Do not allow invalid attribution tags
  Remove legacy support for "featureId".
2020-06-23 16:20:57 +00:00
Joanne Chung
24abde551e Made AutofillId.withoutSession is testable.
We add new test in stage-aosp-rvc-ts-dev for R2, we need make this API
testable.

Bug: 156408900
Test: atest android.autofillservice.cts.inline.\
InlineAugmentedWebViewActivityTest

Change-Id: I27d1227f858aac83b3de1cb8ef719edf177524dc
Merged-In: I27d1227f858aac83b3de1cb8ef719edf177524dc
2020-06-23 00:38:40 +00:00
Galia Peycheva
e01e83861b Merge "Make config_assistantOnTopOfDream a TestApi" into rvc-dev am: 60d5549eda am: 991261951a am: 5b255ed02a am: 07ad38c1ca
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11931079

Change-Id: Ic97abe3f8434f4f894c7ecb654f7e1d158678197
2020-06-22 11:03:56 +00:00
Galia Peycheva
991261951a Merge "Make config_assistantOnTopOfDream a TestApi" into rvc-dev am: 60d5549eda
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11931079

Change-Id: Ia2bcaf8dad86cc4f35211ba88e922a14af4c3ccb
2020-06-22 10:13:24 +00:00
Philip P. Moltmann
a51c2ef3ea Do not allow invalid attribution tags
Fixes: 151105954
Test: atest CtsAppOpsTestCases
Change-Id: I2b210172bd042300cc8aa54edf3f68b6aa3420fe
2020-06-19 19:57:27 -07:00
Jack Yu
ca0f56c553 Merge "Removed the hardcoded database column string" 2020-06-19 17:23:32 +00:00
Galia Peycheva
ce6270f532 Make config_assistantOnTopOfDream a TestApi
Test: atest AssistantStackTests
Bug: 158117282
Change-Id: I154e8b7d3fbf842fa9f1bef82a59193550af5620
2020-06-19 16:25:58 +02:00
Jack Yu
322467efec Removed the hardcoded database column string
Made the ETWS isPrimary column name a system API

Bug: 157699377
Test: CtsTelephonyTestCases & CellBroadcastServiceTests
Change-Id: Ic4c78a12fb7e85328e6dea31b927f5f39420fbea
2020-06-18 17:17:58 -07:00
Hall Liu
3293dd1e64 Merge "Mark TelecomManager#isRinging as a TestApi" am: 94091aceaa am: 1ab98f185e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1340753

Change-Id: Ic643ef7b31f62a6771c1f1ba5aa0e4c0a16e7e0c
2020-06-17 01:34:55 +00: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
Les Lee
8d0299b31f Merge "wifi: Add bssid in SoftApInfo" 2020-06-16 15:14:09 +00:00