Commit Graph

2628 Commits

Author SHA1 Message Date
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
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
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
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
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
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
[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
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
Alex Chau
510fc67c55 Merge "Use grid Rect when calculating clear all position" into sc-dev 2021-03-15 18:24:08 +00:00
Winson Chung
ee904f65c1 Revert "Update calls to go through the feature interface instead..."
Revert "1/ Add mechanism to expose shell feature directly (for Pip)"

Revert "Add shell aidl files"

Revert "Update starting window init call for CarLauncher"

Revert submission 13608835-shell_feature_interfaces

Reason for revert: SysUI Studio aidl import issue
Reverted Changes:
I49a5a0419:2/ Add mechanism to expose other features directly...
I19425896d:Update starting window init call for CarLauncher
If048d2cd9:1/ Add mechanism to expose shell feature directly ...
Ibb8365d3c:Add shell aidl files
Ie41b0b77a:Update calls to go through the feature interface i...

Change-Id: I99c039c88d1d5f9b249f74a361f5f30ee34addd2
2021-03-15 17:52:25 +00:00
Alex Chau
354902f725 Use grid Rect when calculating clear all position
- This is a follow-up of http://ag/13827968 that uses separate grid Rect to calculate grid layout position
- This fixes the case when there are not enough tasks to fill the screen

Bug: 174464863
Test: Launch overview grid with only one task, clear all should not be shown until scrolled
Change-Id: I4c4f720bc83e6f1feca83285adbe567deea2d063
2021-03-15 12:03:15 +00:00
Winson Chung
d7d65aa697 Merge "Limit existing usages of nav bar button alpha to two button mode" into sc-dev 2021-03-14 03:53:25 +00:00
Winson Chung
2abfddf72d Merge "Update calls to go through the feature interface instead of sysui proxy" into sc-dev 2021-03-13 19:13:21 +00:00
Winson Chung
68f7fbfb82 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: Ie41b0b77a7d5a79288af91f862e2a2cdda85fb66
2021-03-12 21:23:29 -08:00
Tony Wickham
e2ed4b37cc Merge "Replace taskbar hotseat with real hotseat when folder is open" into sc-dev 2021-03-13 02:17:49 +00:00
Tony Wickham
ae72b46b2c Replace taskbar hotseat with real hotseat when folder is open
- Seamlessly show real hotseat and hide taskbar hotseat, while
  keeping rest of taskbar visible
- Update MultiValueAlpha to allow for taking max alpha instead
  of blending, and use that for Hotseat
- Fix folder open bounds on home screen when taskbar is present

Test: Open folder from taskbar on home, can drag out items
Bug: 182079330
Bug: 171917176
Change-Id: I7c1983e3219b1341cf233260f0ccac9051c4dc14
2021-03-12 11:05:43 -08:00
Hongwei Wang
5a4d91e54d Pass the transform from Launcher to SysUI
Video: http://rcll/aaaaaabFQoRHlzixHdtY/hT5SXvaCy28P4UtfuoKiDw
Bug: 181342797
Test: see video
Change-Id: Id70d89b6dc82c7b9a33bd998b9ebdeb31703c37d
2021-03-12 10:37:40 -08:00
Winson Chung
0acb2807df Limit existing usages of nav bar button alpha to two button mode
Bug: 181206743
Test: Manual
Change-Id: Id63131e9aae36bb143d6a4807ef37f96dfa05be9
2021-03-11 21:47:58 -08:00
Zak Cohen
090753adc6 Merge "Update Overview UI to new layout." into sc-dev 2021-03-12 04:51:59 +00:00
Zak Cohen
7575baadb4 Overview - make drag share targets work with Work Profile
Start the destination as the correct user, and fix the uris as
its leaving.

Bug: 179162353
Test: flash with WP and regular, test both targets
Change-Id: I49c980c5d08843ad221a9b92816351a22ea58990
2021-03-11 17:14:59 -08:00
Zak Cohen
6066f3dde4 Update Overview UI to new layout.
This change spaces out app icon and proactive row as well as removing
the clipping from task snapshots.

Bug: 179922117
Test: Local on two devices

Change-Id: I5075b6dd7895cb40cdd59495fd27e4153c9cc2ea
2021-03-11 15:27:50 -08:00
TreeHugger Robot
57e41f9fb7 Merge "Calculate grid layout size separately from task size" into sc-dev 2021-03-11 22:51:00 +00:00
Sunny Goyal
da2ecb3095 Merge "Adding support for listening for app launch animation completion" into sc-dev 2021-03-11 21:36:43 +00:00
Alex Chau
26c1f3b139 Calculate grid layout size separately from task size
- Add translation to align task into top right/left corner of grid rect
- Also updated grid padding according to mocks

Bug: 174464863
Test: Launch overview, launch overview from app, launch into app
Change-Id: Ie856f9c43ebf35f5e58b5d125ff1754ad7bc0160
2021-03-11 20:21:08 +00:00
Sreyas Rangaraju
06b41019ef Merge "Let chips take full screen width." into sc-dev 2021-03-11 20:20:41 +00:00
TreeHugger Robot
ad5ba1af0d Merge "Disable double haptic when dragging from taskbar hotseat on home" into sc-dev 2021-03-11 18:59:45 +00:00
Tony Wickham
84140bec6d Disable double haptic when dragging from taskbar hotseat on home
Both DragLayer and the dragged view were playing a haptic; disable
DragLayer's haptic feedback for this drag interaction.

Test: Drag from hotseat on home, ensure only one haptic is played
Bug: 182079330
Bug: 171917176
Change-Id: I185533999e905ea79a80aaa2145fc39049e8d45e
2021-03-11 08:48:27 -08:00