Commit Graph

47938 Commits

Author SHA1 Message Date
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
Hyunyoung Song 6a5aac23c7 Merge "Address AppEventProducer to correctly send search-result location on AppTargetEvent" into sc-v2-dev am: 664f685336 am: ddc5d67757
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16235837

Change-Id: Ic1577685f4bca0f1146f9385230d351c7b23b3cd
2021-11-12 08:18:34 +00:00
Hyunyoung Song e59246d4e7 Merge "Address AppEventProducer to correctly send search-result location on AppTargetEvent" into sc-v2-dev am: 664f685336 am: 9dfc2ba0a3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16235837

Change-Id: If3ddb608ddebbf2e8d171ba10379b4d89a3b5a31
2021-11-12 08:17:58 +00:00
Fedor Kudasov 6c7c91fe86 Merge "Annotate AttributeSet with @Nullable" into sc-v2-dev 2021-11-12 08:17:55 +00:00
Hyunyoung Song ddc5d67757 Merge "Address AppEventProducer to correctly send search-result location on AppTargetEvent" into sc-v2-dev am: 664f685336
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16235837

Change-Id: I97061c17fc38c28d361499ed1557745cf1660908
2021-11-12 08:03:59 +00:00
Hyunyoung Song 9dfc2ba0a3 Merge "Address AppEventProducer to correctly send search-result location on AppTargetEvent" into sc-v2-dev am: 664f685336
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16235837

Change-Id: I015c3a22684a74c93241287dbcd27651fdf36ac3
2021-11-12 08:03:20 +00:00
Hyunyoung Song 664f685336 Merge "Address AppEventProducer to correctly send search-result location on AppTargetEvent" into sc-v2-dev 2021-11-12 07:46:23 +00:00
Winson Chung d0e6c8b2e7 Freeze task list if requested when launching split tasks
Bug: 206000278
Test: Quickswitch from app pair and back
Change-Id: I76af1396145e121e7f66f9e6b97f21a85c075e8e
2021-11-12 06:27:26 +00:00
Hyunyoung Song 1e5b621a50 Address AppEventProducer to correctly send search-result location on AppTargetEvent
Bug: 191362091
Test: logcat printout

11-10 20:27:02.290 32215 32237 D QuickstepModelDelegate: notifyAppTargetEvent action=1launchLocation=search-results

Change-Id: I16ef7679116e397a8a108cc291f5741febf2e453
2021-11-11 21:27:01 -08:00
Android Build Coastguard Worker 616cf6e313 Snap for 7906314 from 185da72e98 to sc-v2-release
Change-Id: Ib733afec6d3b0eed1a278f34f245cb724f51a7d4
2021-11-12 00:07:49 +00:00
Hyunyoung Song 394e2071ec Merge "Add FeatureFlag to enable two line label inside all apps" into sc-v2-dev am: 3f14c80d4c am: ab8760e90e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16224885

Change-Id: Ia519bc19510446e021926625c064436248d3d404
2021-11-11 22:07:28 +00:00
Hyunyoung Song 7515455cfb Merge "Add FeatureFlag to enable two line label inside all apps" into sc-v2-dev am: 3f14c80d4c am: 5401d47b53
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16224885

Change-Id: I57a38e2015cf26b2c936c9105f29485f2fe91078
2021-11-11 21:56:43 +00:00
Hyunyoung Song ab8760e90e Merge "Add FeatureFlag to enable two line label inside all apps" into sc-v2-dev am: 3f14c80d4c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16224885

Change-Id: I6ebeaf0772e96f0a39dc0fc99cfa3b243d66d6ac
2021-11-11 21:45:15 +00:00
Hyunyoung Song 5401d47b53 Merge "Add FeatureFlag to enable two line label inside all apps" into sc-v2-dev am: 3f14c80d4c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16224885

Change-Id: I9f25d2fa72e5b6bc1ff4fff8de74ba92937583ab
2021-11-11 21:44:09 +00:00
TreeHugger Robot e2ad700ea4 Merge "Update corner radius of both snapshot in app pair" into sc-v2-dev am: 916873e7ab am: 7bc2db80c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16240047

Change-Id: I2fb90826f86cd6cace517ed1e678a28456b4559a
2021-11-11 21:39:23 +00:00
TreeHugger Robot 08c26f54e9 Merge "Update Split Overview menu strings" into sc-v2-dev am: 39c22aa9ad am: 7f3e32ed8b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16240901

Change-Id: Ib5cfe4563a1847f799c23ec4ead7662157e031e1
2021-11-11 21:39:10 +00:00
TreeHugger Robot 9cb558f756 Merge "Update corner radius of both snapshot in app pair" into sc-v2-dev am: 916873e7ab am: 215a79a150
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16240047

