Commit Graph

14582 Commits

Author SHA1 Message Date
Sunny Goyal 54fa110bba Removing some unnecessary interfaces and merging them to ActivityContext
Bug: 259733681
Test: Everything compiles
Change-Id: If6b530f6e589a851cf8554f5de0849843bd66dd4
2022-12-08 10:15:55 -08:00
TreeHugger Robot 1c744c996c Merge "Remove feature flags and use search config flags." into tm-qpr-dev 2022-12-07 22:58:39 +00:00
TreeHugger Robot 13b432cd9d Merge "Support right click to bring up app menu and actions" into tm-qpr-dev 2022-12-07 20:00:33 +00:00
Andy Wickham abb18ea62a Merge "Fixes for floating search bar (e.g. background protection)." into tm-qpr-dev 2022-12-07 19:08:53 +00:00
Jon Miranda 6ba531d1aa Merge "Turn flag on by default: ENABLE_TASKBAR_REVISED_THRESHOLDS" into tm-qpr-dev 2022-12-07 17:33:53 +00:00
TreeHugger Robot 5e0d7ae019 Merge "Revert "Revert "Enable taskbar in overview by default""" into tm-qpr-dev 2022-12-07 17:14:15 +00:00
Fengjiang Li 9f90efb39e Support right click to bring up app menu and actions
Test: https://b.corp.google.com/action/issues/250092449/attachments/40159735?download=true
Change-Id: I159005cc982478896d442bb2675ccb1bb7f0322e
2022-12-07 08:48:16 -08:00
Andy Wickham 493831af1a Fixes for floating search bar (e.g. background protection).
- Adds background protection for the search bar
 - Views animating based on keyboard now support manual swipes.

Bug: 213954333
Bug: 259004115
Bug: 251460671
Test: Manual
Change-Id: I055766126fb46a8e8b48907e442c9e54aaa4badf
2022-12-06 17:59:53 -08:00
Alex Chau 5dec2aceb1 Revert "Revert "Enable taskbar in overview by default""
This reverts commit 6f0b0fe742.

Bug: 245320601
Reason for revert: Re-land "Enable taskbar in overview by default"

Change-Id: Ie722a608d6bd7168744ffc81c156e4307d4c1d2d
2022-12-06 19:45:29 +00:00
Holly Sun 581aa03806 Remove feature flags and use search config flags.
Bug: 210661150
Test: manual
Change-Id: I6aa176895f80f31840570ce2c0ecbfbfb11079a1
2022-12-06 11:31:31 -08:00
Sebastián Franco 9adbab96b7 Merge "Creating a new alarm when drag X,Y change" into tm-qpr-dev 2022-12-06 17:17:26 +00:00
Tony Wickham ef8677169c Merge "Add feature flag to force taskbar to be persistent." into tm-qpr-dev 2022-12-06 06:12:23 +00:00
Tony Wickham 7286c5be98 Add feature flag to force taskbar to be persistent.
This will allow us to test taskbar pinning before the entrypoint for
such a setting is finalized.

Test: manual, TODO: will need to update TaplTestsTaskbar to account for
this mode
Flag: FORCE_PERSISTENT_TASKBAR [off]
Bug: 258604917

Change-Id: I4535978563ffbe9a6cc6ece7720cdb75e787ff44
2022-12-06 00:51:46 +00:00
Sebastian Franco 5356ff955c Creating a new alarm when drag X,Y change
If the user is changing the X and Y of the reorder, wich requires
the user to move at least one Workspace cell from the previous
position, then it doesn't make sense to wait for the previous alarm to finish
to start a new reorder.

Also, I added a new test to run on foldable devices.

Fix: 259995663
Fix: 259295374
Test: atest ReorderWidgets (it mostly fails on postsubmit)
Test: modify ReorderWidgets.fullReorder to run 20 times and it should work, before the chagne it would fail.
Change-Id: Ic6b436ea1088f8092c849e9791862947e9035c9f
2022-12-05 16:37:45 -08:00
TreeHugger Robot c4d6dee069 Merge "Cancel gestures on launcher destroy" into tm-qpr-dev 2022-12-05 20:25:47 +00:00
TreeHugger Robot 33c348f573 Merge "Make grid size migration less confusing for users." into tm-qpr-dev 2022-12-05 18:19:59 +00:00
Schneider Victor-tulias 65dda6d03e Cancel gestures on launcher destroy
A wide variety of gesture navigation bugs were caused if launcher happened to be recreated mid-gesture and we didn't handle it gracefully. Updated lifecycle callbacks to immediately cancel the ongoing gesture if launcher is destroyed.

