Commit Graph

116778 Commits

Author SHA1 Message Date
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
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
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
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
Taran Singh
b2988f3e4f Merge "Revert "Keeps the served view of the window when focus to the ne..."" into rvc-dev am: e974c347fd
Change-Id: I82c5d52bd8d07fd9c6aefbc123b5f05f4b61426f
2020-05-06 21:21:48 +00:00
Ben Lin
c43997ba15 Merge "Enforce max size for resizing operations." into rvc-dev 2020-05-06 21:17:02 +00:00
Taran Singh
e974c347fd Merge "Revert "Keeps the served view of the window when focus to the ne..."" into rvc-dev 2020-05-06 21:06:34 +00:00
Galia Peycheva
42eb496b40 Merge "Override DreamActivity enter and exit animations" into rvc-dev am: 1255a2d20b
Change-Id: Ibc4831e10a9e2358eb6dc9f68e3608c52409a53c
2020-05-06 20:46:43 +00:00
Taran Singh
0dbd6c4bd6 Revert "Keeps the served view of the window when focus to the ne..."
Revert "Refine FocusHandlingTest"

Revert submission 11182377-fix_b_152373385

Reason for revert: Fix b/155781821
Reverted Changes:
If20cdb43e:Keeps the served view of the window when focus to ...
I50402165b:Refine FocusHandlingTest
Bug: 152373385
Bug: 155781821

Change-Id: I44469caf5a5ceaf247c4e6b0694da9da1f3c0eb1
2020-05-06 20:37:09 +00:00
Galia Peycheva
1255a2d20b Merge "Override DreamActivity enter and exit animations" into rvc-dev 2020-05-06 20:30:21 +00:00
Matt Pietal
877b5ec262 Sharesheet/Resolver a11y adjustments
1. Announce app name with direct share targets
2. Don't speak 'heading' in direct share rows
3. Don't close resolver/sharesheet when swiping left
4. Talkback will announce # of rows and columns for sharesheet

Fixes: 141908464
Fixes: 155153657
Fixes: 151897812
Fixes: 149437892
Fixes: 80319063
Test: talkback
Change-Id: I16586208407ba56814d3cf69648e660bded72ccf
2020-05-06 15:27:54 -04:00
Song Hu
0a27a93c05 Merge "Send onCreatePredictionSession, sortAppTargets, requestPredictionUpdate immediately instead of sending them to main thread Looper queue of ChooserActivity." into rvc-dev am: f52438f9a2
Change-Id: If329a03b939dd0a64f46732295788fb44b5ff5de
2020-05-06 19:08:33 +00:00
Song Hu
f52438f9a2 Merge "Send onCreatePredictionSession, sortAppTargets, requestPredictionUpdate immediately instead of sending them to main thread Looper queue of ChooserActivity." into rvc-dev 2020-05-06 19:03:46 +00:00
Jorim Jaggi
31e5254daf Cancel existing animations when detaching View
Test: WindowInsetsAnimationSynchronicityTests#testShowAndHide_renderSynchronouslyBetweenImeWindowAndAppContent * 100 times
Fixes: 155602643
Change-Id: I6f736357f5a67c01a29b2c531026a3a76c321003
2020-05-06 20:36:08 +02:00
Song Hu
d52863d12b Send onCreatePredictionSession, sortAppTargets, requestPredictionUpdate
immediately instead of sending them to main thread Looper queue of
ChooserActivity.

These methods are relatively latency-sensitive. When main thread Looper queue has many backlogs, it takes long time
to dispatch requests.

