Commit Graph

34630 Commits

Author SHA1 Message Date
Brian Isganitis
62a6271d9c Load widgets in wallpaper app launcher preview
Test: Widgets in wallpaper app launcher preview rendered
Bug: 185306338
Change-Id: I38569d2ff0b64ba55eb188afa42fba4100aae7ff
Merged-In: I38569d2ff0b64ba55eb188afa42fba4100aae7ff
2021-09-14 15:19:33 -04:00
Sunny Goyal
828154a2b2 Fixing widget not laid-out properly in preview
Bug: 185306338
Test: Manual
Change-Id: Ib1ec8a53e4701f6813813b86bf481b837127a909
Merged-In: Ib1ec8a53e4701f6813813b86bf481b837127a909
2021-09-14 15:14:44 -04:00
Brian Isganitis
d1d6713700 Add flag for widgets in Launcher preview
Test: Flag available in developer options (does nothing)
Bug: 185306338
Change-Id: I74063d0ef29f828f740633ce0dab860672f69d3d
Merged-In: I74063d0ef29f828f740633ce0dab860672f69d3d
2021-09-14 15:14:26 -04:00
Vinit Nayak
c64c3cf488 Rebind TISBinder if service killed during connection
Fixes: 198845519
Change-Id: I6af79af5591e2dca941ca4428c550169a178479c
2021-09-14 11:26:00 -07:00
Vinit Nayak
ca549695aa Merge "Set GroupedTaskView child thumbnails in onMeasure" into sc-v2-dev 2021-09-14 17:34:52 +00:00
TreeHugger Robot
e7e282b80b Merge "Adding Winscope Launcher trace artifact" into sc-v2-dev 2021-09-14 06:43:24 +00:00
Vinit Nayak
e6abfca7ab Set GroupedTaskView child thumbnails in onMeasure
* Also add indicator if split was originally started
in portrait of landscape, so we know which dimension
of the divider bar to use if user goes to overview
and then rotates device (horizontal divider vs
vertical)

Fixes: 199461137
Test: Swipe to overview with staged split
Rotate device with and without live tile
Doesn't overlap with overview actions

Change-Id: I8b7f104f16d5b7265828f1b3d98ba3426b28d44f
2021-09-13 18:07:09 -07:00
Tony Wickham
2a10e62e92 Add logs for taskbar and overview split action
Log:
- Taskbar app launch (also from foldeR)
- Taskbar app drag (also from folder)
- Taskbar folder open
- Long press to hide taskbar
- Long press to show taskbar
- Overview Split screen action

Also add support for ActivityContext to overwrite/add to LauncherAtom.ItemInfo, which TaskbarActivityContext does to change HotseatContainer and PredictedHotseatContainer to TaskBarContainer

Test: enable logcat locally
Bug: 193009817
Change-Id: Ia82c846a727fecb8cbfd0a069c8af1276083bf83
2021-09-13 17:25:15 -07:00
TreeHugger Robot
cd3c385246 Merge "Use FakeTransformParams instead of real ones for gesture tutorial" into sc-v2-dev 2021-09-14 00:07:29 +00:00
Sunny Goyal
a0fda9ad65 Fixing ModelPreload cancelling existing load am: 57d4f748b8 am: d73fa1ef92
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15820555

Change-Id: I59ca789a99b4bdd246f4d87f91596dc392766342
2021-09-13 23:42:04 +00:00
Sunny Goyal
d73fa1ef92 Fixing ModelPreload cancelling existing load am: 57d4f748b8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15820555

