Commit Graph

13770 Commits

Author SHA1 Message Date
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
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
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
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
53815e9b49 Merge "Remove QS details prototype code" into rvc-dev am: 16715e7f85
Change-Id: I621bea1b9e4018c02759b276049a92ce81567fff
2020-05-15 21:15:21 +00:00
TreeHugger Robot
16715e7f85 Merge "Remove QS details prototype code" into rvc-dev 2020-05-15 21:10:37 +00:00
TreeHugger Robot
c4bb6ebfce Merge "Correct Sharesheet icon and badge sizing" into rvc-dev am: 12ea0e4d4a
Change-Id: If28f86c1b0e6ab43964978604f0cc6c58c417ee2
2020-05-15 20:50:18 +00:00
TreeHugger Robot
12ea0e4d4a Merge "Correct Sharesheet icon and badge sizing" into rvc-dev 2020-05-15 20:42:21 +00:00
TreeHugger Robot
b262e10178 Merge "Sharesheet - Fix app stacking" into rvc-dev am: 8714e7d195
Change-Id: I81a52cc219359323ab2c70d1dfcabf6700309987
2020-05-15 20:21:30 +00:00
Mike Digman
438d1320f1 Add app grouping indicators to Sharesheet
When an app publishes multiple share targets those are now
grouped under a single target. However, there is no visual
indicator of grouping. This adds that in.

Test: manual, custom built apks for testing
Fixes: 150481688
Change-Id: Ibf72cec3a337a71387928d30126b286519f03f73
2020-05-15 12:05:32 -07:00
Song Hu
276e384e4c De-duplicate with callerTargets(added by using Intent.EXTRA_INITIAL_INTENTS) when adding DisplayResolveInfo.
Bug: 154611479
Test: atest CtsSharesheetTestCases:android.sharesheet.cts.CtsSharesheetDeviceTest
Change-Id: I812c8275fc6f12ad52f56419eedd0c580530704a
2020-05-15 10:01:52 -07:00
Santos Cordon
ed5a8fe9b7 Adjust float-to-int brightness conversion to be purely in float.
By converting to int and back as part of the final steps in sending the
brightness to the HAL, we undo the whole benefit of having floating
point brightness.  This change alters the conversion to an int-range
without using the int-primitives. This helps maintain the existing
precision.

Bug: 155875691
Test: Manually verify with logs that the float value isn't altered
before going to the HAL (it previously was).
Test: atest CtsDisplayTestCases
Test: atest DisplayManagerServiceTests
Change-Id: Ibf2f8d00c575d440c3fe437b32c0613bcd471c2a

Change-Id: Ie9569efb7b951c15ffcf2306ff9f864f858df8b1
2020-05-15 17:52:52 +01:00
Benedict Wong
d84c77544b Merge "Add methods for IKEv2/IPsec test mode profiles" am: f44b90fdc4 am: 8b0b9d8a26
Change-Id: I353d999ebcdd108a900abfe20be232e83147b6d2
2020-05-15 02:51:43 +00:00
Benedict Wong
f44b90fdc4 Merge "Add methods for IKEv2/IPsec test mode profiles" 2020-05-15 02:18:02 +00:00
Fabian Kozynski
36ddca1cf3 Remove QS details prototype code
Also remove some other leftover prototype code

Test: manual
Fixes: 156645457
Change-Id: I21f442b2501f00c78c51826a805e7be91a214c7d
2020-05-14 15:57:40 -04:00
Matt Pietal
c9544a7e92 Sharesheet - Fix app stacking
When there was greater than 2 candidates for app stacking, the prior
targets would get dropped.

Bug: 156220800
Test: atest ChooserActivityTest
Change-Id: Ia8494bb81e95c5415d080148a0c4f98bd243c142
2020-05-13 21:19:40 -04:00
Mike Digman
d45a8b5d60 Correct Sharesheet icon and badge sizing
SimpleIconFactory previously used fixed resources to render
icons and badges. Resolver and Chooser need different icon and
badge dimensions. This cause scaling issues. Move those sizes to
a styleable attr. New dimensions align with design red lines.

Test: manual
Fixes: 155813501
Change-Id: I765ba7aab1346eacf9e1cf7b6cdbfbbb14dbc3bb
2020-05-13 12:32:19 -07:00
Antoan Angelov
a1d2a8d9cc Merge "Initialize workProfileUserHandle before initial check for work tabs" into rvc-dev am: b98da91c63
Change-Id: I9c6336d8060b1f53834752b95dfa1170d2a96f16
2020-05-13 18:19:25 +00:00
Antoan Angelov
b98da91c63 Merge "Initialize workProfileUserHandle before initial check for work tabs" into rvc-dev 2020-05-13 18:06:06 +00:00
Miranda Kephart
2be49604d1 Merge "Fix NPE in ScreenshotHelper" into rvc-dev am: a4b9474647
Change-Id: I4f5eefd73aec60b2f4606e7bb18916d56384ebc6
2020-05-13 16:23:58 +00:00
Miranda Kephart
a4b9474647 Merge "Fix NPE in ScreenshotHelper" into rvc-dev 2020-05-13 16:20:14 +00:00
arangelov
8519218a73 Initialize workProfileUserHandle before initial check for work tabs
The shouldShowTabs() call checks for the existence of the work
profile user, which is actually initialized after that call.

