Commit Graph

6555 Commits

Author SHA1 Message Date
Jeremy Sim
c8e159d4cc Merge "Update calculation method for Overview UI placement on tablets" into tm-qpr-dev am: fe5bccbf6f am: 1b468babdc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19289801

Change-Id: Ic97e19a97a19a1a1379c929fd8e9f5e8d0f8f77f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 19:38:59 +00:00
Jeremy Sim
fe5bccbf6f Merge "Update calculation method for Overview UI placement on tablets" into tm-qpr-dev 2022-07-29 18:56:40 +00:00
TreeHugger Robot
020c3a69b3 Merge "Keep the default display's top running task in the top of running list" into tm-qpr-dev am: 96010b10f1 am: d825fd0b3c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18910390

Change-Id: I80b58c946afa36c04e89610754cd861ff3dba814
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 04:19:10 +00:00
TreeHugger Robot
96010b10f1 Merge "Keep the default display's top running task in the top of running list" into tm-qpr-dev 2022-07-29 03:15:31 +00:00
Tony Wickham
3706d5a590 Merge "Cleanup taskbar+assistant interactions" into tm-qpr-dev am: d7fb7f379a am: 571b52d2ae
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19450086

Change-Id: I386f34e0607f7966628327f1e0eebed75ce71072
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 00:21:44 +00:00
Tony Wickham
d7fb7f379a Merge "Cleanup taskbar+assistant interactions" into tm-qpr-dev 2022-07-28 23:02:35 +00:00
Winson Chung
8848152b7a Merge "Add running apps icons to taskbar for desktop environment." into tm-qpr-dev 2022-07-28 22:14:42 +00:00
Jeremy Sim
1cfe6d490a Update calculation method for Overview UI placement on tablets
This update slightly changes the calculation method for Overview UI placement, in order to line up better with spec. (The previous calculation caused a small 30dp divergence on tablets.)

Bug: 236760307
Test: Manual by measuring pixels and comparing to spec
Change-Id: I94e9e7b5a6a24c37693425ac8ec71cd066003658
2022-07-28 14:05:24 -07:00
Tony Wickham
61c6034527 Merge "Set FLAG_RESUMED = false when expanding PiP" into tm-qpr-dev am: 06e5728c7e am: d8458af5a1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19449318

Change-Id: Ifd2c89e965b4ed9956328beb73c80602c40ccfd6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-28 19:53:43 +00:00
Tony Wickham
06e5728c7e Merge "Set FLAG_RESUMED = false when expanding PiP" into tm-qpr-dev 2022-07-28 18:57:22 +00:00
Merissa Tan
5dbd289f18 Add running apps icons to taskbar for desktop environment.
This CL adds app icons for launched/running apps to the Launcher
taskbar hotseat. When the activity is closed, the app icon is
removed. The apps that are added to the taskbar on boot are never
removed.

Recall: http://recall/clips/ad6d3cfc-7358-4b37-846e-de843ad3000d

Bug: 183906774
Test: Launch an app and verify the app icon is added on the taskbar.
Close the app and verify the icon is removed from the taskbar.
Test: Switch navigation modes on the emulator and ensure that running
app icons are added to the taskbar after it is reinitialized.
Test: atest NexusLauncherTests:com.android.quickstep.RecentTasksListTest RecentTasksControllerTest

Change-Id: Ieaaf001530b5778871fb7a8d18cdcaa1ccbf0e31
Merged-In: Ieaaf001530b5778871fb7a8d18cdcaa1ccbf0e31
2022-07-28 17:50:12 +00:00
Iris Yang
282cf0867f Keep the default display's top running task in the top of running list
While we move a task to virtual display, we will receive
onTaskMovedToFront() callback to add the task(on virtual display) into
the running list. It cause the first item of Recents is virtual
display's task but the thumbnail view is showing default display's
task snapshot.
This change is to keep default display's top task in the first while
adding a virtual display's task into the running task list.

Fix: 235797788
Test: 1.Launch app1 on default display,
        launch app2 on virtual display,
        enter Recents,
        observed the recent animation and overview is showing app1.
      2.Launch app1 on default display,
        swipe app1 to home,
        launch app2 on virtual display,
        enter Recents,
        observed the overview is showing app2.
