Commit Graph

1407 Commits

Author SHA1 Message Date
Winson Chung
1296cf26f2 Updating shared lib for fw api change.
Change-Id: I42c6c85693d7f1c2b7a38de5f3dd05f43612b504
2018-11-14 10:36:27 -08:00
Tony Wickham
c8d1716a9c Merge "Creating a new dismiss animation while one is pending is now valid" into ub-launcher3-master 2018-11-14 02:43:39 +00:00
Tony Wickham
026a5db8fd Merge "Fix quick switch when swiping right on back button" into ub-launcher3-master 2018-11-14 02:43:15 +00:00
Tony Wickham
cad49c6721 Creating a new dismiss animation while one is pending is now valid
It used to be an invalid state to create a new dismiss animation while
one was pending, because the only way to do it was to swipe up. However,
now there are a number of places we create the dismiss animation, e.g.:
- When entering split screen
- Clear all
- Uninstalling an app

So now, instead of calling this an illegal state, we simply cancel the
previous pending dismiss if it exists.

Bug: 118880699
Bug: 118400078
Change-Id: I4d073f7e9d50e832ba4ae55391530040a0fac50c
2018-11-13 15:47:29 -08:00
Tony Wickham
bdc5f3d9e6 Fix quick switch when swiping right on back button
Deferring the window tracking when touching down on the back button means that
we don't set isQuickSwitch before setting the state to FAST_OVERVIEW, making it
not scale up to be full screen. To fix this, we reapply the state when preparing
QuickScrubController for quick switch.

Change-Id: Ib3dcf300c45a00673ff9337f98d16d4e8cdf1ea0
2018-11-13 15:31:57 -08:00
TreeHugger Robot
4194f242ae Merge "Fix quick scrub skipping more than one page" into ub-launcher3-master 2018-11-13 18:04:10 +00:00
Tony Wickham
873264c71b Fix quick scrub skipping more than one page
There was a race condition where we were getting onQuickScrubProgress
before onQuickScrubStart. If we got enough of those, we were jumping
some pages before the block is set in onQuickScrubStart (which also adds
its own page jump). Now we don't send any onQuickScrubProgress() to
QuickScrubController until we have sent onQuickScrubStart()

Bug: 118636260
Change-Id: I60084850b0b1baad34112ab5945fce81cc3a3c53
2018-11-13 17:58:31 +00:00
Winson Chung
4e362ea0f5 Clear click listener when the icon is removed.
- The click listener should be removed, otherwise, it can still active
  and clickable when the TaskView is bound to a new Task whose icon
  has not yet been loaded, which can cause crash.

Bug: 118834133
Change-Id: Ifd9fd8fe99b6177851d366f0c21f8fad59f1950e
2018-11-12 19:21:31 +00:00
Bill Yi
f1982fcaae Import translations. DO NOT MERGE
Change-Id: I22579d4f7492047b291e6c6a7f73508ccad3af2d
Auto-generated-cl: translation import
2018-11-10 00:27:25 -08:00
Sunny Goyal
1a9cbd3c88 Moving BaseIconCache to icon lib
Change-Id: I4fb56dcd6231a848d152e690edaf8885efbc995a
2018-11-08 15:18:25 -08:00
Vadim Tryshev
b63bcf1113 Merge "Adding animation when opening app usage settings" into ub-launcher3-master 2018-11-06 22:26:38 +00:00
Sunny Goyal
066ace1b88 Replacing setAlphaComponent with setAlphaComponentBound for better animation interpolation
setAlphaComponent throws expetion for invalid range, which can cause brashes in overshoot
interpolation

Bug: 118390004
Change-Id: Ic9c5ff3d660eba353b982c4c47ccfaf329b3e296
2018-11-06 09:59:03 -08:00
Sunny Goyal
d7239fcc52 Removing UserManagerCompat wrapper for getting baded label
This removes some crass dependency on Launcher compat implementation
making it easier to move iconCache to a separate library

Change-Id: If5fab0c82d98089cde6f54b6a374fb7bb2db5ae8
2018-11-05 17:33:15 -08:00
TreeHugger Robot
8ac8d73530 Merge "Split out launcherProtos from sysui_shared.jar" into ub-launcher3-master 2018-11-06 01:14:56 +00:00
Hyunyoung Song
0ae3888ad1 Split out launcherProtos from sysui_shared.jar
Bug: 113043444
Change-Id: I3115cdc7871b0f77601e399df01cdde0dde87c6e
2018-11-05 17:01:54 -08:00
Jon Miranda
dad8d4434d Remove scrim fade animation when returning to launcher.
Since the DragLayer translates downwards, we no longer need the scrim fade
animation to avoid the hard scrim line.

