Commit Graph

116803 Commits

Author SHA1 Message Date
Jason Hsu
0eaa712069 Merge "Logs accessibility shortcut behavior." into rvc-dev am: 5c8f27a56e
Change-Id: Ieccf4811d1c7e96917be274365f2d65edd463489
2020-05-10 05:22:30 +00:00
Jing Ji
793ee0ff16 Merge "Check the isInUse with the lock held in MessageQueue" into rvc-dev am: 04dc962d1d
Change-Id: Ie229f36fd62b3c971d268955c299e72200dc5d76
2020-05-10 05:21:01 +00:00
Alec Mouri
151365a461 Merge "Dispatch refresh rate callbacks from DMS" into rvc-dev am: 00f681a582
Change-Id: I193dfe7532893c3675d074aa00078ab0885095c3
2020-05-10 05:17:32 +00:00
Jason Hsu
5c8f27a56e Merge "Logs accessibility shortcut behavior." into rvc-dev 2020-05-10 03:06:30 +00:00
jasonwshsu
d9aa03245c Logs accessibility shortcut behavior.
* Uses the atom AccessibilityShortcutReported in westworld.

Bug: 151285965
Test: make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive 266
Change-Id: Iba9d829ae35c7a336c38007101bdddfcd3dc2ddb
2020-05-09 22:31:05 +08:00
Jing Ji
04dc962d1d Merge "Check the isInUse with the lock held in MessageQueue" into rvc-dev 2020-05-09 04:18:39 +00:00
Alec Mouri
00f681a582 Merge "Dispatch refresh rate callbacks from DMS" into rvc-dev 2020-05-08 23:54:17 +00:00
Jing Ji
baf2d6448e Check the isInUse with the lock held in MessageQueue
Fix a potential race condtion when the same message object
is being enqueued by two threads.

Bug: 150263007
Bug: 154867444
Test: atest android.os.cts.MessageQueueTest
Change-Id: Id79448ba8719479cbdb054f2cdd172fdcbe86d47
(cherry picked from commit 96a6fec4d6)
2020-05-08 21:14:23 +00:00
Nikita Ioffe
a3cc299609 Merge "PackageParser2: collect certificates if requested" into rvc-dev am: a23a9dc83b
Change-Id: Ic5abdcbecccb9ef4fc4c68e98633e6302a06dc11
2020-05-08 17:31:37 +00:00
Nikita Ioffe
a23a9dc83b Merge "PackageParser2: collect certificates if requested" into rvc-dev 2020-05-08 17:10:47 +00:00
Kweku Adams
158d28f122 Merge "Add master switch to enable/disable RESTRICTED bucket." into rvc-dev am: 86a71e6e93
Change-Id: I14fcd2b82452775fa3c905c0a56d01a4f929c97b
2020-05-08 15:12:50 +00:00
Kweku Adams
86a71e6e93 Merge "Add master switch to enable/disable RESTRICTED bucket." into rvc-dev 2020-05-08 15:01:03 +00:00
Tiger Huang
84e4c327db Merge "Prevent unnecessary updateRequestedState" into rvc-dev am: d8bb9b4dd8
Change-Id: Iee16e96691ac379546141542885807249367dfb5
2020-05-08 13:40:33 +00:00
Tiger Huang
d8bb9b4dd8 Merge "Prevent unnecessary updateRequestedState" into rvc-dev 2020-05-08 13:37:42 +00:00
Joanne Chung
aef6672fe9 Merge "Prevent crash when AutofillManager.isEnabled() is called" into rvc-dev am: cdbd09bbcf
Change-Id: I9482bc785396f514ee58e604226a7f606d05e5e3
2020-05-08 10:23:24 +00:00
Joanne Chung
cdbd09bbcf Merge "Prevent crash when AutofillManager.isEnabled() is called" into rvc-dev 2020-05-08 10:14:55 +00:00
Joanne Chung
ee55616ad3 Prevent crash when AutofillManager.isEnabled() is called
If we cannot get flag information from the AutofillManagerService
after the timeout, we should not crash the process, we need to
handle the enabled information properly.

Also fix NPE because of null component name while calling
AutofillManagerServiceImpl.isWhitelistedForAugmentedAutofillLocked().

Bug: 151273845
Test: atest CtsAutoFillServiceTestCases
Test: manual. Copy the text from Messenger and paste on search bar,
no crash occurred and can paste text correctly.

Change-Id: I8d7ca35226052944fd68fef60a013a65a7fb57c1
2020-05-08 16:48:52 +08:00
Ryan Lin
6a50238497 Merge "Fix Voice shortcuts not working system-wide in R" into rvc-dev am: 2df7af78be
Change-Id: Iac76999cc25b94512311f75ffa011eb3c89f51b5
2020-05-08 02:48:34 +00:00
Ryan Lin
2df7af78be Merge "Fix Voice shortcuts not working system-wide in R" into rvc-dev 2020-05-08 02:26:37 +00:00
Alec Mouri
cf3ad873dd Dispatch refresh rate callbacks from DMS
AChoreographer will consume these callbacks in lieu of going through SF
for the callbacks. This is so that DMS can update its view of display
configs before apps receive the refresh rate callback so that apps can
get consistent information.

