Commit Graph

12553 Commits

Author SHA1 Message Date
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
TreeHugger Robot f47491bdf8 Merge "Remove unused logs" into tm-qpr-dev 2022-08-01 20:29:53 +00:00
Alex Chau e62dbea9ad Merge "Refactor DeviceProfile tests based on dump() and use real device dimensions for tests." into tm-qpr-dev am: ceb2aaa9e4 am: a8b1b20f70
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19356826

Change-Id: I22e17e64a30c44e42fa17e1f130143054e30adf8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 18:50:08 +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 6db9f2a46b Merge "Dump mExclusionRegion bounds" into tm-qpr-dev am: 6e59888a89 am: a6bbd643cd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19458613

Change-Id: Idae0bac76b9525889c39a7e47f4b5fac829e7146
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 16:02:38 +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
TreeHugger Robot dc9e869d98 Merge "Set overview progress on fling to 1 only if going to overview state." into tm-qpr-dev am: 4a98d8f919 am: 8409354878
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19394242

Change-Id: I7ab7caa501618291726673750b0816aa419ade36
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 23:23:09 +00:00
TreeHugger Robot 4a98d8f919 Merge "Set overview progress on fling to 1 only if going to overview state." into tm-qpr-dev 2022-07-29 22:46:35 +00:00
Schneider Victor-tulias 1dbffe0af7 Remove unused logs
Fixes: 240173459
Test: Started launcher
Change-Id: I853d9a50a0c34a7fdda87ea20d46a9f7ac7542e3
2022-07-29 13:06:24 -07:00
Jeremy Sim c9919c90a4 Merge "Update animations for TM-QPR: OverviewSplitSelect > Home transition" into tm-qpr-dev am: b7a781b599 am: 67c895776d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19224802

Change-Id: I9e684eff49cea2edce34917c02413cc1cf688f08
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 19:39:47 +00:00
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 b7a781b599 Merge "Update animations for TM-QPR: OverviewSplitSelect > Home transition" into tm-qpr-dev 2022-07-29 18:57:00 +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
Jerry Chang 40ff08495b Integrate split pair cold launch transition with shell transition
Fix: 222163803
Test: enabled shell transition, cold launch a split pair from overview
      has proper transition.
Change-Id: Ia5398d24baa64bc98a04e839f6d1247c7c7aabeb
2022-07-29 16:53:02 +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
Sunny Goyal 42b640404a Removing tabWidth calculation and using DeviceProfile directly
This removes some dependency on FloatingHeaderView, making it
easier to replace

Bug: 234008165
Test: Verified that the UI does not change
Change-Id: I363c98c23f84fe570ea9cb1a40128359f5b67c9f
Merged-In: I363c98c23f84fe570ea9cb1a40128359f5b67c9f
2022-07-28 18:10:19 +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
Evan Rosky d87f3ff8ea Enable Shell Transitions
Bug: 161711458
Test: existing tests  pass
Change-Id: I85f9565b331c8353c2222e7c8e8803c4d8fce88f
2022-07-27 18:35:36 +00:00
Sukesh Ram 1ea641ae1e Merge "Fix crash on long press of prediction row icons" 2022-07-27 17:55:37 +00:00