Commit Graph

3156 Commits

Author SHA1 Message Date
Patrick Baumann ea46be01aa Adds QUERY_ALL_PACKAGES to launcher manfiests
This change adds the QUERY_ALL_PACKAGES permission to launcher3 so that
it can see all packages on device with the app enumeration featur
enabled in R.

Bug: 149557568
Test: Manual; use launcher3 and ensure it displays all apps
Change-Id: I15e6e86e5476900a6b9c3a6da1cbb11fcbf97e6c
2020-02-14 10:32:39 -08:00
Hongwei Wang 5a0ee40cf4 Resolve missing merge conflict
See also ag/10265874

Test: N/A
Change-Id: I3d621ad5bb0d733468e6a642842f065ea83d696a
2020-02-06 17:13:03 -08:00
Hongwei Wang 51c6fdf7c3 Merging from ub-launcher3-master @ build 6188107
Test: manual, presubmit on the source branch
http://x20/teams/android-launcher/merge/ub-launcher3-master_6188107.html

Change-Id: I84c1ea301508ba5f0f3d337a423cea8e61832c0d
2020-02-06 15:03:07 -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
vadimt 3908a50ce1 Disable testQuickSwitchFromApp test due to test failures
Bug: 143285809
Bug: 148865178
Change-Id: I9ac955d9b1ea057258b65b65c5bc813441c1161f
2020-02-04 18:42:56 +00:00
Winson Chung 3645b5884a Remove double application of surface params
Bug: 148862530
Change-Id: Ifd29b344bd68f58d6252edd804dc3f43319033f8
2020-02-04 18:21:44 +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
TreeHugger Robot 17021f3d96 Merge "Fix notification dot for predicted hotseat icons" into ub-launcher3-master 2020-02-03 01:43:25 +00:00
TreeHugger Robot 8c6cff249e Merge "Enabling quick switch test" into ub-launcher3-master 2020-02-01 02:25:09 +00:00
Samuel Fufa 0ea7ddddc5 Fix notification dot for predicted hotseat icons
Bug: 148232056
Test: Manual
Change-Id: I34660eff089ce2f95ceebde143f22b1ef729ea09
2020-01-31 18:09:48 -08: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
vadimt db185f6b3e Enabling quick switch test
Now that 2 underlying bugs are fixed

Bug: 143285809
Change-Id: Ie85177830def6e6ee72688f7dbb15ebef9c5ae48
2020-01-31 17:27:46 -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 8f6d141d84 Work toggle improvements
Bug:141289979
Test:Manual
Change-Id: If96845c0220816f9ffd5a5c86ec33b2674d15d1d
2020-01-31 12:07:12 -08:00
vadimt 7505222183 TAPL: Verifying pilferPointers events
Change-Id: Ie825beb4b3adf7fea28959b460e99a44bc471063
2020-01-31 11:22:43 -08:00
Jon Miranda 892667cdf5 Track overview animation as atomic animation.
This fixed the bug where user can't double swipe up to All Apps. This is
needed before All Apps spring can be enabled, because the spring makes it
easier to get into this state.

To repo bug:
1. Hold shelf up so that overview starts to peek
2. Release
3. Before overview peek animation finishes, swipe up again to go to All Apps.

Bug: 79878197
Change-Id: I8c87b742d7da31d23be4decb72b45e9f21788af9
2020-01-30 19:53:26 -08:00
TreeHugger Robot ed6aa18992 Merge "Making setActiveOverlay and getCurrentOverlayPackage public" into ub-launcher3-master 2020-01-30 23:39:45 +00:00
Sunny Goyal 9c2b96090b Adding SecondaryDisplayLauncher in Launcher using common listener
Bug: 141596722
Change-Id: I480bfadf592f7d0309f17c33a3fe14bb77fb5586
2020-01-30 08:27:27 +00:00
vadimt 4809121c02 Making setActiveOverlay and getCurrentOverlayPackage public
These will be used by memory tests

