Commit Graph

11086 Commits

Author SHA1 Message Date
Jeremy Sim cf03d04469 Merge "Update animations for TM-QPR: Overview > OverviewSplitSelect transition" into tm-qpr-dev 2022-08-15 21:19:21 +00:00
Evan Rosky 4b8f86ebcc Notify recents controller when no-longer finishing-to-home
Bug: 241818882
Test: open app, swipe to recents, restore app
Change-Id: Ifb258319b7a54917f9f6ac08ccefeed5a47480e2
2022-08-15 10:26:49 -07:00
Jeremy Sim a50bb39048 Update animations for TM-QPR: Overview > OverviewSplitSelect transition
The animation from Overview to OverviewSplitSelect is now updated to the latest spec. See bug for details.
- New timings
- Task thumbnails slide in with a new spring animation
- Icons fade out and fade in appropriately
- SplitInstructionsView has a new compound "unfold" animation

Bug: 236760307
Test: Manual on tablet and phone. Looks good on both true and fake orientations.
Change-Id: If98d4464aa51c876d79bee9672279992a2cf9026
2022-08-14 10:34:51 -07:00
Stefan Andonian 4ec179f13a Merge "Fix for bug where expensive launcher animations were being paused and never resumed." into tm-qpr-dev am: 28d354c9a1 am: a79e5705bf
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19600849

Change-Id: I8438e9e45e9a453ba586c4a834ba0d24a61b99b7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-12 17:38:18 +00:00
Stefan Andonian c784f76c0d Fix for bug where expensive launcher animations were being paused and never resumed.
Bug: 240623130
Test: Verified on device that the issue is not reproducible after fix.
Change-Id: I7b1e2f70fd75b1eddf340a4f85465cc6d5b65f73
(cherry picked from commit 8b336195a6)
2022-08-12 17:21:47 +00:00
Stefan Andonian 28d354c9a1 Merge "Fix for bug where expensive launcher animations were being paused and never resumed." into tm-qpr-dev 2022-08-12 17:07:03 +00:00
Stefan Andonian 8b336195a6 Fix for bug where expensive launcher animations were being paused and never resumed.
Bug: 240623130
Test: Verified on device that the issue is not reproducible after fix.
Change-Id: I7b1e2f70fd75b1eddf340a4f85465cc6d5b65f73
2022-08-11 20:36:41 +00:00
Pat Manning 2c60b25805 Merge "Add logging to help debug flake when swiping home to overview." 2022-08-11 09:54:17 +00:00
Jerry Chang 7498703aa9 Merge "Integrate split pair cold launch transition with shell transition" into tm-qpr-dev am: 4322190a24 am: f3d0d066bc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19467311

Change-Id: I603efb13f3e6f2d7b9f536e6455fa51e4c1fe789
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-11 07:54:31 +00:00
Jerry Chang 4322190a24 Merge "Integrate split pair cold launch transition with shell transition" into tm-qpr-dev 2022-08-11 07:05:18 +00:00
Winson Chung 99f80d2364 Merge "Force finish pending frame drawn callback once launcher is stopped" into tm-qpr-dev am: 99b1580d79 am: 6245c43bb2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19569180

Change-Id: I2673009a718d4accfc69720f562c5e57ee4cca2d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-11 06:37:43 +00:00
Winson Chung 99b1580d79 Merge "Force finish pending frame drawn callback once launcher is stopped" into tm-qpr-dev 2022-08-11 05:32:41 +00:00
Alex Chau ea521f4857 Merge "Use WindowManagerProxy.getRotation to determine if rotation has changed" into tm-qpr-dev am: 5d9625b865 am: d86d6223b8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19582532

Change-Id: I93957f96b19647c873580ae014e275be2060b3f2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-11 00:03:29 +00:00
Winson Chung e7bf15932b Force finish pending frame drawn callback once launcher is stopped
- In rare cases, we may schedule to update the taskview with a
  screenshot but Launcher will not finish calling back because
  the activity is stopped (can be the result of the animation
  cancelling back to the app), which prevents Launcher from
  scheduling any frames and properly decrementing the frame
  count.

