Commit Graph

5910 Commits

Author SHA1 Message Date
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
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
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
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
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
d7129fc919 Merge "RecentsView - reduce work in color tint animator" into sc-dev 2021-06-03 17:09:45 +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
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
630efccd7a Merge "Read the starting surface icon size from framework" into sc-dev 2021-06-02 10:00:22 +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
137323c299 Merge "Adjust task menu text size and colors" into sc-dev 2021-06-01 23:50:40 +00:00
TreeHugger Robot
f5af5ce11f Merge "Revert "Add haptic feedback to Launcher recent apps scrolling"" into sc-dev 2021-06-01 23:39:39 +00:00
Tony Wickham
3cc2f46ca8 Merge "Fix duplicate depth animations when swiping from overview to home" into sc-dev 2021-06-01 23:17:36 +00:00
TreeHugger Robot
a357d6da6d Merge "Task Overlay - refresh task overlay on size change." into sc-dev 2021-06-01 23:15:25 +00:00
Wale Ogunwale
0e25d2eba8 Revert "Add haptic feedback to Launcher recent apps scrolling"
This reverts commit b1ef5e5c55.

Reason for revert: b/182382085#comment4

Change-Id: I001944da64dc05324b14cc9dd3db5921faf8806c
Bug: 182382085
2021-06-01 22:10:18 +00:00
Vinit Nayak
6ea5f721e5 Adjust task menu text size and colors
Fixes: 189855320
Fixes: 189855322
Change-Id: I0df4109f91ab09211b3cb5f3d18ad7374fa3f68c
2021-06-01 14:24:42 -07:00
TreeHugger Robot
b13200c6b1 Merge "Cleanup state properly when interacting during gesture nav transition" into sc-dev 2021-06-01 21:02:29 +00:00
Tony Wickham
950388bf0e Fix duplicate depth animations when swiping from overview to home
- Add SKIP_DEPTH_CONTROLLER in OverviewToHomeAnim if WorkspaceRevealAnim is used, because WorkspaceRevealAnim already handles the depth.

Test: visual, and also log to ensure we only get one call to DepthController#setStateWithAnimation()
Fixes: 189060172
Change-Id: Ifb4ff3278272b3e98b4cf43bf94d6e108921ea80
2021-06-01 13:56:00 -07:00
Jonathan Miranda
cdc73b512e Merge "Update launcher content animation to spec." into sc-dev 2021-06-01 19:24:33 +00:00
Jonathan Miranda
d8035e1821 Merge "Turn off app close flag, Revert back to R implementation." into sc-dev 2021-06-01 18:18:38 +00:00
Lucas Dupin
6e50860616 Set blur on effect layer during app launch
Test: manual
Fixes: 189207458
Change-Id: I8fabba92c6831c2fd54fe08156fc9a9b5d141a56
2021-06-01 11:07:17 -07:00
Alex Chau
5e13d36cba Merge "Ensure RecentsOrientedState.mRecentsRotation is up to date on swipe up" into sc-dev 2021-06-01 17:54:41 +00:00
zakcohen
7ce8f57530 Task Overlay - refresh task overlay on size change.
The task overlay should be refreshed on size change for rotation changes.

Bug: 187515688
Test: Local
Change-Id: I1a4fa6bfbc66b9d24cfa906184bdefb9067db5ae
2021-06-01 17:34:06 +00:00
Bill Yi
a4adcbc8ed Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iaaa324a8b618f499da8f48f819efec176e124e85
2021-05-31 10:53:02 +00:00
TreeHugger Robot
e1a5d6bb1b Merge "Force initialize task stack callback for gesture modes on init" into sc-dev 2021-05-28 05:31:03 +00:00
Jon Miranda
5df1fa5031 Update launcher content animation to spec.
- Scales content
- Fades in scrim

