Commit Graph

5418 Commits

Author SHA1 Message Date
TreeHugger Robot
df022bd4c9 Merge "Restrict the area for the input to unsatsh the taskbar" into tm-dev 2022-03-09 18:51:36 +00:00
Sam Dubey
a57dc7d402 Merge "Revert "Extract out common adapter logic to support different Al..."" into tm-dev 2022-03-09 17:32:34 +00:00
Sam Dubey
4f1a232cca Revert "Extract out common adapter logic to support different Al..."
Revert "Fixing AdapterItem import"

Revert submission 17044827-tm-dev-216150568

Reason for revert: Broke builds
Bug: 223609269
Reverted Changes:
I53eba3c8c:Fixing AdapterItem import
I1068e75d0:Extract out common adapter logic to support differ...
I24d8e54e8:Fix AdapterItem imports

Change-Id: I931c666db7dcb2c8eef1894b56b59ed688218def
2022-03-09 17:25:15 +00:00
Abhilasha Chahal
c19c0f9eab Merge "Extract out common adapter logic to support different AllApps layouts" into tm-dev 2022-03-09 16:25:00 +00:00
Sam Dubey
5c8ba15b1c Merge "Revert "Sync hotseat/taskbar handoff"" into tm-dev 2022-03-09 10:58:03 +00:00
Nick Chameyev
41b7f53805 Merge "Do not run unfold taskbar animation when in portrait" into tm-dev 2022-03-09 10:26:21 +00:00
Sam Dubey
8d55819f6e Revert "Sync hotseat/taskbar handoff"
This reverts commit 4937d79c03.

Reason for revert: Breaking launcher tests on cf foldable and tablet targets
Bug: 223485229

Change-Id: I7a54982967426c4da9eb62ba100226102be6549e
2022-03-09 07:53:39 +00:00
Xiang Wang
f86e884582 Merge "Move the BitmapUtil to com.android.internal package" into tm-dev 2022-03-08 20:06:56 +00:00
Evan Rosky
324b07b44b Merge "Switch to persist.wm.debug" into tm-dev 2022-03-08 19:34:01 +00:00
Jon Miranda
a95837767b Merge "Sync hotseat/taskbar handoff" into tm-dev 2022-03-08 19:28:08 +00:00
TreeHugger Robot
906e96a68e Merge "Allow icons to take up full width in all cases where width > height." into tm-dev 2022-03-08 19:08:59 +00:00
Schneider Victor-tulias
ed8f41b5e2 Merge "Add method to pause expensive view updates during the app launch aimation" into tm-dev 2022-03-08 18:41:04 +00:00
Jon Miranda
4937d79c03 Sync hotseat/taskbar handoff
Bug: 202507555
Test: open/close apps in hotseat/taskbar
Change-Id: Ia5ecff8438f0cf237b39a54b7a78c423c53f9023
2022-03-08 08:22:31 -08:00
Nick Chameyev
fe9ec740cc Do not run unfold taskbar animation when in portrait
Limits taskbar icons translation animation
only when the display is in natural orientation.

Bug: 219958588
Test: fold/unfold in portrait and landscape
Change-Id: I33e26829ae37f1df39e8c7234f98d20eb7993b93
2022-03-08 12:03:32 +00:00
Becky Qiu
50c49447cc [OneSearch] Add packageId as an int for latency logging.
Enum defined in NexusLauncher.

Bug: 210790418
Test: manual, see log result in the NL cl.
Change-Id: I03a2a9831fc4cf34f3160f098739a7afd2900ec2
2022-03-07 20:51:22 -08:00
Jon Miranda
39334f4013 Allow icons to take up full width in all cases where width > height.
Previously we only let the icons take up the max width if the
device was in vertical bar layout. For tablets this meant
that the icons would be smaller than the actual window crop.

We want the full width in any cases where the profile width
is greater than the height, so created a new method to check for that.

