Commit Graph

11115 Commits

Author SHA1 Message Date
TreeHugger Robot
59228a6511 Merge "Add app window thresholds for transient taskbar." into tm-qpr-dev 2022-11-01 01:44:14 +00:00
Holly Jiuyu Sun
c5f43eb9f7 Merge "Log sub event type to latency logger." into tm-qpr-dev 2022-10-31 19:28:27 +00:00
Jeremy Sim
4972822c60 Merge "Add transitions to DWB banner when app thumbnail progresses from Overview tile to fullscreen" into tm-qpr-dev 2022-10-27 23:38:31 +00:00
Holly Sun
4d6fa05c83 Log sub event type to latency logger.
Bug: 255355348
Test: build
Change-Id: Idac85b5e31e2abdd98f6fd1bed4ec687d8bb5cd5
2022-10-27 16:37:18 -07:00
Jon Miranda
0c1714bb45 Merge "Only draw transient taskbar background for transient taskbar" into tm-qpr-dev 2022-10-27 20:42:21 +00:00
Sihua Ma
17137e8bce Merge "Created LauncherWidgetHolder as a wrapper for LauncherAppWidgetHost" into tm-qpr-dev 2022-10-27 17:53:28 +00:00
Jon Miranda
f80b5f50a3 Only draw transient taskbar background for transient taskbar
Bug: 252905206
Fix: 255925607
Test: disable flag, view taskbar
Change-Id: I1734fa238e3c07f5da6a03659c1079eb1b6b7277
2022-10-27 15:27:38 +00:00
Johannes Gallmann
989ffba0ec Merge "Extracting ViewCapture into common Library" into tm-qpr-dev 2022-10-27 07:30:11 +00:00
Saumya Prakash
5db9942c61 Merge "Revert "Removed disabled overview actions at end of scroll"" into tm-qpr-dev 2022-10-26 22:10:39 +00:00
Saumya Prakash
19250d69f7 Revert "Removed disabled overview actions at end of scroll"
This reverts commit 96cad794d7.

Reason for revert: Breaks build test_suites_x86_64_coverage (linux) build 9222442 in git_tm-qpr-dev. 

Change-Id: I482f526da169505cf5d3f42ef999303dcc162a1f
2022-10-26 20:59:30 +00:00
Saumya Prakash
f1a4121784 Merge "Removed disabled overview actions at end of scroll" into tm-qpr-dev 2022-10-26 20:31:44 +00:00
Jon Miranda
f3a59b59f4 Add app window thresholds for transient taskbar.
- Threshold to move app window
- Threshold to reach home/overview
- Threshold for window to catch up to finger

Bug: 252905206
Test: manual
Change-Id: I71082fab07a0227d64ce6ed66cbfa3c1ffb319f5
2022-10-26 13:02:04 -07:00
Ats Jenk
d98c88b4e0 Merge "Set launcher state to NORMAL when entering desktop" into tm-qpr-dev 2022-10-26 18:58:05 +00:00
Sihua Ma
0593a0d3ec Created LauncherWidgetHolder as a wrapper for LauncherAppWidgetHost
The wrapper class is created for further changes that will run the wrapped host in the background.

Test: N/A
Bug: 235358918
Change-Id: I9bd6fc2749c5d4a4d3391fb75d0c3ff1e13d17bf
2022-10-26 10:57:13 -07:00
Ats Jenk
f7474fa9a0 Merge "Screenshot freeform task when going to overview" into tm-qpr-dev 2022-10-26 17:01:08 +00:00
Jon Miranda
661f38cdb8 Merge "Add transient taskbar UI" into tm-qpr-dev 2022-10-26 14:56:15 +00:00
Alex Chau
f7abb69d0b Merge "Auto resize digital wellbeing toast" into tm-qpr-dev 2022-10-26 13:52:58 +00:00
Alex Chau
a2ad627607 Merge "Improve All Set page UI for large screens" into tm-qpr-dev 2022-10-26 13:10:45 +00:00
Johannes Gallmann
6518efce73 Extracting ViewCapture into common Library
The ViewCapture functionality is extracted into a common Library accessible to the Launcher and SystemUi modules.

Test: None yet
Change-Id: I4be394ed8dc86e30f6b8c69c438b8bc943e7907c
2022-10-26 12:29:30 +00:00
Merissa Mitchell
e7b6888a36 Merge "Move AllAppsButton placement for desktop environment." into tm-qpr-dev 2022-10-26 03:17:01 +00:00
Ats Jenk
7963c1d051 Set launcher state to NORMAL when entering desktop
When clicking on desktop tile, we need to explicitly move launcher state
to NORMAL. Freeform apps float on top of launcher and launcher remains
visible in the background. When on desktop, launcher should be in normal
state, with icons and widgets hidden. Hiding of the icons etc is handled
already by DesktopVisibilityController.

