Commit Graph

469494 Commits

Author SHA1 Message Date
Automerger Merge Worker
a2e4315499 Merge "Adding system usages to car volume settings" into rvc-dev am: 574bb77823
Change-Id: I816f08e40b023ea2d32456627cad0c0bb45e1f56
2020-03-02 18:39:25 +00:00
Hayden Gomes
574bb77823 Merge "Adding system usages to car volume settings" into rvc-dev 2020-03-02 18:09:34 +00:00
Automerger Merge Worker
ae84ef6cc1 Merge "CellularBatteryStats: Address API council feedback" into rvc-dev am: be50af2116
Change-Id: I3f37eec1a0c03111ed0ce145525f0fe6df1fe7ea
2020-03-02 17:56:21 +00:00
TreeHugger Robot
be50af2116 Merge "CellularBatteryStats: Address API council feedback" into rvc-dev 2020-03-02 17:40:09 +00:00
Automerger Merge Worker
da354323cc Merge "Fix TaskSnapshot tests when low res is disabled" into rvc-dev am: baed20e42f
Change-Id: I403e3601cdb899a39a6d154eb453eea4456cea08
2020-03-02 17:26:40 +00:00
Automerger Merge Worker
bf34fc5f42 Merge "Use TaskFactory to create ActivityStack." into rvc-dev am: 967943d31f
Change-Id: I127f8180ac66dfe13b3a9179e592305490e5df46
2020-03-02 17:26:30 +00:00
Automerger Merge Worker
a8f587a48f Merge "Add @RequiresPemission compat framework APIs." into rvc-dev am: 81958ce9b4
Change-Id: Ie3dd5d4a5d8b81789ea4a1894c2ddec84bc4ffcd
2020-03-02 17:26:20 +00:00
Peter Kalauskas
baed20e42f Merge "Fix TaskSnapshot tests when low res is disabled" into rvc-dev 2020-03-02 17:25:22 +00:00
Garfield Tan
967943d31f Merge "Use TaskFactory to create ActivityStack." into rvc-dev 2020-03-02 17:20:09 +00:00
TreeHugger Robot
81958ce9b4 Merge "Add @RequiresPemission compat framework APIs." into rvc-dev 2020-03-02 17:11:55 +00:00
Automerger Merge Worker
4e71e80108 Merge "Fix overlaying shared libraries" into rvc-dev am: dc65c78fcf
Change-Id: Iac8f106fe0171beb54d9bb5de34de83979fc7658
2020-03-02 17:04:27 +00:00
Ryan Mitchell
dc65c78fcf Merge "Fix overlaying shared libraries" into rvc-dev 2020-03-02 16:51:56 +00:00
Automerger Merge Worker
285e379c39 Merge "Clear calling identity in StorageManagerService#onAppopsChanged" into rvc-dev am: a38ba93e26
Change-Id: I4f34ce12c9b70b7f2f0d3c4e5d47858873c6ac53
2020-03-02 14:53:22 +00:00
Zimuzo Ezeozue
a38ba93e26 Merge "Clear calling identity in StorageManagerService#onAppopsChanged" into rvc-dev 2020-03-02 14:45:19 +00:00
Automerger Merge Worker
bbcdc027be Merge "Refine adjustLayoutParamsForCompatibility about fitting insets" into rvc-dev am: ec2c4dfffe
Change-Id: Ifaab70a488933b31fb8a8ae39d549d6664dfdb7a
2020-03-02 14:45:15 +00:00
Automerger Merge Worker
370809e2b1 Merge changes If5ccacdd,I381a083d into rvc-dev am: c9035d7d43
Change-Id: Ib0f9c8921380f98b7a4d9206c4b08f5b5fa7cb39
2020-03-02 14:44:53 +00:00
Tiger Huang
ec2c4dfffe Merge "Refine adjustLayoutParamsForCompatibility about fitting insets" into rvc-dev 2020-03-02 14:33:39 +00:00
Tiger Huang
c9035d7d43 Merge changes If5ccacdd,I381a083d into rvc-dev
* changes:
  Unhide API: WindowInsets.Type#displayCutout()
  Make display cutout can produce insets
2020-03-02 14:32:21 +00:00
Automerger Merge Worker
6fd65ded6b Merge "Add Android/data mounting along with obb mounting in zygote" into rvc-dev am: bd04b1a7ea
Change-Id: Ieb9cb13f6a92fd555ddf49d5aaeb7f8b0c687e27
2020-03-02 13:47:13 +00:00
TreeHugger Robot
bd04b1a7ea Merge "Add Android/data mounting along with obb mounting in zygote" into rvc-dev 2020-03-02 13:35:27 +00:00
atrost
7bc6bec6a6 Add @RequiresPemission compat framework APIs.
The permission check is already implemented server side.

