Commit Graph

3055 Commits

Author SHA1 Message Date
Winson Chung a7c931dd49 Merge changes I29dab94f,Ie13db509 into ub-launcher3-master
* changes:
  Fix issue with out of order callbacks
  Skip setting end target if the recents animation was canceled or ended
2020-02-14 01:15:04 +00:00
vadimt 3a49aa090f Enable testQuickSwitchFromApp after fixing what caused it to fail
Bug: 143285809
Change-Id: Ic7895ab7d4ef3ab207fc77184eb53f0f6d8e9b23
2020-02-13 16:14:15 -08:00
Winson Chung b53573d651 Fix issue with out of order callbacks
- If any call to finish the recents animation comes in before
  onRecentsAnimationStarted, we'll clear the callbacks but the listener
  registered in startRecentsAnimation will persist.  Since the call
  to actually finish the animation with the system is posted on the
  main thread, if the animation started callback returns in that time,
  the controller will be set (via the listener) but the callbacks will
  be unset.  Instead, we can clear all the listeners from the previous
  callbacks when cleaning up the animation.

Bug: 145758818
Change-Id: I29dab94f5fb25f762a823d59ef318a361282b595
2020-02-13 16:07:44 -08:00
Winson Chung 8cba1bc488 Skip setting end target if the recents animation was canceled or ended
Bug: 147249069
Change-Id: Ie13db509466776873df383eef599c11c5cd32ab2
2020-02-13 15:37:37 -08:00
Zak Cohen 88ea05ad39 Overview actions - bring UI closer to redlines.
Test: local
Bug: 139828243
Change-Id: Ia1cb0fc1c111a6a22fa4b4a98b43cd9ac1869a2c
2020-02-13 14:29:24 -08: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
Vinit Nayak 782b7ca941 Merge "Use activity rotation to compute delta" into ub-launcher3-master 2020-02-12 23:54:37 +00:00
TreeHugger Robot 6351eb4737 Merge "Reset launcher on shortcutconfig activity minimize" into ub-launcher3-master 2020-02-12 23:43:10 +00:00
Samuel Fufa 13890c08f7 Reset launcher on shortcutconfig activity minimize
Bug: 145021068
Test: Manual
Change-Id: I4fe050c062e04cf195add685ac2e9ae9abcea7c6
2020-02-12 12:50:49 -08:00
Vadim Caen b6465b2118 Use activity rotation to compute delta
When computing applying the rotation matrix to the TaskView thumnail,
use the rotation of the window configuration instead of the displays.

The forced rotation (ag/10176951) does not yet provide overrided values
for the display orientation when the requesting app is being forced
rotated, which is the case of the launcher. So
getDisplay().getRotation() would return the true rotation of the display
and not the rotation of the activity.

Test: with "adb shell settings put global forced_rotation 1"
and ag/10176951 and parents applied
 1. Open landscape application
 2. Display recents view
 3. Check that the thumnail is in the same rotation as the opened
 application

+ tests from I060a5dfcbcbb2ac21624d2ac778f76562bd60f40
Bug: 143053092
Bug: 143892437

Change-Id: Iee250459050b3c75dc3b79deed0682f809c7168b
2020-02-12 11:40:48 -08:00
TreeHugger Robot a56fc50cb0 Merge "Fixing some activity leaks" into ub-launcher3-master 2020-02-12 19:36:14 +00:00
TreeHugger Robot 6929b9a197 Merge "Log Hotseat onboarding user actions" into ub-launcher3-master 2020-02-12 18:36:04 +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
vadimt 047812a906 Remove test testPressRecentAppsLauncherAndGetOverview
It tests UiDevice.pressRecentApps(), which we don't use, so we don't
need to test it.

