Commit Graph

17792 Commits

Author SHA1 Message Date
Sunny Goyal 8304c32077 Reusing LayoutListener instead of creating a new one everytime
Bug: 122345781
Change-Id: Ica43849030afb497b0444e9ce474e7c3bdb9ee73
2019-01-09 16:43:00 -08:00
Jon Miranda 55a32272be Add remote animation for unlocking device.
Removed the workaround we had for animating sysui scrim based on SCREEN_OFF
and USER_PRESENT, since it is now properly handled via the unlock animation.

Bug: 65162781
Change-Id: I5341cc1d3b4f0761b8cf58fdc9fc1b895f2a128e
2019-01-09 10:54:28 -08:00
Tracy Zhou 5a763a25c9 Support live tile in Overview (Pt2) - Complete functionality
- Punch a hole (by erasing part of launcher where current task is rendered) to reveal app surface drawn underneath using surface transform. We use LauncherLayoutListener before reaching OVERVIEW threshold, and TaskView after threshold due to layering constraint (it's above Overview but below All Apps)
- Render live tile following user-trigger scrolling (horizontal and vertical) by tracking the task view rect.
- When user launches the current running app (through the live tile or icon in the app drawer), finish recents animation to app.
- When user launches another app (through Overview or other entry points where user opens an app), take a screenshot of the current running app, switch to screenshot mode and launch the other app.
- Refactor ClipAnimationController#ApplyTransform to consolidate transforming by progress and by getting the current rect of the app on the screen.

Bug: 111697218
Test: manual test

Change-Id: I0ad764399e872f181a9d65dc453f0175f2b58dd1
2019-01-08 23:21:18 -08:00
TreeHugger Robot 80a6d72bc2 Merge "Add icon recents fragment for IconRecents" into ub-launcher3-master 2019-01-09 02:28:04 +00:00
TreeHugger Robot e9008a428e Merge "Revert "Revert "Add spring to shelf for home <-> overview <-> all apps state transitions.""" into ub-launcher3-master 2019-01-09 02:27:26 +00:00
Jon Miranda 7e390c3b17 Revert "Revert "Add spring to shelf for home <-> overview <-> all apps state transitions.""
This reverts commit 2bdac8f7e5.

Reason for revert: Reverting and added fix to crash

Change-Id: I20508eb05c85ba5dfba52630aa9becea270f890b
2019-01-08 16:43:45 -08:00
Chilun Huang 9850598506 Merge "Add SecondaryDisplayLauncherLib in Launcher3QuickStep" into ub-launcher3-master 2019-01-09 00:20:52 +00:00
TreeHugger Robot c7dd6d9b17 Merge "Make createIconBitmap public method Bug: 122545624" into ub-launcher3-master 2019-01-09 00:12:59 +00:00
Hyunyoung Song a8dbe9267a Make createIconBitmap public method
Bug: 122545624

Change-Id: I47ff6ec20f9d34856a727bdf3e328acee0db7f32
2019-01-08 16:00:25 -08:00
Tony Wickham 1ff1231baf Merge changes I13dfced7,I1ff160cf into ub-launcher3-master
* changes:
  Scale adjacent task icon during swipe up
  Scroll recents side to side during swipe up from an app
2019-01-08 21:08:08 +00:00
Tony Wickham 678e295ce4 Scale adjacent task icon during swipe up
Bug: 111699315
Change-Id: I13dfced7b32213590b1be267e6ddd1a2a0caddab
2019-01-08 20:54:32 +00:00
Sunny Goyal d6d503827b Moving some system calls off the main thread
Bug: 122345781
Change-Id: I7ab364ac62ea56b7355b86cae3d8d731cc9b2506
2019-01-08 11:01:51 -08:00
Kevin 2f6cb3167d Add icon recents fragment for IconRecents
Split out overview_panel from recents and override it with IconRecents
version to replace the recents view entirely.

Currently, on the IconRecents build variant, as expected, this hits a
class cast exception since many quickstep classes assume the overview
panel is an instance of RecentsView. All other variants build and push
fine.

Bug: 114136250
Test: Build + push NexusLauncherDebug, Launcher3Go,
Launcher3GoQuickstep, Launcher3GoQuickstepIconRecents
Change-Id: I3ac7331772e53ee81cb1735a709b4fb7b3bdb78c
2019-01-08 09:55:13 -08:00
Chilun ed0a112fdb Add SecondaryDisplayLauncherLib in Launcher3QuickStep
Add the secondary launcher activity in Launcher3QuickStep to support
secondary display.

Bug: 118206886
Test: Manual test on cf_x86_phone-userdebug
Change-Id: I4787f92fe32bb89f5f4c4fc3f93a4d3f27d5d2e6
2019-01-08 14:31:56 +08:00
TreeHugger Robot ea3ff5e338 Merge "Add build variant for go-specific recents." into ub-launcher3-master 2019-01-07 23:56:29 +00:00
TreeHugger Robot 24ed5723e3 Merge "Task stabilization improvement" into ub-launcher3-master 2019-01-07 23:28:02 +00:00
Sunny Goyal e23c213abb Task stabilization improvement
> Using that task stach changes for maintaining the task order instead of
  using the UI load signals.
> On fast task switches, temporary task changes do not contribute to the task
  order. Only the final task is braught to the top of the list
> Removing and add tasks do not reset the order

Change-Id: I576cb4ffeec66e115acd327d58c59920c149aaca
2019-01-07 14:39:15 -08:00
Kevin 2857871b7f Add build variant for go-specific recents.
This CL sets up the source directories to build a Go version of
quickstep recents/icon recents. This is accomplished by splitting the
quickstep resources/sources into two groups: the base source and
sources that should be overridden (recents_ui_overrides). The new Go
recents variant then takes the base and combines it with the sources
in go/quickstep which should replace the ones in recents_ui_overrides.

As of now, no classes have been moved yet, so there
are only placeholder files.

In addition, this modifies the make and gradle files to reflect the new
sources.

Bug: 114136250
Test: build all targets via tapas, build all APKs from IDE
Change-Id: I6d0a4d93ab1c38d4ffc28fd21823caadd96d23f7
2019-01-07 14:37:02 -08:00
Tony Wickham ce9cbda1b7 Scroll recents side to side during swipe up from an app
- Swiping straight up and down works the same as before.
- We dispatch the MotionEvents to RecentsView so that it scrolls if you
  swipe side to side as you swipe up.
- As RecentsView scrolls, we offset the window to match the position of
  the first task
- If you scroll or fling towards the previous app, it will settle on it
  and launch it.

Bug: 111699315
Change-Id: I1ff160cfc3ca66302a2506d18a4788015de75b94
2019-01-07 16:24:08 -06:00
TreeHugger Robot 108c6e74ca Merge "Fixing workspace screens not including page 0" into ub-launcher3-master 2019-01-07 21:57:32 +00:00
TreeHugger Robot 9a71248fd7 Merge "Moving folder shape logic definition to xml Adding support for storing custom parameters in shape definition" into ub-launcher3-master 2019-01-07 20:48:21 +00:00
Sunny Goyal 9fc5ae7fa7 Moving folder shape logic definition to xml
Adding support for storing custom parameters in shape definition

Change-Id: I06f04f1836b337f8cc0ab2ad8c893bb03ae9c794
2019-01-07 12:35:35 -08:00
Sunny Goyal c3f4dc6c6a Fixing workspace screens not including page 0
Instead of maintaining a workspace screen array, calculating it from
the current set of items as needed.

Bug: 122262946
Bug: 119500058
Change-Id: I85bb0e55a4442ab9bcac390a601da0cb2583c26a
2019-01-07 12:14:06 -08:00
Kevin 61ad3016be Add flavor dimension for quickstep on Launcher3.
This adds a dimension for having quickstep/not having quickstep and
consequently adds l3gowithQuickstep as a build variant on the Launcher3
gradle file.

Test: Built all apks
Change-Id: I634e7e458847ca10e5ad165ea47b968ba38a5029
2019-01-07 10:23:08 -08:00
TreeHugger Robot 5eae549e6d Merge "Fix Launcher3 gradle file for launcher protos dep" into ub-launcher3-master 2019-01-07 18:16:10 +00:00
TreeHugger Robot 088080ed9b Merge changes from topic "launcher3-gradle-fixes" into ub-launcher3-master
* changes:
  Fix Launcher3 gradle issue with src_plugins.
  Fix Launcher3 gradle src_shorcuts_overrides issue.
2019-01-07 18:16:10 +00:00
Android Build Merger (Role) b7ca2e6967 [automerger skipped] Import translations. DO NOT MERGE skipped: 47c44940ca
Change-Id: Ia7272166b12c570fefa1f1c2dac09297bf316adf
2019-01-07 17:46:15 +00:00
Bill Yi 47c44940ca Import translations. DO NOT MERGE
Change-Id: I921922840c933b28ed2c7c15a9ab3ee84dbcd30a
Auto-generated-cl: translation import
2019-01-07 09:46:07 -08:00
Winson Chung 0a9261b3f3 Merge changes from topic "ub-context-compat" into ub-launcher3-master
* changes:
  SyncRtTransactionApplier -> SyncRtTransactionApplierCompat
  Track when plugins are disabled due to crashes.
  Updating shared lib for context wrapper.
2019-01-05 00:20:23 +00:00
TreeHugger Robot e754bad967 Merge "Revert "Add spring to shelf for home <-> overview <-> all apps state transitions."" into ub-launcher3-master 2019-01-05 00:13:53 +00:00
Kevin ab87400b58 Fix Launcher3 gradle issue with src_plugins.
src_plugins was not being pulled in as a source preventing building
any launcher variant APK from the IDE.  This fixes that.

Test: Build APK for all variants w/ other fixes included
Change-Id: Ifc23d15492de0ac9dad37fda621958eb64046b0e
2019-01-04 16:05:12 -08:00
Jonathan Miranda 2bdac8f7e5 Revert "Add spring to shelf for home <-> overview <-> all apps state transitions."
This reverts commit e018711aac.

Reason for revert: investigating crash

Change-Id: I157b61a9f1bd46e2fcd3f2f883d3b5c23ca314af
2019-01-05 00:04:20 +00:00
Kevin 34380b4059 Fix Launcher3 gradle file for launcher protos dep
The launcher_protos.jar library was not being used which prevented the
quickstep launcher variant from building. This fixes the issue.

Test: Build quickstep APK w/ other fixes in topic included
Change-Id: I4d91616aa8f52026ceec235b2adec8c13f7c6dc8
2019-01-04 16:00:36 -08:00
Kevin eea6ab9c16 Fix Launcher3 gradle src_shorcuts_overrides issue.
This fixes an issue with l3go variant not building due to duplicate
classes. This ensures that l3go does not pull the
src_shortcuts_overrides src as it overrides it.

Test: Build APK for l3go variant in IDE
Change-Id: Id2b10035b30eaf8f677913c85e384569ecc78359
2019-01-04 15:54:41 -08:00
TreeHugger Robot 2c3089d591 Merge "Fixing quick switch with task stabilization" into ub-launcher3-master 2019-01-04 23:05:05 +00:00
TreeHugger Robot aacb815463 Merge "Fix bug in getVisualCenter where we do not offset by the dragRegion." into ub-launcher3-master 2019-01-04 22:57:37 +00:00
Sunny Goyal 3ae337e5fb Fixing quick switch with task stabilization
> Using the scroll of the current page instead of page 0
> Starting switch from current page instead of page 0
> Disable task flip animation accordingly

Change-Id: I29b9c6dafca1e856e634f471aa2b1b667158a790
2019-01-04 14:49:52 -08:00
Jon Miranda 23c2a024fc Fix bug in getVisualCenter where we do not offset by the dragRegion.
This bug made it hard to create folders in landscape mode because since the
visual center was off, placing the drag view directly in the center of the
cell caused the underlying item to move since the distance calculation placed
the drag view outside of the folder creation range.

Bug: 111939693
Change-Id: Id0bccb87a87ff1be188def61e697319381f725e1
2019-01-04 14:30:26 -08:00
Hyunyoung Song eeb5c337fa Merge "Refresh icon cache when icon shape path has changed Bug: 120505990" into ub-launcher3-master 2019-01-04 22:25:38 +00:00
Hyunyoung Song ed9e01d443 Merge "Fix BubbleTextView visibility" into ub-launcher3-master 2019-01-04 22:12:56 +00:00
Jorim Jaggi 37a089d716 SyncRtTransactionApplier -> SyncRtTransactionApplierCompat
Bug: 118118435
Change-Id: I37bba45db79890f5d7ae6c1d1d63422a89230b35
2019-01-04 12:22:13 -08:00
Dave Mankoff 5b3bf3b814 Track when plugins are disabled due to crashes.
Bug: 120901833
Test: atest SystemUITests
Change-Id: I243d79290a5162371dd46abd0115f73deda62b3e
(cherry picked from commit 727813f87b)
2019-01-04 12:22:13 -08:00
Winson Chung 5045f44cb1 Updating shared lib for context wrapper.
Change-Id: Ie468a23c177028ad4d1b4b90f177a29e5e72d960
2019-01-04 12:22:11 -08:00
Hyunyoung Song a23738540e Fix BubbleTextView visibility
Change-Id: I176d7c8b77f6c2d929217c3f9b4dbc3e942e48fc
2019-01-04 12:01:32 -08:00
Hyunyoung Song c55a350da8 Refresh icon cache when icon shape path has changed
Bug: 120505990

$ adb shell cmd overlay enable --user 0 com.android.theme.icon.roundedrect
$ adb shell cmd overlay disable --user 0 com.android.theme.icon.roundedrect
$ adb shell cmd overlay enable --user 0 com.android.theme.icon.teardrop
$ adb shell cmd overlay disable --user 0 com.android.theme.icon.teardrop

Change-Id: I06663b9727f7434aae737d39977f1e6cf09bffbf
2019-01-04 11:57:52 -08:00
TreeHugger Robot 224fe1170e Merge "Keep the current page pointing to the running task when applying loadPlan" into ub-launcher3-master 2019-01-04 19:52:15 +00:00
Sunny Goyal 43798deadb Keep the current page pointing to the running task when applying loadPlan
Change-Id: I178f4fb6b75eea9e8d47fa9700798a34117537a6
2019-01-04 11:38:40 -08:00
Jon Miranda e018711aac Add spring to shelf for home <-> overview <-> all apps state transitions.
Added new SpringObjectAnimator class that wraps an ObjectAnimator so the
Object can be controlled via the Animator or via a SpringAnimation. It extends
ValueAnimator so that it remains compatible with AnimatorPlaybackController.

Code is behind feature flag toggle QUICKSTEP_SPRINGS.

Bug: 111698021
Change-Id: I1b20179ede37e89a6a6bb2a45d407cc74c99ac4e
2019-01-04 11:12:53 -08:00
Sunny Goyal 1c8db791c8 Disable task stabilizer
Change-Id: Ia5075ce31118f2ad629ff1fca7ceacfbe369dc8d
2019-01-04 09:19:51 -08:00
Hyunyoung Song e5f39898a9 Merge "Do not animate icon if work profile is disabled Bug: 119884907" into ub-launcher3-master 2019-01-04 01:58:03 +00:00