Bug: 117677608
Change-Id: I4cd524d798579289d61bfe296f6de42bd22b0cb7
2018-11-05 15:09:09 -08:00
Hyunyoung Song
08584e18d6 Merge "Add StatsLog*Manager for logging. Bug: 113043444" into ub-launcher3-master 2018-11-05 20:04:59 +00:00
Hyunyoung Song
fc00747909 Add StatsLog*Manager for logging.
Bug: 113043444

Verification: (19) is our event classifier number
11-05 11:24:28.188   932   994 I statsd  : { 1541445868000000000 766293363001 (19)0x10000->1[I] 0x20000->0[I] 0x30000->0[I] 0x40000->[S] 0x50000->1[I]  }

Change-Id: I75403837f9fa8e51efa012fb708bce7efc9c4488
2018-11-05 11:41:38 -08:00
TreeHugger Robot
dd44c8cd08 Merge "FeatureFlag: quick scrub is now quick switch" into ub-launcher3-master 2018-11-01 21:39:04 +00:00
Tony
50876bfac7 FeatureFlag: quick scrub is now quick switch
- Scale down current task and translate it to the left
- Translate previous task in from the left
- This is a toggle; quick switch again returns to the first task

Currently this is implemented by repurposing onQuickScrub(progress) to update the positions
of the first two pages. This makes tracking velocity a bit difficult; if we want to go down
this path in the long run we should probably track velocity properly on MotionEvents.

Change-Id: I4445b5f08b6e88e71cbb5e30b1f1d45c5f1edc68
2018-11-01 17:26:31 -04:00
Vadim Tryshev
56e56095f7 Adding animation when opening app usage settings
Bug: 118319143
Test: manual test on a prototype
Change-Id: I33eab24f180daa60bba221df585469d141526b4b
2018-10-31 13:55:04 -07:00
Tracy Zhou
470da4e3e4 Finish LauncherLayoutListener when launcher transition animation ends.
In QuickScrub mode, the right task gets clipped out at the end of the animation. This is because LauncherLayoutListener continues to clear out where CurrentRect is, while the app surface is not displaying. We want to finish the listener after the transition animation.

Bug: 111697218
Test: Manual test

Change-Id: I4dd5f5cbcec0574082fd1463e07c116a9e9305d3
2018-10-30 14:58:03 -04:00
Winson Chung
f107c9ef6d Fixing regression in background task loading.
Bug: 117603579
Test: Take systrace, ensure that we aren't loading thumbnails on the UI
      thread

Change-Id: I4b522246a5ab12dc37c1dffdccd05232bbc1f6fe
2018-10-29 10:51:10 -07:00
TreeHugger Robot
a96f916504 Merge "Moving Plugin and feature flags UI to androidX" into ub-launcher3-master 2018-10-25 20:25:09 +00:00
Sunny Goyal
eae0514f1a Moving Plugin and feature flags UI to androidX
> Combining both preference into a single screen
> Adding plugin preference screen so quickstep build

Change-Id: I3d2ff3ebdac3c774659e79ecb81be6f75f765eb0
2018-10-25 13:07:42 -07:00
Bill Yi
934a1cb6f4 Import translations. DO NOT MERGE
Change-Id: I598aeef629ca1a842172b6108c64f29aadb9f06a
Auto-generated-cl: translation import
2018-10-25 06:26:36 -07:00
Tracy Zhou
8deb4c667e Merge "Support Live Tile in Quickstep (Pt1) - Z ordering" into ub-launcher3-master 2018-10-25 00:55:17 +00:00
Vadim Tryshev
e10fedb5f3 Merge "Adding code to open DWP settings of a recent task" into ub-launcher3-master 2018-10-24 21:56:23 +00:00
Tracy Zhou
d43e7c2fd4 Support Live Tile in Quickstep (Pt1) - Z ordering
- Place Launcher above app surface.
- Use LauncherLayoutListener to clear the area where the current task is in order to punch a hole and reveal the app view underneath

Bug: 111697218
Test: Manual test

Change-Id: I4d4e0f1113a8e60566257c030ae9b591789eb3b3
2018-10-24 14:24:54 -07:00
Vadim Tryshev
3514a22313 Adding code to open DWP settings of a recent task
Will transition to an API for opening settings if this CL lands:
ag/5338673.

Bug: 118319143
Test: manual test on a prototype
Change-Id: Ia40576e0cd6196bfb0a0e8657916bbadff4c0b59
2018-10-24 13:30:33 -07:00
Hyunyoung Song
e3f664db79 Merge "Increase the touch slop for noti shade pull down. Bug: 116879058" into ub-launcher3-master 2018-10-24 20:01:20 +00:00
Hyunyoung Song
0638949fe9 Increase the touch slop for noti shade pull down.
Bug: 116879058

