Commit Graph

83004 Commits

Author SHA1 Message Date
Fengjiang Li 9569f54008 [Test Week] Add RunnableListTest
Number of new tested methods: 5

Bug: 353303621
Test: This is the unit test
Flag: NONE - unit test
Change-Id: I546a775530cdf61424f1047e81e79c28fa7c63e4
2024-07-16 15:26:36 -07:00
Vadim Tryshev 78e9ef2b12 Merge "Increase clearPackageData timeout" into main 2024-07-16 21:52:28 +00:00
Stefan Andonian 2e1bb929ba Unit tests for ListenableHostView
3 public methods.

Bug: 353303621
Test: unit test CL.
Flag: EXEMPT unit test
Change-Id: If5e3b4f8e6f2fa2c2e44907a1a8080215f231ca2
2024-07-16 21:03:56 +00:00
Stefan Andonian 35b584d0ef [Test Week] Unit test for WidgetAddFlowHandlerTest.
8 public methods covered.

Bug: 353303621
Test: Unit Test
Flag: EXEMPT unit test
Change-Id: I5dd20de33b64de561ee8845beaa513b4e08c3a31
2024-07-16 20:58:39 +00:00
Stefan Andonian 19c5f7ae71 [Test Week] Unit test for WidgetManagerHelperTest.
6 public methods covered.

Bug: 353303621
Test: Unit Test
Flag: EXEMPT unit test
Change-Id: I549d97f5b57f0e6e9af44bd1695d94ebfa0538f2
2024-07-16 20:58:11 +00:00
Jagrut Desai 6276f1797b Remove getWorkspaceIconsPositions()
This cl addresses
	- removing of getWorkspaceIconsPositions()
	- addition of getWorkspaceIconPosition()

getWorkspaceIconsPositions() was not reliable as it was getting any icon selector and not actually waiting for the icon of intereset.
now we wait for specific icon of interest and tests are change accordingly.

Test: Presubmit
Bug: 319501259
Flag: TEST_ONLY

Change-Id: Ia65b9d51520763a7fbbb8d5cd3bc129496e443cc
2024-07-16 13:48:27 -07:00
Treehugger Robot 2d36c4635c Merge "[Test Week] Add ViewOnDrawExecutorTest" into main 2024-07-16 20:42:32 +00:00
Vadim Tryshev be508f4aa1 Adding screen record for the bug where com.google.android.apps.nexuslauncher:id/popup_container is not present
Bug: 349439239
Test: presubmit
Flag: TEST_ONLY
Change-Id: I177080040244462c8d1ca36ec433d36a7fbd7897
2024-07-16 13:24:33 -07:00
Hongwei Wang 5c44a7a19c Disable gesture nav while PiP anim is running
This is a re-land of ag/28058564

To prevent the Recents transition that may conflict with PiP

Flag: EXEMPT bug fix
Bug: 340724371
Test: Swipe to show TaskBar while expanding PiP to FS mode
Change-Id: I8395f40bf64bc69af0e3c39789f3a727b03fae0d
2024-07-16 13:20:30 -07:00
Jagrut Desai b0e0e00660 Merge "Adding Skeleton Code for Customizable Taksbar" into main 2024-07-16 20:16:10 +00:00
Jagrut Desai c9174e17a2 Merge "Add support for different container and space calculation logic." into main 2024-07-16 20:16:10 +00:00
Vadim Tryshev eeeaa6da56 Increase clearPackageData timeout
Apparently, on slow devices the operation may time out.

Bug: 353541583
Test: presubmit
Flag: TEST_ONLY
Change-Id: I6a569810d47452012f597e412311066c33aec7bb
2024-07-16 12:31:52 -07:00
Stefan Andonian 9fb11f4d95 Merge "[Test Week] Move ListenableHostView into it's own class for ease of unit testing." into main 2024-07-16 18:51:55 +00:00
Fengjiang Li 6cd7630504 [Test Week] Move ViewCacheTest.kt to multivalentTests folder
Bug: 353303621
Test: This is the unit test
Flag: NONE - unit test
Change-Id: Ie969e9bffecf61bbcfd7b2132ef7a5df1d97cbed
2024-07-16 11:36:31 -07:00
Fengjiang Li 3f5e44e0cc [Test Week] Add ViewOnDrawExecutorTest
Number of new tested methods: 7

Bug: 353303621
Test: This is the unit test
Flag: NONE - unit test
Change-Id: Ic89984fac515924cf9a16ebc6fc7028325bed386
2024-07-16 11:32:54 -07:00
Brian Isganitis 984d782024 Merge changes from topic "taskbar-pinning-preference-rule-fixes" into main
* changes:
  Add subrule for controlling an individual Taskbar preference.
  Taskbar Pinning Preference Rule fixes.