Bug: 131115533
Change-Id: I3a1b31f3b8368e3c848c888a5a27577faa940832
2020-02-11 19:15:59 -08:00
vadimt b545b68b3c Fixing some activity leaks
Bug: 139137636
Change-Id: I36055ac278879314d0afe6acf080f0082990113f
2020-02-11 18:33:22 -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 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
Samuel Fufa 9cd88ea0ca Merge "Prevent prediction updates while app is launching" into ub-launcher3-master 2020-02-08 23:14:24 +00:00
Samuel Fufa 1a3bde55c1 Prevent prediction updates while app is launching
Bug:148800229
Change-Id: Ide9d029139f5d25ac39c276b90b2a514c2679dc9
2020-02-08 14:42:28 -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
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
vadimt c71db98747 Increasing nav mode settlement timeout as an attempt to workaround nav
mode mismatch bug.

Bug: 148422894
Change-Id: I1295c1415a308ec461d302c9973309f4de77f984
2020-02-07 10:34:59 -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
TreeHugger Robot a8063bb660 Merge "Removing multidex support" into ub-launcher3-master 2020-02-06 23:36:24 +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
Sunny Goyal 5c052b4a2e Removing multidex support
Bug: 148912608
Change-Id: Ib9ab922ec0c3b0f3c5e4a8f5ebc6220cac1e5516
2020-02-06 14:10:03 -08:00
TreeHugger Robot 61d639d756 Merge "Make LauncherState transitionDuration overridable at runtime" into ub-launcher3-master 2020-02-06 20:01:49 +00:00
Winson Chung 9b6f4a01e8 Merge "Close system windows when triggering alt-tab" into ub-launcher3-master 2020-02-06 04:52:55 +00:00
TreeHugger Robot c3b8ff4448 Merge "TAPL: Verifying pilferPointers events" into ub-launcher3-master 2020-02-05 19:28:20 +00: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 a82d30925f Merge "Rotate quickswitch task thumbnails" into ub-launcher3-master 2020-02-05 17:36:09 +00:00
Vinit Nayak 8648eee778 Rotate quickswitch task thumbnails
Previously we were only rotating
thumbnails if the difference between
them was portrait vs landscape, so
a thumbnail in seascape with the launcher
in landscape wouldn't be rotated.

fixes: 143892437, 148898206
Test: With launcher in portrait
* Thumbnail in reverse portrait,
landscape, seascape, normal
With launcher in landscape
* Thumbnail in seascape, normal,
reverse portrait, landscape
With launcher in seascape
* Thumbnail in seascape, normal,
reverse portrait, landscape

Change-Id: I060a5dfcbcbb2ac21624d2ac778f76562bd60f40
Original-Change-Id: I1dd82428c05e4338a90ddb7b381fe920735f7cfd
2020-02-04 21:59:28 -08:00
TreeHugger Robot 68dce811a8 Merge "Revert "Rotate quickswitch task thumbnails"" into ub-launcher3-master 2020-02-05 02:01:42 +00:00
Vinit Nayak b2beeaec06 Revert "Rotate quickswitch task thumbnails"
This reverts commit f8b1d414bb.

Reason for revert: causing test failure b/148898206

Change-Id: Iaefba406504dadf27e6f423b49165362ff48e2a3
2020-02-05 01:12:28 +00: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 959cfaa58e Merge "Rotate quickswitch task thumbnails" into ub-launcher3-master 2020-02-04 22:42:21 +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
Winson Chung cd90c05479 Close system windows when triggering alt-tab
Bug: 148168572
Change-Id: I3488509eb0c9fd3c407653ba550c89f4259f98d0
2020-02-04 21:45:50 +00:00
Winson Chung 85cd51e0e2 Merge "Remove workaround for starting app" into ub-launcher3-master 2020-02-04 21:43:49 +00:00
Winson Chung 487be04709 Merge "Remove double application of surface params" into ub-launcher3-master 2020-02-04 19:56:18 +00:00
Winson Chung dd14633250 Remove workaround for starting app
Bug: 141580748
Change-Id: I7760bc0ee07db6798153ff33566b48fcb3c39651
2020-02-04 19:06:55 +00:00
Jonathan Miranda d6705f8f1a Merge "Enable All Apps spring." into ub-launcher3-master 2020-02-04 18:48:17 +00:00
Vadim Tryshev 287bcc2791 Merge "Disable testQuickSwitchFromApp test due to test failures" into ub-launcher3-master 2020-02-04 18:43:23 +00:00