Commit Graph

20478 Commits

Author SHA1 Message Date
Samuel Fufa a529cd0f5f Merge "Allow Users to migrate their hotseat when returning from AiAi" into ub-launcher3-rvc-dev 2020-06-19 00:51:18 +00:00
Samuel Fufa c3f13e01a3 Create hotseat predictor onCreate
ModelTask posted in setupViews does not get called.
Bug: 159151258

Change-Id: I45bfe7cf8ea18b09faaf3c0e612be90722e1e410
(cherry picked from commit 345f728f2c)
2020-06-19 00:49:16 +00:00
TreeHugger Robot b98168273f Merge "Show a snackbar on predicted icon longpress" into ub-launcher3-rvc-dev am: c471a9a6bb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11916646

Change-Id: I202db77991f7c3dd58f5c832325e477f07d19b3b
2020-06-18 23:39:10 +00:00
TreeHugger Robot a2339c5f51 Merge "Deprecates LAUNCHER_ALL_APPS_RANKED event." into ub-launcher3-rvc-dev am: e49de265da
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11889123

Change-Id: I52a9e7fa51257d1a1b02e96a00675a4afda6a291
2020-06-18 23:39:02 +00:00
Samuel Fufa d25a112b0e Allow Users to migrate their hotseat when returning from AiAi
- If a user has mostly predicted hotseat, show a snack bar. otherwise, show migration option.
- Guard onboarding activity with permission `com.google.android.apps.nexuslauncher.permission.HOTSEAT_EDU`

Bug: 158569583
Test: Manual
Change-Id: Id0c1c812233fcf288a2f49848720199dedd2015d
2020-06-18 16:38:58 -07:00
TreeHugger Robot c471a9a6bb Merge "Show a snackbar on predicted icon longpress" into ub-launcher3-rvc-dev 2020-06-18 23:34:58 +00:00
thiruram ffb55ddece Deprecates LAUNCHER_ALL_APPS_RANKED event.
LauncherUiChanged.rank field is repurposed to store all apps rank.

Change-Id: Iabad98312589d8f53b6547433540f3ec9dff0b3f
2020-06-18 15:08:16 -07:00
TreeHugger Robot de1104245f Merge "Fix bug where All Apps Edu gets closed via user input before animation ends." into ub-launcher3-rvc-dev am: 8e9405d7cd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11917527

Change-Id: If9c7c4f6070e1e941b1d2250ab4d63a99266f59f
2020-06-18 21:22:31 +00:00
TreeHugger Robot 8e9405d7cd Merge "Fix bug where All Apps Edu gets closed via user input before animation ends." into ub-launcher3-rvc-dev 2020-06-18 21:20:36 +00:00
TreeHugger Robot 7c80084f75 Merge "Avoid hotseat edu button overlapping" into ub-launcher3-rvc-dev am: d4de6d4bba
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11885084

Change-Id: I59913b015ba584a5b8a1b28b7f51232a6a8cff4d
2020-06-18 21:17:17 +00:00
TreeHugger Robot d4de6d4bba Merge "Avoid hotseat edu button overlapping" into ub-launcher3-rvc-dev 2020-06-18 21:06:44 +00:00
TreeHugger Robot 6b9cdf318f Merge "Add flag Intent.FLAG_ACTIVITY_NEW_TASK when launching suggestion settings" into ub-launcher3-rvc-dev am: 3b80398889
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11917339

Change-Id: I43f2c09838b517c0ab8479fce33461b2b3b75340
2020-06-18 20:58:28 +00:00
TreeHugger Robot 3b80398889 Merge "Add flag Intent.FLAG_ACTIVITY_NEW_TASK when launching suggestion settings" into ub-launcher3-rvc-dev 2020-06-18 20:48:52 +00:00
Jon Miranda 1bbd2831f3 Fix bug where All Apps Edu gets closed via user input before animation ends.
Also fixes bug where user continuously swipes to hint view causes count
to increase more than the max count which prevents all apps edu from showing.

Bug: 151768994
Change-Id: I3186398d441e723a2cfb6e396b03944502a65cf5
2020-06-18 13:40:33 -07:00
Samuel Fufa 9058e305e5 Avoid hotseat edu button overlapping
Screenshot: https://screenshot.googleplex.com/cCNn6hdrqu1
Bug: 158194467
Change-Id: I465ab73be2079f20994b3f2bbe57f64e46d05777
2020-06-18 13:32:17 -07:00
Samuel Fufa c376a1de2c Add flag Intent.FLAG_ACTIVITY_NEW_TASK when launching suggestion settings
Bug: 158604370
Test: Manual
Change-Id: I01e313d29cbc9b7ea2413547d9a7b4940d126ce8
2020-06-18 13:13:45 -07:00
TreeHugger Robot ad7b76f06c Merge "Avoid Crash when longpressing disabled predicted item" into ub-launcher3-rvc-dev am: fcc4a2d83f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11885880

