Commit Graph

49925 Commits

Author SHA1 Message Date
Android Build Coastguard Worker 41b9029067 Snap for 8005451 from 80aa8da7e3 to sc-v2-release
Change-Id: Ib3f6f296403bdbbf72a3018961594145477de1db
2021-12-16 00:11:06 +00:00
Vinit Nayak 20102c3dd7 Merge "Save multiple RunningTaskInfo in GestureState" into sc-v2-dev 2021-12-16 00:03:20 +00:00
TreeHugger Robot f9f90d6dc2 Merge "Set navBarDarkIntensity based on dark theme in SUW" into sc-v2-dev 2021-12-15 23:42:06 +00:00
Vadim Tryshev 9a6a47e351 Revert "Temporarily disable Launcher3 tests affected by fling changes"
This reverts commit bc4dc49c6c.

Reason for revert: RecyclerView bug is fixed

Change-Id: Ia2a677f3a3987751349bad951ff136b2d55f439f
Merged-In: Ia2a677f3a3987751349bad951ff136b2d55f439f
Test: presubmit
Bug: 197802324
(cherry picked from commit 8b4a6ee65b)
2021-12-15 14:38:04 -08:00
Colin Cross b4bb645304 Merge "Revert "Temporarily disable Launcher3 tests affected by fling changes"" into stage-aosp-master 2021-12-15 22:07:27 +00:00
Tony Wickham 70d237d8f3 Set navBarDarkIntensity based on dark theme in SUW
- Also remove old tinting based on textColorPrimary, as it's no longer necessary with dark intensity tinting.

Test: Run SetupWizardTestActivity in both dark and light theme, ensure back button visible
Fixes: 204384193
Change-Id: I2dc2e94bc0318ded62419b9ae0eed719db289d7f
2021-12-15 21:37:15 +00:00
Vinit Nayak dcd7ac4011 Save multiple RunningTaskInfo in GestureState
* With new split screen running two active tasks for
a given gesture, we need to get all running task
infos instead of the single most recent used one
* TODO(b/210903248) for proper refactoring for
GestureState

Fixes: 205675364
Test: Swiping up on overview no longer crashes
Change-Id: Iea1f193149657182311a97f46007b4d43e8ad549
2021-12-15 13:11:11 -08:00
Jon Miranda 78b12de4d2 Merge "Scale, crop, and translate window when swiping back to home." into sc-v2-dev am: 80aa8da7e3 am: e589eaded8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16470663

Change-Id: Id6d210fdcc9bda55a8666121bd5418a48da40c55
2021-12-15 20:35:18 +00:00
Brian Isganitis c4a1e5d540 Merge "Add feature flag for All Apps in system Taskbar." 2021-12-15 20:34:22 +00:00
Winson Chung 1944ab39b9 Merge "Wait for the Launcher activity to bind to TIS before animating" into sc-v2-dev am: 2ecf688de6 am: 049a345cbe
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16420662

Change-Id: I12d9cbe53afd42cfade93d1c957f3f9aa1be520a
2021-12-15 20:33:32 +00:00
Jon Miranda e589eaded8 Merge "Scale, crop, and translate window when swiping back to home." into sc-v2-dev am: 80aa8da7e3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16470663

Change-Id: I229d888f03692b575584c66b60eb6e16bcffb85e
2021-12-15 20:33:28 +00:00
Jon Miranda 80aa8da7e3 Merge "Scale, crop, and translate window when swiping back to home." into sc-v2-dev 2021-12-15 20:29:59 +00:00
Winson Chung 049a345cbe Merge "Wait for the Launcher activity to bind to TIS before animating" into sc-v2-dev am: 2ecf688de6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16420662

Change-Id: Ifdb1a25ea269ca38a7390c7367bb7a5876717c81
2021-12-15 20:17:59 +00:00
Brian Isganitis 3523b241cc Merge "Include border spacing to align tasbar icons with hotseat." 2021-12-15 20:17:35 +00:00
Winson Chung 2ecf688de6 Merge "Wait for the Launcher activity to bind to TIS before animating" into sc-v2-dev 2021-12-15 19:44:26 +00:00
TreeHugger Robot 923b6ce6d0 Merge "Avoid drawing the first frame in launcher before animation completes" 2021-12-15 19:38:35 +00:00
Shuming Hao 33e97f1ca4 Merge changes from topic "kingyo-new-buttons-master"
* changes:
  Toggle notification panel when new buttons are clicked in taskbar
  Add new buttons to taskbar
