Commit Graph

74698 Commits

Author SHA1 Message Date
Treehugger Robot dcec00cc4d Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-06-26 19:22:32 +00:00
Treehugger Robot 2920b04df3 Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-06-26 19:22:32 +00:00
Bill Yi e89fa0c181 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie5ac956793f79eddf06c2ba521d7c3c0ccec183e
2024-06-25 22:59:49 -07:00
Bill Yi 66bc0c0275 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ibe27bae1bf90208a3dd81d0d051be5313718a0dc
2024-06-25 22:58:58 -07:00
Bill Yi fb9cb01e12 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia0b570ddba1df28cf42ffe7e4615a4847dd47d45
2024-06-25 22:58:14 -07:00
Jordan Silva 497729f781 Fix digital wellbeing banner position in portrait mode
The banner should be aligned to the start of the screen, not the center. This CL fixes DWB position for split tasks when device is unfolded.

Fix: 348200661
Bug: 345789862
Flag: EXEMPT bugfix
Test: Manual. Add a Digital Wellbeing (DWB) timer to 2 apps. Open these two apps in split mode. Unfold the device and go to Overview. The DWB banner should aligned correctly.
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:3d088e3899cfca516dfa8ae9699691ece2b914d9)
Merged-In: I0544b4a8eb85b00196373c8a4368e680abab222b
Change-Id: I0544b4a8eb85b00196373c8a4368e680abab222b
2024-06-24 09:55:17 +00:00
David Lin 6ec11da650 Merge "Fix flickering issues with divider during split animation" into 24D1-dev 2024-06-19 00:48:33 +00:00
Treehugger Robot c44c004e1b Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-06-17 18:23:53 +00:00
Bill Yi 4645316a61 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib223b1dc82ae646244e2f471f2e930af61e71686
2024-06-16 23:10:52 -07:00
Bill Yi d06eb8a29d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I560b082a24e4bb9331d45bec4d3352bf225b313e
2024-06-16 23:09:27 -07:00
Jeremy Sim fe9a7f3f38 Fix flickering issues with divider during split animation
This CL makes changes to the "split divider placeholder view", which was intended to cover up the backdrop a little during the split confirm animation. The placeholder view is now larger (fullscreen) and fades in with the animation movement, so there is no longer a period of time when it looks like an awkward rectangle.

New timings and interpolators confirmed with UX. Also renamed some variables and added comments for clarity.

Fixes: 344573331
Test: Manually verified that the visual bug no longer happens on large and small screen, and from desktop and Overview.
Flag: EXEMPT bugfix
Change-Id: I3b37f2b0478035d7a3181ae7c23962fe75a13b2c
Merged-In: I3b37f2b0478035d7a3181ae7c23962fe75a13b2c
(cherry picked from commit 91fb2f2e5e)
2024-06-15 01:13:35 +00:00
Riddle Hsu 2670871505 Send source rect hint to Shell via stopSwipePipToHome
Launcher has calculated it, so shell side can use it directly to
avoid inconsistency.

Bug: 331315278
Test: Assume the target app support auto-pip and it doesn't draw
      under display cutout.
      E.g. LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
      Enter PiP from 90 degrees to home with 0 degrees.
      The left side of pip should not flicker.
Change-Id: Id09efc8a30eeef14a031d9db2ab1e00b6f3034bc
2024-06-14 02:27:57 +00:00
Schneider Victor-tulias ac8e132f2d Exclude home and recents activity types when overriding recents-excluded tasks
These tasks could point to overview itself, causing a very confusing screenshot. By excluding these tasks, we will default to using the task preview

