Commit Graph

58436 Commits

Author SHA1 Message Date
Android Build Coastguard Worker 5f491c3344 Snap for 8001728 from ba19137cd8 to tm-release
Change-Id: I56df8a7ce22c140992b55d15f60558aea56410ff
2021-12-15 02:09:10 +00:00
Jon Miranda 32ec4d52e1 Scale, crop, and translate window when swiping back to home.
This makes the animation consistent with what happens
when swiping up to home.

Bug: 208292857
Test: open app, swipe back to close, test on portrait and landscape
Change-Id: I096b20fe3d3398001e442d41981350e7b0321a46
2021-12-15 01:34:12 +00:00
Brian Isganitis 676941869f Add feature flag for All Apps in system Taskbar.
Test: No
Bug: 197978110
Change-Id: If8aa821f1f4c01ee7d1947cb9888255db2cc7b0b
2021-12-15 01:21:35 +00:00
Brian Isganitis 19ab3a5582 Include border spacing to align tasbar icons with hotseat.
The original calculation was including spacing in the the
hotseatCellSize, but that causes us to incorrectly compute the
hotseatIconCenter. If we take advantage of
DeviceProfile.calculateCellWidth, we get the width without the spacing.
Then we can add spacing for every icon to the left of the current one
when figuring out the center.

Test: Manual on tablet using device types tablet and multi display.
Fix: 210123477
Change-Id: Ie182718ad3a229ffa8bae031f3ac7f73f8539f49
2021-12-15 01:15:30 +00:00
Vinit Nayak 8581dfc218 Wait for the Launcher activity to bind to TIS before animating
- Mainly a test issue where we destroy the activity and immediately
  enter overview without preloading launcher.  In this case, the task
  bar does not animate due to the delayed cycled of activity create
  -> bind service -> service connected -> taskbar ui controller init.
  As a result, the bar can occlude content from Launcher preventing
  the test from finding the overview actions.

  Instead, in cases where we need to animate with launcher, we wait
  for Launcher to be created (generally already the case) and the
  service has bound before proceeding.

Bug: 189807374
Bug: 204891006
Test: atest NexusLauncherTests:com.android.quickstep.StartLauncherViaGestureTests
Change-Id: I2cfccae67ac0e5a591639c6c99df032451dae16d
2021-12-15 00:53:54 +00:00
Android Build Coastguard Worker cdec00f872 Snap for 8000352 from 36e5f812d5 to sc-v2-release
Change-Id: I10284ef04b1a03af64f5f0e4cf0b94622d1e0a42
2021-12-15 00:08:07 +00:00
TreeHugger Robot 3611e9d656 Merge "Ensure some taskbar states are initialized correctly" into sc-v2-dev am: 9b3b2b9c7e am: 4ab25b564e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16463952

Change-Id: I7bcf495a8774df2ac99dd6b9cf3c65f6d5f46461
2021-12-14 23:26:08 +00:00
TreeHugger Robot 4ab25b564e Merge "Ensure some taskbar states are initialized correctly" into sc-v2-dev am: 9b3b2b9c7e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16463952

Change-Id: Iaf93223818db835484845e519269d5b9ad47bf6f
2021-12-14 23:09:02 +00:00
TreeHugger Robot 9b3b2b9c7e Merge "Ensure some taskbar states are initialized correctly" into sc-v2-dev 2021-12-14 22:49:50 +00:00
Tracy Zhou bec00acf28 Delay showing task bar until the user releases their finger dragging from all apps to normal
Fixes: 208802276
Test: drag from all apps to normal, and the task bar doesn't stash until the user releases their finger
Change-Id: I53133cc80749bdc62e77d858b5714ae32facbd1d
2021-12-15 06:35:41 +08:00
Xin Li a2912108f6 [automerger skipped] Merge "Merge Android 12 QPR1" am: 3afd8cbc24 -s ours am: 18c3599e0e -s ours am: 7a24bea23d -s ours am: 76cb3a5c59 -s ours
am skip reason: Merged-In Iae5e73b18d8885df51c1fca1ef27e277721a8237 with SHA-1 c4a6b5cc40 is already in history

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

