Commit Graph

16261 Commits

Author SHA1 Message Date
Tony Wickham 2c27df5b5d Merge "Set status bar icons to dark at correct all apps progress" into ub-launcher3-edmonton 2018-05-16 22:23:50 +00:00
Vadim Tryshev e628c474ea Fixing Recents sometimes restoring in Clear-all-reveal position.
This happened if a task was added between openings of Recents.

Bug: 72222505
Test: Manual
Change-Id: Id4cc8e7cbdb493973d329466369b62e4ac8ee0b3
2018-05-16 15:00:52 -07:00
Tony Wickham 77bf622c01 Merge "Make fling thresholds consistent" into ub-launcher3-edmonton 2018-05-16 21:55:41 +00:00
TreeHugger Robot 3c25046da8 Merge "Logging Square button presses opening Recents" into ub-launcher3-edmonton 2018-05-16 21:40:11 +00:00
Tony Wickham ec62522682 Set status bar icons to dark at correct all apps progress
Bug: 79866102
Change-Id: I8c97896319406c8360a2f60d213868ad59dafe19
2018-05-16 14:27:49 -07:00
Hyunyoung Song 27289bbe40 First task should launch when tapped.
Broken from previous CL.
Bug: 79539824

Change-Id: I9c4b00731afeeb815d2c7f3dcaf4ae4f029dec30
2018-05-16 14:03:20 -07:00
Tony Wickham 0f640b6c1b Make fling thresholds consistent
There are 3 places we can block a fling:
- Swiping from home to all apps (through overview)
- Swiping from an app to all apps (through overview)
- Dismissing a task (in the same gesture that started by swiping down)

In all of these cases, we block the fling when crossing the threshold
to a new state (e.g. OVERVIEW), but unblock if the user pauses their
drag. With this change, the logic is consistent:
- Unblock the fling after pausing a short amount of time
- If a fling was blocked, increase the settling duration based on
  velocity

Bug: 78089840
Bug: 78658678
Change-Id: I5ef52b74229418b867b26c3c6d3db2cf6e48914b
2018-05-16 13:47:20 -07:00
TreeHugger Robot 0d1db51ce8 Merge "Fixing wrong accessibility focus when opening a floating view" into ub-launcher3-edmonton 2018-05-16 20:25:07 +00:00
TreeHugger Robot c212649c13 Merge "Fixing task location calculation in seascape" into ub-launcher3-edmonton 2018-05-16 20:22:37 +00:00
Sunny Goyal de75321542 Fixing wrong accessibility focus when opening a floating view
> Using common logic for announcing a floating view for widgets and folders

Bug: 79091095
Bug: 79748886
Change-Id: Ibb3fe48e68e724f50d69f51a03d3b35ad0baf625
2018-05-16 13:11:00 -07:00
TreeHugger Robot 6ae02c6a61 Merge "Fix app open animation when in overview mode." into ub-launcher3-edmonton 2018-05-16 20:05:01 +00:00
Sunny Goyal 9638caf6e4 Merge "Dumping the excoded view hierarchy instead of the default activity dump" into ub-launcher3-edmonton 2018-05-16 19:57:05 +00:00
Jon Miranda bbe666631f Fix app open animation when in overview mode.
* Avoids scrim hard line by animating the RecentsViewContainer and
  AllAppsTransitionController progress.

Bug: 79689563
Change-Id: If467e07667ae4d6eeac663608f77bec0eb7ef82f
2018-05-16 12:51:23 -07:00
TreeHugger Robot 0b1174ddbe Merge "Adding Clear All to accessibility chevron on Recents" into ub-launcher3-edmonton 2018-05-16 19:12:00 +00:00
Vadim Tryshev 3f51631b80 Adding Clear All to accessibility chevron on Recents
For motivation, see email thread "Tweaks to for the reverted order of
accessibility swiping"

This doesn't add the action to the fallback Recents, so it will require
more work.

Bug: 79165501
Test: Manual
Change-Id: I99d608ccc13cc1742dc4d427e763125788e8edd2
2018-05-16 12:00:33 -07:00
Hyunyoung Song 1241e61a45 Improve Task user event logging
Bug: 79539824
Bug: 79541772

(1) Added page index of the TASK that is being launched
(2) Covers all three cases of task launch (tap, swipe down, quick scrub)
UserEvent: action:FLING direction=DOWN
UserEvent:  Source child:TASK, packageHash=-1598699687, componentHash=1952702153, pageIdx=0

UserEvent: action:DRAGDROP
UserEvent:  Source child:TASK, packageHash=-744307622, componentHash=-515832044, pageIdx=4

(3) Avoid double logging (When onStop is called, it is not logged if
the cause of onStop is APP or TASK launch)

Change-Id: Ic5db7d6a640d43bfb5cd667b49e37dd0ed127d5c
2018-05-16 11:26:35 -07:00
Sunny Goyal 55eb556a4b Dumping the excoded view hierarchy instead of the default activity dump
> Encoded hierarchy is smaller is size and has a lot more information about the views