Change-Id: Iefe6ef941158a9c5b6eada7c71e8633b96ac4233
2021-09-13 23:24:13 +00:00
Thiru Ramasamy
be8b2ad03d Add TaskBarContainer to launcher_atom.proto
Bug: 193009817
Test: Manual
Change-Id: Ib69be2b2405ab38891dff34c4d366105cd2499c1
2021-09-13 16:15:52 -07:00
TreeHugger Robot
fb4461e2e7 Merge "Add tmp buffer to rounded corners" into sc-v2-dev 2021-09-13 22:13:20 +00:00
Brian Isganitis
f0ca4ae750 Add CONTAINER_WALLPAPERS for storing wallpaper info.
Test: No
Bug: 188222480
Change-Id: Id85bd46cdd384b359de82f47530a269eee99dd02
2021-09-13 16:41:46 -04:00
Winson Chung
58030642b0 Add tmp buffer to rounded corners
- Testing if this actually moves the gesture out of the screen decor area

Bug: 197326121
Test: Pre/postsubmit
Change-Id: I3c46ed3860ba6ba1fb605242b4f7242aaabc5672
2021-09-13 20:01:56 +00:00
Vinit Nayak
f66f8271cf Use FakeTransformParams instead of real ones for gesture tutorial
* SwipeUpAnimationLogic was ignoring the TransformParams arg
that was being passed in, because for staged split we are
creating/pairing TaskViewSimulators and TransformParams in
SwipeUpAnimationLogic itself.
* Override the remote handle that gets created during the gesture
tutorial (which shouldn't be done in other cases, but because
tutorial is a one-off it should be fine)

Fixes: 199482330
Test: Launched gesture tutorial from launcher home settings
No crash

Change-Id: I346211a422e46981a994bd40e34e46b44f9f5d0e
2021-09-13 12:57:17 -07:00
TreeHugger Robot
14df808f4d Merge "Fix taskbar education not touchable if taskbar is stashed" into sc-v2-dev 2021-09-13 18:05:28 +00:00
Sunny Goyal
57d4f748b8 Fixing ModelPreload cancelling existing load
When a model preload call was made while the loader task is running
(eg: on enabling/disabling icon theme, Launcher reloads and then
launcher preview start a model-preload), it would cancel the original
loader and then start a new loader with empty callbacks. So the
model indeed get loaded, but the original callbacks never got notified
of it.

> Instead we only start preload if an existing task is not running.
> Also when preloading, we use existing callbacks, instead of using
  empty callbacks

Bug: 193851085
Bug: 195155924
Test: Verified repro steps
Change-Id: I0a96310be8489756f364aa2a12e4345e1418733d
2021-09-13 17:47:29 +00:00
TreeHugger Robot
33df165ca0 Merge "Base split action on focusedTaskView instead of runningTaskView" into sc-v2-dev 2021-09-13 17:38:17 +00:00
Tony Wickham
9c7eda8135 Merge "Destroy taskbar when device is shutting down" into sc-v2-dev 2021-09-13 17:27:43 +00:00
TreeHugger Robot
adfcd9daea Merge "Introduce haptic when all apps state transition happens." into sc-v2-dev 2021-09-12 22:53:47 +00:00
Hyunyoung Song
862415a142 Introduce haptic when all apps state transition happens.
Bug: 195679234
Test: manual
Change-Id: Id923f1641bb49579c972e3dbb9de094293d00f93
Merged-In: Id923f1641bb49579c972e3dbb9de094293d00f93
2021-09-12 21:48:52 +00:00
TreeHugger Robot
305d0463b1 Merge "[OneSearch] Update the plugin interface to include more answer data." into sc-v2-dev 2021-09-11 03:08:51 +00:00
TreeHugger Robot
6087951a9f Merge "Dump DepthController internals" into sc-v2-dev 2021-09-11 00:51:22 +00:00
Samuel Fufa
47f80b5c9a [Search] Apply background to entire SearchInput view instead of just EditText
Bug: 199555357
Test: visual
Change-Id: Ice966416e901e7c601b44529d0422798e943e222
2021-09-10 16:29:53 -07:00
Tony Wickham
4db4ec118b Destroy taskbar when device is shutting down
Test: Shutdown/restart device, ensure taskbar isn't showing
Fixes: 194633599
Change-Id: I8061e515e122c446438975b98527aeda6c59996a
2021-09-10 16:18:20 -07:00
vadimt
1cb868e2f7 Removing unused tracing
Bug: 195319692
Test: presubmit
Change-Id: I035870abff8b0ee1f714bb56a5326e30c0f77fb0
2021-09-10 16:01:17 -07:00
Thiru Ramasamy
8c8dc56495 Merge "Implement LauncherLayoutSnapshot pulled atom callback." into sc-v2-dev 2021-09-10 22:59:00 +00:00
Lucas Dupin
01c362bb6c Dump DepthController internals
Add DepthController to dumpsys, so it's easier to debug any future
issues.