Flag: NONE bug fix
Fixes: 336334715
Test: used circle to search from home, swiped to home, then pressed "select" overview action button. also checked temp logs
Change-Id: I0b0ca50585413b479e4830f06b57b8b5e19670a8
(cherry picked from commit 3eb4efac95)
2024-06-13 17:03:33 +00:00
Treehugger Robot 42ddcb5e14 Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-06-12 17:35:45 +00:00
Bill Yi bb038c1e56 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8e7c673b15469c477edbba5f411be7651397ded1
2024-06-11 18:41:11 -07:00
Bill Yi ffbadc5404 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1750b036138658c8abe54de9bea4f35b56fe230f
2024-06-11 18:39:45 -07:00
Winson Chung 3fa291e1a7 Add max width to the screen instructions view text
- This ensures that the instruction wraps if the text is too long

Fixes: 328577545
Fixes: 345128488
Flag: EXEMPT bugfix
Test: Visual inspection of instructions view in different languages/form
      factors
Change-Id: I73e889372a5c482277b0e4b61fb834304304c0a6
Merged-In: I73e889372a5c482277b0e4b61fb834304304c0a6
(cherry picked from commit 73cf3bc3a1)
2024-06-10 21:08:18 +00:00
Kshitish Vyas f309097aa8 Merge "Ensure starting position rect isn't empty in FloatingTaskView" into 24D1-dev 2024-06-10 18:33:32 +00:00
Kshitish Vyas 91dfdc61b8 Merge "Always report mandatory insets for button nav" into 24D1-dev 2024-06-10 18:32:14 +00:00
Treehugger Robot 9d5049236f Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-06-07 17:15:18 +00:00
Winson Chung 669b9c5c30 Always report mandatory insets for button nav
Fixes: 340134342
Fixes: 343817842
Test: atest android.systemui.cts.WindowInsetsBehaviorTests
Test: Verify mandatory insets vs window bounds in various
      orientations when folded/unfolded
Change-Id: I18d4f5d212d16c62d15d84b4842b3d20c0d8c5ae
Merged-In: I18d4f5d212d16c62d15d84b4842b3d20c0d8c5ae
(cherry picked from commit 762b3b4685)
2024-06-07 05:18:36 +00:00
Vinit Nayak f8efb32379 Ensure starting position rect isn't empty in FloatingTaskView
* on rotation taskbar re-inflates it's hotseat views.
If we're already in split, then FloatingTaskView tries to do calculations
on the view's position in the window, but has a reference to the
old, pre-rotated view which is no longer in any window.
* This sets startingPosition to be an empty rect, which is used to
set LayoutParam values, which are used downstream in update() to calculate
scale, and thus we end up dividing by 0.
* TODO(b/345556328) figure out a better solution than checking for an
empty rect

Fixes: 342606096
Test: Repro steps don't cause crash
Flag: EXEMPT bugfix
Change-Id: Icb546a05d383d1997a92471fc1de3ffc37d06eca
Merged-In: Icb546a05d383d1997a92471fc1de3ffc37d06eca
(cherry picked from commit 410681a955)
2024-06-07 03:24:37 +00:00
Bill Yi 8a174558c2 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I15ce34d1823617c0912bfdae1feb6185483db2f1
2024-06-06 14:21:58 -07:00
Bill Yi ecd70fc3c5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4a743d129b6d2801fa660224e8e881068e267346
2024-06-06 14:20:32 -07:00
Bill Yi b748c8e6ee Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7d47742f878876e358fec1130708bae36149f801
2024-06-03 18:20:44 -07:00
Treehugger Robot 85e9c6f1a2 Merge "Cancel manual animation if LauncherState changes during drag." into 24D1-dev 2024-05-31 19:27:25 +00:00
Priyanka Advani 8ec05c628b Merge "Revert "Always report mandatory insets for button nav"" into 24D1-dev 2024-05-30 18:50:44 +00:00
Chaitanya Cheemala 1773b06050 Revert "Always report mandatory insets for button nav"
This reverts commit 4304a14206.

Reason for revert: Likely culprit for b/343564388  - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Change-Id: Ibc6fae27f31bcb54406da013babc76b2d5fc7f10
2024-05-30 11:44:57 +00:00
Winson Chung 6de4b5286a Merge "Always report mandatory insets for button nav" into 24D1-dev 2024-05-29 22:56:05 +00:00
Vinit Nayak c5d3fcb655 Merge "Address jank and memory issues with OverviewActionsView" into 24D1-dev 2024-05-29 20:23:44 +00:00
Jeremy Sim 1abc4761cc Address jank and memory issues with OverviewActionsView
Attempt to improve jank and memory regressions by simplifying the view layout of OverviewActionsView.