Bug: 155551642
Test: atest CtsSharesheetTestCases:android.sharesheet.cts.CtsSharesheetDeviceTest
Test: manually test on the device
Change-Id: I7d00e49c6a30fec478e620bc98180d379f801fc8
2020-05-06 10:17:29 -07:00
Hui Yu
94fd91f864 Merge "Revert "Add isUidActiveOrForeground() for camera/audio to use."" into rvc-dev am: a6099ac785
Change-Id: Ia04a9d5b4dbbceaa878c7d9e53ff5957aa1e3e20
2020-05-06 17:01:19 +00:00
Hui Yu
a6099ac785 Merge "Revert "Add isUidActiveOrForeground() for camera/audio to use."" into rvc-dev 2020-05-06 16:59:34 +00:00
Marco Ballesio
09c2b28707 Settings option to enable/disable the app freezer am: 74f0159425
Change-Id: I0cef9c5b771b6dcb4234a39ce5f7039a58c91798
2020-05-06 16:50:29 +00:00
Marco Ballesio
6efdd471ad ActivityManager API to check availability of app freezer am: 240bea3f47
Change-Id: If0374ae56edc195ced81ca48ad8cff4de55b3a14
2020-05-06 16:50:24 +00:00
Marco Ballesio
ce9b47859d Merge changes from topic "developer option for app freezer" into rvc-dev
* changes:
  Resources and strings for freezer settings
  Settings option to enable/disable the app freezer
  ActivityManager API to check availability of app freezer
2020-05-06 16:35:44 +00:00
arangelov
706316db0f Fix sharesheet scroll jankiness.
This CL makes the following changes:
1. Cache the itemViewType in the ViewHolder, so that we don't
have to call it again from onBindViewHolder
2. Cache the result of shouldDisplayLandscape to reduce the
number of IPC calls while scrolling the list, as this is called
indirectly by the ChooserGridAdapter's getRowCount and
getItemCount. It calls Activity#isInMultiWindowMode which makes
an IPC call to the ActivityTaskManager.
3. Cache the work profile user handle to reduce the number of
IPC calls while scrolling the list, as this is called
indirectly by ChooserGridAdapter's getRowCount and getItemCount.

Test: atest ChooserActivityTest
Test: atest ResolverActivityTest
Test: manually verify there is no jankiness when scrolling
Test: manually change orientation between portrait and
landscape to make sure screen orientation cache gets invalidated
Test: launched share sheet in multi-window mode and then removed
one window - sharesheet properly updated its views
Fixes: 151117747
Fixes: 154766645

Change-Id: Ib8e329b534f3de1d4906f6a07908cc7879dcaa47
2020-05-06 16:35:16 +01:00
Antoan Angelov
20850b8a43 Merge "Use intent resolver strings for sharesheet when picking intent" into rvc-dev am: 950aca5795
Change-Id: I38f3868c44f792ec33a3d03079c788c24a61299b
2020-05-06 14:40:50 +00:00
Antoan Angelov
950aca5795 Merge "Use intent resolver strings for sharesheet when picking intent" into rvc-dev 2020-05-06 14:23:13 +00:00
Riddle Hsu
d948f743c2 Do not stop dream service if dream activity is relaunching
Currently DreamActivity doesn't handle any configuration changes,
and does not set fixed orientation. So the decor view will be
detached if the activity is relaunching for configuration changes.

Though it also works by making DreamActivity support handling the
changes, all implementations of DreamService may need to add the
corresponding handling. So this fix only keeps the service alive
for compatibility.

Fixes: 154474768
Test: atest DreamManagerServiceTests#testDreamNotFinishAfterRotation
Test: Enter Settings > Display > Screen saver, press "Start now".
      The dream service should not be stopped after device rotated.
Change-Id: I454f75d06c4539258eeafd8794a3cb03e0276163
2020-05-06 12:26:13 +00:00
Galia Peycheva
376b0200b7 Merge "Add isDreaming method to DreamManager" into rvc-dev am: 95f8aba25e
Change-Id: Iff2e5e2cdd023e97665508669b74594b0065800a
2020-05-06 08:40:11 +00:00
Galia Peycheva
3cf3520d3f Override DreamActivity enter and exit animations
Fix: 153151516

Test: atest DreamManagerServiceTests
Change-Id: I4ba741512edea23e0209b176a34478045931c891
2020-05-06 10:30:27 +02:00
Galia Peycheva
95f8aba25e Merge "Add isDreaming method to DreamManager" into rvc-dev 2020-05-06 08:18:19 +00:00