Commit Graph

30770 Commits

Author SHA1 Message Date
thiruram cbeb13d6c7 [AA+] Log app launches from AA+ search result container.
This change will update westworld logs for app launches from AA+ search result. Updates log's container info from AllAppsContainer -> AllAppsPlusSearchResultContainer.

Bug: 178562918
Change-Id: I9ffca27fea42951a57640ef36717c04ff0251506
2021-02-03 10:08:57 -08:00
Hyunyoung Song aa793ff226 Merge "Support shorter height row layout / Disable ICON_SLICE" into sc-dev 2021-02-03 16:47:02 +00:00
Hyunyoung Song 7239df7258 Support shorter height row layout / Disable ICON_SLICE
Bug: 178815297
Bug: 178128837
Bug: 178823469

Test: manual, attached screenshot on the bugreport

Change-Id: Ie69c8928f5acc430320cfc5c85547195866e829e
2021-02-03 01:25:16 -08:00
Hyunyoung Song 351aea720f Merge "Logs stack trace when IME doesn't get attached when all apps swipes up" into sc-dev 2021-02-03 08:33:05 +00:00
Hyunyoung Song 50165042ed Logs stack trace when IME doesn't get attached when all apps swipes up
Bug: 178904132
Test: Manual

Change-Id: I3b62a1a8e927ca8bac4db07053f781260fbff515
2021-02-02 21:42:41 -08:00
Schneider Victor-tulias d0f5aa0dc6 Merge "Update PreloadIconDrawable colors when an app is not startable." into sc-dev 2021-02-02 21:30:15 +00:00
Schneider Victor-tulias 2e292b6343 Update PreloadIconDrawable colors when an app is not startable.
Updated the progress bar and progress track colors when the app is not startable to increase contrast.

Demo: https://drive.google.com/file/d/1iHYBeHgWsItY6edO3NT1RYuXjdKNlEKH/view?usp=sharing

Test: manual

Bug: 171005849

Change-Id: I97bc4e3299108b1e8ef47b498fb3431293f57ad2
2021-02-02 21:30:05 +00:00
Tracy Zhou 18fcb432b1 Merge "[Live Tile] Fix a bunch of issues related to touch input" into sc-dev 2021-02-02 21:04:17 +00:00
Tracy Zhou 035bb22298 [Live Tile] Fix a bunch of issues related to touch input
Here are the issues
- Touch down again during transition of quick switch brings back the previous app
- During transition to overview, touch down on task / in the background area results in weird behaviors

These issues related to touch input are caused by the z-ordering of app and launcher. Because in the current implementation we place launcher on top upon initial swipe up, during the transition (to overview / quick switch), any touch event goes directly to launcher instead of the overview input consumer (where it normally goes to in the non-live tile case), resulting in these weird behaviors mentioned above.

