Commit Graph

1378 Commits

Author SHA1 Message Date
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
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
Winson Chung
7f96440ee0 Fix issue with side pages being visible momentarily when swiping up
- Apply the initial scale to overview while it is in the backround app
  state to ensure the side pages are positioned accordingly.  Since this
  affects the computation of the target rects for the overview
  animation, also ensure that we calculate those with the final target
  overview scale applied.

Bug: 117439562
Change-Id: I5e00cf1683e31b22cf937b966d52f8cbe745aaba
2018-10-12 14:46:13 -07:00
Winson Chung
181f9865ca Merge "Reduce extraneous loading of task snapshots/icons" into ub-launcher3-master 2018-10-11 23:09:42 +00:00
TreeHugger Robot
e0c16831a8 Merge "Fixing dead lock in loading icon for recents" into ub-launcher3-master 2018-10-11 21:33:14 +00:00
Sunny Goyal
719f58b23f Fixing dead lock in loading icon for recents
> getBitmapInfo() is called on background thead which blocks
  on the main thread to get InvariantDeviceProfile
> getDefaultIcon() can be called on the main thread, which
  would get blocked on a previous call of getBitmapInfo()

Bug: 117588621
Change-Id: I6549398c7e0a49284fe59950965495074ab8cdd0
2018-10-11 13:59:20 -07:00
Winson Chung
4292c3038b Reduce extraneous loading of task snapshots/icons
- Skip handling loading visible task data after resetting overview, we
  currently keep the tasks bound to their task views (some calls are not
  synchronous with the lifecycle of recents, can be changed later), so
  the next call to loadVisibleTasks before the tasks have been loaded would
  load snapshots for old tasks
- Skip loading tasks if the previously requested load plan is still valid,
  this can happen because setCurrentTask() will be called multiple times
  during swipe up

Bug: 117603579
Change-Id: Ie58ded14dedbb3934d08163ca7939d89310c3ecf
2018-10-11 12:48:16 -07:00
Tony Wickham
76cce29d66 Add plugin support
- Add libs/plugin_core.jar
- Include plugin_core in Launcher3 build (it is already present other
  builds as part of the updated shared lib)
- Add PluginEnablerImpl that uses SharedPrefs to enable/disable plugin
  components
- Add src_plugins, where plugin interfaces will live. It has a build
  rule to create a jar that plugin projects will depend on.
- Copy PluginPreferencesFragment from sysui but using our implementation
  for PluginEnabler

Bug: 115877296
Change-Id: I3db54677eaceb10f92018c0f9d18920ad9ffac39
2018-10-10 14:02:56 -07:00
Sunny Goyal
4ed58d6c03 Adding tests for fallback recents when a 3rd party launcher is installed
Change-Id: I1d4da13cc779f49832008b12b9628d01631faffe
2018-10-09 14:25:01 -07:00
Sunny Goyal
b4e287a77c Only considering tap on recents view if finger didn't move
Bug: 114450749
Change-Id: Id99fd8c024140025b14973205f9080daa86db522
2018-10-04 10:01:08 -07:00
TreeHugger Robot
674e947979 Merge "Cancelling previous touch interaction when a new touch starts" into ub-launcher3-master 2018-10-03 23:35:27 +00:00
Vadim Tryshev
7590edef0a Merge "Make @QuickstepOnOff and @PortraitLandscape available to all UI tests." into ub-launcher3-master 2018-10-03 17:23:43 +00:00
Vadim Tryshev
6ffb2c8faa Make @QuickstepOnOff and @PortraitLandscape available to all UI tests.
Also, fix rotation as Portrait as starting poin for all tests, to avoid
tests running in unexpected configuration.

Bug: 115645301
Test: run all Nexus tests
Change-Id: I3ab0e91db111eeefda77af2960c43962a119de0c
2018-10-02 17:32:01 -07:00
Winson Chung
f8e04b6464 Break out of quickscrub if task fails to launch
- Return the user to their previous state if quickscrub fails to launch
  the new task (ie. if it finishes itself mid-launch).

Bug: 117163033
Change-Id: If03cf0431be40d9b81dfcc5dffcb2bf4844bbbd2
2018-10-02 23:22:09 +00:00
Sunny Goyal
6c3f44b663 Cancelling previous touch interaction when a new touch starts
Bug: 79220524
Change-Id: I7157dcdc7af92e1e5689da56c87961a82a0e6a05
2018-10-02 11:29:49 -07:00
Hyunyoung Song
be2307bbea Reduce falsing on swipe down for notification shade.
b/116879058