Fixes: 156462936
Test: manual
Test: atest ChooserActivityTest
Test: atest ResolverActivityTest
Change-Id: Iff840826f7b008420f1a254c1044c05c27764d0c
2020-05-13 13:59:22 +00:00
TreeHugger Robot
a64fc14b85 Merge "Hide the top intent resolver divider when there are tabs" into rvc-dev am: f4fa3eb9fa
Change-Id: I2800dccca0869637cf87a6f1354ca3cea4b258c4
2020-05-13 12:54:55 +00:00
TreeHugger Robot
f4fa3eb9fa Merge "Hide the top intent resolver divider when there are tabs" into rvc-dev 2020-05-13 12:41:43 +00:00
Benedict Wong
63d2bfd257 Add methods for IKEv2/IPsec test mode profiles
This change adds the ability for IKEv2/IPsec VPN profiles to run on Test
Networks. If enabled, the IKEv2/IPsec VPN profiles will request ONLY
test networks.

Bug: 148582947
Test: FrameworksNetTests passing
Test: Added for testing
Change-Id: I2511b39b27a1e29ae97907cdb12728d13fb1628f
2020-05-12 22:55:55 -07:00
TreeHugger Robot
1e68d0e33c Merge "When android:ui process receives callback result of AppPredictionService sortTargets, directly handles result instead of sending to Handler which takes extra time to dispatch messages." into rvc-dev am: 58c274fdcb
Change-Id: I0e62291acfcdee38d2ac4a5e418a2a5550508257
2020-05-13 01:01:10 +00:00
TreeHugger Robot
58c274fdcb Merge "When android:ui process receives callback result of AppPredictionService sortTargets, directly handles result instead of sending to Handler which takes extra time to dispatch messages." into rvc-dev 2020-05-13 00:57:28 +00:00
Beverly Tai
574fbd1410 Merge "Inject LockPatternUtils into KeyguardUpdateMonitor" into rvc-dev am: 3fb4151b06
Change-Id: Ic4225ac0d4cbbdbfd6ca0c048302a74f9715b896
2020-05-12 22:58:50 +00:00
Beverly Tai
3fb4151b06 Merge "Inject LockPatternUtils into KeyguardUpdateMonitor" into rvc-dev 2020-05-12 22:40:44 +00:00
TreeHugger Robot
4dca85b87f Merge "Add OWNERS for display, haptics, input and power" into rvc-dev am: f30c225fcb
Change-Id: Id6ab3fe424d9914f1ec54c0f9a4684578ed89c0b
2020-05-12 20:28:17 +00:00
TreeHugger Robot
f30c225fcb Merge "Add OWNERS for display, haptics, input and power" into rvc-dev 2020-05-12 20:17:39 +00:00
Michael Wright
2e7e81c950 Add OWNERS for display, haptics, input and power
Bug: 156349083
Test: N/A
Change-Id: Ia8afccfc2e470095ae3d52c827c0ac78b7c120ae
2020-05-12 19:11:13 +01:00
Miranda Kephart
cc92b9c370 Fix NPE in ScreenshotHelper
Check for null before unbinding the screenshot process.

Test: manual
Bug: 155726862
Change-Id: Ica1cc521b6a510b5e15e42e1e2a87ebf613a53aa
2020-05-12 13:47:33 -04:00
Beverly
f882ee2164 Inject LockPatternUtils into KeyguardUpdateMonitor
For better testability of KeyguardUpdateMonitor. We don't actually want
to register callbacks to the real lock settings. But if we ever do in
tests, we make sure to cleanup the callbacks in
KeyguardUpdateMonitor.destroy().

Test: atest SystemUITests
Fixes: 156230507
Change-Id: I2548c15da29ef5a15f6d3b512fbfd344ca2bd355
2020-05-12 12:59:13 -04:00
Menghan Li
6a7ce20a46 Merge "Refines volume key shortcut confirm dialog strings" into rvc-dev am: 084b2de544
Change-Id: I3773e65872edd6d1be0bd273b1520faddf3fd0f8
2020-05-12 16:21:59 +00:00
Menghan Li
084b2de544 Merge "Refines volume key shortcut confirm dialog strings" into rvc-dev 2020-05-12 16:10:51 +00:00
menghanli
3cba1dc1c5 Refines volume key shortcut confirm dialog strings
- Provide more clear content for single and multiple services are
enabled.
- Avoid non-a11y users accidentally turning shortcut on without
reading this carefully. Hence we put "don't turn on" as the
primary action.

Bug: 155249323
Bug: 138582063
Test: atest AccessibilityShortcutControllerTest
Change-Id: I1c391bb0516bcebfbf6161b94cc0c0b80e0bb72f
2020-05-12 16:05:50 +00:00
Anna Trostanetski
b4a8ebd014 Merge "Remove atrost (and dbrazdil) from OWNERS files." am: 06e2fe837a am: 389fa5ce4f
Change-Id: I43430577015ddbcd5aabb10794d250a960eb5def
2020-05-12 16:03:40 +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
atrost
9cd0ba571c Remove atrost (and dbrazdil) from OWNERS files.
Test: none
Change-Id: If82422229d1b4cbed5e72d1c9042bd6a38be54e5
2020-05-12 12:36:02 +01:00
Alex Kershaw
760754ec61 Hide the top intent resolver divider when there are tabs
Fixes: 155174577
Test: manual
Change-Id: If35f4902e793767cbd38e1f5770d55c4e7b22872
2020-05-12 12:02:42 +01: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