Bug: 79861035
Change-Id: I84316b1b0031282b0579f3aaac22d8d8f00d8bcb
2018-05-16 10:55:21 -07:00
Vadim Tryshev d9a1337b40 Loading task tiles on accessibility scrolling
Bug: 79749339
Change-Id: I5bd2652c0fca08ddd5e366415411b9b99caa71fb
Testing: Manual
2018-05-15 17:17:48 -07:00
Vadim Tryshev d0788021f9 Logging Square button presses opening Recents
Examples of traces are in notes.
Using the button for closing Recents is not logged.
Dooble-tap logs only one entry.

Bug: 79437767
Test: logcat
Change-Id: Ic2c50ecc937dd2e9cb4b3a7c7439d77bba9b372c
2018-05-15 14:58:27 -07:00
Hyunyoung Song 61745e17c7 Merge "Add logging for Onboarding Bug: 73784423" into ub-launcher3-edmonton 2018-05-15 21:48:06 +00:00
Tony Wickham 46afdf5194 Merge "Tune quick scrub" into ub-launcher3-edmonton 2018-05-15 21:34:34 +00:00
Hyunyoung Song 018eec6899 Add logging for Onboarding
Bug: 73784423

* Discovery bounce, homescreen, hotseat
UserEvent: action:TIP
UserEvent:  Source child:HOTSEAT id=0 BOUNCE

* Discovery bounce, overview, prediction
UserEvent: action:TIP
UserEvent:  Source child:PREDICTION BOUNCE

* Swipe up from navbar text (visibility, cancel target)
UserEvent: action:TIP
UserEvent:  Source child:TIP SWIPE_UP_TEXT

UserEvent: action:TAP
UserEvent:  Source child:CANCEL_TARGET SWIPE_UP_TEXT

* Quickscrub text (visibility, cancel target)
UserEvent: action:TIP
UserEvent:  Source child:TIP QUICK_SCRUB_TEXT

UserEvent: action:TAP
UserEvent:  Source child:CANCEL_TARGET QUICK_SCRUB_TEXT

* Prediction apps text (visibility, cancel target)
UserEvent: action:TAP
UserEvent:  Source child:TIP PREDICTION_TEXT

UserEvent: action:TAP
UserEvent:  Source child:CANCEL_TARGET PREDICTION_TEXT

Change-Id: I94710b5ed3d00e3599985b154eb660af4a958288
2018-05-15 14:31:07 -07:00
Tony Wickham d58c2d5a48 Tune quick scrub
- Change durations/interpolators when starting from home vs an app
- Increase dim animation duration after quick scrub from an app
  - Also fixed contention between setting dim alpha for the animation
    and setting dim alpha for scrolling
Change-Id: I2c9ea52d4eafaad8954f3ff9d3c0c459a07953bc
2018-05-15 11:49:09 -07:00
Vadim Tryshev 3154cd16b0 Keep clear-all button revealed after dismiss
If it was visible before the dismiss, it will be visible after that.
As a nice side effect, it will preserve visibility on any layout, say,
after a rotation.

Bug: 79117932
Test: Manual
Change-Id: Ia8a544af1326458d4e2d7a07ae2b668f604bc0b3
2018-05-15 11:28:24 -07:00
TreeHugger Robot c14adabe99 Merge "Scrolling on the most recent task upon Overview start" into ub-launcher3-edmonton 2018-05-15 17:47:50 +00:00
Sunny Goyal ff102be52b Merge "Showing the caret/drag handle in transposed layout" into ub-launcher3-edmonton 2018-05-15 17:25:04 +00:00
Sunny Goyal 0076e67dc4 Showing the caret/drag handle in transposed layout
> Adding a simple touch-down effect, without capturing the motion event

Bug: 79526736
Change-Id: I50dcc76836765d158dfdcef2886b190a85707ff2
2018-05-15 09:47:32 -07:00
Vadim Tryshev eb701c6360 Scrolling on the most recent task upon Overview start
Fixes this problem:
1. Open a single task in Recents
2. Dismiss via Clear-all
3. Start a task
4. Press Home
5. Press square button
get Recents revealing Clear All button