Test: m
Bug: 150471082
Change-Id: I63d807be84bccb237f69562cdbce22f99a964d1a
2020-03-02 13:20:23 +00:00
Automerger Merge Worker
e71b948ba9 Merge "Do not prefetching accessibility nodes while a view is scrolling" into rvc-dev am: 7fc16f7c32
Change-Id: If89fcb3809f15fd1e6593956c9cbb37ffa20c6c5
2020-03-02 12:32:13 +00:00
Tiger Huang
5fb9ab7ddf Refine adjustLayoutParamsForCompatibility about fitting insets
By the compatible logic in DisplayPolicy.layoutWidnowLw(), if a regular
window (non-TYPE_STATUS_BAR_PANEL, non-TYPE_TOAST, and
non-TYPE_SYSTEM_ALERT) doesn't extend into any of system bars, it should
fit IME.

The logic was implemented by pf.set(displayFrames.mContent) in the
legacy insets mode, where mContent would be adjusted after processing
IME.

Fix: 149838078
Test: Steps in the target issue
Test: atest ViewRootImplTest
Change-Id: I6eb685fa1e3ad9789621e5647fc490300054db8b
2020-03-02 20:19:18 +08:00
Rhed Jao
7fc16f7c32 Merge "Do not prefetching accessibility nodes while a view is scrolling" into rvc-dev 2020-03-02 12:18:24 +00:00
Automerger Merge Worker
9d1924bed0 Merge "Override phenotype flags during tests" into rvc-dev am: 37931b4671
Change-Id: I34a828cff79c86051fa08d6e048a12784344ed4d
2020-03-02 11:49:00 +00:00
JW Wang
37931b4671 Merge "Override phenotype flags during tests" into rvc-dev 2020-03-02 11:28:18 +00:00
Ricky Wai
e66d60983e Add Android/data mounting along with obb mounting in zygote
We should mount Android/data also, not only Android/obb.

Test: After flag is enabled, AdoptableHostTest still pass.
Bug: 148049767
Bug: 150584566
Change-Id: Ie34f08d5764ca3f06577b2fb268c6cffe40f1b52
Merged-In: Ie34f08d5764ca3f06577b2fb268c6cffe40f1b52
(cherry picked from commit 4213440497)
2020-03-02 10:58:55 +00:00
Automerger Merge Worker
19b9c7d4cb Merge "MediaRouter: Cleanup MediaRouter2Manager APIs" into rvc-dev am: f8ac47cdae
Change-Id: I037eeaae2cf65d769403f1eaecd92843305b95e1
2020-03-02 10:13:44 +00:00
Automerger Merge Worker
5a60c46d8d [automerger skipped] Merge "Import translations. DO NOT MERGE" into rvc-dev am: 4e067b153d -s ours
am skip reason: subject contains skip directive

Change-Id: Ie87bbcf0b0fccee304aff47a8638528e775254e8
2020-03-02 10:12:35 +00:00
Automerger Merge Worker
145303be7c Merge "Fix MediaSession.Token#equals()" into rvc-dev am: 1c6a0fa499
Change-Id: Ib351eacf9933ebce6c35a1dc4ffb776719f8f06d
2020-03-02 10:11:55 +00:00
Kyunglyul Hyun
f8ac47cdae Merge "MediaRouter: Cleanup MediaRouter2Manager APIs" into rvc-dev 2020-03-02 08:07:23 +00:00
Tiger Huang
e06d071446 Unhide API: WindowInsets.Type#displayCutout()
With this CL, the public developers can interact with display cutout via
insets APIs.

Bug: 118118435
Test: build
Change-Id: If5ccacddb079bc5513ccb5820ea1c371e95fe562
2020-03-02 15:44:36 +08:00
TreeHugger Robot
4e067b153d Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-03-02 07:29:28 +00:00
Tiger Huang
e16645a966 Make display cutout can produce insets
This CL creates InsetsType and InternalInsetsType for display cutout.
With this CL, WindowInsets.getSystemWindowInsets() can be compatible
with the legacy insets mode.

Fix: 149932355
Test: Open an app which has LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS
      and hides navigation bar on the display which has double display
      cutout. And check if the app can get the correct result from
      WindowInsets.getSystemWindowInsets().

Change-Id: I381a083d8c30e1678c835eaf5341e941139aa0d7
2020-03-02 15:08:20 +08:00
JW Wang
6033dd2c58 Override phenotype flags during tests
https://g3doc.corp.google.com/experiments/g3doc/mobile/phenotype/android/testing.md?cl=head#hermetic

Phenotype talks to a server to override the device config changes made
by the tests. Therefore, watchdog timeout didn't happen as expected and
caused tests to fail.

We need to override the flags on our own during tests so the
device config values ('watchdog_request_timeout_millis' in this case)
won't be changed in an unexpected way.

