Commit Graph

6741 Commits

Author SHA1 Message Date
Jon Miranda 6dfa312896 Preloads the icon drawable for app open to reduce latency b/w swapping views.
For app close, we already load the icon as soon as we can.

Bug: 135130011
Change-Id: Ia2c45737cf24d1ab5911b222ae097d7a1f9d6a31
2019-06-13 13:17:25 -07:00
Sunny Goyal 7897aea5bc Merge "Optimizing some layouts in taskview" into ub-launcher3-qt-dev am: 552b3fe811
am: a97bbe2b96

Change-Id: If1bf77a7b56c96f6e6a8116fc97e911e8f7612ca
2019-06-13 12:25:45 -07:00
Winson Chung b33bd1e0ff Fix issue with screen pinning check not apply in 2 button am: 6e25a9d831
am: a1a171633f

Change-Id: Ia89fcb61ef8185bda6debc04b3e33e94120d60ae
2019-06-13 12:18:44 -07:00
TreeHugger Robot 552b3fe811 Merge "Optimizing some layouts in taskview" into ub-launcher3-qt-dev 2019-06-13 19:09:00 +00:00
Winson Chung 6e25a9d831 Fix issue with screen pinning check not apply in 2 button
Bug: 130687624
Test: Ensure you can't swipe up with screen pinning enabled in 2 button
Change-Id: I6635a9639262a4e96a104960eb5fbb3acaba8af7
2019-06-13 11:44:44 -07:00
Sunny Goyal 5b636ebfd4 Optimizing some layouts in taskview
> Recycling DigitalWellBeingToast so that the view is not inflated everytime
> Simplifying DigitalWellBeingToast to use a single text view
> Adding support for footers in taskView without creating additional layout

Bug: 122345781
Change-Id: Ia889819b93eb8644532ea95c6767554874d5e2d1
2019-06-13 10:39:46 -07:00
Bill Yi 94c22cb4d6 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I0d9465551d819e650a05175aea087bb9e3423c96
2019-06-13 08:55:36 -07:00
Bill Yi 1b2ee2d0d1 Import translations. DO NOT MERGE
Change-Id: I0fcbea69df4f883935af66d655e0e4109cf875de
Auto-generated-cl: translation import
2019-06-13 08:51:29 -07:00
Sunny Goyal 0e57817adc Merging ub-launcher3-qt-dev, build 5656472
Test: Manual
Bug:125844074 P2 Final UX and animations for Launcher DWB integration
Bug:129985827 P1 [Fully Gestural Navigation] Delay Recents animation when swiping up
Bug:131360075 P1 [Gesture Nav] Polish/finish landscape
Bug:132900132 P1 Apparently, tests start running while provisioning is still in progress
Bug:133009122 P2 Rare flake: dragged launchable to workspace, but the current state is not WORKSPACE; Can't find a launcher object; selector: BySelector [RES='\Qcom.google.android.apps.nexuslauncher:id/apps_view\E']
Bug:133443741 P2 Provide a ImageApi.cropBitmap API between Launcher/UI library
Bug:133765434 P1 [Flaky test] Launching task didn't open a new window
Bug:133867119 P2 Lab-only flake: want to switch from workspace to all apps; Swipe failed to receive an event for the swipe end
Bug:134091263 P1 Can't swipe up
Bug:134164918 P1 STOPSHIP: Disable chips hard-coded value in qt_dev Launcher
Bug:134309036 P1 Immediately dragging up after opening recents causes a flicker with fully gestural navigation enabled
Bug:134309189 P1 Immediately dragging up from recents doesn't open all apps with fully gestural navigation enabled
Bug:134406364 P2 [Multiuser] Pixel launcher crashed after switching to secondary user.
Bug:134559760 P2 Launcher crashed when keeping phone in face enroll page for 2~3 minutes. (fail rate: 3 of 10 trials)
Bug:134707989 P1 List widgets are reinitialized on rotation
Bug:134725160 P2 Swiping up on two-button nav does not hide icons with 3p launcher
Bug:134919468 P2 [Q-Preview4] Quickstep crash on app remaining time tap on Essential phone
Bug:134963243 P4 In multiwindow mode, seeing a shade on scrolling all apps screen.
Bug:134964922 P1 Wrap createLegacyIconExtras in a target sdk check
Bug:134969824 P4 Pixel launcher crashed while resuming chrome video in PIP mode
Bug:134971634 P1 onSystemUiStateChanged and some other binder calls can crash Launcher
Bug:135008910 P1 Launcher with black status bar/nav bar icons
Bug:135038270 P1 Apps getting stuck while switching in the overiew screen.
Bug:135050372 P1 Regression: Can no longer double swipe nav bar from an app to go to all apps in 2-button mode
Bug:135114549 P1 TaskView becomes visible at the end to swipe-down
Bug:issue priority summary

