Commit Graph

36265 Commits

Author SHA1 Message Date
Android Build Coastguard Worker 62d30d71f4 Merge cherrypicks of [16685428, 16688543, 16684091] into sc-v2-release.
Change-Id: If86b1acade6ad30900ecf35f9dc7b9afa223723e
2022-02-14 23:13:59 +00:00
Jon Miranda e44c403710 Fix bug where back swipe to icon in All Apps search result.
Issue is that All Apps is scaling during the animation, so when
FloatingIconView looks for it in the view hierarchy,
it's not in its final position.

This would be the cleanest approach for a scv2 fix

Bug: 213306709
Test: manual
Change-Id: Iaec77d15c9533edccd9c82164143af8fa522158f
Merged-In: Iaec77d15c9533edccd9c82164143af8fa522158f
(cherry picked from commit db767aa575)
Merged-In:Iaec77d15c9533edccd9c82164143af8fa522158f
2022-02-14 23:13:13 +00:00
Winson Chung 3db7cd137e Add fallback for missing remote animation callbacks
- In some cases WM won't callback the remote animation callbacks (neither
  start nor cancel) and Launcher never finishes executing the pending
  command (preventing the subsequent commands from running).  For the time
  being, just cancel the current state to allow the commands to be
  processed.

Bug: 194011186
Test: Mash on overview and home buttons with a 3p launcher

Signed-off-by: Winson Chung <winsonc@google.com>
Change-Id: I1b1296fab316b979f441ebb474d1475e3fa68f95
Merged-In: I1b1296fab316b979f441ebb474d1475e3fa68f95
(cherry picked from commit bb530e9058)
Merged-In:I1b1296fab316b979f441ebb474d1475e3fa68f95
2022-02-14 23:13:10 +00:00
Winson Chung ab5f39bdc0 Dispatch hover events through the input consumer proxy
- Touch explore uses hover events to focus views for accessibility, but
  we were dropping these events when handling them through the input
  consumer proxy.  The reason this changed is that in sc-v2 we moved the
  recents input consumer to the top of the task display area to ensure
  that it was always above any of the tasks in splitscreen, but by doing
  so, it was always above launcher even after settling in overview.  The
  existing path for handling motion events is heavily tied to touch
  handling (action down/move/up) so we just add a separate path for
  dispatching hover events through the normal mechanism to launcher via
  the consumer.

Bug: 197043796
Change-Id: I5f8cfd357ff13971fe172ce1d0179535479cd26c
(cherry picked from commit eff9a120c6)
Merged-In:I5f8cfd357ff13971fe172ce1d0179535479cd26c
2022-02-14 23:13:07 +00:00
Android Build Coastguard Worker af3034c3ce Merge cherrypicks of [16591950] into sc-v2-release.
Change-Id: I637b089db1894fd8da178028ba4ad582cc94e513
2022-01-23 20:57:08 +00:00
Tracy Zhou 684b2b77cf End live tile when notification panel is pulled down for the first time in Overview.
Fixes: 211556489
Test: Go to overview with live tile. Turn on dark theme. Pull the panel back up. Make sure everything looks fine (live tile is ended).

Change-Id: I51cb81718a489ad7568c5e05ace0b3dbc6ca5443
(cherry picked from commit 0077caa15d)
Merged-In:I51cb81718a489ad7568c5e05ace0b3dbc6ca5443
2022-01-23 20:56:32 +00:00
Android Build Coastguard Worker d09bd715b6 Snap for 8082048 from 88c671ee71 to sc-v2-release
Change-Id: I8da80ac021361bd3ed429872ee4ba2f526372329
2022-01-15 02:08:00 +00:00
Bill Yi 88c671ee71 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iec90538bf8dd18fede035d7f548a71b757d2356c
2022-01-14 04:17:46 +00:00
Android Build Coastguard Worker d4ca9de618 Snap for 8076550 from b92c4e2319 to sc-v2-release
Change-Id: If70f748cd7a4cec2584079adc59b00f3c856a22a
2022-01-14 00:08:51 +00:00
Lucas Dupin c518932f74 Merge "Directly assign mDepth" into sc-v2-dev 2022-01-13 23:19:20 +00:00
TreeHugger Robot c0a6d3fc8f Merge "TalkBack doesn't announce when a task has being closed." into sc-v2-dev 2022-01-13 20:36:44 +00:00
Lucas Dupin 03064a1e60 Directly assign mDepth
A request to set a new depth is ignored if the surface is currently
invalid. We should cache what was the requested value, so it will be
applied once the surface is valid again.

