Commit Graph

33301 Commits

Author SHA1 Message Date
Winson Chung a19a2b755f 14/ Bake the running task info into the gesture state
- This removes a bunch of places where we pass it through the gesture flow

Bug: 141886704
Change-Id: I28d2c53b0300c614ed074746b06f2d548b5e8cc7
2019-10-25 15:47:19 -07:00
Tony Wickham 052c881415 Move overview haptic feedback to VibratorWrapper singleton
Bug: 141886704
Change-Id: I0178a52088dd4150d7ba054983697ea63a00d9a8
2019-10-25 21:48:22 +00:00
Jon Miranda 4459e3f6f9 Fix NPE caused by an install flow where we decode the LauncherActivityInfo
but we don't fill in the data Intent.

Bug: 143190879
Change-Id: I8f774203b99f022b2cf1708de6d8fe2398b332ce
2019-10-25 14:24:05 -07:00
Tracy Zhou c491463895 Merge "Fix unable to launch shortcuts in live tile mode." into ub-launcher3-master 2019-10-25 20:23:53 +00:00
TreeHugger Robot 2193689fe1 Merge "Merging task icon cache with content description cache" into ub-launcher3-master 2019-10-25 20:10:18 +00:00
android-build-team Robot 684b89c57a Merge cherrypicks of [9617721, 9617650, 9616775, 9616776, 9617925, 9617944] into rvc-release
Change-Id: Ie98f53385621cffaa70748618728a80c644ba8a4
2019-10-25 20:01:40 +00:00
Winson Chung d1e003be69 Skip handling input while the user is still locked
- None of the gestures work when the user is locked so
  we can just skip them.

Bug: 143107728
Test: Manual
Change-Id: I2661d58269f7eccbfcd2214792c128b432e0347c
(cherry picked from commit fc8c975880)
2019-10-25 20:01:20 +00:00
Winson Chung b247608b3f Merge "Skip handling input while the user is still locked" into ub-launcher3-master 2019-10-25 19:35:43 +00:00
Sunny Goyal 9f975ed089 Merging task icon cache with content description cache
> Removing activity info cache as icon and description are loaded at the same time
> Invalidating icon if task cache is old

Bug: 38268585
Bug: 138944598
Change-Id: I28ae61a089556198534d48fcdb3aae6109748dff
2019-10-25 12:26:39 -07:00
Jon Miranda 2bdd24340d Cleaning up unused allAppsIconSize/allAppsIconTextSize variables.
Change-Id: Ifb77458ca0febdf97a806c34e6d1c16f41789d35
2019-10-25 12:01:45 -07:00
vadimt 23c8341096 Removing tracing and @Stability for a fixed bug
Bug: 142514365
Change-Id: I147850db274c465fb964eca30b97b3ebaaa2ccf6
2019-10-25 11:21:33 -07:00
Winson Chung fc8c975880 Skip handling input while the user is still locked
- None of the gestures work when the user is locked so
  we can just skip them.

Bug: 143107728
Test: Manual
Change-Id: I2661d58269f7eccbfcd2214792c128b432e0347c
2019-10-25 18:04:54 +00:00
Tracy Zhou 6b5b190324 Fix unable to launch shortcuts in live tile mode.
The finish recents animation callback is nullified when invalidateHandlerWithLauncher gets called.

Fixes: 143361207
Test: Turn on live tile mode, swipe up to Overview, try to launch an app from the shortcuts
Change-Id: Icce076f69cd38f54870229344266106360be6aa4
2019-10-25 10:58:11 -07:00
Xin Li 8021732ca7 Merge Coral/Flame into AOSP master
Bug: 141248619
Change-Id: Ie1ee4a434b0a2de411018750afbd7546ada67fa2
Merged-In: I6f659f61e70630236cabf7a00af39ae2c2c7264c
2019-10-25 10:28:04 -07:00
Winson Chung fe042fe234 Skip handling input while the user is still locked
- None of the gestures work when the user is locked so
  we can just skip them.