Bug: 198732728
Test: adb shell dumpsys activity com.google.android.apps.nexuslauncher
Change-Id: Ifa7fe1d7fcb375cacc907d0da9524a2ee2a2677d
2021-09-10 22:57:24 +00:00
Vinit Nayak
5702b89b30 Base split action on focusedTaskView instead of runningTaskView
* getRunningTaskView() is null when rotating device,
only valid when swiping up to overview
* focusedTaskView() correctly set in both cases

Fixes: 199461147
Test: Bug doesn't repro
Change-Id: Ib39c1f6f05b3cd5f72c13facc6b8000346896476
2021-09-10 14:07:58 -07:00
TreeHugger Robot
f8d4041c84 Merge "Allow restore between TYPE_PHONE AND TYPE_MULTI_DISPLAY in RestoreDbTask" into sc-v2-dev 2021-09-10 20:55:18 +00:00
Thiru Ramasamy
d495e8c8b4 Implement LauncherLayoutSnapshot pulled atom callback.
This change will pull only the workspace items but not the launcher settings such as grid layout etc. Future CLs will address it.

Bug: 181703659
Test: Manual-`statsd_testdrive 10108` http://gpaste/4894958784872448
Change-Id: I0e7d7da62034c411edb26ff9205a81b0e2e891a0
2021-09-10 13:29:27 -07:00
Dave Mankoff
f4f7b2234e Merge changes from topics "b194781951-flags", "b194781951-flags-5", "b194781951-flags-6", "b194781951-flags-7" into sc-v2-dev
* changes:
  Remove PluginInitializer.
  Remove #handleWtfs from PluginInitializer.
  Remove #getPrivilegedPlugins from PluginInitializer.
  Rename PluginInstanceManager to PluginActionManager.
2021-09-10 19:25:40 +00:00
TreeHugger Robot
8b30227f58 Merge "Explicitly set X and Y values when offsetting split tasks" into sc-v2-dev 2021-09-10 18:05:18 +00:00
vadimt
4e743887c5 Removing unused tracing
Bug: 181019015
Test: presubmit
Change-Id: I7df032e4345c512ba8eb06a2c4104362e1d51dbd
2021-09-10 10:29:07 -07:00
Samuel Fufa
fbd591b211 [automerger skipped] [AllApps] Polish views according to specs am: eb500d53d9 -s ours
am skip reason: Merged-In I65f8c6152f54306756d6cb66de2581aff45b8d47 with SHA-1 bd8d9150e0 is already in history

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

Change-Id: Iea0ca6a5eaa553e84e7fe2cd2a8c2902d7768f9a
2021-09-10 16:04:12 +00:00
TreeHugger Robot
b94401646d Merge "Fix wrong screenId when committing emptyScreens" into sc-v2-dev 2021-09-10 15:36:22 +00:00
Alex Chau
d63c58d7d1 Allow restore between TYPE_PHONE AND TYPE_MULTI_DISPLAY in RestoreDbTask
- Follow-up of ag/15795679: allow restore in RestoreDbTask as well

