Commit Graph

3388 Commits

Author SHA1 Message Date
Uwais Ashraf
77b97c0729 Replace existing Robolectric test task with functioning one.
This CL does the following:
- Creates a dir for multivalentTests
- Creates symlinks for the dir to keep Android Studio happy
- Moves many files to the multivalentTests dir
- Adjusts gradle and soong build files to use the new dir as part of
their source sets.

Test: ./gradlew :NexusLauncher:testGoogleWithQuickstepDebugUnitTest
Test: atest Launcher3RoboTests
Fix: 316553886
Bug: 316553889
Flag: NA
Change-Id: Iae28fd0c0191b3ecf9bd2950800875950cca2622
2024-01-19 21:39:23 +00:00
Vadim Tryshev
82bf25b017 Merge "Adding TestStabiility so that demoting transitioningToUnlocked_resetCallsPendingRunnable from presubmit works" into main 2024-01-19 21:14:20 +00:00
Fengjiang Li
a6142fff95 Merge "Fix flaky ExecutorRunnableTest" into main 2024-01-19 21:05:23 +00:00
Fengjiang Li
8e2797c52e Fix flaky ExecutorRunnableTest
Use lock to pause/resume execution of Executor

Fix: 316588649
Test: Unit test
Flag: NONE
Change-Id: I5a3c5dece279c6bdaaba579754678108b4bf75b8
2024-01-19 11:44:17 -08:00
Vadim Tryshev
840a97d7ff Adding TestStabiility so that demoting transitioningToUnlocked_resetCallsPendingRunnable from presubmit works
Bug: 320703862
Test: presubmit
Flag: N/A
Change-Id: Ie0e49ffb4d1efabe1c79fac9342f186f15f8cf23
2024-01-19 18:28:05 +00:00
Vadim Tryshev
a3e2c59716 Merge "Demoting unstable transitioningToUnlocked_resetCallsPendingRunnable from presubmit" into main 2024-01-18 18:14:11 +00:00
Rohit Goyal
d16a574524 Merge "Add support for progress bar for archived apps in AllApps view." into main 2024-01-18 17:56:04 +00:00
Sunny Goyal
7c44333f0e Merge "Using WidgetInflater in loader task" into main 2024-01-17 19:21:31 +00:00
Vadim Tryshev
5952119e94 Demoting unstable transitioningToUnlocked_resetCallsPendingRunnable from presubmit
Bug: 320703862
Test: presubmit
Flag: N/A
Change-Id: Ic4de468540a02c316a60a30ae73fe2de7bf51933
2024-01-17 10:24:04 -08:00
Rohit Goyal
04fe042e83 Add support for progress bar for archived apps in AllApps view.
Working Video: https://drive.google.com/file/d/1-cSD63FQLmqyeTkUuXqcSsjb03m31ULO/view?usp=sharing

Test: TaplPromiseIconUiTest
Bug: 302115555
Bug: 317108448
Flag: ACONFIG com.android.launcher3.enable_support_for_archiving DEVELOPMENT
Change-Id: Iebaa338789430c5e0a004bd8b05bdbda87cd986e
2024-01-17 22:49:08 +05:30
Himanshu Gupta
7b1858cbf2 Merge "Adding suport for Private Space QsTile fulfillment." into main 2024-01-17 07:00:10 +00:00
Andy Wickham
fb97d92e9a Merge "Ensure "AppIconSelector" does not match folders." into main 2024-01-16 19:18:11 +00:00
Himanshu Gupta
ce495f13e3 Adding suport for Private Space QsTile fulfillment.
Adding logic to unlock private space and
scroll to the container after unlock event
is received by Launcher.

This change also moves pieces of Private Space
Animation to different classes, in order to make
it more robust.

Bug: 289024009
Test: atest PrivateProfileManagerTest
Flag: ACONFIG com.google.android.apps.nexuslauncher.inject_private_space_tile TEAMFOOD
Change-Id: Ica2fbc00ff3516ed5aca7fbbfc0bd2aa036a4cee
2024-01-15 18:43:27 +05:30
Sunny Goyal
d24d33925a Using WidgetInflater in loader task
This removes duplicate logic for widget inflation.
Since the widget inflation can now happen during loader,
the restore logging can also be moved completely to the loader

