Commit Graph

14042 Commits

Author SHA1 Message Date
TreeHugger Robot
9979e7107d Merge "Fix talkback focus issue in share sheet" into rvc-dev am: b7f81189bd am: 9d9b4ed64c am: dddca4f9a4 am: b1fb21dd1c
Change-Id: I681e94171666bb04a229f20d7c0eac41085cbdf4
2020-05-26 19:33:14 +00:00
TreeHugger Robot
dddca4f9a4 Merge "Fix talkback focus issue in share sheet" into rvc-dev am: b7f81189bd am: 9d9b4ed64c
Change-Id: I1bf4beeda1f2de29fa299255ff838ca9f140aa1d
2020-05-26 18:45:19 +00:00
TreeHugger Robot
b7f81189bd Merge "Fix talkback focus issue in share sheet" into rvc-dev 2020-05-26 18:21:25 +00:00
Mike Digman
ddfc631968 Merge "Use current label for Sharing Shortcuts in Sharesheet" into rvc-dev am: 9a4ec16d7f am: 41a950e82c am: e996ed90fa am: 2b61c20c2a
Change-Id: I483b0f423a2ea20581de9394a29a15ea882879ab
2020-05-26 16:22:53 +00:00
Mike Digman
e996ed90fa Merge "Use current label for Sharing Shortcuts in Sharesheet" into rvc-dev am: 9a4ec16d7f am: 41a950e82c
Change-Id: I48ebfd8c7cd37d429194e59900003f8db8c71a9e
2020-05-26 16:17:34 +00:00
Kholoud Mohamed
85a28ec570 Fix talkback focus issue in share sheet
Fixes: 149440209
Test: manual testing
Change-Id: Ia41f9331da8345a4ac9c298574206fe544407fce
2020-05-26 16:36:36 +01:00
TreeHugger Robot
07190cfb92 Merge changes I0b36a281,I42b05d5c,Ic5ce2741
* changes:
  Remove dependency on InstallArgs during Package Verification
  Extract verification of version code into a separate method
  Simplify handleStartCopy by extracting logic into separate methods
2020-05-26 13:13:44 +00:00
Mike Digman
eb257d1a7d Use current label for Sharing Shortcuts in Sharesheet
A recent ShortcutInfo change bakes in support for using any
set long label and defaulting to the short label if unavailable.
Instead of duplicating logic, reuse this new method.

Fixes: 157142833
Test: manual
Change-Id: Ic8104ac57dd91a79b93739514655d7dbb5ad36e2
2020-05-21 16:04:43 -07:00
Dmitri Plotnikov
10f56ebc71 Merge "Move IndentingPrintWriter to android.util" 2020-05-21 21:17:07 +00:00
Mike Digman
91b1a7e9db Merge "Clean up Sharesheet pinning, add app icon, remove DS pin menu" into rvc-dev am: 7980546c03 am: 4d9d1f737b am: 6068a72684 am: 9acc137ea8
Change-Id: Id76499b93de420a52d30f72c92da018fbdbb3ae1
2020-05-21 21:02:25 +00:00
TreeHugger Robot
1e2d91f579 Merge "Use shortcut long labels if available in Sharesheet" into rvc-dev am: 059d812ef9 am: 388393c843 am: bbcfaf8c86 am: d9b4ba1bcf
Change-Id: I64d391c34cfa20f9d6063da9b624d62b4f1b3599
2020-05-21 20:26:36 +00:00
Mike Digman
6068a72684 Merge "Clean up Sharesheet pinning, add app icon, remove DS pin menu" into rvc-dev am: 7980546c03 am: 4d9d1f737b
Change-Id: I16e844280dfd27500a3684c41060ffbe198b8d0e
2020-05-21 20:12:06 +00:00
Mike Digman
7980546c03 Merge "Clean up Sharesheet pinning, add app icon, remove DS pin menu" into rvc-dev 2020-05-21 20:05:58 +00:00
TreeHugger Robot
d9b4ba1bcf Merge "Use shortcut long labels if available in Sharesheet" into rvc-dev am: 059d812ef9 am: 388393c843 am: bbcfaf8c86
Change-Id: I956c00cef2b0377fdd8b4ff931d5501a3c31a70f
2020-05-21 19:55:46 +00:00
TreeHugger Robot
3d457779df Merge "Use shortcut long labels if available in Sharesheet" into rvc-dev am: 059d812ef9 am: 388393c843
Change-Id: Iff779885d4d42f88ce331e7bdd590d42c096cc52
2020-05-21 19:35:03 +00:00
TreeHugger Robot
059d812ef9 Merge "Use shortcut long labels if available in Sharesheet" into rvc-dev 2020-05-21 19:01:42 +00:00
Mike Digman
64c704390d Clean up Sharesheet pinning, add app icon, remove DS pin menu
Remove "App info" item from all long-press menus as it's no
longer needed. Prevent DS targets from showing a long-press
menu. Simplify code surrounding this, in part, for future
migration to a popup menu.

