summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix folder open/close animation when grid size is small.Jon Miranda2019-11-192-19/+68
| | | | | | | | | The issue was that the scaled folder size was smaller than the clip size. To ensure that the folder size is always larger than the clip size, we instead scale the contents of the folder instead of the folder itself. Bug: 143703075 Change-Id: I6eadcc487148fe7e2b7dd9f0ff94a9205048b992
* Merge "Fix folder available height calculation" into ub-launcher3-qt-future-devSamuel Fufa2019-11-182-8/+9
|\
| * Fix folder available height calculationSamuel Fufa2019-11-142-8/+9
| | | | | | | | | | | | Bug: 139456471 Test: Manual Change-Id: Ic86c481e76f8b6629ad74109ef98900f1c00e16c
* | Merge "fix custom shortcut test" into ub-launcher3-qt-future-devPinyao Ting2019-11-152-17/+18
|\ \
| * | fix custom shortcut testPinyao Ting2019-11-152-17/+18
| | | | | | | | | | | | | | | | | | Bug: 143725213 Change-Id: I296452faea67568b39a35968bb813dc4e51a51fc Merged-In: I296452faea67568b39a35968bb813dc4e51a51fc
* | | Merge "Fixes missing LauncherEvent for TAP action on FOLDER_ICON" into ↵Thiru Ramasamy2019-11-143-30/+56
|\ \ \ | | | | | | | | | | | | ub-launcher3-qt-future-dev
| * | | Fixes missing LauncherEvent for TAP action on FOLDER_ICONThiru Ramasamy2019-11-123-30/+56
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 143969621 Change-Id: I8d08d1c55f90c6aeacd63ced8235de851ec2cad9
* | | | Merge "Enable a11y scrolling with item drag" into ub-launcher3-qt-future-devSamuel Fufa2019-11-141-2/+6
|\ \ \ \
| * | | | Enable a11y scrolling with item dragSamuel Fufa2019-11-131-2/+6
| | |_|/ | |/| | | | | | | | | | | | | | | | | | Bug:142300278 Test:Manual Change-Id: Ieb79dac8a793f5adfe715b1cbe5b7ecae95a26b5
* | | | Merge "Make home setting edge-to-edge" into ub-launcher3-qt-future-devSamuel Fufa2019-11-142-1/+5
|\ \ \ \ | |_|_|/ |/| | |
| * | | Make home setting edge-to-edgeSamuel Fufa2019-11-122-1/+5
| |/ / | | | | | | | | | | | | | | | Bug:139437515 Test:Manual Change-Id: Iadd7fadbd48f80a77880bfc3118be6c3ed7e3040
* | | Merge "Tapl: AllApps: ensuring a minimal vertical size of an icon" into ↵TreeHugger Robot2019-11-133-0/+17
|\ \ \ | | | | | | | | | | | | ub-launcher3-qt-future-dev
| * | | Tapl: AllApps: ensuring a minimal vertical size of an iconvadimt2019-11-133-0/+17
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | Clicking an icon within its padding area is ignored by Launcher. Hence, ensuring that the icon on AllApps is higher that 2 paddings. Bug: 141770616 Change-Id: I19e3ba7cfa25de75a47202845d0838bea46af92c Merged-In: I19e3ba7cfa25de75a47202845d0838bea46af92c
* | | disable custom shortcut test in oopPinyao Ting2019-11-121-0/+1
| | | | | | | | | | | | | | | Bug: 142154748 Change-Id: I08ec8f665a3cc45610f8f2b27a60f7334a2b1b24
* | | include predicted_rank in app launch loggingPinyao Ting2019-11-138-8/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Preventing dead lock in layout inflationSunny Goyal2019-11-121-7/+11
|/ / | | | | | | | | | | Bug: 143353100 Change-Id: I52d0794aad26c1d1de8cb373f3398f626c15b4af (cherry picked from commit d1a67d0d7238cecf2c55ff095e2ec2b1621ac9a1)
* | Merge "Address SessionCommitReceiver vulnerability by validating intent." ↵TreeHugger Robot2019-11-081-1/+6
|\ \ | | | | | | | | | into ub-launcher3-qt-future-dev
| * | Address SessionCommitReceiver vulnerability by validating intent.Jon Miranda2019-11-081-1/+6
| |/ | | | | | | | | Bug: 144081762 Change-Id: I28699d26abefc716e57c281c15699f15003229b2
* | Merge "Scaling down hotseat to match prediction row size when going to ↵TreeHugger Robot2019-11-078-44/+83
|\ \ | | | | | | | | | overview" into ub-launcher3-qt-future-dev
| * | Scaling down hotseat to match prediction row size when going to overviewSunny Goyal2019-11-068-44/+83
| | | | | | | | | | | | | | | Bug: 141265005 Change-Id: I3b11146881af334508f553e4ca3a36b9291511d9
* | | Merge "[DO NOT MERGE] Folder name suggest Bug: 142498588" into ↵Hyunyoung Song2019-11-065-12/+99
|\ \ \ | |/ / |/| | | | | ub-launcher3-qt-future-dev
| * | [DO NOT MERGE] Folder name suggestHyunyoung Song2019-11-065-12/+99
| | | | | | | | | | | | | | | | | | | | | Bug: 142498588 Change-Id: I735c842522f08db1fb9a11f731b63f8dba5a298f Signed-off-by: Hyunyoung Song <hyunyoungs@google.com>
* | | Merge "Add BothAxesSwipeDetector" into ub-launcher3-qt-future-devTony Wickham2019-11-063-0/+101
|\ \ \
| * | | Add BothAxesSwipeDetectorTony Wickham2019-10-253-0/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reports both x and y displacement, and both velocities onDragEnd(). Bug: 126596417 Change-Id: I1c62074b99fe21bc9eedf615e3c9a0a0a400bf81
* | | | Merge "Fix icons vanishing when dragged within folder" into ↵TreeHugger Robot2019-11-061-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | ub-launcher3-qt-future-dev
| * | | | Fix icons vanishing when dragged within folderSamuel Fufa2019-11-051-1/+1
| | |_|/ | |/| | | | | | | | | | | | | | | | | | Bug: 143702700 Test: Manual Change-Id: Idc24086553fd337fc2a553e25daa570073d9ad51
* / | | Fix dragging icon badge offsetSamuel Fufa2019-11-051-1/+1
|/ / / | | | | | | | | | | | | | | | Bug: 143702640 Test: Manual Change-Id: I86d97c1f0ea02c86f4bf745a8bdda3887c62f27e
* | | Add additional shortcutExists check to prevent same app from being auto added.Jon Miranda2019-11-041-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since we made the change to treat all auto added workspace items as promise icons, the initial shortcutExists check breaks since its comparing the promise intent to the actual app intent. This additional shortcutExists check can compare the proper intents. Bug: 143803446 Change-Id: Ifa27b15205d6e17f83a4437ac175d51815688c84
* | | Merge "Fix issue where popup jumps to full size before closing" into ↵Tony Wickham2019-11-011-4/+4
|\ \ \ | | | | | | | | | | | | ub-launcher3-qt-future-dev
| * | | Fix issue where popup jumps to full size before closingTony Wickham2019-11-011-4/+4
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some background on what was happening: - When mEndRect.isEmpty(), we set it to (0, 0 , width, height) - We called mEndRect.setEmpty() in animateClose(), but override mEndRect if the reveal animation set the outline bounds. - But the reveal animation doesn't set the outline bounds until after the arrow animation (40ms) finishes, i.e. the arrow scales up for 40ms then we clip to outline and start revealing the popup - Thus, if you started a drag before the arrow animation finished, we called mEndRect.setEmpty(), which made the close animation start from the full popup size even though it was previously invisible. To fix this, we clip the popup to its (empty) outline while the arrow animates in, and then we can always start from wherever the outline currently is when we close the popup. Test: - Set animation duration to 10x - Long press an icon, and start dragging before the arrow scale animation finishes - The popup never shows, whereas before it jumped to full size Bug: 143639898 Change-Id: I284dd06a23e0e9c3faf066a0083ac13bac88ebcc
* | | Merge "Maintain dot and text visibility if a new popup is created while ↵Tony Wickham2019-11-011-2/+5
|\ \ \ | |/ / |/| | | | | closing" into ub-launcher3-qt-future-dev
| * | Maintain dot and text visibility if a new popup is created while closingTony Wickham2019-11-011-2/+5
| |/ | | | | | | | | | | | | | | | | | | | | | | Test: - Long press an icon to open the popup - Long press the same icon while the popup is open Previously, the dot would reappear (when the original popup finished closing). Now, the dot stays hidden, as it should since a popup is showing. Bug: 143639898 Change-Id: Ia0bdb626e02f4ad9ba12c27d94fea054b4afe50e
* | Merge "Fix bug where Files app keeps getting added to the workspace." into ↵TreeHugger Robot2019-10-302-0/+8
|\ \ | | | | | | | | | ub-launcher3-qt-future-dev
| * | Fix bug where Files app keeps getting added to the workspace.Jon Miranda2019-10-302-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Forces OveriewInputConsumer to be used when Assistant is running on top of ↵Andy Wickham2019-10-297-30/+86
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Fix NPE caused by an install flow where we decode the ↵Jonathan Miranda2019-10-291-15/+20
|\ \ | |/ |/| | | LauncherActivityInfo but we don't fill in the data Intent." into ub-launcher3-qt-future-dev
| * Fix NPE caused by an install flow where we decode the LauncherActivityInfoJon Miranda2019-10-251-15/+20
| | | | | | | | | | | | | | but we don't fill in the data Intent. Bug: 143190879 Change-Id: I8f774203b99f022b2cf1708de6d8fe2398b332ce
* | Move overview haptic feedback to VibratorWrapper singletonTony Wickham2019-10-253-25/+90
|/ | | | | | Bug: 141886704 Change-Id: I0178a52088dd4150d7ba054983697ea63a00d9a8 Merged-In: I0178a52088dd4150d7ba054983697ea63a00d9a8
* Merge "Add support for work profile promise icons." into ↵TreeHugger Robot2019-10-247-29/+68
|\ | | | | | | ub-launcher3-qt-future-dev
| * Add support for work profile promise icons.Jon Miranda2019-10-247-29/+68
| | | | | | | | | | | | | | | | | | | | | | | | - 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
* | Merge "Refactor SwipeDetector to track both axes" into ↵TreeHugger Robot2019-10-2415-261/+344
|\ \ | |/ |/| | | ub-launcher3-qt-future-dev
| * Refactor SwipeDetector to track both axesTony Wickham2019-10-2415-261/+344
| | | | | | | | | | | | | | | | | | | | 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 "Fix testQuickSwitchFromApp" into ub-launcher3-qt-future-devTreeHugger Robot2019-10-242-16/+21
|\ \ | |/ |/|
| * Fix testQuickSwitchFromAppTony Wickham2019-10-232-16/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Fixing activity leak on config changevadimt2019-10-181-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | If attachTo happens before the view is attached to window, ViewOnDrawExecutor hooks to the tree observer twice (second time from onViewAttachedToWindow). It only unhooks once. Since tree observer is global, this leads to leaking the activity, and besides, all old activities getting the events from the tree observer. Bug: 139137636 Change-Id: Ie2641b8f3614545052fe34ad6588b070c3b82a33 (cherry picked from commit ebb5c75344168397403edd74f8fc5e9603e41b13)
* | Merge "Have consistent All Apps UI between grid size changes." into ↵Jonathan Miranda2019-10-163-97/+123
|\ \ | |/ |/| | | ub-launcher3-qt-future-dev
| * Have consistent All Apps UI between grid size changes.Jon Miranda2019-10-163-97/+123
| | | | | | | | | | | | | | | | | | We build an IDP with no grid size override values. This allows us to reference the profile measurements so that we can have a consistent UI for areas that the grid size change should not affect. Bug: 124967099 Change-Id: I6235862c95800d8f31dbf2de1d12b1fcf4dbd850
* | Fix quick switch test gesture in landscape 2-button modeTony Wickham2019-10-152-7/+22
| | | | | | | | | | | | | | | | | | | | | | It should swipe from the bottom right to top right when the nav bar is on the right, rather than from the bottom left to bottom right. For now, disable testQuickSwitchFromApp() because it seems to have other failures as well. Bug: 140252765 Change-Id: I1f4989f3ea5456c18bb9cbf42ea4b157cee500d7
* | Changing the taskAffinity for LockScreenRecentsActivity so that other ↵Sunny Goyal2019-10-151-0/+1
| | | | | | | | | | | | | | | | | | | | activities do not get started in this task Bug: 138473688 Change-Id: I63b72236496a818d08ccb14e02e4fbf698a0cc49 (cherry picked from commit 657d3f8ca7f6ea92b42edfaf7ede534eca0e21bd)
* | Merge "Fix mSubtractDisplacement when recatching" into ↵TreeHugger Robot2019-10-151-2/+1
|\ \ | |/ |/| | | ub-launcher3-qt-future-dev