Commit Graph

58436 Commits

Author SHA1 Message Date
Sebastián Franco f2d61702cd Merge "Adding 4x4 roerder widget test" into tm-qpr-dev 2022-08-11 17:19:27 +00:00
Thales Lima 09fc647338 Merge "Tune display options for non-default display sizes" into tm-qpr-dev am: f1b88dcb85 am: da164682c0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19578549

Change-Id: Ib448bfcfe4fb33bf3e576185eea579a309f7aae2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-11 15:30:59 +00:00
Thales Lima da164682c0 Merge "Tune display options for non-default display sizes" into tm-qpr-dev am: f1b88dcb85
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19578549

Change-Id: I64e71576537e177a5885297e8355a3cdc2faf22a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-11 15:11:06 +00:00
Thales Lima f1b88dcb85 Merge "Tune display options for non-default display sizes" into tm-qpr-dev 2022-08-11 14:47:43 +00:00
András Klöczl edeb9ab40d Merge "Trying to fix flaky launcher tests" 2022-08-11 09:55:24 +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 f3d0d066bc Merge "Integrate split pair cold launch transition with shell transition" into tm-qpr-dev am: 4322190a24
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19467311

Change-Id: Ie3e8d375829e33a570b65bea3a5ca3ce6ba8ab6e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-11 07:35: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 6245c43bb2 Merge "Force finish pending frame drawn callback once launcher is stopped" into tm-qpr-dev am: 99b1580d79
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19569180

Change-Id: I7a3c16f1e34e78df8281b832b16a379ecf35166b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-11 06:11:05 +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
Android Build Coastguard Worker dfb019775e Snap for 8931212 from 2e126f985e to tm-qpr1-release
Change-Id: I0f66f2a43695932b279c42b85b902cd9fde3e8cc
2022-08-10 23:25:27 +00:00
Alex Chau d86d6223b8 Merge "Use WindowManagerProxy.getRotation to determine if rotation has changed" into tm-qpr-dev am: 5d9625b865
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19582532

Change-Id: I176f5adf28458dd768b672e70b0b17fa5ce878a4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-10 23:01:28 +00:00
Sunny Goyal a38aa060eb Optimizing View capture logic
Doing view capture in two passes
1) UI thread: creating a flat copy of the full view tree. Since
   view structure can change on the UI thread, this needs to be
   captured synchronously on UI thread.
2) BG thread: We capture the properties of the View on background
   thread using the flat tree created in the previous step. Since
   reading the properties is atomic, there is no synchronization
   issued.

One down side of this approach is that the properties might change
while the background-tep is underway. So all the properties of a
of a node may not represent the frame-state. But for the purpose
of animations, we can just refer a few continous frames.

Bug: 242095405
Test: Verified on device, frame capture reduced by at least 5x
      every time.
Change-Id: I0a61fb24669940b3b3533c0471e42e476709da55
2022-08-10 15:49:36 -07:00
Alex Chau 5d9625b865 Merge "Use WindowManagerProxy.getRotation to determine if rotation has changed" into tm-qpr-dev 2022-08-10 22:32:51 +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
Luca Zuccarini a5722fa5f0 Merge "Introduce a new flag to guard keyboard synchronization." into tm-qpr-dev am: 2e126f985e am: 4728814a0f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19117747

Change-Id: Ia57d8df450a9cf6922ca19327ea55bfa6fdc8d63
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-10 18:15:54 +00:00
Luca Zuccarini 4728814a0f Merge "Introduce a new flag to guard keyboard synchronization." into tm-qpr-dev am: 2e126f985e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19117747

