Commit Graph
10914 Commits
Author SHA1 Message Date
Sunny Goyal a47a1c4509 Merge "Adding support for keyboard based drag and drop" into sc-dev am: 3186fbaed4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13460194

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I19bcb2bf7a074d3ed1f6a4c5f539f2d3afdf034b
2021-02-06 03:44:48 +00:00
Sunny Goyal 3186fbaed4 Merge "Adding support for keyboard based drag and drop" into sc-dev 2021-02-06 02:55:06 +00:00
Sunny Goyal a4647b681f Adding support for keyboard based drag and drop
For keyboard DnD, we use Accessible DnD implementation.
A placeholder FloatingView draws the focus indicator
for the virtual views

Test: Visible
Bug: 178781566
Change-Id: I632fc7377dffa1e05e3f0a9c3ad18641deb5a1a4
2021-02-05 13:05:24 -08:00
TreeHugger Robot 2bcf753745 Merge "Postponing registering widget listener" into sc-dev am: 1508e062e8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13475349

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idc2968f72257f62b1c728b087b38e926145de763
2021-02-05 20:20:16 +00:00
TreeHugger Robot 1508e062e8 Merge "Postponing registering widget listener" into sc-dev 2021-02-05 19:23:29 +00:00
Thiru Ramasamy 44691c488d Merge "[AA+] Add LAUNCHER_ALLAPPS_ENTRY, LAUNCHER_ALLAPPS_EXIT events." into sc-dev am: 67171e2335
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13463978

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I154fa59e8bc8999395b76fa925f7acb04ec3dd65
2021-02-05 18:51:50 +00:00
thiruram 4fc871f977 [AA+] Add LAUNCHER_ALLAPPS_ENTRY, LAUNCHER_ALLAPPS_EXIT events.
This would help us to define clear start and end events for AllApps sessions on the server side.

Bug: 178562918
Change-Id: I77f236c9bc1a21e868545b1309e47d91d6fc1d96
2021-02-04 16:48:07 -08:00
Sunny Goyal b02bf7e15b Merge "Moving slice loading on a background thread" into sc-dev am: b0bff050f2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13473795

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I025fc20f5fe66b8ab3c4cab57ca6fdbc2ad97f30
2021-02-04 23:55:06 +00:00
Sunny Goyal b0bff050f2 Merge "Moving slice loading on a background thread" into sc-dev 2021-02-04 23:29:42 +00:00
Sunny Goyal 79e52fc23b Moving slice loading on a background thread
> Also fixing slice icon loading, such that the request is cancelled
  if views are recycled quickly
> Loading widget label on dg thread and cancelling request if views
  are recycled quickly.

Bug: 179068415
Test: verified locally
Change-Id: Id5a524e2bf596862330a8170394aef9ffd708544
2021-02-04 13:03:33 -08:00
Schneider Victor-tulias 8914f1dcc2 Merge "Fix icon flicker on transition from installing, to installed, to downloading incrementally." into sc-dev am: 2fd2694b9c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13475165

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1102de2535c89ce5cede92a7a6fe57036469910d
2021-02-04 18:43:45 +00:00
Schneider Victor-tulias 2fd2694b9c Merge "Fix icon flicker on transition from installing, to installed, to downloading incrementally." into sc-dev 2021-02-04 18:19:08 +00:00
Alex Chau edfb09bab3 Ensure isTablet is only enable when simulated landscape is disabled am: 4e2c25a788
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13472281

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9dd014c00a00602453327fe656f2fbd9f0685d0e
2021-02-04 11:44:13 +00:00
Alex Chau 4e2c25a788 Ensure isTablet is only enable when simulated landscape is disabled
- Tablet UI (e.g. grid overview and two panel workspace) is built with assumption that simulated landscape is disabled, make sure this is the case in DeviceProfile
- This is usually true as swDPs is generally smaller than sw used to determine xml files

Bug: 174464656
Test: Try different combination of smallest width and Display Size, isTablet is only set when allow_rotation is true
Change-Id: I3ee1c76909f29b6f14c4032be812bb8c9ea7e827
2021-02-04 11:24:06 +00:00
Tony Wickham d455bc44aa Merge "Add recent tasks to Taskbar" into sc-dev am: d10b587003
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13455072

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3c0d21577eddf0b90aa4c87be8cdc2c318153f13
2021-02-04 07:00:44 +00:00
Tony Wickham d10b587003 Merge "Add recent tasks to Taskbar" into sc-dev 2021-02-04 06:30:37 +00:00
Tony Wickham aaa42bd0e8 Add recent tasks to Taskbar
- Also adds a divider between Hotseat and Recents
- Dedupes Recents from Hotseat

Test: Open some recent tasks, ensure they are deduped
from Hotseat and also handle < 2 tasks.

Bug: 171917176
Change-Id: Ia782c6ccbcda94cfd844aad04dc3d25a3f072c2b
2021-02-03 18:54:58 -08:00
Schneider Victor-tulias 1b4d5034fb Fix icon flicker on transition from installing, to installed, to downloading incrementally.
When an app finished downloading, we assumed that its progress level was 100%. This caused flicker in apps that supported incremental downloads. Added a check for the total download progress on app installation.

