Commit Graph

20478 Commits

Author SHA1 Message Date
Bill Yi 06b9166f88 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9c3ef53a1d831f17490ee5b96c730ab10893223e
2021-06-03 19:03:31 +00:00
Bill Yi 1a01df7733 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Icd923fe6ba24436415e6a65c25dda49ee50a6164
2021-06-03 19:00:53 +00:00
Bill Yi 5821abb3e5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I463274ac8154729157b0fd623b966dba8ce36711
2021-06-03 19:00:20 +00:00
Zak Cohen 02da8d0782 Merge "RecentsView - reduce work in color tint animator" into sc-dev am: d7129fc919 am: 68df577307 am: 333fed77a4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14803765

Change-Id: I0deb90d2dba4a075c05ce76b94ea7de8edcb8451
2021-06-03 17:59:20 +00:00
Bill Lin a1221bcd53 2/ Notify adjust touch slop when one handed mode activated
When one handed mode activated, user swipe-up to exit usually
cross over the NavBar region, and then invoke TouchController
intercept touch event to trigger All Apps drawer on Home.

To enhanced the UX of gesture conflict of exit OHM & All Apps,
notify TouchController throught LauncherActivityInterface,
and Launcher dispatch onOneHandedModeStateChanged() event to
all mTouchControllers in DragLayer that touchController can
adjust the touch slop by it's SingleAxisSwipeDetector.

Test: manual trigger One handed mode and swipe-up to exit
Test: monitor minDisplacement of SingleAxisSwipeDetector
      OHM activated : touchSlop x multiplier
      OHM deactivated : touchSlop x 1
Test: check All Apps doesn't mis-trigger when exit one handed mode
Bug: 186235522
Change-Id: I7b9e6e7fa898231697d1866186a5f9b1717a9aa3
2021-06-04 01:44:51 +08:00
Bill Lin 945bb34b5e 1/ Provides feasibility to adjust touch slop in TouchController
There is a case when one handed mode triggered(Activated), all apps
drawer is very easy to trigger while user swipe up around NavBar
region to exit one handed mode. Since System Gesture monitor regsion
is small on screen bottom, swipe-up gesture usually cross over NavBar
monitor region and invoke launcher touch controller intercept touch
event and introduce unexpectedly trigger all apps drawer.

Adding onOneHandedModeStateChanged(boolean activated) for controller
be able to adjust the touch slop by multiplier, we can set a larger
multiplier when the visible window size translate become smaller
and make swipe gesture not too sensitive.

Test: manual swipe up to swich "home <-> all apps" and monitor
      minDisplacement of SingleAxisSwipeDetector
Test: Trigger one handed mode and swipe up to exit one handed mode
      check the minDisplacement of SingleAxisSwipeDetector
Bug: 186235522
Change-Id: I9729cd408d85b2b22582bf800e28d1471fc06980
2021-06-04 01:44:50 +08:00
Zak Cohen 333fed77a4 Merge "RecentsView - reduce work in color tint animator" into sc-dev am: d7129fc919 am: 68df577307
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14803765

Change-Id: If649266bbe8ff16829ea54a63ee80a131c0015e0
2021-06-03 17:44:40 +00:00
Zak Cohen 3ec119cbf3 Merge "RecentsView - reduce work in color tint animator" into sc-dev am: d7129fc919
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14803765

Change-Id: Ie7dd16e9beae174ab9967eccc79d50267298be7e
2021-06-03 17:26:58 +00:00
Zak Cohen 15eb8fef8e Merge "RecentsView - reduce work in color tint animator" into sc-dev am: d7129fc919
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14803765

Change-Id: I05fdec6d737ac56f178aa000eee39e8686dfb673
2021-06-03 17:25:22 +00:00
Zak Cohen 68df577307 Merge "RecentsView - reduce work in color tint animator" into sc-dev am: d7129fc919
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14803765

Change-Id: Id0679baf604aa354dfe2013e5575193b389a07e5
2021-06-03 17:25:15 +00:00
Zak Cohen d7129fc919 Merge "RecentsView - reduce work in color tint animator" into sc-dev 2021-06-03 17:09:45 +00:00
Alex Chau 822acf4d25 Make quick switch track finger 1:1
- When calculating motion delta, it should consider the scale of pagedView
- Adjust significant threshold of tablet quick switch to 15% of page width (roughly 100dp)

Fixes: 188786242
Test: manual on quick switch
Change-Id: Idaa6c5b721decb573e97158c5fbcd67fa224f9d1
2021-06-03 18:07:52 +01:00
Shawn Lin 416bc494c8 Merge "Detach the nav once the endTarget is determined as HOME" into sc-dev am: cd0fe7b057 am: 05fb88806e am: c82756d9e1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14811742

Change-Id: I96e5cdef117beb7aea6875011f0f62d2aedb05de
2021-06-03 12:34:32 +00:00
Shawn Lin c82756d9e1 Merge "Detach the nav once the endTarget is determined as HOME" into sc-dev am: cd0fe7b057 am: 05fb88806e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14811742