Change-Id: Id48a6f8bb48f8a98933d13dfc71e7e76fe9039be
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-10 17:58:34 +00:00
Luca Zuccarini 2e126f985e Merge "Introduce a new flag to guard keyboard synchronization." into tm-qpr-dev 2022-08-10 17:37:05 +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
Andras Kloczl 7b83486fe4 Trying to fix flaky launcher tests
Test: run AddWorkspaceItemsTaskTest.kt
Bug: 227650070
Change-Id: Ie093c5b13bdb4143829f82767fdeb208805f388a
2022-08-10 16:07:02 +00:00
Aurélien Pomini 192a014cde Hide keyboard when transitioning from all-apps state to overview state.
Sample video: http://shortn/_Jy0ynsszTd (tablet),
http://shortn/_BoBSuQGdMT (mobile phone)

Test: manual
Bug: b/240637768
Change-Id: I4c1e9f779f8c7dbe7acdb306c22d5b18965da163
2022-08-10 14:54:24 +00: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
Thales Lima 1fb075de3b Tune display options for non-default display sizes
Fix: 241382721
Test: manual
Change-Id: I05379c359dabad6931ee897455aa847a7a9b470c
2022-08-10 10:47:50 +01:00
Nicolò Mazzucato b793cac638 Merge "Disable hinge sensor while the screen is off" into tm-qpr-dev am: 92b4a88f78
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19536889

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

Change-Id: Ic6d5fbefee0487f8d6280a8dfeb46b3bf73156b5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-10 09:34:10 +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
András Klöczl 50e2e84023 Merge "Fix widget jump bug when moved to invalid place" into tm-qpr-dev am: 00d27d25da am: f2661363ca
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19559931

Change-Id: I5d42c0dcef16c584f836377f0c0bbe85f50daa91
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-10 09:20:15 +00:00
Alex Chau 16b6511e14 Merge "Detect potential WindowConfiguration change at onApplyWindowInsets" into tm-qpr-dev 2022-08-10 09:14:11 +00:00
András Klöczl f2661363ca Merge "Fix widget jump bug when moved to invalid place" into tm-qpr-dev am: 00d27d25da
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19559931

Change-Id: I20dcf8548fc96814c371a6885140029b16bd51f2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-10 08:45:49 +00:00
András Klöczl 00d27d25da Merge "Fix widget jump bug when moved to invalid place" into tm-qpr-dev 2022-08-10 08:07:30 +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 72864a13db Merge "Show 3 button nav on phone in Taskbar (1/2)" into tm-qpr-dev am: 89be3a4c6d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19534821

Change-Id: I06b23ae4fe81a2daccd3be0270fd234d0ea30728
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-10 04:02:01 +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
Sihua Ma e04aa207f2 Resize preview for correct clipping
Before, the remote view for the widget in launcher is reused to generate a new preview. However, measuring the view without changing the scale would cause strange clippings. This CL sets the scale of the widget views by manually computing the size ratio.

Change ag/19572297 is necessary before a complete clean-up.

Test: Create a weather widget on first screen -> go to Wallpaper & style -> App grid -> tap on a different grid and verify that the clipping is correct
Fix: 228328759
Change-Id: I8242d3bcfcf30ec924552c1320e22f8a3592f1c1
2022-08-09 23:57:41 +00:00
Android Build Coastguard Worker a40ded834b Snap for 8926023 from 2db1dd81af to tm-qpr1-release
Change-Id: Ie75653dff87b0c335ad18a4f72845c39a39bc350
2022-08-09 23:25:33 +00:00
TreeHugger Robot 16285a9d6d [automerger skipped] Merge changes from topic "fabFixMoveToTM" into tm-dev am: e2fd4e4e43 am: 4bc96f4854 -s ours am: b3403466ba -s ours am: 67e9b7fbfa -s ours
am skip reason: Merged-In I363c98c23f84fe570ea9cb1a40128359f5b67c9f with SHA-1 42b640404a is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19432065

Change-Id: I0f6827a78129f6abde3267576bbe1694c39a98d6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-09 21:10:59 +00:00
Sunny Goyal 305bac0c58 [automerger skipped] Fixing tab width and panner not aligned with the all-apps icons am: 524f4c4fba am: 3c6cf97c85 am: 1183b36647 -s ours am: d34ed723f9 -s ours
am skip reason: Merged-In Ibec3eed4aef730439d79b086d6ae23b63b66361e with SHA-1 524f4c4fba is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19432064