Bug: 339688091
Bug: 339853741
Test: testSaveAppPairMenuItemOrActionExistsOnSplitPair()
Flag: EXEMPT bugfix
Change-Id: Ib4a7c5a813b221c0a083144e7fb1e1c5f3fedb1c
2024-05-29 18:15:32 +00:00
Winson Chung 4304a14206 Always report mandatory insets for button nav
Fixes: 340134342
Test: atest android.systemui.cts.WindowInsetsBehaviorTests
Change-Id: Iee9d5ca9f12ff63f856e7aa94227e5b8273e02a4
2024-05-29 06:39:57 +00:00
Bill Yi 6dc980e09e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9dbd0e2b4accbdcdf7c44d12022a3d5af717f9e3
2024-05-28 21:10:44 -07:00
Vinit Nayak b34cc291d0 Merge "Return false for isSplitSelectionActive() if controller not initialized" into 24D1-dev 2024-05-28 20:39:58 +00:00
Vinit Nayak 364d784242 Merge "Disable gestures when split apps are animating in from shell" into 24D1-dev 2024-05-28 20:21:53 +00:00
Vinit Nayak f9b81f24a4 Return false for isSplitSelectionActive() if controller not initialized
Test: unable to repro
Fixes: 342716244
Flag: EXEMPT bugfix
Change-Id: I9d7d54d5f7571286778c0e82ef4082f9b5843c1d
(cherry picked from commit b449116345)
Merged-In: I9d7d54d5f7571286778c0e82ef4082f9b5843c1d
2024-05-28 20:19:46 +00:00
Bill Yi 704883eafa Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I523a0d159594ad847c7c6bcbcbc295755e5c8f73
2024-05-27 20:48:12 -07:00
Winson Chung 6e71bffae7 Merge "Report gesture height for mandatory system gestures" into 24D1-dev 2024-05-24 16:39:11 +00:00
Winson Chung 21bb36fa66 Report gesture height for mandatory system gestures
- We are currently reporting the content insets for the mandatory system
  gestures in taskbar, but for button nav we should actually be
  reporting zero, and for gesture nav we should either report the
  content height if the taskbar is pinned, or the gesture height
  otherwise as the bottom mandatory gesture inset

Fixes: 340134342
Test: atest android.systemui.cts.WindowInsetsBehaviorTests
Change-Id: Ie4d56b62c903c273db95c19c9d34fcfe6c9ce486
Merged-In: Ie4d56b62c903c273db95c19c9d34fcfe6c9ce486
(cherry picked from commit 05682a059f)
2024-05-24 07:15:17 +00:00
Bill Yi b9487c16ce Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I621e54f11fe617f515d5a68af4dc0555c4f12236
2024-05-23 20:52:20 -07:00
Vinit Nayak f08e1afa37 Disable gestures when split apps are animating in from shell
Bug: 286509643
Test: See other CL in topic
Change-Id: Ic770bdf5ae6f847b1deca3b1d7e5a389ddd6663e
Merged-In: Ic770bdf5ae6f847b1deca3b1d7e5a389ddd6663e
2024-05-23 22:54:55 +00:00
Winson Chung f13fa37d0f Merge "Add multi-instance state to item infos" into 24D1-dev 2024-05-22 22:21:24 +00:00
Winson Chung ab8e999f81 Add multi-instance state to item infos
- Add legacy resource for supported multi-instance apps that
  matches the current SystemUI resource of the same name, and will
  be removed as apps migrate to the V manifest property to declare
  multi-instance support
- Load the multi-instance state from PackageManager when the db is
  first loaded or when packages are updated
- The multi-instance check is then used to determine if an app pair
  can be saved (ie. whether the action can be shown)