Bug: 143107728
Test: Manual
Change-Id: I2661d58269f7eccbfcd2214792c128b432e0347c
2019-10-25 10:27:44 -07:00
TreeHugger Robot efefa59f8c Merge "Bump time to scroll to last visible row (affects jank/perf tests)" into ub-launcher3-master 2019-10-25 00:56:34 +00:00
Jon Miranda 0e7fe1a83d [automerger skipped] Merge "Add support for work profile promise icons." into ub-launcher3-qt-future-dev
am: 0c7b01a694 -s ours
am skip reason: change_id I2db2d8da449c37eb248a59fbc9e7b517f50855c1 with SHA1 26256f79c3 is in history

Change-Id: Ib0d084e18a3d4890828d482baa5e0d4f2e5a73ff
2019-10-24 16:28:03 -07:00
TreeHugger Robot 0c7b01a694 Merge "Add support for work profile promise icons." into ub-launcher3-qt-future-dev 2019-10-24 23:17:43 +00:00
Jon Miranda 7c76a33243 Add support for work profile promise icons.
- We were not getting callbacks for sessions created under work profile.
- We did not pass in the user when creating the workspace item infos.
- Added check for if app is installed before adding item to workspace
  to prevent any stale promise icons. This seems to happen when uninstalling
  and then immediately reinstalling an application.

Bug: 141556707
Change-Id: Ie0320f3ede70b6c7543cb60c3b95a2fe398eecb5
Merged-In: I2db2d8da449c37eb248a59fbc9e7b517f50855c1
2019-10-24 23:07:04 +00:00
TreeHugger Robot a0b026a6ed Merge "Fix screenshot not getting cleaned up after recents animation cancelation" into ub-launcher3-master 2019-10-24 22:43:51 +00:00
Winson Chung ef558648e6 Bump time to scroll to last visible row (affects jank/perf tests)
- Regression from ag/9592395, bump the time of scrolling to the
  last visible row slightly to prevent a fling

Bug: 141484300
Change-Id: I41c041fe591aceebc63b7e869a705164babb09ea
2019-10-24 15:31:34 -07:00
Tracy Zhou 734f2d9f15 Fix screenshot not getting cleaned up after recents animation cancelation
Before this change, mCanceledThumbnail is used but never assigned.

Test: Turn on live tile, swipe up to overview from app and observe that the screenshot from recents animation gets properly cleaned up.
Fixes: 143307786
Change-Id: I8fba46324c43df661adf12cd1e5d9e06a0a3ee6f
2019-10-24 14:51:23 -07:00
TreeHugger Robot 037b1dcf6e Merge "Fix work profile promise icon bugs." into ub-launcher3-master 2019-10-24 21:40:40 +00:00
TreeHugger Robot 949b96a82d Merge "Move addPluginListener to onUserUnlocked" into ub-launcher3-master 2019-10-24 21:26:34 +00:00
Winson Chung eed626a63c Move addPluginListener to onUserUnlocked
addPluginListener() needs to be moved into onUserUnlocked() since it
reads from the shared preferences. This fixes a crash in
Launcher3QuickStepGo on wembley.

Bug: 143249037
Change-Id: Ib60f688cb3f91e377141fab1ad9f2a0071c96694
2019-10-24 13:44:43 -07:00
Jon Miranda 26256f79c3 Fix work profile promise icon bugs.
- We did not pass in the user when creating the workspace item infos.
- Added check for if app is installed before adding item to workspace
  to prevent any stale promise icons. This seems to happen when uninstalling
  and then immediately reinstalling an application.

Bug: 141556707
Change-Id: I2db2d8da449c37eb248a59fbc9e7b517f50855c1
2019-10-24 13:27:41 -07:00
Tony Wickham 892cf58a6a [automerger skipped] Merge "Refactor SwipeDetector to track both axes" into ub-launcher3-qt-future-dev
am: f13109df05 -s ours
am skip reason: change_id I54c71088cfe99ff28cdc719a1eb7a7d06ac95d2d with SHA1 5aeb3b84b8 is in history

