Commit Graph

5316 Commits

Author SHA1 Message Date
Sreyas
59b5e241e2 Hide chips if loaded in select mode.
Bug: 182375263
Test: Manual

Change-Id: Id9709a2033b303c09d9ca26d2e05af6af45df564
2021-03-22 15:59:54 -07:00
Tracy Zhou
5ac61e1a2e Merge "Support live tile with OVERVIEW_GRID" into sc-dev 2021-03-22 21:20:22 +00:00
TreeHugger Robot
6db6c9fe7d Merge "Don't go to NORMAL after task launches if animation in progress" into sc-dev 2021-03-22 19:42:35 +00:00
Tony Wickham
089ad5faab Merge "Dump input monitor and input event receiver to bug reports" into sc-dev 2021-03-22 19:04:14 +00:00
Tracy Zhou
ef45cc95b5 Support live tile with OVERVIEW_GRID
Test: turn on both ENABLE_QUICKSTEP_LIVE_TILE and OVERVIEW_GRID. Swipe up from app to overview
Fixes: 183231362
Change-Id: Ic918e1fad423295d532cefce13c85e622ff8116c
2021-03-22 10:30:22 -07:00
Tony Wickham
85a8da0290 Dump input monitor and input event receiver to bug reports
Test: adb shell dumpsys activity service TouchInteractionService
Bug: 180915942
Change-Id: Ic1155b323cd3f9cef164ce4d663cadc4b29a0893
2021-03-22 09:30:18 -07:00
Bob Badour
41b58c6ec7 Merge "[LSC] Add LOCAL_LICENSE_KINDS to packages/apps/Launcher3" into sc-dev 2021-03-19 23:55:24 +00:00
Tracy Zhou
f209a77a96 Merge "Continue receiving key events from input consumer after settling into Overview" into sc-dev 2021-03-19 20:18:41 +00:00
Tony Wickham
4076cae87f Merge "Use taskbarSize as bottom inset when taskbar is present." into sc-dev 2021-03-19 18:15:52 +00:00
Tony Wickham
e31af6264d Don't go to NORMAL after task launches if animation in progress
Test: Swipe down on a task, swipe up immediately as it launches;
state stays as BACKGROUND_APP instead of NORMAL
Fixes: 171757635

Change-Id: Ia38774c01190bd184e229ff532ea9df2a75abcb4
2021-03-19 11:07:39 -07:00
Sreyas Rangaraju
a2c2d861ba Merge "Fixes OverviewActionsView height sizing." into sc-dev 2021-03-19 17:06:21 +00:00
Tracy Zhou
b0b2a9acd0 Continue receiving key events from input consumer after settling into Overview
This builds on ag/13732971. In live tile mode after settling into overview, recents_animation_input_consumer should have the focus, and thus we will need to extend the lifecycle of input consumers so that key events can be routed to launcher

Overall, since live tile extends the lifecycle of certain private variables of AbsSwipeHandler, I am thinking of doing a refactor by putting those things into a separate class, but it might be too big for this change.

TODO: I've verified that this change works while if we don't process motion events, it would cause b/182932863. Will investigate on that.

Fixes: 181404912
Test: Cherry pick ag/13732971; Go to overview; Swipe back; Observe the animation to go back to app
Change-Id: I5afd397be387b75f373442781dd1d00560dca99e
2021-03-19 10:00:54 -07:00
Sunny Goyal
ddbc7bf03d Merge "Fixing ActivityInit getting called before the full launcher components are initialized" into sc-dev 2021-03-19 16:41:34 +00:00
Pat Manning
b2cfab5321 Merge "Respect clip hint when aligning cropped thumbnails." into sc-dev 2021-03-19 15:26:18 +00:00
Bob Badour
390b27e46c [LSC] Add LOCAL_LICENSE_KINDS to packages/apps/Launcher3
Added SPDX-license-identifier-Apache-2.0 to:
  quickstep/Android.bp
  robolectric_tests/Android.bp
  tests/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I699e0796410f691ae7cf4802c41987d79e4e486d
2021-03-19 04:22:23 -07:00
Winson Chung
6ffdceadfe Merge "Update calls to go through the feature interface instead of sysui proxy" into sc-dev 2021-03-19 06:55:32 +00:00
Tracy Zhou
e3ae7e3afa Merge "Revert "[Live tile] Finish recents animation when the phone goes to sleep in live tile mode"" into sc-dev 2021-03-19 04:28:13 +00:00
Sreyas
8dbf38e30f Fixes OverviewActionsView height sizing.
By fixing the action buttons container height and allowing wrap content on overviewActionsView all views have enough room to be displayed and actions button container height can be calculated.
Bug: 182854439
Test: Manual

