Commit Graph

78507 Commits

Author SHA1 Message Date
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
Tracy Zhou ad26390e23 Merge "Set inset in phone setup mode to setup inset" into main 2024-05-20 16:24:36 +00:00
Oli Thompson 9305badf5a Merge "Show edu card when managed profile removed" into main 2024-05-20 10:38:19 +00:00
Tracy Zhou 0bfd21fe2e Add folders in all apps aconfig flag
Bug: 341582436
Change-Id: I615d3b925dba8987c793c3e871f2aebde10ace53
Test: N/A
2024-05-19 22:19:57 +00:00
Android Build Coastguard Worker 6d0dd4c7f6 Snap for 11859356 from c9efd81d57 to 24Q3-release
Change-Id: I99a3d172ea6af75727a5f18666a7301512c5f4fc
2024-05-18 03:21:46 +00:00
Fengjiang Li c9efd81d57 Merge "[Launcher Jank] Move binder call of RotationChangeProvider to BG thread" into main 2024-05-17 23:06:29 +00:00
Andrew Cole d04961f90b AppFilterTest
Adding a unit test for AppFilter. This is a simple class but it shows a good pattern of mocking resources and use that pattern in future unit tests.

Bug: 341361892
Test: AppFilterTest
Flag: None
Change-Id: Icb45ebe7791bb273860ee3fec1c5e59a76f13174
2024-05-17 14:32:26 -07:00
Fengjiang Li 01d4ca8aca Merge "Use global PackageManagerHelper for LoaderTask" into main 2024-05-17 21:02:01 +00:00
Sunny Goyal b7cd672363 Merge "Adding support for importing/exporting launcher layout" into main 2024-05-17 18:08:25 +00:00
Ats Jenk 7383866b91 Merge "Fix bubble translation when released after dragging" into main 2024-05-17 18:04:23 +00:00
Ats Jenk b34f8c8831 Only send bubble bar top coordinate to shell
Stop sending entire bubble bar bounds to shell.
Keeping the bounds in sync was error prone as bubble bar can expand and
collapse. Bubbles can be added/removed.
In each of these cases we had to make sure that shell gets updated.
Shell only needed the full bounds for collapse/expand animation. But
after updating the animation, shell only needs the top coordinate of the
bubble bar.

Bug: 330585402
Flag: com.android.wm.shell.enable_bubble_bar
Test: bubble bar drag
  - drag bar from right to left
  - expand the bar
  - check that expanded view scales in from left edge
  - collapse and drag bar back, check the animation
Test: selected bubble drag
  - drag expanded bubble from right to left
  - check that expanded view scales in from the left edge
  - drag the bubble back to right, check animation
Test: other bubble drag
  - drag a unselected bubble from right to left
  - check that the selected bubble expands in from left edge
  - drag the bubble back to right, check animation again
Test: drag bubble from right to left, observe that expanded view
  expand animation originates from the bubble bar

Change-Id: Ib66cef8d3c04bce54a69e30e99edd408a31f018f
2024-05-17 10:53:33 -07:00
Uwais Ashraf e420318843 Merge "Use getter for thumbnail from converted ThumbnailData in Java" into main 2024-05-17 17:08:08 +00:00
Ats Jenk 3529ace8a1 Fix bubble translation when released after dragging
Translation for bubble after drag release was based on bubble bar translation. TranslationX was adjusted for bubble position. And translationY was reused from bubble bar.
Before ag/27284635 bubble bar translationY just copied over the input translation value. But the cl introduced a fixed translationY applied to bubble bar.
This was getting applied to the bubble as well. And resulted in bubble being out of its target position when releasing drag.

Bug: 330585402
Test: drag a bubble from bubble bar and release it, observe it animates
  to its correct position in the bar

Change-Id: I48f2a84b60a9cc6047e9841c254b4035212f3c0e
2024-05-17 15:58:24 +00:00
Alex Chau 65574f8485 Sets taskOverlayFactory to TaskThumbnailViewDeprecated even when not binding
Bug: 339787593
Test: Manual
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Change-Id: I672bf7e5c0fd578974fca16272557f2ef2f218ee
2024-05-17 12:40:42 +01:00
Orhan Uysal 33967ebcea Merge "Set the listeners to null on unregister" into main 2024-05-17 08:33:03 +00:00
Kean Mariotti c4079927f9 Merge "vc tracing: refactoring prior perfetto migration" into main 2024-05-17 07:38:33 +00:00
Fengjiang Li a3e89b0cd2 Merge "Log warning when UserHandle in UserManagerState#allUsers get overridden" into main 2024-05-17 05:56:12 +00:00
Tracy Zhou b17af6ff75 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
2024-05-16 21:38:58 -07:00
Android Build Coastguard Worker 86bb3c222e Snap for 11853201 from 5719808945 to 24Q3-release
Change-Id: If0c2dce5560ccf8c1885dcd0272204e61353eb06
2024-05-17 01:21:34 +00:00
Sunny Goyal 25f5e29418 Adding support for importing/exporting launcher layout
Bug: 338282246
Flag: None
Test: Manual, developer feature
      atest AutoInstallsLayoutTest