Change-Id: Ief4ecb36f17e168cdeb7aef930bcb051e29dbc02
2019-06-13 15:36:46 +00:00
Sunny Goyal ec22f7e05a Merge "Adding support for custom callback when starting ProxyActivity" into ub-launcher3-qt-dev am: 3d6e96d526
am: a9c0d66d6c

Change-Id: I192af95e65de6310010e16ef0a545c70f62e27a2
2019-06-12 16:40:28 -07:00
Tony Wickham 61ed418856 Merge "Gracefully handle failed task launches during quick switch" into ub-launcher3-qt-dev am: 964d164709
am: aee5b0d936

Change-Id: Ie8d940f23845152f055594e77344194b1813af58
2019-06-12 16:17:22 -07:00
TreeHugger Robot 3d6e96d526 Merge "Adding support for custom callback when starting ProxyActivity" into ub-launcher3-qt-dev 2019-06-12 23:16:59 +00:00
Zak Cohen bb84184b7d Merge "Expose getTaskView to Overlays." into ub-launcher3-qt-dev am: f97355a145
am: 37eb41edd1

Change-Id: I868e05d27de451b0a4eec0f49e7461811660dfb1
2019-06-12 16:08:19 -07:00
Vadim Tryshev 06ab91f192 Merge "Not using settings app in tests" into ub-launcher3-qt-dev am: 643007d613
am: 387fdae45f

Change-Id: I204d788ce63c1a60474f3296f30d46ab0e479e60
2019-06-12 16:00:31 -07:00
Sunny Goyal 693db669fb Fading out the home surface if home and recents are shown in separate surface am: 16284b956c
am: bd95c600f3

Change-Id: I5ea62ef9b648322e5e358c6f37eb16048cd7149d
2019-06-12 16:00:16 -07:00
Tony Wickham 964d164709 Merge "Gracefully handle failed task launches during quick switch" into ub-launcher3-qt-dev 2019-06-12 22:59:35 +00:00
TreeHugger Robot f97355a145 Merge "Expose getTaskView to Overlays." into ub-launcher3-qt-dev 2019-06-12 22:52:46 +00:00
Zak Cohen 3827b3afd3 Expose getTaskView to Overlays.
Test: Manual
Change-Id: Ie8583606e65f9a77536de4a7cbd1aa3d88e81e1e
2019-06-12 15:40:54 -07:00
Vadim Tryshev 643007d613 Merge "Not using settings app in tests" into ub-launcher3-qt-dev 2019-06-12 22:40:26 +00:00
Sunny Goyal 16284b956c Fading out the home surface if home and recents are shown in separate surface
Bug: 134725160
Change-Id: Ia4c5e0eefc4d8b869840645f403d943831c471f1
2019-06-12 15:28:23 -07:00
vadimt 87fbd33a37 Not using settings app in tests
Change-Id: I7542dab07a0d5a76cc90f4b5eee0d376b5d8ca11
2019-06-12 15:26:27 -07:00
Tony Wickham e8836dc082 Gracefully handle failed task launches during quick switch
When quick switching from home or overview, go to OverviewState if the
task launch failed. Otherwise we get stuck in BackgroundAppState.

