Commit Graph

53916 Commits

Author SHA1 Message Date
Benno Lin 2e35f5152d Support multi users scenarios in Tapl
Tapl uses ContentProvider to get information from Launcher.
By default, it uses system user, who usually spwans the process
of instrumented tests, to send requests. Therefore, it can't get
the information of secondary user's Launcher process.

To solve the problem, the CL proposes to allow tests providing
UserInfo to Tapl, so that Tapl can use the right user's context
to get the test information. For more details, please refer to
go/multi-users-waiting-dd.

Test: https://android-build.googleplex.com/builds/abtd/run/L62400000957107134
Bug: 254402688
Change-Id: I90b1069de31e979138683049586bd87a7e7d813a
2022-11-01 14:36:24 +00:00
TreeHugger Robot b03ea94924 Merge "Set autoSizeMaxTextSize for digital wellbeing toast" into tm-qpr-dev 2022-11-01 14:34:48 +00:00
Luca Zuccarini a20c6df786 Merge "Make sure that PropertySetter applies the final state." into tm-qpr-dev am: 938dde8111
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20298523

Change-Id: Iea1793aa1d7f0f7f037f36fe7b3b3318e9be49d3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-01 13:04:04 +00:00
Luca Zuccarini 938dde8111 Merge "Make sure that PropertySetter applies the final state." into tm-qpr-dev 2022-11-01 12:28:54 +00:00
TreeHugger Robot 83d09d9aea Merge "Change padding of widget recommendation table for correct size" into tm-qpr-dev am: 2022681cc2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20114323

Change-Id: I359b4965903907a00fb3980c30687088965115aa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-01 10:18:55 +00:00
TreeHugger Robot 2022681cc2 Merge "Change padding of widget recommendation table for correct size" into tm-qpr-dev 2022-11-01 09:43:37 +00:00
TreeHugger Robot 004c11d7d4 Merge "Move DropTargetBar to bottom" into tm-qpr-dev am: 86dc1edbf8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20283568

Change-Id: Ia9c7815cf47463ebaba1170e1c5bc27c8bae8f7c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-01 07:52:04 +00:00
TreeHugger Robot 86dc1edbf8 Merge "Move DropTargetBar to bottom" into tm-qpr-dev 2022-11-01 07:21:31 +00:00
TreeHugger Robot b4293273df Merge "Add dot pagination in workspace" into tm-qpr-dev am: d20e6676b1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20251840

Change-Id: Icaba792ef48f244f08f35bb68a87db217b0739b8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-01 04:53:10 +00:00
TreeHugger Robot d20e6676b1 Merge "Add dot pagination in workspace" into tm-qpr-dev 2022-11-01 04:33:29 +00:00
Tracy Zhou ba0b5952c8 Support split from fullscreen with shortcuts
Recording: https://recall.googleplex.com/projects/f46cfe9c-8076-4efe-bf8a-b1cc4f1f5e1b/sessions/978a3a55-2982-4026-9726-2a73cb694258

TODO: improve transition animation

Bug: 246661484
Test: manual
Change-Id: Id0d1aec0685bc18f4b273f8e466996efc1d9a3d8
Merged-In: Id0d1aec0685bc18f4b273f8e466996efc1d9a3d8
2022-11-01 04:30:39 +00:00
TreeHugger Robot f86b82df6a Merge "Add app window thresholds for transient taskbar." into tm-qpr-dev am: 59228a6511
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20212939

Change-Id: I9b34d1b7428724caecda5b67ae91560344a6a746
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-01 02:09:32 +00:00
TreeHugger Robot 59228a6511 Merge "Add app window thresholds for transient taskbar." into tm-qpr-dev 2022-11-01 01:44:14 +00:00
Sunny Goyal 4f5d276233 Merge "Adding screenrecord for debug failing test" into tm-qpr-dev am: c93eb630e6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20330482

Change-Id: Ia0aca60a4bd8f8fd14d7eff2f17f53012234dc2f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-01 00:24:59 +00:00
Sunny Goyal c93eb630e6 Merge "Adding screenrecord for debug failing test" into tm-qpr-dev 2022-10-31 23:53:43 +00:00
Sebastián Franco c55ae777db Merge "Decoupling finding the solution and animation of a reorder in CellLayout" into tm-qpr-dev am: 0c3f990b34
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20284695

Change-Id: Ib528d4b9ee676cd2da976eeaeaa5f82c60fa2ab7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-31 23:39:14 +00:00
Sebastián Franco 0c3f990b34 Merge "Decoupling finding the solution and animation of a reorder in CellLayout" into tm-qpr-dev 2022-10-31 23:02:44 +00:00
Federico Baron 8bf1bca59a Tapping on a "folder" on the Homescreen right after returning home results in it starting to open, then canceling.
Fix: 243531200, 253264925
Test: manual
Change-Id: I180300e8333536346ad07ce7bc9956d3b84d82e6
2022-10-31 15:12:17 -07:00
Holly Jiuyu Sun 1acb878078 Merge "Log sub event type to latency logger." into tm-qpr-dev am: c5f43eb9f7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20296334

