Commit Graph
11079 Commits
Author SHA1 Message Date
Tracy Zhou 5229bc53f3 Revert "Revert "Add testSplitFromOverview test (for phones)"" am: 6a4a229c27
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19582133

Change-Id: I2eb3ec532a99883cf2301b62d13a1b04518e3833
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-12 06:30:37 +00:00
Tracy Zhou 6a4a229c27 Revert "Revert "Add testSplitFromOverview test (for phones)""
This reverts commit 24df4bffd8.

Reason for revert: resubmit

Change-Id: Iebc66cbce6885e06fe7691c548c1ffe950e936df
2022-08-11 17:59:34 -07: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 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 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
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
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
Alex Chau 16b6511e14 Merge "Detect potential WindowConfiguration change at onApplyWindowInsets" into tm-qpr-dev 2022-08-10 09:14:11 +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
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
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 2286dc4ea3 Merge "Make windows transform into icons quicker for certain devices." into tm-qpr-dev am: b4972a3291
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19542152

Change-Id: Ia317413610ccd650e7b186054ecfbb71dc412b4e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-09 16:49:38 +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 02015d7505 Merge "Update hotseat QSB alpha after isQsbInline changes" into tm-qpr-dev am: aae5739511
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19536892

Change-Id: I4ed693f093859297e0a94fa4d8c684fc041f1fb4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-09 14:39:30 +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 106458e96e Merge "Fix no action menu for split pairs in overview panel" into tm-qpr-dev am: 3a971a67d6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19498306

Change-Id: Ic2b437e1a407c3078ede5de79be48438bdf4401f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-08 14:55:35 +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
Thales Lima a1afc2313f Merge "Calculate hotseat width based on available width" into tm-qpr-dev am: c92b40f10a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19416116

Change-Id: I87e1a5b68b8fc8ebf30e8ba9839f87367eb9f6d1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-08 09:24:09 +00:00
Thales Lima c92b40f10a Merge "Calculate hotseat width based on available width" into tm-qpr-dev 2022-08-08 08:57:20 +00:00
Pat Manning d6142daa10 Merge "Skip button layout spacing call when kids nav bar is active." into tm-qpr-dev am: 80d33f35a9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19459614

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

Change-Id: Icbae40f77402af53ae1190f3d6a21bf554483fa7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-06 01:49:15 +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
Thales Lima 9938c2f791 Calculate hotseat width based on available width
Navigation buttons take space on the hotseat, so hotseat width (qsb width and border space between icons) should be calculated instead of having a coded value.

Bug: 223724516
Bug: 228998463
Test: manual, changing display size
Test: manual, changing hotseatBarEndOffset value
Test: HotseatWidthCalculationTest
Change-Id: Ibd4f5ff2e06afda8e7420fb744db049d2e418e14
2022-08-04 15:21:06 +01:00
Alex Chau 16ac12b450 Merge "Adjust height of tablet AllApps base on row height" into tm-qpr-dev am: b0f42f03bf
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19416113

Change-Id: Ibb938354217feb1b6a2d53921a3535e7fc82adb6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-04 14:14:22 +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
TreeHugger Robot 3bf38df8b4 Merge "Don't crop task with RemoteAnimaionTarget#contentInsets" into tm-qpr-dev am: d6f79830e5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19395526

Change-Id: I2e66a94496cd5d24c016b4ffed93e7a818d77850
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-02 13:19:59 +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 b197ea0c25 Use Taskbar window for phones (only works on gesture nav) with flag am: 7db37b3d94
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18801667

Change-Id: Icb4ed4c35ec434dacb70ef1c9cd7b6b5bfccaf70
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-02 04:14:05 +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 4397dec83d Merge "Remove unused logs" into tm-qpr-dev am: f47491bdf8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19417493

Change-Id: Ia657d4c5c6030abb45d6e255d20f353f18d4b690
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 20:49:20 +00:00
TreeHugger Robot f47491bdf8 Merge "Remove unused logs" into tm-qpr-dev 2022-08-01 20:29:53 +00:00
Alex Chau a8b1b20f70 Merge "Refactor DeviceProfile tests based on dump() and use real device dimensions for tests." into tm-qpr-dev am: ceb2aaa9e4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19356826

Change-Id: I8987fc4719ad84ee8b6928b170e084861ee50863
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 18:23:45 +00:00
Alex Chau ceb2aaa9e4 Merge "Refactor DeviceProfile tests based on dump() and use real device dimensions for tests." into tm-qpr-dev 2022-08-01 18:06:59 +00:00
Pat Manning 5f74bfd76d Refactor DeviceProfile tests based on dump() and use real device dimensions for tests.
- Added roundPxValueFromFloat when converting dp/sp to px to deterministically round up values around .5

Fix: 240133465
Bug: 237542518
Test: DeviceProfileTest.kt
Change-Id: If4239f714487fe5bf2ef44274e2ce415bd75c86d
2022-08-01 17:54:43 +00:00
Tony Wickham a6bbd643cd Merge "Dump mExclusionRegion bounds" into tm-qpr-dev am: 6e59888a89
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19458613

Change-Id: Id7f1e132d3b5cc90d6423677762dd5745e5f802c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 15:43:42 +00:00
Tony Wickham 6e59888a89 Merge "Dump mExclusionRegion bounds" into tm-qpr-dev 2022-08-01 15:26:35 +00:00
Tony Wickham 3e70b820f0 Dump mExclusionRegion bounds
Also fix the dump for mDeferredGestureRegion to more helpfully print the
bounds instead of the region (which just prints "SkRegion()").

Test: adb shell dumpsys activity service TouchInteractionService | grep
- i region
Bug: 240654796

Change-Id: Ibb14c51f92ec01d2635cee33da15bb6d0421683d
2022-07-29 16:37:11 -07:00