Change-Id: I8a5674080f3c156d97bc6118c51532c2fe8177d5
2024-05-16 15:24:41 -07:00
Fengjiang Li 6335460613 [Launcher Jank] Move binder call of RotationChangeProvider to BG thread
Fix: 333771185
Test: record prefetto trace
Flag: NONE not gated
Change-Id: I68a574cbcfed84876fe57fa5be03ca189e569f7e
2024-05-16 15:17:12 -07:00
Ats Jenk 5719808945 Merge "Rename removeBubble method to clarify it is for dismissing via drag" into main 2024-05-16 22:00:56 +00:00
Fengjiang Li 172e454e2c Log warning when UserHandle in UserManagerState#allUsers get overridden
Bug: 340362067
Test: manual
Flag: NONE
Change-Id: I123f02f52408db0f7c711ee420743ac01df04156
2024-05-16 13:59:47 -07:00
Jagrut Desai 80b1ee3747 Merge "Removing Screen Record from TaplAddWidgetTest" into main 2024-05-16 19:11:23 +00:00
Treehugger Robot 7ca8954796 Merge "Clean up some old (pre-aconfig) flags." into main 2024-05-16 18:37:43 +00:00
Liran Binyamin 013a4121be Merge "Suppress bubble animation when IME is visible" into main 2024-05-16 18:22:38 +00:00
Fengjiang Li 62f1eca9e7 Use global PackageManagerHelper for LoaderTask
This reverts ag/27303480 as we have found the root cause of workspace icons deleted by setting up private space (ag/27354841)

Fix: 340362067
Test: manual
Flag: NONE
Change-Id: I81d95e95282f09b872268ddb232ba9f092e952bc
2024-05-16 11:04:32 -07:00
Luca Zuccarini 2d3dae75be Clean up some old (pre-aconfig) flags.
These have been enabled for a long time and are safe to remove.

Fix: 270394392
Fix: 270394041
Flag: NONE removing an old flag
Test: everything still works as expected (no-op change)
Change-Id: Id5fc356a29a7e85324a8c3f922709251f371b2c5
2024-05-16 16:43:27 +00:00
Jagrut Desai 5d3fde29bf Removing Screen Record from TaplAddWidgetTest
Test: Presubmit
Bug: 316910614
Flag: NONE
Change-Id: Ib993f047902859ffc62f313132289aa62ce18a79
2024-05-16 09:41:21 -07:00
Uwais Ashraf 1aa0e96d1f Use getter for thumbnail from converted ThumbnailData in Java
Bug: 334825222
Test: NA - one for one conversion
Flag: NA
Change-Id: Ibad85c59d7696f177d0fb723b7fd5b8983ecc974
2024-05-16 16:07:29 +00:00
Liran Binyamin 2cbb6dc5e4 Suppress bubble animation when IME is visible
When the IME is visible we now don't animate the bubble bar.

Flag: ACONFIG com.android.wm.shell.enable_bubble_bar DEVELOPMENT
Bug: 340532785
Test: manual
Change-Id: I31fcf6a1fe81d907a9a02780ba42813111ac7e90
2024-05-16 10:15:19 -04:00
Alex Chau ed9e3a8701 Merge "Convert TaksView to Kotlin" into main 2024-05-16 14:00:02 +00:00
Charlie Anderson a8058669d5 Merge "Adding additional logging around updated shortcuts" into main 2024-05-16 13:52:02 +00:00
Liran Binyamin 606e9fde47 Merge "Animate bubble update notifications" into main 2024-05-16 13:13:57 +00:00
Eghosa Ewansiha-Vlachavas c36afd3e26 Merge "[2/n] Unify DesktopModeStatus between Shell and Sysui" into main 2024-05-16 12:43:26 +00:00
Chris Göllner 4b6d2d4fa3 Merge "Shortcut Helper - Integrate with launcher 3 button nav translation" into main 2024-05-16 12:40:22 +00:00
Alex Chau 9565667813 Convert TaksView to Kotlin
- PS1: Android Studio conversion (unformatted, cannot compile)
- PS2: Fix compilation issues and formatting
- PS3: First pass ready for review
- PS4: Minor changes (Remove Consumer, remove unnecessary null-checks)
- PS5: Removed check() around taskContainers, which is now lateinit and should always be initiailzed. Also ensure TaskView is bound before adding to parent.
- PS6: Move a bunch of getters to use .property style
- PS8: Refacoted RecentsView.applyLoadPlan bind logic, to avoid inflating TaksView, bind, add then immediatley remove
- PS10: Turned more functions to express functions; added an extension function
- PS11: Re-order functions, no code changes
- PS12: Reverted unit express function back to {} style

