Commit Graph

16456 Commits

Author SHA1 Message Date
Shikha Malhotra e3bfeced57 Merge "Updating visibility of some members for easier extensibility" 2022-05-20 12:05:28 +00:00
Pat Manning a8b8de1fa0 Bound drop target layout values to left and right. am: 3c0f4c156d am: 781c68b236
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18491881

Change-Id: I14acd17e473d0f2a081a90e41bfb1598f21c49d9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-20 00:48:56 +00:00
Anushree Ganjam 0d345e5e04 Add "incrementEventCountBy" function to OnboardingPrefs.
This will help to increment the count by a value rather than just by 1.

Bug: 231659198
Test: Manual
Change-Id: I180ab3bd622df3bee2a6cb2b0cd8793e07a4f114
2022-05-19 23:07:06 +00:00
Brian Isganitis b811a29b7d Remove obsolete TODO for verifying all apps on 2nd display.
It works \o/.

Test: No
Change-Id: I5b2c6c1b3bb656ad3d5bb21188ac9e9f8cdc0fec
2022-05-19 13:30:55 -07:00
Shikha Malhotra c487e1b4c5 Updating visibility of some members for easier extensibility
Bug: b/218186980
Test: Manual Testing that Launcher3 compiles and works
Change-Id: Id85486ef763ce9a04b83fef44542b2eb3e0e599d
2022-05-19 20:19:43 +00:00
Abhilasha Chahal ee14d4761a Add LAUNCHER_SYSTEM_SHORTCUT_APP_SHARE_TAP event
Bug: 233224567
Test: Manually verified the event in logs
Change-Id: Ie81ca8774adb241f1c8635444dad884f34f3929d
2022-05-19 19:21:45 +00:00
Pat Manning 3c0f4c156d Bound drop target layout values to left and right.
Test: manual
Fix: 232636570
Bug: 233225825
Change-Id: I388cb3407cb9f887ccc222f4804636f9f7651884
2022-05-19 18:48:14 +01:00
Sebastián Franco 3f1bed0ec0 Merge "Widget migration now supports widgets and repeated elements in the worskpace." into tm-qpr-dev am: ce213d3306 am: 17060be2aa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18442023

Change-Id: I077b499de6583011710221f959d8ad90c4fa07ec
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-19 03:34:03 +00:00
Luca Zuccarini 4051995e5d Merge "Additional polish for the NORMAL<->ALL_APPS transitions." into tm-dev am: 175fc66aa8 am: 22bb04bb77 am: a3719625f2 am: 1f6d6429bb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18375247

Change-Id: I6fd45122c75a14b0029dbc93bb8b91854eed9c98
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-19 02:05:55 +00:00
Sebastián Franco ce213d3306 Merge "Widget migration now supports widgets and repeated elements in the worskpace." into tm-qpr-dev 2022-05-18 23:27:24 +00:00
Sunny Goyal 77138a74d6 Merge "Adding support for extending back behavior in Launcher" into tm-dev am: a292987030 am: b81b13d590 am: 56a7c1f671 am: 1c369dbcde
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18187213

Change-Id: I3fe6a0b885c56a861e8b2de0fa3e6052aaa8702e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 22:14:18 +00:00
Luca Zuccarini 62161cfce7 Merge "Update the NORMAL<->ALL_APPS swipe transitions on phones." into tm-dev am: 3eb149b055 am: cf1dc294cb am: c3abf0043f am: 3ef21aba38
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18185506

Change-Id: I556c46b2899f2411fcde6bab95f623b8e058bdb4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 22:14:00 +00:00
Vinit Nayak 776912ae96 Merge "Report ITYPE_BOTTOM_MANDATORY_GESTURES insets for Taskbar" into tm-dev am: cfdb076d12 am: 2593347a28 am: 94543b6b13 am: 1017dd3b96
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18286602

Change-Id: I26122ce98f9169787aba85a0ed70371e9e0aa2a8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 22:13:34 +00:00
TreeHugger Robot ab2c551ab0 Merge "Log the reason why a WorkspaceItemInfo was removed" into tm-dev am: 8eaf87e77b am: 13d50111c6 am: fa19bc6d12 am: 9bb74be812
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18298829

Change-Id: I6b2421f3e3056269c3e14389d494895e8cbb6456
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 22:13:16 +00:00
Brandon Dayauon ac57bdeb66 Merge "Fix issue when preference screen title won't change depending on the device.." into tm-dev am: 1460a6a0fb am: cb406595ac am: 1aa8ef2249 am: 9a7e7fc530
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18235011

Change-Id: I024b4c07ee3f6b9bc459ab0598a7f790e529389d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 22:13:06 +00:00
TreeHugger Robot b22c10d9e1 Merge "Revert "Set mState = mCurrentStableState in onAnimationCancel()"" into tm-dev am: 4608bd00dc am: 64be3ba846 am: 6b67555e27 am: 465de0ada6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18344362