Change-Id: I93501564f45c50a7165c8391a477b8e4a695a783
2020-06-18 17:58:49 +00:00
Samuel Fufa 44c1b5e03d Show a snackbar on predicted icon longpress
The first time a user long presses a predicted icon, suppress drag/drop and show a snackbar about app predictions.

Bug: 159170242
Test: Manual
Change-Id: I5f853a9774b38ad9fad22ff55feff417a801f52c
2020-06-18 10:57:32 -07:00
TreeHugger Robot fcc4a2d83f Merge "Avoid Crash when longpressing disabled predicted item" into ub-launcher3-rvc-dev 2020-06-18 17:45:57 +00:00
Jonathan Miranda 8a44e065b1 Merge "Use screenSpaceBounds to position the target window for recents mw animation." into ub-launcher3-rvc-dev am: 42dd4f4afd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11900648

Change-Id: I9cb0301698d887f02a5e49f380b2b1b0442cedc6
2020-06-18 17:18:01 +00:00
Jonathan Miranda 42dd4f4afd Merge "Use screenSpaceBounds to position the target window for recents mw animation." into ub-launcher3-rvc-dev 2020-06-18 17:03:18 +00:00
Sunny Goyal b64fc6c26f Fixing jump when swiping up in landscape and in waterfall cutout
> Adding tests for TaskViewSimulator to ensure proper calculations
> Disabling orientation listener while user is interacting with quickstep

Bug: 158781568
Bug: 156891776
Change-Id: I299c3b1243ac0dbf28faee1b8566c77ea3954e33
2020-06-18 00:29:00 -07:00
Hyunyoung Song d5b03cc19e Add LAUNCHER_WORKSPACE_SNAPSHOT event_id am: 714659f6d0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11897445

Change-Id: Ib44004d4632417d631af3f1687b273ca5fb504b3
2020-06-18 07:10:55 +00:00
Ady Abraham 0efe88d8f1 Merge "Launcher: Replace eEarlyWakeup flags with explicit eEarlyWakeup start and end flags" into rvc-dev am: 1e43dc8a79 am: 72e8d5a9f2 am: 121fd6cbff am: 61fdbda6a7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11900642

Change-Id: I024ece2ae6bff91656e6e7bfb90aea2c1c6e5fb0
2020-06-18 05:44:09 +00:00
Hyunyoung Song 714659f6d0 Add LAUNCHER_WORKSPACE_SNAPSHOT event_id
Bug: 159210161
Change-Id: Ie8e843ee10bf4ab0761232a3e61eb28e487666ab
2020-06-17 22:39:36 -07:00
TreeHugger Robot 0c46da5a18 Merge "Don't rely on nav mode change listener for oriented state" into ub-launcher3-rvc-dev am: adb6352bac
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11889163

Change-Id: I1571adce96d6b8fd2deec7c792349834a91efa44
2020-06-18 04:44:44 +00:00
TreeHugger Robot c1639e978b Merge "Snapshot logging only use cloned model thread folder contents Bug: 158826147" into ub-launcher3-rvc-dev am: 9c126682d7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11900654

Change-Id: I7e35babd5a8d86e9faca238143b9ebf61101c36b
2020-06-18 04:44:38 +00:00
TreeHugger Robot adb6352bac Merge "Don't rely on nav mode change listener for oriented state" into ub-launcher3-rvc-dev 2020-06-18 04:44:31 +00:00
Ady Abraham 1e43dc8a79 Merge "Launcher: Replace eEarlyWakeup flags with explicit eEarlyWakeup start and end flags" into rvc-dev 2020-06-18 04:36:03 +00:00
TreeHugger Robot 9c126682d7 Merge "Snapshot logging only use cloned model thread folder contents Bug: 158826147" into ub-launcher3-rvc-dev 2020-06-18 04:34:56 +00:00
Hyunyoung Song 398c42fe6b Snapshot logging only use cloned model thread folder contents
Bug: 158826147

Change-Id: I9aea9fbc706b0dffa3f6abeaac663b072d62ad58
2020-06-17 20:59:45 -07:00
TreeHugger Robot c1cd30d1ac Merge "Updated recents oriented state on split screen" into ub-launcher3-rvc-dev am: 27ed32ac7e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11873445

Change-Id: Ieea6c21321b7dbf76913aacf0bdd75eda36ea0ee
2020-06-18 02:46:07 +00:00
TreeHugger Robot 27ed32ac7e Merge "Updated recents oriented state on split screen" into ub-launcher3-rvc-dev 2020-06-18 02:35:16 +00:00
Jon Miranda 2a8093e5fd Use screenSpaceBounds to position the target window for recents mw animation.
Verified window is moving as expected using winscope.

Note: Position is off when launching non-center task.

Bug: 159171509
Change-Id: Ib11ed7df9a877348d76543279203f9bfc25f7829
2020-06-17 17:55:26 -07:00
Andy Wickham 6c2ac9e7aa Merge "Removes Sandbox from launcher task." into ub-launcher3-rvc-dev am: 4a85948843
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11688625

