summaryrefslogtreecommitdiffstats
path: root/quickstep/src
Commit message (Collapse)AuthorAgeFilesLines
* Fixes ag/10573640 on qt-future-dev branch.Andy Wickham2020-03-241-1/+7
| | | | | | | | | | | | | Original qt-future-dev change was ag/10601877. The change needed to be in UiFactory, not RecentsUiFactory. Fixes: 146593239 Test: Installed NexusLauncherDebug on a QD4A build and tried the repo steps. Also built other launcher variants. Merged-In: Ib9c85de2f83f99d1ef53fb17fde5d0b3c514849a Change-Id: I802e2b0069a19ca62a08325bb6d0de5275c43c9b
* [DO NOT MERGE] Adds fling gesture suppression to LauncherGovinda Wasserman2020-03-121-0/+5
| | | | | | Test: Tested locally BUG: 150688842 Change-Id: Ifa96bd01363de47cf1d8cdce34d81d525c8c2c04
* Dismisses system overlays for Home intent.Andy Wickham2020-03-101-0/+2
| | | | | | | | | | Test: Used Facebook chatheads (not system bubble). Before the change, Home gesture didn't work. After the change, it does work :) Bug: 146593239 Merged-In: Ib9c85de2f83f99d1ef53fb17fde5d0b3c514849a Change-Id: I19d91aaed19ccaec68478e364ce6b80049d49a98
* Improve quick switch from home by tracking both x and y motionTony Wickham2019-11-141-1/+9
| | | | | | | | | | | | | | | - Add NoButtonQuickSwitchTouchController which uses BothAxesSwipeDetector to track horizontal and vertical motion. - Initially, we only detect swipe left to right to quick switch (like before), but then we allow swipe up to either go to overview (if you hold) or back home (if you don't hold). - xDisplacement transitions non-overview components out (e.g. shelf and workspace), and translates overview in. - yDisplacement translates overview up and scales it down Bug: 126596417 Change-Id: Id679ad84c08246e205c667a78ed5df00d7276258 Merged-In: Id679ad84c08246e205c667a78ed5df00d7276258
* Move shelf peeking anim code to ShelfPeekAnim classTony Wickham2019-11-142-15/+15
| | | | | | Bug: 126596417 Change-Id: I5ba501b04b3eaf12a20ba1312ef362f9734761c3 Merged-In: I5ba501b04b3eaf12a20ba1312ef362f9734761c3
* include predicted_rank in app launch loggingPinyao Ting2019-11-131-1/+1
| | | | | | | | | | | | Test: 1. . build/envsetup.sh && tapas NexusLauncher 2. ccdebug && cclogcat 3. launch from workspace any app that is also in predicted apps 4. verify in terminal it has correct predicted_rank Bug: 143855018 Change-Id: I07a62f07057537a6c09384cf944bbc5aa5888d22 Merged-In: I07a62f07057537a6c09384cf944bbc5aa5888d22
* Scaling down hotseat to match prediction row size when going to overviewSunny Goyal2019-11-062-4/+19
| | | | | Bug: 141265005 Change-Id: I3b11146881af334508f553e4ca3a36b9291511d9
* Forces OveriewInputConsumer to be used when Assistant is running on top of ↵Andy Wickham2019-10-291-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Refactor SwipeDetector to track both axesTony Wickham2019-10-242-4/+4
| | | | | | | | | | 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
* Merge "Fill in LauncherTarget fields with values extracted from ↵TreeHugger Robot2019-10-021-1/+114
|\ | | | | | | LauncherLogProto.Target." into ub-launcher3-qt-future-dev
| * Fill in LauncherTarget fields with values extracted from ↵Becky Qiu2019-09-201-1/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LauncherLogProto.Target. Test: manual Bug: 137777105 Log result: 1. Swipe to -1: data { elapsed_timestamp_nanos: 1372265229686264 atom { launcher_event { action: SWIPE_LEFT src_state: HOME dst_state: HOME extension { src_target { } } is_swipe_up_enabled: true } } } 2. Swipe out of -1: data { elapsed_timestamp_nanos: 1372368006970305 atom { launcher_event { action: SWIPE_RIGHT src_state: HOME dst_state: HOME extension { src_target { page_id: -1 } } is_swipe_up_enabled: true } } } 3. Launch app from homescreen: data { elapsed_timestamp_nanos: 1372397640628726 atom { launcher_event { action: LAUNCH_APP src_state: HOME dst_state: BACKGROUND extension { src_target { item: APP_ICON grid_x: 2 grid_y: 1 } src_target { } } is_swipe_up_enabled: true } } } 4. Launch app from hotseat: data { elapsed_timestamp_nanos: 1372399813031963 atom { launcher_event { action: LAUNCH_APP src_state: HOME dst_state: BACKGROUND extension { src_target { item: APP_ICON grid_x: 2 } src_target { container: HOTSEAT } } is_swipe_up_enabled: true } } } 5. Launch app from allapps prediction: data { elapsed_timestamp_nanos: 1372403080724736 atom { launcher_event { action: LAUNCH_APP src_state: ALLAPPS dst_state: BACKGROUND extension { src_target { item: APP_ICON } src_target { container: PREDICTION } } is_swipe_up_enabled: true } } } Change-Id: I981401d06577c15948cfee0062b8a6f8a5594345
* | Update all apps fade interpolators for home <-> all appTony Wickham2019-10-021-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, predictions faded in quickly but then all apps faded in linerally over entire rest of the transition. Now, all apps fades in quickly after reaching the overview threshold where predictions are opaque. Also implemented the reverse, so that predictions/all apps content remain opaque when returning home until reaching the overview threshold near the bottom, where they fade out as quickly as they faded in. We do this for 3-button mode as well. Bug: 141986013 Change-Id: Ia35ab3ac9714e89f754293445a7839e15da5313d
* | Fix ScrimView caret alignment and ignore touchesSamuel Fufa2019-09-261-1/+1
|/ | | | | | Test:Manual Bug:79868152 Change-Id: Idd5a2b965173b8071697b50aac8760b0d84e469f
* When DeviceConfig/FeatureFlag value is different than the previous value, ↵Hyunyoung Song2019-09-121-2/+19
|\ | | | | | | | | | | | | | | refresh icon cache am: e17a699618 Change-Id: I5c2e54c069fc03172f471f9655cd8b09b5ac6dce
| * When DeviceConfig/FeatureFlag value is different than the previousHyunyoung Song2019-09-111-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | value, refresh icon cache Bug: 135638690 Bug: 138964490 Test: manually toggled feature flag UI on/off $ adb shell device_config put launcher APP_SEARCH_IMPROVEMENTS [true|false] when launcher is in foreground and also when it is in the background Afterwards, saw if "bank" would show BofA app or not Change-Id: I98b62bd07b14a225168217d7eb9bfdfc7f74435d
| * Reduces padding of the Overview shelf in no button mode.Andy Wickham2019-09-031-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | Before: https://screenshot.googleplex.com/iw6baTCfoy2.png After: https://screenshot.googleplex.com/8CcsQvLhYDo.png Desired: https://b.corp.google.com/action/issues/139551306/attachments/26925873?download=false Test: Examined before and after padding and verified 3-button is unaffected. Fixes: 139551306 Change-Id: Ia416399cf25e7c6c2fb8aa84ad20e7ad74dcd31b (cherry picked from commit ddc9622e92fb5a4b211a5942ec679d195dc10d19)
* | Defer listening on widget host until after the state transition endsWinson Chung2019-09-091-1/+1
| | | | | | | | | | Bug: 140246642 Change-Id: I4532e4298f04ff5c6dea04ccda89320995cadb80
* | Reduces padding of the Overview shelf in no button mode.Andy Wickham2019-08-291-2/+4
| | | | | | | | | | | | | | | | | | | | | | Before: https://screenshot.googleplex.com/iw6baTCfoy2.png After: https://screenshot.googleplex.com/8CcsQvLhYDo.png Desired: https://b.corp.google.com/action/issues/139551306/attachments/26925873?download=false Test: Examined before and after padding and verified 3-button is unaffected. Fixes: 139551306 Change-Id: Ia416399cf25e7c6c2fb8aa84ad20e7ad74dcd31b
* | Merge "Move swipe actions on container logging to west world." into ↵Becky Qiu2019-08-231-7/+23
|\| | | | | | | | | | | | | | | ub-launcher3-qt-qpr1-dev am: 6d0d8969f6 Change-Id: I2229ea7c878ac84b00110235df65ced2f9baf171
| * Move swipe actions on container logging to west world.Becky Qiu2019-08-221-7/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: manual Bug: 137777105 Log result for swiping in and out of -1 screen. data { elapsed_timestamp_nanos: 597609736235111 atom { launcher_event { action: SWIPE_LEFT src_state: HOME dst_state: HOME is_swipe_up_enabled: true } } } data { elapsed_timestamp_nanos: 597610569783111 atom { launcher_event { action: SWIPE_RIGHT src_state: HOME dst_state: HOME is_swipe_up_enabled: true } } } Change-Id: Ic84d3c32d1c9f780f13ec5cd6320e9f1d610f018
* | Moving various common executors to a single locationSunny Goyal2019-08-207-36/+36
| | | | | | | | Change-Id: I44bca49b8adb6fa22c3b48d10f674e42c28d792c
* | Merge "Make TogglableFlag backed by DeviceConfig for e2e testing" into ↵Hyunyoung Song2019-08-151-0/+32
|\| | | | | | | | | | | | | | | ub-launcher3-qt-qpr1-dev am: 96eba3aea6 Change-Id: I738256f1623119a61197c03008e098b066161542
| * Merge "Make TogglableFlag backed by DeviceConfig for e2e testing" into ↵Hyunyoung Song2019-08-151-0/+32
| |\ | | | | | | | | | ub-launcher3-qt-qpr1-dev
| | * Make TogglableFlag backed by DeviceConfig for e2e testingHyunyoung Song2019-08-151-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 138964490 TL;DR;; need this to be part of QQ1 or QD1 to verify if DeviceConfig can be supported for launcher toggleableFlags. Not handled in this CL: - When flag is locally modified, that will override the flag value How that scenario is handled should be discussed separately and is not within scope of this CL. Change-Id: I2e6694a40bee9202ed0b0d559e3b5607634071bf
| * | Adding support for storing keywords in iconCacheSunny Goyal2019-08-141-5/+1
| | | | | | | | | | | | | | | | | | Change-Id: I1183e63a6556ebfb3eee5df23d149e09728193a9 Merged-In: I1183e63a6556ebfb3eee5df23d149e09728193a9 (cherry picked from commit e529a86fbd2eaf7b13575af6b6adf0eb6e25e45c)
* | | Merge "Log the event for swiping up to dismiss a task in Overview." into ↵Becky Qiu2019-08-141-0/+11
|\| | | | | | | | | | | | | | | | | | | | | | | ub-launcher3-qt-qpr1-dev am: 22edac9bf5 Change-Id: Iae05c668fecf84c79086cfb6821e9644ac08bb71
| * | Log the event for swiping up to dismiss a task in Overview.Becky Qiu2019-08-091-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: manual Bug: 137777105 Demo logging for dismissing a task: data { elapsed_timestamp_nanos: 70772067228810 atom { launcher_event { action: DISMISS_TASK src_state: OVERVIEW dst_state: BACKGROUND is_swipe_up_enabled: true } } } Change-Id: I5569b80e2e1f35661bc5e9e343c6c298791a1ec1
| * | show dot in deep shortcuts when notification contains exactly identicalPinyao Ting2019-08-051-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | set of person Bug: 132336512 Change-Id: I975524e28168c10a186cdc24b188c161faf433cf Merged-In: I975524e28168c10a186cdc24b188c161faf433cf
* | | Remove activityInfo from cache on package uninstallVinit Nayak2019-08-082-2/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were keeping stale activityInfo objects from package manager after an application got uninstalled. We also were not removing task icons from the cache after they were removed, which meant killing an app and then re-opening would put 2 entries in the cache since the two had unique process IDs. fixes: 137731960 Test: Download app from play store, open it, go to overview and observe that correct icon showing. Uninstall it, download same app again, open it, and in overview confirm that correct app icon is still showing Change-Id: Icf482b0ad0ae66c10d52547582d8eeb2a544fb88
* | | Adding support for storing keywords in iconCacheSunny Goyal2019-08-071-6/+1
| | | | | | | | | | | | Change-Id: I1183e63a6556ebfb3eee5df23d149e09728193a9
* | | Merge "Revert "Use new onTaskListUpdated() callback"" into ub-launcher3-masterSunny Goyal2019-08-073-19/+17
|\ \ \
| * | | Revert "Use new onTaskListUpdated() callback"Sunny Goyal2019-08-073-19/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit a04997b0811f2af79c0a91046d85d7e992496cab. Reason for revert: Platform master has API changes, and launcher-master should still map to qpr branch Change-Id: Ib201c71b5557715d585d322ec2a1a528e352e61c
* | | | Merge "Use new onTaskListUpdated() callback" into ub-launcher3-masterVinit Nayak2019-08-063-17/+19
|\| | |
| * | | Use new onTaskListUpdated() callbackVinit Nayak2019-07-263-17/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Migrated to general method for receiving updates whenever the recents list undergoes any additions or removals. Test: Opened apps, and as I closed them I ensured via debugger and log statements that the callback was being triggered from the framework module. See tests in RecentTasksTest fixes: 111077107 Change-Id: Ia9bddb50861a1b107e6a88c9f9bb89944800d5d8
* | | | show dot in deep shortcuts when notification contains exactly identicalPinyao Ting2019-08-051-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | set of person Bug: 132336512 Change-Id: I975524e28168c10a186cdc24b188c161faf433cf
* | | | Fill the log container as hotseat or workspace based on position.Becky Qiu2019-08-012-3/+3
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | am: 84fa94e2fc Change-Id: If9a5d88062addbd09909e04ef5c2c59e7e5488a7
| * | | Fill the log container as hotseat or workspace based on position.Becky Qiu2019-08-012-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: manual Bug: 137953006 Swipe from workspace: 07-30 15:15:44.031 9779 9779 D UserEvent: action:FLING direction=UP direction=UP 07-30 15:15:44.031 9779 9779 D UserEvent: Source child:WORKSPACE id=0 span(951,1313) parent:WORKSPACE id=0 07-30 15:15:44.031 9779 9779 D UserEvent: Destination child:ALLAPPS 07-30 15:15:44.031 9779 9779 D UserEvent: Elapsed container 826 ms, session 9361 ms, action 0 ms Swipe from hotseat: 07-30 15:15:46.010 9779 9779 D UserEvent: action:FLING direction=UP direction=UP 07-30 15:15:46.010 9779 9779 D UserEvent: Source child:HOTSEAT id=0 span(786,1908) parent:WORKSPACE id=0 07-30 15:15:46.010 9779 9779 D UserEvent: Destination child:ALLAPPS 07-30 15:15:46.010 9779 9779 D UserEvent: Elapsed container 1139 ms, session 11339 ms, action 0 ms Change-Id: I959528889fda778efc569bb59e7f44d3bd5b81bc
* | | | Merge "Fix bug where rounded corners were being set despite being disabled." ↵Jon Miranda2019-08-011-1/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into ub-launcher3-qt-dev am: 9da9a2bd21 am: f20a7d252c am: 783717c0c6 Change-Id: I2c9738fa84d781cbfa9a6fbc071468a5247190ef
| * | | Merge "Fix bug where rounded corners were being set despite being disabled." ↵Jon Miranda2019-08-011-1/+4
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into ub-launcher3-qt-dev am: 9da9a2bd21 Change-Id: Icae4fd3fef3ad221d45e8d9ecdcc018813d560f3
| | * | | Fix bug where rounded corners were being set despite being disabled.Jon Miranda2019-07-231-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 138117089 Change-Id: Icb852e2e07d80c45ad3406ef432b89720887fccf
* | | | | Merge changes Ib3e373c2,Ia5d6f545 into ub-launcher3-qt-r1-dev am: 1343f03e2eTony Wickham2019-07-313-4/+12
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 70f539cd45 Change-Id: Ifddcba1cd63950424f88ad1d8e01fa9a11f73a2e
| * | | | Tie prediction text to all apps interpolatorTony Wickham2019-07-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now floating headers get 2 interpolators: one for the header content itselt, and one for the all apps content that follows. That way, they can choose to intperolate part of their content as if it were part of all apps instead of the header. Currently, we do this to animate predicted icons quickly, followed by the all apps icons, predictions text, all apps scrollbar, and all apps divider as you continue swiping. Bug: 132455160 Change-Id: Ib3e373c291e174e1306a53854d0ad4dc29eb4b76
| * | | | Add OverviewScrim to show below overview but above workspaceTony Wickham2019-07-312-3/+11
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Refactor some basic scrim logic to Scrim class and have WorkspaceAndHotseatScrim and OverviewScrim extend it - Draw OverviewScrim under recents unless predictions are disabled, in which case draw it under hotseat (since that is in recents) - Remove sysui scrim (behind status bar and nav bar) when overview is peeking Bug: 132455160 Change-Id: Ia5d6f54582a4c5a70e3b2d4a98281567edd68519
* | | | Merge "Add several missing swipe logging Enable swipe down to open noti ↵Hyunyoung Song2019-07-251-1/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shade from landscape" into ub-launcher3-qt-r1-dev am: 2cccb134a4 Change-Id: I6fd477dc398e55358a5110a552430eb61c29373d
| * | | Merge "Add several missing swipe logging Enable swipe down to open noti ↵TreeHugger Robot2019-07-251-1/+8
| |\ \ \ | | | | | | | | | | | | | | | shade from landscape" into ub-launcher3-qt-r1-dev
| | * | | Add several missing swipe loggingHyunyoung Song2019-07-251-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable swipe down to open noti shade from landscape Bug: 137137090 Bug: 137954767 Bug: 134181439 Change-Id: I47b4d17c9ae0586565fce101eb478e33ed8f7e3d
* | | | | Merge "Fix QSB becoming invisible" into ub-launcher3-qt-r1-devJames O'Leary2019-07-251-0/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 93dceb8a48 Change-Id: Id0a72f39d828535f177992fdf2c674cc84c5a629
| * | | | Merge "Fix QSB becoming invisible" into ub-launcher3-qt-r1-devJames O'Leary2019-07-251-0/+9
| |\ \ \ \
| | * | | | Fix QSB becoming invisibleJames O'Leary2019-07-251-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This could not be reproduced until I removed a line that wouldn't call onAssistantVisiblityChanged if the argument was the same value as the argument as the previous call. After that, the bug became readily reproducible. I traced through Launcher till I found that FallbackActivityControllerHelper .onAssistantVisibilityChanged was being called while the screen was locked, proving that onAssistantVisiblityChanged was _not_ reaching launcher. Test: Verify bug no longer reproduces. Bug: 134981174 Bug: 135247753 Bug: 135572849 Bug: 135733393 Bug: 136386749 Bug: 136776987 Bug: 137534772 Bug: 137764419 Change-Id: Ib5e8df3b5030a77c5df351a1fcd993db6bd602fc
* | | | | | Merge "Distinguish mDragHandleProgress from mMidProgress" into ↵Tony Wickham2019-07-241-5/+11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ub-launcher3-qt-r1-dev am: cfbdb91a7f Change-Id: Id41c02c6543a4b0a12fc364e5c8e41dd6ccf9fc1