Commit Graph

58436 Commits

Author SHA1 Message Date
Tracy Zhou 022c66327b Merge "Track LauncherState, RecentsAnimation, resumed state for task bar in one place" into sc-v2-dev am: 0200636585
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16205781

Change-Id: Ie9ca6ecdd77ac76b5b93461b6c5d7d6e670b71a6
2021-11-16 09:57:38 +00:00
Tracy Zhou 0200636585 Merge "Track LauncherState, RecentsAnimation, resumed state for task bar in one place" into sc-v2-dev 2021-11-16 09:41:58 +00:00
Android Build Coastguard Worker 6eca1d732f Snap for 7918267 from c23c40a35a to tm-release
Change-Id: I800cac6a507b0f267d1ce33ec4cdc9611129b56a
2021-11-16 02:08:43 +00:00
Schneider Victor-tulias 5173fd8090 Add notification dots and popup menu notification support to the taskbar.
- Added support for notification dots
- Added support for notifications in popup menu
- Added support for dismissing notifications from the popup menu

Bug: 198438631
Test: long pressed launcher and taskbar icons, clicked notifications, clicked shortcuts
Change-Id: I7c981e60a82b4d6ce28332d804bbbfb5eb89c6a8
2021-11-15 14:47:36 -08:00
TreeHugger Robot c23c40a35a Merge "Add ScreenRecord to methods affected by a flaky problem" into sc-v2-dev am: fffea98399 am: ce57748e66
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16261407

Change-Id: Ibe75d4169be434b559beee3690e3bfce072d5acf
2021-11-15 22:00:38 +00:00
TreeHugger Robot ce57748e66 Merge "Add ScreenRecord to methods affected by a flaky problem" into sc-v2-dev am: fffea98399
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16261407

Change-Id: Iad0bec3854b6ccd77c4ab223b2476c619e123098
2021-11-15 21:45:24 +00:00
TreeHugger Robot fffea98399 Merge "Add ScreenRecord to methods affected by a flaky problem" into sc-v2-dev 2021-11-15 21:32:58 +00:00
Fedor Kudasov 2c974debaa Simplify getTaskViewAt call am: 9d6fb64f45 am: acf07f338e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16249427

Change-Id: I3d70d53fbc0dd1f9bfe4c5283d53fc795a7c3e9b
2021-11-15 21:01:30 +00:00
Fedor Kudasov acf07f338e Simplify getTaskViewAt call am: 9d6fb64f45
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16249427

Change-Id: If52c26a38fab17d294b08a34a3e41fd5f88cef27
2021-11-15 20:50:06 +00:00
Fedor Kudasov 3a0f8a90bd Annotate RecentsView with @Nullable
Bug: 205828770
Test: m LauncherGoResLib
Change-Id: I44a4f7ce4258e54d43ca2c5a3937c81a4a686f80
(cherry picked from commit ac9cee5a7c)
2021-11-15 20:39:07 +00:00
Fedor Kudasov 9d6fb64f45 Simplify getTaskViewAt call
RecentsView getTaskViewAt method is nullable and is safe
to call for an out of bound index.

Bug: 205828770
Test: m LauncherGoResLib
Change-Id: I7709d63ad4490fd756a50caaf42ba70c4fad4d06
(cherry picked from commit 41edede1ee)
2021-11-15 20:37:12 +00:00
Fedor Kudasov 54def6f083 Merge "Add @Nullable annotations for simple cases" into sc-v2-dev am: ba47b591c4 am: 913c8aee24
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16246987

Change-Id: Iaa21e85b982f4c640833fcc8d968a63ddd66bd9a
2021-11-15 17:13:52 +00:00
TreeHugger Robot 025bc00048 Merge "Removing a dead test" into sc-v2-dev am: d5884f1c7b am: 239d9dfb4a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16249737

Change-Id: I93e7b822833c82f76b8375011c012527531f9b8e
2021-11-15 17:13:47 +00:00
TreeHugger Robot 2f08212714 Merge "Deletes old feature flags." into sc-v2-dev am: 3d7084863a am: 2bf1f507d4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15507535