Bug: 339787593
Test: Manual
Flag: NONE
Change-Id: I75c06cf29718d8f258a4124997bcb054f5eb056f
2024-05-16 12:33:28 +01:00
Sam Cackett 1ee568bf13 Merge "Add metric logging for fake landscape usage" into main 2024-05-16 10:28:26 +00:00
Helen Cheuk bd10f8f08d Merge "Fix navigation buttons focus state" into main 2024-05-16 10:27:02 +00:00
Pragya Bajoria 571c9b288d Merge "Remove obsolete desktop stashing logic from platform/packages/apps/Launcher3 [5/n]" into main 2024-05-16 09:50:17 +00:00
Orhan Uysal 2552cc78ed Set the listeners to null on unregister
In some occasions, launcher leaks through DesktopVisibilityController
and SplitFromDesktopController. It seems that we don't set the listeners
to null after we unregister which might be the reason why they hold on
to the launcher activity.

Bug: 332339792
Test: m
Flag: ACONFIG com.android.window.flags.enable_desktop_windowing_mode TEAMFOOD
Change-Id: If52ae87cec959264109e59b1144679183c8fedcc
2024-05-16 09:07:48 +00:00
Android Build Coastguard Worker c999232fe4 Snap for 11847214 from 91ff82f9f7 to 24Q3-release
Change-Id: Ib96ac89b92c32e08617fbf9b42a30a940741283c
2024-05-16 01:22:19 +00:00
Charlie Anderson 1e96d751d2 Adding additional logging around updated shortcuts
Bug: 338218961
Test: locally
Flag: N/A
Change-Id: Ic72ec2686de20036928c1e98b52677bd82368282
2024-05-15 14:18:21 -04:00
Treehugger Robot 91ff82f9f7 Merge "Reformatting a comment." into main 2024-05-15 16:56:55 +00:00
Song Chun Fan 59fa915e9e Merge "[Archive] Update the content description for the archived app" into main 2024-05-15 16:18:18 +00:00
Liran Binyamin 03a2ab1e56 Animate bubble update notifications
Updates to existing bubbles now cause the bubble bar to animate in
similarly to new bubble notifications.

Flag: ACONFIG com.android.wm.shell.enable_bubble_bar DEVELOPMENT
Bug: 280605846
Test: manual
Change-Id: Ib53316889170e0392f055242c6206882084b4a46
2024-05-15 12:13:12 -04:00
Oli Thompson 3ea1acb8ca Show edu card when managed profile removed
Reset the work edu card bit so the edu card shows if the managed profile is removed

Also remove padding from the close button so it doesn't clip. screenshot https://screenshot.googleplex.com/96Yc6yExZ57btxG

Bug: 315449027
Bug: 293642345
Test: manual
Flag: NONE
Change-Id: I60cfc0c258d28a6674aec41862c1770550a14955
2024-05-15 14:19:03 +00:00
Pat Manning 9775908d31 Merge "Promote all apps exit search keyboard test to presubmit." into main 2024-05-15 13:55:19 +00:00
Sam Cackett 155e558b5b Merge "Fix crash resulting from missing entry in the taskViewIdArray" into main 2024-05-15 12:48:08 +00:00
helencheuk 7278073b57 Fix navigation buttons focus state
Two focus states in the same screen because taskbar and launcher are two processes. And we could not use keyboard to navigate to the nav button, agreed with UX that it should not have focus state. Make it not focusable to remove focus state as we are unable to focus on it by keyboard anyways. Tested that it would not affect TalkBack and SwitchAccess.

Only one focus in testing video: https://drive.google.com/file/d/18X3dtsvqfCMpdI7sBRxnaKwUCQzhHn8n/view?usp=sharing

Bug: 327386991
Test: Manual, navigate by keyboard in homepage and ensure there is no focus in the nav buttons
Flag: ACONFIG com.android.launcher3.enable_focus_outline Nextfood
Change-Id: I289ecb1784f8eb9b58bb36b28059ce4f367cf84e
2024-05-15 12:03:09 +00:00