Commit Graph

12731 Commits

Author SHA1 Message Date
TreeHugger Robot b4d682ab87 Merge changes from topic "launcher-loading" into sc-v2-dev am: ca1ee7a161 am: b39c4e28e6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15616248

Change-Id: Iac502320cec13689ba1fbb372f4869960020c857
2021-09-16 04:49:49 +00:00
TreeHugger Robot ca1ee7a161 Merge changes from topic "launcher-loading" into sc-v2-dev
* changes:
  Improve workspace loading times.
  Add tracing to help in launcher load time profiling.
2021-09-16 04:24:23 +00:00
Schneider Victor-tulias b988ab77cb Improve workspace loading times.
Updated loadWorkspace to load all required icons in a series of bulk sql queries. This reduces the cost of SQL lookups (up to two lookups per user, rather than one lookup per icon)

Bug: 195674813
Test: Added all icons to workspace, added duplicate icons, added icons for same component name from different users

Change-Id: I56afaa04e7c7701f0d3c86b31c53f578dfa73fe6
2021-09-15 17:09:06 -07:00
Schneider Victor-tulias 927d6dcc6c Add tracing to help in launcher load time profiling.
Bug: 195674813
Test: None
Change-Id: I895a64bbba515ce7b7df8d093d40e0a5b6056d2e
2021-09-15 17:08:53 -07:00
TreeHugger Robot 1b16b5ada6 Merge "Removing unused tracing" into sc-v2-dev am: da76a1defd am: d2280210f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15826736

Change-Id: If2c353af3a0a68913d0e42bd090e9441dc5e0242
2021-09-15 20:58:53 +00:00
TreeHugger Robot da76a1defd Merge "Removing unused tracing" into sc-v2-dev 2021-09-15 20:26:49 +00:00
Tony Wickham 3586cacf6a Merge "Don't set Taskbar window to non-fullscreen while folder animates closed" into sc-v2-dev am: 3d0fca7e0d am: c09201a91b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15832181

Change-Id: Ib42c5dc8102ffa72b35e7ebca046d554d2afa009
2021-09-15 18:25:07 +00:00
Tony Wickham 3d0fca7e0d Merge "Don't set Taskbar window to non-fullscreen while folder animates closed" into sc-v2-dev 2021-09-15 17:47:46 +00:00
Tony Wickham 458a10cb95 Merge changes from topics "TaskbarLogging", "taskbar-log" into sc-v2-dev am: 2908eb70fc am: d99cff7aee
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15720731

Change-Id: Iaf43948a6774b348f55cf5fbc707ddb1cdd2ec98
2021-09-15 16:50:13 +00:00
Tony Wickham 2908eb70fc Merge changes from topics "TaskbarLogging", "taskbar-log" into sc-v2-dev
* changes:
  Add logs for taskbar and overview split action
  Add TaskBarContainer to launcher_atom.proto
2021-09-15 16:28:45 +00:00
Pratyush fa29127c48 Merge "Revert "Make hotseat bottom a launcher config"" 2021-09-15 09:15:57 +00:00
Pratyush 8c2932567b Revert "Make hotseat bottom a launcher config"
Revert "Add vendor/unbundled_google/packages/LauncherIndiaGoogle..."

Revert "Create a new launcher for lily"

Revert submission 15080460-lily-launcher-master

Reason for revert: <Build Breakage>
Reverted Changes:
I0b2d19ee7:Make hotseat bottom a launcher config
I0bb4c815c:Add vendor/unbundled_google/packages/LauncherIndia...
I666ce8258:Create a new launcher for lily
I4d078a9d9:Move QSB to bottom of the home screen in LauncherL...

Change-Id: Ib9f32150de561dcd56122761975abe8828839f40
2021-09-15 08:30:08 +00:00
Pratyush 4340b12da5 Merge "Make hotseat bottom a launcher config" 2021-09-15 07:52:56 +00:00
Vadim Tryshev 4416c0e95b Merge "Removing unused tracing" into sc-v2-dev am: 72da449f8a am: 502772ad25
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15800620

Change-Id: Ic39116b7c3fdb2d2149285194332eb36324f5703
2021-09-15 03:10:01 +00:00
Vadim Tryshev 72da449f8a Merge "Removing unused tracing" into sc-v2-dev 2021-09-15 02:35:04 +00:00
Tony Wickham d5e116a750 Don't set Taskbar window to non-fullscreen while folder animates closed
Test: Open an app, open a folder in taskbar, and drag an app from the folder. Ensure the folder close animation plays completely.
Fixes: 199954907
Change-Id: I1caec4ef24b5325724d74f10ddbeae6ef8f9e959
2021-09-14 17:48:14 -07:00
Tony Wickham 48d91ce7ac Reset RecentsView#mNextPage when swiping to home am: d552132d0b am: 46192d288a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15828992