Bug: 199407109
Test: manual
Change-Id: I2a8e2d9c28ee777f53a6d3554e31f7318422401f
2021-09-10 15:16:36 +01:00
TreeHugger Robot
81a3e6e7e7 Merge "Fix two dragging related bugs in Launcher home" into sc-v2-dev 2021-09-10 13:39:26 +00:00
Alex Chau
1d5929dd82 Fix wrong screenId when committing emptyScreens
- Need to increment newScreenId whenever the screen is already bound
- Also cleaned up placeholder on w1 as we now have page pairing logic

Bug: 199160559
Bug: 175939730
Fix: 199131780
Test: drag and drop after clear data
Change-Id: Ic42f3bddfa6cf11b8b726d6181ed2477defde19d
2021-09-10 14:36:36 +01:00
Nick Chameyev
5d50e49c3f Merge "[Taskbar icons unfold animation issue] Do not take into account initial translation" into sc-v2-dev 2021-09-10 12:25:17 +00:00
Andras Kloczl
9732df1add Fix two dragging related bugs in Launcher home
- accessibility bug: 199394124
- dragging on side bug: http://shortn/_LFBdIllupk

Test: manual
Bug: 199394124
Change-Id: I478e31332119f337bf0f8b6c92926845eb4889c4
2021-09-10 12:16:03 +01:00
Thales Lima
02a5019cf3 Merge "launcher: correct page spacing for multiple panels in RTL" into sc-v2-dev 2021-09-10 09:53:40 +00:00
Samuel Fufa
eb500d53d9 [AllApps] Polish views according to specs
Bug: 196391749 Update work edu button stroke color
Bug: 195497351 Update header font size for work apps paused state
Bug: 192673256 Show ArrowTip elevation
Bug: 192668800 Support for two line PopupOption view
Test: visual
Change-Id: I65f8c6152f54306756d6cb66de2581aff45b8d47
Merged-In: I65f8c6152f54306756d6cb66de2581aff45b8d47
2021-09-09 16:45:05 -07:00
Vinit Nayak
6835115c13 Explicitly set X and Y values when offsetting split tasks
* Race condition where DeviceProfile that gets set on
TaskViewSimulator initially has incorrect values
(dp.isLandscape is incorrect)
* The correct one eventually gets set, but in the meantime
we set the split offset assuming in incorrect value in
PagedOrientationHandler#setLeashSplitOffset()
* Once corrected, we weren't removing the old offset
that was set. Now we ensure only either an X or Y offset set.

Bug: 199376724
Test: Enter split, rotate device and quickswitch.
Both tasks should be visible throughout the gesture

Change-Id: I9fa44642ab440a0200c0b0eb9b37574e47b7100d
2021-09-09 16:27:59 -07:00
Becky Qiu
9cbbc3a4b6 [OneSearch] Update the plugin interface to include more answer data.
Bug: 196586652
Test: tested with OneSearchPlugin.
Change-Id: I5c645828b83f1fe5b3bd2f71911b30e22909d56f
2021-09-09 15:19:24 -07:00
Vinit Nayak
2d9741b832 Merge "Call exitSplitScreen() when user leaves split tasks" into sc-v2-dev 2021-09-09 20:19:20 +00:00
Tony Wickham
94c673c64d Merge changes I032f7ffc,I384d7af0 into sc-v2-dev
* changes:
  Add ability to start DeveloperOptionsFragment with filter pre-applied
  Add option to reset Onboarding Flows in Developer Options
2021-09-09 20:09:03 +00:00
TreeHugger Robot
8f0de5d711 Merge "Introduces haptic feedback to launcher overview" into sc-v2-dev 2021-09-09 19:19:26 +00:00
Thales Lima
c2a6f6f4ae launcher: correct page spacing for multiple panels in RTL
Fixes 199043583
Test: manual testing in unfolded state in portrait and landscape

Change-Id: Idf5bdabb50742498701681e4654e72260054ab47
2021-09-09 19:13:19 +01:00