Commit Graph

6134 Commits

Author SHA1 Message Date
Zak Cohen d6e77bced4 Merge "Suppress failing view inflation tests until investigation" into sc-dev am: 20832e64a4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14938006

Change-Id: Id86e625b54314cec82c4f69dde92b237d09ad7b2
2021-06-10 20:30:47 +00:00
Zak Cohen 20832e64a4 Merge "Suppress failing view inflation tests until investigation" into sc-dev 2021-06-10 20:06:17 +00:00
zakcohen 139a54f20e Suppress failing view inflation tests until investigation
Widget parts of ViewInflationDuringSwipeUp are failing on some devices,
looks like a test architecture problem, not a code failing problem.


Bug: 190729479
Test: Ran remaining tests
Change-Id: I7598f381053f7136b2fcd861ec73d2fda239bb8d
2021-06-10 10:39:32 -07:00
Pat Manning b799e23908 [DO NOT MERGE] Animate live tile translation and update live tile page scroll on dismissal of non-live tile tasks. am: 206db75b87
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14817818

Change-Id: I9471db716703a96b92af7cdd4056f8d2391699a3
2021-06-10 16:43:15 +00:00
Pat Manning 206db75b87 [DO NOT MERGE] Animate live tile translation and update live tile page scroll on dismissal of non-live tile tasks.
Test: manual
Fix: 188453992
Bug: 188453992
Change-Id: I661c7a2900118ea02e4947feed99308d1a3a5619
2021-06-09 16:17:29 +00:00
Lucas Dupin d279c4cb29 Merge "Update blur radius" into sc-dev am: 14e1f2a6bb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14914218

Change-Id: I562dffcceb8d8877471d97f160a1f22964b1e308
2021-06-09 15:42:41 +00:00
Lucas Dupin 14e1f2a6bb Merge "Update blur radius" into sc-dev 2021-06-09 15:32:35 +00:00
Lucas Dupin 76877fda73 Update blur radius
Bug: 189976220
Test: manual
Change-Id: If5e6d6be7314dacfad8c501a5ae2da6556ca3cea
2021-06-08 21:51:47 -07:00
Shawn Lin 2664158d7f Merge "Play the nav bar animation for app launch from recent in live tile" into sc-dev am: f0ebf00394
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14878297

Change-Id: Ieb7f4529ba3c13e254d89bea73eb4d59eaade0a0
2021-06-09 02:08:47 +00:00
Shawn Lin f0ebf00394 Merge "Play the nav bar animation for app launch from recent in live tile" into sc-dev 2021-06-09 01:39:49 +00:00
TreeHugger Robot 50625a70a2 Merge "Re-enable swipe up view inflation test." into sc-dev am: 93e232a57b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14848883

Change-Id: I2ebb2a0d380f002faee87e48cdddd6bb792d3cea
2021-06-09 01:05:10 +00:00
zakcohen 284eef2bf9 Re-enable swipe up view inflation test.
Disable chips by default as they are not plan of record for launch.

Bug: 141579810
Test: Local and ran test
Change-Id: Iae270c6ac4bbec4f7c29b1137cf926383443e85e
2021-06-08 14:24:20 -07:00
Wei Sheng Shih 7d76519c1f Merge "Pre-set splash screen as icon-style when launch activity from Launcher." into sc-dev am: c3db44bbce
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14773251

Change-Id: I36fa8bff1c0a7e19b49149dd3a09b9aee5df08a7
2021-06-08 12:28:18 +00:00
Wei Sheng Shih c3db44bbce Merge "Pre-set splash screen as icon-style when launch activity from Launcher." into sc-dev 2021-06-08 12:16:24 +00:00
zakcohen b4d9ebd0de DO NOT MERGE am: 1fb6718c85
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14885687

Change-Id: I6205b60242fbc2b5b3ed2051a5728ac8b7dc7c71
2021-06-08 08:55:58 +00:00
zakcohen 1fb6718c85 DO NOT MERGE
Use focused task id for getting task size

When getting the selected task size, look at the focused task id, not
the running task id.
I believe this was a typo from the original change.

Bug: 190399315
Test: Local build and flash and run
Change-Id: Ice92e0562765f4f0142e27da0c38140df4c11425
2021-06-07 23:29:11 +00:00
shawnlin 60b97de72b Play the nav bar animation for app launch from recent in live tile
Bug: 189278432
Test: manual - launch an app from recent in live tile mode
Change-Id: I9a39cdbbe0b8b9ee6d11a3ee53936d2fea699dd8
2021-06-07 16:46:44 +08:00
wilsonshih 0fe2342445 Pre-set splash screen as icon-style when launch activity from Launcher.
Specify icon style splash screen when launch activity from Launcher.

