Commit Graph

5148 Commits

Author SHA1 Message Date
Sunny Goyal 3c5e748b36 Merge "Removing menu and dialog for custom actions hanlding. These do not work well with gesture-nav and can potentially block the Launcher UI." into sc-dev 2021-02-17 21:40:26 +00:00
Vinit Nayak 4d6b0270ab Merge "Update System settings content observer to cache values." into sc-dev 2021-02-17 17:05:59 +00:00
Vinit Nayak a34af18b0e Update System settings content observer to cache values.
Existing ContentObserver will cache values and overwrite
them when the value itself is modified or caller force
updates.

Bug: 149571513
Test: Wrote unit tests, mostly for caching logic.
Not meant to test ContentObserver contract for registering an
observer.

Change-Id: I12835f6c2be27ce17f65a55c51c4ef85c63b4487
2021-02-16 20:58:53 -08:00
Vadim Tryshev b6d28e885d Merge "Switching overlays more correctly" into sc-dev 2021-02-17 03:20:55 +00:00
vadimt a9740ecc8f Switching overlays more correctly
Test: presubmit
Bug: 180114721
Change-Id: I0d8d0c70ef34ec941e28704d06f9df5f17782155
2021-02-16 23:22:36 +00:00
Tony Wickham bb4de85c25 Draw folder leave-behind when opening folder in taskbar
Previously there was only support for CellLayout to draw the
leave-behind. Added FolderIconParent interface so any parent can
draw the leave-behind, and implement that by TaskbarView.

Test: Open folder in Taskber, ensure leave-behind draws

Bug: 171917176
Change-Id: I08d1d939a34f971f893994fe05cac972d165ef53
2021-02-16 15:10:05 -08:00
Tony Wickham 7ba547cd2d Folder support in Taskbar
- Add TaskbarActivityContext which allows shared Launcher elements to
  "just work" using existing generic ActivityContext.
- TaskbarContainerView extends BaseDragLayer<TaskbarActivityContext>.
- Inflate FolderIcon and Folder using TaskbarActivityContext to be
  shown in TaskbarContainerView.
- Use TaskbarActivityContext's DeviceProfile to determine icon size
  instead of overriding in styles. This also ensures that normal
  BubbleTextView icons have the same size as FolderIcons.

Test: Place a folder in home screen hotseat, ensure it shows up in
taskbar and can be opened, and that apps inside it can be launched
or dragged.
Bug: 171917176

Change-Id: Ic25d2f84bcd7e3399c88989305ea565497c030d9
2021-02-16 15:07:01 -08:00
Sunny Goyal 384b578ab2 Removing menu and dialog for custom actions hanlding.
These do not work well with gesture-nav and can potentially
block the Launcher UI.

Instead exposing on custom actions with keyboard accelerator and
using thee internal arrowPopup for resize options
Fixing SecondoryDropTarget not sending appropriate stats log

Bug: 179854703
Test: Verified on device
Change-Id: I268690f8a937896e4350496128a38959003f8939
2021-02-16 10:45:06 -08:00
Andy Wickham 9199fd1831 Merge "Adds CONTAINER_QSB to be used for QSB data." into sc-dev 2021-02-16 05:35:56 +00:00
thiruram c96873caad [AA+] Log LAUNCHER_ONSTOP & LAUNCHER_ONRESUME events with AllApps session InstanceId.
* Transitions between AllApps and App screen logs LAUNCHER_ONSTOP & LAUNCHER_ONRESUME events. This change add InstanceId specific to the current AllApps session to these logs; this will help to regenerate AllApps session from logs on the server side. This should only affect logs from AllApps screen, but not others.

* Removes LiveSearchManager.allAppsLogger method as it may create confusion with 2 methods for logging into Statsd

* Moved AllApps entry and exit logs to Launcher.