Change-Id: Ib34e07f57190473237568cb3a52da1faa223466d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 22:12:57 +00:00
Sebastian Franco 08788a939b Widget migration now supports widgets and repeated elements in the worskpace.
The widget migration was using the variable DbEntry.mIntent as an
id for calculating the difference between two workspaces but widgets
don't have that variable, it's always null. So that had created some
bugs.

Also, the function GridSizeMigrationTaskV2.calcDiff didn't accounted for
repeated icons or repeated widgets. It's not a big deal not account
for repeated icons, but repeated widgets can be usefull for the user,
so now calcDiff keeps repeated icons and widgets.

Fix: 229701468
Test: Add multiple icons and widgets in the workspace and change the
grid size, this code only runs after the first time you change the
grid size, so try a couple of times. It should keep the widgets and
icons, even if they are repeated.

Change-Id: I5812445cec8364d8cc57cbcc3f1ae04ba9099932
2022-05-18 17:10:11 +00:00
Luca Zuccarini 175fc66aa8 Merge "Additional polish for the NORMAL<->ALL_APPS transitions." into tm-dev 2022-05-18 14:21:27 +00:00
Abhilasha Chahal e2aca3e664 Add type TYPE_ADD_TO_HOME_CONFIRMATION to AbstractFloatingView
Test: Manually verified that the Floating view appears
Bug: 217360015
Change-Id: Id9edd3f9c2ef06ece4f541830c2080aeed11f1b1

Change-Id: I7f89a191ff55bcc03ec70c49aea659188083f0dd
2022-05-18 11:32:51 +00:00
Sunny Goyal a292987030 Merge "Adding support for extending back behavior in Launcher" into tm-dev 2022-05-17 23:02:50 +00:00
Luca Zuccarini 3eb149b055 Merge "Update the NORMAL<->ALL_APPS swipe transitions on phones." into tm-dev 2022-05-17 16:06:27 +00:00
Vinit Nayak cfdb076d12 Merge "Report ITYPE_BOTTOM_MANDATORY_GESTURES insets for Taskbar" into tm-dev 2022-05-17 13:56:51 +00:00
TreeHugger Robot 8eaf87e77b Merge "Log the reason why a WorkspaceItemInfo was removed" into tm-dev 2022-05-17 05:01:15 +00:00
Vinit Nayak 2cb5cb5d00 Report ITYPE_BOTTOM_MANDATORY_GESTURES insets for Taskbar
Bug: 205493938
Change-Id: I196bc52c1bec75b5442f3546f466799ba9c3831b
2022-05-16 21:38:28 -07:00
Brandon Dayauon 1460a6a0fb Merge "Fix issue when preference screen title won't change depending on the device.." into tm-dev 2022-05-16 22:47:17 +00:00
Sunny Goyal 3f2637faee Adding support for extending back behavior in Launcher
Bug: 231224820
Test: Manual
Change-Id: I9accc30c01dce5f6920b611cfeed9fa0584d2846
2022-05-16 14:40:19 -07:00
Pinyao Ting 6a41d56b50 Log the reason why a WorkspaceItemInfo was removed
In the past we've seen a WorkspaceItem disappeared from the workspace
but wasn't able to determine why it was removed. This CL includes the
reason why it was removed in the error log, which hopefully would help
us debugging similar issues in the future.

Bug: 231239260
Test: make
Change-Id: Iba3d57568c9b3e011a6b65b26f0d4170d42fe1a5
2022-05-16 20:17:47 +00:00
TreeHugger Robot 4608bd00dc Merge "Revert "Set mState = mCurrentStableState in onAnimationCancel()"" into tm-dev 2022-05-16 18:15:14 +00:00
Brandon Dayauon 303b4e8aae Fix issue when preference screen title won't change depending on the device..
previously it defaults to just "Search your phone"
Now it correctly displays Phone/Tablet

Before: https://screenshot.googleplex.com/3PJrsP9mGvwMr98
After: https://screenshot.googleplex.com/B2nnUQHeHmEXXPd

Bug: 231611501
Change-Id: I49eab7e827ce4bb31a2722fbf21c244f98145907
2022-05-16 10:25:12 -07:00
Stefan Andonian 83bc5f5050 Change accessibility announcement for workspace from "Pixel Launcher" to "Home".
Bug: 228410736
Test: Verified correct talkback announcements.
Change-Id: Ic0a5295cde3cd23d2fc5a6fcd19b6cf8e0f3e386
2022-05-16 16:54:51 +00:00
Hyunyoung Song ef4da349f8 Merge "Add latency tracking for aiai" into tm-dev 2022-05-15 06:56:01 +00:00
Hyunyoung Song 8536fb78c7 Merge "App row padding is now consistent for all grid sizes. Also fix when 2x2 allApp icons get super big." into tm-dev 2022-05-15 06:08:18 +00:00
Brandon Dayauon 07ca884eea App row padding is now consistent for all grid sizes. Also fix when 2x2 allApp icons get super big.
Added consistent padding to each app row.