Bug: 202776119
Test: Launch an app with sharesheet, swipe up and verify that
      screenshot callbacks
Change-Id: I6b7e121fd5d9ef27ef5cccca060a4ff819fe9acc
2022-08-10 19:58:19 +00:00
Alex Chau 360ec033ac Use WindowManagerProxy.getRotation to determine if rotation has changed
- Follow-up of http://ag/19559863 as Config diff on windowConfiguration does not work on 3P Launcher, so diff WindowManagerProxy.getRotation instead
- Also centralized Configuration diff logic into StatefulActivity

Bug: 240730723
Test: manual on 90/180 degree rotation in Launcher, RecentsActivity and 3P Launcher
Change-Id: Ib368ed5d749841a6873a03e2644608ff68885922
2022-08-10 18:14:06 +01:00
Pat Manning 1edba8b0a6 Add logging to help debug flake when swiping home to overview.
Bug: 238461210
Test: TaplTestsQuickstep#testSwitchToOverview
Change-Id: I8ee9af4f4a331c43761ba3738e12acb376ababc2
2022-08-10 13:37:02 +00:00
Nicolò Mazzucato b399812c6e Merge "Disable hinge sensor while the screen is off" into tm-qpr-dev am: 92b4a88f78 am: b793cac638
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19536889

Change-Id: I6a2a49f39db26fce7cbff4dc359eda8cc47248bf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-10 09:49:05 +00:00
Alex Chau 1edf184cc9 Merge "Detect potential WindowConfiguration change at onApplyWindowInsets" into tm-qpr-dev am: 16b6511e14 am: 76865013bd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19559863

Change-Id: Ibe53bcf7d1839224bf2b8e0d8d5bec6a25096b9f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-10 09:48:54 +00:00
Nicolò Mazzucato 92b4a88f78 Merge "Disable hinge sensor while the screen is off" into tm-qpr-dev 2022-08-10 09:32:53 +00:00
Alex Chau 16b6511e14 Merge "Detect potential WindowConfiguration change at onApplyWindowInsets" into tm-qpr-dev 2022-08-10 09:14:11 +00:00
Vinit Nayak 2d6442c5e6 Merge "Show 3 button nav on phone in Taskbar (1/2)" into tm-qpr-dev am: 89be3a4c6d am: 72864a13db
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19534821

Change-Id: Ib9ef7e0923dea9e1700208b9dbdd20ee4368b063
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-10 04:19:00 +00:00
Vinit Nayak 89be3a4c6d Merge "Show 3 button nav on phone in Taskbar (1/2)" into tm-qpr-dev 2022-08-10 03:06:53 +00:00
Vinit Nayak 8a3d05587e Show 3 button nav on phone in Taskbar (1/2)
* TODO: Landscape/seascape support,
        Separate nav spacing out into
        separate class/add tests

Bug: 219035565
Change-Id: I8f5c007f04ea4d6df15962772806356181d764ff
2022-08-09 13:25:50 -07:00
TreeHugger Robot 5e9ff9eaa1 Merge changes from topic "fabFixMoveToTM" into tm-dev am: e2fd4e4e43
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19432065

Change-Id: I63b05d4643a6e545ab8f0ad53ac4c077400edad9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-09 19:41:43 +00:00
Alex Chau ccc430e2c1 Detect potential WindowConfiguration change at onApplyWindowInsets
- Invoke onConfiguration when receiving inset changes
- In Laucnher/RecentsActivity onConfiguration, additionally detect for windowConfiguration's rotation change; if Configuration stays the same, it'll be ignored.