Change-Id: I14fdae195d465fd9cb7faf4ca9711a45e244fe45
2021-11-15 17:13:38 +00:00
Fedor Kudasov 9385170c1b Add some more @Nullable annotations
Bug: 205828770
Test: m LauncherGoResLib
Change-Id: I6d2f269c4ec5f6cdee31ad68545c2720fbf1d8fc
2021-11-15 17:03:45 +00:00
Alex Chau ea6ee1c824 Add ScreenRecord to methods affected by a flaky problem
Bug: 204807156
Test: none
Change-Id: I554c032b2ea43b8ee813f694d9c995f4ebc4a90f
2021-11-15 15:48:54 +00:00
Fedor Kudasov 2f2b057710 Merge "Annotate RecentsView with @Nullable" 2021-11-15 12:02:55 +00:00
Android Build Coastguard Worker e1f89a8231 Snap for 7913429 from 2fa969b9d9 to tm-release
Change-Id: I788ecf72ba990d0c2528939c540aa6c7bd9ac2e5
2021-11-14 00:08:18 +00:00
Android Build Coastguard Worker 7d99e7b8eb Snap for 7913183 from ba47b591c4 to sc-v2-release
Change-Id: I5c4f8a1b17ed6481012d9e24be11a8043f2a8d93
2021-11-13 22:07:53 +00:00
Fedor Kudasov 913c8aee24 Merge "Add @Nullable annotations for simple cases" into sc-v2-dev am: ba47b591c4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16246987

Change-Id: I4fe20700452492680e0ea1e30577ed04ecda0e4f
2021-11-13 09:17:31 +00:00
Fedor Kudasov ac9cee5a7c Annotate RecentsView with @Nullable
Bug: 205828770
Test: m LauncherGoResLib
Change-Id: I44a4f7ce4258e54d43ca2c5a3937c81a4a686f80
2021-11-13 09:08:03 +00:00
Fedor Kudasov 2fa969b9d9 Merge "Simplify getTaskViewAt call" 2021-11-13 09:01:24 +00:00
Fedor Kudasov ba47b591c4 Merge "Add @Nullable annotations for simple cases" into sc-v2-dev 2021-11-13 09:00:32 +00:00
Android Build Coastguard Worker c99d3ce540 Snap for 7912506 from 1eeeb80158 to tm-release
Change-Id: If685af7a2e84797ce6cf0961bb2451da60fa586c
2021-11-13 04:08:37 +00:00
TreeHugger Robot 239d9dfb4a Merge "Removing a dead test" into sc-v2-dev am: d5884f1c7b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16249737

Change-Id: I730a4f5e8ead0daf32b257f1810e1aba32ef1380
2021-11-13 03:39:28 +00:00
TreeHugger Robot d5884f1c7b Merge "Removing a dead test" into sc-v2-dev 2021-11-13 03:26:11 +00:00
Android Build Coastguard Worker 39619a35bf Snap for 7911557 from ea77e49524 to sc-v2-release
Change-Id: Id383c09186f44aaad173f851ad9fa1aec055546f
2021-11-13 02:07:59 +00:00
TreeHugger Robot 2bf1f507d4 Merge "Deletes old feature flags." into sc-v2-dev am: 3d7084863a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15507535

Change-Id: I6b0dd220f9beba2e8c9e40dd38a084a3a44f0d5d
2021-11-13 00:57:18 +00:00
TreeHugger Robot 3d7084863a Merge "Deletes old feature flags." into sc-v2-dev 2021-11-13 00:38:07 +00:00
Winson Chung 1eeeb80158 Merge "Freeze task list if requested when launching split tasks" into sc-v2-dev am: ea77e49524 am: 27682fe8b4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16245857

Change-Id: Ia941a13ace453dbfaaff29333c73f9d02857e989
2021-11-12 21:27:26 +00:00
Winson Chung 131cceecad Merge "Freeze task list if requested when launching split tasks" into sc-v2-dev am: ea77e49524 am: 16d6010418
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16245857

Change-Id: I0b25462982047dfb1ebaa0fd4f86727b540e66f6
2021-11-12 21:26:49 +00:00
Winson Chung 27682fe8b4 Merge "Freeze task list if requested when launching split tasks" into sc-v2-dev am: ea77e49524
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16245857

Change-Id: Ia7f7c1e3ba08a06715fbef0fadf57e6d088f51a4
2021-11-12 21:09:01 +00:00
Winson Chung 16d6010418 Merge "Freeze task list if requested when launching split tasks" into sc-v2-dev am: ea77e49524
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16245857

Change-Id: Icad379bd6b9302e1dd2903e3e7f8d468f8d87718
2021-11-12 21:08:27 +00:00
Winson Chung ea77e49524 Merge "Freeze task list if requested when launching split tasks" into sc-v2-dev 2021-11-12 20:51:15 +00:00
vadimt 581fbae506 Removing a dead test
Test: presubmit
Bug: 147235759
Change-Id: I1412360316c87813d309cfbc1deefad00e7dd2ce
2021-11-12 20:15:24 +00:00
Merissa Tan 5f2516c03a Create new TaskbarUIController class for Kingyo.
This CL creates a new TaskbarUIController sub-class to allow for taskbar
UI customization on Kingyo.

Recall: http://recall/clips/598d7fc8-fa06-426b-8851-c5d5c1a91eb2