Change-Id: If3dde635cdff09faf27dbab2cd022b9d246c7c2b
2018-10-01 11:41:37 -07:00
TreeHugger Robot
ff2d0d0a9e Merge "Defer removing the task view until the app has drawn" into ub-launcher3-master 2018-09-28 18:30:56 +00:00
Winson Chung
2660ca5d0e Ensure that we don't additionally crop the launcher surface
- Now that we are controlling the launcher app surface as well while
  swiping up into overview, skip applying the crop to any opening
  remote animation targets.

Bug: 70341013
Test: Swipe up, and ensure everything still works
Change-Id: I87b4021c0fc0e2997185d4d12f26b2e06999ff57
2018-09-27 18:26:52 +00:00
TreeHugger Robot
08a915c0ce Merge "Add some gesture logging to track down quickscrub launch issue" into ub-launcher3-master 2018-09-26 23:44:44 +00:00
Winson Chung
665bc46d54 Add some gesture logging to track down quickscrub launch issue
- Keep rudimentary log of the last few gestures for dumping with the BR
- Also renaming updateInteractionType since we only use it to change
  to the quickscrub starting interaction type now, which is less
  confusing

Bug: 112783625

Change-Id: Ic024684caf2841cd7c09df9481163ea0c0ae03bd
2018-09-26 23:33:36 +00:00
Hyunyoung Song
48cb7bc7a4 Move IconNormalizer/ShadowGenerator/LauncherIcons to icons package
Bug: 115891474

Sending out the package name changing CL first before I make
LauncherIconsHandler and tests around it.

Change-Id: Ic10479a06333e1435b392a7072cd08782e710cbd
2018-09-26 11:57:37 -07:00
Winson Chung
c533f315ca Defer removing the task view until the app has drawn
Bug: 111896388
Change-Id: I8c900e56fcbbdc400dce646c50f8f14b1da4e17f
2018-09-25 18:18:18 -07:00
TreeHugger Robot
8e95c9b5e6 Merge "Scaling down the icon in same path as scaling up" into ub-launcher3-master 2018-09-25 23:50:22 +00:00
Sunny Goyal
11137385a3 Scaling down the icon in same path as scaling up
If for some reason, the animation is not created (eg in case of forced rotation),
we should also skip scaling down the icon so that the final UI is always in
a consistent state.

Bug: 78793089
Change-Id: Ie3e8b6d14b05ee983bc5e12401c1fa078034e392
2018-09-25 14:26:25 -07:00
Sunny Goyal
8c79668069 Merge "Using velocity tracker for computing the velocity of motion events" into ub-launcher3-master 2018-09-25 21:15:26 +00:00
Tony
6379d5370b Use task insets rather than launcher insets when swiping down
This fixes the issue where dragging down on full screen apps was
offset by the status bar even though it shouldn't be.

Bug: 77979532
Change-Id: I8cb17778c4ae66b1821e86dd757626f875a27d2d
2018-09-24 15:31:40 -04:00
Hyunyoung Song
f58cf5e337 Disable scrolling noti shade on abstract floating view with swipe down
interactions already doing something else.

Bug: 116143342

Change-Id: If3716de0eb1f7b508c3b74dbe2593ba62fffcf74
2018-09-19 17:05:09 -07:00
Hyunyoung Song
24b209c65a Swipe down on status bar
Bug: 111839343

Change-Id: I5332dc098af980b4d4ef45b095586d68975ad98c
2018-09-18 11:11:04 -07:00
Sunny Goyal
4d8ec15fb5 Using velocity tracker for computing the velocity of motion events
Change-Id: I14f2f970825a2936f4bb285834405d67daf8667c
2018-09-13 09:50:47 -07:00
TreeHugger Robot
64d5f27f03 Merge "Do not ask for rotation lock when controlling quickscrub from launcher activtiy" into ub-launcher3-master 2018-09-11 17:25:44 +00:00
Sunny Goyal
05fbc53817 Do not ask for rotation lock when controlling quickscrub from launcher activtiy
When controlling from launcher activtiy, there is no activity focus change, and rotation
lock is not required.

Bug: 114074832
Change-Id: Ia976f9daa9b0f87d3493138d12cb37a490b8b1bd
2018-09-10 16:53:14 -07:00