Bug: 240730723
Test: manual on 90/180 degree rotation in Launcher and RecentsActivity
Change-Id: I7087878af847d62e1c715a4f52a18818d1a6c258
2022-08-09 19:09:42 +01:00
Jon Miranda 88568fd15b Merge "Make windows transform into icons quicker for certain devices." into tm-qpr-dev am: b4972a3291 am: 2286dc4ea3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19542152

Change-Id: Icfafa692ce1b513c78010ab30a86281020263f42
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-09 17:14:00 +00:00
Jon Miranda b4972a3291 Merge "Make windows transform into icons quicker for certain devices." into tm-qpr-dev 2022-08-09 16:14:58 +00:00
Alex Chau 8d0048864d Merge "Update hotseat QSB alpha after isQsbInline changes" into tm-qpr-dev am: aae5739511 am: 02015d7505
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19536892

Change-Id: Ie68e83885eda7159f19d95c8dd371dbb77096b7e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-09 15:12:42 +00:00
Alex Chau aae5739511 Merge "Update hotseat QSB alpha after isQsbInline changes" into tm-qpr-dev 2022-08-09 14:23:33 +00:00
Jon Miranda da8c0f9926 Make windows transform into icons quicker for certain devices.
Bug: 240671690
Test: manual
Change-Id: Ie36a68c1e92443ca453778df6b8f7549d6e1f7e1
2022-08-08 16:58:04 +00:00
Jerry Chang 32e7d3f2cd Merge "Fix no action menu for split pairs in overview panel" into tm-qpr-dev am: 3a971a67d6 am: 106458e96e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19498306

Change-Id: Id068204f98e01695caf2915d2ab7a040f9921b63
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-08 15:15:57 +00:00
Jerry Chang 3a971a67d6 Merge "Fix no action menu for split pairs in overview panel" into tm-qpr-dev 2022-08-08 14:38:13 +00:00
Pat Manning 7b0870c1d2 Merge "Skip button layout spacing call when kids nav bar is active." into tm-qpr-dev am: 80d33f35a9 am: d6142daa10
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19459614

Change-Id: I40806b87f34c23577565a326a6b8246464294650
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-06 02:25:58 +00:00
Sunny Goyal 8b6591757b Merge "Fixing surface blur when using multiple surfaces" into tm-qpr-dev am: 0c0fb6bc08 am: fb6ca5ceff
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19222535

Change-Id: I666428f2cd33c00470d08c00a96923fbe2bfdb8f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-06 02:25:50 +00:00
Pat Manning 80d33f35a9 Merge "Skip button layout spacing call when kids nav bar is active." into tm-qpr-dev 2022-08-05 23:29:24 +00:00
Sunny Goyal 0c0fb6bc08 Merge "Fixing surface blur when using multiple surfaces" into tm-qpr-dev 2022-08-05 23:12:22 +00:00
Alex Chau e5829075ab Update hotseat QSB alpha after isQsbInline changes
Fix: 238578584
Test: Repeat steps in bug for portrait/landscape
Change-Id: I1bb9724f3e32bfc148ac75df3d1211c71c99875c
2022-08-05 17:29:22 +01:00
Pat Manning f3783291ec Skip button layout spacing call when kids nav bar is active.
Fix: 240530037
Test: manual.
Change-Id: Ibf777dfdaab3c81da8feed581a0297f09a62539d
2022-08-05 10:35:07 +00:00
Nicolo' Mazzucato bd819cdf0f Disable hinge sensor while the screen is off
This allows to save some power while the device is unfolded but with screen off.

+ Avoiding registering more listeners if HingeSensorAngleProvider.start() is called multiple times sequentially without a `stop` in the middle. It seems that otherwise we would get duplicated callbacks.

+ Adding onScreenTurningOn and onScreenTurningOff callbacks to forward to Launcher (as only sysui is receiving them)

Bug: 240661156
Bug: 240374404
Test: DeviceFoldStateProviderTest && LauncherFoldAnimationTest (e2e)
Change-Id: I769643321c4819c145aac1b0a32a80d5738951c2
2022-08-05 09:19:59 +00:00
Alex Chau 137c0e1e2e Merge "Adjust height of tablet AllApps base on row height" into tm-qpr-dev am: b0f42f03bf am: 16ac12b450
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19416113