Change-Id: Ib77b601b328cdc102beb57cb8c4c0674e9a4cd30
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-31 20:25:58 +00:00
Sunny Goyal d6e9c601d8 Adding screenrecord for debug failing test
Bug: 256659409
Test: n/a
Change-Id: I1d804a92f81069df8d86f5b4ee2f21179f390d98
2022-10-31 13:25:17 -07:00
Holly Jiuyu Sun c5f43eb9f7 Merge "Log sub event type to latency logger." into tm-qpr-dev 2022-10-31 19:28:27 +00:00
Mady Mellor 10856068bc Remove floating task button from taskbar
Not POR to have a button in taskbar for this so removing this bit
of the prototype.

Test: manual - enable floating tasks on tablet and check if there's
               a button in taskbar (there shouldn't be).
Bug: 237678727
Change-Id: Ifb57f6528946f89592649afda84101e4f9cbb198
2022-10-31 11:56:14 -07:00
Pinyao Ting 0bae1f55e3 Grant Launcher permission to access AppSearch
This CL grants aosp launcher the permission to access appsearch to fetch
data that are explicitly made visible to the app that uses the HOME
role. One concrete example are shortcuts, with this CL aosp launchers
will now have the permission to query shortcuts directly from appsearch.

Bug: 254383738
Test: manual
Change-Id: I1a2260c7bde0d52fedff38ae56572101d51abdef
2022-10-31 10:51:31 -07:00
Sebastian Franco c8392ea881 Return the right radius to start reorder when dragging a Widget
Currently the radius is only one cell but in the case of a widget
we want the radius of the whole widget.

Fix: 255421400
Test: this case only happens when dagging comming from outside of the cell layuot in the corners dragging a widget
Change-Id: I3fe294d18283dbecb27df1a2d4748dd44db9b956
2022-10-31 10:20:53 -07:00
Sunny Goyal d23fc2405f Merge "Fixing flakyness in widget tests" into tm-qpr-dev am: 276e72c249
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20312118

Change-Id: I94f52325e89138ecdd9352e6b18e350a6b44ad94
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-31 16:53:12 +00:00
Sunny Goyal 276e72c249 Merge "Fixing flakyness in widget tests" into tm-qpr-dev 2022-10-31 16:23:08 +00:00
Holly Jiuyu Sun c9196b45d4 Merge "[QL-v2] Use subtitle as hint if title doesn't apply." into tm-qpr-dev am: 35b0378d45
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20142072

Change-Id: I35ea0bf09957566e42319c418977811c96a5e87c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-28 20:34:38 +00:00
Holly Jiuyu Sun 35b0378d45 Merge "[QL-v2] Use subtitle as hint if title doesn't apply." into tm-qpr-dev 2022-10-28 19:35:33 +00:00
Sunny Goyal 1d76159de4 Fixing flakyness in widget tests
For some predicted app widgets, the layout happens before the recyclerView
can layout completely (because of preview layout invalidation), causing the
scroll cache to get in a wrong state.
Checking for scroll cache validity everytime instead of only during
data changes

Bug: 255797215
Test: Verified by hardcoing the chrome widget as predicted widget
Change-Id: Id2c68560baa45de89e08c53bdb9ee6820eab68c4
2022-10-28 12:25:04 -07:00
Sebastian Franco 53a15a4b1f Decoupling finding the solution and animation of a reorder in CellLayout
Adding new functions to CellLayout, two of them return a solution
(calculateReorder, getSimpleReorder) and the other one takes a
solution and animates that solution (void performReorder) and it can
either submit the solution or just show it for a preview.

Right now this two things are done under the same function:
int[] performReorder. The need to separate this two functions is
because to add this functionality b/188081026 which needs to find
soluion without animation and animation solutions that can be
calculated in another place.

Bug: 188081026
Test: atest ReorderWidgets
Change-Id: Ib519d4346f58f9b55aff5008cd3ccbcfe8443d2d
2022-10-28 11:55:50 -07:00
Alex Chau 945c312eb7 Set autoSizeMaxTextSize for digital wellbeing toast
Fix: 253970740
Test: Enable app timer with normal display size and font size
Test: Enable app timer with largest display size and font size
Change-Id: I9a795dcf709a15c6e2c0eb24e31f09c84ea8eb2e
2022-10-28 16:03:24 +01:00
Jeremy Sim 11d815d752 Merge "Add transitions to DWB banner when app thumbnail progresses from Overview tile to fullscreen" into tm-qpr-dev am: 4972822c60
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20115063

Change-Id: I00e7a4b85ff362573557c38517eac0eb919c6086
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-28 00:53:18 +00:00
Jeremy Sim 570ddadcf9 Change tablet split confirm timing slightly
This patch changes the split confirm animation on tablets to 500ms. Based on UX discussion at b/241126570.

Fixes: 241126570
Test: Manual
Change-Id: I1de0e0f8882db059de09685f7756343d8a387b4f
2022-10-27 16:43:07 -07:00
Jeremy Sim 4972822c60 Merge "Add transitions to DWB banner when app thumbnail progresses from Overview tile to fullscreen" into tm-qpr-dev 2022-10-27 23:38:31 +00:00
Holly Sun 4d6fa05c83 Log sub event type to latency logger.
Bug: 255355348
Test: build
Change-Id: Idac85b5e31e2abdd98f6fd1bed4ec687d8bb5cd5
2022-10-27 16:37:18 -07:00
Vinit Nayak 21d8230b90 Prevent rotating TaskMenuViewWithArrow for large screen
* Only attempt to rotate TaskMenuView on
fake rotation

Fixes: 254198019
Test: Rotation on large screen w/ TaskMenu open doesn't
crash

Change-Id: If8ae8c018e9cc8cb80a2ec3313f5e8d0fda2e148
2022-10-27 22:03:00 +00:00
Sebastian Franco 285b749bcf Wait in ReorderWidgets test for the workapce to load after changing it.
Fix: 252860608
Test: atest ReorderWidgets
Change-Id: Idf99188837a475d0327174e264ab1d23d646d75d
2022-10-27 14:42:19 -07:00
Jon Miranda b0e063eb4e Merge "Only draw transient taskbar background for transient taskbar" into tm-qpr-dev am: 0c1714bb45
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20290840

Change-Id: Ie515474f64ea8ac724cc94b946e9eb8cc86ef991
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-27 21:31:30 +00:00
Federico Baron 626d51c68c Move DropTargetBar to bottom
The DropTargetBar has "Remove" and "Uninstall" buttons for workspace edit mode. We are moving them to the bottom for workspace home gardening

Bug: 251259222
Test: Turn on flag HOME_GARDENING_WORKSPACE_BUTTONS and enter spring loaded mode (edit workspace), notice the buttons are now at the bottom
Change-Id: I739162bdd5764dd8367a63a67fae0fe5c7329b0a
2022-10-27 14:18:00 -07:00
Jon Miranda 0c1714bb45 Merge "Only draw transient taskbar background for transient taskbar" into tm-qpr-dev 2022-10-27 20:42:21 +00:00
Holly Sun 786bdce214 [QL-v2] Add logging for quick launch.
Move logging to DeviceSearchAdapterProvider to take advantage of View so we can log more info attached to the quick launch event. Another reason is currently we can't dynamically change the enter key icon so we can't really distinguish whether it's a quick search or quick launch using the icon (we are working with gboard team to fix this issue).

Bug: 256010819
Test: see wwlogging https://paste.googleplex.com/5668268562972672
Change-Id: I38aad2ae97c9b372f3d76222a82de45fc3bf3eed
2022-10-27 13:18:19 -07:00
Sihua Ma fe121a99c6 Merge "Created LauncherWidgetHolder as a wrapper for LauncherAppWidgetHost" into tm-qpr-dev am: 17137e8bce
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20106227

Change-Id: Id6e14023d7c3ca6440517165fe10186601249083
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-27 18:24:31 +00:00
Sihua Ma 17137e8bce Merge "Created LauncherWidgetHolder as a wrapper for LauncherAppWidgetHost" into tm-qpr-dev 2022-10-27 17:53:28 +00:00
Jon Miranda f80b5f50a3 Only draw transient taskbar background for transient taskbar
Bug: 252905206
Fix: 255925607
Test: disable flag, view taskbar
Change-Id: I1734fa238e3c07f5da6a03659c1079eb1b6b7277
2022-10-27 15:27:38 +00:00
Alex Chau 37ccd255b7 Merge "Update pullback animation to use reset FloatProperty for non-active state" into tm-qpr-dev am: b3ab6f5014
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19949846

Change-Id: I9725ae0833648484589bb663b94fd93994a626bf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-27 13:17:00 +00:00
Alex Chau b3ab6f5014 Merge "Update pullback animation to use reset FloatProperty for non-active state" into tm-qpr-dev 2022-10-27 12:38:15 +00:00
Luca Zuccarini 05d19dc261 Make sure that PropertySetter applies the final state.
In some tests with animations disabled, NO_ANIM_PROPERTY_SETTER wasn't
applying the correct final value. See ag/20139786 for more context.

Bug: 251769927
Test: see other CL in topic, plus manual
Change-Id: I296de1a0d64768c43608839745cc7e955ecd2076
2022-10-27 09:31:57 +00:00
Johannes Gallmann b686672354 Merge "Extracting ViewCapture into common Library" into tm-qpr-dev am: 989ffba0ec
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20112193

Change-Id: I113621c6281f869b8a07404bcf3f6ad0f961ad87
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-27 07:56:51 +00:00
Johannes Gallmann 989ffba0ec Merge "Extracting ViewCapture into common Library" into tm-qpr-dev 2022-10-27 07:30:11 +00:00
Saumya Prakash ccb46bd18f Merge "Revert "Removed disabled overview actions at end of scroll"" into tm-qpr-dev am: 5db9942c61
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20293338

Change-Id: I58477e96b37b2b3104837b232550dc2ff60d9690
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-26 22:36:14 +00:00