Commit Graph

9800 Commits

Author SHA1 Message Date
Samuel Fufa
ccebfbe273 Clean up work profile
This includes
- Dismiss work edu on launcher state change
- Remove work tab flash on first setup
- Make edu bottom sheet adopt theme color
- Fix Work toggle bottom inset


Bug: 149200572
Bug: 149197172
Bug: 149199058
Bug: 149215103
Bug: 149198955
Bug: 145595763
Bug:149481723

Test: Manual
Change-Id: I39a30782b80fd3a66bede55754fa30a940d2caee
2020-02-19 19:33:09 +00:00
Hyunyoung Song
356a9f05c4 Fix folder UI open regression when tapping edit text / Fix NPE
Bug: 149835166
Bug: 149839789



Change-Id: I295cc72e4228249794eae11f177226179f2a175f
2020-02-19 11:15:12 -08:00
Hyunyoung Song
bd5048a156 Merge "Move foldername and appinfo fetching to model thread" into ub-launcher3-master 2020-02-19 01:57:36 +00:00
Hyunyoung Song
308faf8335 Move foldername and appinfo fetching to model thread
Bug: 149255695
Change-Id: I8377d4a06d4ae67b601f3e0ad9e722bd7b103a7a
2020-02-18 16:41:45 -08:00
Sunny Goyal
4a9e1e2117 Fixing long-press in syste-drag does not initialize the event pos
Bug: 147899070
Change-Id: I73bc7d5addde5fb3304cac29f0ecce17b2cc48ea
2020-02-18 16:27:07 -08:00
Hyunyoung Song
0580b4a5c1 Change hint text on folders
Bug: 135182686

Change-Id: I8e21384242b9d890a0f698fdaaf722b205967349
2020-02-17 12:38:58 -08:00
Samuel Fufa
f240ef2a0c Merge "Add Tests for work profile toggle" into ub-launcher3-master 2020-02-16 02:28:23 +00:00
TreeHugger Robot
2c87fb99f6 Merge "Revert "Enabling testPressHomeOnAllAppsContextMenu while fixing failure cause"" into ub-launcher3-master 2020-02-15 07:02:24 +00:00
Vadim Tryshev
47b3588ba5 Revert "Enabling testPressHomeOnAllAppsContextMenu while fixing failure cause"
This reverts commit c2842d8f4a.

Reason for revert: CL broke TaplTestsLauncher3.testDevicePressMenu in 2-button mode

Change-Id: Idebda69a36b94686415434e8e3f158a8a7abc5bb
2020-02-15 02:25:35 +00:00
TreeHugger Robot
3fc9db9dae Merge "Rename flag IS_DOGFOOD to IS_STUDIO." into ub-launcher3-master 2020-02-15 01:32:33 +00:00
vadimt
c2842d8f4a Enabling testPressHomeOnAllAppsContextMenu while fixing failure cause
Change-Id: I012d5144651f5e7fb362caaef6eec8cee7622fb4
2020-02-14 14:50:28 -08:00
Zak Cohen
3eeb41de9a Rename flag IS_DOGFOOD to IS_STUDIO.
The flag is only set when building from Android Studio... and is never
used for dogfood.

Test: local
Change-Id: I898d585f4558c2437f0152ef102bea59c351f80b
2020-02-14 14:19:59 -08:00
Samuel Fufa
ea4dcf468e Add Tests for work profile toggle
+ Fix minor style issues

Bug: 140099753
Bug: 112899690
Test: Manual
Change-Id: I1257560be79748abe54a75a74d93caa4390943b5
2020-02-13 17:21:54 -08:00
Thiru Ramasamy
f40c579524 Merge "Initial draft of smart folder logging to clearcut pipeline." into ub-launcher3-master 2020-02-14 00:49:14 +00:00
thiruram
c1c2bfa7fb Initial draft of smart folder logging to clearcut pipeline.
* Adds additional fields to launcher_log.proto to capture smart folder related information.
* Uses ProtoLite to generate log object using builder pattern and converts to nano version before writing to clearcut. Hence not making drastic change to existing logging pattern.

