Commit Graph

12718 Commits

Author SHA1 Message Date
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
Android Build Merger (Role) 6e2a403d78 [automerger] Fixing wrong accessibility focus when opening a floating view am: de75321542
Change-Id: Idb4db3d979a4017804b744c06524905f39f8146e
2018-05-16 20:11:06 +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
Sunny Goyal cbfff7e4d8 Merge changes from topic "am-16d642de-bdbc-4620-a1c0-f438265a60e1" into ub-launcher3-master
* changes:
  [automerger] Dumping the excoded view hierarchy instead of the default activity dump am: 55eb556a4b
  Dumping the excoded view hierarchy instead of the default activity dump
2018-05-16 19:57:05 +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
TreeHugger Robot 0b1174ddbe Merge "Adding Clear All to accessibility chevron on Recents" into ub-launcher3-edmonton 2018-05-16 19:12:00 +00:00
Android Build Merger (Role) 7fb181e1c1 [automerger] Adding Clear All to accessibility chevron on Recents am: 3f51631b80
Change-Id: I189940125220121306ff63fe15d1f7dae7d3568d
2018-05-16 19:00:57 +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
Android Build Merger (Role) 8f1fd923c3 [automerger] Improve Task user event logging Bug: 79539824 Bug: 79541772 am: 1241e61a45
Change-Id: Idccbbb09c060485250495ebed24fc68b81f0b1aa
2018-05-16 18:26:53 +00: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
Android Build Merger (Role) 44eb2fd583 [automerger] Dumping the excoded view hierarchy instead of the default activity dump am: 55eb556a4b
Change-Id: If5437083dc0990b9d4e26348294974a60e5e8e79
2018-05-16 17:55:27 +00: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
Android Build Merger (Role) 769b4742eb [automerger] Fixing reverted order of accessibility scrolling in Recents am: 0fc0713253
Change-Id: I1b0c34d71a565d195bc2250ff8b24aa16a639523
2018-05-16 01:42:03 +00:00
Hyunyoung Song 61745e17c7 Merge "Add logging for Onboarding Bug: 73784423" into ub-launcher3-edmonton 2018-05-15 21:48:06 +00:00
Hyunyoung Song 0b40d55909 Merge changes from topic "onboarding_logging" into ub-launcher3-master
* changes:
  [automerger] Add logging for Onboarding Bug: 73784423 am: 018eec6899
  Add logging for Onboarding Bug: 73784423
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
Android Build Merger (Role) 1883624373 [automerger] Add logging for Onboarding Bug: 73784423 am: 018eec6899
Change-Id: Id1bfebe60fb62190edee8b8838b076a2d5d47e97
2018-05-15 21:32:55 +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
Android Build Merger (Role) adb17c5062 [automerger] Tune quick scrub am: d58c2d5a48
Change-Id: I79f80a1098be6dce9a74c24335a53008e25e842f
2018-05-15 18:49:30 +00: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
Android Build Merger (Role) 3b1558c51e [automerger] Keep clear-all button revealed after dismiss am: 3154cd16b0
Change-Id: I8888e7311a9a8bb284d69d0408af2f5f4de948ea
2018-05-15 18:28:59 +00: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
TreeHugger Robot 1781f53d4e Merge changes from topic "am-526b8acc-173d-4d06-9d9a-51ebeeb308c0" into ub-launcher3-master
* changes:
  [automerger] Scrolling on the most recent task upon Overview start am: eb701c6360
  Scrolling on the most recent task upon Overview start
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
Android Build Merger (Role) 8d80f91221 [automerger] Showing the caret/drag handle in transposed layout am: 0076e67dc4
Change-Id: I99a219d119548f2132a691607490ca379d3b4531
2018-05-15 16:47:38 +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
Android Build Merger (Role) 7710a427bf [automerger] Scrolling on the most recent task upon Overview start am: eb701c6360
Change-Id: I6b167b7729161552e61503580a44a511979f97a2
2018-05-15 00:25:44 +00: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
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
Winson Chung cc721fcffa Merge changes from topic "am-9c233739-95e1-4bd7-8c26-6018062f8dc7" into ub-launcher3-master
* changes:
  [automerger] Clear ref to animation after drag & drop animation completes am: 7dd3b521ff
  Clear ref to animation after drag & drop animation completes
2018-05-14 22:49:57 +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
Android Build Merger (Role) 1f3d19f44b [automerger] Adding some activity state information in dump am: e43d00db40
Change-Id: I2202fef02534363990dfd6e2cb50a345a452cf59
2018-05-14 21:23:48 +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
Android Build Merger (Role) 8d231ba4d3 [automerger] Add click handler for qsb on boot to keep it responsive am: cabc1ff276
Change-Id: I13050c32720814e2a7ce133b7392c29334af9854
2018-05-14 20:06:44 +00: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
TreeHugger Robot 7c86a1ad42 Merge "Increasing thread priority while loading high res icons" into ub-launcher3-edmonton 2018-05-14 18:41:42 +00:00
TreeHugger Robot 82516aea76 Merge changes from topic "am-798bb968-b484-4de8-95c7-cb474fdebebc" into ub-launcher3-master
* changes:
  [automerger] Increasing thread priority while loading high res icons am: 8201d97225
  Increasing thread priority while loading high res icons
2018-05-14 18:41:42 +00:00
Android Build Merger (Role) a0e2f7f2d5 [automerger] Clear ref to animation after drag & drop animation completes am: 7dd3b521ff
Change-Id: I07ffa758d6b2357fd7df98a464a7b821a265cc2e
2018-05-14 17:13:01 +00: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
Android Build Merger (Role) dfb74acf83 [automerger] Fixing crash on keyboard shortcuts popup am: 3455f8d0f6
Change-Id: Ib63e65cbd785fc980fb180c95a98ba253af78558
2018-05-12 03:02:59 +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
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
Android Build Merger (Role) 622fd6eeca [automerger] Revert "Revert "Update sysui flags on swipe, skip task backgrounds on opaque apps"" am: a0f09f94b5
Change-Id: I52faf19322e3f40d91cd8d8f837cc5e242da3f1d
2018-05-11 21:55:23 +00:00
Winson Chung a0f09f94b5 Revert "Revert "Update sysui flags on swipe, skip task backgrounds on opaque apps""
This reverts commit f5d5b6f00f.

Reason for revert: Can be submitted once a build with ag/4040557 is available for flashing

Change-Id: Id94440a1dc9b765bb9758af81b0567628befa283
2018-05-11 21:55:21 +00:00
TreeHugger Robot 7f71198dc8 Merge "Separating the draglayer alpha into multiple dimensions so that different animaitons can run without affecting the other." into ub-launcher3-edmonton 2018-05-11 19:26:51 +00:00
Android Build Merger (Role) 8d035d7885 [automerger] Separating the draglayer alpha into multiple dimensions so that different animaitons can run without affecting the other. am: 6001ea2e2f
Change-Id: I1c7b9918d550d6af680cd129d2f7747ee3bc3220
2018-05-11 19:18:46 +00:00
Sunny Goyal 6001ea2e2f Separating the draglayer alpha into multiple dimensions so that different animaitons
can run without affecting the other.

Bug: 79323355
Bug: 78880824
Change-Id: I11cb464ebdaad0a7f0a56d4bc4c3dff1d56da16b
2018-05-11 12:18:39 -07:00
Android Build Merger (Role) 7b81a36ba6 [automerger] Clear task when opening WallpaperPicker am: dfb509c580
Change-Id: I2fcaa2d97204f5967e6b522896e94e1826421328
2018-05-11 17:53:21 +00:00