Bug: 318539160
Test: atest TaplBinderTests
Flag: None
Change-Id: If9f336e7bf49ee7df121d7d9852b674d98124895
2024-01-14 00:56:51 -08:00
Sebastián Franco
c52860263a Merge "Send pointer up input even if there is an exception" into main 2024-01-13 23:18:03 +00:00
Tony Wickham
dc566559d0 Merge "Improve Taskbar touchableRegion debuggability" into main 2024-01-13 01:38:18 +00:00
Andy Wickham
bfb7c269b0 Ensure "AppIconSelector" does not match folders.
Not sure if this is considered brittle, but at this moment, the
BubbleTextView used for folder labels is not focusable, while the
one used for app labels is focusable.

Also add package name to the context logs to help debug similar
test failures in the future.

Fix: 319194153
Test: atest android.platform.test.scenario.google.OpenAppMicrobenchmark$1#testOpen
Flag: NA
Change-Id: Ibf88afdd6d3ef03b75ea44910b485e7e74e348b0
2024-01-12 23:56:05 +00:00
Sebastian Franco
c6cb35d97e Send pointer up input even if there is an exception
Fix: 315525621
Test: atest TaplTestsQuickstep
Flag: NA
Change-Id: Ie0310ee8d4cf25435d752ed2b838ae79e7ce4a45
2024-01-12 13:23:50 -08:00
Sunny Goyal
6449a21062 Fixing some launcher model tests
> Removing static mocks and using Sandbox context instead
> Removing inheritence in LauncherModel and converting LauncherApps.Callbacks
  to a separate class. decMaker sometimes fails because of API changes in
  LauncherApps.Callbacks

Bug: 319877828
Test: atest LoaderTaskTest
Flag: N/A
Change-Id: If78b5d83595627a355b284f52d887d75fef53014
2024-01-12 12:30:52 -08:00
Vadim Tryshev
6cdb1de48d Merge "Making testAllAppsFromHome platinum" into main 2024-01-12 01:25:48 +00:00
Vadim Tryshev
bfbc121e5d Merge "Waiting for Normal state when closing search result by touching outside" into main 2024-01-11 21:43:19 +00:00
Vadim Tryshev
d586d054a2 Merge "Waiting for Normal state after pressing meta key in AllApps" into main 2024-01-11 21:43:06 +00:00
Vadim Tryshev
65b735beeb Merge "Waiting for Normal state when closing Overview by touching outside of first task" into main 2024-01-11 19:40:57 +00:00
Vadim Tryshev
04947de324 Merge "Re-promoting testDragToFolder to postsubmit" into main 2024-01-11 19:21:43 +00:00
Vadim Tryshev
a705fdf74f Waiting for Normal state when closing search result by touching outside
Bug: 313926097
Flag: N/A
Test: presubmit
Change-Id: I2e90105057de44fff96d6d0fd740f963465be57e
2024-01-10 18:57:13 -08:00
Vadim Tryshev
0a1c916f78 Merge "Waiting for Overview state when closing SelectModeButtons via Esc" into main 2024-01-10 18:02:08 +00:00
Vadim Tryshev
f2a31282da Merge "Waiting for Normal state when swiping from a popup to home" into main 2024-01-10 04:11:41 +00:00
Vadim Tryshev
07f4f9b9fd Merge "Waiting for Normal state when closing Overview by touch" into main 2024-01-10 00:16:04 +00:00
Vadim Tryshev
702324860d Waiting for Normal state after pressing meta key in AllApps
Bug: 313926097
Flag: N/A
Test: presubmit
Change-Id: I005183095833d7b0b8f9fa444af98932d3414ee4
2024-01-09 15:55:38 -08:00
Federico Baron
50af953c6b Merge "Add PreviewItemManager unit test to check if icons are themed when they shoudl be in folder previews" into main 2024-01-09 23:30:13 +00:00
Vadim Tryshev
ba09397f13 Waiting for Overview state when closing SelectModeButtons via Esc
Bug: 313926097
Flag: N/A
Test: presubmit
Change-Id: I56e203e8d886a294476495cdffdb9e1aa1aceb80
2024-01-09 14:28:23 -08:00
Vadim Tryshev
62cc718bcd Waiting for Normal state when closing Overview by touching outside of first task
Bug: 313926097
Flag: N/A
Test: presubmit
Change-Id: I99f54beaf94cb138eb7643e5652b88e846e81f3f
2024-01-09 14:24:15 -08:00
Vadim Tryshev
26be37622c Waiting for Normal state when closing Overview by touch
Bug: 313926097
Flag: N/A
Test: presubmit
Change-Id: Ic1ac5b3db012d1d8235d641a3f6db8a9506f777d
2024-01-09 14:15:50 -08:00
Vadim Tryshev
0df6404e6e Re-promoting testDragToFolder to postsubmit
Also fixing it. When tapping outside of the folder to close it, avoiding touching the gesture area.