Bug: 188023621
Bug: 189293785
Test: Start application from Launcher/Recents.
Change-Id: I13b7cd67576cf8822e86ff90971d6bb1a24d1a91
2021-06-07 11:58:45 +08:00
Winson Chung 934f32b9b1 Merge "Workaround for apps to stop before removing the task" into sc-dev am: 6420de7762
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14827090

Change-Id: Ic8567e1bfecf32218ed598395e22018941a7c6e5
2021-06-07 03:48:38 +00:00
Winson Chung 4f3c749ffc Workaround for apps to stop before removing the task
- With live tile enabled, the race between destroying the task and
  killing the process is more evident since the app may not get
  stopped at all.  For now, when dismissing, defer removing the
  task until we've finished the recents animation to allow the
  app to be stopped accordingly

Bug: 184899234
Test: Dismiss the task from overview, check that the app gets
      lifecycle events
Change-Id: Ib3ea479643d65859fe4cd580b4c347b87130a69d
Merged-In: Ib3ea479643d65859fe4cd580b4c347b87130a69d
2021-06-04 22:00:30 +00:00
Lucas Dupin 9f03d347ce Merge "Remove blur from launcher when in overview" into sc-dev am: 997ac6cddc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14829892

Change-Id: Ie82910a945ffe7e2d483d49c88602ceb8d0842df
2021-06-04 20:03:51 +00:00
Lucas Dupin 997ac6cddc Merge "Remove blur from launcher when in overview" into sc-dev 2021-06-04 19:51:46 +00:00
Lucas Dupin 258e4526b7 Remove blur from launcher when in overview
The App window will be under Launcher, so we can't actually blur
launcher at that time, otherwise the live window will also be blurred.

Test: manual
Bug: 189207458
Change-Id: Ie07449d29d3b0dc60d3787b6d32aa9e46e0bb613
2021-06-04 11:05:37 -07:00
Vadim Tryshev 915eea0422 Merge "Postponing CUJ_QUICK_SWITCH and CUJ_APP_CLOSE_TO_HOME" into sc-dev am: a5a61dddfd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14805586

Change-Id: Ic128112bd0207559f5bd1ae2b9a817f8ad0f98ea
2021-06-04 18:04:30 +00:00
Vadim Tryshev a5a61dddfd Merge "Postponing CUJ_QUICK_SWITCH and CUJ_APP_CLOSE_TO_HOME" into sc-dev 2021-06-04 17:57:00 +00:00
Yogisha Dixit 594dd55773 Add new log events for widgets. am: 4ff5ee3a8f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14425539

Change-Id: Id255461b89539ca35584063acf5049e88192f81d
2021-06-04 16:34:51 +00:00
Yogisha Dixit 4ff5ee3a8f Add new log events for widgets.
Design doc: go/widgets-logging

Bug: 185778648
Test: manual
Change-Id: Ia3c6edb87766a33e77865e9461e7101a1df864c1
2021-06-04 14:52:37 +01:00
Bill Lin 3cd0827e0b Merge changes I7b9e6e7f,I9729cd40 into sc-dev am: 51b35256d2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14800258

Change-Id: I49ebbfb13c1ab1fa96daa1d1a5f313f7b5c3b49f
2021-06-04 00:32:08 +00:00
TreeHugger Robot 04eff2698c Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-06-04 00:23:55 +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
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 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 d7129fc919 Merge "RecentsView - reduce work in color tint animator" into sc-dev 2021-06-03 17:09:45 +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 cd0fe7b057 Merge "Detach the nav once the endTarget is determined as HOME" into sc-dev 2021-06-03 11:47:50 +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
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 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 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 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
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 ee4d67c52d Merge "Set blur on effect layer during app launch" into sc-dev 2021-06-02 00:32:52 +00:00
TreeHugger Robot d3fad6ab3d Merge "Adjust task menu text size and colors" into sc-dev am: 137323c299
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14792892

Change-Id: I4eedcf2aa5c7aefb9d15460c31bd8f12bf8a449b
2021-06-02 00:00:37 +00:00
TreeHugger Robot 137323c299 Merge "Adjust task menu text size and colors" into sc-dev 2021-06-01 23:50:40 +00:00