Change-Id: I2e8b7f98263ff37cd0605d74e136b71c9c8db33e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-09 21:10:57 +00:00
TreeHugger Robot 9f2977a47f [automerger skipped] Merge changes from topic "fabFixMoveToTM" into tm-dev am: e2fd4e4e43 am: 5e9ff9eaa1 am: 8b22206b9c -s ours am: 93082feba5 -s ours
am skip reason: Merged-In I363c98c23f84fe570ea9cb1a40128359f5b67c9f with SHA-1 42b640404a is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19432065

Change-Id: I52ccd6669b8aa8bd05f427adb7ab40e933c1f2fd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-09 21:10:25 +00:00
Sunny Goyal 2be4d0c37f [automerger skipped] Fixing tab width and panner not aligned with the all-apps icons am: 524f4c4fba am: fb2be66008 am: 3deba5358a -s ours am: 7abae546ce -s ours
am skip reason: Merged-In Ibec3eed4aef730439d79b086d6ae23b63b66361e with SHA-1 524f4c4fba is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19432064

Change-Id: I7e39aff8e3bba035d1c4a5490f33f890b33859c5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-09 21:10:23 +00:00
TreeHugger Robot f132be0dac [automerger skipped] Merge changes from topic "fabFixMoveToTM" into tm-dev am: e2fd4e4e43 am: 5e9ff9eaa1 -s ours am: 2db1dd81af -s ours am: d7d6778938 -s ours
am skip reason: Merged-In I363c98c23f84fe570ea9cb1a40128359f5b67c9f with SHA-1 46e368f755 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19432065

Change-Id: I513a2cddf22261220b98722949c8a2b683858af6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-09 21:07:41 +00:00
Sunny Goyal a22ea5b1da [automerger skipped] Fixing tab width and panner not aligned with the all-apps icons am: 524f4c4fba am: fb2be66008 -s ours am: d5d8839041 -s ours am: 861bd83c46 -s ours
am skip reason: Merged-In Ibec3eed4aef730439d79b086d6ae23b63b66361e with SHA-1 eab51677ae is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19432064

Change-Id: I532a937546b8ccc6c83a51905a4af1a571c7d9f3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-09 21:07:40 +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 67e9b7fbfa [automerger skipped] Merge changes from topic "fabFixMoveToTM" into tm-dev am: e2fd4e4e43 am: 4bc96f4854 -s ours am: b3403466ba -s ours
am skip reason: Merged-In I363c98c23f84fe570ea9cb1a40128359f5b67c9f with SHA-1 42b640404a is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19432065

Change-Id: Ic50187a0b18027bf071c2088e189aefaf9601aa0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-09 20:25:31 +00:00
Sunny Goyal d34ed723f9 [automerger skipped] Fixing tab width and panner not aligned with the all-apps icons am: 524f4c4fba am: 3c6cf97c85 am: 1183b36647 -s ours
am skip reason: Merged-In Ibec3eed4aef730439d79b086d6ae23b63b66361e with SHA-1 524f4c4fba is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19432064

Change-Id: Ie0fcad7bf96e218eeab8240ccfb534864a9df368
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-09 20:25:30 +00:00
TreeHugger Robot 93082feba5 [automerger skipped] Merge changes from topic "fabFixMoveToTM" into tm-dev am: e2fd4e4e43 am: 5e9ff9eaa1 am: 8b22206b9c -s ours
am skip reason: Merged-In I363c98c23f84fe570ea9cb1a40128359f5b67c9f with SHA-1 42b640404a is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19432065

Change-Id: Ie07a6e8b5abef16378317703c31a3dee7d8e807b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-09 20:24:42 +00:00