Change-Id: I34516ba42430d8fe6774e10215dd8ac1127920c8
2021-03-18 20:18:36 -07:00
Evan Rosky
16a713c450 Merge "Add rotation support to launch animations" into sc-dev 2021-03-18 23:24:50 +00:00
Sunny Goyal
a8bbcb9c04 Fixing ActivityInit getting called before the full launcher components are initialized
Bug: 182575999
Test: Presubmit
Change-Id: Iea6986624b70caf2d502c1b21318b57a8b2fde03
2021-03-18 15:49:00 -07:00
Tony Wickham
b31d8fc379 Use taskbarSize as bottom inset when taskbar is present.
This was done in ag/13841736 but not included in ag/13821586

Test: QSB in correct position when taskbar present and not present
Bug: 171917176
Change-Id: I6aa220559afebe8710b5f01cdec9c2baa9f4c926
2021-03-18 13:57:20 -07:00
Tracy Zhou
e6354c1ab2 Revert "[Live tile] Finish recents animation when the phone goes to sleep in live tile mode"
This reverts commit d028937e74.

Reason for revert: Caused a few bugs

Change-Id: I1a3f4aa90679dec18ed27d2a5a5f0446c6d52594
Fixes: 174866547
Fixes: 181937887
Fixes: 183124957
2021-03-18 19:23:44 +00:00
Mariia Sandrikova
f7864feded Merge "Revert "Enable Live Tile"" into sc-dev 2021-03-18 19:18:34 +00:00
Vadim Tryshev
93f2b75223 Merge "Fixing testOverview test" into sc-dev 2021-03-18 18:07:32 +00:00
Winson Chung
19946daf22 Update calls to go through the feature interface instead of sysui proxy
Bug: 180074017
Test: atest PinnedStackTests
Test: Verify Pip works w/ launcher (shelf offsets, autoenter, etc)
Change-Id: I7de733f7267123218f6550963e44f6a893ad99b2
2021-03-18 10:25:39 -07:00
Pat Manning
7c67fafe4d Respect clip hint when aligning cropped thumbnails.
With clipping off, alignment will show letterbox borders. With clipping
we will respect the clip hints.

Test: manual
Bug: 177402412
Change-Id: Ie9d2c95636f23c4f64635ac6d55eb59306c30223
2021-03-18 17:24:25 +00:00
Mariia Sandrikova
ea0d30de68 Revert "Enable Live Tile"
This reverts commit 56c0931e99.