Change-Id: Ie4da1242e0fab6a5ea661bb325d5fa9653fc695b
2021-12-14 22:18:46 +00:00
Xin Li 76cb3a5c59 [automerger skipped] Merge "Merge Android 12 QPR1" am: 3afd8cbc24 -s ours am: 18c3599e0e -s ours am: 7a24bea23d -s ours
am skip reason: Merged-In Iae5e73b18d8885df51c1fca1ef27e277721a8237 with SHA-1 c4a6b5cc40 is already in history

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

Change-Id: Ie18ce05962c674f5158993d67e9f9334234cfd3f
2021-12-14 21:50:59 +00:00
Xin Li 7a24bea23d [automerger skipped] Merge "Merge Android 12 QPR1" am: 3afd8cbc24 -s ours am: 18c3599e0e -s ours
am skip reason: Merged-In Iae5e73b18d8885df51c1fca1ef27e277721a8237 with SHA-1 c4a6b5cc40 is already in history

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

Change-Id: I39d97b168e3cf0095fba940af737ddf76e66a15f
2021-12-14 21:24:04 +00:00
Xin Li 18c3599e0e [automerger skipped] Merge "Merge Android 12 QPR1" am: 3afd8cbc24 -s ours
am skip reason: Merged-In Iae5e73b18d8885df51c1fca1ef27e277721a8237 with SHA-1 c4a6b5cc40 is already in history

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

Change-Id: Iadb054885cbaf0b5116234c338708d696770b82f
2021-12-14 21:00:14 +00:00
Xin Li 3afd8cbc24 Merge "Merge Android 12 QPR1" 2021-12-14 20:25:21 +00:00
Winson Chung 7f5e4ca06c Ensure some taskbar states are initialized correctly
- Update FLAG_IN_APP to account for setup state to ensure that the
  stashed state is correct. This needs to be done in the stash
  controller since SUW is the home activity on startup and the
  launcher state controller will not be initialized until after
  SUW finishes
- Initialize the launcher state and resumed flags in case Launcher
  restarts while another app is resumed

Bug: 204384193
Test: Run through SUW, ensure the background is not visible
Change-Id: I5ce061ad16e79226c8428339ccd0b5ac55c07205
2021-12-14 19:08:55 +00:00
Pinyao Ting 85232a91bf Avoid drawing the first frame in launcher before animation completes
Currently Launcher reports the drawing of the first frame before the
fade-in animation runs to a completion. This CL pauses the pre-draw
until the animation concludes so that the performance metrics matches
what user actually sees.

Bug: 210527498
Test: 1) reboot verify things works 2) sign in to second user, verify
things works.

Change-Id: I0146c0408005c3de75098b9401089ed2bcbcb6d6
2021-12-14 17:31:58 +00:00
Tony Wickham ba19137cd8 Merge "Don't clobber in progress page transition in applyLoadPlan()" into sc-v2-dev am: 36e5f812d5 am: 19ce4e2586
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16459220

Change-Id: I0a9facc24dd47b4463a0b3872b3bdef7eb94def0
2021-12-14 16:53:39 +00:00
Xin Li b07b62dbb3 Merge Android 12 QPR1
Bug: 210511427
Merged-In: Iae5e73b18d8885df51c1fca1ef27e277721a8237
Change-Id: Id334bdfd9f81b6ad5f97edd4c50d8df49efb4c9c
2021-12-14 08:39:12 -08:00
Tony Wickham 19ce4e2586 Merge "Don't clobber in progress page transition in applyLoadPlan()" into sc-v2-dev am: 36e5f812d5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16459220

Change-Id: I9f601c606f006df32cd0ed015cb75dc0cc442ae6
2021-12-14 16:38:34 +00:00
Tony Wickham 36e5f812d5 Merge "Don't clobber in progress page transition in applyLoadPlan()" into sc-v2-dev 2021-12-14 16:18:39 +00:00
Ling Wo 06119c9c6a Merge "delete appIcon from workspace via TAPL" into sc-v2-dev am: 361d8286cc am: 7f389d6317
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16189765