See b/148042585#comment21 for more details.

Bug: 148042585
Test: atest NetworkStagedRollbackTest
Change-Id: I4d8944f7fef93445de8f971c6a96fef7c71872db
2020-03-02 14:57:56 +08:00
Jaewan Kim
1c6a0fa499 Merge "Fix MediaSession.Token#equals()" into rvc-dev 2020-03-02 06:28:20 +00:00
Kyunglyul Hyun
a3365d7537 MediaRouter: Cleanup MediaRouter2Manager APIs
As a following CL, RoutingController will be removed.
Instead, MediaRouter2Manager will use RoutingSesionInfo.
This CL adds necessary methods for that.

Added Callback#onTransferred and #onTransferFailed.

Bug: 150571233
Test: atest mediaroutertest
Change-Id: If2c23c483f80b6c93a14d1f1f93dfc40463ede1a
2020-03-02 15:02:09 +09:00
SongFerngWang
53515a0ea6 CellularBatteryStats: Address API council feedback
Bug: 144925883
Test: Build pass, device boots up
atest TelephonyMetricsTest

Change-Id: Iac5904a3397a42aa5f015cb53bb63318f5c377a4
Merged-In: Iac5904a3397a42aa5f015cb53bb63318f5c377a4
(cherry picked from commit 84dc30fede)
2020-03-02 05:15:08 +00:00
Automerger Merge Worker
be8815d519 Merge "Notify fixed rotation transformed insets state" into rvc-dev am: 6a9cd11871
Change-Id: Ib9eb9065896ea84506e439ad6a780f3f5df5ed9a
2020-03-02 04:40:20 +00:00
TreeHugger Robot
6a9cd11871 Merge "Notify fixed rotation transformed insets state" into rvc-dev 2020-03-02 04:27:09 +00:00
Automerger Merge Worker
102620b476 Merge "Populate the autofillId in the IMS EditorInfo" into rvc-dev am: 16286e3c3f
Change-Id: Ic5de62b5d55656487eea6ebca20aea591abf0d01
2020-03-02 04:20:50 +00:00
TreeHugger Robot
16286e3c3f Merge "Populate the autofillId in the IMS EditorInfo" into rvc-dev 2020-03-02 04:09:29 +00:00
Rhed Jao
e135e2e4e6 Do not prefetching accessibility nodes while a view is scrolling
Accessibility framework default enable prefetching accessibility
nodes in application, when an accessibility service is trying to
query a node on the screen. These nodes are stored in the
AccessibilityCache which is in the accessibility service to save
the IPC between accessibility service and application on screen.

This mechanism does not help performance in some scenarios. For
example, an application with thousand nodes on screen and user
needs to scroll the content frequently. In this case, the
AccessibilityCache will be cleared frequently, and the prefetching
behavior also happens frequently. It becomes an extra effort and
drop the performance.

In this patch, we stop prefetching for a little time while a
scrolling event is detected. This can mitigate performance drop
symptom while user is scrolling.

Bug: 143730839
Test: Manual
Change-Id: I336ee2907ba63c32c6e53259589817dfd14b99e1
Merged-in: I336ee2907ba63c32c6e53259589817dfd14b99e1
(cherry picked from commit 1be8809974)
2020-03-02 03:28:57 +00:00
Automerger Merge Worker
56116c80a0 Merge "Use removeActiveDevice() when set phone as active device" into rvc-dev am: 30ac1ffeb3
Change-Id: I4c6b313de1b3b5e5883f7caacc7281f90bca11f0
2020-03-02 03:25:01 +00:00
TreeHugger Robot
30ac1ffeb3 Merge "Use removeActiveDevice() when set phone as active device" into rvc-dev 2020-03-02 03:14:56 +00:00
Automerger Merge Worker
1e6d587d12 Merge "Add "name" to RoutingSessionInfo" into rvc-dev am: a448f383d0
Change-Id: Ia8a91a39bc762889a4a36ae1d40781c8d62c9e18
2020-03-02 02:55:47 +00:00
Kyunglyul Hyun
a448f383d0 Merge "Add "name" to RoutingSessionInfo" into rvc-dev 2020-03-02 02:42:28 +00:00
Bill Yi
60efd6420f Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: If97ef0467fd29666c04015494ceb1e0e52207148
2020-03-01 18:25:37 -08:00
Automerger Merge Worker
230f50de3e Merge "Fix AccessibilityManagerServiceTest" into rvc-dev am: 2f9f7cf317
Change-Id: Ic793282ca37c4f1ba63e71d512b74cadf4f74a78
2020-03-02 01:33:22 +00:00
Jackal Guo
2f9f7cf317 Merge "Fix AccessibilityManagerServiceTest" into rvc-dev 2020-03-02 01:19:54 +00:00