Bug: 187761685, 233075289
Test: presubmit, abtd
Flag: N/A
Change-Id: I99ada9e3d681f93a6d079827f1d4c5451a562266
2024-01-09 21:38:52 +00:00
Vadim Tryshev
225bf58643 Merge "Waiting Launcher to stop after swiping to unstash taskbar" into main 2024-01-09 18:48:45 +00:00
Vadim Tryshev
132e6a64c9 Merge "Waiting for the state to settle after clear-all-tasks action" into main 2024-01-09 18:33:44 +00:00
Vadim Tryshev
8027324fee Merge "Waiting for Normal state after pressing Esc in AllApps" into main 2024-01-09 18:10:05 +00:00
Jordan Silva
07af3b06ac Merge "Update responsive grid spec cell size remainderSpace logic" into main 2024-01-09 12:52:10 +00:00
Uwais Ashraf
ee9089658d Merge "Hardcode ActionBar height to avoid changes while emulating" into main 2024-01-09 12:34:50 +00:00
Sunny Goyal
3c52d93131 Merge "Fixing broken build" into main 2024-01-08 23:48:52 +00:00
Jordan Silva
2de6a277b7 Update responsive grid spec cell size remainderSpace logic
Refactoring the cellSize spec of responsive grid to divide the remainder space in code instead of dividing by cols/rows in the spec definition. For example, instead of using 0.2 in the spec for 5x5 grid (1 / number of rows), it is going to use 1 (100% of the remainder space) and divide the percentage by the number of cols or rows in code.

Fix: 313621277
Flag: ACONFIG com.android.launcher3.enable_responsive_workspace TEAMFOOD
Test: NexusLauncherImageTests
Test: CalculatedWorkspaceSpecTest
Test: DeviceProfileDumpTest
Test: DeviceProfileAlternativeDisplaysDumpTest
Change-Id: Ifaec838ac9751562ecedc1fe39b966ee3d092de3
2024-01-08 19:40:01 -03:00
Vadim Tryshev
10ac692f9d Merge "Waiting for AllApps state when clicking Qsb" into main 2024-01-08 21:29:46 +00:00
Vadim Tryshev
0896b68cb5 Merge "Removing dependency of All Apps test from 1P apps" into main 2024-01-08 20:39:45 +00:00
Sunny Goyal
87ad18b667 Fixing broken build
Bug: 319078785
Test: atest TaplPromiseIconUiTest
Flag: N/A
Change-Id: Ie8a11c4928f4b33a631de951e7cc62b5511e2e98
2024-01-08 09:04:10 -08:00
Uwais Ashraf
aa9e98b5d7 Hardcode ActionBar height to avoid changes while emulating
Test: Presubmits passing
Bug: 284210693
Flag: NA
Change-Id: If3fdb74703f57bfc5c7afbb38caa2acd5b7bd189
2024-01-08 14:53:23 +00:00
Vadim Tryshev
38d395be3e Removing dependency of All Apps test from 1P apps
Test: presubmit
Flag: N/A
Bug: 187761685
Change-Id: I8b3894a383416cea08c56c8874e6974323ffdc3a
2024-01-05 19:02:30 -08:00
Brandon Dayauon
8b35defbaf Merge "Fix right-bottom corner edge to curve in PS container." into main 2024-01-06 01:20:04 +00:00
Tony Wickham
762f8151f6 Improve Taskbar touchableRegion debuggability
- Add DebugTouchableRegion which includes the last region that we
  set as well as the reason (code path) for it, which we dump.
- If persist.debug.draw_taskbar_debug_ui is enabled, we will also
  outline the touchable region on the screen.

Flag: None
Test: testThreeButtonsTaskbarBoundsAfterConfigChangeDuringIme
Bug: 315393203

Change-Id: I70b37e8b8804c4a48ffe3956d2a24aa5eab452fd
2024-01-06 00:42:08 +00:00
fbaron
0f2ca91b8b Add PreviewItemManager unit test to check if icons are themed when they shoudl be in folder previews
Fix: 317417863
Test: PreviewItemManagerTest
Flag: NONE
Change-Id: I067a8d9d2ef4890e816d44ee62f7f5c1119cdd83
2024-01-05 16:01:58 -08:00
Jagrut Desai
ec88372892 Merge "Fixing com.android.launcher3.ui.widget.TaplAddWidgetTest#testDragIcon" into main 2024-01-05 23:34:27 +00:00