Bug: 203157974
Test: phone/tablet in portrait/landscape
Change-Id: I467f142bac87ec7c3b369c01f8d9c96ddf74fc76
2022-03-07 18:17:50 -08:00
Brian Isganitis
90f9499735 Merge "Immediately close taskbar all apps on swipe up gesture." into tm-dev 2022-03-07 17:52:22 +00:00
Alex Chau
86cbea3dc4 Merge "Moving NavigationMode to display controller" into tm-dev 2022-03-07 12:29:53 +00:00
Thiru Ramasamy
6dd3fc9465 Merge "Add support for logging multiple attributes per item." into tm-dev 2022-03-05 18:55:12 +00:00
TreeHugger Robot
a4babdb6b2 Merge "Transfer PipContentOverlay when swipe to home with Shell transition" into tm-dev 2022-03-05 15:34:07 +00:00
Brian Isganitis
56b179350b Immediately close taskbar all apps on swipe up gesture.
Test: Manual
Fix: 219981339
Change-Id: I306a8aa1c55464718a1318f87007d68c383e461e
2022-03-04 19:56:06 -08:00
Sunny Goyal
4403d078a6 Moving NavigationMode to display controller
Navigation mode affects display properties like bounds and
most listeners already had a similar display listener. This
will remove race conditions when managing the two events.

Bug: 221961069
Test: Presubmit
Change-Id: If7a22e006e6b969ecddf075001066809aa72995c
2022-03-04 18:11:33 -08:00
Xiang Wang
8dd3e6e7ce Move the BitmapUtil to com.android.internal package
Bug: 219992742
Test: N/A
Change-Id: I1fa145c18799904a63613ab861a7635cc74dcfce
2022-03-04 17:23:08 -08:00
TreeHugger Robot
2aae0ad17e Merge "Add logging for OneSearch entry point." into tm-dev 2022-03-04 23:49:27 +00:00
Schneider Victor-tulias
789a6a95cc Add method to pause expensive view updates during the app launch aimation
Fixes: 220922269
Test: Manual
Change-Id: I39066f575c0ddfc4868ab9e27149e2bd9492b39c
2022-03-04 13:59:33 -08:00
Thiru Ramasamy
b0b289d6ef Add logging for OneSearch entry point.
Test: wwdebug && wwlogcat
Change-Id: Iaf57093fbe227bde670524ce1694ce91a749a3d6
2022-03-04 13:23:08 -08:00
Nicolò Mazzucato
1ffc81c7ba Merge "Register hinge angle sensor listener in a background thread" into tm-dev 2022-03-04 18:18:55 +00:00
Tony Wickham
80fed35379 Merge "Properly animate canceled deep shortcut drag back to original icon" into tm-dev 2022-03-04 17:07:12 +00:00
Thiru Ramasamy
d7af3cc784 Add support for logging multiple attributes per item.
This change will make use of new attributes field in LauncherAtoms to log multiple item attributes by converting them int array and then writes proto bytes into statsd.

Test: wwdebug && wwlogcat http://gpaste/5985977337118720
Change-Id: Iabda0b14100558f5625d01ba829d3ad96a6419fc
2022-03-04 08:40:44 -08:00
Thiru Ramasamy
18b9d159ce Merge "Adds StatsLatencyLogger library." into tm-dev 2022-03-04 16:17:56 +00:00
Riddle Hsu
14fc5bbc7a Merge "Get display id from display instead of the display of root view" into tm-dev 2022-03-04 09:38:00 +00:00
Wei Sheng Shih
63e4070791 Merge "Cancel recents animation when touch home key(2/2)" into tm-dev 2022-03-04 08:40:42 +00:00
Winson Chung
7e426a3933 Merge "Provide content insets while in SUW in portrait mode" into tm-dev 2022-03-04 03:25:44 +00:00
Thiru Ramasamy
f93e8b26d5 Merge "Add empty implementation for item_attributes field on Launcher." into tm-dev 2022-03-04 02:44:54 +00:00
TreeHugger Robot
4180a79d2b Merge "Use shared insets resize animation duration for taskbar stashing" into tm-dev 2022-03-04 02:22:47 +00:00
Thiru Ramasamy
b097f24610 Adds StatsLatencyLogger library.
Test: build NexusLauncherDebug; wwdebug && wwlogcat
Change-Id: Ib1f1aeb78d1cb930ca680439341de6be5e5be2dd
2022-03-03 17:33:24 -08:00
Tony Wickham
a56a197e14 Properly animate canceled deep shortcut drag back to original icon
- Added getFirstMatch() instead of using mapOverItems() (was a bit cleaner using ItemInfoMatcher)
- Match based on package name / UserHandle for deep shortcuts case

Test: drag deep shortcut from taskbar icon, inside folder, inside all apps; drag regular icons as well
Fixes: 222574524
Change-Id: Id5fdee29110f143c1125edc6945af09ab0a8d8ce
2022-03-04 00:39:38 +00:00
Winson Chung
ac736e7dac Provide content insets while in SUW in portrait mode
- We keep the app setup flag set, but adjust the insets to
  inset SUW itself in portrait