Change-Id: I890cdcb712333c1519b411be1220e2710e290f8d
2019-10-24 12:42:53 -07:00
TreeHugger Robot f13109df05 Merge "Refactor SwipeDetector to track both axes" into ub-launcher3-qt-future-dev 2019-10-24 19:24:12 +00:00
Tony Wickham eed585b0c3 Refactor SwipeDetector to track both axes
Existing clients now use the SingleAxisSwipeDetector subclass. A
followup CL will add BothAxesSwipeDetector, whose first client will be
the quick switch from home controller.

Bug: 126596417
Change-Id: I54c71088cfe99ff28cdc719a1eb7a7d06ac95d2d
Merged-In: I54c71088cfe99ff28cdc719a1eb7a7d06ac95d2d
2019-10-24 18:56:44 +00:00
TreeHugger Robot b7d463e74c Merge "Refactor SwipeDetector to track both axes" into ub-launcher3-master 2019-10-24 18:36:51 +00:00
Tony Wickham 5aeb3b84b8 Refactor SwipeDetector to track both axes
Existing clients now use the SingleAxisSwipeDetector subclass. A
followup CL will add BothAxesSwipeDetector, whose first client will be
the quick switch from home controller.

Bug: 126596417
Change-Id: I54c71088cfe99ff28cdc719a1eb7a7d06ac95d2d
2019-10-24 10:38:17 -07:00
TreeHugger Robot 6735624704 Merge "Adding support for remote app action provider." into ub-launcher3-master 2019-10-24 17:33:42 +00:00
sallyyuen cd0a5c536a Fix TalkBack page announcments in RecentsView
Because a PagedView has page a11y actions (PAGE_LEFT/RIGHT),
a11y services now identify recents apps as a pager.
Tweak the a11y event info to accomodate this so the announcements
are correct.
Also fix the CollectionItemInfo to have the correct page index.

Bug: 141899192
Test: Tested with TalkBack on device
Change-Id: Ic578bee8de26a41f0ab0e5468f1fd060ed21a7e1
2019-10-24 16:53:50 +00:00
Tony Wickham f6d504d4cb [automerger skipped] Merge "Fix testQuickSwitchFromApp" into ub-launcher3-qt-future-dev
am: ec72bf63df -s ours
am skip reason: change_id Ie137261ce65bfd3dd39df78d57784854a026e967 with SHA1 bc42d64c85 is in history

Change-Id: I7e3f5f26ed22351f0b331edcc79a88190416d6b1
2019-10-23 18:09:49 -07:00
Sunny Goyal 3a1eadd37b Adding support for remote app action provider.
> Connect to a predefined content provider to get package specific action
> Add that action to shortcut menu and task menu

Change-Id: Ide5c09d04112e86c8e19c2f9e66c88c15b3fd04e
2019-10-23 17:51:13 -07:00
TreeHugger Robot ec72bf63df Merge "Fix testQuickSwitchFromApp" into ub-launcher3-qt-future-dev 2019-10-24 00:47:01 +00:00
TreeHugger Robot 85561d1e44 Merge "Fix testQuickSwitchFromApp" into ub-launcher3-master 2019-10-24 00:12:09 +00:00
TreeHugger Robot e60ae45b9e Merge "13/ Rely on the device state's navigation mode" into ub-launcher3-master 2019-10-23 23:45:52 +00:00
Tony Wickham bc42d64c85 Fix testQuickSwitchFromApp
Instead of starting getAppPackageName() and relying on it being our Test
Pin Item activity, instead launch our own test activities with the
FLAG_ACTIVITY_MULTIPLE_TASK and FLAG_ACTIVITY_NEW_DOCUMENT flags.

