Commit Graph

4024 Commits

Author SHA1 Message Date
TreeHugger Robot 0124f54c9c Merge "Add logs to MotionPauseDetector" into sc-v2-dev am: e649047f05 am: 27c8f0fa42
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15479531

Change-Id: I0191e17de9a6de29612825ee13522c5f63b0505e
2021-08-09 17:38:58 +00:00
Alex Chau 1338dd7e71 Add logs to MotionPauseDetector
- Add logs to MotionPauseDetector to confirm if the current 700ms timeout is enough for tests

Bug: 194114179
Test: atest NexusLauncherOutOfProcTests:com.android.launcher3.memory.MemoryTests#testAppLaunchFromWorkspace
Change-Id: Ifc3e8a24c245b1877e3fae5d2cb96636c34e8e4b
2021-08-09 15:56:11 +01:00
Alex Chau 41d913a90f Merge "Only refresh DISABLED_NO_THUMBNAIL when thumbnail changes" into sc-v2-dev am: 55861dc50b am: 23af5955e8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15455164

Change-Id: I9d7b00eb56bdb1760443f7805569dcb219fdbc57
2021-08-06 18:08:48 +00:00
Alex Chau 55861dc50b Merge "Only refresh DISABLED_NO_THUMBNAIL when thumbnail changes" into sc-v2-dev 2021-08-06 17:41:11 +00:00
TreeHugger Robot af42b54626 Merge "Prevent NPE when resetting divider bar visibility" into sc-v2-dev am: 5a25696bfd am: 541a1a6da5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15472699

Change-Id: I62a970d75b5be3c9a48605e8b343305d2b0fe4ec
2021-08-06 05:34:43 +00:00
TreeHugger Robot 5a25696bfd Merge "Prevent NPE when resetting divider bar visibility" into sc-v2-dev 2021-08-06 05:06:54 +00:00
Jerry Chang 6368746a3c Prevent NPE when resetting divider bar visibility
Fix: 195325902
Test: atest
com.android.launcher3.memory.MemoryTests#testActivityRecreation
--rerun-until-failure

Change-Id: I12c48fe2834a225c5f7d042be632ddd29135b7c5
2021-08-06 09:59:31 +08:00
TreeHugger Robot b30a2798f9 Merge "Invoke home via recents for fallback recents" into sc-v2-dev am: 9b762e9778 am: e10975e88e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15430812

Change-Id: I1a92f87d03c59f53212d8edc27ddce42456f5b9c
2021-08-05 22:34:30 +00:00
TreeHugger Robot 9b762e9778 Merge "Invoke home via recents for fallback recents" into sc-v2-dev 2021-08-05 22:11:13 +00:00
Vinit Nayak 8d51468426 Invoke home via recents for fallback recents
Fixes: 194286702
Test: Go home from app and overview for
3P and normal launcher (test via separate recents activity
in debug menu)

Change-Id: Ifac4afbfa549265a80448ee460a780bf0984f9e1
2021-08-05 11:52:25 -07:00
Prabir Pradhan 3c8c3d5a40 Merge "Revert "Enable input window rotation flag"" into sc-v2-dev am: be8d4adf00 am: 7bc2901973
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15468513

Change-Id: Iddf1172e34d1ca8e79f60f3ae91d462c21be5691
2021-08-05 13:41:01 +00:00
Prabir Pradhan be8d4adf00 Merge "Revert "Enable input window rotation flag"" into sc-v2-dev 2021-08-05 13:07:59 +00:00
Arthur Hung 312a44adba Revert "Enable input window rotation flag"
This reverts commit ee75a0f8be.

Reason for revert: This is causing touches on foldable/large screen devices to be registered in the incorrect orientation. b/195617582

Bug: 195617582
Change-Id: I221b5510f1acc56f855d5fc770bc09eab86a4f29
2021-08-05 13:07:15 +00:00
Alex Chau cae25fe501 Merge "Make icon drawable for non-focused grid tasks smaller" into sc-v2-dev am: 42f914e254 am: f8829ff94f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15455151

Change-Id: I9e996edb7fe6ec167172e06ffe522e160fd337b7
2021-08-05 10:37:41 +00:00
Alex Chau 42f914e254 Merge "Make icon drawable for non-focused grid tasks smaller" into sc-v2-dev 2021-08-05 09:57:19 +00:00
Alex Chau 6dd7241400 Merge "Increase motion pause timeout for tests" into sc-v2-dev am: 974635127b am: a2b4e128f6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15455154

Change-Id: I8047595ab7c363ae24d8de5bfaf4f7d065302181
2021-08-04 22:22:36 +00:00
Alex Chau 974635127b Merge "Increase motion pause timeout for tests" into sc-v2-dev 2021-08-04 21:59:53 +00:00
TreeHugger Robot 699668e7ff Merge "Storing form factor as part of backup and disabling restore if form-factor is different" into sc-v2-dev am: b78e77f581 am: 707b1d8e66
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15446311