Change-Id: I4d2d76c92933e45dab99566e460c4f59804f59e7
2021-12-14 02:55:17 +00:00
Ling Wo 7f389d6317 Merge "delete appIcon from workspace via TAPL" into sc-v2-dev am: 361d8286cc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16189765

Change-Id: Ia004c65470959ef3e7dcc3799bcda9de6b15725e
2021-12-14 02:34:50 +00:00
Ling Wo 361d8286cc Merge "delete appIcon from workspace via TAPL" into sc-v2-dev 2021-12-14 02:10:59 +00:00
Android Build Coastguard Worker 8a701875ac Snap for 7995208 from 46643ab66d to tm-release
Change-Id: I5fc502651f7d56d255d6cd6a3da63777c512b3e7
2021-12-14 02:09:11 +00:00
Tony Wickham db34fba43f Don't clobber in progress page transition in applyLoadPlan()
Also only reloadIfNeeded() instead of always reloading in showCurrentTask(), which is called twice as the gesture starts and could contribute to jank.

Test: quickly quick switch from app A to B, ensure no jumpcut back to A
Bug: 205499708
Change-Id: I516020551d3f76eb4025df848bf4c88adf5499b7
2021-12-14 00:25:08 +00:00
Sebastian Franco 3a50ab4af1 Adding ripple effect to the "All Apps tab" buttons.
Test: Manually tested
Fix: 192252147
Change-Id: I38d37b581b998dc05f087533cff3968ebe0cb00d
2021-12-13 14:18:32 -06:00
TreeHugger Robot 61da68ed8c Merge "Set default value for rank field in launcher logs to ItemInfo.rank." into sc-v2-dev am: ed6cbbc9a6 am: 67daf300e2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16360368

Change-Id: I9deab9ebbb33ac8ed8f6708120416679cb0f2647
2021-12-13 19:39:44 +00:00
TreeHugger Robot 67daf300e2 Merge "Set default value for rank field in launcher logs to ItemInfo.rank." into sc-v2-dev am: ed6cbbc9a6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16360368

Change-Id: Ic15c841f299bd8d14d3c7c4352ad9d76fdecaa04
2021-12-13 19:07:36 +00:00
TreeHugger Robot ed6cbbc9a6 Merge "Set default value for rank field in launcher logs to ItemInfo.rank." into sc-v2-dev 2021-12-13 18:48:09 +00:00
Sunny Goyal 761327b103 Fixing drawable cloning does not preserve badge
Bug: 209503720
Test: Manual
Change-Id: I77606c7067cad6d1faea3c57affd6dde317d06ac
2021-12-13 20:03:39 +05:30
TreeHugger Robot 46643ab66d Merge "Add cheap aidl tracing suitable for always-on-tracing (3/3)" 2021-12-13 13:55:32 +00:00
TreeHugger Robot 1e9e5f64fc Merge "Add setSuggestOnChrome method to OneSearch interface" 2021-12-13 10:02:45 +00:00
Shawn Lin 39ada8ad58 Merge "Notify system to report the rounded corners that task bar draws" 2021-12-13 08:26:01 +00:00
shawnlin beae64cd95 Notify system to report the rounded corners that task bar draws
Task bar draws fake rouned corner above itself and it should notify
system to report that fake ones to apps.

Bug: 196387239
Test: make

Change-Id: I1d9732de71fbe653ed56e468e211b1bfb4dd2b37
2021-12-13 13:33:59 +08:00
Winson Chung 1d85bd4130 Merge "Account for early display rotation for gestures with shell transitions" 2021-12-13 05:29:09 +00:00
Android Build Coastguard Worker a4cc665097 Snap for 7993263 from 9f8f98dae2 to tm-release
Change-Id: I5a79f4fd765941dc9e323943e1d990591f6a0799
2021-12-13 00:08:22 +00:00
TreeHugger Robot 9f8f98dae2 Merge "Tune taskbar handle height" 2021-12-12 12:37:50 +00:00
Siarhei Vishniakou 81ff81227e Add ALLOW_SLIPPERY_TOUCHES to make StatusBarTouchController slippery
LauncherActivity uses FLAG_SLIPPERY for certain interactions. For
example, when home screen is shown, and the user pulls down from not the
top of the screen, and notification shade is getting displayed, then the
touch should be getting transferred to the NotificationShade using
FLAG_SLIPPERY.