2024-07-16 18:05:33 +00:00
Liran Binyamin 0e1ae64920 Merge "Send the bubble removal timestamp to wm shell" into main 2024-07-16 18:04:43 +00:00
Treehugger Robot a255f15a9b [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev am: 666fec0c77 -s ours
am skip reason: contains skip directive

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

Change-Id: I1f2c9042a10f538e5da39a75ea29bfde7783a86e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-07-16 17:53:18 +00:00
Bill Yi 833672b657 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 4f8678642b -s ours
am skip reason: contains skip directive

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

Change-Id: I3857d8704f5359b0a3c80246df9ad107cc8d9306
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-07-16 17:53:14 +00:00
Bill Yi 6af940b058 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 25da1d83d1 -s ours
am skip reason: contains skip directive

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

Change-Id: I1af0b6aafbb0663559c619e73b7cc12135f9f89c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-07-16 17:53:06 +00:00
Jagrut Desai 84151055b7 Add support for different container and space calculation logic.
This CL includes
	- Taskbar container enum class and interface for container to calculate their space needed.
        - Inits and getter of util classes in taksbar activity context.
        - Taskbar Icons specs not have default margins and minimum touch target specs
	- Updates to the test
        - Logic for calculating the space needed for taskbar container

Test: Presubmit
Bug: 341146605
Flag: com.android.launcher3.enable_taskbar_customization
Change-Id: I89e9d521476902a9027f6fd0cebdc2690b2e5f31
2024-07-16 10:48:51 -07:00
Treehugger Robot 666fec0c77 Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-07-16 17:36:04 +00:00
Treehugger Robot cd4d7f56cb Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-07-16 17:27:16 +00:00
Treehugger Robot d87c8cb2b2 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-07-16 17:27:16 +00:00
Stefan Andonian 487a21726d [Test Week] Move ListenableHostView into it's own class for ease of unit testing.
Bug: 353303621
Test: Verified with follow-up unit test CL.
Flag: EXEMPT unit test
Change-Id: Idfdaca0bee7f162f6e6ac60b1ddb53458603c227
2024-07-16 16:50:43 +00:00
Fengjiang Li f04eeb5eee Merge "[Test Week] Add ViewCacheTest" into main 2024-07-16 16:36:28 +00:00
Sihua Ma 5132315aee Merge "Add test for LauncherWidgetHolder" into main 2024-07-16 15:49:44 +00:00
Johannes Gallmann 93af1db6a3 Fix CUJ_LAUNCHER_APP_CLOSE_TO_HOME Cuj for predictive back to home
CUJ_LAUNCHER_APP_CLOSE_TO_HOME was broken because in the non-fallback case, the anim on which addCujInstrumentation was called on was empty.

Bug: 300078127
Flag: com.android.window.flags.predictive_back_system_anims
Test: Manual, i.e. verifying that CUJ_LAUNCHER_APP_CLOSE_TO_HOME shows up properly in perfetto trace with the fix applied in the predictive back case
Change-Id: I4a1130bd7c4622c057db054d829f662a16443799
2024-07-16 13:42:03 +02:00
Cosmin Băieș eccda9419d Update IME switcher icon in taskbar
This updates the icon of the IME switcher button used in taskbar.

Test: show taskbar and verify icon manually
Bug: 311791923
Flag: android.view.inputmethod.ime_switcher_revamp
Change-Id: I0288601717ab9d0f6842766df62599c51c5a2b4f
2024-07-16 10:26:35 +02:00
Riddle Hsu ebc6bf5014 Merge "Avoid changing transform when touching in progress" into main 2024-07-16 04:50:11 +00:00
Brian Isganitis d52e15b35a Add subrule for controlling an individual Taskbar preference.
Test: TaskbarPreferenceRuleTest, TaskbarPinningPreferenceRuleTest
Bug: 230027385
Flag: TEST_ONLY
Change-Id: I382c7e17a5739823c25fc8d64c981405af56e3e4
2024-07-15 22:39:27 -04:00
Brian Isganitis e3d3d653d1 Taskbar Pinning Preference Rule fixes.
- Actually evaluate statement in tests.
- Enable aconfig flag for taskbar pinning.
- Allow DisplayController Taskbar mode to change in test harness.
- Make DisplayController think it's in desktop mode when needed.

Flag: TEST_ONLY
Bug: 230027385
Test: TaskbarPinningPreferenceRuleTest

Change-Id: I1c55f73cb5a4bb903cd2d628fa47fbd5e8b1bb86
2024-07-15 22:34:01 -04:00
Fengjiang Li 7c8f90f04a [Test Week] Add ViewCacheTest
Number of new tested methods: 3

Bug: 353303621
Test: This is the unit test
Flag: NONE - unit test
Change-Id: I235ba375db12b9f3fac6f204018b32e692835eab
2024-07-15 16:51:10 -07:00
Android Build Coastguard Worker 56da939f0e Snap for 12091711 from 1a0406e1be to 24Q4-release
Change-Id: I53c5ce6f26d7b8e21b525c71b540cba469176ed8
2024-07-15 23:21:14 +00:00
Android Build Coastguard Worker bf4a7385c1 Merge cherrypicks of ['googleplex-android-review.googlesource.com/28255751'] into 24Q3-release.
Change-Id: I25c866ebe559df2c3a4eab38ff22d456f89471c0
2024-07-15 23:20:06 +00:00
Alex Chau 5fbc9a5d5d Perform state switch to Overview from -1 screen
- This fixed a regression caused by ag/27904180, where -1 is no longer considered `visibleLauncher`. -1 still have Launcher being top activity, and recents animation will always fail
- Added isInMinusOne in LauncherActivityInterface, and return Launcher in getVisibleLauncher for -1 case
- -1 should be the only case where Launcher is top activity, but is not started

Fix: 352254279
Test: Recents button from the following scenarios: Home, -1, apps, transparent apps, video from -1
Flag: EXEMPT bugfix
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:1cd3fe27f229da4f7bb80a2e04d1416cc050fc94)
Merged-In: I0898d202b9dd4742c0c7d2c0d6b340c748e8acf7
Change-Id: I0898d202b9dd4742c0c7d2c0d6b340c748e8acf7
2024-07-15 23:15:28 +00:00
Sihua Ma 7098ba260f Add test for LauncherWidgetHolder
Number of new tested methods: 8