Reason for revert: DroidMonitor: Potential culprit for Bug 183078688 - verifying through Forrest before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Fix: 183078688
Fix: 183091281
Change-Id: I050b3e26d35a7a1b60b5ccc58d371a7ab8efb0dc
2021-03-18 16:44:50 +00:00
Sunny Goyal
b8cffbfcb4 Merge "Using recents animation and swipe handler for 3-button mode" into sc-dev 2021-03-18 16:08:05 +00:00
Sunny Goyal
fa699566f5 Merge "Adding an optional QSB in hotseat" into sc-dev 2021-03-18 16:07:45 +00:00
Sunny Goyal
f0ae3631ca Merge "Adding some build rules in Launcher3" into sc-dev 2021-03-18 06:26:06 +00:00
Tracy Zhou
7e7bab4cb6 Merge "Enable Live Tile" into sc-dev 2021-03-18 05:24:48 +00:00
Tracy Zhou
56c0931e99 Enable Live Tile
Fixes: 169694902
Fixes: 174866547
Fixes: 181937887
Test: manual
Change-Id: I5f2f304d4003e72ed2fb4ea0b0c74f06d2adfe4b
2021-03-17 18:34:52 -07:00
Sunny Goyal
f5c42ea6aa Adding some build rules in Launcher3
Bug: 182502086
Test: Presubmit
Change-Id: Ib2c18f1e252b3382030293fd3b873e840320301a
Merged-In: Ib2c18f1e252b3382030293fd3b873e840320301a
2021-03-18 01:26:36 +00:00
[1;3C
a608d81359 Add rotation support to launch animations
This only adds support for launch animations. Recents
requires some auxiliar work.

Adds a rotation parameter to the animation targets that
only gets used by shell transitions. If this is non-zero,
launcher will transform it's coordinates relative to that
provide rotation.

Bug: 179308296
Test: Launch and exit apps with different orientation from
      default (portrait).
Change-Id: I7b52cbd37432bcd43e7155bcb07b30cc65c43186
2021-03-17 15:30:47 -07:00
vadimt
17ba630cd9 Fixing testOverview test
Apparently, we can't generally expect that flinging to and
fro will return Overview to the original task, especially
if the device performance is low.

Now starting the expected task explicitly.

Test: presubmit
Bug: 182794819
Change-Id: Ia2931f4f3005c46dd72990c247a90f9010b9b8d5
2021-03-17 14:41:04 -07:00
Sunny Goyal
c373e1c642 Adding an optional QSB in hotseat
Removing sections in all-apps during transition and treating
it as a single unit

Bug: 175137718
Test: Manual
Change-Id: I55a501d80b5903f1a9d92a26b3784784fd9e50fd
2021-03-17 12:21:44 -07:00
Sunny Goyal
d5347045d0 Using recents animation and swipe handler for 3-button mode
Bug: 181165935
Test: Manual

Change-Id: I7fe586319e4dde1a1b398a0c75896c4dfdb75862
2021-03-17 09:26:51 -07:00
Samuel Fufa
7165a1d6de Merge "[Hotseat] Fix badging for shortcut predictions in hotseat" into sc-dev 2021-03-17 13:15:47 +00:00
Alex Chau
b4254cd504 Merge "Align task thumbnails to edge when cropped." into sc-dev 2021-03-17 11:09:04 +00:00
Pat Manning
0fe7326cf0 Align task thumbnails to edge when cropped.
Align to left edge unless RTL enabled. Do not rotate thumbnails if they
would not fit nicely once rotated.

Test: manual - Ensure task thumbnails align with left edge if cropped.
Bug: 177402412
Change-Id: I6e03715061120deb5a8fde005d676170eed0f819
2021-03-17 01:30:07 +00:00
Alex Chau
071862edbd Merge "Show overview as grid in fallback recents" into sc-dev 2021-03-17 00:49:29 +00:00
Samuel Fufa
45c16f7392 [Hotseat] Fix badging for shortcut predictions in hotseat
This change also sends shortcutInfo corresponding to AppTargetEvent

Screenshot: https://screenshot.googleplex.com/7nN7mNEuMCLkKbY
Bug: 159500320
Test: Manual
Change-Id: I9c31d7208510c5362039868ae41d098c9eb1e2dd
2021-03-16 15:49:16 -05:00
Tony Wickham
e5695f9196 Hide taskbar when certain floating views are open
Test: Open widgets, ensure taskbar hides
Bug: 171917176
Change-Id: Ib78182fe0ca1ea5ffbd28ab42f49ab8f0e535a18
2021-03-16 11:28:35 -07:00
Alex Chau
ecd12b32c9 Show overview as grid in fallback recents
- Replace mShowAsGrid with state specific mOverviewGridEnabled and mCurrentGestureEndTarget
- Avoid showing invisible home task in grid
- Fix quick switch out of orientation in fallback recents
- Add a HOME state to switch to when starting home, to avoid showing grid overview briefly in quick switch
- Separate clear all button and overview actions handling
- Always maintain first task's fullscreen translation at 0 to avoid jumping when mOverviewFullscreenEnabled changes
- Moved fullscreenTranslation calculation to RecentsView
- Added GestureEndTarget -> BaseState translation to allow querying displayOverviewAsGrid for a displayOverviewTasksAsGrid

Bug: 174464863
Test: Launch overveiw from home, launch overveiw from app, launch into app, test for both small and large screens
Change-Id: Iee06d94d3067ea45cadd2051717223ddc0e6e70c
2021-03-16 17:08:03 +00:00
Tony Wickham
d12feb574c Merge "Hide nav handle/background when taskbar is showing" into sc-dev 2021-03-16 16:38:28 +00:00
Vinit Nayak
2b30076aba Merge "Initial commit of new split screen work." into sc-dev 2021-03-16 01:01:08 +00:00
Vinit Nayak
d987a828e8 Initial commit of new split screen work.
TODO:
* Extract out common elements in TaskShortcutFactory.MultiWindowFactory
for commonalities between new and old way of
invoking split screen
* Integrate with WM APIs (b/182002789)
* Write tests for SplitSelectStateController

Bug: 181704764

Change-Id: Ice35adb4ea82897f5e2433dc9b93a549f3d511b5
2021-03-15 15:42:32 -07:00
Tony Wickham
2debd80f1f Hide nav handle/background when taskbar is showing
Test: nav handle isn't showing unless taskbar is hidden or removed
Fixes: 181206743
Bug: 171917176
Change-Id: I84b7d0bba1a5d208b1f8b1b467faf79f04078348
2021-03-15 15:03:54 -07:00
Hongwei Wang
5b7c5e79a0 Merge "Pass the transform from Launcher to SysUI" into sc-dev 2021-03-15 21:59:13 +00:00
Winson Chung
af0d09b98b Merge "Revert "Update calls to go through the feature interface instead..."" into sc-dev 2021-03-15 20:46:19 +00:00