Bug: 219879035
Test: With both 3button and gesture nav, verify that portrait
      mode SUW is always inset
Change-Id: Iad0b6c41feaa3fb169af75c071b7f9544b42bab7
2022-03-04 00:12:41 +00:00
TreeHugger Robot
e9056a9e9a Merge "Address some insets issues in Taskbar All Apps" into tm-dev 2022-03-04 00:08:34 +00:00
thiruram
854f34dcc3 Add empty implementation for item_attributes field on Launcher.
Test: make -j64 NexusLauncher
Change-Id: Ie2781017018b9c0397f2322399cbd0267c988296
(cherry picked from commit e294eadc74)
2022-03-03 23:54:50 +00:00
Sunny Goyal
ed6d3a47c0 Merge "Separating refresh rate tracking to a separate class" into tm-dev 2022-03-03 23:00:29 +00:00
Tony Wickham
27d33e2994 Address some insets issues in Taskbar All Apps
- Don't report insets change to underlying app when stashing taskbar during all apps transition
- Internally override all apps insets to take stashing into account
- Don't offset all apps window by display cutouts, as we handle them internally via padding internally
- Also Fix bug where "stashing" taskbar in 3 button mode (which just fades out taskbar icons but keeps nav buttons) was reporting smaller insets to apps

Test: 1) open all apps in Calculator, ensure Calculator doesn't adjust insets and all apps has bottom content padding but no nav scrim
2) in 3 button mode, scroll to bottom of all apps and can read last row icon labels
3) enable display cutout in developer options, ensure no change to tests 1 and 2, and all apps scrim fills the screen (including behind cutout)
Fixes: 219980805

Change-Id: Ic3c6a744bc675e4ea277d22c4c0b3b353eddd905
2022-03-03 22:04:49 +00:00
Tony Wickham
ede8ad8ec9 Use shared insets resize animation duration for taskbar stashing
This is a no-op since they are the same value (by design), but using the constant directly will prevent potential divergences in the future.

Test: none
Bug: 191269755
Change-Id: I81b98045466398b7a49de872694004e526adf048
2022-03-03 18:25:59 +00:00
Iris Yang
5a915fb883 Get display id from display instead of the display of root view
Since `getRootView()` will increase the execution time, use
`getDisplay()` instead.

Bug: 202825727
Test: manually
Change-Id: I22ef58cb39716433cd8e91200837ab49229ae3e1
(cherry picked from commit 6a06d8615f)
2022-03-03 08:23:11 +00:00
Wei Sheng Shih
54da6aa355 Merge "Rename 'EMPTY' to 'SOLID_COLOR' for splash screen API changes." into tm-dev 2022-03-03 01:30:41 +00:00
Jerry Chang
0610af43d3 Merge "Fix split screen divider corners flicker" into tm-dev 2022-03-03 01:04:21 +00:00
Evan Rosky
01bbf1a8f3 Switch to persist.wm.debug
For use with systemui flag flipping

Bug: 219067621
Test: manual
Change-Id: I5477b961bfdbe4e9103173c1c7f8daf03ce5eee4
2022-03-02 16:18:44 -08:00
Brian Isganitis
6ad7a477a5 Merge "Ignore touches in taskbar and all apps windows during system drag." into tm-dev 2022-03-02 22:13:28 +00:00
Brian Isganitis
1bc23b7662 Ignore touches in taskbar and all apps windows during system drag.
Touches are ignored as soon as we want to start system drag so that system drag can start sooner (i.e. before any AbstractFloatingView animations finish). This approach utilizes ViewTreeObserverWrapper's compute insets listener by temporarily setting the touch region to empty. The taskbar window remains fullscreen until the drag finishes so the touch region is reset at the right point. Similarly, the all apps window is kept open during its drag operations until the drag finishes. System drag state is now exposed through the drag controller to skip predrag.

Test: Manual by dragging to split screen and triggering dismissal
animation from both windows. Verified predrag works.
Fix: 221104066
Fix: 220070070

Change-Id: I424106269c841f58cbe5338d30b6c33fbd889019
2022-03-02 11:31:47 -08:00
TreeHugger Robot
2403b863c3 Merge "Fix scaling of workspace and hotseat with wrong pivots" into tm-dev 2022-03-02 18:25:19 +00:00