TODO:
 - need to fix home screen icons flicker, can be solved with new
   launcher state (b/255649902)

Bug: 244348395
Test: manual, click on desktop tile in overview, observe freeform apps
brought to front and overview closes

Change-Id: I214b0d6b622e673e0b0cb82f84b2080b479a7fb9
2022-10-25 18:02:05 -07:00
Ats Jenk
ff9b36762a Screenshot freeform task when going to overview
When freeform tasks are visible in desktop mode, capture a screenshot of
the tasks when opening overview.
Also use RecentsView instead of RecentsAnimationController when
finishing the recents animation. RecentsView.finishRecentsAnimation
method has an extra call to onRecentsAnimationComplete() which ensures
that screenshot does got used.

Bug: 244348395
Test: manual, open freeform task, swipe up to go overview, observe a
screenshot of the task

Change-Id: I066b25ec7ae25d1e09aba0ff0a379d35bbe2b636
2022-10-25 16:51:00 -07:00
Sunny Goyal
3912808183 Merge "Merging MultiValueAlpha with MultiPropertyFactory" into tm-qpr-dev 2022-10-25 21:39:11 +00:00
Merissa Tan
fcb9cb7664 Move AllAppsButton placement for desktop environment.
On desktop environment, we want the AllAppsButton to be on the left side
of the taskbar instead of the hotseat, but retain the functionality of
the button.

Bug: 251372204
Test: Manual
Change-Id: Ia2c95a20583cb98785ab6f8c719559d93982c06f
2022-10-25 14:26:07 -07:00
Jon Miranda
184a04266d Add transient taskbar UI
This change is only for the visual appearance of the
transient taskbar.

Bug: 252905206
Test: manual
Change-Id: I4990b20b39089a0c27ec2a72dd3010cf64ddba1d
2022-10-25 13:46:19 -07:00
Holly Jiuyu Sun
381ba3319d Merge "Log a-z apps count." into tm-qpr-dev 2022-10-25 17:50:19 +00:00
Schneider Victor-tulias
4c9a93c04f Merge "Remove obsolete cancel recents animation logic" into tm-qpr-dev 2022-10-25 17:02:29 +00:00
Alex Chau
1faa68c8a0 Auto resize digital wellbeing toast
Fix: 253970740
Test: Enable app timer with largest display size and font size
Change-Id: I6c920b6bf7bb2801711b215ae461c64d2c7b898d
2022-10-25 17:46:37 +01:00
Andras Kloczl
fb65436fae Improve All Set page UI for large screens
Test: manual
Screenrecordings: https://drive.google.com/drive/folders/1S6kjenZn0kP-W2tPpUemre2x0368ACyr?usp=sharing
Bug: 233610579
Change-Id: I9a33efe193a96e752766feb1e91cf0ac9b30246f
2022-10-25 13:16:47 +00:00
Tony Huang
c33c69c1c3 Merge "Snapshot 2 tasks when swipe up split case" into tm-qpr-dev 2022-10-25 05:42:39 +00:00
Sihua Ma
4421353ce8 Merge "Get rid of setInteractionHandler call to the host in launcher" into tm-qpr-dev 2022-10-25 02:44:16 +00:00
Saumya Prakash
96cad794d7 Removed disabled overview actions at end of scroll
Updated visibility of the overview action bar so that when viewing
the clear all button at the end of the tasks it becomes hidden.
Previously, the overview actions were disabled so they were not
usable anyways. Updated the corresponding tests because expected
behavior was changed.

Test: Manual
Fix: 230508197
Change-Id: I17628f1fa3869b575ec404a2a630a6927e3c1d14
2022-10-24 22:47:24 +00:00
Sihua Ma
8ca56fe1cd Get rid of setInteractionHandler call to the host in launcher
Bug: 235358918
Test: N/A
Change-Id: I0defac1831825bf0a13a601dd1502b4ca022bc2e
2022-10-24 14:56:11 -07:00
Sunny Goyal
d859060860 Merging MultiValueAlpha with MultiPropertyFactory
Bug: 246644619
Test: Presubmi
Change-Id: Id5abc5f3169544656f1139ae17ca59e34ac65dac
2022-10-24 14:38:18 -07:00
TreeHugger Robot
b9bced07c2 Merge "Removing unnecessary RemoteAnimationTargetCompat" into tm-qpr-dev 2022-10-24 21:32:34 +00:00
Ats Jenk
1236c812f1 Merge "Clicking on desktop tile brings apps to front" into tm-qpr-dev 2022-10-24 20:57:25 +00:00
Jeremy Sim
0525e3a462 Add transitions to DWB banner when app thumbnail progresses from Overview tile to fullscreen
This patch makes it so that the DWB banner transitions out neatly when a user in Overview drags a tile downward to launch the app. Previously, the banner would stick around throughout the transition, creating visual clutter and drawing attention to the corners of the app.