Bug: 202450677
Test: Manual
Change-Id: I9e06fe7556bd9a29d126e29c0277139b2f218069
2021-11-12 12:05:50 -08:00
Andras Kloczl 953eb8041e Fix LauncherProvider newScreenId issue
Remove maxScreenId from LauncherProvider and whenever we need
a new screenId, query the database to calculate a new screenId.
Also converted and refactored AddWorkspaceItemsTaskTest
and added some extra test cases.

Test: manual & AddWorkspaceItemsTaskTest.kt
Bug: 199160559
Change-Id: I185f6823fed171d778af0130497f5ffaf89c0a70
2021-11-12 19:56:07 +00:00
Alex Chau 463e3f97dd Fix launch animation from grid am: f75725830a am: 2a6ad15d04
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16240053

Change-Id: I1564abfa4b7c08e193b89698e0d96d2d1839a825
2021-11-12 18:27:57 +00:00
Alex Chau 8ab30afd53 Fix launch animation from grid am: f75725830a am: 45bb7b48ec
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16240053

Change-Id: Ic0d61f508f16eec3c3163ea358b36b1a3ad6834a
2021-11-12 18:27:51 +00:00
Alex Chau 2a6ad15d04 Fix launch animation from grid am: f75725830a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16240053

Change-Id: I8f59b4446e0680b4ddafd93cb94955ce9739e014
2021-11-12 18:14:22 +00:00
Alex Chau 45bb7b48ec Fix launch animation from grid am: f75725830a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16240053

Change-Id: I6815036c3d3916a4378340c089a35339a52206d4
2021-11-12 18:13:10 +00:00
Winson Chung 21d129de28 Removing logs
Bug: 201305599
Test: Builds
Change-Id: Ic480136ee6b158dc614d43beaed1dfce91b9ca8a
2021-11-12 17:18:11 +00:00
Alex Chau f75725830a Fix launch animation from grid
- Fixed calculateGridTaskSize to algin to taskRect instead of gridRect
- Extracted end of grid's scroll diff calculation to getOffsetFromScrollPosition to accurately calculate end of grid task's offset between its scroll and visual position (End of grid task's scroll is all the same at the position where ClearAllButton is just invisible)
- Extracted isGridTask in TaskView so TaskViewSimualtor can use the correct task size depedning if it's grid task or not

Bug: 200813202
Test: manual
Change-Id: I11a980345aee2680abf1c2563baadd9718a40192
2021-11-12 16:13:47 +00:00
Jason Chang c9ffa88cc3 (5/n) Remove One-handed mode overlay mechanism from quickstep
We were already splitted One-handed mode larger gesture region from
original before, so remove unnecessary overlay listener.

Bug: 201743873
Bug: 202132480

Test: manually test One-handed mode gesture
Test: build ROM and doing adb test (adb shell dumpsys activity
services com.google.android.apps.nexuslauncher/
com.android.quickstep.TouchInteractionService)

Change-Id: I7e0a750fe1850f39586a21718c2e2e5466ad8e28
2021-11-12 18:27:24 +08:00
Fedor Kudasov 2ca545c387 Add @Nullable annotations for simple cases
Add @Nullable annotations for the fields that are expected
to be null at arbitrary lifecycle time and are their usage
is protected by null checks.

Bug: 205828770
Test: m LauncherGoResLib
Change-Id: I9c31e1dc0d01cdd68dfff0a005ba1f40c257f8ea
(cherry picked from commit 920dc2f28f)
2021-11-12 10:01:33 +00:00
Fedor Kudasov 3618de3017 Merge "Add @Nullable annotations for simple cases" 2021-11-12 10:01:18 +00:00
Fedor Kudasov dd13b868be Merge "Annotate AttributeSet with @Nullable" into sc-v2-dev am: 6c7c91fe86 am: 3e40f01d7c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16233502

Change-Id: Ia9c3bee6cf27b0d03d270f6d4c1234c1b3265c96
2021-11-12 08:50:15 +00:00
Fedor Kudasov e828085b98 Merge "Annotate AttributeSet with @Nullable" into sc-v2-dev am: 6c7c91fe86 am: 820f8b6da4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16233502

Change-Id: I28eaea5741bfe0a86ee4e6fb50e775bc7a5937a8
2021-11-12 08:49:36 +00:00
Fedor Kudasov 3e40f01d7c Merge "Annotate AttributeSet with @Nullable" into sc-v2-dev am: 6c7c91fe86
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16233502

Change-Id: I49980ab58a93f32e82238df51dfa62b85cbcf882
2021-11-12 08:32:55 +00:00
Fedor Kudasov 820f8b6da4 Merge "Annotate AttributeSet with @Nullable" into sc-v2-dev am: 6c7c91fe86
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16233502

Change-Id: I44b3c235304572fc034a38584324a7f275fd24d9
2021-11-12 08:32:14 +00:00