Commit Graph

34630 Commits

Author SHA1 Message Date
Jon Miranda a8109fb98c Fix bug where Files app keeps getting added to the workspace.
Caused by mainline updates where Files app session commit is broadcasted.
Launcher workaround is to not auto-add system apps to the workspace.

Bug: 139663018
Change-Id: Id61532bd0df2cd5f3bdfc28a3616ba5e5ff3d18a
2019-10-30 09:56:44 -07:00
Andy Wickham dbf5bdaedc [automerger skipped] Forces OveriewInputConsumer to be used when Assistant is running on top of Launcher.
am: 6547f1a937 -s ours
am skip reason: change_id I261653118aff289b329ec2a7ca6e52f100f7835a with SHA1 d386d7da7c is in history

Change-Id: Ib84ab2e8af21ec7116c204db3bffc0a97de8468d
2019-10-29 16:40:45 -07:00
TreeHugger Robot a9c69e1c43 Merge "Cleaning up unused allAppsIconSize/allAppsIconTextSize variables." into ub-launcher3-master 2019-10-29 22:57:24 +00:00
Andy Wickham 6547f1a937 Forces OveriewInputConsumer to be used when Assistant is running on top of Launcher.
Previously it was using OtherActivityInputConsumer, which got things in a
pretty weird state (e.g. most recent app would appear in the center as if
it was the active app when you started Quick Switching, etc.).

By default (toggleable by a feature flag), OverviewWithoutFocusInputConsumer
is used because Assistant doesn't seem to respect the CLOSE_SYSTEM_DIALOGS
broadcast, at least in half-shelf mode. In this case, the Home intent is
sent on swipe up, or you can dismiss it with the back gesture or by tapping
above the half shelf.

The new feature flag ASSISTANT_GIVES_LAUNCHER_FOCUS routes touches through
OverviewInputConsumer. As opposed to OverviewWithoutFocusInputConsumer,
this allows Quick Step to work while Assistant is running. Additional logic
is added to dismiss the Assistant when appropriate. Note that the dismissal
happens atomically, so it's not completely fluid with the other animations.
As mentioned above, this is disabled by default because Assistant doesn't
currently respect CLOSE_SYSTEM_DIALOGS.

Demo with the flag enabled (and Assistant respecting CLOSE_SYSTEM_DIALOGS):
https://drive.google.com/open?id=1W5jGpn_TEC-KjrYwQtaBT3pzxG_5tC4W

Bug: 139661510
Change-Id: I261653118aff289b329ec2a7ca6e52f100f7835a
Merged-In: I261653118aff289b329ec2a7ca6e52f100f7835a
2019-10-29 14:39:35 -07:00
Andy Wickham d386d7da7c Forces OveriewInputConsumer to be used when Assistant is running on top of Launcher.
Previously it was using OtherActivityInputConsumer, which got things in a
pretty weird state (e.g. most recent app would appear in the center as if
it was the active app when you started Quick Switching, etc.).

By default (toggleable by a feature flag), OverviewWithoutFocusInputConsumer
is used because Assistant doesn't seem to respect the CLOSE_SYSTEM_DIALOGS
broadcast, at least in half-shelf mode. In this case, the Home intent is
sent on swipe up, or you can dismiss it with the back gesture or by tapping
above the half shelf.

The new feature flag ASSISTANT_GIVES_LAUNCHER_FOCUS routes touches through
OverviewInputConsumer. As opposed to OverviewWithoutFocusInputConsumer,
this allows Quick Step to work while Assistant is running. Additional logic
is added to dismiss the Assistant when appropriate. Note that the dismissal
happens atomically, so it's not completely fluid with the other animations.
As mentioned above, this is disabled by default because Assistant doesn't
currently respect CLOSE_SYSTEM_DIALOGS.

Demo with the flag enabled (and Assistant respecting CLOSE_SYSTEM_DIALOGS):
https://drive.google.com/open?id=1W5jGpn_TEC-KjrYwQtaBT3pzxG_5tC4W

Bug: 139661510
Change-Id: I261653118aff289b329ec2a7ca6e52f100f7835a
Tested: Manually used quick switch after invoking Assistant from home screen.
2019-10-29 14:25:29 -07:00
Sunny Goyal 14168431bd Adding support for dynamic calendar and clock icons
Change-Id: Icdba34340a27a4f6dff7310d0bf9fd29aef1330c
2019-10-29 13:50:02 -07:00
Jonathan Miranda 632bcf76af Merge "Fix NPE caused by an install flow where we decode the LauncherActivityInfo but we don't fill in the data Intent." into ub-launcher3-qt-future-dev
am: dafd8d9225

Change-Id: If55021b2aa2c031adc132b9b4404d4d6fb1a8003
2019-10-29 12:17:45 -07:00
Jonathan Miranda dafd8d9225 Merge "Fix NPE caused by an install flow where we decode the LauncherActivityInfo but we don't fill in the data Intent." into ub-launcher3-qt-future-dev 2019-10-29 19:03:25 +00:00
TreeHugger Robot bec28445ea Merge "Removing tracing for a fixed bug" into ub-launcher3-master 2019-10-29 00:32:31 +00:00
vadimt 5631b4a7ef Removing tracing for a fixed bug
Bug: 141770616
Change-Id: I52ec681eca20733021090fe50058bc7d3f996ade
2019-10-28 16:59:45 -07:00
Sally Yuen 70d7860eae Merge "Fix TalkBack page announcments in RecentsView" into ub-launcher3-master 2019-10-28 19:10:51 +00:00
Sunny Goyal 3808a69a6c Storing BitmapInfo instead of icon and color directly in itemInfo
This will allow subclassing BitmapInfo to support custom icon/dynamic
icons which can be loaded on the background thread instead of going
through IconFactory which runs on UiThread