Change-Id: Ia2dd12600eb40e5b72f289e083f548b0f9948d48
2021-06-03 12:20:01 +00:00
Shawn Lin b762b23227 Merge "Detach the nav once the endTarget is determined as HOME" into sc-dev am: cd0fe7b057
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14811742

Change-Id: I557e183ffd2b0fcc8d9893465e5e7c680b7c5818
2021-06-03 12:04:36 +00:00
Shawn Lin 38772ef664 Merge "Detach the nav once the endTarget is determined as HOME" into sc-dev am: cd0fe7b057
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14811742

Change-Id: Id2b2cbbc78f9c6e0ca66f8a8498500d723de8683
2021-06-03 12:02:51 +00:00
Shawn Lin 05fb88806e Merge "Detach the nav once the endTarget is determined as HOME" into sc-dev am: cd0fe7b057
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14811742

Change-Id: Ie2d67370b1e55393ef1530de4485d9cf15c3f663
2021-06-03 12:01:31 +00:00
Shawn Lin cd0fe7b057 Merge "Detach the nav once the endTarget is determined as HOME" into sc-dev 2021-06-03 11:47:50 +00:00
TreeHugger Robot f40d4452d8 Merge "AssistContentRequester move binder call to background thread." into sc-dev am: 8c46bba98e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14801431

Change-Id: I1198b2ee9548ead52dbe1915c8fc6eeb7bac96ab
2021-06-03 07:30:53 +00:00
Pat Manning 668d10d6c4 End drag touch event when crossing task drag threshold, and only when task is going up (drag to dismiss) am: 49cb49b1f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14800534

Change-Id: I93c5b7dc6bd6cabb3560334102fae46553b39506
2021-06-03 07:29:24 +00:00
Wei Sheng Shih e909a01164 Merge "Read the starting surface icon size from framework" into sc-dev am: 630efccd7a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14609921

Change-Id: I7e9b8813fea7d2ed9cdef8c163f65875c9f026c1
2021-06-03 06:49:47 +00:00
shawnlin 2b006fb27b Detach the nav once the endTarget is determined as HOME
Bug: 189900722
Test: manual - swipe up to home from an app and observe the nav
Change-Id: I421de17fe4d8413deaf9ebd63166a6d2d00d096e
2021-06-03 13:06:42 +08:00
zakcohen da08cb2639 RecentsView - reduce work in color tint animator
Don't allocate animators when there is no animation to do. The work was
not required.

Bug: 189492167
Test: Local build, run and trace analysis
Change-Id: I111768b055ed636aa92d5d9d6b799f316a568380
2021-06-02 15:46:46 -07:00
TreeHugger Robot 19b47c7b07 Merge "AssistContentRequester move binder call to background thread." into sc-dev am: 8c46bba98e am: dde88a739e am: 1eeb4c9586
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14801431

Change-Id: I6c5bd9da04c5efade33a839b783961c5bc007f6e
2021-06-02 21:15:48 +00:00
Pat Manning 6c2aca7a25 End drag touch event when crossing task drag threshold, and only when task is going up (drag to dismiss) am: 49cb49b1f5 am: 765b8dc7c2 am: 2d39dfa747
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14800534

Change-Id: I4861e78b87e21499d9bc27756a02befc99472a8b
2021-06-02 21:15:07 +00:00
vadimt 09f1d8f9b7 Postponing CUJ_QUICK_SWITCH and CUJ_APP_CLOSE_TO_HOME
Now starting at the first drawn frame.

Test: perfetto
Bug: 188645726
Change-Id: I035f225f5afe64cf6eafa9ba40cffffce0a9d8cc
2021-06-02 14:09:08 -07:00
TreeHugger Robot 1eeb4c9586 Merge "AssistContentRequester move binder call to background thread." into sc-dev am: 8c46bba98e am: dde88a739e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14801431

Change-Id: I6f9f5b23bd07ef54de6f00273a3de03a8c1e327b
2021-06-02 20:59:47 +00:00
Pat Manning 2d39dfa747 End drag touch event when crossing task drag threshold, and only when task is going up (drag to dismiss) am: 49cb49b1f5 am: 765b8dc7c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14800534

Change-Id: Ic13d8803b5a5a9ad7fd52edf431cb26db89338db
2021-06-02 20:59:42 +00:00
TreeHugger Robot b41c1ee1c2 Merge "AssistContentRequester move binder call to background thread." into sc-dev am: 8c46bba98e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14801431

Change-Id: I933e2e77b266577ce2fcbddaf2c5f1813e6e664b
2021-06-02 20:39:56 +00:00
Pat Manning 8839849a54 End drag touch event when crossing task drag threshold, and only when task is going up (drag to dismiss) am: 49cb49b1f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14800534

Change-Id: Ic5e00180f93416ce9a83cb3ffeeea604d20f89a9
2021-06-02 20:39:52 +00:00
TreeHugger Robot dde88a739e Merge "AssistContentRequester move binder call to background thread." into sc-dev am: 8c46bba98e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14801431

