Commit Graph
5223 Commits
Author SHA1 Message Date
Alex Chau 67a3f2a0e0 Merge "Use PersistedTaskSnapshotData to calculate TaskView size" into sc-dev am: 0bd7c9bf46
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13562502

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I312820b774cfdc0a946216e9c50e3d787d7809ff
2021-02-18 21:42:31 +00:00
Alex Chau 0bd7c9bf46 Merge "Use PersistedTaskSnapshotData to calculate TaskView size" into sc-dev 2021-02-18 21:15:10 +00:00
Sunny Goyal 8bd94baa08 Merge "Removing menu and dialog for custom actions hanlding. These do not work well with gesture-nav and can potentially block the Launcher UI." into sc-dev am: 3c5e748b36
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13540210

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icffdaeb2713db9e2b1efa2e651d3426d7ea8dac0
2021-02-17 22:04:15 +00:00
Sunny Goyal 3c5e748b36 Merge "Removing menu and dialog for custom actions hanlding. These do not work well with gesture-nav and can potentially block the Launcher UI." into sc-dev 2021-02-17 21:40:26 +00:00
Vinit Nayak 08219531ec Merge "Update System settings content observer to cache values." into sc-dev am: 4d6b0270ab
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13556230

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8f94656817f2eebf2a86e28ade9c0be62ea0a3ef
2021-02-17 17:33:49 +00:00
Vinit Nayak 4d6b0270ab Merge "Update System settings content observer to cache values." into sc-dev 2021-02-17 17:05:59 +00:00
Alex Chau 3a06568d8b Use PersistedTaskSnapshotData to calculate TaskView size
- Disabled variable width for running task, as PersistedTaskSnapshotData is not always up to date for current task after rotating the device

Bug: 174464656
Test: Test tablet overview with different comination of portrait/landscape wide/narrow thumbnails in portrait/landscape
Change-Id: Ifa01e72020ccaf422e3975b092462de85fa19efd
2021-02-17 11:41:24 +00:00
Vinit Nayak a34af18b0e Update System settings content observer to cache values.
Existing ContentObserver will cache values and overwrite
them when the value itself is modified or caller force
updates.

Bug: 149571513
Test: Wrote unit tests, mostly for caching logic.
Not meant to test ContentObserver contract for registering an
observer.

Change-Id: I12835f6c2be27ce17f65a55c51c4ef85c63b4487
2021-02-16 20:58:53 -08:00
Vadim Tryshev a76a79f2d9 Merge "Switching overlays more correctly" into sc-dev am: b6d28e885d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13563267

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6cb9d86715c4bc557545a28df2095e3354304b4c
2021-02-17 03:49:07 +00:00
Tony Wickham a62a36cac1 Draw folder leave-behind when opening folder in taskbar am: bb4de85c25
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13546997

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2a5a34ecdfa402b7eb5d51354b650755a5d52496
2021-02-17 03:48:54 +00:00
Tony Wickham b1f9d5853c Folder support in Taskbar am: 7ba547cd2d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13545778

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idfb7bee634c590d3c6bf83856d37959b5f61ecb4
2021-02-17 03:48:53 +00:00
Vadim Tryshev b6d28e885d Merge "Switching overlays more correctly" into sc-dev 2021-02-17 03:20:55 +00:00
vadimt a9740ecc8f Switching overlays more correctly
Test: presubmit
Bug: 180114721
Change-Id: I0d8d0c70ef34ec941e28704d06f9df5f17782155
2021-02-16 23:22:36 +00:00
Tony Wickham bb4de85c25 Draw folder leave-behind when opening folder in taskbar
Previously there was only support for CellLayout to draw the
leave-behind. Added FolderIconParent interface so any parent can
draw the leave-behind, and implement that by TaskbarView.

Test: Open folder in Taskber, ensure leave-behind draws

Bug: 171917176
Change-Id: I08d1d939a34f971f893994fe05cac972d165ef53
2021-02-16 15:10:05 -08:00
Tony Wickham 7ba547cd2d Folder support in Taskbar
- Add TaskbarActivityContext which allows shared Launcher elements to
  "just work" using existing generic ActivityContext.
- TaskbarContainerView extends BaseDragLayer<TaskbarActivityContext>.
- Inflate FolderIcon and Folder using TaskbarActivityContext to be
  shown in TaskbarContainerView.
- Use TaskbarActivityContext's DeviceProfile to determine icon size
  instead of overriding in styles. This also ensures that normal
  BubbleTextView icons have the same size as FolderIcons.

Test: Place a folder in home screen hotseat, ensure it shows up in
taskbar and can be opened, and that apps inside it can be launched
or dragged.
Bug: 171917176