Bug: 178562918
Test: Manual
Change-Id: I5fab941777a3dfd2e9b19c0efd5b06d3884222ef
2021-02-15 23:56:52 +00:00
Zak Cohen 0d1fa0ee8d Merge "Adjust task padding overview to match new specs." into sc-dev 2021-02-13 01:23:38 +00:00
Zak Cohen fe7fb09b90 Merge "Remove elevation from Task in Overview." into sc-dev 2021-02-13 01:23:02 +00:00
Zak Cohen e38dc9b5f8 Merge "Remove scaling and dimming for adjacent tasks in Overview." into sc-dev 2021-02-13 01:22:51 +00:00
Sreyas Rangaraju 4e6a7e340d Merge "Updated TaskMenuView." into sc-dev 2021-02-12 23:11:39 +00:00
thiruram 6600860f0f [AA+] Log app launches with AllApps session InstanceId when current state is ALL_APPS.
Bug: 178562918
Test: Manual
Change-Id: I65b264cc37079280b59179d5b2f29b67e7a12cc5
2021-02-12 20:02:41 +00:00
Rajeev Kumar 1216e5999e Merge "Add NIU Actions buttons to the Go Overview" into sc-dev 2021-02-12 18:23:17 +00:00
Lucas Dupin 2268d7a937 Merge "Revert "Ignore broken launcher tests"" into sc-dev 2021-02-12 17:24:59 +00:00
Andy Wickham 19ab177d1b Adds CONTAINER_QSB to be used for QSB data.
Also updates some related generics definitions for
better/simpler compile-time checks.

Bug: 178536734
Test: Manual
Change-Id: If439b64ad968f62674f856fd3ff465bf21cc9204
2021-02-11 22:16:24 -08:00
Lucas Dupin db3f34f956 Revert "Ignore broken launcher tests"
This reverts commit 03c5a46235.

Reason for revert: Fixed tests
Bug: 180016597

Change-Id: I45390f157c6c3a379d686e8802648aa948071b72
2021-02-12 02:57:58 +00:00
Sunny Goyal f8bb6c02a1 Merge "Registering input monitor in Launcher process" into sc-dev 2021-02-12 01:04:46 +00:00
Sreyas e87b4c4979 Updated TaskMenuView.
Added padding on top of task name and removed unused code.
Bug: 179490926
Test: Manual

Change-Id: Id28547f30872f449f4f51238854155358b2dbcbe
2021-02-11 15:36:30 -08:00
Lucas Dupin 5fc546d09c Merge "Ignore broken launcher tests" into sc-dev 2021-02-11 23:15:39 +00:00
Zak Cohen b849aaf63d Remove scaling and dimming for adjacent tasks in Overview.
New designs flatten out the overview list and don't have scaled and dimmed
tasks adjacent to the main one.

Bug: 179922117
Test: Local run
Change-Id: I2dde04ed60b9d8459810a10d0c27dd6e131855a6
2021-02-11 19:21:27 +00:00
Zak Cohen b56611d962 Adjust task padding overview to match new specs.
New mocks have increased padding between the tasks.
I think we might need to fold some of these size calculations together
eventually, but this should be ok for the moment.


Bug: 179922117
Test: Local build and run
Change-Id: I4b5186d36012e80d55fae791e0c151c3112eecd1
2021-02-11 19:08:44 +00:00
Zak Cohen 34f4b7ebb8 Remove elevation from Task in Overview.
New designs don't have elevation for task views.


Bug: 179922117
Test: Local run
Change-Id: I0b3cb698574b49a279c7265e7f523819d20e2827
2021-02-11 19:08:02 +00:00
Ryan Mitchell 03c5a46235 Ignore broken launcher tests
Fabricated overlay changes seem to have made these tests flaky. Ignore
them for now while we figure out why the tests are flaky.