Change-Id: I9f2a9c6e72a0243a030259efff372ca93d6beecc
2021-08-04 20:12:40 +00:00
TreeHugger Robot b78e77f581 Merge "Storing form factor as part of backup and disabling restore if form-factor is different" into sc-v2-dev 2021-08-04 19:12:10 +00:00
Alex Chau 0dfe56cff1 Increase motion pause timeout for tests
- In cuttlefish occasionally MOTION_MOVE and MOTION_UP takes more than 300ms due to lag, increasing the motion pause timeout to avoid getting false signals in tests

Bug: 194114179
Test: atest NexusLauncherOutOfProcTests:com.android.launcher3.memory.MemoryTests#testAppLaunchFromWorkspace
Change-Id: I0a33f34b5bf96f4f7ae56020c5a27f4ef9a0ff64
2021-08-04 20:09:06 +01:00
Sunny Goyal 68031ca3f9 Storing form factor as part of backup and disabling restore if form-factor is different
Bug: 195301649
Test: Manual
Change-Id: I9a9c4bc9246f40af2209cb914b3966319bc78bff
2021-08-04 09:51:04 -07:00
Prabir Pradhan 9bb59427bf Merge "Enable input window rotation flag" into sc-v2-dev am: d573948424 am: f889109cdf
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14669176

Change-Id: I697fff1ec3f6b6b3e2f1a7f171cf235a6d9dd161
2021-08-04 14:18:58 +00:00
Prabir Pradhan d573948424 Merge "Enable input window rotation flag" into sc-v2-dev 2021-08-04 14:03:24 +00:00
Alex Chau 630562210e Only refresh DISABLED_NO_THUMBNAIL when thumbnail changes
- Avoid refreshing all overlay content which happens too frequently

Bug: 193125090
Test: atest NexusLauncherTests:com.android.quickstep.TaplTestsQuickstep#testOverviewActions
Change-Id: Idcfe19a518e621c55574baae3bbe1378b7f3d08f
2021-08-04 12:14:46 +01:00
Thales Lima adda271d6f navigation: don't run gesture animation if gestures are not enabled am: 8d49c4bb29 am: ccdc7b47a4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15410551

Change-Id: I4d2fa2b3b955a8c438d385f374a592a7e8aeb229
2021-08-04 09:47:24 +00:00
Thales Lima 8d49c4bb29 navigation: don't run gesture animation if gestures are not enabled
Makes the animation when using 3 button navigation be closer to what we
have in non fallback mode, also fixing the problem when fallback recents
just started and don't have any views.

Fix 194487871
Test: manual with gestures, 2 button and 3 button nav

Change-Id: If3925d6bef1d14f51b86169d06607786972f5f1f
2021-08-04 09:24:12 +00:00
Alex Chau ac9df38e9f Make icon drawable for non-focused grid tasks smaller
- Center the icon drawable in center of IconView with and allow a smlaler size to be set

Bug: 194194694
Test: dismiss focus task, swipe from app etc.
Change-Id: I2855249b13e2ccdb45f101bfb7afef4311f7b46f
2021-08-03 17:36:15 +01:00
TreeHugger Robot b77c857600 Merge "Migrate from using taskIDs to taskViewIDs in RecentsView" into sc-v2-dev am: f5c3dab525 am: bf3221b5a8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15407110

Change-Id: I8476f63caadbc53b2b1e12fd792c50f5bf8f8fb7
2021-08-03 04:45:56 +00:00
TreeHugger Robot f5c3dab525 Merge "Migrate from using taskIDs to taskViewIDs in RecentsView" into sc-v2-dev 2021-08-03 04:20:42 +00:00
TreeHugger Robot 1e8579f7c2 Merge "Band-aid for getHomeActivities returning null" into sc-v2-dev am: 144b16bbb1 am: 1ce9633815
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15444309

Change-Id: I77468fbfc1194afb0b74363ec5511ba0b695737e
2021-08-02 19:57:16 +00:00
TreeHugger Robot 144b16bbb1 Merge "Band-aid for getHomeActivities returning null" into sc-v2-dev 2021-08-02 19:20:01 +00:00
vadimt 42a7d1af83 Band-aid for getHomeActivities returning null
It can return null immediately after android.intent.action.ACTION_PREFERRED_ACTIVITY_CHANGED
notification.

Test: local
Bug: 187080582
Change-Id: I8625fdfc0add57fed832bdca4713747a005bf08c
2021-08-02 10:38:12 -07:00
Hongwei Wang abd74b94fa Merge "Check PiP permission before entering auto pip" into sc-v2-dev am: b999186b9e am: 28e8b2c84a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15376471