Bug: 79117932
Test: Manual
Change-Id: I47bcc50cb72f1757025d2abac0196460e0bb3f36
2018-05-14 17:24:00 -07:00
TreeHugger Robot 6baca0fc47 Merge "Updating the dark theme color to match system-ui theme" into ub-launcher3-edmonton 2018-05-14 23:17:35 +00:00
Sunny Goyal 12f803843b Updating the dark theme color to match system-ui theme
Bug: 79691756
Change-Id: I12058ca2d7651353af99f4ce65dc90339868bfc0
2018-05-14 15:58:19 -07:00
Winson Chung a92961a639 Merge "Clear ref to animation after drag & drop animation completes" into ub-launcher3-edmonton 2018-05-14 22:49:57 +00:00
TreeHugger Robot b299f3f172 Merge "Ensure that animaiton.end() is properly dispatched" into ub-launcher3-edmonton 2018-05-14 21:42:34 +00:00
TreeHugger Robot d12033ab4a Merge "Adding some activity state information in dump" into ub-launcher3-edmonton 2018-05-14 21:37:28 +00:00
TreeHugger Robot 047437e738 Merge "Increating the scrim alpha for super-light wallpapers" into ub-launcher3-edmonton 2018-05-14 21:30:40 +00:00
Sunny Goyal e43d00db40 Adding some activity state information in dump
Bug: 79216829
Change-Id: I3e1a5f5508f09b9ce2737c13d917fbab531c2572
2018-05-14 14:23:42 -07:00
Sunny Goyal 039b9d2bed Increating the scrim alpha for super-light wallpapers
Bug: 79111591
Change-Id: I645d5e536ea504a37f7cc0bb94a677f694bf4385
2018-05-14 13:56:06 -07:00
Ng Zhi An cabc1ff276 Add click handler for qsb on boot to keep it responsive
Bug: None
Test: reboot device, qsb is responsive, and launches search,
after widgets initialized, qsb remote view takes over click

Change-Id: I30c01ce1ff3da63cc0324f822d21901eb6a49c2d
2018-05-14 13:06:09 -07:00
Vadim Tryshev 98f4fc00ac Following correct pattern for using logToggleRecents
It supposed to involve checking enabledness.

Bug: 72967764
Test: No
Change-Id: I2a852932c665c24b8dc7c65f63bdaea91fa7ee5f
2018-05-14 11:53:47 -07:00
TreeHugger Robot 7c86a1ad42 Merge "Increasing thread priority while loading high res icons" into ub-launcher3-edmonton 2018-05-14 18:41:42 +00:00
Sunny Goyal 73954df645 Ensure that animaiton.end() is properly dispatched
When window animation is cancelled, we skip running the animation. But since we
initialize the UI before the animation started, the UI is never reset.

Bug: 79657221
Change-Id: Ic420d1d99f5242541e6809f3207355ea9876ca9c
2018-05-14 11:25:24 -07:00
Sunny Goyal 55631dd8af Fixing task location calculation in seascape
> In seascape, the task is aligned to the left insets

Change-Id: I2bc090698320045a014dc713d57ca412a58bf9e4
2018-05-14 11:08:41 -07:00
Winson Chung 7dd3b521ff Clear ref to animation after drag & drop animation completes
- LauncherAppTransitionManagerImpl -> DragLayer -> mDropAnim -> mDragView
  (via the update listener) -> mBitmap

Bug: 76162466
Test: Take hprof after picking up an app or widget, ensure there are no
      references to the image created for drag and drop

Change-Id: Iffc92eed13775921567f9ac25fea8e356d6fe963
2018-05-14 10:12:50 -07:00
TreeHugger Robot 99dcc9fd83 Merge "Fixing crash on keyboard shortcuts popup" into ub-launcher3-edmonton 2018-05-14 05:21:31 +00:00
TreeHugger Robot 266fb59a33 Merge "Remove fake 319 event generation" into ub-launcher3-edmonton 2018-05-14 05:21:14 +00:00
Vadim Tryshev 3455f8d0f6 Fixing crash on keyboard shortcuts popup
Bug: 76218025
Test: Manual
Change-Id: I11c9005764c7b0492138dc17716a0c6c4578798e
2018-05-11 20:02:20 -07:00
Vadim Tryshev 279e15152b Remove fake 319 event generation
Bug: 72967764
Test: Running perf tests
Change-Id: If012b0f8e964b9bcd5fb230e5a2232d27cea1dfd
2018-05-11 17:51:14 -07:00
Winson Chung a7b42bbf91 Merge "Revert "Revert "Update sysui flags on swipe, skip task backgrounds on opaque apps""" into ub-launcher3-edmonton 2018-05-11 23:47:55 +00:00
TreeHugger Robot fce7861620 Merge "Fixing various quickscrup controls for fallback activity" into ub-launcher3-edmonton 2018-05-11 23:12:13 +00:00
Sunny Goyal 9829060491 Fixing various quickscrup controls for fallback activity
> Not auto advancing to next task when swiping from home
> Starting from the current tile, when scrubing on recents activity

Bug: 79558175
Change-Id: I2975dbb254ba0004b34ce5d86d9733faad4943ff
2018-05-11 16:03:12 -07:00
Sunny Goyal 6e180fdee5 Restoring the vertical progress if the task launch failed
Bug: 79170705
Change-Id: I7b2075f7a4bad2acdc55a15b7c7a35fdbd60514e
2018-05-11 15:26:28 -07:00