Bug: 180016597
Test: atest NexusLauncherOutOfProcTests
Change-Id: I639dabb2d6d57243882e0bc7100cc4947b32e37f
2021-02-11 18:20:43 +00:00
Adam Cohen 12e547f2a8 Merge "Draw the workspace scrim in the LauncherRootView instead of DragLayer" into sc-dev 2021-02-10 23:33:06 +00:00
TreeHugger Robot 99f23c9714 Merge "Update TaskIcon UI." into sc-dev 2021-02-10 22:03:30 +00:00
Hongwei Wang 0f16e51451 Merge "Support autoEnterPip without source rect hint" into sc-dev 2021-02-10 20:03:07 +00:00
Adam Cohen 501e139c6e Draw the workspace scrim in the LauncherRootView instead of DragLayer
=> The entire DragLayer is translated during the -1 transition which creates a janky looking edge at the top of the screen

=> By bumping the scrim up a level, we avoid this

=> Separated WorkspaceAndHotseatScrim into two separate scrims, since only part of the scrim needed to be bumped up to a level. Further, it was an overloaded class.

=> We had previously been implicitly relying on the fact that the scrim was rendered in the Workspace parent; we need to make sure to propagate workspace inavlidations to the container of the scrim. While things would still work without this change, it's more correct to leave it, as we no longer assume a hierarchy for functinoality.

Bug: 178215332

Test: manual verification. See video in bug.

Change-Id: I0a76ddf35ceea8c9635367f69380ef24f42e9479
2021-02-10 19:16:26 +00:00
thiruram ea826f87d1 [AA+] Log DeviceSearchResultContainer.QueryLength as cardinality field of statsd
Bug: 178562918
Change-Id: Iae8ca85d46f127e94fe57f42c5c3397d27393f6c
2021-02-10 18:03:06 +00:00
Becky Qiu dffbdf861c [Overview Sharing] Pass the full screen progress to task overlay.
This is to change the alpha value of the suggest view when user swipe down.

Bug: 179514465
Test: local

Change-Id: Idfa66ff6d9bb43f35f859df828a19e3b47abcd65
2021-02-10 03:07:40 +00:00
Sreyas 4defb4009d Update TaskIcon UI.
Moved TaskView Icon up and removed TaskMenuView Icon.
Screenshot: https://drive.google.com/file/d/1dVJOr_n4hfj7HvqHs3GQY-ZsPFkv3aFP/view?usp=sharing
Bug: 179490926
Test: Manual

Change-Id: I41844901a3e47ec6d6a8bdb6ed1fb7f4524500c4
2021-02-09 18:56:44 -08:00
Sunny Goyal 1f6b7fcc35 Merge "Deduping multiple prediction UI update calls" into sc-dev 2021-02-09 23:15:37 +00:00
Jon Spivack 3a1cfc9082 Add NIU Actions buttons to the Go Overview
The buttons send Intents to the designated app (specified by
niu_actions_package) to do the following:
Listen - Read the contents of the screen aloud
Translate - Translate the contents of the screen
Search - Perform a visual search on the contents of the screen

The Intents also include (via URI) the screenshot of current app used as
a thumbnail by Recents.

The feature is controlled by the enable_niu_actions flag, set to false
here. Both this flag and the niu_actions_package String must be set for
a given Launcher to use these buttons.

Bug: 177955244
Bug: 177955748
Test: Manual (enabled on LauncherGoGoogle and sent Intents to demo Lens
app)

Change-Id: I3d1f870bb176ed0cbae637a45c072bd8acac1d4b
2021-02-09 14:50:56 -08:00
Winson Chung ab2739e990 Merge "Add screen size to touch regions cache." into sc-dev 2021-02-09 21:30:24 +00:00
Samuel Fufa 1d8a2a6e0d Merge "Migrate AA+ Search related files" into sc-dev 2021-02-09 21:24:37 +00:00
Hyunyoung Song a3a30a9224 Migrate AA+ Search related files
Bug: 179495850
Test: Manual