Bug: 139137636
Change-Id: I213966e8a0443b122412a4fd9fc6415870db2c05
2020-01-30 02:39:26 +00:00
TreeHugger Robot 6f7f380dde Merge "Verifying the event for pressing square button" into ub-launcher3-master 2020-01-29 19:01:56 +00:00
TreeHugger Robot 89321dde65 Merge "Tracing for another "Launcher didn't initialize" failure" into ub-launcher3-master 2020-01-29 18:38:49 +00:00
TreeHugger Robot 657fa570da Merge "Fixing another reference to Launcher activity after its destruction" into ub-launcher3-master 2020-01-29 18:37:49 +00:00
Winson Chung 907cbb9f2c Merge "Adding new tracing call from SysUI" 2020-01-29 05:04:48 +00:00
TreeHugger Robot 0618d689e8 Merge changes from topic "state-supplier" into ub-launcher3-master
* changes:
  Translate recents slightly while dragging after pausing
  Two-zone model: swipe up from nav bar vs above it
  Change LauncherState to Supplier<LauncherState> in tests
2020-01-29 03:06:04 +00:00
Tony Wickham fd239cafbe Translate recents slightly while dragging after pausing
There's a lot of resistance, but feels better than nothing
responding to your movement.

Bug: 143361609
Change-Id: I9d7e06279ebdbaa0317909ce96d6f001dbe9699a
2020-01-28 18:31:14 -08:00
Tony Wickham 4fdba14cfb Two-zone model: swipe up from nav bar vs above it
When ENABLE_OVERVIEW_ACTIONS flag is enabled, swiping up from the nav
bar goes to overview if you hold, or the first home screen if you don't.

- Added NoButtonNavBarToOverviewTouchController, which extends
  FlingAndHoldTouchController but only works if you start from the nav
  bar. Otherwise it falls back to PortraitStatesTouchController to
  handle normal state transition to all apps.
- Added HintState. This is where the workspace/hotseat/qsb scale down
  when you swipe up from the nav bar, to hint that you're about to
  either go to overview or the first home screen.
  - Added getQsbScaleAndTranslation() to allow Overview and Hint states
    to treat it as part of the hotseat.
  - Since Overview needs to show above the QSB as it's animating, bring
    Overview to the front and update OverviewScrim to handle the case
    where there's no view above Overview to draw the scrim beneath.
- ENABLE_OVERVIEW_ACTIONS is always false in 2-button mode, since the
  shelf is crucial to that mode.

Bug: 143361609
Change-Id: I743481bb239dc77f7024dc98ba68a43534da2637
2020-01-28 18:31:10 -08:00
vadimt 8196e7984a Verifying the event for pressing square button
Change-Id: If7e3cf29e3a069a295f2612800ddbbfc27653c32
2020-01-28 18:23:05 -08:00
Tony Wickham 8a054061ef Change LauncherState to Supplier<LauncherState> in tests
This prevents the test from statically initializing LauncherState and
all its static dependencies, which might lead to runtime exceptions in
out-of-proc tests.

Change-Id: I0e4e09dfb31a8b256c2c0c0b3d1d2ecd0cc92230
2020-01-28 18:07:33 -08:00
vadimt a931e1981d Fixing another reference to Launcher activity after its destruction
Bug: 139137636
Change-Id: Id7a3a3d8c49d28dae964852661dfa330a8535375
2020-01-28 15:14:59 -08:00
vadimt c8b09709ff Tracing for another "Launcher didn't initialize" failure
This simply restored logging used for one of earlier investigations

Bug: 148313079
Change-Id: Idafed13208dc5610d577986fc487d1d44bc0ef5e
2020-01-27 17:48:49 -08:00
Zak Cohen 4b26b21424 Merge "Revert "Revert "Use autogenerated SysUiStatsLog for statsd logging""" into ub-launcher3-master 2020-01-27 23:49:50 +00:00
Zak Cohen ef01e6e86b Revert "Revert "Use autogenerated SysUiStatsLog for statsd logging""
This reverts commit 3b7209d0d6.

Reason for revert: replacing after the lib drop

Change-Id: Ide0a88da611d4a9dfe0c7ba980fabdc14ac96b31
2020-01-27 23:49:12 +00:00
Zak Cohen 7db9e7b92c SystemUiProxy - add screenshot method.
Test: build, manual integration
Bug: 145297320
Change-Id: Ia19e4b88a669c4f8d4d29a2e8e61207fee279ac3
2020-01-27 15:38:36 -08:00