Commit Graph

5281 Commits

Author SHA1 Message Date
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
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
TreeHugger Robot 7120449669 Merge "Make TaskMenuView corner radius follow TaskView." into sc-dev 2021-03-11 01:46:40 +00:00
Sunny Goyal b65d766d88 Adding support for listening for app launch animation completion
Bug: 181165935
Bug: 179065491
Test: Verified on device
Change-Id: Ifa6a91560cb31b4dfb72a0f582607e873d8a002d
2021-03-10 15:53:21 -08:00
Tony Wickham 4c26664d84 Merge "End Taskbar animator before other cleanup" into sc-dev 2021-03-10 23:16:15 +00:00
Zak Cohen 9f921098d3 Make TaskMenuView corner radius follow TaskView.
Also removes fake shadow from TaskMenuView as not required in new style.

Bug: 182276195
Test: Run on 3a and 4
Change-Id: Iadf89e30e56d8d7419b1e6c9550bb1b2bf3d5c49
2021-03-10 14:31:02 -08:00
Tony Wickham 462384dbed Merge "Create a new DragOptions for every drag operation" into sc-dev 2021-03-10 21:35:06 +00:00
Tony Wickham b9672a668d Merge "Ensure taskbar hotseat array index is in bounds" into sc-dev 2021-03-10 21:28:59 +00:00
Tony Wickham 73cc9a5053 Merge "Allow touches through Taskbar when dragging to home screen" into sc-dev 2021-03-10 21:28:29 +00:00
Jonathan Miranda 970a410bd7 Merge "Register setStartingWindowListener so launcher can defer icon drawing/crop correctly." into sc-dev 2021-03-10 21:12:57 +00:00
Alex Chau 7086256ac9 Merge "Use gridProgress from RecentsView when launching apps from overview" into sc-dev 2021-03-10 20:14:25 +00:00
Jon Miranda fb05759bab Register setStartingWindowListener so launcher can defer icon drawing/crop correctly.
Bug: 177264697
Test: manual
      close all tasks
      launch app, note that shell is drawing icon & launcher correctly crops
      return home
      launch same app, note that launcher draws the icon

Change-Id: Id320eb9e3e03f861cc8e4adec739b8faf29adda0
2021-03-10 13:07:26 -05:00
Sreyas cd9f8719bc Let chips take full screen width.
Bug: 180917948
Test: Manual
Change-Id: I1b8602a567c4906fb52fa686092d0bf16b1f64d9
2021-03-10 10:00:26 -08:00
Tony Wickham 2e9de09383 End Taskbar animator before other cleanup
This ensures it doesn't try to set properties that have already
been cleaned up.

Test: Swipe home from an app, remove taskbar during transition
Fixes: 182163822
Change-Id: Ia8779f044beeabd99e087288c3ae7f4f72c72d39
2021-03-10 09:33:11 -08:00
Sunny Goyal 43b9310197 Merge "Revert "Revert "Removing insets controller animation as part of ..."" into sc-dev 2021-03-10 17:04:58 +00:00
Alex Chau 956b5f7012 Use gridProgress from RecentsView when launching apps from overview
Test: Launch from overview into app, animation should be smooth
Bug: 174464863
Fixes: 182168668
Change-Id: I274ec55aaef1c30c973b8c37de3c6ddae43ff90f
2021-03-10 15:59:38 +00:00
Sunny Goyal b5181c8c39 Revert "Revert "Removing insets controller animation as part of ..."
Revert "Revert "Moving insets animation to StateHandler so that ..."

Revert submission 13823490-revert-13810332-insetcontroller-CLXXLCZAUM

Reason for revert: Fixed original error in ag/13823726
Reverted Changes:
Ie19a3fd90:Revert "Moving insets animation to StateHandler so...
I4eb33772a:Revert "Removing insets controller animation as pa...

Change-Id: I7fb395c51ea99081913bc99515257e98c0a32754
2021-03-10 07:39:12 +00:00
Pasty Chang ea39d1603f Merge "Revert "Removing insets controller animation as part of all-apps..."" into sc-dev 2021-03-10 07:01:25 +00:00