Fixes: 157156399
Test: manual
Change-Id: I3e29e3dd46268cc344dcc93059f2bda1eeef32f1
2020-05-21 11:17:51 -07:00
Dmitri Plotnikov
f800b70dc5 Move IndentingPrintWriter to android.util
The old implementation remains in its place for now.

IndentingPrintWriter is still hidden - it will be made public
separately.

Test: atest FrameworksUtilTests:android.util.IndentingPrintWriterTest
Bug: 142281756

Change-Id: Idd2bfa027733ef384b5a676866a89fb3c35b06cb
2020-05-21 10:36:53 -07:00
Soonil Nagarkar
fb272095ad Refactor GeofenceManager
-Makes geofence manager work synchronously so that testing is not flaky
-Adopts ListenerMultiplexer for geofence listeners so that logic is
shared across location code
-Adds support for location blacklisting and background users
-Substantially reduces the CPU overhead of maintaining listeners
-Adds worksource support to geofencing so power blame is done correctly
-Adds new feature id for geofencing

Test: manual + presubmit
Change-Id: If55bc18f202debf7dd183f0120a24e8f75623ce8
2020-05-20 14:08:03 -07:00
Automerger Merge Worker
3289b5e6e8 Merge "Merge "Fix talkback for switch on work in ResolverActivity" into rvc-dev am: 606980b356 am: 44f514ed2a am: eb2eeab0b1" into rvc-qpr-dev-plus-aosp am: 793f22a16c
Change-Id: Ic85c5ce3091867a10e8ce3d91d0cd98d944a700b
2020-05-20 18:53:57 +00:00
TreeHugger Robot
0bffbd8c9a Merge "Fix talkback for switch on work in ResolverActivity" into rvc-dev am: 606980b356 am: 44f514ed2a am: eb2eeab0b1
Change-Id: I79c352e1472d42df938d18d5ee8f2b6f9bdc978f
2020-05-20 18:32:01 +00:00
TreeHugger Robot
8c7b5b603d Merge "Fix talkback for switch on work in ResolverActivity" into rvc-dev am: 606980b356 am: 44f514ed2a
Change-Id: If8ee0adbd2a6c08d638ab1a55d6aa5ee40032504
2020-05-20 18:19:35 +00:00
Mike Digman
ed44706beb Use shortcut long labels if available in Sharesheet
For disambiguation between targets, it's important to see
the most detailed label provided by apps. This change is aligned
with the logic being used to display conversation shortcuts.

Fixes: 157142833
Test: manual
Change-Id: I203afc794730cac5c92717035af0ea47d8e6496b
2020-05-20 11:08:55 -07:00
TreeHugger Robot
606980b356 Merge "Fix talkback for switch on work in ResolverActivity" into rvc-dev 2020-05-20 17:55:54 +00:00
Kholoud Mohamed
77bc0f15e3 Fix talkback for switch on work in ResolverActivity
Set the focus to the work tab when switch on
work profile is clicked.

Fixes: 152014143
Test: Manually tested the bug no longer happens
Change-Id: Iba72f238cdaf564256648327d12a54c6227dd23b
2020-05-20 15:29:07 +01:00
Mohammad Samiul Islam
5c95b7d1a7 Extract verification of version code into a separate method
Overriding install location is required for installation of package.
Verification of version code of package is required for package
verification. Keeping them separate make it easier to split verifcation
phase from install phase in future.