Bug: 135038270
Change-Id: I42785c261cef0df95666bc106ec5ca6ef0553cc7
2019-06-12 15:24:58 -07:00
Sunny Goyal faf50e511e Merge "Resetting taskView alpha to proper value onAnimationEnd" into ub-launcher3-qt-dev am: c9e6f23658
am: 2e631e4ca1

Change-Id: I0811ff15649e975dd1f827dcf7e1de21240de755
2019-06-12 12:25:58 -07:00
TreeHugger Robot c9e6f23658 Merge "Resetting taskView alpha to proper value onAnimationEnd" into ub-launcher3-qt-dev 2019-06-12 19:03:33 +00:00
Sunny Goyal dc48cf3de4 Merge "Initializing ActivityManagerWrapper before device unlock" into ub-launcher3-qt-dev am: a273eafec4
am: 0aabc84de6

Change-Id: I31d40f5a91ae6bc85f1d960b63612a81c62dda73
2019-06-12 11:46:27 -07:00
Sunny Goyal 2dec2f5114 Merge "Removing unused method" into ub-launcher3-qt-dev am: 89e8e955cb
am: 3fd67359c5

Change-Id: I14ffd69040628d7c846e3543dbd2ac819851606e
2019-06-12 11:46:09 -07:00
Sunny Goyal 8f6fe03d60 Merge "Bypass systemstate check when using shared state" into ub-launcher3-qt-dev am: 329097b179
am: e27dbf2d74

Change-Id: Iaf2a7321630660eaa164daca427310ba3c79669f
2019-06-12 11:27:41 -07:00
TreeHugger Robot a273eafec4 Merge "Initializing ActivityManagerWrapper before device unlock" into ub-launcher3-qt-dev 2019-06-12 18:22:12 +00:00
TreeHugger Robot 89e8e955cb Merge "Removing unused method" into ub-launcher3-qt-dev 2019-06-12 18:19:32 +00:00
TreeHugger Robot 329097b179 Merge "Bypass systemstate check when using shared state" into ub-launcher3-qt-dev 2019-06-12 18:03:26 +00:00
Tony Wickham 4f7f5b8797 Merge changes I0b96f623,I019084a1 into ub-launcher3-qt-dev am: 503f46185a
am: 4ac2a3668b

Change-Id: I1bd8d25da249b44708a0a559d1cb9047f55bf753
2019-06-12 11:00:34 -07:00
Tony Wickham 503f46185a Merge changes I0b96f623,I019084a1 into ub-launcher3-qt-dev
* changes:
  Fix double swipe on nav bar from an app
  Fix state/anim clobbering when touching down during recents animation
2019-06-12 17:50:16 +00:00
Jon Miranda dbfe998db9 Fix bug where recents animation is out of sync.
This is caused by recent change where we animate RecentsView instead of the
individual tasks when we are launching the center task.

The fix is to not apply scale/translation to the individual tasks when we are
launching the center task.

Bug: 133450867
Change-Id: I463b5819c6c253001752c3dafdbd61009deba8b4
2019-06-12 09:40:11 -07:00
Sunny Goyal d0308dbd14 Resetting taskView alpha to proper value onAnimationEnd
Bug: 135114549
Change-Id: I4effc4c9d8e6c03e41c8f06c441477076ce7a622
2019-06-12 09:11:04 -07:00
Sunny Goyal a029a8b2d5 Bypass systemstate check when using shared state
System state can change using the interaction, for eg: an app can
enter  immersive mode in the middle of quickswitch. Ignore such changes
to prevent system gestures getting blocked by an app

> Fixing nullpointer in device locked consumer construction when user is not locked yet
> Creating a fallback resetGesture input consumer, which cancels any pending transition
  in case we missed to cancel it

Bug: 134091263
Bug: 134406364
Change-Id: Iafc4e53691f50862b013ad9c4023839044cf1d72
2019-06-12 14:42:38 +00:00
Sunny Goyal a327e6a3d1 Initializing ActivityManagerWrapper before device unlock
Bug: 134406364
Change-Id: I30339c3790efeaa60db7ea3cbae76d97474c16cc
2019-06-12 07:41:50 -07:00
Sunny Goyal a0f9110e52 Adding support for custom callback when starting ProxyActivity
Bug: 133443741
Change-Id: Ifd6a289b7f49d52efe0767b600cecc2b460a87fc
2019-06-12 00:20:07 -07:00
vadimt e87b4bc6ad Merge "Calling sendStateEventToTest() from a place guaranteed to be called" into ub-launcher3-qt-dev am: c1fa3abd2e
am: 63a3846b56