Change-Id: Icd5e85956959c120744b81d7ba57ff586ef0adad
2021-09-15 00:43:30 +00:00
vadimt 155ce05218 Removing unused tracing
Test: presubmit
Bug: 192018189
Change-Id: I31e6fd8410e879aeda0249d89f650e1a41de6030
2021-09-14 16:42:59 -07:00
Tony Wickham d552132d0b Reset RecentsView#mNextPage when swiping to home
This ensures that we don't inadvertently update mCurrentPage to be
mNextPage in computeScrollHelper(), which would in turn mess up
calculations such as RecentsView#getHorizontalOffsetSize().

Also removed resetNextPage parameter from forceFinishScroller(), as
resetNextPage was always passed as true anyway.

Test: Swipe up and to the right to home, ensure adjacent page goes all
the way off screen
Fixes: 199927699

Change-Id: Iee1ffac10e5195f0c3a124a23b06d5411ecd7ba2
2021-09-14 14:38:15 -07:00
Vinit Nayak 0b6246f5a0 Merge "Set GroupedTaskView child thumbnails in onMeasure" into sc-v2-dev am: ca549695aa am: 6a976df53e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15822489

Change-Id: Id72a03749351dd6834cb10f4a59fdc02506ccf88
2021-09-14 18:18:12 +00:00
Vinit Nayak ca549695aa Merge "Set GroupedTaskView child thumbnails in onMeasure" into sc-v2-dev 2021-09-14 17:34:52 +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
Pratyush d869eac03f Make hotseat bottom a launcher config
The changes are required for the bottom placement of QSB on lily
devices. This enables lily devices to tweak the required factors to
adjust the placement of QSB

Bug: 190080582
Bug: 184060190

Test: Tested the changes manually
Change-Id: I0b2d19ee7651a02db0bfc1756fdc730b2d0fc3f3
2021-09-13 13:40:17 +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
Hyunyoung Song eb19a9f7ed Merge "Introduce haptic when all apps state transition happens." 2021-09-12 21:48:10 +00:00
Thiru Ramasamy 8aacb2bf1f Merge "Implement LauncherLayoutSnapshot pulled atom callback." into sc-v2-dev am: 8c8dc56495 am: 70cca3c180
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15685719

Change-Id: I3fa6eec846adafe3df5835491f5f979453d5b197
2021-09-10 23:25:38 +00:00
Thiru Ramasamy 8c8dc56495 Merge "Implement LauncherLayoutSnapshot pulled atom callback." into sc-v2-dev 2021-09-10 22:59:00 +00:00
TreeHugger Robot 55ef1eb76d Merge "Allow restore between TYPE_PHONE AND TYPE_MULTI_DISPLAY in RestoreDbTask" into sc-v2-dev am: f8d4041c84 am: 174d068a11
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15804329

Change-Id: I67c9f4f4754cd2414ebd91e6fc6c1b9759984c4c
2021-09-10 21:23:17 +00: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
TreeHugger Robot d55e248d78 Merge "Explicitly set X and Y values when offsetting split tasks" into sc-v2-dev am: 8b30227f58 am: c36d4c412a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15799376

Change-Id: I02b5f9db5a33391b2d86d93afdafde64a8b8e7d9
2021-09-10 18:41:25 +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
TreeHugger Robot 0555a36c41 Merge "Fix wrong screenId when committing emptyScreens" into sc-v2-dev am: b94401646d am: 1c0e188171
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15795676

Change-Id: I8accc7c6fe020b2e8ba299cd1f4a57160b8a96d5
2021-09-10 16:12:43 +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 e6175a210c Merge "Fix two dragging related bugs in Launcher home" into sc-v2-dev am: 81a3e6e7e7 am: 520fb5dc08
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15795684

Change-Id: I62623134ea2cc38d64f51b737db236ab09470373
2021-09-10 14:01:05 +00: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
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 eff745a76a Merge "launcher: correct page spacing for multiple panels in RTL" into sc-v2-dev am: 02a5019cf3 am: 5c4e8c1a68
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15795673

Change-Id: I81eb928451631c8be4782cb613bba57d1f362c76
2021-09-10 10:31:03 +00: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
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
Tony Wickham 1c12238964 Merge changes I032f7ffc,I384d7af0 into sc-v2-dev am: 94c673c64d am: f5bbbc074e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15788129

Change-Id: I296e5993e25b077cf0c93e1c8345f1cb0f5fe864
2021-09-09 20:53:29 +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 211ddba6a7 Merge "Introduces haptic feedback to launcher overview" into sc-v2-dev am: 8f0de5d711 am: b88bce8bb9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15177217

Change-Id: Ifb0b814f3eddabda54e99f32a5749bdbdd7d919f
2021-09-09 19:57:18 +00:00
Alex Chau c55a64483e Allow restore between TYPE_PHONE AND TYPE_MULTI_DISPLAY am: fef4d0e081 am: f681de8ce3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15795679

Change-Id: Iee98cf89f7c498f0aefdf00ee6be0c8591972af8
2021-09-09 19:57:11 +00:00
TreeHugger Robot 8f0de5d711 Merge "Introduces haptic feedback to launcher overview" into sc-v2-dev 2021-09-09 19:19:26 +00:00