Test: manual
Fixes: 209028986
Change-Id: I812816da4b0139c7ea7b53a9fb00f11265ecdea8
2022-01-13 12:01:11 -08:00
Android Build Coastguard Worker 6d099bd95a Snap for 8071527 from f6086e74e3 to sc-v2-release
Change-Id: If0cb12cada2c9b3ce85b4d46d8932d381506ea8e
2022-01-13 00:11:52 +00:00
Winson Chung b92c4e2319 Merge "Revert "Add logs for null task list"" into sc-v2-dev 2022-01-12 23:00:00 +00:00
Jerry Chang f6086e74e3 Merge "Fix NPE when consuming snapshots for recent animation" into sc-v2-dev 2022-01-12 01:21:14 +00:00
Android Build Coastguard Worker 6490826f97 Snap for 8068644 from 2c97c4ab19 to sc-v2-release
Change-Id: Ibfc3804b0267933cab0fda58aa4360cf441fde49
2022-01-12 00:09:00 +00:00
Winson Chung 08126d915c Revert "Add logs for null task list"
This reverts commit a46d36240b.

Reason for revert: Reverting logs for release

Change-Id: I65ae1ea691d5fb3d70a2db4beba08d7460b99e2b
2022-01-11 20:06:16 +00:00
Vinit Nayak 2c97c4ab19 Remove code that assumes single GroupedTaskView
* Old code assumes there will only be a single
GroupedTaskView, removing those code paths helps
consolidate single and grouped task code flows
* Correctly check when we need to add a stub
taskView for GroupedTaskViews by checking each
individual taskId

Test: Swiping with multiple split pairs doesn't
cause a cycle
Fixes: 213355942

Change-Id: Ibb98ae0dfcd4f52b762685aec9d2ee6445b9ef54
2022-01-10 15:59:33 -08:00
Jerry Chang 7f8e57ed68 Fix NPE when consuming snapshots for recent animation
Fix: 207716265
Test: no exception throws after recent animation
Change-Id: Ic35aea2285fb120f7d0b5215137ad9450518702f
2022-01-10 18:48:16 +08:00
Android Build Coastguard Worker 877da039e3 Snap for 8055317 from d873788275 to sc-v2-release
Change-Id: If54d814c19fc8628f858a01a10e73ac5926ae4e5
2022-01-08 02:07:44 +00:00
TreeHugger Robot d873788275 Merge "Add null check when logging quick switch" into sc-v2-dev 2022-01-07 22:13:12 +00:00
Tony Wickham 688148ac69 Add null check when logging quick switch
Test: none
Fixes: 209993127
Change-Id: I927f8969cf5ef3759b501fe1ada4d3b061b53d06
2022-01-07 18:32:14 +00:00
Android Build Coastguard Worker 80e445d5de Snap for 8050481 from 5735251c33 to sc-v2-release
Change-Id: I74ef02c7f1d330157f84a1cf2e0267eedfd4bd4e
2022-01-07 00:07:51 +00:00
TreeHugger Robot 19b3b93e5c Merge "Don't show split option if device in "Lock task mode"" into sc-v2-dev 2022-01-06 23:20:54 +00:00
Vinit Nayak c09012766b Don't show split option if device in "Lock task mode"
fixes: 199342537
Change-Id: Id212cce20b792fb8b16e9fa8eca4635773ae5ea7
2022-01-06 13:37:46 -08:00
TreeHugger Robot 5735251c33 Merge "Use list instead of array when filtering non-app leashes" into sc-v2-dev 2022-01-06 00:25:34 +00:00
TreeHugger Robot 3a6a0f5a31 Merge "Handle split selection when animation is disabled" into sc-v2-dev 2022-01-05 22:56:01 +00:00
Vinit Nayak d25fb5bd0b Use list instead of array when filtering non-app leashes
* Non-apps leashes can contain non-divider targets, which
was creating null elements in the array when an index didn't
get assigned.
* With a list we don't have to worry about empty index gaps
* Also remove the animation for the divider for certain
gestures because the surface isn't always valid for the
full duration of the animation. We probably would need to
synchronize with rest of recents animation