Change-Id: Id78ed0b6a8f1144e8f2213640a03ec5e93ac2d6e
2019-06-11 17:42:16 -07:00
vadimt 63a3846b56 Merge "Calling sendStateEventToTest() from a place guaranteed to be called" into ub-launcher3-qt-dev
am: c1fa3abd2e

Change-Id: I90802248680747645bc975e81fb4fe477f2db679
2019-06-11 17:31:17 -07:00
TreeHugger Robot c1fa3abd2e Merge "Calling sendStateEventToTest() from a place guaranteed to be called" into ub-launcher3-qt-dev 2019-06-12 00:12:08 +00:00
Tony Wickham 71efefaf9b Merge "Tweak spring stiffness/damping for attaching recents" into ub-launcher3-qt-dev am: 070866931b
am: f40276133f

Change-Id: I2768b2d968e8c55a8c8d17bbfe0b59064582e6b7
2019-06-11 16:08:45 -07:00
Tony Wickham f40276133f Merge "Tweak spring stiffness/damping for attaching recents" into ub-launcher3-qt-dev
am: 070866931b

Change-Id: I71bf6a8dac3a4243b5ac67bdff9a829db0966b8e
2019-06-11 16:02:43 -07:00
TreeHugger Robot 070866931b Merge "Tweak spring stiffness/damping for attaching recents" into ub-launcher3-qt-dev 2019-06-11 22:49:20 +00:00
Tracy Zhou cf7af74edd Merge "Check if RecentsView is null before setting live tile icon." into ub-launcher3-qt-dev am: fc1db5861a
am: 7c5d95fdd2

Change-Id: I168f760d220f81f4417cb4e072ae29024b54092d
2019-06-11 15:43:58 -07:00
Tracy Zhou 7c5d95fdd2 Merge "Check if RecentsView is null before setting live tile icon." into ub-launcher3-qt-dev
am: fc1db5861a

Change-Id: I939827655df665fed9598dc4bc3d8b3d72be35cc
2019-06-11 15:39:56 -07:00
Tracy Zhou fc1db5861a Merge "Check if RecentsView is null before setting live tile icon." into ub-launcher3-qt-dev 2019-06-11 22:31:20 +00:00
Tony Wickham 91683e2bc8 Tweak spring stiffness/damping for attaching recents
Bug: 129985827
Change-Id: Ife70528a3cdc101260df3425ec0501b318d558e7
2019-06-11 15:25:54 -07:00
Tony Wickham 0bdd28e204 Fix double swipe on nav bar from an app
Use normal OverviewInputConsumer instead of
OverviewWithoutFocusInputConsumer if we are animating to launcher. This
allows launcher to properly handle a second swipe in the nav region.

Test: enable 2-button mode, double swipe up on nav bar to all apps

Bug: 135050372
Change-Id: I0b96f6236bed4f9ac3284a921e4259e1b0d00c75
2019-06-11 14:41:57 -07:00
Tracy Zhou 6594390a79 Check if RecentsView is null before setting live tile icon.
Fixes: 134969824
Test: N/A
Change-Id: Ibd6d8ec729c6809d385ea5f0153ae7ff376801b9
2019-06-11 13:42:25 -07:00
Tony Wickham 87cfe640c2 Fix state/anim clobbering when touching down during recents animation
Addresses 2 problems:
- Set mLauncherTransitionController = null after ending it, to prevent a
  subsequent end from re-setting OVERVIEW state.
- Cancel the shelf animation so that it doesn't clobber the animation to
  all apps (for instance).

Bug: 134309036
Bug: 134309189
Change-Id: I019084a1ba38c6208a6256843cb5c4b6dbb4a662
2019-06-11 13:01:17 -07:00