Bug: 154874011
Test: ChoreographerNativeTest
Test: Manually verify that HWUI is receiving callbacks
Change-Id: I992c247fd16ef414f94a259bbd300bea3e4c9467
2020-05-07 19:19:23 -07:00
Kevin Chyn
40669c08c0 [DO NOT MERGE] Add sysUiSessionId between BiometricService and AuthController am: fa7069d83c
Change-Id: Ic960ea42bba2f7e2d57521d320010f402069a642
2020-05-07 23:36:05 +00:00
Kevin Chyn
f67a780c33 Merge "[DO NOT MERGE] Add sysUiSessionId between BiometricService and AuthController" into rvc-dev 2020-05-07 23:22:02 +00:00
Kevin Chyn
fa7069d83c [DO NOT MERGE] Add sysUiSessionId between BiometricService and AuthController
Bug: 155420058

Test: BiometricPromptDemo, inspect logs

Change-Id: I47cffa4e8acb1e5f098572d26e47882ff5e9be26
2020-05-07 14:06:57 -07:00
Nikita Ioffe
a2962fa93f PackageParser2: collect certificates if requested
This is a relatively easy and safe change that should significantly
reduce boot time.

Test: atest google/perf/boottime/boottime-test
Test: atest PackageManagerTest
Bug: 155535721
Bug: 155513789
Bug: 155525390
Change-Id: Ib5152892184d407361ce3698575075ec0138edbf
2020-05-07 21:09:21 +01:00
Alex Johnston
4223a3f0ef Merge "Restrict creation of secondary users" into rvc-dev am: 80542add04
Change-Id: Iad605a26fa4f7f4719e8c9cb9dbb04e2ed7d3d20
2020-05-07 15:32:42 +00:00
Alex Johnston
80542add04 Merge "Restrict creation of secondary users" into rvc-dev 2020-05-07 15:20:31 +00:00
Alex Johnston
9ace11127c Restrict creation of secondary users
Background
* Secondary users should be disabled
  when the device is an organization-owned
  managed profile device.
* This is because supporting secondary
  users would complicate the semantics of
  user restrictions.

Changes
* Add DISALLOW_ADD_USER as a base restriction
  when the device is an organization-owned
  managed profile device.
* Handle removal case when the device is no
  longer in this mode.
* Remove the ability of other admins to apply
  DISALLOW_ADD_USER.

Manual Testing Steps
* Provision an organization-owned managed
  profile device.
* Check Settings > System > Multiple users
  and verify that a user cannot be added.
* Check WP TestDPC 'Set user restrictions
  on parent' and verify 'Disallow add user'
  is not present.

Bug: 155281701
Test: Manual testing
      atest com.android.server.devicepolicy.DevicePolicyManagerTest
Change-Id: I83348fc8b854cef20383803124000540b5b130cb
2020-05-07 13:58:31 +01:00
Matt Pietal
01bd497efe Merge "Sharesheet/Resolver a11y adjustments" into rvc-dev am: 2f16758a0a
Change-Id: I52c4629ff2e5021209031b4b535e90e7c3c226e2
2020-05-07 11:53:53 +00:00
Jorim Jaggi
c7336cdf18 Merge "Cancel existing animations when detaching View" into rvc-dev am: b3c02592e1
Change-Id: Ib19d28b5dd5ce4428f62bf5877881093ec6d49e2
2020-05-07 11:53:18 +00:00
Matt Pietal
2f16758a0a Merge "Sharesheet/Resolver a11y adjustments" into rvc-dev 2020-05-07 11:38:59 +00:00
Jorim Jaggi
b3c02592e1 Merge "Cancel existing animations when detaching View" into rvc-dev 2020-05-07 11:36:11 +00:00
Antoan Angelov
24d24cfd27 Merge "Fix sharesheet scroll jankiness." into rvc-dev am: afbd12c4ed
Change-Id: I372f4dcba7a71adb337c8d21a3b2058908e2c943
2020-05-07 11:12:20 +00:00
Antoan Angelov
afbd12c4ed Merge "Fix sharesheet scroll jankiness." into rvc-dev 2020-05-07 10:56:05 +00:00
Tiger Huang
fbfc3abfde Prevent unnecessary updateRequestedState
If the client didn't change any insets, we don't need to update the
requested state while receiving controls. The requested state at the
server side can still be up-to-date for free.

This CL also sends the requested state to window manager if the local
state is not the same as the dispatched state.