https://drive.google.com/file/d/1XkGNupJknmFKqjE3c97s6ieCKN5v-n_z/view?resourcekey=0-NLDIaK2EV2tG2ItccUdxDw
Change-Id: Ibb740986782eadf02672081cbd716fed04be6468
2022-07-28 02:43:39 +00:00
TreeHugger Robot
20e02f06b1 Merge "Fix issue where System UI crashing resulted in no unlock animation." into tm-qpr-dev am: 778f8c1833 am: 88cbc4e055
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18779947

Change-Id: I6d10be2b3dca90c4b93ebbc3202ff7ce2b369c32
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-27 22:17:48 +00:00
TreeHugger Robot
778f8c1833 Merge "Fix issue where System UI crashing resulted in no unlock animation." into tm-qpr-dev 2022-07-27 21:34:05 +00:00
vadimt
f6ef879cf4 Moving all sources that are shared between Launcher and TAPL in one directory
This will help SysUI test team (who uses TAPL) to set up Gradle build for their tests.

Bug: 202567877, 234414088
Test: presubmit
Change-Id: I3d923ea4b54d1a4c3d2b345be09692727d30433e
2022-07-27 20:18:46 +00:00
Tony Wickham
eeb66e41e5 Cleanup taskbar+assistant interactions
- Always move the taskbar layer when voice interaction window visibility
  changes, to ensure we remove the temporary taskbar background in all
  cases (e.g. swipe to home)
- Move check to not draw taskbar background to the temporary view
  itself, so that it's at the proper layer when shown (e.g. during
  fulfillment on the home screen)
- Don't add view to window if it's already added (we already have this
  check for the removal case)

Test: Open an app, invoke Assistant, swipe home; Taskbar background is
removed; invoke and fulfill assistant from home screen, in app, in 3
button mode, and in gesture mode (all permutations)
Fixes: 236924161
Fixes: 240101132
Fixes: 235895444

Change-Id: I5958f1dbe14a6d190d3808014429f7f8146c9f96
2022-07-27 12:52:59 -07:00
Josh Tsuji
28fa196090 Fix issue where System UI crashing resulted in no unlock animation.
Fixes: 235254892
Test: adb shell am crash com.android.systemui
Test: adb shell am crash com.google.android.apps.nexuslauncher
Change-Id: Ia9644f8d1d5ffc9b162ce1608f8dd9ea9e1e3622
2022-07-27 14:38:31 -04:00
Sukesh Ram
1ea641ae1e Merge "Fix crash on long press of prediction row icons" 2022-07-27 17:55:37 +00:00
TreeHugger Robot
6f29205b84 Merge "Moving all sources that are shared between Launcher and TAPL in one directory" 2022-07-27 17:14:49 +00:00
Tony Wickham
f3636d09e7 Set FLAG_RESUMED = false when expanding PiP
This allows us to play the icon alignment animation immediately, rather
than waiting for the expand to finish and launcher to be paused.

Test: Open Maps in PiP on home screen, expand it and watch taskbar
Fixes: 239506421
Change-Id: I5c04f778c4c39c2895db0a1ea1fca4d48d1f3093
2022-07-27 08:52:09 -07:00
Sukesh Ram
c4430c9cd7 Fix crash on long press of prediction row icons
Changed icon long click listener to use secondary display's long
click listener instead of launcher's.

Bug: 239616635
Test: Manual
Change-Id: I9a4679ba82cacb5e2648481274876dbfc95d80ce
2022-07-27 00:05:35 +00:00
Jeremy Sim
a424ef4ccb Merge "Add comment regarding Overview TaskViews" into tm-qpr-dev am: caacd73cfa am: 8e18921036
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19388388

Change-Id: Ie905ff91c5115f7a41d7ad78cc81ec9b326012bf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 23:40:45 +00:00
Jeremy Sim
caacd73cfa Merge "Add comment regarding Overview TaskViews" into tm-qpr-dev 2022-07-26 23:00:20 +00:00
vadimt
47f347b1cf Moving all sources that are shared between Launcher and TAPL in one directory
This will help SysUI test team (who uses TAPL) to set up Gradle build for their tests.