Bug: 136257624
Test: atest StagedInstallTest
Test: atest AtomicInstallTests
Test: atest GtsSecurityHostTests
Change-Id: I42b05d5cab86b4c14e7649b337dc997e0c8ee55f
2020-05-19 17:11:01 +01:00
Mike Digman
fd94e4bcb3 Merge "Add pinned target indicator to Sharesheet, update visuals" into rvc-dev am: aa96eb5733 am: f5f2c3f413 am: 2d05148354 am: 3b8fa157a2
Change-Id: Ic331bd319e62e40be95a0df20f68e037fd0e90c8
2020-05-18 23:38:27 +00:00
Mike Digman
f5f2c3f413 Merge "Add pinned target indicator to Sharesheet, update visuals" into rvc-dev am: aa96eb5733
Change-Id: I952e52cd4384ab5a5c56557e4a64241012286b90
2020-05-18 23:15:37 +00:00
Mike Digman
caec1a7440 Add pinned target indicator to Sharesheet, update visuals
After a user pins an app it takes up a persistent space in the
suggested app row. Users may forget they've pinned an app as
there's no indicator. Add an in-line icon to label suggested
targets as pinned. No indicator should be shown in the A-Z list.
This CL also updates related visual styling to get close to
redlines.

Bug: 150405021
Bug: 152978014
Test: manual
Change-Id: Iee774b88e284617449a673d7e622c0ce233ded1a
2020-05-18 12:13:21 -07:00
TreeHugger Robot
ea0d7ae66e Merge "In new direct share ranking, expand DS row as long as there are enough targets parking in memory, even if targets are still loading on UI." into rvc-dev am: d96e01d282 am: 926d538590 am: 98a28d8d88 am: e347d34c56
Change-Id: I24f2cd1e7dc611dcfe26319c07eafd79f3b73d71
2020-05-18 15:30:28 +00:00
TreeHugger Robot
926d538590 Merge "In new direct share ranking, expand DS row as long as there are enough targets parking in memory, even if targets are still loading on UI." into rvc-dev am: d96e01d282
Change-Id: I1cebde1bdbf918fc50aa4c82c9f0377d40763051
2020-05-18 15:00:52 +00:00
TreeHugger Robot
d96e01d282 Merge "In new direct share ranking, expand DS row as long as there are enough targets parking in memory, even if targets are still loading on UI." into rvc-dev 2020-05-18 14:56:34 +00:00
TreeHugger Robot
f1c4cfa818 Merge "Adjust float-to-int brightness conversion to be purely in float." into rvc-dev am: 28e8a2c0ca am: 5c46e05058 am: 9938975072 am: 8ed24d071e
Change-Id: Id42b296c56192257a409a67136b66337ca150f40
2020-05-18 14:00:01 +00:00
Song Hu
b548df99a7 In new direct share ranking, expand DS row as long as there are enough
targets parking in memory, even if targets are still loading on UI.

Backfill targets of top 8 apps into DS row instead of top 4, if the row
is not full.