2021-12-15 16:49:19 +00:00
Bill Yi 3ca151d0e5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4dbad1ad6873defc9d66df8c89a05fa55800025f
2021-12-15 06:59:48 +00:00
Bill Yi 3405fe3831 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I51ee421c491ada82ab307a6470b46877a064cbba
2021-12-15 06:58:44 +00:00
Bill Yi 2a599f3eea Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I0dfd8609046378398394e3eff496d783ade48a41
2021-12-15 06:58:05 +00:00
Bill Yi e115a8a46f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iec90da5709f6fbee61798d61b6c6d0d50185220e
2021-12-15 06:57:23 +00:00
Bill Yi 439705b5a3 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 384c30fa4c
Blank merge reason: commit message contains skip directive

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

Change-Id: I712a3fb9b233fb15846cbafc48e6970b3b659b96
2021-12-15 06:56:57 +00:00
Bill Yi 384c30fa4c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I195d5d5f10c8e93e1b26d58b2cdcf194fc3474f4
2021-12-15 06:56:43 +00:00
Bill Yi 0558d6a646 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I3cbff24108a4dac5b307095322c5aa7e716c7575
2021-12-15 06:54:30 +00:00
Bill Yi 02e4f4c947 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 189f1ce908 2p: 0e2873b514
Blank merge reason: parent was merged -s ours

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

Change-Id: I154f9be781c0f11fdb90f4b359e29c7537fd21ed
2021-12-15 06:54:03 +00:00
Bill Yi 8942bc90bf Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia316d18fcb30161ddb2d288919c9aa4698d3d3af
2021-12-15 06:53:54 +00:00
Bill Yi a0cf7967db [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 189f1ce908
Blank merge reason: commit message contains skip directive

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

Change-Id: I46c505232b99fbe4b15fdb74acbae5658df23753
2021-12-15 06:53:38 +00:00
Bill Yi 0e2873b514 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 189f1ce908
Blank merge reason: commit message contains skip directive

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

Change-Id: If9d583b529256cc30f9f62b3ebba376b0dff2e26
2021-12-15 06:53:37 +00:00
Bill Yi 189f1ce908 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ibdb9619f0643f4a1f3c32252e712248556c352a6
2021-12-15 06:53:19 +00:00
Tony Wickham f540e5caa2 Fix testStressSwipeToOverview
- Finish recents controller to app rather than to launcher, to ensure taskbar state uses in-app configuration
- Also fix an issue when a gesture completes before onLauncherStart, which happens in 3 button mode. The error I saw in the test was:
java.lang.AssertionError: http://go/tapl test failure: Failed to receive an event for the state change: expected [Overview], actual: [Background, Normal];
Context: want to switch from background to overview, clicking Recents button; now visible state is Background
(This also accurately describes what I saw on the device, where the LauncherState went to Normal but the task was still running in the live tile)

Test: testStressSwipeToOverview
Fixes: 203577620
Change-Id: I19616f7921c9821f1b45a90a3e4bec4fb3b8a9d3
Merged-In: I19616f7921c9821f1b45a90a3e4bec4fb3b8a9d3
(cherry picked from commit ce6bf7dd7f)
2021-12-15 05:45:43 +00:00
Tony Wickham ee24e46a61 Fix issues with starting new recents animation before previous onRecentsAnimationStart
- Fix logic for canceling animation for continued quick switch, so that this case (starting a new gesture before onRecentsAnimationStart() of the previous gesture) instead goes to the STATE_FINISH_WITH_NO_END flow.
- Update the end target so that we go to that state instead of always overview state if swipe was past the halfway threshold when we call endLauncherTransitionController(). This is specifically so we don't use OverviewInputConsumer on the second gesture, given the first one was canceled and didn't actually go to overview.
- GestureState#isRecentsAnimationRunning() now checks for STATE_RECENTS_ANIMATION_STARTED rather than _INITIALIZED, to be consistent with its javadoc and TaskAnimationManager#isRecentsAnimationRunning(). This also ensures we can correctly calculate continued quick switch (see above).
- Call cleanUpRecentsAnimation() before creating a new one in TaskAnimationManager. This ensures that the previous listener doesn't immediately cleanup the new gesture when it gets onRecentsAnimationCanceled() due to the new recents animation starting.

Test: swipe to home twice from the app, locally ignoring the onRecentsAnimationStart() from the first one, and ensure the second one responds normally
Bug: 193851085
Change-Id: I76e27c96b54293805546c0d6c82e77f975c69d7a
Merged-In: I76e27c96b54293805546c0d6c82e77f975c69d7a
(cherry picked from commit 66ed0ff23e)
2021-12-15 05:44:27 +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