Commit Graph

14082 Commits

Author SHA1 Message Date
Abhijeet Kaur
853068d4eb Merge "Add manage mode workflow for ExternalStorageProvider" into rvc-dev am: e0ae189f8a am: d0772d278e am: 1b712aea0a am: 3fb52c039a
Change-Id: I3a8f89ac0e7e8eae5b16d4861ab8925180ded193
2020-05-12 15:23:13 +00:00
Abhijeet Kaur
d0772d278e Merge "Add manage mode workflow for ExternalStorageProvider" into rvc-dev am: e0ae189f8a
Change-Id: I3c32ac61756b91b68c5eb5c87450542a58734d5a
2020-05-12 14:42:26 +00:00
Abhijeet Kaur
e0ae189f8a Merge "Add manage mode workflow for ExternalStorageProvider" into rvc-dev 2020-05-12 14:39:19 +00:00
Antoan Angelov
fa8bbc6748 Merge "Don't show layout with default if in tabbed view" into rvc-dev am: ff779f6d8e am: eee917a2e4 am: b9d7abaf42 am: 5395a26024
Change-Id: I3fc92d2afd881f1b533ec41758743933bb64eb09
2020-05-11 15:57:31 +00:00
Antoan Angelov
eee917a2e4 Merge "Don't show layout with default if in tabbed view" into rvc-dev am: ff779f6d8e
Change-Id: Ie262b8b5b869df1116902175e98ce102b5b92d94
2020-05-11 15:05:05 +00:00
Antoan Angelov
ff779f6d8e Merge "Don't show layout with default if in tabbed view" into rvc-dev 2020-05-11 14:49:18 +00:00
Abhijeet Kaur
553625de0a Add manage mode workflow for ExternalStorageProvider
In Scoped Storage world, access to "Android/data" style directories are
hidden for privacy reasons. Allow ExternalStorageProvider to show these
hidden files when in manage mode.

Bug: 150366834
Test: Android/data and Android/obb is visible from Files App, but are
hidden in Picker view from StorageTestApp and Gmail (GMAIL > Compose >
Attach > Go to Pixel > Android)

Change-Id: I58b4fc23d9b479df4fc0480ae55f1f2070d0cb7c
2020-05-11 11:39:40 +01:00
Jason Hsu
2cc0839ae7 Merge "Logs accessibility shortcut behavior." into rvc-dev am: 5c8f27a56e am: 0eaa712069 am: 08fa17e6fe am: ab899cd56a
Change-Id: Id8e73df3932f614b878e385e15574c9d5adbdd25
2020-05-10 06:09:15 +00:00
Jason Hsu
0eaa712069 Merge "Logs accessibility shortcut behavior." into rvc-dev am: 5c8f27a56e
Change-Id: Ieccf4811d1c7e96917be274365f2d65edd463489
2020-05-10 05:22:30 +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
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
arangelov
aa307e28ca Don't show layout with default if in tabbed view
Fixes: 155890640
Fixes: 150939321
Test: atest ChooserActivityTest
Test: atest ResolverActivityTest
Test: manually verified default layout is not shown

