Commit Graph

33358 Commits

Author SHA1 Message Date
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
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 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 8fde307b56 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev 2021-12-23 18:24:12 +00:00
TreeHugger Robot ea11c15be3 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-12-23 18:24:10 +00:00
TreeHugger Robot f58691ae42 Merge "Add ALLOW_SLIPPERY_TOUCHES to make StatusBarTouchController slippery" into sc-dev am: c0231f8d0f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16444734

Change-Id: I405e4c79cc91ccbeb0472870ad1395eccaa8b64b
2021-12-23 06:55:10 +00:00
TreeHugger Robot c0231f8d0f Merge "Add ALLOW_SLIPPERY_TOUCHES to make StatusBarTouchController slippery" into sc-dev 2021-12-23 06:40:12 +00:00
TreeHugger Robot 5181163070 Merge "Fix testStressSwipeToOverview" into sc-dev am: aabead2db8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16471550

Change-Id: Id7353bbafe62f70b0b1659455e731bc3ecf85de2
2021-12-22 20:23:47 +00:00
TreeHugger Robot 925768d35a Merge "Fix issues with starting new recents animation before previous onRecentsAnimationStart" into sc-dev am: 1a453f1547
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16471461

Change-Id: Ia6ddad23a2ebaa5737ffe12ce91501ec23dc8489
2021-12-22 20:23:45 +00:00
Bill Yi 84ed7e92b4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6896c90a1b5e637f20e004866db4407219d4e210
2021-12-22 07:51:33 +00:00
Bill Yi 506c4df440 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I03c58e596fae530790fcdd93319ae1b0dbc7ad78
2021-12-22 07:50:59 +00:00
TreeHugger Robot aabead2db8 Merge "Fix testStressSwipeToOverview" into sc-dev 2021-12-22 01:50:59 +00:00
TreeHugger Robot 1a453f1547 Merge "Fix issues with starting new recents animation before previous onRecentsAnimationStart" into sc-dev 2021-12-22 01:50:59 +00:00
TreeHugger Robot 4d6831e2b9 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: 649325ad1a -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ic4119cd526e6601167751700d0107a788b25aecb
2021-12-16 16:06:23 +00:00
TreeHugger Robot d1841de078 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev 2021-12-16 15:50:25 +00:00
TreeHugger Robot 649325ad1a Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-12-16 15:44:44 +00:00
TreeHugger Robot cd30824c99 Merge changes from topic "presubmit-am-299ca4020ed94d05b0ac27bbf6752f7a" into sc-qpr1-dev
* changes:
  [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 189f1ce908
  Import translations. DO NOT MERGE ANYWHERE
2021-12-16 15:44:44 +00:00
TreeHugger Robot 04162f05d7 Merge changes from topic "presubmit-am-2f8e16fe33c44e5196ee3ee1963fafb2" into sc-qpr1-dev
* changes:
  [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 384c30fa4c
  Import translations. DO NOT MERGE ANYWHERE
2021-12-16 15:44:27 +00:00
Bill Yi e115a8a46f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iec90da5709f6fbee61798d61b6c6d0d50185220e
2021-12-15 06:57:23 +00:00
Bill Yi 439705b5a3 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 384c30fa4c
Blank merge reason: commit message contains skip directive

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

Change-Id: I712a3fb9b233fb15846cbafc48e6970b3b659b96
2021-12-15 06:56:57 +00:00
Bill Yi 384c30fa4c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I195d5d5f10c8e93e1b26d58b2cdcf194fc3474f4
2021-12-15 06:56:43 +00:00
Bill Yi 8942bc90bf Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia316d18fcb30161ddb2d288919c9aa4698d3d3af
2021-12-15 06:53:54 +00:00
Bill Yi a0cf7967db [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 189f1ce908
Blank merge reason: commit message contains skip directive

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

Change-Id: I46c505232b99fbe4b15fdb74acbae5658df23753
2021-12-15 06:53:38 +00:00
Bill Yi 189f1ce908 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ibdb9619f0643f4a1f3c32252e712248556c352a6
2021-12-15 06:53:19 +00:00
Tony Wickham f540e5caa2 Fix testStressSwipeToOverview
- Finish recents controller to app rather than to launcher, to ensure taskbar state uses in-app configuration
- Also fix an issue when a gesture completes before onLauncherStart, which happens in 3 button mode. The error I saw in the test was:
java.lang.AssertionError: http://go/tapl test failure: Failed to receive an event for the state change: expected [Overview], actual: [Background, Normal];
Context: want to switch from background to overview, clicking Recents button; now visible state is Background
(This also accurately describes what I saw on the device, where the LauncherState went to Normal but the task was still running in the live tile)

Test: testStressSwipeToOverview
Fixes: 203577620
Change-Id: I19616f7921c9821f1b45a90a3e4bec4fb3b8a9d3
Merged-In: I19616f7921c9821f1b45a90a3e4bec4fb3b8a9d3
(cherry picked from commit ce6bf7dd7f)
2021-12-15 05:45:43 +00:00
Tony Wickham ee24e46a61 Fix issues with starting new recents animation before previous onRecentsAnimationStart
- Fix logic for canceling animation for continued quick switch, so that this case (starting a new gesture before onRecentsAnimationStart() of the previous gesture) instead goes to the STATE_FINISH_WITH_NO_END flow.
- Update the end target so that we go to that state instead of always overview state if swipe was past the halfway threshold when we call endLauncherTransitionController(). This is specifically so we don't use OverviewInputConsumer on the second gesture, given the first one was canceled and didn't actually go to overview.
- GestureState#isRecentsAnimationRunning() now checks for STATE_RECENTS_ANIMATION_STARTED rather than _INITIALIZED, to be consistent with its javadoc and TaskAnimationManager#isRecentsAnimationRunning(). This also ensures we can correctly calculate continued quick switch (see above).
- Call cleanUpRecentsAnimation() before creating a new one in TaskAnimationManager. This ensures that the previous listener doesn't immediately cleanup the new gesture when it gets onRecentsAnimationCanceled() due to the new recents animation starting.

Test: swipe to home twice from the app, locally ignoring the onRecentsAnimationStart() from the first one, and ensure the second one responds normally
Bug: 193851085
Change-Id: I76e27c96b54293805546c0d6c82e77f975c69d7a
Merged-In: I76e27c96b54293805546c0d6c82e77f975c69d7a
(cherry picked from commit 66ed0ff23e)
2021-12-15 05:44:27 +00:00
Siarhei Vishniakou 81ff81227e 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
Change-Id: I8d05fa3663687b5382a59b0d47cdac404844c3b7
2021-12-12 06:22:08 +00:00
TreeHugger Robot a33cbebd8d Merge changes from topic "presubmit-am-18a7324d3163401db618e725a06a3dba" into sc-qpr1-dev
* changes:
  [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 3e39786ec3
  Import translations. DO NOT MERGE ANYWHERE
2021-11-18 18:18:41 +00:00
Bill Yi f841aa488d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I15ccd3db00e2a2353337a834b41706dedeac2749
2021-11-18 04:20:12 +00:00
Bill Yi 8aa6d024aa [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 3e39786ec3
Blank merge reason: commit message contains skip directive

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

Change-Id: Ide698cc4f38b744d9126aaa550d68e2f73cb30fc
2021-11-18 04:19:40 +00:00
Bill Yi 3e39786ec3 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I88e2ee9b0d5fd68d79eb888f201d649541ea0844
2021-11-18 04:19:33 +00:00
TreeHugger Robot d076575915 Merge changes from topic "presubmit-am-b573694ac00f425591ad626ca6ca14e0" into sc-qpr1-dev
* changes:
  [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: d6c42a8d7c
  Import translations. DO NOT MERGE ANYWHERE
2021-11-08 02:29:55 +00:00
Bill Yi 5cc4dfef04 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie89e29a2c4aff51f16d0e7e4f15b83226aa3fd66
2021-11-05 22:12:07 +00:00
Bill Yi b84eeb1b73 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: d6c42a8d7c
Blank merge reason: commit message contains skip directive

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

Change-Id: I30b3b382673e89e3e67f9148d0866c1f7b9db27d
2021-11-05 22:11:33 +00:00
Bill Yi d6c42a8d7c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ic8f995af269cc6b846db1a289b61f6f2c96387cf
2021-11-05 22:11:26 +00:00
Bill Lin 6648ab32bc Merge "Allow One-handed gesture when densityDpi > 600" into sc-qpr1-dev 2021-11-03 00:59:46 +00:00
Bill Lin 2b74e3c290 Allow One-handed gesture when densityDpi > 600
This logic was aim to prevent tablet device enable One-handed gesture
so added displayInfo.densityDpi < DisplayMetrics.DENSITY_600 before.

However, it seems this densityDpi=600 does not able to represent to
tablet device, instead we already have system property
"ro.support_one_handed_mode" which provides feasibility to config false
on tablet project, as the reason we can safe to remove this condition.

Bug: 203936659
Test: adb shell wm density 600 , and observe OHM gesture is available
Test: atest WMShellUnitTests
Change-Id: Ic7ae10e8a47d26b9bb39ab80e22d591d74f89ae5
Merged-In: Ic7ae10e8a47d26b9bb39ab80e22d591d74f89ae5
2021-11-02 02:50:09 +00:00
TreeHugger Robot 047cb6c114 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev 2021-11-01 05:55:36 +00:00
Bill Yi 9dda7b700b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia72585210d668abd01bdce2556e1cf6265af4f8e
2021-10-30 01:19:55 +00:00
Bill Yi 5b24688fc3 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: eceff103d4
Blank merge reason: commit message contains skip directive

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

Change-Id: Ic62c29fb295ec8405db1a6cf454d23f5558ce102
2021-10-30 01:19:29 +00:00
Bill Yi eceff103d4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1fb8644a05495e312925301f254e67ba58cd50e9
2021-10-30 01:19:24 +00:00
TreeHugger Robot f409849bc4 Merge changes from topic "presubmit-am-cb4679fd6eb1414cb720168b20bbb591" into sc-qpr1-dev
* changes:
  [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: f2e186c6df
  Import translations. DO NOT MERGE ANYWHERE
2021-10-22 01:13:07 +00:00
Bill Yi dda2a04183 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: If7e1d701d4b0359590495c962c25ee59f21662bc
2021-10-21 04:25:21 +00:00
Bill Yi a72c102031 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: f2e186c6df
Blank merge reason: commit message contains skip directive

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

Change-Id: I6825fa2e024a1ec19d7c1e80150e39e0fb3a58fb
2021-10-21 04:24:48 +00:00
Bill Yi f2e186c6df Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ibb8212b4736009180e475a3ae443caafd0ebc937
2021-10-21 04:24:42 +00:00
Bill Yi 69167b220e [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 0ff2d62704 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I57efbfa65de2ab3070afcca0f57c44c2710b482e
2021-10-15 14:41:11 +00:00
Bill Yi d417011a96 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I620316d32600beeb2bf029262d7800a90167a506
2021-10-14 22:13:50 +00:00
Bill Yi 0ff2d62704 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I48ea05ff4807e4f64e12b7a78175d3c9c35c4dcf
2021-10-14 22:13:09 +00:00