Fixed by creating an exit transition in setFullscreenProgress(), similar to other UI elements like Overview action chips.

There is another outstanding issue where sometimes the transition can get clipped and jump to the final frame. The cause is still unknown, but issue is tracked at b/250976138 for a future fix.

Fixes: 249825524
Test: Manual
Change-Id: Iea47a9bc643537f0b716ce11b104803d9ca25fd2
2022-10-24 10:47:29 -07:00
Sunny Goyal
8a11443333 Removing unnecessary RemoteAnimationTargetCompat
Merged-In: I12a4c29eaf9bd7d97d3c02074b4cc1ca452fc88a
Bug: 221961069
Test: Presubmit
Change-Id: I12a4c29eaf9bd7d97d3c02074b4cc1ca452fc88a
2022-10-24 17:17:36 +00:00
Schneider Victor-tulias
0130252c00 Remove obsolete cancel recents animation logic
This logic was used as a workaroung for 2-button navigation mode. This mode is now obsolete, however the leftover logic clashes with gesture navigation mode. Removed old logic and unused variables.

Test: manually tapped nav handle, then quickly swipped up
Fixes: 255348258
Change-Id: Ib4e179c0c4d9769acae24f93cfde65d2c7a4dfd9
2022-10-24 10:12:45 -07:00
Mady Mellor
b5c2565447 Merge "Hide launcher when freeform tasks are visible" into tm-qpr-dev 2022-10-24 16:04:59 +00:00
Shan Huang
e3279da4fc Merge "DO NOT MERGE Use spring-y progress in back to home animation." into tm-qpr-dev 2022-10-21 23:54:12 +00:00
Shan Huang
f31bf4e1e3 DO NOT MERGE Use spring-y progress in back to home animation.
Bug: 241788651
Test: m -j. Visual inspection.

Change-Id: If2b0218367680853ae4ee89c5ecff224ab9b6f04
2022-10-21 22:14:38 +00:00
Vinit Nayak
cb26c1a245 Merge "Use updateButtonLayoutSpacing() for all states" into tm-qpr-dev 2022-10-21 20:32:10 +00:00
Sunny Goyal
415fe0c183 Merge "Optimizing some icon generation code:" into tm-qpr-dev 2022-10-21 18:27:54 +00:00
Mady Mellor
9a90c2d521 Hide launcher when freeform tasks are visible
This CL introduces a new controller to manage the visibility of the
launcher workspace when desktop mode is active and freeform tasks
are visible.

This controller will be notified when the sysui state flag related
to freeform task visibility is changed.

The controller will modify the workspace visibility as well as
the flags on the activity indicating if it's been paused / resumed
based on freeform tasks being visible or not.

Bug: 245569277
Test: manual -  enable desktop mode and open some freeform tasks
             => observe that the contents of launcher is hidden and
                taskbar shows
             -  remove all of the freeform tasks
             => observe that the contents of launcher reappears along
                with the hotseat.
Change-Id: I378ab97b40cbb954a06f4e2426b195efddad905c
2022-10-21 10:06:54 -07:00
Vinit Nayak
2a2fbfe319 Use updateButtonLayoutSpacing() for all states
* During a merge conflict we prevented
updateButtonLayoutSpacing() from running if device was
in setup mode, however the code that does setup layout
is in there.

Fixes: 254589281
Test: Went through setup, back button shows up
where expected

Change-Id: Ib496bfc0e3ac9023a9fc5071867c3779721ab8ab
2022-10-20 23:11:33 -07:00
Vinit Nayak
b9b7c38d55 Merge "Improve TaskMenuView layouts for split pairs" into tm-qpr-dev 2022-10-21 00:07:53 +00:00
Ats Jenk
b5b3b054d1 Clicking on desktop tile brings apps to front
Override launchTasks() method from TaskView to ensure we always call
into WMShell to bring desktop apps to front. And don't run single task
animation logic.

Bug: 254738174
Test: manual, enable shell transitions, click on desktop tile in recents
Change-Id: Ibe85cbe14d3378a89ba7bfd5f394f0c3e44f304d
2022-10-20 17:06:47 -07:00
Brian Isganitis
2bcc3f8599 Merge "Fix crash on long press of prediction row icons" into tm-qpr-dev 2022-10-20 22:54:06 +00:00
Vinit Nayak
e690ef7f80 Merge "Scale screenWidth for split proportionally for thumbnail matrix" into tm-qpr-dev 2022-10-20 22:49:57 +00:00