Test:
- Locally run testQuickSwitchFromApp() from Android Studio
- flake -oop -t com.android.quickstep.TaplTestsQuickstep#testQuickSwitchFromApp

Bug: 140252765
Change-Id: Ie137261ce65bfd3dd39df78d57784854a026e967
2019-10-23 23:42:19 +00:00
Tony Wickham 476b7d4378 Fix testQuickSwitchFromApp
Instead of starting getAppPackageName() and relying on it being our Test
Pin Item activity, instead launch our own test activities with the
FLAG_ACTIVITY_MULTIPLE_TASK and FLAG_ACTIVITY_NEW_DOCUMENT flags.

Test:
- Locally run testQuickSwitchFromApp() from Android Studio
- flake -oop -t com.android.quickstep.TaplTestsQuickstep#testQuickSwitchFromApp

Bug: 140252765
Change-Id: Ie137261ce65bfd3dd39df78d57784854a026e967
Merged-In: Ie137261ce65bfd3dd39df78d57784854a026e967
2019-10-23 23:40:57 +00:00
Winson Chung f6448e62e6 Merge "Reduce animation time for some common TAPL actions (affects jank/perf tests)" into ub-launcher3-master 2019-10-23 23:40:53 +00:00
Winson Chung 82b2ef27c8 Reduce animation time for some common TAPL actions (affects jank/perf tests)
- All apps swipe up 1s -> 200ms (doesn't matter if it's a fling)
- Scroll to last visible row 2.5s -> 1.25s (seems sufficient to not be a fling)
- Drag icon to workspace 2s -> 500ms (seems sufficient to not be a fling)
- This changes the total frames produced for the jank tests, but should not
  change the jank proportion or the individual frame drawing times

Bug: 141484300
Change-Id: I9f2e647ebc2c27c6269238daa4c3e6ad314c8161
Signed-off-by: Winson Chung <winsonc@google.com>
2019-10-23 23:31:20 +00:00
Xin Li 9431e79209 Skip QD1A.190821.011 in stage-aosp-master am: 6d14b39680 am: 3fdcb43a43
am: b482bb92e9

Change-Id: I1e0e2b2ef01652369e0c8a4962b25baa87ab7fc2
2019-10-23 16:15:56 -07:00
Xin Li b482bb92e9 Skip QD1A.190821.011 in stage-aosp-master am: 6d14b39680
am: 3fdcb43a43

Change-Id: I2b1d7d8c2f49f38f47ad85eeab233a2a5a517dfd
2019-10-23 15:51:29 -07:00
Xin Li 3fdcb43a43 Skip QD1A.190821.011 in stage-aosp-master
am: 6d14b39680

Change-Id: I467211012653848fd3c52a78533bbe78511634dc
2019-10-23 15:32:10 -07:00
TreeHugger Robot 91fbe43990 Merge "Separating SystemShortcut and Factory" into ub-launcher3-master 2019-10-23 22:30:08 +00:00
Winson Chung a85365c22b 13/ Rely on the device state's navigation mode
- Rely on the device state navigation mode instead of tracking it
  independently in various places

Bug: 141886704
Change-Id: I421c1fa11ca7362aff8e2388a2b5d427b39af3e9
2019-10-23 15:00:59 -07:00
Sunny Goyal 7805d49764 Separating SystemShortcut and Factory
> This makes easier to extend the factory and callbacks separately
> Availability checks are only performed once when getting the shortcut

Change-Id: I413541eabfb2b9e987c852d5171c6696b1853958
2019-10-23 12:57:50 -07:00
TreeHugger Robot 7caa519140 Merge "Step 4 from the plan below:" into ub-launcher3-master 2019-10-23 17:54:19 +00:00
Sunny Goyal c78308a9a7 Merge "Subclassing Launcher instead of using UiFactory" into ub-launcher3-master 2019-10-22 19:21:11 +00:00