The reason we put app below launcher upon swipe up is to render task view icon earlier (before swipe up settles into overview), which, is not as critical (we don't have the feature now), and we can find other ways to make that happen.

So here are the proposed changes
- Place app on top upon swipe up. Only place launcher on top after transition to overview.
- Remove the temporary fix to disable click for live tile task during transition.
- Remove icon logic in live tile overlay (in this change I only removed the call, but let me know if it's preferred that they are completely removed from LiveTileOverlay in this change)

Test: manual
Fixes: 178640174
Fixes: 175039524
Change-Id: Ib97804c8bbc487bc55160719375c0f2ff3ba7fd3
2021-02-02 10:01:25 -08:00
Hyunyoung Song 5809a40f3e Fix issue of slice icon being rendered on non-UIthread
Bug: 178989579
Test: Manual

Change-Id: I23aa5055c8f07ee9877c1f3ce51cb280ac38a2b7
2021-02-02 01:25:45 -08:00
Andy Wickham ad1d1cfda0 Merge "Allows a plugin Settings activity to designate plugins it supports." into sc-dev 2021-02-02 08:57:51 +00:00
Tony Wickham e747278ee8 Support drag and drop from Taskbar
- Long clicking a BubbleTextView in Taskbar will start a system drag
  and drop operation, setting the original view invisible meanwhile.
- Defer gesture navigation when starting over a Taskbar item, and
  cancel any started gesture if a Taskbar drag and drop starts.

Bug: 171917176
Change-Id: If5049071fbf1755f545ee937daa4edabd869f00d
2021-02-01 18:29:06 -08:00
Tony Wickham b11e4d517d Delegate Taskbar touches to nearest view to ensure 48x48dp touch size
In TaskbarView#onTouchEvent(), which is only reached if a Taskbar
icon didn't already consuem the event, check each child to see if
the event occurs within a 48x48dp bounding box, and delegate the
event and subsequent events to it until UP or CANCEL.

Bug: 171917176
Change-Id: I7afafe0835828ab9213ec6abfe4e88ad7b9af3c4
2021-02-01 18:29:06 -08:00
Tony Wickham 794fe4f58e Add Hotseat items to Taskbar
- Currently supports WorkspaceItemInfo (e.g. normal app icons
  including hotseat predictions and pinned deep shortcuts).
- Currently doesn't support Folders, Notification dots, or
  long press.

Some technical details:
- Always allow HotseatPredictionController updates given the
  Hotseat is always showing even when Launcher is stopped.
- Represent Taskbar Hotseat items as BubbleTextViews, to
  allow for normal click handling etc. When the hotseat is
  updated, we reuse the same BubbleTextViews that were
  initially inflated, and just reapply the new info.
- Add new BubbleTextView iconDisplay for Taskbar, to allow
  for different treatment such as icon size.

Bug: 171917176
Change-Id: I325eb39051f2dc69228b39b5c40ed0cbdad8e200
2021-02-01 18:29:06 -08:00
Andy Wickham 2b14f4bfd4 Allows a plugin Settings activity to designate plugins it supports.
The activity can add categories to its intent filter which
match the actions of the plugins it supports. The Settings
icon is only shown next to these plugins.

This is useful if an app (e.g. SupportApp) implements
multiple plugins which may each want their own settings.

Note: If any settings activity in an app specifies
categories of plugin it supports, any other settings
activities in the same app must also provide categories
of their plugins to disambiguate.

Test: Manually with SupportApp (including mix of plugins
with and without Settings activities) and AwarenessSpace
plugin (with a non-categorized settings activity).

Change-Id: If3ab7b5f7f916fd3f6b05b89cf1a22c9d21403cc
2021-02-01 15:57:00 -08:00
Schneider Victor-tulias 5f7f4cb35d State download information in content description whether or not there was an update.
Talkback wasn't announcing the incremental download/install progress if the progress wasn't updated. Updated BubbleTextView to update the content description with the incremental download/install info if the progress bar should be shown.

Fixes: 149444435

Test: manual
Change-Id: I3efe6e31cec389da4119a2179a341aedd074a0b7
2021-02-01 19:01:11 +00:00
Ice Chang b4ed522ee1 [automerger skipped] Merge "[DO NOT MERGE ANYWHERE] Add swipes left method in Background.java" into rvc-qpr-dev-plus-aosp am: e8cc8d5398 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13400935

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2bb104ac82c4b500ee5f65cf637c593a02b79613
2021-02-01 04:11:29 +00:00
Ice Chang e8cc8d5398 Merge "[DO NOT MERGE ANYWHERE] Add swipes left method in Background.java" into rvc-qpr-dev-plus-aosp 2021-02-01 03:31:11 +00:00
TreeHugger Robot 80466c081a Merge "Support people search results" into sc-dev 2021-01-29 23:47:00 +00:00
Tony Wickham 6d46fff269 Merge "Animate taskbar background alpha and visibility alpha" into sc-dev 2021-01-29 23:03:07 +00:00
Samuel Fufa 1ab83de48e Support people search results
+ Introduce temporary workaround icon loading with URLConnection for play results

Manual: go/search-action-icon

Bug: 177223401
Test: Manual
Change-Id: I3b597faaad38e8cd1419065b80b359720baf52b0
2021-01-29 15:48:08 -06:00
Sunny Goyal 7582ed61eb Merge "Adding quickstep specific permissions to Launcher" into sc-dev 2021-01-29 21:42:40 +00:00
Tony Wickham d683d98b34 Animate taskbar background alpha and visibility alpha
Setup codepath to animate the Taskbar when going to and from Launcher,
primarily by listening for pause/resume signals but also hints from
gesture nav and AppToOverviewAnimationProvider.

Additionally, add TaskbarStateHandler to listen for Launcher state
changes if Taskbar is enabled. Combined, the end behavior is:

- Background alpha is 0 when Launcher is resumed, and 1 when Launcher
  is paused (we can make this animation more interesting later).
- Taskbar is always visible when Launcher is paused, otherwise its
  visibility is determined by multiple factors: LauncherState and
  whether the IME is showing.

Bug: 171917176
Change-Id: I7856fc979931c9d12d714dee11d179fd1b5a6968
2021-01-29 21:22:00 +00:00
Darryl Johnson d462965698 Merge "Revert "Support people search results"" into sc-dev 2021-01-29 21:02:07 +00:00
Darryl Johnson 170a6b7b98 Revert "Support people search results"
This reverts commit f28db55c96.

Reason for revert: Possible cause of b/178836393

Change-Id: I0e787f02377a5b8fa723816978c61927af67665a
2021-01-29 20:51:38 +00:00
Evan Rosky efae829aa5 Merge "Map shell transition to recents animation" into sc-dev 2021-01-29 20:47:44 +00:00
Samuel Fufa fe5e82dabc Merge "Support people search results" into sc-dev 2021-01-29 20:01:31 +00:00
Samuel Fufa f28db55c96 Support people search results
+ Introduce temporary workaround icon loading with URLConnection for play results

Manual: go/search-action-icon

Bug: 177223401
Test: Manual
Change-Id: Ie8e7963447640d98abb9830ec05f26b28ec58345
2021-01-29 12:49:12 -06:00
TreeHugger Robot 26801f802e Merge "Fix incorrect launcher loading." into sc-dev 2021-01-29 18:13:02 +00:00
Jonathan Miranda 0225efac15 Merge "Update FloatingIconView to display PreloadIconDrawables during swipe home animations." into sc-dev 2021-01-29 13:48:26 +00:00
TreeHugger Robot 83cdd1e857 Merge "Fix launcher flicker when unlocking on seascape." into sc-dev 2021-01-29 02:55:49 +00:00
TreeHugger Robot 6bdd00fa25 Merge "Check whether the running task view is non null before setting it to be not clickable for live tile" into sc-dev 2021-01-29 02:21:57 +00:00
TreeHugger Robot e3884455fc Merge "Make Thumbnail search result launch intents" into sc-dev 2021-01-29 01:37:48 +00:00
Schneider Victor-tulias 954bb63899 Fix launcher flicker when unlocking on seascape.
Test: manual

Fixes: 160544577

Launcher flickers if it is locked on portrait, then unlocked on seascape. DisplayController.Info was consistenly being updated late causing launcher to unlock in lanscape then switching to seascape with enough frames in-between for the user to notice. Updated DisplayController to properly update its rotation info and updated DeviceProfile to force an info update when checking if the device is in seascape orientation.

demo: https://drive.google.com/file/d/1JBCvK3brLwOSTC4k56GSxeYozl5x0k7X/view?usp=sharing
Change-Id: Idce139f0e16cb686684c0d3a460c4ec9e5ae466a
2021-01-29 01:02:21 +00:00
Schneider Victor-tulias b40b98db3a Update FloatingIconView to display PreloadIconDrawables during swipe home animations.
Swiping up to go home on an app that is downloading incrementally would cause a jittery animation. Updated FloatingIconView to animate directly to a PreloadIconDrawable.

Demo: https://drive.google.com/file/d/1ddr8OGR4c1ZneyQ0VkkAAxGpwNcP8Wyn/view?usp=sharing

Fixes: 177685929

Test: manual
Change-Id: I4cd2daa18f6d3fed42a9b666063e0b1c1c46e5d9
(cherry picked from commit b8cab8d8786a7de6adfcd5b77af9408e832ed0c2)
2021-01-29 01:00:07 +00:00
Tracy Zhou d9b6d6a86f Check whether the running task view is non null before setting it to be not clickable for live tile
Fixes: 178746755
Test: N/A
Change-Id: Ia8d8bc48a31e4d1babcb948bb27717d14cdb1247
2021-01-28 16:19:25 -08:00
TreeHugger Robot 14faee73e7 Merge "Enabling plugins on Launcher debug builds" into sc-dev 2021-01-28 22:37:06 +00:00
Hyunyoung Song 564ae64e04 Merge "Fix persistent device search edu" into sc-dev 2021-01-28 22:24:47 +00:00
Schneider Victor-tulias 78fb71458f Fix incorrect launcher loading.
Apps that were installed and downloading incrementally would be shown as fully downloaded on reboot. Updated LoaderTask and AppInfo.updateRuntimeFlagsForActivityTarget to account for this.

Fixes: 178528867

Test: manual with hardcoded values

Change-Id: I088e43ae886b4157bad9f4fa8d40373cf7f8235a
(cherry picked from commit 6d0fec8ac774679eeed95a623bfda863db66fd66)
2021-01-28 22:21:08 +00:00
TreeHugger Robot 6a53655df5 Merge "Refactoring startShareActivity to allow crop to be passed in." into sc-dev 2021-01-28 19:28:14 +00:00
TreeHugger Robot 61096e9ba6 Merge "Skipping swipe metrics if recents view doesn't exist" into sc-dev 2021-01-28 18:51:58 +00:00
[1;3C f19a809f72 Map shell transition to recents animation
This hooks up the essential start/finish. One thing to note
is that it uses the normal startActivity rather than a special
startRecents call for shell transitions.

Bug: 162503077
Test: Enable shell transit. Open an app, use gesture to open
      recents.
Change-Id: Ia51fa8baeb43bf3fa768b25a840b629ec94e16a1
2021-01-28 18:20:36 +00:00
TreeHugger Robot 7e27c18755 Merge "Updating ItemInfoMatcher to work with java streams" into sc-dev 2021-01-28 18:06:38 +00:00
Samuel Fufa 7c1e37cce1 Migrate Widgets to new Search API
Test: Manual

Bug: 168321831
Bug: 177223401
Change-Id: Ide276002a47f2345fbe535adbcb3acdc2fbc1233
2021-01-28 06:15:47 -06:00
Hyunyoung Song eca678835a Make Thumbnail search result launch intents
Bug: 178454668
Test: Manual
Change-Id: If82724d9ddedce205b2f754023dd989d20f49eab
2021-01-28 02:47:12 -08:00
Hyunyoung Song f1bcf7a4dd Turn ENABLE_DEVICE_SEARCH to DeviceConfig flag
Change-Id: I6e161bf36b315613bd2f13886cf4ef50470469b0
(cherry picked from commit 650fe52313d9a35de32ad94bb8910bd8d47dc74c)
2021-01-28 09:57:04 +00:00
Tracy Zhou 3159909d12 Fix missing grid for devices that upgrade from R am: a62e49b365 am: 3977aa6014
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13420191

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I42dbaa0ffe135ade9f1c2ade3dbc9a52a9324214
2021-01-28 03:58:23 +00:00
Tracy Zhou 3977aa6014 Fix missing grid for devices that upgrade from R am: a62e49b365
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13420191

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id968c2fe398e1ff8ce8425804c0f7e20fdfd1b28
2021-01-28 03:11:28 +00:00
vadimt 068de1685c Skipping swipe metrics if recents view doesn't exist
This will skip generating metrics for fallback recents,
which is not a big loss

Test: manual
Bug: 177472265
Change-Id: I0e167ddc3276246510ea5a22ba04dfd53a8d4eac
2021-01-27 18:42:21 -08:00
TreeHugger Robot db46688e65 Merge "Fix missing grid for devices that upgrade from R" into sc-dev 2021-01-28 02:22:12 +00:00