Fixes: 244593270
Fixes: 257976590
Test: forcefully(programmatically) recreate on every other gesture nav handle touch down; check that following gestures are not broken and animations are not frozen
Change-Id: Ia8e936e26a42cfe26fc6bcd9eefb25d37bc08749
2022-12-05 08:11:50 -08:00
Sihua Ma 7b467addea Merge "Replace title of system services with more specific ones" into tm-qpr-dev 2022-12-03 06:26:18 +00:00
Sebastián Franco fba141a3dc Merge "Adding screen ID parameter in CellLayoutLayoutParams" into tm-qpr-dev 2022-12-03 01:32:25 +00:00
Becky Qiu c99da62f6f Merge "[Toast] Add a new type for AppSearch latency logging." into tm-qpr-dev 2022-12-03 01:23:33 +00:00
Sebastián Franco 9f775cab1a Merge "Preventing the text on ButtonDropTarget.resizeTextToFit size to go below 0" into tm-qpr-dev 2022-12-03 01:18:02 +00:00
Sebastian Franco 5bf936ac16 Preventing the text on ButtonDropTarget.resizeTextToFit size to go below 0
Bug: 260984829
Test: atest HomeScreenEditStateImageTest
Change-Id: I4aba76de512aedf5b4c921593fe43099700eb773
2022-12-02 14:05:24 -08:00
Sebastian Franco 2ceb3b5088 Adding screen ID parameter in CellLayoutLayoutParams
Bug: 188081026
Test: launcher compiles, this test doesn't change existing logic only the model
Change-Id: I7bcf6452d5ecb9b50914defc311ad06839220c92
2022-12-02 13:40:34 -08:00
Pinyao Ting cc90d1b767 Make grid size migration less confusing for users.
Grid size migration is a confusing experience for users because the
content of the grid is not predicatable to the user. Part of the reason
was the dedupe logic which merges items from new grid into old grid,
this mean if user removes an item, change to another grid and go back,
user will see that same item re-appears.

This CL keeps the content of target grid the same as source gird, i.e
user will will get the exact same set of app icons/shortcuts/folders and
widgets (if size permits) across grid sizes. The only difference being
their placement in the grid.

Bug: 256859723
Test: atest GridSizeMigrationUtilTest
Change-Id: I1732c91e441ad44bc43e0a943566a83563d12b07
2022-12-02 13:33:04 -08:00
Brian Isganitis a5953002d4 Merge "Reduce top padding of Taskbar's All Apps tray." into tm-qpr-dev 2022-12-02 21:10:55 +00:00
Jon Miranda 01e90b7787 Merge "Add transient taskbar sizing for twoPanel devices." into tm-qpr-dev 2022-12-02 18:58:08 +00:00
TreeHugger Robot cfa199537b Merge "Removing SearchActionItemInfo" into tm-qpr-dev 2022-12-02 17:31:25 +00:00
Anushree Ganjam d7898e6083 Merge "Use CopyOnWriteArrayList to avoid ConcurrentModificationException." into tm-qpr-dev 2022-12-02 17:25:36 +00:00
Anushree Ganjam 51d05b9888 Use CopyOnWriteArrayList to avoid ConcurrentModificationException.
Bug: 204781396
Test: Manual
Change-Id: I5a28d34a5e404d2a4a4647c94dff632e02d57717
2022-12-02 03:04:11 +00:00
Becky Qiu 1aff9578fd [Toast] Add a new type for AppSearch latency logging.
Bug: 261075521
Test: local
Change-Id: If480d326349027d0fe6e1208c68e49f1900cd3bf
2022-12-01 16:40:06 -08:00
Jon Miranda a4aaf1aced Add transient taskbar sizing for twoPanel devices.
Bug: 259712417
Test: on two panel device, on tablet device
Change-Id: Iae273b6bbfb254288c234aa5882f39eb0b6a88b1
2022-12-01 16:28:29 -08:00
Sihua Ma 8820a2181b Replace title of system services with more specific ones
Before: https://screenshot.googleplex.com/8f5tGuw8c8zi6nX
Now: https://screenshot.googleplex.com/4SXGMoiZmYJ3auF

Fix: 258307358
Test: Manual
Change-Id: I549cbdbb99f0168c87cc1c122cad9aceb3231591
2022-12-01 14:37:47 -08:00
Ats Jenk 8121e0d8b1 Add a flag to not disable back gesture in launcher
Desktop mode prototypes enable freeform tasks on top of launcher.
Launcher is still partially visible in the back which means that
launcher will disable back gesture for the freeform tasks.

When desktop mode prototype 1 or 2 is enabled, skip disabling the back
gesture on launcher.

Bug: 259280363
Test: manual, enable desktop mode and launch an app, try back gesture
  from edge