Change-Id: Ibf5b4bcc9bb2d651a268a874a64df951138776cd
2021-07-31 03:44:39 +00:00
Hongwei Wang b999186b9e Merge "Check PiP permission before entering auto pip" into sc-v2-dev 2021-07-31 03:14:11 +00:00
Vinit Nayak 51a6c92174 Migrate from using taskIDs to taskViewIDs in RecentsView
* Follow up CL coming to introduce a TaskView that
can have multiple Tasks, so a taskID won't be particularly useful
in that scenario.

Bug: 192292305
Test: Manual, w/ and w/o live tile
Change-Id: I1900b999ac51aa99923239f2af400c90c71c3dae
2021-07-30 11:02:26 -07:00
Alex Chau 59a7e6b040 Merge "Always treat FallbackRecentsView as visible if isInLiveTileMode is true" into sc-v2-dev am: 2095731650 am: b922ac8534
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15410554

Change-Id: I134f2be3860bfae899a801b206f4d2fc1fb79c99
2021-07-29 23:04:37 +00:00
Alex Chau 2095731650 Merge "Always treat FallbackRecentsView as visible if isInLiveTileMode is true" into sc-v2-dev 2021-07-29 22:44:30 +00:00
Tracy Zhou 6cafb0d5e4 Merge "Clear command queue of OverviewCommandHelper on home tap" into sc-v2-dev am: 64231c8db1 am: 4a1bfd97c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15420889

Change-Id: I4ef3252c00a5af23203269567fd266a06630bb87
2021-07-29 19:36:46 +00:00
Tracy Zhou 86bd1dce8d Clear command queue of OverviewCommandHelper on home tap
Fixes: 194934483
Test: manual
Change-Id: Id83b341245793c38c305e6ada5581ac4e49527a7
2021-07-29 17:23:01 +00:00
Evan Rosky ee75a0f8be Enable input window rotation flag
Bug: 179274888
Test: no-changes, all existing tests pass
Change-Id: Ib0699449cf87fbf0c5e1b76fff57fab7bf1ffb8b
2021-07-29 16:33:22 +00:00
Thales Lima f37ef77cf3 Merge "launcher: change default state for RecentsActivity" into sc-v2-dev am: 3c1a1195b4 am: 7bd0203a0e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15371935

Change-Id: I7e57666461570f0a092af90cc33f3fdb873af8b6
2021-07-29 12:44:03 +00:00
Thales Lima 3c1a1195b4 Merge "launcher: change default state for RecentsActivity" into sc-v2-dev 2021-07-29 12:13:50 +00:00
Alex Chau 455718e842 Always treat FallbackRecentsView as visible if isInLiveTileMode is true
- activity.hasBeenResumed is no longer an accurate indicator after live tile has been introduced, indeed it's always false
- Return recentsView regardless if there is a runningTask as well

Bug: 194286330
Test: In fallback Recents with 3 button, tap overview button from home screen, then tap overview button again. Try combination with back and home button
Change-Id: Ib2775a11f5466abc433763f24192e7bfdcf191a2
2021-07-29 08:42:37 +00:00
Lucas Dupin 4bbd2092ff Merge "Add depth to -1 screen" into sc-v2-dev am: 6d80cafc68 am: 103d4536dd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15405469

Change-Id: Ifbbf248af32fe0a94e2888197c67c698afd46385
2021-07-28 22:06:38 +00:00
Lucas Dupin 6d80cafc68 Merge "Add depth to -1 screen" into sc-v2-dev 2021-07-28 21:40:42 +00:00
TreeHugger Robot f47e8cbf69 Merge "Let TaskbarDragView scale up before switching to system drag view" into sc-v2-dev am: d750d16b69 am: e8a936f96e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15406135

Change-Id: I90c42636333034a2c33dd9401bcfddd8a6cf99c7
2021-07-28 20:13:26 +00:00
TreeHugger Robot d750d16b69 Merge "Let TaskbarDragView scale up before switching to system drag view" into sc-v2-dev 2021-07-28 19:52:43 +00:00
Lucas Dupin 87d752062e Add depth to -1 screen
Wallpaper will zoom out as you drag the overlay

Test: manually pull overlay
Fixes: 192502999
Change-Id: I9067b70d10497d4e16a5ef601161fbedfa9307e1
2021-07-28 12:36:31 -07:00
Tony Wickham 27ab9d96eb Let TaskbarDragView scale up before switching to system drag view
Test: Long press taskbar icons, ensure they aniamte the scale up
Fixes: 182981908
Change-Id: I573fe66c93ebf995b3f56f2c003dee987687b6a7
2021-07-28 08:03:14 -10:00
Thales Lima 0cdf92f90c launcher: change default state for RecentsActivity
When the user presses the home button, because fallback Recents doesn't
have a way to change the state, we rely on `onStop` to reset the state.
This makes the state be cleared correctly.

Fixes 192254944
Test: follow the bug

Change-Id: I177b09392214d078373e3852517b57d9172d944d
2021-07-28 16:03:43 +00:00