Bug: 156470651
Test: atest CtsSharesheetTestCases:android.sharesheet.cts.CtsSharesheetDeviceTest
Test: atest com.android.internal.app.ChooserActivityTest
Change-Id: Idefd6c225fca723d6d266b78ef41a4201483c634
2020-05-18 06:13:34 -07:00
TreeHugger Robot
5c46e05058 Merge "Adjust float-to-int brightness conversion to be purely in float." into rvc-dev am: 28e8a2c0ca
Change-Id: Ic375d1b36aaba774ea76da75d6d1cbce3f68ef37
2020-05-18 12:58:00 +00:00
TreeHugger Robot
28e8a2c0ca Merge "Adjust float-to-int brightness conversion to be purely in float." into rvc-dev 2020-05-18 12:47:31 +00:00
Kevin Chyn
8f1768320e Merge "Clean up BiometricPrompt bundle" 2020-05-16 02:46:59 +00:00
TreeHugger Robot
a82cebec21 Merge "De-duplicate with callerTargets(added by using Intent.EXTRA_INITIAL_INTENTS) when adding DisplayResolveInfo." into rvc-dev am: e79c1056b2 am: 37334ce7d4 am: 13ac8ca930 am: e76f943138
Change-Id: I92165da6942e9cbca30ed733d61c06b66f3965a1
2020-05-16 00:01:48 +00:00
TreeHugger Robot
13ac8ca930 Merge "De-duplicate with callerTargets(added by using Intent.EXTRA_INITIAL_INTENTS) when adding DisplayResolveInfo." into rvc-dev am: e79c1056b2 am: 37334ce7d4
Change-Id: Ib70478206926b68fd3b6de0535b63f01b75638f1
2020-05-15 23:43:55 +00:00
TreeHugger Robot
b67a7b6b50 Merge "De-duplicate with callerTargets(added by using Intent.EXTRA_INITIAL_INTENTS) when adding DisplayResolveInfo." into rvc-dev am: e79c1056b2
Change-Id: I31757d24ac9ec3faf1f180706bde40d36c3a9da2
2020-05-15 23:26:08 +00:00
TreeHugger Robot
e79c1056b2 Merge "De-duplicate with callerTargets(added by using Intent.EXTRA_INITIAL_INTENTS) when adding DisplayResolveInfo." into rvc-dev 2020-05-15 23:10:41 +00:00
Kevin Chyn
6b0c536b93 Clean up BiometricPrompt bundle
We should stop using a bundle between BiometricPrompt (API),
AuthService/BiometricService, and AuthController (SystemUI)
For the below reasons

1) Bundles are too generic, and also less readable
2) Avoid needing to define default values everywhere
3) Cleaner interface
4) Convenience functions can be added within PromptInfo

We can consider having separate parcelables for
- BiometricPrompt->BiometricService
- BiometricService->AuthController
But that seems a bit overkill at the moment

Test: atest com.android.systemui.biometrics
Test: atest com.android.server.biometrics
Test: BiometricPromptDemo

Change-Id: I2911a876bf00197a13f6a406ab735a8bad5b960f
2020-05-15 15:47:43 -07:00
Mike Digman
f692252157 Merge "Add app grouping indicators to Sharesheet" into rvc-dev am: 0b079c3383 am: 0e543bf645 am: 8eef98996d am: e7474fe922
Change-Id: I26e2c748890639755cf04864bf07efed1ba6e2a4
2020-05-15 22:34:13 +00:00
Mike Digman
e7474fe922 Merge "Add app grouping indicators to Sharesheet" into rvc-dev am: 0b079c3383 am: 0e543bf645 am: 8eef98996d
Change-Id: I1f71a3abd7b93c90afe066dff669608f887f55e7
2020-05-15 22:16:22 +00:00
Mike Digman
00a3a86389 Merge "Add app grouping indicators to Sharesheet" into rvc-dev am: 0b079c3383 am: 0e543bf645
Change-Id: I61d73a4a0b3950ad9c3c742a2c841405bfc0544b
2020-05-15 22:05:30 +00:00
Mike Digman
70795b2679 Merge "Add app grouping indicators to Sharesheet" into rvc-dev am: 0b079c3383
Change-Id: I34246207ecec9c3772ee55ec06811008359faed5
2020-05-15 21:56:17 +00:00
Mike Digman
0b079c3383 Merge "Add app grouping indicators to Sharesheet" into rvc-dev 2020-05-15 21:54:16 +00:00
TreeHugger Robot
66c88e2589 Merge "Remove QS details prototype code" into rvc-dev am: 16715e7f85 am: 7835253585 am: 67b321708c am: 93bd0128e0
Change-Id: I6c6ae2906c56520c8cb58c204b9a8920ae84d137
2020-05-15 21:39:10 +00:00
TreeHugger Robot
e52cf06672 Merge "Correct Sharesheet icon and badge sizing" into rvc-dev am: 12ea0e4d4a am: d9f6701876 am: 3463218f8c am: 72074e656c
Change-Id: Ibb86a5985fc9284d5c8dec7a489c0fe8886e485e
2020-05-15 21:26:50 +00:00
TreeHugger Robot
28472b5acd Merge "Sharesheet - Fix app stacking" into rvc-dev am: 8714e7d195 am: b06daeb545 am: 0c5937781e am: 17de711358
Change-Id: I2af5bff843c46b31d85198bb16b613c675014520
2020-05-15 21:21:39 +00:00