Fixes: 212218930
Test: No longer crashes when swipe up, hold, then swipe down
Change-Id: Ia1fc4d66e73f21b55fdbfe59342af025e2a525d9
2022-01-05 14:43:43 -08:00
Vinit Nayak 1465a5af7b Handle split selection when animation is disabled
* Consolidate setState() and setStateWithAnimation()
to be handled in the same manner
* If no animation, we run the created
PendingAnimation right away

Fixes: 209935590
Test: Tested w/ and w/o animation
Change-Id: I1d6fdba21761b6721e6bd52234016178547cd437
2022-01-05 12:19:11 -08:00
Hyunyoung Song d96e07035c Merge "Apply scrim protection to atomic state transition ALLAPPS -> NORMAL" into sc-v2-dev 2022-01-05 19:27:04 +00:00
Hyunyoung Song 153cd69d14 Apply scrim protection to atomic state transition ALLAPPS -> NORMAL
Bug: 209480401

Test: manual, video attached on the bug

TL;DR;; minimized the delta for sc-v2

Change-Id: If8c9281bb4366540b9a4ea10a9b363ce82d78daf
2022-01-04 21:55:14 -08:00
Android Build Coastguard Worker bc5cdc0c76 Snap for 8040604 from b57235563c to sc-v2-release
Change-Id: Ifbfab49abde3a2a925f79e03a0b2acb40d4bcacb
2022-01-04 00:07:57 +00:00
Siarhei Vishniakou b57235563c [automerger skipped] Add ALLOW_SLIPPERY_TOUCHES to make StatusBarTouchController slippery am: 918776ee51 am: 73c513256d -s ours am: a367a144ac -s ours am: 90e66951e9 -s ours
am skip reason: Merged-In I8d05fa3663687b5382a59b0d47cdac404844c3b7 with SHA-1 918776ee51 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16549672

Change-Id: I222012704cfc8694b095a25b51af364fe6b22bb3
2022-01-03 05:13:13 +00:00
Siarhei Vishniakou 90e66951e9 [automerger skipped] Add ALLOW_SLIPPERY_TOUCHES to make StatusBarTouchController slippery am: 918776ee51 am: 73c513256d -s ours am: a367a144ac -s ours
am skip reason: Merged-In I8d05fa3663687b5382a59b0d47cdac404844c3b7 with SHA-1 918776ee51 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16549672

Change-Id: I059d793325805bcca1fcba400e488d1113ee05f4
2022-01-03 05:06:30 +00:00
Siarhei Vishniakou a367a144ac [automerger skipped] Add ALLOW_SLIPPERY_TOUCHES to make StatusBarTouchController slippery am: 918776ee51 am: 73c513256d -s ours
am skip reason: Merged-In I8d05fa3663687b5382a59b0d47cdac404844c3b7 with SHA-1 918776ee51 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16549672

Change-Id: I805fedf30ea474009d316caacc1e3e995033ca62
2022-01-03 04:49:54 +00:00
Android Build Coastguard Worker c882a94ff2 Snap for 8035341 from cc07d3480b to sc-v2-release
Change-Id: I9e4bb33550ba1c3a819ee496fca3a75093634bb9
2021-12-30 00:08:22 +00:00
Siarhei Vishniakou 73c513256d Add ALLOW_SLIPPERY_TOUCHES to make StatusBarTouchController slippery am: 918776ee51
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16510921

Bug: 212491379
Change-Id: I26d89a46e181f39f95a5e6385be1760fac37437e
Merged-In: I8d05fa3663687b5382a59b0d47cdac404844c3b7
2021-12-29 08:07:25 +00:00
Siarhei Vishniakou cc07d3480b [automerger skipped] Add ALLOW_SLIPPERY_TOUCHES to make StatusBarTouchController slippery am: 918776ee51 am: b2b60b12b4 -s ours am: 9e924d9c71 -s ours am: 20ce997649 -s ours
am skip reason: Merged-In I8d05fa3663687b5382a59b0d47cdac404844c3b7 with SHA-1 81ff81227e is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16510921