Bug: 202567877
Test: presubmit
Change-Id: I95c267e46cf675ac44dc27b07d0a1143ab761e35
2022-07-26 15:43:00 -07:00
Schneider Victor-tulias
2d1a071f16 Merge "Fade out the taskbar icons when animating to overview in 3 button nav." into tm-qpr-dev am: f6003ff070 am: de490c6bb1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19051009

Change-Id: I3c105a7632851acbb36be8607b51c23d9d3b2a0c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 19:05:19 +00:00
Schneider Victor-tulias
f6003ff070 Merge "Fade out the taskbar icons when animating to overview in 3 button nav." into tm-qpr-dev 2022-07-26 17:29:33 +00:00
TreeHugger Robot
d33659576c Merge "Space out 3 button nav on taskbar" into tm-qpr-dev am: 5e6fe32818 am: 2a8906bfba
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19272533

Change-Id: I2ea492fac54d0fabf1af92500e2ad102855c4c79
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 17:21:17 +00:00
Winson Chung
5569f6accd Merge "Prevent setting max layer above the input consumer" into tm-qpr-dev am: c6fb382132 am: a1ddc4becb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19398454

Change-Id: I3bd0ac2836eed425e6be809f63f5f26249fe8847
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 17:20:18 +00:00
TreeHugger Robot
5e6fe32818 Merge "Space out 3 button nav on taskbar" into tm-qpr-dev 2022-07-26 16:32:06 +00:00
Winson Chung
c6fb382132 Merge "Prevent setting max layer above the input consumer" into tm-qpr-dev 2022-07-26 16:28:21 +00:00
Chavi Weingarten
254b0c4e94 Merge "Refactor SurfaceSyncer so it now returns a SurfaceSyncGroup" 2022-07-26 16:04:13 +00:00
Alex Chau
2a9dafcce1 Merge "Revert "Move BaseActivityInterface task size methods to DevicePr..."" into tm-qpr-dev am: 66bac181ac am: eed67e721e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19398184

Change-Id: If4406214f9853f055719deda5674ea0e1fc3e958
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 10:29:02 +00:00
Alex Chau
66bac181ac Merge "Revert "Move BaseActivityInterface task size methods to DevicePr..."" into tm-qpr-dev 2022-07-26 09:36:18 +00:00
Tony Wickham
3a5a84a61d Merge "Hide the task icon during quick switch from home" into tm-qpr-dev am: bbfbe60f72 am: a137d19d6d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19369341

Change-Id: I9877018df0a1b5328ffbebcec6cdb0d5da81421e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 01:26:50 +00:00
Tony Wickham
bbfbe60f72 Merge "Hide the task icon during quick switch from home" into tm-qpr-dev 2022-07-26 00:43:55 +00:00
Jeremy Sim
74f7789f8b Add comment regarding Overview TaskViews
Just adds a comment explaining the elevation of Overview TaskViews. No code changes.

Bug: 208650434
Test: None needed.
Change-Id: I19c434f8473237a4a0f6fe36deecc9c80e7b8a49
2022-07-25 22:04:37 +00:00
Vinit Nayak
c7293179d0 Space out 3 button nav on taskbar
* Add additional margin on nav buttons if
there's overlap w/ contextual button
* End spacing is dependent on grid layout

Bug: 223724516
Test: Tested on unfolded with different
grid sizes.

Change-Id: Ie814f35cd1f35629744050ee3f7242c5a8599883
2022-07-25 13:15:11 -07:00
Alex Chau
62572c04e2 Revert "Move BaseActivityInterface task size methods to DevicePr..."
Revert "Move BaseActivityInterface task size methods to DevicePr..."

Revert submission 19279487-baseactivityinterface

Reason for revert: As per discussion in ag/19341332, make sure DeviceProfile can properly react to inset changes before moving task size calculations there
Reverted Changes:
I30324d34c:Move BaseActivityInterface task size methods to De...
Ia9c1d0387:Move BaseActivityInterface task size methods to De...

Bug: 238593212
Change-Id: I0d40fdd4a5d4468494e30cef32a284479ddd2feb
2022-07-25 18:38:03 +00:00
Winson Chung
2f147bea6d Merge "Quick change to unblock launching freeform from overview" into tm-qpr-dev am: d59a6e053d am: 8a9aa40b4d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19403896