demo: https://drive.google.com/file/d/11NwwhHj_4rmDFwpsb8gTX-uA5YSinjSj/view?usp=sharing

Fixes: 178745816

Test: manual

Change-Id: I08328296db2ce2c2242fc4fe87158ff4b911c659
2021-02-03 16:39:16 -08:00
vadimt 04ebcf4686 Postponing registering widget listener
For the swipe-to-home gesture, the call will happen
after the animation.

This fixes jank during swiping up from an ap
to home.

Also renaming some methods for clarity.

Bug: 175048504, 173072373
Test: tracing
Change-Id: I070b23edb633d2ac0985d5eb9f75c789f8569772
2021-02-03 23:37:53 +00:00
thiruram 95e38a3373 [AA+] Log app launches from DeviceSearchResultContainer with instance ID. am: f4d19f4614
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13463977

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib97dabee7c29d7bbdefdb4ec72f266fe6e9e7761
2021-02-03 23:11:21 +00:00
thiruram d1611099a7 [AA+] Log app launches from AA+ search result container. am: cbeb13d6c7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13463976

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib63821f23ac6a8496ebc643b34434ed1c49fc543
2021-02-03 23:11:19 +00:00
thiruram f4d19f4614 [AA+] Log app launches from DeviceSearchResultContainer with instance ID.
This InstanceId is used to recreate the AA+ session on the server side.

Bug: 178562918
Change-Id: I1bba94417d3a142351e2470bb6153707d2cadb11
2021-02-03 10:17:18 -08:00
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 7f4b046baf Merge "Support shorter height row layout / Disable ICON_SLICE" into sc-dev am: aa793ff226
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13455478

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3ae00831bc2b48ab35533845cd887698471a85ef
2021-02-03 17:12:43 +00: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 5f0804940e Merge "Logs stack trace when IME doesn't get attached when all apps swipes up" into sc-dev am: 351aea720f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13443531

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie70eb7c612983e56627bd5e1b67b88104fa0959c
2021-02-03 09:34:28 +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 422ef8841f Merge "Update PreloadIconDrawable colors when an app is not startable." into sc-dev am: d0f5aa0dc6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13454926

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4768ffc6c9af32843caf1d176b80ecdca2efc8db
2021-02-02 21:51:18 +00: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
Hyunyoung Song c583f5ae1b Fix issue of slice icon being rendered on non-UIthread am: 5809a40f3e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13459790

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I42e00827cd9bc3b665893b9fd52407604aef9a7a
2021-02-02 15:47:38 +00:00
Andy Wickham 9c5ccc42da Merge "Allows a plugin Settings activity to designate plugins it supports." into sc-dev am: ad1d1cfda0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13452494

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic3a7da84ed262bd9d860328a5d93eecd23823fbe
2021-02-02 09:29:01 +00: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 510e01a798 Add Hotseat items to Taskbar am: 794fe4f58e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13438452

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1555617e093f135780ff798ec5588bca45d9e717
2021-02-02 05:33:15 +00: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
Schneider Victor-tulias 0f0a547520 State download information in content description whether or not there was an update. am: 5f7f4cb35d am: 53fc67d381
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13452996

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I369fd2715a21fc7c5dee436c19b57d76bb062f5b
2021-02-02 01:25:38 +00: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
TreeHugger Robot 1c0b54d284 Merge "Support people search results" into sc-dev am: 80466c081a am: 4d4b64d823
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13438369

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If14643dd9c06f985850cf4dfa197f6767bf4f2c5
2021-01-30 01:14:31 +00:00
TreeHugger Robot 80466c081a Merge "Support people search results" into sc-dev 2021-01-29 23:47:00 +00:00
Tony Wickham 85ca3077ed Merge "Animate taskbar background alpha and visibility alpha" into sc-dev am: 6d46fff269 am: dd1f1b0b08
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13438959

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibbd7ca5ef7b54556a755c139aa90be50abcf68a0
2021-01-29 23:29:35 +00:00
Darryl Johnson 086ad1a70c Merge "Revert "Support people search results"" into sc-dev am: d462965698 am: 63a8cbfe09
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13437209

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibd7bbb5fbfe01247927687f3c312493ce09b83ab
2021-01-29 23:16:29 +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
Samuel Fufa 29f5d2ce78 Merge "Support people search results" into sc-dev am: fe5e82dabc am: d3e711ebc8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13427050

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia37a14deb36854e9dfba57e884a1fd062920cf0b
2021-01-29 21:45:26 +00:00
TreeHugger Robot acf1d1623f Merge "Fix launcher flicker when unlocking on seascape." into sc-dev am: 83cdd1e857 am: 0e9befbd37
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13430681

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iec2deeedb956aa15ee1ca6e62cdb413abf2a3e4b
2021-01-29 21:38:51 +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