Change-Id: I3ff0491292e5238cd74bb6d97c0ab79711ad3af1
2018-10-24 10:18:00 -07:00
Winson Chung
0d9275deba Updating shared lib from package & class rename.
Change-Id: If3003c6e454ea60f30372f985fa7f34c9b6ed46d
2018-10-23 15:42:41 -07:00
Winson Chung
ad6fd393f8 Don't assume there will be a running task
- During tests, if apps and launcher are killed, then there may be no
  running task

Change-Id: Iaef1c4ad0b31cec3c8da7d868e3e7b49d3b09faa
2018-10-23 15:11:42 -07:00
Winson Chung
445ab9d8cd Merge "Caching clean up, remove dependency on old shared lib loading/caching logic" into ub-launcher3-master 2018-10-23 19:59:21 +00:00
Winson Chung
fd61e04424 Updating shared lib
Bug: 117603579
Change-Id: Ie4fbb962bc1ae3d13bfa7778aa505e1ad7ea8853
2018-10-23 11:44:36 -07:00
Winson Chung
cc8dbf31db Caching clean up, remove dependency on old shared lib loading/caching logic
- Clarify caching policy, we only cache the last N task snapshots
- Pull out necessary logic from RecentsTaskLoadPlan (deprecated) into
  launcher class RecentTasksList which also manages the invalidation of
  the last loaded list
- Pull out logic from task loading logic in the shared lib into separate
  classes TaskThumbnailCache and TaskIconCache, and have each task view
  manage the load request for data

Bug: 117603579
Test: Thumbnails still load

Change-Id: I938e4dea19e7f5d24724c32194d254ca003e89aa
2018-10-23 00:01:07 +00:00
Vadim Tryshev
36bf5d6f24 Enable creating task shortcuts without inheriting
Bug: 117888000
Test: manual test with a prototype
Change-Id: Ib7edab875c18b60cafc912325bd4e1fa0b7f515c
2018-10-19 17:41:23 -07:00
Vadim Tryshev
3f007ce286 Merge "Enabling creating additional shortcuts by any launcher" into ub-launcher3-master 2018-10-19 18:49:24 +00:00
Vadim Tryshev
0ca6c30bf0 Enabling creating additional shortcuts by any launcher
Bug: 117888000
Test: manual test with a prototype
Change-Id: I4d678a6c35341e61c74ed295d2b2202c5eebe034
2018-10-19 11:39:02 -07:00
TreeHugger Robot
30dfe8add3 Merge "Fixing state not set properly when configuration changes and remote animation callback comes after threshold is crossed" into ub-launcher3-master 2018-10-19 18:08:42 +00:00
Winson Chung
6e11a2d9f2 Keep input consumer registered and rely on enabled state instead
Bug: 117224991
Test: Ensure swipe up still works
Change-Id: I719ce41959fca2157a3db614e90d404551299007
2018-10-18 22:53:41 +00:00
TreeHugger Robot
1ba4ee89be Merge "Modifying SystemShortcut to enable support for RemoteAction" into ub-launcher3-master 2018-10-17 23:55:24 +00:00
Tony Wickham
a937981b87 Merge "Add AllAppsRow plugin interface" into ub-launcher3-master 2018-10-17 20:47:51 +00:00
Vadim Tryshev
9acafc228b Modifying SystemShortcut to enable support for RemoteAction
See the bug, comment #1 for details

Bug: 117888000
Test: manual test with a prototype
Change-Id: I0422df6006e2cfc7344fc3bee531341b11b1050e
2018-10-17 13:45:25 -07:00
Sunny Goyal
420d54544e Using a common class for observing secure settings
Bug: 117519297
Change-Id: Ie9d948130aea50bf10c9fc625fdb16f4cfc4712e
2018-10-17 12:07:13 -07:00
Tony Wickham
5c5c118c48 Add AllAppsRow plugin interface
Bug: 115877296
Change-Id: I750941f220d08ca9ee14067253253f6d81417101
2018-10-16 17:22:09 -07:00
Tracy Zhou
dbccb545b5 Merge "Apply animation seen to onStateSetImmediately." into ub-launcher3-master 2018-10-16 19:03:51 +00:00
Tracy Zhou
ff66e3a71f Apply animation seen to onStateSetImmediately.
Sometimes onStateSetImmediately gets called upon swipe up, especially when the phone just get unlocked.

Will add a test following this change.

Change-Id: I2d7117ae919663385b300433eceb063af09a5431
BUG: 113629419
Test: Manual
2018-10-16 18:38:54 +00:00
Sunny Goyal
ba7dba3983 Fixing state not set properly when configuration changes
and remote animation callback comes after threshold is crossed

The transition length is updated when removeAnimations is received.
If the gesture delta is crossed before that, we were ending up in
long-swipe mode as due to an incomplete check.

Bug: 117549010
Change-Id: If5471c538ac51b84f176a1fad42112e84046da63
2018-10-15 15:31:10 -07:00