Commit Graph

9687 Commits

Author SHA1 Message Date
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
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
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
Samuel Fufa 746d420f76 Notify predictor on appIcon convert to folder
Bug:148749638
Test:Manual
Change-Id: I7eed1f309197479f708a23029c04106af0ac536f
2020-02-03 15:42:43 -08:00
Jon Miranda 2e8828bd30 Enable All Apps spring.
Bug: 147302669

Change-Id: I944ce7d181c554d840329a3affe0dee76eed9143
2020-02-03 14:03:47 -08:00
Samuel Fufa 4e7a48f2f5 Merge "Change Icon for app icon dismiss action" into ub-launcher3-master 2020-02-03 01:44:04 +00:00
Samuel Fufa 05a3a0b871 Merge "Include hotseat spots count in app launch log" into ub-launcher3-master 2020-02-01 01:44:52 +00:00
Samuel Fufa 3351fd60f6 Change Icon for app icon dismiss action
Bug: 145556909
Test: Manual
Change-Id: Icb55f813c76b4cc8e6052b1f6eb6586230727bb9
2020-01-31 16:35:47 -08:00
Samuel Fufa 18b69df8cd Include hotseat spots count in app launch log
Bug: 142753423
Change-Id: I02e0322500344e2b0925ac1251235d210b13c325
2020-01-31 16:13:55 -08:00
Samuel Fufa c10b184297 Merge "Work toggle improvements" into ub-launcher3-master 2020-01-31 23:11:30 +00:00
TreeHugger Robot d4d704e73c Merge "Adding a utility class to easily track bitmap creations during View.draw" into ub-launcher3-master 2020-01-31 22:01:40 +00:00
Samuel Fufa 8f6d141d84 Work toggle improvements
Bug:141289979
Test:Manual
Change-Id: If96845c0220816f9ffd5a5c86ec33b2674d15d1d
2020-01-31 12:07:12 -08:00
TreeHugger Robot 766a5d1337 Merge "Use original disabled icon for app animations with disabled icons." into ub-launcher3-master 2020-01-31 20:03:24 +00:00
Sunny Goyal 3c43157405 Adding a utility class to easily track bitmap creations during View.draw
Change-Id: I8b85564aad475e823f345ae96e922b35eab06f8e
2020-01-31 18:13:54 +00:00
TreeHugger Robot 102297262f Merge "Fix a couple issues related to drag and drop in Touch Exploration mode" into ub-launcher3-master 2020-01-31 01:17:27 +00:00
Adam Cohen 732b1d46c5 Fix a couple issues related to drag and drop in Touch Exploration mode
=> The framework no longer sends touch events after double-click and hold, and instead only triggers a single long-press event
=> As a result of the above, there is some additional state that must be set for accessible drag and drop, and further, we no longer initiate a drag in response to long press when Touch Exploration is on.

Test: manual

issue b/148308758

Change-Id: I26ab90b807965f31c8de93d451130410169f2fb0
2020-01-30 23:38:59 +00:00