Change-Id: Ibb304b63c96dcdf9e100487a01dab4b15d058c7d
2021-12-29 06:10:56 +00:00
Siarhei Vishniakou 20ce997649 [automerger skipped] Add ALLOW_SLIPPERY_TOUCHES to make StatusBarTouchController slippery am: 918776ee51 am: b2b60b12b4 -s ours am: 9e924d9c71 -s ours
am skip reason: Merged-In I8d05fa3663687b5382a59b0d47cdac404844c3b7 with SHA-1 81ff81227e is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16510921

Change-Id: I344cb782217c5a4aa455f58770ddc2ac1317f55c
2021-12-29 05:52:53 +00:00
Siarhei Vishniakou 9e924d9c71 [automerger skipped] Add ALLOW_SLIPPERY_TOUCHES to make StatusBarTouchController slippery am: 918776ee51 am: b2b60b12b4 -s ours
am skip reason: Merged-In I8d05fa3663687b5382a59b0d47cdac404844c3b7 with SHA-1 81ff81227e is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16510921

Change-Id: I083443b93bd2074c27027f071728cc114c1528bb
2021-12-29 05:34:09 +00:00
Siarhei Vishniakou b2b60b12b4 Add ALLOW_SLIPPERY_TOUCHES to make StatusBarTouchController slippery am: 918776ee51
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16510921

Change-Id: I974fcf457a96758f1002b64358c27edd54ab84de
2021-12-29 05:02:31 +00:00
Android Build Coastguard Worker da9217daa3 Snap for 8033408 from 8bf5b07332 to sc-v2-release
Change-Id: Iddba464b65d07b5571fbe6fa0b477449b21cca6e
2021-12-29 00:07:53 +00:00
Siarhei Vishniakou 918776ee51 Add ALLOW_SLIPPERY_TOUCHES to make StatusBarTouchController slippery
LauncherActivity uses FLAG_SLIPPERY for certain interactions. For
example, when home screen is shown, and the user pulls down from not the
top of the screen, and notification shade is getting displayed, then the
touch should be getting transferred to the NotificationShade using
FLAG_SLIPPERY.

The newly introduced permission is added to launcher in order for this
flag to be applied to the window.

Bug: 206188649
Bug: 157929241
Test: reviewed logs, ensure that NexusLauncherActivity has FLAG_SLIPPERY
Test: re-ran the performance regression test
Merged-In: I8d05fa3663687b5382a59b0d47cdac404844c3b7
Change-Id: I8d05fa3663687b5382a59b0d47cdac404844c3b7
2021-12-28 17:03:38 +00:00
TreeHugger Robot 8bf5b07332 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: ea11c15be3 -s ours am: 5077d9dbea -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16518927

Change-Id: Ibdb5b5e4a8c270fe70c322b6f3b1ce1e280b52cd
2021-12-27 17:35:54 +00:00
TreeHugger Robot 386366b344 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev am: 8fde307b56 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16518928

Change-Id: I669e8d727572926cd1b956a2f53f71bc5f8fb1fb
2021-12-27 17:34:23 +00:00
TreeHugger Robot 8a3ee07ed8 Merge "Merge "Add ALLOW_SLIPPERY_TOUCHES to make StatusBarTouchController slippery" into sc-dev am: c0231f8d0f am: f58691ae42" into sc-v2-dev 2021-12-27 17:33:26 +00:00
Android Build Coastguard Worker 57e9ed1bb2 Snap for 8026873 from 15c9d2d4f6 to sc-v2-release
Change-Id: I94d583b75017c17df49361b75bd1e0f4639a8c45
2021-12-24 00:07:46 +00:00
TreeHugger Robot 5077d9dbea [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: ea11c15be3 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16518927

Change-Id: I6b9a89b880f47721f6aaaf0607596270eced8ed8
2021-12-23 18:56:06 +00:00
TreeHugger Robot 15c9d2d4f6 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-12-23 18:31:55 +00:00
TreeHugger Robot 8fde307b56 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev 2021-12-23 18:24:12 +00:00