Change-Id: I11c543331b44039a7a2ae85a1b2a67b8525739a4
2020-05-07 16:16:45 +01:00
Matt Pietal
b5717dea0e Merge "Sharesheet/Resolver a11y adjustments" into rvc-dev am: 2f16758a0a am: 822d405bfc am: d0df94ac26 am: 369c4b1051
Change-Id: I4ce1ac50630ded79d51171b74f653488ca9f002f
2020-05-07 12:37:30 +00:00
Matt Pietal
d0df94ac26 Merge "Sharesheet/Resolver a11y adjustments" into rvc-dev am: 2f16758a0a am: 822d405bfc
Change-Id: Ic60da889d7c5c041d7673fa8abcb15ac4bc0193f
2020-05-07 12:10:31 +00: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
Antoan Angelov
7758c6b316 Merge "Fix sharesheet scroll jankiness." into rvc-dev am: afbd12c4ed am: 78ace3ceb6 am: 7b9c42a35e am: bd01f9638e
Change-Id: Ic9fa3325276288a01a6fc6606c34fde539acad5b
2020-05-07 11:53:11 +00:00
Matt Pietal
2f16758a0a Merge "Sharesheet/Resolver a11y adjustments" into rvc-dev 2020-05-07 11:38:59 +00:00
Antoan Angelov
bd01f9638e Merge "Fix sharesheet scroll jankiness." into rvc-dev am: afbd12c4ed am: 78ace3ceb6 am: 7b9c42a35e
Change-Id: I5a6d9c68809111b3f3def8fe5e90298cec9b9435
2020-05-07 11:37:07 +00:00
Antoan Angelov
67c29d47b1 Merge "Fix sharesheet scroll jankiness." into rvc-dev am: afbd12c4ed am: 78ace3ceb6
Change-Id: I90b09544d57f5c1ce1b8a972f926a4411d71b06f
2020-05-07 11:25:49 +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
571fa86530 Merge "Support re-attaching the inline suggestion view to window" into rvc-dev am: 254545cae5 am: f9748230fd am: 35c8ea2a8b am: 9c116694b4
Change-Id: Ic8bdf26c2194d779d9d313d8cfb30b65857064c4
2020-05-07 06:15:23 +00:00
Feng Cao
9c116694b4 Merge "Support re-attaching the inline suggestion view to window" into rvc-dev am: 254545cae5 am: f9748230fd am: 35c8ea2a8b
Change-Id: I2b549cbf295b8d4a926b8a0e0d069a2b746d8c32
2020-05-07 05:56:23 +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
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
Automerger Merge Worker
ff02ab6b20 Merge "Merge "Enforce max size for resizing operations." into rvc-dev am: c43997ba15 am: 3f87a39a37 am: 68930175d4" into rvc-qpr-dev-plus-aosp am: f7ba5f3446
Change-Id: I64d08baba71f93a4830d1603da19f7bf6c4e3c67
2020-05-06 22:16:49 +00:00
Ben Lin
68930175d4 Merge "Enforce max size for resizing operations." into rvc-dev am: c43997ba15 am: 3f87a39a37
Change-Id: I7e87fd02b5f3ca3c6ed5f3812127fceda72ec75b
2020-05-06 21:35:27 +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
Ben Lin
c43997ba15 Merge "Enforce max size for resizing operations." into rvc-dev 2020-05-06 21:17:02 +00:00
Song Hu
8ee25333d9 Merge "Send onCreatePredictionSession, sortAppTargets, requestPredictionUpdate immediately instead of sending them to main thread Looper queue of ChooserActivity." into rvc-dev am: f52438f9a2 am: 70ca582fc9 am: 027bc9df91 am: 3fa435be95
Change-Id: I384410712c335066b8b4db7d5a93b6349c68020a
2020-05-06 20:02:10 +00:00
Song Hu
3fa435be95 Merge "Send onCreatePredictionSession, sortAppTargets, requestPredictionUpdate immediately instead of sending them to main thread Looper queue of ChooserActivity." into rvc-dev am: f52438f9a2 am: 70ca582fc9 am: 027bc9df91
Change-Id: I349ac6d84e07d12ebeddf7ca9a043f3a2a63a2a9
2020-05-06 19:40:11 +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
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
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
61713aece6 Merge "Use intent resolver strings for sharesheet when picking intent" into rvc-dev am: 950aca5795 am: 0675309da0 am: 3141c97476 am: b37217e070
Change-Id: Ib0f3926b01cc5d5676db1b9ab7dde526bda15fb4
2020-05-06 15:34:47 +00:00
Antoan Angelov
3141c97476 Merge "Use intent resolver strings for sharesheet when picking intent" into rvc-dev am: 950aca5795 am: 0675309da0
Change-Id: If39854f8e3e60c7982f46c7a23d1e74033459fd5
2020-05-06 14:53:30 +00: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
Automerger Merge Worker
7845ad3755 Merge "Merge "Enable ChooserTarget ranking of the same app." into rvc-dev am: efa0eab058 am: a384d1eb7a am: d62e844b9f" into rvc-qpr-dev-plus-aosp am: 576e4f1f63
Change-Id: Ifda96eea6d1322e063e2921da475c281646e930e
2020-05-06 01:15:45 +00:00
Song Hu
bfadff8fde Merge "Enable ChooserTarget ranking of the same app." into rvc-dev am: efa0eab058 am: a384d1eb7a am: d62e844b9f
Change-Id: I4060e5534a46502e69a865f4c01abd4e4c346edb
2020-05-06 00:54:56 +00:00
Song Hu
3349d20780 Merge "Enable ChooserTarget ranking of the same app." into rvc-dev am: efa0eab058 am: a384d1eb7a
Change-Id: Icacb2da601682b2257184be2910da10737e7bad2
2020-05-06 00:36:27 +00:00
Song Hu
992b9d17a8 Merge "Enable ChooserTarget ranking of the same app." into rvc-dev am: efa0eab058
Change-Id: I192b0fe351b6a4009e90870d11962e12f61dfb49
2020-05-06 00:24:46 +00:00
Song Hu
efa0eab058 Merge "Enable ChooserTarget ranking of the same app." into rvc-dev 2020-05-06 00:02:06 +00:00
Song Hu
60c131e869 Enable ChooserTarget ranking of the same app.
Bug: 151112858
Test: atest CtsSharesheetTestCases:android.sharesheet.cts.CtsSharesheetDeviceTest
Change-Id: If5a4edfec7116cd54ed0ae6543cab0beb011f987
2020-05-05 10:27:52 -07:00