Fix: 155752039
Test: atest InsetsControllerTest
Change-Id: I676a88d3ef823d8717d03e80261e6e7a5f7e8c5f
2020-05-07 14:01:38 +08:00
Feng Cao
03f9fbbf3d Merge "Support re-attaching the inline suggestion view to window" into rvc-dev am: 254545cae5
Change-Id: Id4d01aa1c63b2b1d4d3658a6141b8c0dd05c6c20
2020-05-07 05:28:49 +00:00
Feng Cao
254545cae5 Merge "Support re-attaching the inline suggestion view to window" into rvc-dev 2020-05-07 05:23:15 +00:00
Philip P. Moltmann
2ed0952744 Merge "Forward dumps from PermissionControllerManager to permissionmgr" into rvc-dev am: f7d1f1a40c
Change-Id: I6a179fc69d68b70107de794c113c6acfcef67f3f
2020-05-07 05:22:23 +00:00
Philip P. Moltmann
f7d1f1a40c Merge "Forward dumps from PermissionControllerManager to permissionmgr" into rvc-dev 2020-05-07 05:07:27 +00:00
Riddle Hsu
10662e54cc Merge "Do not stop dream service if dream activity is relaunching" into rvc-dev am: b76f9472df
Change-Id: I82ddd309228f5e10c3fde31b7b3eb907f8c43d14
2020-05-07 04:59:20 +00:00
Riddle Hsu
b76f9472df Merge "Do not stop dream service if dream activity is relaunching" into rvc-dev 2020-05-07 04:51:38 +00:00
Feng Cao
b46851c964 Support re-attaching the inline suggestion view to window
* Before this change, when the inline suggestion view is detached from
  the IME window (e.g. due to layout change), the remote view content
  will not show again even after the view is reattached to the window
  on the IME side. This patch fixes it by requesting the remote view
  owner (the ext services) for a new SurfacePackage when the view is
  re-attached to the window (see javadoc of SurfaceControlViewHost for
  why this works).
* This patch also fixes the issue where the SurfaceControlViewHost was
  never released in the ext services. This is done by notifying the
  ext services (through system server) when the view is detached from
  the IME window, and then the system server will release the
  SurfaceControlViewHost if after N(=500) ms the view is not re-attached
  to a window.
* After the SurfaceControlViewHost is released, if the view is
  re-attached to the window later, a new SurfaceControlViewHost will be
  created to back the same InlineContentView.
* The current code structure also lays a foundation for a subsequent
  change to allow reusing the same remote view for inline suggestions
  during filtering.

Test: atest CtsAutofillServiceTestCases (sanity test)

Bug: 153615023
Bug: 154683107

Change-Id: Idc587e1e82a96b792c351796464821b7aad7cd89
2020-05-06 19:30:39 -07:00
Kevin Chyn
c9f88f5f9b Merge "Revert "Check Read permissions when getDocumentMetadata"" into pi-dev am: 3d599fd941 am: c1f5869518 am: 38691f7626 am: 73407d6559
Change-Id: I41afc5ebca9de5f069dabcea03736fffc0b3c01c
2020-05-07 01:44:04 +00:00
Kevin Chyn
73407d6559 Merge "Revert "Check Read permissions when getDocumentMetadata"" into pi-dev am: 3d599fd941 am: c1f5869518 am: 38691f7626
Change-Id: I2179cb6e443d25c859ab6c433b11aec63153f256
2020-05-07 01:28:25 +00:00
Kevin Chyn
38691f7626 Merge "Revert "Check Read permissions when getDocumentMetadata"" into pi-dev am: 3d599fd941 am: c1f5869518
Change-Id: I1ea9173d607acdcbd03de42aa793b018c23828e3
2020-05-07 01:15:56 +00:00
Kevin Chyn
c1f5869518 Merge "Revert "Check Read permissions when getDocumentMetadata"" into pi-dev am: 3d599fd941
Change-Id: I18eb6c4cd9c42f3cc1d1051b47aafeeffb6b0c16
2020-05-07 01:02:48 +00:00
Kevin Chyn
f21b907b1b Revert "Check Read permissions when getDocumentMetadata"
This reverts commit c94646177c.

Reason for revert: 155930637

Change-Id: Id452d316d1c1721fce715474df009ebe0fb719e8
2020-05-07 00:39:46 +00:00
Philip P. Moltmann
5ab27fca5c Forward dumps from PermissionControllerManager to permissionmgr
Test: adb shell dumpsys permissionmgr
Bug: 155680199
Change-Id: Iab5da24277eb6333ef047ab84dfcb65b7c4c2ff2
2020-05-06 17:24:40 -07:00
Diksha Gohlyan
3bea45c642 Merge "Check Read permissions when getDocumentMetadata" into pi-dev am: 4371baafc1 am: ada451e47c
Change-Id: Id40f7456923144e3496df2028c771325ad1f480e
2020-05-06 23:16:07 +00:00
Diksha Gohlyan
ada451e47c Merge "Check Read permissions when getDocumentMetadata" into pi-dev am: 4371baafc1
Change-Id: Ib242d6ed7ff376a71f85a03aa06f2c0453638310
2020-05-06 23:05:34 +00:00
Ben Lin
9c0114d2a8 Merge "Enforce max size for resizing operations." into rvc-dev am: c43997ba15
Change-Id: I7c884e29ab5272c1cecade0da8cf4729e15351da
2020-05-06 21:22:37 +00:00