Commit Graph

53916 Commits

Author SHA1 Message Date
TreeHugger Robot b650d40fc2 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-28 06:46:00 +00:00
Ikram Gabiyev 448e0ade10 Filter recents view instances by package name
Filter instances of GroupTasks based on package name
as a part of support for multi-instance

Add a feature flag to toggle multi-instance features

See the video below for how to use the demo.
Note: some extra UI elements were added since video
was recorded, but the filtering process is the same.
http://recall/-/da585DRwKRZK3S2xxcQrSm/gW9HZnbCvGyH1DQiVizOW2

See go/multi-instance for more info about the feature

Bug: 253520408

Test: manually tested the instance filtering

Change-Id: I19c947ca353699096388b9fbbdca6d75cb0041a7
2022-12-28 00:10:48 +00:00
Darrell Shi 8f83cc6b45 Display back button on home settings.
This change provides a back affordance on the Home settings when
accessed from Hub mode settings.

Bug: 263403020
Fix: 263403020
Test: Settings > Hub mode > At a glance, see back affordance
Test: long press launcher > Home settings, no back affordance
Change-Id: I96449d7eae4afac5ec3f61e5aa5a4f2c05b8cd51
2022-12-27 19:42:57 +00:00
Luca Zuccarini 1270c90a32 Merge changes from topic "b/260218332-1" into tm-qpr-dev am: 5dd5296527
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20562095

Change-Id: I92c009c2a0269d0e708d947eab4a0f9c5f5aa463
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-27 14:43:09 +00:00
Luca Zuccarini 242eeea4ea Add Tapl support for swiping from All Apps to Workspace. am: 55d828b6f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20551691

Change-Id: I79eb5f5b0dfa0d551c91969f75388477e86bc8f9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-27 14:43:03 +00:00
Luca Zuccarini 5dd5296527 Merge changes from topic "b/260218332-1" into tm-qpr-dev
* changes:
  Add a CUJ for closing All Apps manually.
  Add Tapl support for swiping from All Apps to Workspace.
2022-12-27 14:27:48 +00:00
Luca Zuccarini e18ac479e5 Revert "Update timings for the Home <> All Apps transition."
Revert submission 20641089-b/254835725

Reason for revert: b/263221786

Reverted changes: /q/submissionid:20641089-b/254835725

Change-Id: I6aa0955b4ac7ed47ea254514b364b0ab94b632bf
2022-12-27 14:18:05 +00:00
Federico Baron 7f823d10b4 Fix bug where dragging icons in folders causes error
The error was caused by delta being larger than the range, which leads to an UnsupportedOperationException: "Final position of the spring cannot be greater than the max value". With this change, delta will never be greater than range.

Fix: 261674632
Test: 1. Settings > Display > Display size and text >>> Set display size to the biggest
2. Make folder
3. Go to landscape mode
4. Open folder
5. Quickly drag icon in folder
6. Verify that Launcher doesn't stop and drag is successful

Change-Id: I6c81755750acf0de8693b98caad8e7dab3e9f58a
2022-12-22 22:51:28 +00:00
Pat Manning b525727de7 Merge "Do not animate moving to rest state on CHANGE_ACTIVE_SCREEN." into tm-qpr-dev am: eef0b1640b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20794890

Change-Id: Icb84709366849144227bba98c744f86019d04520
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-22 18:11:20 +00:00
Pat Manning eef0b1640b Merge "Do not animate moving to rest state on CHANGE_ACTIVE_SCREEN." into tm-qpr-dev 2022-12-22 17:47:57 +00:00
Brandon Dayauon da5f47e102 Merge "Move VibratorWrapper to AOSP" into tm-qpr-dev am: 2d3f189b80
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20796546

Change-Id: I93544409f0ef351ef03d45d1cde90b0c400da4fd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-22 08:44:59 +00:00
Brandon Dayauon 2d3f189b80 Merge "Move VibratorWrapper to AOSP" into tm-qpr-dev 2022-12-22 08:18:12 +00:00
Tony Wickham a16da8f29d Merge "Adjust taskbar VIS and bottom mandatory gesture insets" into tm-qpr-dev am: 1f155d6fd7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20750862

Change-Id: I8836741c8a5cba503a23b61bfac9924f393ad4ee
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-21 23:55:16 +00:00
Tony Wickham 1f155d6fd7 Merge "Adjust taskbar VIS and bottom mandatory gesture insets" into tm-qpr-dev 2022-12-21 23:25:59 +00:00
Luca Zuccarini d3841f36a1 Add a CUJ for closing All Apps manually.
Bug: 260218332
Test: pending
Change-Id: Iafe3b932aca985fb4585dac46c6eaaa6e88c8dd6
2022-12-21 15:39:51 +00:00
Luca Zuccarini 55d828b6f5 Add Tapl support for swiping from All Apps to Workspace.
This mirrors the way we swipe from Workspace to All Apps, with minor
differences for selecting the start position of the swipe motion.