Change-Id: Ic25d2f84bcd7e3399c88989305ea565497c030d9
2021-02-16 15:07:01 -08:00
Sunny Goyal 384b578ab2 Removing menu and dialog for custom actions hanlding.
These do not work well with gesture-nav and can potentially
block the Launcher UI.

Instead exposing on custom actions with keyboard accelerator and
using thee internal arrowPopup for resize options
Fixing SecondoryDropTarget not sending appropriate stats log

Bug: 179854703
Test: Verified on device
Change-Id: I268690f8a937896e4350496128a38959003f8939
2021-02-16 10:45:06 -08:00
Andy Wickham df471d9bc6 Merge "Adds CONTAINER_QSB to be used for QSB data." into sc-dev am: 9199fd1831
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13549792

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I865c2661ebffb67962a18fdf2748ae3f24645d25
2021-02-16 05:51:03 +00:00
Andy Wickham 9199fd1831 Merge "Adds CONTAINER_QSB to be used for QSB data." into sc-dev 2021-02-16 05:35:56 +00:00
thiruram 97d228aea0 [AA+] Log LAUNCHER_ONSTOP & LAUNCHER_ONRESUME events with AllApps session InstanceId. am: c96873caad
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13555897

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I71c044387453e9722f516fe57b1be4e40d25f19e
2021-02-16 00:27:06 +00:00
thiruram c96873caad [AA+] Log LAUNCHER_ONSTOP & LAUNCHER_ONRESUME events with AllApps session InstanceId.
* Transitions between AllApps and App screen logs LAUNCHER_ONSTOP & LAUNCHER_ONRESUME events. This change add InstanceId specific to the current AllApps session to these logs; this will help to regenerate AllApps session from logs on the server side. This should only affect logs from AllApps screen, but not others.

* Removes LiveSearchManager.allAppsLogger method as it may create confusion with 2 methods for logging into Statsd

* Moved AllApps entry and exit logs to Launcher.

Bug: 178562918
Test: Manual
Change-Id: I5fab941777a3dfd2e9b19c0efd5b06d3884222ef
2021-02-15 23:56:52 +00:00
Zak Cohen 5a727f2040 Merge "Adjust task padding overview to match new specs." into sc-dev am: 0d1fa0ee8d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13547667

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I572348ebb4c80961fb1f384bd59e106e61d0de1c
2021-02-13 01:40:17 +00:00
Zak Cohen 11e2ad20df Merge "Remove elevation from Task in Overview." into sc-dev am: fe7fb09b90
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13547665

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic08a3494240ee0fb31ff03db3cefea6b9ca69eb8
2021-02-13 01:40:12 +00:00
Zak Cohen 2d6be100ff Merge "Remove scaling and dimming for adjacent tasks in Overview." into sc-dev am: e38dc9b5f8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13547666

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I853b00927235dd831c9cd2bfdfe28fec94cd0c6d
2021-02-13 01:40:05 +00:00
Zak Cohen 0d1fa0ee8d Merge "Adjust task padding overview to match new specs." into sc-dev 2021-02-13 01:23:38 +00:00
Zak Cohen fe7fb09b90 Merge "Remove elevation from Task in Overview." into sc-dev 2021-02-13 01:23:02 +00:00
Zak Cohen e38dc9b5f8 Merge "Remove scaling and dimming for adjacent tasks in Overview." into sc-dev 2021-02-13 01:22:51 +00:00
Sreyas Rangaraju 90ebc3437d Merge "Updated TaskMenuView." into sc-dev am: 4e6a7e340d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13556167

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I47e10ad43083c6637fedb87e471ad29618cf2903
2021-02-12 23:56:44 +00:00
Sreyas Rangaraju 4e6a7e340d Merge "Updated TaskMenuView." into sc-dev 2021-02-12 23:11:39 +00:00
thiruram 68bd23f948 [AA+] Log app launches with AllApps session InstanceId when current state is ALL_APPS. am: 6600860f0f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13556166

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ice84a6c41d105308fbf443ad34907cc6eea2b9a9
2021-02-12 20:15:22 +00:00
thiruram 6600860f0f [AA+] Log app launches with AllApps session InstanceId when current state is ALL_APPS.
Bug: 178562918
Test: Manual
Change-Id: I65b264cc37079280b59179d5b2f29b67e7a12cc5
2021-02-12 20:02:41 +00:00
Rajeev Kumar 94128f5cae Merge "Add NIU Actions buttons to the Go Overview" into sc-dev am: 1216e5999e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13488937

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3942b16d6772909ae8431472eeb6fd4a42466bd0
2021-02-12 18:50:11 +00:00
Rajeev Kumar 1216e5999e Merge "Add NIU Actions buttons to the Go Overview" into sc-dev 2021-02-12 18:23:17 +00:00
Lucas Dupin efe815ed7e Merge "Revert "Ignore broken launcher tests"" into sc-dev am: 2268d7a937
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13556081

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic039408218684416ef7ef41400b17437eb1dc255
2021-02-12 17:38:17 +00:00
Lucas Dupin 2268d7a937 Merge "Revert "Ignore broken launcher tests"" into sc-dev 2021-02-12 17:24:59 +00:00
Andy Wickham 19ab177d1b Adds CONTAINER_QSB to be used for QSB data.
Also updates some related generics definitions for
better/simpler compile-time checks.