Bug: 323112914
Test: atest NexusLauncherTests

Merged-In: I565b4bee4ab5f7040910306b1fd60a4fc3bf9a1c
Change-Id: I9658b63672b692c42563c111c11be2433c98d535
2024-05-21 23:01:19 +00:00
Bill Yi 5a4062bd1f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iaac9e996fc484c62322fbddb036d13b328fe80e2
2024-05-21 10:05:39 -07:00
Tracy Zhou 8355bc1a76 Set inset in phone setup mode to setup inset
- In phone setup mode, gesture mode is no button but the inset we report should be setup inset

Fixes: 340998601
Test: https://screenshot.googleplex.com/8Q4WHorpUeqWSjw
Change-Id: I84d60ecc7179008e80e7b09eda5b3a1abb24e138
(cherry picked from commit b17af6ff75)
2024-05-20 16:24:50 +00:00
Jeremy Sim ee9e655c5c Fix bug with flickering actions bar
This CL fixes a bug caused by ag/27148514. The bug occurred because:

1) The new way we use FloatProperty to set the alpha did not have a working `get()` function, so it just returned a junk value, set to `-1f` (I didn't think `get()` would ever be called meaningfully for this property).

2) However, during certain UI interactions, `RecentsView#updateActionsViewFocusedScroll()` is called many times in a loop, which repeatedly tries to re-start the fade-in animation for actions bar. Pre ag/27148514, even though the fade-in animation was called repeatedly, it would start and then immediately stop running because it realized that it was already set to the desired alpha. However now that we return a junk value for `get()`, it didn't know to skip and just ran the full fade-in animation again and again.

Fixed by refactoring FLOAT_SETTER (now ALPHA_PROPERTY) and creating a new data class, OverviewActionsAlphaProperty, that handles some of the intricacies of this increasingly complicated alpha system.

Fixes: 339545510
Test: Swipe to Overview, move tiles around, actions bar does not flicker.
Flag: ACONFIG com.android.wm.shell.enable_app_pairs NEXTFOOD
Change-Id: I1093363780db5e0780deda2ff14b4f7361d63940
Merged-In: I1093363780db5e0780deda2ff14b4f7361d63940
2024-05-14 21:10:10 +00:00
Jeremy Sim 740a52a27c Fix bug with double-relayout of Overview Actions View
This CL refactors Overview Actions View so that a separate view, R.id.group_action_buttons, is used for buttons related to grouped tasks. This also changes the way visibility is handled with actions buttons -- instead of all buttons living on one bar and being toggled on and off, sometimes the whole bar is toggled on and off (to change from single task actions to group actions and vice versa).

This prevents the same view from having its visibility changed twice in in one layout and causing the wrong visibility to be rendered.

Fixes: 333844287
Test: Manual
Flag: ACONFIG com.android.wm.shell.enable_app_pairs NEXTFOOD
Change-Id: I1b6be4637ac8c8d424e7633c437fca376ecdd757
Merged-In: I1b6be4637ac8c8d424e7633c437fca376ecdd757
2024-05-14 21:09:56 +00:00
Stefan Andonian 531ede6f45 Merge "Use ItemInfo with correct position when adding to Workspace via Accessibility." into 24D1-dev 2024-05-14 20:09:21 +00:00
Charlie Anderson 9f03ea256d Merge "Fix blank pink loading icons by ensuring that cache entry won't downgrade existing icon." into 24D1-dev 2024-05-14 19:21:06 +00:00
Stefan Andonian 68686cdfec Use ItemInfo with correct position when adding to Workspace via Accessibility.
Bug: 332651703
Flag: NA
Test: Verified that the issue isn't reproducible with the fix. The issue
was 100% reproducible before.
Change-Id: I01207396e19b4f7d14d6a147e5e5fb98bae9ea99

Change-Id: I81aad9758ee33b8acc2d6a1242e54f2a47124374
(cherry picked from commit 86d3c8814b)
2024-05-14 17:11:55 +00:00