Change-Id: I1d5eb81c7b28fb452c9566e358d77a5b2c19d450
2022-12-01 14:06:02 -08:00
Becky Qiu 5c46bea3bc Merge "[Toast] Remove feature flag for rich answer, use all apps flag instead." into tm-qpr-dev 2022-12-01 02:00:31 +00:00
Brian Isganitis deac0d529a Reduce top padding of Taskbar's All Apps tray.
The top padding looks too high because the code is assuming we have a
search bar at the top of the bottom sheet. Until we implement search, we
should temporarily reduce padding for the taskbar implementation.

Before:
  - No tabs: https://screenshot.googleplex.com/AAPdR5nbwepWQ82.png
  - Tabs: https://screenshot.googleplex.com/3DnQp6PKhqXyRag.png

After:
  - No tabs: https://screenshot.googleplex.com/A8enwnSs8r78ccj.png
  - Tabs: https://screenshot.googleplex.com/A3fAy2bXgmSPrG9.png

Test: Manual
Bug: 216683257
Change-Id: Ie0837acc3aed162b9428a209962be2a102c515c8
2022-12-01 00:21:28 +00:00
Sunny Goyal 9a616213e1 Removing SearchActionItemInfo
> Instead introducing an interface for handling click events
> Linking this interface to other UI which handle clicks

Bug: 259733681
Test: Presubmit and verified manually
Change-Id: I9cbf2d009d64254f513deb909a151e46e860d039
2022-11-30 10:59:07 -08:00
TreeHugger Robot a7fafd6976 Merge "Catch exception to prevent crash." into tm-qpr-dev 2022-11-29 22:40:00 +00:00
TreeHugger Robot 575048df99 Merge "Add flags for new restore icon treatment" into tm-qpr-dev 2022-11-29 20:11:11 +00:00
Jon Miranda 6f5062e64c Turn flag on by default: ENABLE_TASKBAR_REVISED_THRESHOLDS
Bug: 260002412
Test: manual
Change-Id: I2b5f2a434f5768c1834fa15d814f001e13b719da
2022-11-29 11:14:12 -08:00
Becky Qiu 9820d4746d [Toast] Remove feature flag for rich answer, use all apps flag instead.
This is to prepare for the server launch.

Bug: 241295640, 256693300
Test: local
Change-Id: Idf1fe2b05e998dbab790d3dc1a7ea63f9daa2df7
2022-11-29 11:01:58 -08:00
Federico Baron 791c9cbc37 Add flags for new restore icon treatment
We're updating the way apps look when they're pending, downloading, and installing. It will look like this mock https://docs.google.com/presentation/d/1V9-1C3mJ3zRGsuzzzYExisr9vLYecgADa1FucMoW_aw/edit#slide=id.g16c002f332d_1_0

Bug: 254858049
Test: N/A
Change-Id: I4403f857c9c1fc24c65223886008252462209804
2022-11-29 18:39:55 +00:00
Luca Zuccarini 6e192cd7f8 Merge "Add support for multiple focus listeners to ExtendedEditText." into tm-qpr-dev 2022-11-29 13:21:38 +00:00
TreeHugger Robot 1330244f0a Merge "Fixing shortcuts not getting theme icons" into tm-qpr-dev 2022-11-29 01:10:38 +00:00
TreeHugger Robot aa14bd45c4 Merge "Add feature flag to control whether to inject fallback app results when AiAi fails to return app corpus results." into tm-qpr-dev 2022-11-29 00:37:53 +00:00
Sunny Goyal ce4896cff5 Fixing shortcuts not getting theme icons
Bug: 238650110
Test: Updated ThemeIconsTest
Change-Id: I803cd6eefa4e393bf19901a44712622adac7f4b1
2022-11-28 09:48:50 -08:00
Thales Lima b0ed7dae63 Merge "Fix test and DeviceProfile dump" into tm-qpr-dev 2022-11-24 11:32:56 +00:00
Holly Sun 259723de32 Catch exception to prevent crash.
Bug: 258234624
Test: QA verify
Change-Id: I31df77b33f19426d136673d1ce9866fa6e60729c
2022-11-22 20:58:36 -08:00
Becky Qiu b96e084557 Merge "[Toast] Add a feature flag for rich answer" into tm-qpr-dev 2022-11-23 01:10:10 +00:00
TreeHugger Robot 691c6e511f Merge changes from topic "revert-20479526-revert-20427045-258023561-BPDASTWITO-FBDWZBDEFC" into tm-qpr-dev
* changes:
  Fixing the revert by not continuing the reorder if the solution is null.
  Revert "Revert "Reorder widgets no longer overlaps when no space..."
2022-11-22 21:18:42 +00:00
Sihua Ma 09f04d34a3 Merge "Adding the flag for putting widget host in the background" into tm-qpr-dev 2022-11-22 19:22:09 +00:00