Change-Id: I1e3a7a62fb0858b4f3c8ab1afa1fa7d32f68aa71
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-25 17:42:02 +00:00
Winson Chung
8b0793f9ef Prevent setting max layer above the input consumer
- The leash is being set to max layer above the specified
  layer of the recents input consumer set by WM (in
  InputMonitor), revert this for legacy transitions

Bug: 239042246
Test: Swipe up to overview and quickly swipe again
Change-Id: I92ab2ae0917857b6b1154f6250e7fac6565a58f1
2022-07-25 16:21:49 +00:00
Winson Chung
a44c6b53c0 Quick change to unblock launching freeform from overview
- Finish the recents animation before starting the freeform task
- Remove MultiWindowFactory abstraction now that freeform is the only
  implementation that uses that

Bug: 239429564
Test: Enable freeform in developer options, launch task into freeform
      from overview

Change-Id: I48069aee322f6a275d2cdae5345b196f8d682bac
Signed-off-by: Winson Chung <winsonc@google.com>
2022-07-23 05:29:14 +00:00
Jeremy Sim
37197f6493 Merge "Remove unused TaskOutlineProvider from TaskView class" into tm-qpr-dev am: 3430f7ade1 am: 80cb20a307
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19348203

Change-Id: Ifc706207825f8992a35e991c09eb420017fdb73c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-22 18:52:05 +00:00
Jeremy Sim
3430f7ade1 Merge "Remove unused TaskOutlineProvider from TaskView class" into tm-qpr-dev 2022-07-22 18:20:44 +00:00
Tony Wickham
355b66d1ab Hide the task icon during quick switch from home
Test: manual
Fixes: 238753582
Change-Id: Ic1badf4479c5273fd4d182ef7da04797885a6a36
2022-07-20 15:29:24 -07:00
Ming-Shin Lu
84539d4142 Remove hideCurrentInputMethod from RecentsAnimationController am: 4a48cf7827 am: 8d7527715a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19341387

Change-Id: I103d037cda70db55003ac513ae2299363d5ea664
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-20 16:48:57 +00:00
Ming-Shin Lu
4a48cf7827 Remove hideCurrentInputMethod from RecentsAnimationController
Since CL[1] migrate hide IME logic when quick switching split-screen
task to InputMonitor.

As a result, remove unused API since it would be no longer to
expose hideCurrentInputMethod for launcher to handle gesture.

[1]: Ibfcd48e623336c4690b71c4db0ce1ad8f5b26fc9

Bug: 166736352
Bug: 193990612

Test: manual test as steps
1) launch any apps with focusing an editor
2) from overview, select any app to enter split-screen mode
3) taping the editor to show the keyboard
4) swipe up to overview or quick switch app tasks
5) expect the keyboard will be hidden when starting the gesture.

Change-Id: I76b93af015db098e836795f72f31b663238d9a47
2022-07-20 00:15:53 +00:00
Jeremy Sim
4776d2e094 Merge "Fix small bug with Overview action button placement" into tm-qpr-dev am: e174143358 am: f853e1a826
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19292689

Change-Id: If8a12f9deb2fed17d26031d3b0bc7e898da6adf8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-20 00:05:00 +00:00
Jeremy Sim
e174143358 Merge "Fix small bug with Overview action button placement" into tm-qpr-dev 2022-07-19 23:29:32 +00:00
Jeremy Sim
90d29d2837 Remove unused TaskOutlineProvider from TaskView class
This change removes the custom TaskOutlineProvider class defined in TaskView. It appears to be serving no purpose currently, and is causing an issue with shadows on split tiles.

Fixes: 208650434
Test: Deployed change on local device. Observed no more shadows on split tiles, and all corners and outlines still seem to be functioning correctly.
Change-Id: I7e56401ccabcd19e598726cca5cf721a22c0d982
2022-07-19 16:20:41 -07:00
Tracy Zhou
efdf9cb0d7 Merge "Add splitFromOverviewForTablet test" into tm-qpr-dev am: 3e64f94387 am: 3d3104179c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19231730

Change-Id: Ib0b1991bf08232fe91bda8ac2c4e19a25c3e6765
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-19 21:17:10 +00:00