Test: atest NexusLauncherRoboTests:LauncherWidgetHolderTest
Test: SysUI studio
Flag: TEST_ONLY
Bug: 353303621
Change-Id: I8751c8de8d719e567775368d988794b2d7abc37e
2024-07-15 22:51:04 +00:00
Bill Yi 25da1d83d1 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I57ee8549d4e1adfa45d23bdf0721055cf17fb619
2024-07-15 14:42:37 -07:00
Bill Yi e21b81fdeb Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: If667a4fdadf307506c44c894f4c52a849fc3f94a
2024-07-15 14:42:07 -07:00
Bill Yi 4f8678642b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: If32af03d3162501f90d9a829ecf4429df1a8f4dd
2024-07-15 14:41:11 -07:00
Bill Yi ed6b942cb8 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I52341b9a96ac15c3e27e6649b0b2fe47f1067e9b
2024-07-15 14:40:46 -07:00
Jagrut Desai dafd7f55ed Adding Skeleton Code for Customizable Taksbar
This cl includes
        - new skeleton xml view customizable taskbar view
        - new skeleton xml view for customizable taksbar container and a view class.
        - new taskbar all apps button view container class
        - pxFromDp util method introduction to launcher utilities

Test: Presubmit
Bug: 349885828
Bug: 349886203
Flag: com.android.launcher3.enable_taskbar_customization
Change-Id: Id83906ed0717da495c33275e52261153a1598074
2024-07-15 13:06:12 -07:00
Andrew Cole d798e6d1f9 Test Week - Deleting NexusTestInformationHandler
NexusTestInformationHandler only relied on one boolean switch that is not currently used so I am deleting it.

Bug: 353303621
Test: TAPL
Flag: TEST_ONLY
Change-Id: I6181d47561b318d1eb1bd632d4ae042e126cfdb9
2024-07-15 11:57:47 -07:00
Cosmin Băieș 1a0406e1be Merge "Add IME switch button long click support" into main 2024-07-15 18:06:02 +00:00
Treehugger Robot 72c4ebed6c Merge "Create scope for TTV attached to run collections that modify UI within." into main 2024-07-15 12:01:04 +00:00
Sam Cackett a94365b5af Merge "Maintain if any task has been dismissed in RecentsView state" into main 2024-07-15 10:46:10 +00:00
Uwais Ashraf f7093d445e Create scope for TTV attached to run collections that modify UI within.
Bug: 335396935
Test: Manual checking shows clear improvement of preformance problems
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Change-Id: I92aa4ce3edfe297cc5a177a2d93837d33cdfb548
2024-07-15 10:09:26 +00:00
Riddle Hsu cbc84d96ef Avoid changing transform when touching in progress
After swiping from a landscape app to portrait home, the touch
orientation may be changed if there the touch event comes in a
short time (e.g. click app icon immediately):
 DOWN
 MOVE...
 SimpleOrientationTouchTransformer#onDisplayInfoChanged
 MOVE... (start to transform with inconsistent orientation)
 UP

That could disturb the gesture detection:
OverviewInputConsumer#onMotionEvent
 > BaseDragLayer#proxyTouchEvent
  onInterceptTouchEvent, findControllerToHandleTouch
  > PortraitStatesTouchController#onControllerInterceptTouchEvent
   > BaseSwipeDetector#onTouchEvent
which may show the app drawer unexpectedly.

http://recall/-/b2qm27pJZxFIWQccA9qE9Q/ggLXlE5kf7AWMOjUc0FCUU

Bug: 351755391
Flag: EXEMPT bugfix
Test: atest NexusLauncherTests: \
            com.android.quickstep.OrientationTouchTransformerTest# \
            testSimpleOrientationTouchTransformer
Change-Id: Ic0e9d8292606837feb4775663abb60229c90e9c5
2024-07-15 16:41:42 +08:00
Android Build Coastguard Worker c5c7b54aea Snap for 12087303 from fd1cc12054 to 24Q4-release
Change-Id: I8afed76079002f67653d22a661c253667079c663
2024-07-14 21:21:12 +00:00
Android Build Coastguard Worker 44727a2e89 Snap for 12086619 from a531da0b85 to 24Q4-release
Change-Id: Iba8050e48b92d12e77a5a61fcedd9daa1da647d8
2024-07-13 21:21:12 +00:00