The newly introduced permission is added to launcher in order for this
flag to be applied to the window.

Bug: 206188649
Bug: 157929241
Test: reviewed logs, ensure that NexusLauncherActivity has FLAG_SLIPPERY
Test: re-ran the performance regression test
Change-Id: I8d05fa3663687b5382a59b0d47cdac404844c3b7
2021-12-12 06:22:08 +00:00
Android Build Coastguard Worker dfe07b8f48 Snap for 7992425 from 434d537725 to tm-release
Change-Id: Ib49bbfd84610e6ba21c57912f5e144360ba6d746
2021-12-12 00:08:33 +00:00
Android Build Coastguard Worker bfc565b923 Snap for 7992035 from be0360c6d8 to sc-v2-release
Change-Id: Ifaf25cf921b3cc752130f0a12e7558651bf6092f
2021-12-11 22:08:00 +00:00
Android Build Coastguard Worker 659debee52 Snap for 7991057 from a38bcacf05 to tm-release
Change-Id: I33c549c0b2989fc054e54c8cd7f1ea692b761042
2021-12-11 04:09:40 +00:00
Ling WO 85336c23fb delete appIcon from workspace via TAPL
1. Create a new class for DropBar icon.
2. Implement function to delete appIcon from workspace.
3. Add testDeleteFromWorkspace to TaplTestsLauncher3.

Bug: 205593009
Test: Launcher3Tests:com.android.launcher3.ui.TaplTestsLauncher3#testDeleteFromWorkspace

Change-Id: I259b909aebcdcc1c73af63a9970db43dab3e86eb
2021-12-10 18:14:41 -08:00
TreeHugger Robot 434d537725 Merge "Report contentInsets only based on what they will be inside apps" into sc-v2-dev am: be0360c6d8 am: 86be069897
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16442237

Change-Id: I848ee10d672d713b326fafbe2fdf789ababe1dd2
2021-12-11 02:09:07 +00:00
TreeHugger Robot 5c7a0ae1c9 Merge "DeviceProfile.overviewRowSpacing should exclude extra top margin on grid tasks" into sc-v2-dev am: 953873dd18 am: a370c8880f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16440097

Change-Id: I5ce9a676cd30790b89a5a63ffbbc390c602f7f7e
2021-12-11 02:08:36 +00:00
Android Build Coastguard Worker 4010693afb Snap for 7989966 from 7ac2a71b94 to sc-v2-release
Change-Id: I80a39d1cc91bb982faa6e46063dcca57108ada2d
2021-12-11 02:07:38 +00:00
TreeHugger Robot 86be069897 Merge "Report contentInsets only based on what they will be inside apps" into sc-v2-dev am: be0360c6d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16442237

Change-Id: I3f2382b320e7e13673e9a156e0250133e15d2d7d
2021-12-11 01:51:46 +00:00
TreeHugger Robot a370c8880f Merge "DeviceProfile.overviewRowSpacing should exclude extra top margin on grid tasks" into sc-v2-dev am: 953873dd18
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16440097

Change-Id: Ifa60729ab1b7cf9031dc03698684879a202ff1f4
2021-12-11 01:51:08 +00:00
TreeHugger Robot be0360c6d8 Merge "Report contentInsets only based on what they will be inside apps" into sc-v2-dev 2021-12-11 01:30:26 +00:00
TreeHugger Robot 953873dd18 Merge "DeviceProfile.overviewRowSpacing should exclude extra top margin on grid tasks" into sc-v2-dev 2021-12-11 01:12:57 +00:00