Commit Graph

9938 Commits

Author SHA1 Message Date
Tracy Zhou
6416cea0e5 Merge "Support launching an intent and a task from the same app as multi-instance" into tm-dev 2022-03-10 02:09:53 +00:00
Tracy Zhou
fec75c5a0e Merge "Fix wrong initial staged split position" into tm-dev 2022-03-10 01:47:53 +00:00
Abhilasha Chahal
c7115ec833 Merge "Revert "Revert "Extract out common adapter logic to support diff..."" into tm-dev 2022-03-10 00:18:07 +00:00
Tracy Zhou
d9cb8cfa0d Support launching an intent and a task from the same app as multi-instance
Similar to ag/16820166, add FLAG_ACTIVITY_MULTIPLE_TASK to the fillInIntent

Fixes: 222583964
Fixes: 217965464
Fixes: 221415250
Test: https://recall.googleplex.com/projects/f46cfe9c-8076-4efe-bf8a-b1cc4f1f5e1b/sessions/7606236a-3350-49d6-bfad-9e6a609413d1
Change-Id: I676358ef1cbff8317995430de961a0a3242c0cbf
2022-03-09 15:21:45 -08:00
Thiru Ramasamy
fe72583a86 Merge "[OneSearch] Add LAUNCHER_ALLAPPS_SCROLLED event." into tm-dev 2022-03-09 23:11:16 +00:00
Tracy Zhou
dd2bea9e70 Fix wrong initial staged split position
This is caused by having set a wrong animation duration in the 3 button case. Before this change we have a fixed duration of 370ms which happens to be almost match the Overview transtion duration in gesture nav. However the transition duration in 3-button is set to 250ms. After the transition duration, any unfinished animation is cancelled including this one, resulting in the wrong staged split position. Instead this change pulls the transition duration of toState from the caller = RecentsViewStateController.

Fixes: 222210349
Test: manual
Change-Id: Ie2f3dbe38bb6df33961e2ee78b8a55d0e925501f
2022-03-09 14:44:35 -08:00
Tony Wickham
808b6c2fed Merge "Keep reporting > 0 insets on home screen" into tm-dev 2022-03-09 22:37:13 +00:00
TreeHugger Robot
d586e1948b Merge "Updating window manager estimation logic:" into tm-dev 2022-03-09 22:24:12 +00:00
TreeHugger Robot
94a54982b9 Merge "Remove stale log statement for b/195430732" into tm-dev 2022-03-09 22:22:15 +00:00
Brian Isganitis
3f7ac842e0 Merge "Close Taskbar AFVs when locking screen." into tm-dev 2022-03-09 21:47:55 +00:00
Schneider Victor-tulias
18bc66e365 Merge "Update gesture nav tutorial with updated phone landscape layouts" into tm-dev 2022-03-09 21:04:24 +00:00
TreeHugger Robot
441a7d76ef Merge "Play fallback animation if there are multiple closing targets." into tm-dev 2022-03-09 20:44:18 +00:00
Sunny Goyal
187b16cb91 Updating window manager estimation logic:
> Moving the code from ApiWrapper to Resource overlays for better maintainability
> Accounting for display cutouts in insets estimation
> Using same logic in display controller and view inset dispatching

Test: Verified on device
Bug: 221961069
Change-Id: I78466353563692ce3f7512b0146ef8b61ef14bc0
2022-03-09 11:15:58 -08:00
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
Abhilasha Chahal
9c7096c8ac Revert "Revert "Extract out common adapter logic to support diff..."
Revert^2 "Fixing AdapterItem import"

1a27c278d6c6594b552b620b4d2b67e68bef23f2

Change-Id: Ia3bf9f0b3aaff0d1e2d102320e917462b38935b2
2022-03-09 17:45:45 +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
Thiru Ramasamy
2f733b6ce9 [OneSearch] Add LAUNCHER_ALLAPPS_SCROLLED event.
* Simplified logcat message
* Log latency events with different tag to help filter event logs from latency logs.

Bug: 210792253
Test: wwdebug && wwlogcat - http://gpaste/6546219850530816
Change-Id: I975a7140d14d3cb45f50d7db64aac3fa83ccd389
2022-03-09 07:14:01 -08: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
Vinit Nayak
824d036378 Remove stale log statement for b/195430732
Fixes: 195430732
Change-Id: I29e2ea3930238da4fe37f73a1368c4d233841cd0
2022-03-08 17:24:38 -08:00
Jon Miranda
b2a5f266ad Play fallback animation if there are multiple closing targets.
Bug: 200247089
Test: close app w/ gesture nav, 3 button nav
      close split screen apps

Change-Id: I748f038eaf1542014f3acbb8fa31488936835dfe
2022-03-08 14:45:16 -08:00
Schneider Victor-tulias
38c59cfe4a Update gesture nav tutorial with updated phone landscape layouts
- Updated layout files to support landscape mode on phones
- Updated All Set page to say "tablet" rather than "phone" on tablets
- Hiding feedback view during gestures for better visibility
- Renamed files and resources to say "tablet" rather than "foldable"
- Added custom layout logic for the mock hotseat on foldables
- Updated feedback view margins

Test: manual
Fixes: 215063763
Fixes: 206895841
Fixes: 219251891
Change-Id: I56f7f33dd0617bdeeca4863f7d5de0143376c8bf
2022-03-08 13:57:42 -08: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
TreeHugger Robot
f0758df1b8 Merge "[OneSearch] Add packageId as an int for latency logging." into tm-dev 2022-03-08 08:39:25 +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
04db7091c7 Close Taskbar AFVs when locking screen.
Fix: 223288975
Test: Manual
Change-Id: Ib810b495064922d87391aa0b61b79efe10ada40c
2022-03-07 18:05:55 -08:00
TreeHugger Robot
90ab34b1d8 Merge "Revert "Adding better diags when SysUI crashes during Launcher test"" into tm-dev 2022-03-07 23:14:49 +00:00
Vadim Tryshev
fcd569055e Revert "Adding better diags when SysUI crashes during Launcher test"
This reverts commit b0e0f5f44a.

Reason for revert: This cl prevents the ability to run tests from android studio.

Change-Id: I8a1cbcd2e8faefdd168aac5bcad4f21c73694839
2022-03-07 20:37:42 +00: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
Tony Wickham
3e7415df56 Keep reporting > 0 insets on home screen
Technically mControllers.stashedHandleViewController.isStashedHandleVisible() is false on the home screen (since we unstash), so now we also check isInApp(). This ensures that we always return the same insets when on the home screen - and the insets we report are the same as when you launch an app, to ensure seamless transitions. The value itself shouldn't matter to launcher as long as it is static, since launcher overrides the insets due to taskbar anyway, but we need to keep the value static to avoid configuration change.

Test: Open a website in Chrome, stash taskbar, then launch Chrome from home screen and ensure content doesn't jump during the transition
Fixes: 221238308
Change-Id: I81e320b3a8d32ffe78441be5dd8f15a586d3b842
2022-03-04 19:29:39 +00: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