Change-Id: I08dbfabda7b1c233a39618536d95acbeb53ccbcd
2021-06-02 20:39:50 +00:00
Pat Manning 765b8dc7c2 End drag touch event when crossing task drag threshold, and only when task is going up (drag to dismiss) am: 49cb49b1f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14800534

Change-Id: I176a2014bbddf096b25130be4f5d9348c58c1b4c
2021-06-02 20:39:32 +00:00
TreeHugger Robot 8c46bba98e Merge "AssistContentRequester move binder call to background thread." into sc-dev 2021-06-02 20:31:53 +00:00
zakcohen 243fbd3e5d AssistContentRequester move binder call to background thread.
The call into system server is synchronous, so make the call off the main
thread to avoid jank.

Bug: 189251291
Test: Local with flag enabled
Change-Id: I1787a0ad68488755bf19e813ecfe9fc079cfaed8
2021-06-02 10:33:31 -07:00
Pat Manning 49cb49b1f5 End drag touch event when crossing task drag threshold, and only when task is going up (drag to dismiss)
Test: manual
Fix: 188618115
Bug: 188618115
Change-Id: I51d157e224eaeee34ed131e4945bb92d6baf18cd
2021-06-02 16:28:25 +00:00
Wei Sheng Shih ccf125c31b Merge "Read the starting surface icon size from framework" into sc-dev am: 630efccd7a am: 7f9488dcf2 am: 10247d75c5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14609921

Change-Id: I76961f5f5ef54f6218471034aab5d13b680945c0
2021-06-02 10:40:38 +00:00
Wei Sheng Shih 10247d75c5 Merge "Read the starting surface icon size from framework" into sc-dev am: 630efccd7a am: 7f9488dcf2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14609921

Change-Id: Ie510c9d639d88b207f56e7ba95e262014daced81
2021-06-02 10:23:40 +00:00
Wei Sheng Shih 7f9488dcf2 Merge "Read the starting surface icon size from framework" into sc-dev am: 630efccd7a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14609921

Change-Id: Ieb882a1dd7280405fcccfdd8d634fd09372bf296
2021-06-02 10:08:06 +00:00
Wei Sheng Shih 262a3542f8 Merge "Read the starting surface icon size from framework" into sc-dev am: 630efccd7a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14609921

Change-Id: I975ebe8cc084bf2bd5b1c521bbdc48bfa45dd4b6
2021-06-02 10:07:22 +00:00
Wei Sheng Shih 630efccd7a Merge "Read the starting surface icon size from framework" into sc-dev 2021-06-02 10:00:22 +00:00
TreeHugger Robot c3dd4c45db Merge "Initial commit of rotation contextual button." into sc-v2-dev am: 161027dc3e am: 3b381a35f7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14726215

Change-Id: I3f310278af13f9a72f74b4d6206744f4aa031157
2021-06-02 03:30:57 +00:00
TreeHugger Robot 3b381a35f7 Merge "Initial commit of rotation contextual button." into sc-v2-dev am: 161027dc3e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14726215

Change-Id: I94511bef7e039864310710283c6cbece83e9372b
2021-06-02 02:26:57 +00:00
TreeHugger Robot 161027dc3e Merge "Initial commit of rotation contextual button." into sc-v2-dev 2021-06-02 02:05:40 +00:00
Lucas Dupin d98bbb1918 Merge "Set blur on effect layer during app launch" into sc-dev am: ee4d67c52d am: c53c5d8599 am: ffeb037edd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14750658

Change-Id: I272d9e850708034a58cd16e10de05ceb0428c480
2021-06-02 01:09:00 +00:00
Lucas Dupin ffeb037edd Merge "Set blur on effect layer during app launch" into sc-dev am: ee4d67c52d am: c53c5d8599
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14750658

Change-Id: Idfcc50b35cb5d612769dad9207a8f280b4ea6988
2021-06-02 00:58:34 +00:00
Lucas Dupin c53c5d8599 Merge "Set blur on effect layer during app launch" into sc-dev am: ee4d67c52d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14750658

Change-Id: Ibc67ff5638774294801974e4fe3c6357bf4ee22c
2021-06-02 00:38:36 +00:00
Lucas Dupin 8911c3eb53 Merge "Set blur on effect layer during app launch" into sc-dev am: ee4d67c52d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14750658

Change-Id: I4749b4e26b3170cb3788ddd32eca37e9f290045f
2021-06-02 00:36:12 +00:00
Lucas Dupin e192b71d5b Merge "Set blur on effect layer during app launch" into sc-dev am: ee4d67c52d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14750658

Change-Id: I9e34a80d60202502834d0c3b269ccc573f657e7e
2021-06-02 00:33:49 +00:00
Lucas Dupin ee4d67c52d Merge "Set blur on effect layer during app launch" into sc-dev 2021-06-02 00:32:52 +00:00
TreeHugger Robot df43aba716 Merge "Adjust task menu text size and colors" into sc-dev am: 137323c299 am: c15176259d am: 01075e2c6f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14792892

Change-Id: If1de7cc09f4517ca8e6772d3697de38311f7e250
2021-06-02 00:24:58 +00:00