Bug: 178536734
Test: Manual
Change-Id: If439b64ad968f62674f856fd3ff465bf21cc9204
2021-02-11 22:16:24 -08:00
Lucas Dupin db3f34f956 Revert "Ignore broken launcher tests"
This reverts commit 03c5a46235.

Reason for revert: Fixed tests
Bug: 180016597

Change-Id: I45390f157c6c3a379d686e8802648aa948071b72
2021-02-12 02:57:58 +00:00
Sunny Goyal 2ea6630e57 Merge "Registering input monitor in Launcher process" into sc-dev am: f8bb6c02a1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13486549

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I44ea5696d9a17752be3f5294cc5c4e82bcbbbc8a
2021-02-12 01:45:50 +00:00
Sunny Goyal f8bb6c02a1 Merge "Registering input monitor in Launcher process" into sc-dev 2021-02-12 01:04:46 +00:00
Lucas Dupin 772781a119 Merge "Ignore broken launcher tests" into sc-dev am: 5fc546d09c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13554186

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icf13ea2d058ea78e6a8ec564565eb8ed91ab79b3
2021-02-11 23:43:21 +00:00
Sreyas e87b4c4979 Updated TaskMenuView.
Added padding on top of task name and removed unused code.
Bug: 179490926
Test: Manual

Change-Id: Id28547f30872f449f4f51238854155358b2dbcbe
2021-02-11 15:36:30 -08:00
Lucas Dupin 5fc546d09c Merge "Ignore broken launcher tests" into sc-dev 2021-02-11 23:15:39 +00:00
Zak Cohen b849aaf63d Remove scaling and dimming for adjacent tasks in Overview.
New designs flatten out the overview list and don't have scaled and dimmed
tasks adjacent to the main one.

Bug: 179922117
Test: Local run
Change-Id: I2dde04ed60b9d8459810a10d0c27dd6e131855a6
2021-02-11 19:21:27 +00:00
Zak Cohen b56611d962 Adjust task padding overview to match new specs.
New mocks have increased padding between the tasks.
I think we might need to fold some of these size calculations together
eventually, but this should be ok for the moment.


Bug: 179922117
Test: Local build and run
Change-Id: I4b5186d36012e80d55fae791e0c151c3112eecd1
2021-02-11 19:08:44 +00:00
Zak Cohen 34f4b7ebb8 Remove elevation from Task in Overview.
New designs don't have elevation for task views.


Bug: 179922117
Test: Local run
Change-Id: I0b3cb698574b49a279c7265e7f523819d20e2827
2021-02-11 19:08:02 +00:00
Ryan Mitchell 03c5a46235 Ignore broken launcher tests
Fabricated overlay changes seem to have made these tests flaky. Ignore
them for now while we figure out why the tests are flaky.

Bug: 180016597
Test: atest NexusLauncherOutOfProcTests
Change-Id: I639dabb2d6d57243882e0bc7100cc4947b32e37f
2021-02-11 18:20:43 +00:00
Adam Cohen b14a4c165b Merge "Draw the workspace scrim in the LauncherRootView instead of DragLayer" into sc-dev am: 12e547f2a8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13463974

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I441e0b92a8e00821159e34a95899ee1ab3b4d9db
2021-02-10 23:44:13 +00:00
Adam Cohen 12e547f2a8 Merge "Draw the workspace scrim in the LauncherRootView instead of DragLayer" into sc-dev 2021-02-10 23:33:06 +00:00
TreeHugger Robot b4bd0af611 Merge "Update TaskIcon UI." into sc-dev am: 99f23c9714
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13538913

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5cf8437984a707be3f71a36c92f7e239703ee0a9
2021-02-10 22:22:21 +00:00
TreeHugger Robot 99f23c9714 Merge "Update TaskIcon UI." into sc-dev 2021-02-10 22:03:30 +00:00
Hongwei Wang 4fa594b17b Merge "Support autoEnterPip without source rect hint" into sc-dev am: 0f16e51451
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13524927

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibd08c63eb219320ea52f701d7b59e0646dff449d
2021-02-10 20:37:08 +00:00