Bug: 260218332
Test: included
Change-Id: I9fe2284b1c920ebed87a6bab3dfc9c8c29aa2d5d
2022-12-21 15:38:51 +00:00
Pat Manning cc31ba5360 Do not animate moving to rest state on CHANGE_ACTIVE_SCREEN.
Fix: 259380717
Test: manual
Change-Id: Icec103b26603290c7998977fa9c4d89132620a9d
2022-12-21 11:37:47 +00:00
Bill Yi c8cec8e93d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I45bd8694fd2f0387ed0f071bf7159ea474978bbf
2022-12-21 00:14:42 -08:00
Brandon Dayauon e7674bdef1 Merge "Extend/shrink work button when scrolling" into tm-qpr-dev am: 238bbfaf7b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20666525

Change-Id: I301007d3c33cc746356dca3d1b29f21d8986f706
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-21 06:17:47 +00:00
Brandon Dayauon 238bbfaf7b Merge "Extend/shrink work button when scrolling" into tm-qpr-dev 2022-12-21 05:31:33 +00:00
Ats Jenk a6ee04ba35 Merge "Taskbar fixes when apps move to desktop and back" into tm-qpr-dev am: ebfe6b6776
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20754487

Change-Id: I099705f4a4fb971e5550b76f194d7d19677250b7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-20 23:53:23 +00:00
Ats Jenk ebfe6b6776 Merge "Taskbar fixes when apps move to desktop and back" into tm-qpr-dev 2022-12-20 23:29:26 +00:00
Brandon Dayauon c9672b9002 Extend/shrink work button when scrolling
most of the change was from this CL: ag/19223926
moved scroll listener definition to WorkProfileManager.java
Added feature flag

bug: 194188980
test: Video - https://drive.google.com/file/d/18UM7UDNQz-Z8Q2Sh8VEKHm9LXRVJaWFM/view?usp=sharing
Change-Id: Ib80784e0f5108b28658141ca5e495a27fab34a3c
2022-12-20 14:38:40 -08:00
Vadim Tryshev 0a2ed6c078 Merge "Not waiting for animations for Launcher clicks" into tm-qpr-dev am: e74238d233
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20790706

Change-Id: Ie2a1435654da87834384deaf4e46f3b17af2f5a6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-20 22:26:32 +00:00
Vadim Tryshev e74238d233 Merge "Not waiting for animations for Launcher clicks" into tm-qpr-dev 2022-12-20 21:57:09 +00:00
Federico Baron 42c466737d Improve restore icon treatment am: c03bb43fa5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20646257

Change-Id: Ia65dd336b9e0171be54a2eb78e3d5f4bd11f4c74
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-20 21:46:47 +00:00
Federico Baron c03bb43fa5 Improve restore icon treatment
This is the first of a few CL's that change the way pending/downloading/installing apps look to follow the new mocks. In this CL we:

-Fix a regression where the track path doesn't show up when downloading an app
-Change the sizes of icons to reflect the new design mock
-Add skeleton motion animation

In upcoming CL's we will add visual polish and make sure it matches the motion spec exactly

Bug: 254858049
Test: Download an app and check pending, downloading, and installing visuals
Change-Id: Ief1038ea52d77874b4031db76d51a2787615a14d
2022-12-20 12:58:40 -08:00
Brian Isganitis 111d1a4dd6 Merge "Add flag for Taskbar education tooltip." into tm-qpr-dev am: dad173f9c6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20785349

Change-Id: I915bf2290ce6a984a95e6009f78f852c8dc374c2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-20 20:16:38 +00:00
Brian Isganitis dad173f9c6 Merge "Add flag for Taskbar education tooltip." into tm-qpr-dev 2022-12-20 19:53:03 +00:00
Alex Chau 369fd22fba Merge "folderChild icon and text size should follow the respective configuration" into tm-qpr-dev am: 37292eb230
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20794888

Change-Id: I429c6fb98ae7907aad3569a38c8167e4f8d72fb9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-20 19:36:41 +00:00
Alex Chau 37292eb230 Merge "folderChild icon and text size should follow the respective configuration" into tm-qpr-dev 2022-12-20 19:01:14 +00:00
Alex Chau 8d18eba59e Merge "Add transientTaskbarMargin above taskbar in overview" into tm-qpr-dev am: d79e53a5c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20782488

Change-Id: Ie66dbeb2b3219b5036554a0ec89ace2187124387
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-20 18:53:30 +00:00
Sunny Goyal 0c0581ee30 Merge "Removing some unused container IDs" into tm-qpr-dev am: eae7e58b20
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20763382

Change-Id: I429a97d5883a51637a4e8fc64471e2919937b3fb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-20 18:53:02 +00:00
Alex Chau d79e53a5c8 Merge "Add transientTaskbarMargin above taskbar in overview" into tm-qpr-dev 2022-12-20 18:40:48 +00:00
Ats Jenk 0ea4768a02 Taskbar fixes when apps move to desktop and back
Fixes to taskbar state when tasks are moved to desktop and fullscreen.