Change-Id: I74473373191600555cd9154dc3aa0fc95477ca7d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-04 14:40:46 +00:00
Alex Chau b0f42f03bf Merge "Adjust height of tablet AllApps base on row height" into tm-qpr-dev 2022-08-04 13:55:06 +00:00
Jerry Chang 32820e89e3 Fix no action menu for split pairs in overview panel
The splitting tasks will be reparented to RecentAnimationSplitTasks
overlay layer in order to animate them together. However, the other
animating apps should also be placed to the same overlay layer so all of
them can be layered properly during the transition.

Bug: 239630217
Test: action menu shows above split pairs in overview panel
Change-Id: I4dda71317bb61775664dcbfe1cee9a099aca872f
2022-08-04 04:34:20 +00:00
Alex Chau 206ede9c1f Adjust height of tablet AllApps base on row height
- Also used hotseatQsbHeight for AllApps QSB height as they have to match to transform between each other

Fix: 232907846
Test: manual on different tablets
Test: atest DeviceProfileTest
Change-Id: I001d0e129db2a5de6c8ace4c3302381110da03f1
2022-08-03 15:29:22 +00:00
Ivan Chiang 72b268d9d2 Merge "Add attributionTag to audit data access" 2022-08-03 07:13:55 +00:00
Sunny Goyal c5c7da9a8b Removing some obsolete features
PROMISE_APPS_NEW_INSTALLS = true
ENABLE_QUICKSTEP_WIDGET_APP_START = true
FOLDER_NAME_SUGGEST = true
ENABLE_PREDICTION_DISMISS = true
HOTSEAT_MIGRATE_TO_FOLDER = false
ENABLE_DEEP_SHORTCUT_ICON_CACHE = true
ENABLE_THEMED_ICONS = true
ENABLE_ALL_APPS_EDU = true
EXPANDED_SMARTSPACE = false

Bug: 241141733
Test: Presubmit
Change-Id: I72c0c20ab7e214994dc3c3665c90e85d45991a7a
2022-08-02 13:38:38 -07:00
TreeHugger Robot 07b31092c6 Merge "Don't crop task with RemoteAnimaionTarget#contentInsets" into tm-qpr-dev am: d6f79830e5 am: 3bf38df8b4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19395526

Change-Id: I3e9dfc496503bdfad1f761435e40b1019c9d066d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-02 13:23:06 +00:00
TreeHugger Robot d6f79830e5 Merge "Don't crop task with RemoteAnimaionTarget#contentInsets" into tm-qpr-dev 2022-08-02 13:05:02 +00:00
Vinit Nayak e677538171 Use Taskbar window for phones (only works on gesture nav) with flag am: 7db37b3d94 am: b197ea0c25
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18801667

Change-Id: If22f89319b68b9b13422a3b5e3e9ae855d22731e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-02 04:30:54 +00:00
Vinit Nayak 7db37b3d94 Use Taskbar window for phones (only works on gesture nav) with flag
* Try to avoid re-creating TaskbarActivityContext to
avoid re-inflating taskbar views
* Toggle via Flipper App (key 1101)
OR adb shell setprop persist.wm.debug.hide_navbar_window 1 && adb reboot
TODOs
* Only works for gesture nav, not 3 button
* Sampling on phone doesn't always work.

Bug: 219035565
Change-Id: I2a015f99d5f1fe86d7261eec9fd898bd4480ff9f
2022-08-01 17:48:09 -07:00
TreeHugger Robot ae670bdc53 Merge "Remove unused logs" into tm-qpr-dev am: f47491bdf8 am: 4397dec83d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19417493

Change-Id: I9d8343bba0e5708c0629434abf0e0319c8bf8405
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 21:07:33 +00:00