Change-Id: I89b10da8d4e35e3abc7ddb553046946f91b43445
2020-02-13 13:32:21 -08:00
Tracy Zhou
c7f39fc66d Merge "Follow up change to GridBackupTable per V2 backup / restore (multi-db)" into ub-launcher3-master 2020-02-13 21:18:04 +00:00
Tony Wickham
f6dde3966a Add some more data to TouchInteractionService dumps
- Dump OverviewComponentObserver (to check if we're using 3P launcher)
- Dump current enabled and disabled plugins
- Dump all debug FeatureFlags instead of a few handpicked ones

Bug: 146174627
Change-Id: Ic8df899433b0e42d0e05eb1c80c87f62d3b936b6
2020-02-13 11:40:25 -08:00
Tracy Zhou
02cb060775 Follow up change to GridBackupTable per V2 backup / restore (multi-db)
Removed the code to handle table copying across dbs. We don't really need this since per ag/10298497, we can just copy db files directly.

Bug: 149236106
Test: N/A
Change-Id: I90bd7b6779fcaa841c71f5d0f27ec91907f926fc
2020-02-12 18:08:06 -08:00
TreeHugger Robot
421946a8e1 Merge "Revert ENABLE_PREDICTION_DISMISS and ENABLE_HYBRID_HOTSEAT flags to use DeviceFlag" into ub-launcher3-master 2020-02-13 01:43:47 +00:00
Samuel Fufa
ea5f40c6af Revert ENABLE_PREDICTION_DISMISS and ENABLE_HYBRID_HOTSEAT flags to use DeviceFlag
Bug: 142753423
Change-Id: I72fee5caafb22700548e788476ba9e56e4da569f
2020-02-13 01:09:42 +00:00
Hyunyoung Song
439beff8c4 Enable folder name suggest feature
Change-Id: I9007a7e5b07dd832a63793de25227af6aaa9377c
2020-02-12 13:26:47 -08:00
TreeHugger Robot
6929b9a197 Merge "Log Hotseat onboarding user actions" into ub-launcher3-master 2020-02-12 18:36:04 +00:00
Hyunyoung Song
6e3120cf06 Merge "Introduce FolderNameInfo class." into ub-launcher3-master 2020-02-12 18:26:56 +00:00
Samuel Fufa
b641ac2a62 Log Hotseat onboarding user actions
+ Resolve notifiaciton dot scale issue

Bug: 147336566
Bug: 148232056
Change-Id: I0120dc183a876fda38f4682425697378c7be20f3
2020-02-12 10:02:53 -08:00
jayaprakashs
e534d3b5f9 Introduce FolderNameInfo class.
* Introduce FolderNameInfo class for passing down the folder name
suggestions from FolderNameProvider.
* Use FolderNameInfo for storing the serialized suggested names for
Folders. It is parsed and used in FolderEdit.

Bug: 148417030
Bug: 148916551
Bug: 148432151

Change-Id: Idaa81e203cc42889be15d0845230b4508521041c
2020-02-11 11:36:28 -08:00
Vadim Tryshev
47a73672db Merge "Verifying events from TouchInteractionService" into ub-launcher3-master 2020-02-11 01:46:53 +00:00
Sunny Goyal
9f56a2f55a Using Display listener for landscape/seascape changes
Bug: 146150882
Change-Id: Idd2ef053bd10d9add93a1366e49c0e231f2c391b
2020-02-10 16:57:55 -08:00
TreeHugger Robot
faa400537b Merge "Removing tracing for "Launcher didn't initialize" flake" into ub-launcher3-master 2020-02-10 21:17:42 +00:00
vadimt
2e1e0d6bff Removing tracing for "Launcher didn't initialize" flake
The flake had disappeared, perhaps because of this logging, or,
hopefully, for some other reason.

Bug: 148313079
Change-Id: I636783d5fc71474dd443c143289c3ff74651835e
2020-02-10 12:47:42 -08:00
Jon Miranda
d59b6c59c8 Disable All Apps spring.
Bug: 147302669
Change-Id: I36cf13e94cf2d418909df345a4e36d827ac7eedf
2020-02-10 12:18:42 -08:00
Samuel Fufa
1c3c3b1d6f Show all apps app names in multi window landscape
Bug: 145019195
Test: Manual
Change-Id: I14af825e3d23a54de54d22625bfd427563269211
2020-02-09 13:16:30 -08:00
Samuel Fufa
28c3e4553a Sync prediction client and folders
- Notifies prediction client when a folder is converted into workspace
item as a result of losing all items but one.
- Notifies predction client when a folder is created from an item in the
workspace with no duplicates.

Bug: 148749638
Test: Manual
Change-Id: Ifd51a6fe2a40c8baf4d88e2dba1e5bdc925e1608
2020-02-08 16:19:53 -08:00
TreeHugger Robot
958995a771 Merge "Fixing race condition on test information provider" into ub-launcher3-master 2020-02-07 21:09:11 +00:00
Tony Wickham
619daaf82a Give current TaskView accessibility focus
Send TYPE_VIEW_FOCUSED in the following places:
- When page transition ends on a task
- When finishing state transition to overview
- When un-hiding the current running task view

Bug: 145647019
Change-Id: I7bb357ea60e1dea79daf2ad50efa51071e064da8
2020-02-07 12:38:34 -08:00
Sunny Goyal
5fffa47cac Fixing race condition on test information provider
Activity tracker is accessed on a non-UI thread, which can cause a non-initialized
Launcher to be treated as initialized

Bug: 149022794
Change-Id: I6634a6aff891592369c16469bbe95a9ea611819c
2020-02-07 12:37:44 -08:00
Pinyao Ting
4c81a9a819 fix launcher crash when accessing Notification dots in home settings
Bug: 148815606
Test:
1.  Make sure launcher doesn't have notifications permission
    (Settings -> search for "notification access" -> Disable access for Launcher)
2.  Home settings -> Notification Dot
3.  Verify Alert Dialog pops up without crash

Change-Id: I399b6aad46e8a3e185199a2909adac9f75596b50
2020-02-07 12:04:46 -08:00
vadimt
d633c9c7da Verifying events from TouchInteractionService
There is a guaranteed order in which TIS events will be registered
relative to other TIS events. However, relative to the touch events
arriving to the activity, TIS events can come in any order.

Now the event checker verifies 2 independent ordered event sequences:
from TIS, and “the rest” (Main).

Change-Id: I5872e0e3b0b498050a91c67105fbe4a29411375a
2020-02-07 11:46:03 -08:00
TreeHugger Robot
b3ea58d582 Merge "Separate 2-button mode check from ENABLE_OVERVIEW_ACTIONS" into ub-launcher3-master 2020-02-07 00:21:03 +00:00
Tracy Zhou
d880f0bc09 Merge "Setup infrastructure (multi-db support) for the new grid migration algorithm" into ub-launcher3-master 2020-02-07 00:00:26 +00:00
TreeHugger Robot
0c324cb195 Merge "Various icon cache fixes" into ub-launcher3-master 2020-02-06 23:22:31 +00:00
Tony Wickham
04fca1642c Separate 2-button mode check from ENABLE_OVERVIEW_ACTIONS
This will allow us to cleanly remove ENABLE_OVERVIEW_ACTIONS while still
keeping the shelf instead of actions in 2-button mode.

Bug: 143361609
Change-Id: I5cd43b6d3daeb527c7787b1cb81fae9179d8911c
2020-02-06 15:06:59 -08:00
Sunny Goyal
18204e4eea Various icon cache fixes
> Multiple instances of LauncherIcon created when
    LauncherIcons refers IconCache which in turn creates new LauncherIcons
> Widget icons are never cached as they were using low res icons
> Shortcut drag icons are not loaded synchronously
    when using PinItemRequest flow
> Wrong lastUpdatedTime is used in iconCache for shortcuts
> IconUpdateHandler does not ignore managedUser promise icons

Change-Id: Ie7eed68a30fad11d1861b6c70c380953a15ae1cf
2020-02-06 14:16:34 -08:00
TreeHugger Robot
61d639d756 Merge "Make LauncherState transitionDuration overridable at runtime" into ub-launcher3-master 2020-02-06 20:01:49 +00:00
Tracy Zhou
7df93d28d4 Setup infrastructure (multi-db support) for the new grid migration algorithm
We'll have a db for each grid option and a db for back up / restore.

TODO(pinyaoting): support back up / restore using the new infrastructure, particularly calls to GridBackupTable should use different DBs when the feature flag (NEW_GRID_MIGRATION_ALGORITHM) is on.

Bug: 144052802
Test: N/A

Change-Id: I644a3e70148bd78204a747a337446a3c038f616f
2020-02-05 19:55:05 -08:00
Tony Wickham
c7203ad541 Make LauncherState transitionDuration overridable at runtime
This follows the pattern of most of the other state properties, and
allows us, for example, to extend the overview transition in 0-button
mode, but keep it shorter for other modes that don't travel as far.

Bug: 143361609
Change-Id: Ibf8142bf3f57bb73be826adb6f4a32c136ff56dc
2020-02-05 11:16:58 -08:00
TreeHugger Robot
aa68a3624b Merge "OverviewActions: Fix action buttons in place" into ub-launcher3-master 2020-02-04 23:22:43 +00:00
TreeHugger Robot
0d00ab53ea Merge "Move 'dismiss prediction' to droptarget" into ub-launcher3-master 2020-02-04 22:26:11 +00:00
Sreyas
e3e7e63902 OverviewActions: Fix action buttons in place
Forcing OverviewActions buttons to appear as if it is shown only once in overview screen by overlapping all instances in the same spot.

Change-Id: I195d5455d5eb9f12a19c352169bc995849e59281
2020-02-04 14:25:14 -08:00
Samuel Fufa
5cf3e86f80 Move 'dismiss prediction' to droptarget
This is done to avoid shortcuts being crowded when a predicted app is
long pressed.

Bug: 148707493
Test: Manual
Change-Id: I356a2cebfcc329478d96ee815fd641179359a572
2020-02-04 12:24:16 -08:00
Jonathan Miranda
d6705f8f1a Merge "Enable All Apps spring." into ub-launcher3-master 2020-02-04 18:48:17 +00:00