Bug: 229789736
Bug: 229791507
Bug: 228320417
Bug: 230870213
Test: Manual on Raven

Change-Id: Ice1c8be361f009994a8e0960a30da04fc1c0c218
2022-05-13 17:10:15 -07:00
Schneider Victor-tulias 9c7551a9c9 Merge "Coordinate the SUW All Set page first reveal with the taskbar unstash to hotseat animation." into tm-dev 2022-05-13 22:33:21 +00:00
Luca Zuccarini 1c89ee8cb1 Additional polish for the NORMAL<->ALL_APPS transitions.
The depth of ALL_APPS is set to 2 because in the legacy transitions the
swap happens at 0.5. The depth controller bounds the value to 1, so for
the second half of the animation the value is always 1. Because of this,
in order to have the right timing during the blur and scale we cap the
interpolator to 0.5.

Workspace fade is also removed, per spec.

Bug: 232418544
Test: manual
Change-Id: Idfd92c8b2b571ad911a0a5a59d39c5911e4131e4
2022-05-13 22:23:42 +00:00
TreeHugger Robot 9cf0aa7418 Merge "Extra checks to find the source of flaky tests" into tm-dev 2022-05-13 19:51:45 +00:00
Luca Zuccarini ea948c2b33 Update the NORMAL<->ALL_APPS swipe transitions on phones.
Bug: 144877924
Test: manual
Change-Id: I47d4cdedea69b921711c33e2905bc429e7d1db35
2022-05-13 19:09:17 +00:00
Schneider Victor-tulias 766f2fc346 Coordinate the SUW All Set page first reveal with the taskbar unstash to hotseat animation.
Bug: 220096988
Test: manual
Change-Id: I1f517b322e5c18f825be8b51ebb560a4a195b666
2022-05-13 11:17:10 -07:00
Alex Chau 69230bbb29 Merge "Consider padding when measuring AllApps in SecondaryDragLayer" into tm-dev 2022-05-13 16:08:18 +00:00
TreeHugger Robot 6c2c619d35 Merge "Add non null check on mViewPager" into tm-dev 2022-05-13 16:06:49 +00:00
Sunny Goyal 3c354421c8 Extra checks to find the source of flaky tests
Bug: 200572078
Test: Presubmit
Change-Id: Ie927f476e3a2c1b5aee84e33bf510bb635e59071
2022-05-13 09:02:02 -07:00
kholoud mohamed 70d63456d3 Add non null check on mViewPager
Bug: 232034849
Test: N/A
Change-Id: I304088baf84dd6f65e096f610ebe11df036ae8d3
2022-05-13 14:33:50 +01:00
Alex Chau 9b5548c56d Consider padding when measuring AllApps in SecondaryDragLayer
Fix: 223595498
Test: adb shell am start -a android.intent.action.MAIN -c android.intent.category.SECONDARY_HOME
Change-Id: I2754eb08daf2657e502a22bf7308561f5d0c9a7f
2022-05-13 11:08:39 +00:00
Alex Chau 19d43e0511 Skip onSharedPreferenceChanged if mIgnoreAutoRotateSettings is true in RotationHelper
Test: manual with DeviceProfile changed followed by settings change
Bug: 232081262
Change-Id: Ibc02bbc7fc015db9511960b565e860e6cb5b6246
2022-05-13 11:33:21 +01:00
Alex Chau 7c89ac5d8c Merge "Add a scrim to AllApps and Widgets" into tm-dev 2022-05-12 20:09:06 +00:00
Alex Chau 8a7617f168 Merge "Fix slow page animations on large devices" into tm-dev 2022-05-12 19:08:41 +00:00
Pat Manning 8909fc2dcb Merge "Update drop target button alignment across devices." into tm-dev 2022-05-12 18:41:54 +00:00
James O'Leary fe435ad44e Update app icon shadows
Allow use of white shadow, set radius to 1.0 and offset to 0.
Use 100% and 20% alpha, instead of 70% and 50%.
(nets out to same effect)
Make ambient and key shadows equivalent: there are deterministic
formulas for what contrast a shadow will create, and those formulas
were used for the spec. Ad-hoc attempts to try to increase visibility
are no longer needed and don't align with design intent

Bug: 213314628
Test: Manual inspection at runtime
Change-Id: Ie12d3d05488e16fea94e91be16c25448f450a44d
2022-05-12 18:28:39 +00:00
Sunny Goyal d7281d097d Merge "Adding support for easily extending Launcher DragAndDrop support" into tm-dev 2022-05-12 17:00:49 +00:00
James O'Leary 508fbbff56 Merge "Separate color into app color and dot color; specify dot color" into tm-dev 2022-05-12 16:37:39 +00:00