Change-Id: I935f383bf0df15991cb55f9fba30386394d1b696
2020-06-17 23:13:18 +00:00
Andy Wickham 4a85948843 Merge "Removes Sandbox from launcher task." into ub-launcher3-rvc-dev 2020-06-17 22:56:44 +00:00
Vishnu Nair 7f0df44ee2 Launcher: Replace eEarlyWakeup flags with explicit eEarlyWakeup start and end flags
eEarlyWakeup flag is used as a hint to SurfaceFlinger to adjust its
offsets so it can wakeup earlier and have sufficient time to compose
more complex scenes.

This flag has been replaced with explicit start and stop flags which
ensure the SurfaceFlinger offsets remain consistent during animation.
WM will now set the flags so this change removes use of the deprecated
flag.

Bug: 158127834
Test: go/wm-smoke
Test: systrace to verify new tracepoint and offset behavior

Change-Id: I680d680525482ed61ae38289076bb4213aeb1722
2020-06-17 15:49:50 -07:00
TreeHugger Robot 21a4d558c3 Merge "Disabling OverviewActions when rotated." into ub-launcher3-rvc-dev am: c0c0991231
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11710644

Change-Id: Ie2c1fe459d25db2bc4a0229ee2d97e89fe56ebab
2020-06-17 21:01:15 +00:00
TreeHugger Robot 0e938697d6 Merge "Fixing broken tests on 2 and 3 button devices." into ub-launcher3-rvc-dev am: d6e3775726
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11891563

Change-Id: Ie9f00e8e24bd6423cf38f79b03cf7133836e2f8a
2020-06-17 21:01:06 +00:00
Miranda Kephart 1bb17f2658 Merging from ub-launcher3-rvc-dev @ build 6595814 am: efdc4e2318 am: 9cb1795a71 am: ad4bd43b8f am: 9269333de9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11885879

Change-Id: Ie7d2e841b2d41504e07633f116d80b4e3adde59f
2020-06-17 20:49:31 +00:00
TreeHugger Robot c0c0991231 Merge "Disabling OverviewActions when rotated." into ub-launcher3-rvc-dev 2020-06-17 20:40:56 +00:00
TreeHugger Robot d6e3775726 Merge "Fixing broken tests on 2 and 3 button devices." into ub-launcher3-rvc-dev 2020-06-17 20:38:25 +00:00
Sreyas f91c1d0ef1 Disabling OverviewActions when rotated.
Bug: 157272300
Bug: 159135247
Change-Id: I9c9eeb49b7d18c1c81a830b7a35113070e7ac793
2020-06-17 12:37:14 -07:00
TreeHugger Robot 78d8acf1c5 Merge "Don't reset RecentsView in onIdpChanged()" into ub-launcher3-rvc-dev am: 1f325ab01e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11871905

Change-Id: I3c877043376859877fb87a40b6652ed6e498ad6a
2020-06-17 18:22:58 +00:00
TreeHugger Robot 7abd0ad331 Merge "Replaces StatsLogManager.log with StatsLogManager.logger()" into ub-launcher3-rvc-dev am: 349194569f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11889162

Change-Id: Idaab7cc7d8a6c27f85ee0177e4bc8cbe6f9a6e60
2020-06-17 18:22:45 +00:00
TreeHugger Robot 1f325ab01e Merge "Don't reset RecentsView in onIdpChanged()" into ub-launcher3-rvc-dev 2020-06-17 18:15:39 +00:00
TreeHugger Robot 349194569f Merge "Replaces StatsLogManager.log with StatsLogManager.logger()" into ub-launcher3-rvc-dev 2020-06-17 18:11:32 +00:00
Becky Qiu 41a0fa9d88 [Overview Actions] For in-place landscape, add select only when aiai works. am: ff6bc2ab5f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11873444

Change-Id: I3de8007af26460090220122c084587014b80b871
2020-06-17 17:42:49 +00:00
Becky Qiu ff6bc2ab5f [Overview Actions] For in-place landscape, add select only when aiai works.
When display orientation is not the same as device orientation, aiai won't work for select mode highlight. So we should only show the select button in task menu for in-place landscape when the display rotation is the same as the device rotation which is portrait.

Screenshot would be in the task menu for in-place landscape all the time.

Test: demo video: https://drive.google.com/file/d/1OQrjww2lFTTsthz4dB3BSa-jw943KLWp/view?usp=sharing
Change-Id: I58b6f6da234ea36eef0af5bb966c33ebda3625b8
2020-06-17 17:39:56 +00:00
TreeHugger Robot af2bb8d172 Merge "Fixing OAV buttons not working and removing logs." into ub-launcher3-rvc-dev am: 4de12a2424
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11881553

Change-Id: I1db09fdbaeec0cea24c4d3a36592be3722c4d611
2020-06-17 17:38:02 +00:00