Commit Graph

19452 Commits

Author SHA1 Message Date
Hui Kang 879d746de7 Merge changes from topic "Annotate Platinum Test" into udc-dev
* changes:
  [3/7]Add PlatinumTest annotation to tests
  [4/7]Add PlatinumTest annotation to tests
2023-05-25 16:04:10 +00:00
Luca Zuccarini 07c3491ec2 Merge "Add a view type check to ensure the right animation is used." into udc-dev 2023-05-25 15:42:51 +00:00
Winson Chung 98fbe25da9 Try to handle side-task launches even if not fully transitioned to overview
- The launcher state does not transition from Background -> Overview
  until the overview animation finishes, and if a side task is launched
  before that happens, then we receive onTaskAppeared() but
  isInLiveTileMode() is false, which results in a state where no
  animation of the side task surface is run, and the recents animation
  is not finished.  In these cases, if we've already calculated the
  end target is RECENTS, then we can still animate the side task
- Adding some more gesture logs to indicate side task launched (or didn't)

Bug: 279114961
Test: Go to overview and launch next task

Change-Id: I23eac8721da801f14cc95fc6781a0ef9f0355cc0
2023-05-25 06:14:53 +00:00
Brandon Dayauon 8324156a69 Merge "Update work tab colors and fab background color" into udc-dev am: fe3d513650 am: 98b3fe1aba am: 5044364153
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23331299

Change-Id: Ibdc47439a28dc519c525459d85cadcacf6530f90
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-25 04:50:42 +00:00
Brandon Dayauon ee329536d3 Merge "Update work tab colors and fab background color" into udc-dev am: fe3d513650 am: 98b3fe1aba
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23331299

Change-Id: I02766af694bf02c6fd339116c1aa19817a11c113
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-25 04:34:09 +00:00
Brandon Dayauon 5044364153 Merge "Update work tab colors and fab background color" into udc-dev am: fe3d513650 am: 98b3fe1aba
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23331299

Change-Id: Icf85c2e61d8563344a498d8379425a352895ea34
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-25 04:29:57 +00:00
Brandon Dayauon 7c88539899 Merge "Update work tab colors and fab background color" into udc-dev am: fe3d513650 am: ce031f9fcb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23331299

Change-Id: I02eee79ad2a1c01ca2f47983376e5190fbd0de21
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-25 04:29:44 +00:00
Brandon Dayauon ce031f9fcb Merge "Update work tab colors and fab background color" into udc-dev am: fe3d513650
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23331299

Change-Id: Ie9120b47cda82ca67e037743843d804b0e852473
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-25 03:49:43 +00:00
Brandon Dayauon d07dc83551 Merge "Update work tab colors and fab background color" into udc-dev am: fe3d513650
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23331299

Change-Id: I673b730b4d52c01f67b6eb9c060e5e03d6cefdfe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-25 03:49:12 +00:00
Brandon Dayauon bfbe5ce4eb Merge "Update work tab colors and fab background color" into udc-dev am: fe3d513650
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23331299

Change-Id: I02e6779923beabceafc829bf8caee2077f14bd08
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-25 03:45:12 +00:00
Brandon Dayauon fe3d513650 Merge "Update work tab colors and fab background color" into udc-dev 2023-05-25 03:07:59 +00:00
Jordan Silva aac286af4f Add Portrait/Landscape support for NexusLauncher screenshot tests
Updating @PortraitLandscape annotation to be public to allow its usage by modules implementing Launcher3 and AbstractLauncherUiTest and interop with Kotlin.

Bug: 283751050
Flag: N/A
Test: atest HomeScreenEditStateImageTest
Change-Id: I84e1210c0476a3b3f9b40bbb6ee6b46a44b752ff
2023-05-25 02:25:19 +01:00
Jordan Silva f965d491c3 Merge "Fix TaskView bind and orientation state called multiple times" into udc-qpr-dev am: 135adf3d90 am: 60fc01dda0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23369319

Change-Id: If03695de0b0d30c4bea2d93b1c652b918666dea9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-25 00:53:25 +00:00
Jordan Silva 60fc01dda0 Merge "Fix TaskView bind and orientation state called multiple times" into udc-qpr-dev am: 135adf3d90
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23369319

Change-Id: Idaa36818bf492882b029d3cc690cca3010ae5423
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-25 00:03:27 +00:00
Tracy Zhou 7761952603 Merge "Animate expansion of notification panel before ACTION_UP" into udc-qpr-dev am: 24bbc6a577 am: ebb2c48f6b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23077751

Change-Id: I5cd0e6459c3485905baf568ce7c8ebda6959722d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-24 23:38:06 +00:00
Jordan Silva 135adf3d90 Merge "Fix TaskView bind and orientation state called multiple times" into udc-qpr-dev 2023-05-24 23:28:39 +00:00
Vinit Nayak 57de6565a0 Resize mRemoteTargetHandles when RecentsAnimationStarts
* TopTaskTracker gets updated too late after we've exited
split screen so we can't use that to determine how many
RemoteTargetHandles to use
* We default to 2, and then scale it down to 1. Because we
modify the array holding the handles directly, it should
also get updated in AbsSwipeUpHandler
* Temporary solution to stop setting up RecentsView if we detect that
TopTaskTracker has incorrect data and re-setup when we get
onRecentsAnimationStart()

Test: Tested quickswitch in gestural and recents button
double tap in button nav.
Bug: 236226779
Flag: none

Change-Id: I1bae7aed1f8712ddd1bf496acfcb851c0e32a115
2023-05-24 16:26:33 -07:00
Andreas Agvard e5a19747aa Adds an flag guarded extension point for long press nav handle behavior am: eea784aea8 am: 1712650bf4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23377577

Change-Id: I1bef4055dc0a4a07f54f2a5c37c4185b68faebb8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-24 22:07:11 +00:00
Tracy Zhou ebb2c48f6b Merge "Animate expansion of notification panel before ACTION_UP" into udc-qpr-dev am: 24bbc6a577
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23077751

Change-Id: I7c4e217430d23c79002c15e1d0e56ef8919c8c3b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-24 21:26:31 +00:00
Ikram Gabiyev 45b33a1a55 Remove contentDescription attribute in filter icon
Remove contentDescription attribute for multi-instance
filter icon ImageView since importantForAccessibility="no"
to avoid talkback noting it instead of the task name itself.

Bug: 280908761
Test: manually reproduce the steps in the bug
Change-Id: Ifdc884537222565fc2e52d5a17272f19a4446f62
2023-05-24 14:01:04 -07:00
Tracy Zhou 24bbc6a577 Merge "Animate expansion of notification panel before ACTION_UP" into udc-qpr-dev 2023-05-24 20:29:18 +00:00
Jagrut Desai 522bbe1018 Merge "Android U: GM3 Color Tokens for Taskbar and quickstep" into udc-dev am: 990aef6c00 am: 97ec1855a0 am: f5af69213c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23220591

Change-Id: Ic6baf5d22417ea25f322074b47de476f9b314f7e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-24 19:52:25 +00:00
Jagrut Desai ab7ea8a07a Merge "Android U: GM3 Color Tokens for Taskbar and quickstep" into udc-dev am: 990aef6c00 am: 97ec1855a0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23220591

Change-Id: I410846f848704b706afb6af4d1b5718cbf0062f3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-24 19:05:03 +00:00
Jagrut Desai 6bb2dfb736 Merge "Android U: GM3 Color Tokens for Taskbar and quickstep" into udc-dev am: 990aef6c00 am: 7a58bf8a85
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23220591

Change-Id: I9ff30458ce787f70b1874aa0523dc5812cd2c631
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-24 19:03:37 +00:00
Jagrut Desai f5af69213c Merge "Android U: GM3 Color Tokens for Taskbar and quickstep" into udc-dev am: 990aef6c00 am: 97ec1855a0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23220591

Change-Id: I949eb2e9737fdb7a0562c83d19c79c7a39337c8d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-24 19:02:52 +00:00
Schneider Victor-tulias 9a7de100f4 Update gesture nav edu motion and colors
- Updated gesture nav edu overview step post-success motion and colors
- Updated gesture nav edu menu done button color and legacy action button color
- Switching light/dark mode when a step is complete started the demonstration animation. fixed this jank

Flag: ENABLE_NEW_GESTURE_NAV_TUTORIAL
Fixes: 281764891
Fixes: 283964958
Bug: 279823249
Test: ran full tutorial with ENABLE_NEW_GESTURE_NAV_TUTORIAL enabled and disabled
Change-Id: I9adc05947267ec038b6f374b2a29a5499468883b
2023-05-24 18:36:39 +00:00
Andreas Agvard 1712650bf4 Adds an flag guarded extension point for long press nav handle behavior am: eea784aea8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23377577

Change-Id: Iddd58d5f864b268776edddbce9460c20a168e7ed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-24 18:20:31 +00:00
Jagrut Desai bb12261a99 Merge "Android U: GM3 Color Tokens for Taskbar and quickstep" into udc-dev am: 990aef6c00
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23220591

Change-Id: I7232fbbf5254d9a538d4d4dfb4656e4de03ce768
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-24 18:19:23 +00:00
Jagrut Desai f2c01319ae Merge "Android U: GM3 Color Tokens for Taskbar and quickstep" into udc-dev am: 990aef6c00
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23220591

Change-Id: Ib05f915c9902940c5d844d2f7f3445f86ee07458
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-24 18:19:21 +00:00
Jagrut Desai 7a58bf8a85 Merge "Android U: GM3 Color Tokens for Taskbar and quickstep" into udc-dev am: 990aef6c00
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23220591

Change-Id: I80c16841fb73806f8c5ebbca6ea8c5443ca194b2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-24 18:19:02 +00:00
Jagrut Desai 990aef6c00 Merge "Android U: GM3 Color Tokens for Taskbar and quickstep" into udc-dev 2023-05-24 17:28:33 +00:00
Schneider Victor-tulias 8f26e47736 Fix keyboard quick switch d-pad left/right traversal direction
Flag: ENABLE_KEYBOARD_QUICK_SWITCH
Fixes: 284156698
Test: tried keyboard quick switching with d-pad left/right in rtl/ltr
Change-Id: Idb7466b316cb7cbd9f592c5949d2c95c3278d85f
2023-05-24 10:04:05 -07:00
Jordan Silva 8554f90ea6 Fix TaskView bind and orientation state called multiple times
DWB toast initialization is being called 3 times for every TaskView. Twice during the TaskView bind (setOrientationState and bind), and for every TaskView loaded in applyLoadPlan the bind and the setOrientationState are invoked. This CL removes the excessive calls in the TaskView bind and applyLoadPlan.
The DWB for the focused task view is still being called twice due to orientation update for the focused task.

Bug: 281980412
Flag: N/A
Test: atest DigitalWellBeingToastTest
Change-Id: Id301b53b9cb0dfc23a81debec67a6de9a35485b9
2023-05-24 16:29:54 +00:00
Brandon Dayauon adcc16cf56 Update work tab colors and fab background color
Spec: https://screenshot.googleplex.com/6mKVuFNNNQfXpbD

bug: 283120562
test:
manually Launcher3 build var:
worktab lt: https://screenshot.googleplex.com/B8v44jm77o5Jyc7
widgetpicker tab lt: https://screenshot.googleplex.com/48WjAB8fKpZSEQ7
sharesheet tab lt: https://screenshot.googleplex.com/9rfSBeNALXbG7NL
worktab dt: https://screenshot.googleplex.com/332jCxde9vDW7hd
widgetpicker tab dt: https://screenshot.googleplex.com/3PGtrvQ2jLhQD4k
sharesheet tab dt: https://screenshot.googleplex.com/3jr4GPzRc3rzMA6

NexusLauncher:
worktab lt: https://screenshot.googleplex.com/BH2SFMXfQ4dtBeh
sharesheet lt: https://screenshot.googleplex.com/5axg34QgTt87iSL
widget picker tab lt: https://screenshot.googleplex.com/928kWFJ5mTun9py
worktab dt: https://screenshot.googleplex.com/7KWKLH4kt6nJpXT
sharesheet dt: https://screenshot.googleplex.com/778UoyhYrhimSAz
widgetpicker tab dt: https://screenshot.googleplex.com/FFFxBLqsATNXj8v

Change-Id: I78f20b2863a04d23e8a8880fc1d6a3ac0cfeb82a
2023-05-24 09:10:03 -07:00
Andreas Agvard eea784aea8 Adds an flag guarded extension point for long press nav handle behavior
Bug: 282993230
Flag: ENABLE_LONG_PRESS_NAV_HANDLE disabled
Test: Manual

Change-Id: I541886cc13af1db46bc38d4e18556be99bef7713
2023-05-24 16:24:42 +02:00
Luca Zuccarini d686f73742 Merge "Remove redundant instances of depth controller." into udc-dev am: f898ee474c am: 100ea1d75a am: 1e15dba740
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23390637

Change-Id: Ie78d29ad71860da7100868a79fc5d095d87ad78d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-24 13:38:09 +00:00
Luca Zuccarini 5a5b110030 Merge "Remove redundant instances of depth controller." into udc-dev am: f898ee474c am: 100ea1d75a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23390637

Change-Id: I8633d53d08a053bf552b307ad546efc9a999a28e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-24 13:02:12 +00:00
Luca Zuccarini 9ec6c7c432 Merge "Remove redundant instances of depth controller." into udc-dev am: f898ee474c am: a7320b82a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23390637

Change-Id: I916c603d0933d93bd2d72e3cc54f7ab053578792
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-24 12:58:43 +00:00
Luca Zuccarini 1e15dba740 Merge "Remove redundant instances of depth controller." into udc-dev am: f898ee474c am: 100ea1d75a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23390637

Change-Id: I29ea2d9d2b3ba9fdd1e6ced89bbcd6aa36b9bdd3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-24 12:58:10 +00:00
Luca Zuccarini a7320b82a2 Merge "Remove redundant instances of depth controller." into udc-dev am: f898ee474c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23390637

Change-Id: I74f1a0b48d9d7018548e547925ec5925ea8d474f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-24 12:20:25 +00:00
Luca Zuccarini 0a5112e03c Merge "Remove redundant instances of depth controller." into udc-dev am: f898ee474c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23390637

Change-Id: I3f05bd72653cf530e8416d77a3a1ac55ba400707
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-24 12:19:59 +00:00
Luca Zuccarini ffe4e4c2a3 Merge "Remove redundant instances of depth controller." into udc-dev am: f898ee474c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23390637

Change-Id: I68a21468cc1b8856da74fe6bee1bff7c3a4aee95
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-24 12:16:46 +00:00
Luca Zuccarini f898ee474c Merge "Remove redundant instances of depth controller." into udc-dev 2023-05-24 11:35:21 +00:00
Tracy Zhou 942a8b996f Animate expansion of notification panel before ACTION_UP
Fixes: 280335619
Test: Make sure that the notificaton shade can be pulled down before ACTION_UP
Change-Id: Ib29b17e4d8e42391e5ec46f230226debe0cc1186
2023-05-23 22:58:45 -07:00
Hui Kang 5bde3f8573 [4/7]Add PlatinumTest annotation to tests
These tests are in the audited platinum suite (go/platinum-audit-flake)

Test: make
Bug: 283409062
Change-Id: Id438fde00b2a6e31694bef125d20637af514b9da
2023-05-24 01:17:18 +00:00
Bill Yi 0def8eb9b6 Merge "Import translations. DO NOT MERGE ANYWHERE" 2023-05-23 22:59:07 +00:00
Bill Yi 754bb05feb Merge "Import translations. DO NOT MERGE ANYWHERE" into udc-dev 2023-05-23 22:58:05 +00:00
Saumya Prakash de9f592268 Update Lottie files in gesture nav education
The existing home gesture animation had a flicker due to an incorrect
frame in the Lottie jsons. This change updates the json files for all
form factors to the corrected version.

Flag: ENABLE_NEW_GESTURE_NAV_TUTORIAL
Fix: 283760250
Test: Went through the home gesture tutorial on tablet, foldable, and
mobile and verified the new animation played correctly

Change-Id: I55276ba9258e2b9908f05e0397f7c084fedf3926
2023-05-23 21:59:32 +00:00
Mady Mellor 6dea6d1624 Modify Taskbar code to accommodate bubble bar gesture to stash/unstash
* Bubble bar typically follows the behavior of taskbar - if taskbar
  is shown, the bubble bar is shown, if taskbar hides, bubble bar
  hides.
* The bubble bar has 3 states: stashed, collapsed (unstashed but
  the bubbles are not expanded), and expanded. When bubbles are
  expanded, this means WMShell is rendering the bubble
  expanded view. In this situation taskbar becomes collapsed.

Bug: 253318833
Test: manual - flag turned on - see go/bubble-bar-tests
Test: manual - flag turned off:
             - launch an app, ensure taskbar is stashed
             - unstash taskbar, drag down on taskbar, ensure it
               becomes stashed
             - be in an app, unstash taskbar, interact with the app,
               ensure taskbar is stashed
             - be in an app, unstash taskbar, select an app from it,
               ensure taskbar is stashed & app is opened
Flag: WM_BUBBLE_BAR
Change-Id: I7b481d768182c8429160ab4a9b213b885a7d78bc
2023-05-23 14:02:50 -07:00
Thales Lima 0d6b247bae Merge "Create TAPL test for taskbar in overview" into udc-dev am: ac206e1daf am: dd2c541ffe am: f688886499
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23155127

Change-Id: I60b52c3c9c64e0a31fdbf8d64f39c93861fd7aec
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-23 20:19:14 +00:00