Change-Id: I32180f14a11eaf72d5d4981e76c2f2ea74472494
2021-02-09 21:23:36 +00:00
Sunny Goyal c402fdaf7b Deduping multiple prediction UI update calls
Bug: 179445858
Test: Manual
Change-Id: I6ad86af247a6d94dcaf45206b3d7fb8c44c602d6
2021-02-09 21:22:26 +00:00
Wale Ogunwale 6cd63cb4ee Merge "Added API to specify if split-screen should exit on hide" into sc-dev 2021-02-09 21:04:38 +00:00
Sreyas Rangaraju 8eced27076 Merge "Updating Chips UI" into sc-dev 2021-02-09 20:06:02 +00:00
Sunny Goyal 9fa3a07086 Merge "Removing released features" into sc-dev 2021-02-09 19:57:18 +00:00
Wale Ogunwale fb674c7d81 Added API to specify if split-screen should exit on hide
Bug: 179176511
Test: presubmits
Change-Id: I6eaecec2ac3fd1bbfbf548078eef525376ddbe72
2021-02-09 07:19:33 -08:00
TreeHugger Robot 823c5f8bf6 Merge "Enable variable size thumbnail for large screen" into sc-dev 2021-02-09 11:26:33 +00:00
Hongwei Wang 4d69fab5c8 Support autoEnterPip without source rect hint
When no source rect hint is specified, autoEnterPip simply scale the
window down to the PiP.

Video: http://rcll/aaaaaabFQoRHlzixHdtY/cdY8k6V9uhJEXyMAKAUA34
Video: http://rcll/aaaaaabFQoRHlzixHdtY/bvodLNGyrIXH8DSvGHehrp
Bug: 179286893
Test: manual in ApiDemos app, see video
Change-Id: Ife4f1a56ddfd61c13383da9a1066e3d8b4a2181c
2021-02-08 16:55:15 -08:00
Sunny Goyal 52b5a4d8bc Registering input monitor in Launcher process
This prevents SystemUI from getting ANR when it's Launcher's fault

Bug: 177556238
Test: Verified apk on device
Change-Id: I101a7e90e43f88f58f715620d71047d5b6a3486c
2021-02-08 15:01:50 -08:00
Tony Wickham afd0d81a70 Fix some issues with taskbar
- Update Hotseat items in init() to ensure they are reloaded
- Don't update Recent items if we get the new tasks after cleanup()

Test: Fold and unfold, ensure Taskbar disappears/reappears without
crashing

Bug: 171917176
Change-Id: I1c2ae1022ae56cddece655b22db187684f691bf8
2021-02-08 21:54:01 +00:00
Alex Chau 7944ee5c79 Enable variable size thumbnail for large screen
- Introduced a feature flag
- Refresh TaskView size when thumbnail is refreshed or Recents resizes
- Disable edge scale down in large screens
- Added temp method to get task width/height ratio
- In fullscreen, scale down TaskThumbnailView and disable TaskView elevation
- Task boxing mechanism: http://screen/3NkePthAVUVH2Rv.png

Bug: 174464656
Test: Manually test overview and quickswitch for folded and unfolded, including with RTL.
Change-Id: I2ce24d588a246cc6a2408039a37d884021aa0800
2021-02-08 19:40:49 +00:00
Himanshu Jaju df256ae86b Add screen size to touch regions cache.
The general design for foldable devices contains a smaller screen and a
larger screen. Hence we need to move from caching based on rotation to
caching based on {display size, rotation} tuple.

Test: Manual on fold2
Bug: 172240450
Change-Id: I445a7545e684134d7d880f957bb97ff847b726b7
2021-02-08 18:23:32 +00:00
thiruram 73821a9c6d [AA+] Fixes wrong container for LAUNCHER_ITEM_DROP_COMPLETED log event.
Bug: 179529616

Change-Id: Id35c952c94d8a10743f147b194d3c27e22bc5062
2021-02-08 10:11:32 -08:00