Bug: 177264697
Test: manual
Change-Id: Ie60908b6c417d94f1e075ea9728bd48eea55083e
2021-05-27 22:21:30 -07:00
TreeHugger Robot
db6b24a001 Merge "Adding more diags for WellbeingModel" into sc-dev 2021-05-28 02:12:42 +00:00
Vinit Nayak
23aa129016 Force initialize task stack callback for gesture modes on init
This handles an edge case where RotationTouchHelper#mMode starts as 3 button (by default)
* then changes to gesture nav.
* then onDestroy called
* then on re-initialization mMode will be gesture nav instead of 3-button
(it maintains state because of it being singleton).

The check to register the callback won't happen because we register only if previous mode and
current mode differ.
Don't rely on default value of mMode being 3 button when initializing

Bug: 181928969
Test: Followed repo steps in bug.
Restarted phone in all 3 nav modes and verified
expected quickswitch behavior

Change-Id: I381eba7417c4cde593edf4b9a34da55b50774e98
2021-05-27 19:01:09 -07:00
TreeHugger Robot
30adb97c13 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-27 22:28:57 +00:00
Jon Miranda
62769f10d7 Turn off app close flag, Revert back to R implementation.
Need more time to experiment with interpolated + springs based approach,
will aim for QPR instead.

Bug: 189120868
Bug: 173107751
Test: manual
Change-Id: I5698bd61c92b4fa719d82f2553125fc7f65b5969
2021-05-27 15:14:52 -07:00
Samuel Fufa
bd883ea788 Merge "Remove AllApps prediction edu" into sc-dev 2021-05-27 11:02:49 +00:00
Jason Chang
9bc712f267 Merge "Migrate trigger logic to fullfill new UI changes for One-handed mode settings." into sc-dev 2021-05-27 05:31:13 +00:00
Bill Yi
1817a5717f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6b5cd6be5d7f2b4519dc0fa589df88ea5e6b3139
2021-05-27 02:29:56 +00:00
Josh Tsuji
bdb4ed711c Merge "Adds launcher-side support for the SmartSpace shared element transition." into sc-dev 2021-05-27 00:29:01 +00:00
Winson Chung
9b45bce963 Merge "Add missing call to finish the home animation" into sc-dev 2021-05-27 00:00:34 +00:00
Winson Chung
45ecd6aa7d Add missing call to finish the home animation
- This reset the task view's show-screenshot state to show the
  snapshot the next time the task view is visible

Fixes: 186143625
Test: Enter pip w/ autoenter pip app, swipe up to overview
Change-Id: I6a1ec3d0654a33b228f97a6009145450e72e8d48
2021-05-27 00:00:24 +00:00
Tony Wickham
f8d731a808 Cleanup state properly when interacting during gesture nav transition
When the transition is canceled (e.g. when touching the nav bar during the transition), do the following:
- Abort the RecentsView scroll including the edge effects to ensure we get onSettledOnEndTarget() immediately.
- Jump to the current gesture end target state instead of the default rest state.

Test: Swipe up and to the left and hold to go to overview from an app, then swipe up to home during the transition; ensure that the touch down goes to overview rather than home, and subsequently that the swipe is respected and goes to home
Fixes: 189142339
Change-Id: Ie1d7dd05f45ab48968df7fdfd69fa1e1dda36d06
2021-05-26 15:28:38 -07:00
TreeHugger Robot
a07c2efdf6 Merge "Enable unpausing apps from the workspace." into sc-dev 2021-05-26 22:24:40 +00:00
TreeHugger Robot
d50d21b602 Merge "Update gesture nav colors and animation for dark/light theming" into sc-dev 2021-05-26 22:07:52 +00:00
TreeHugger Robot
3558f084f3 Merge "Update colors for Digital Wellbeing Toast." into sc-dev 2021-05-26 20:05:48 +00:00
Schneider Victor-tulias
9909544c8a Update gesture nav colors and animation for dark/light theming
- Added light mode gesture feedback animations
- Added color resources for the fake launcher wallpaper. Also using these color resources in the feedback animations for consistency
- Using fake previous app task color in feedback animations for consistency

Bug: 169687177
Test: manual
Change-Id: I1d28212e02c2ae750ce6241b64aa90f52b827c76
2021-05-26 12:34:29 -07:00