Change-Id: Ieced6e91330bdff1b505826d097a8df711dfe967
2019-10-28 11:12:47 -07:00
android-build-team Robot e90cf4fd91 Snap for 5969935 from 29c029eade to rvc-release
Change-Id: Iba886d6ff34dbd26bb9e22abadecf8dc8c26b6e7
2019-10-27 23:19:28 +00:00
Xin Li 29c029eade [automerger skipped] Merge Coral/Flame into AOSP master am: 8021732ca7 -s ours am: fb7d9a4e2f -s ours am: 457ee2c4c6 -s ours
am: 4fba129548 -s ours
am skip reason: change_id I6f659f61e70630236cabf7a00af39ae2c2c7264c with SHA1 6d14b39680 is in history

Change-Id: If226236f4eca357faac66cf0a5d28155dd3cfcb5
2019-10-26 22:50:38 -07:00
Xin Li 4fba129548 [automerger skipped] Merge Coral/Flame into AOSP master am: 8021732ca7 -s ours am: fb7d9a4e2f -s ours
am: 457ee2c4c6 -s ours
am skip reason: change_id I6f659f61e70630236cabf7a00af39ae2c2c7264c with SHA1 6d14b39680 is in history

Change-Id: Ic39c5dd3688ba0ca87345fa4b4c9bd97a944383c
2019-10-26 22:40:51 -07:00
Xin Li 457ee2c4c6 [automerger skipped] Merge Coral/Flame into AOSP master am: 8021732ca7 -s ours
am: fb7d9a4e2f -s ours
am skip reason: change_id I6f659f61e70630236cabf7a00af39ae2c2c7264c with SHA1 6d14b39680 is in history

Change-Id: I94b81482d201f879e62cc5877cefd03786b95125
2019-10-26 22:31:24 -07:00
Xin Li fb7d9a4e2f [automerger skipped] Merge Coral/Flame into AOSP master
am: 8021732ca7 -s ours
am skip reason: change_id I6f659f61e70630236cabf7a00af39ae2c2c7264c with SHA1 6d14b39680 is in history

Change-Id: I28526dc1d4f2066ab142a8ea9211c823d736bd9c
2019-10-26 22:16:49 -07:00
android-build-team Robot f35fb60b4e Snap for 5968874 from 971a496fc0 to rvc-release
Change-Id: I9064ab6a5b560aed0c2f0ff16182c3ae067eeb94
2019-10-26 23:16:04 +00:00
TreeHugger Robot 971a496fc0 Merge "Skip handling input while the user is still locked" 2019-10-26 05:54:34 +00:00
Winson Chung 0d9752c647 Merge "15/ Move some more logic into gesture/device state" into ub-launcher3-master 2019-10-26 03:41:26 +00:00
TreeHugger Robot ac04c5fd31 Merge "Reducing chances for the object with finalizer to be reffed by register" into ub-launcher3-master 2019-10-26 03:37:19 +00:00
vadimt 56b800bfea Reducing chances for the object with finalizer to be reffed by register
As suggested in b/143155020#comment27

Bug: 143155020
Change-Id: I4ed87a003fcd7afde213014fc1ba8b004500e71a
2019-10-25 18:12:25 -07:00
TreeHugger Robot db7631ba4b Merge "14/ Bake the running task info into the gesture state" into ub-launcher3-master 2019-10-26 00:43:31 +00:00
Tony Wickham 7af5033e49 Add BothAxesSwipeDetector
This reports both x and y displacement, and both velocities onDragEnd().

Bug: 126596417
Change-Id: I1c62074b99fe21bc9eedf615e3c9a0a0a400bf81
2019-10-25 16:54:41 -07:00
vadimt b7eedb4579 Support for overriding test run flavor
Change-Id: I054a1eaa888cd97a7c7fa5fcc65513d6d89c3a1c
2019-10-25 16:44:29 -07:00
Tony Wickham 51a4c7bd41 [automerger skipped] Move overview haptic feedback to VibratorWrapper singleton
am: 329fca4550 -s ours
am skip reason: change_id I0178a52088dd4150d7ba054983697ea63a00d9a8 with SHA1 052c881415 is in history

Change-Id: I87595769e6898817946e374743bd662751830709
2019-10-25 16:27:45 -07:00
TreeHugger Robot 7744b8251a Merge "Moving some notification binder calls to worker thread" into ub-launcher3-master 2019-10-25 22:56:44 +00:00
Tony Wickham 329fca4550 Move overview haptic feedback to VibratorWrapper singleton
Bug: 141886704
Change-Id: I0178a52088dd4150d7ba054983697ea63a00d9a8
Merged-In: I0178a52088dd4150d7ba054983697ea63a00d9a8
2019-10-25 22:53:21 +00:00
Winson Chung 4998b19307 15/ Move some more logic into gesture/device state
- Bake overview/home component into the gesture state (it should never
  change mid-gesture), this allows us to remove OverviewComponentObserver
  refs from the handlers
- Move nav bar position into DeviceState
- Remove passing RecentsModel into the handlers, it already partially
  references it statically

Bug: 141886704
Change-Id: I62f9138651cbe1fb984b57b96e4212ebaa1ffb5d
2019-10-25 15:52:25 -07:00
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