When freeform tasks are visible and we start a new task from taskbar, it
first launches in fullscreen. Transition handler in WMSHell switches it
to freeform as needed. This switch causes launcher activity to be paused
and then resumed. Resuming launcher activity while freeform tasks are
visible, puts the launcher into an incorrect state. (Launcher should
appear paused while freeform tasks are visible).

When a freeform task switches to fullscreen, freeform tasks are no
longer visible. This causes us to resume the launcher activity. We
should not do that if a fullscreen task is visible as it puts the
launcher into an incorrect state. It appears resumed even though the
activity is paused. Added a check to DesktopVisibilityController that
checks if the activity is actually resumed before marking it appear as
resumed.

Test: manual, switch a task to freeform, launch another freeform task
  from taskbar, taskbar should continue to be available
Test: manual, switch a task to freeform, switch the task back to
  fullscreen, taskbar should continue to be available
Bug: 261234278

Change-Id: Ia8d208619fabfcc9bffff6d8d227b236cb62a00c
2022-12-20 10:34:07 -08:00
Brandon Dayauon 5a31c9262e Move VibratorWrapper to AOSP
bug: 233751149
test: manually run and presubmit
Change-Id: I89ada0adf7254396238cb96d27bc265e28093f50
2022-12-20 10:27:21 -08:00
Sunny Goyal eae7e58b20 Merge "Removing some unused container IDs" into tm-qpr-dev 2022-12-20 18:19:57 +00:00
Alex Chau 0d4f1ac30e folderChild icon and text size should follow the respective configuration
- Use mTypeIndex instead of always INDEX_LANDSCAPE or INDEX_DEFAULT to make sure they follow the workspcae icon/text size

Fix: 262446829
Test: DeviceProfileDumpTest
Change-Id: I9fc37b41114a34e35108330a8d599556bff77eef
2022-12-20 12:36:05 +00:00
Alex Chau 1e13cde01a Merge "Add logs to track app grid changes" into tm-qpr-dev am: dcafe99d42
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20782492

Change-Id: If6a96705a8c18fb2124f7a6ed5c788940b1d3369
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-20 11:50:21 +00:00
Alex Chau dcafe99d42 Merge "Add logs to track app grid changes" into tm-qpr-dev 2022-12-20 11:13:04 +00:00
Alex Chau 0bfdd134ee Merge "Only skip stash animation when going to/from Launcher" into tm-qpr-dev am: 44dd5b7b28
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20782490

Change-Id: Ie9f2222de708ed7c0e711fab0a1fa7637bb7c333
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-20 10:26:19 +00:00
Alex Chau 44dd5b7b28 Merge "Only skip stash animation when going to/from Launcher" into tm-qpr-dev 2022-12-20 09:32:04 +00:00
Bill Yi a3cb294470 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev am: c326b7849f -s ours
am skip reason: subject contains skip directive

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

Change-Id: I800fb723b655b5bb3c1c3ff868d5951654aa6710
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-20 06:14:30 +00:00
Bill Yi 31911fca90 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 10d62429ab -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ibcc132d0014e7d26500e6533c1136ae2133c9c48
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-20 06:14:07 +00:00
Bill Yi c326b7849f Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-20 06:00:39 +00:00
Ling Wo 8ba48c1e65 Expose getSearchBox from the HomeAllApps class
Doc: https://docs.google.com/document/d/1OlN-A3Z5_UjWk-QkxC4JaYWesFDNHkHTox94__rLmR0

Bug: b/255390519
Test: local testing
Change-Id: I72410035bbcfd2215815dbf6c3d6bd86d692b8c6
2022-12-20 04:13:59 +00:00
vadimt befcfa40b9 Not waiting for animations for Launcher clicks
Waiting for animations to finish can make the test wait for too long if there is an ongoing animation somewhere, for example, in an app we are trying to swipe from.

Test: presubmit
Bug: 256567004
Change-Id: Ida494128a18342bee3dbdae6d713c854c86912c1
2022-12-19 18:02:07 -08:00
Sebastián Franco ce7fb3a883 Merge "Fix IndexOutOfBoundsException in grid span lookup" into tm-qpr-dev am: b2acb96510
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20785398

Change-Id: I1ca2da4a399f364d2ee1d7186d7ffc5338914d7d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-19 22:38:28 +00:00
Sebastián Franco b2acb96510 Merge "Fix IndexOutOfBoundsException in grid span lookup" into tm-qpr-dev 2022-12-19 22:12:27 +00:00
Brian Isganitis 746b2243f9 Add flag for Taskbar education tooltip.
Test: Manual
Bug: 263157739
Change-Id: I1c427d250864db1b8dee58584d503908a0fd9c8d
2022-12-19 20:47:21 +00:00