Change-Id: I8d0bcedcaea62a58c9256434cb87846c96f536ed
2021-11-11 21:38:31 +00:00
TreeHugger Robot ab64ffc904 Merge "Update Split Overview menu strings" into sc-v2-dev am: 39c22aa9ad am: 3181cf0b1d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16240901

Change-Id: Id083b17137d500721bd0ad6148e96d00864b529e
2021-11-11 21:38:16 +00:00
Hyunyoung Song 3f14c80d4c Merge "Add FeatureFlag to enable two line label inside all apps" into sc-v2-dev 2021-11-11 21:29:30 +00:00
TreeHugger Robot 7bc2db80c8 Merge "Update corner radius of both snapshot in app pair" into sc-v2-dev am: 916873e7ab
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16240047

Change-Id: Ie8f920e85a72dc79d024fd3407180a89ff99626a
2021-11-11 21:19:07 +00:00
TreeHugger Robot 7f3e32ed8b Merge "Update Split Overview menu strings" into sc-v2-dev am: 39c22aa9ad
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16240901

Change-Id: I3f78f9ed550de73773ff749907e87e2c66294491
2021-11-11 21:19:01 +00:00
TreeHugger Robot 215a79a150 Merge "Update corner radius of both snapshot in app pair" into sc-v2-dev am: 916873e7ab
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16240047

Change-Id: I20fb777687eb54d7710c59f875951946501b0350
2021-11-11 21:18:00 +00:00
TreeHugger Robot 3181cf0b1d Merge "Update Split Overview menu strings" into sc-v2-dev am: 39c22aa9ad
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16240901

Change-Id: Ia2639bc3a0b7a1d8b1384518cfbc121c35679f22
2021-11-11 21:17:43 +00:00
TreeHugger Robot 916873e7ab Merge "Update corner radius of both snapshot in app pair" into sc-v2-dev 2021-11-11 21:15:18 +00:00
TreeHugger Robot 39c22aa9ad Merge "Update Split Overview menu strings" into sc-v2-dev 2021-11-11 21:07:37 +00:00
Alex Chau 80836f637f Update corner radius of both snapshot in app pair
Fix: 206002609
Test: manual
Change-Id: I6af28c6948769eac53326d61e84ac39196bd840f
2021-11-11 19:40:42 +00:00
Vinit Nayak 14ed91fb5b Update Split Overview menu strings
Bug: 181704764
Change-Id: Icaf51a702d529e20a0e65c4708fc7bc833e5eeeb
2021-11-11 11:20:04 -08:00
Samuel Fufa aa7eff232f Merge "[Search] Introduce notifyEvent api in OneSearch plugin" into sc-v2-dev am: 8727c4f78b am: 243df63998
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16223393

Change-Id: Ie2b1b836d8a4f890f96e3ca4a41dd0241c306048
2021-11-11 18:11:16 +00:00
Samuel Fufa 41cc37145f Merge "[Search] Introduce notifyEvent api in OneSearch plugin" into sc-v2-dev am: 8727c4f78b am: a9c199c6c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16223393

Change-Id: Iee8039e78f4843962cf19e212cb0230a21f9a958
2021-11-11 18:05:01 +00:00
Samuel Fufa 243df63998 Merge "[Search] Introduce notifyEvent api in OneSearch plugin" into sc-v2-dev am: 8727c4f78b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16223393

Change-Id: I6fc794f1fe5c85ef4d9c400ad2ae8959f03d9099
2021-11-11 17:54:39 +00:00
Samuel Fufa a9c199c6c8 Merge "[Search] Introduce notifyEvent api in OneSearch plugin" into sc-v2-dev am: 8727c4f78b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16223393

Change-Id: Ibe1305c72fb507d3c15d32cc4e962f7cf6ea16cc
2021-11-11 17:53:20 +00:00
Samuel Fufa 8727c4f78b Merge "[Search] Introduce notifyEvent api in OneSearch plugin" into sc-v2-dev 2021-11-11 17:44:46 +00:00
Fedor Kudasov 41edede1ee Simplify getTaskViewAt call
RecentsView getTaskViewAt method is nullable and is safe
to call for an out of bound index.

Bug: N/A
Test: m LauncherGoResLib
Change-Id: I7709d63ad4490fd756a50caaf42ba70c4fad4d06
2021-11-11 16:55:18 +00:00
Fedor Kudasov 920dc2f28f 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
2021-11-11 14:58:45 +00:00