Loading quickstep/tests/src/com/android/quickstep/TaplViewInflationDuringSwipeUp.java +3 −5 Original line number Diff line number Diff line Loading @@ -190,16 +190,14 @@ public class TaplViewInflationDuringSwipeUp extends AbstractQuickStepTest { info.spanX = 2; info.spanY = 2; AtomicInteger widgetId = new AtomicInteger(); new FavoriteItemsTransaction(mTargetContext) commitTransactionAndLoadHome(new FavoriteItemsTransaction(mTargetContext) .addItem(() -> { LauncherAppWidgetInfo item = createWidgetInfo(info, mTargetContext, true); item.screenId = FIRST_SCREEN_ID; widgetId.set(item.appWidgetId); return item; }) .commitAndLoadHome(mLauncher); })); assertTrue("Widget is not present", mLauncher.goHome().tryGetWidget(info.label, DEFAULT_UI_TIMEOUT) != null); Loading tests/Android.bp +1 −47 Original line number Diff line number Diff line Loading @@ -40,32 +40,6 @@ filegroup { ], } // Source code used for screenshot tests filegroup { name: "launcher-image-tests-helpers", srcs: [ "src/com/android/launcher3/celllayout/board/*.java", "src/com/android/launcher3/celllayout/board/*.kt", "src/com/android/launcher3/celllayout/FavoriteItemsTransaction.java", "src/com/android/launcher3/ui/AbstractLauncherUiTest.java", "src/com/android/launcher3/ui/PortraitLandscapeRunner.java", "src/com/android/launcher3/ui/TestViewHelpers.java", "multivalentTests/src/com/android/launcher3/util/LauncherLayoutBuilder.java", "src/com/android/launcher3/util/ModelTestExtensions.kt", "src/com/android/launcher3/util/TestConstants.java", "multivalentTests/src/com/android/launcher3/util/TestUtil.java", "src/com/android/launcher3/util/Wait.java", "multivalentTests/src/com/android/launcher3/util/WidgetUtils.java", "src/com/android/launcher3/util/rule/*.java", "src/com/android/launcher3/util/rule/*.kt", "multivalentTests/src/com/android/launcher3/util/rule/*.java", "multivalentTests/src/com/android/launcher3/util/rule/*.kt", "src/com/android/launcher3/util/viewcapture_analysis/*.java", "src/com/android/launcher3/testcomponent/*.java", "src/com/android/launcher3/testcomponent/*.kt", ], } // Source code used for non-quickstep tests filegroup { name: "launcher-non-quickstep-tests-src", Loading @@ -79,35 +53,15 @@ filegroup { filegroup { name: "launcher-oop-tests-src", srcs: [ ":launcher-testing-helpers", "src/com/android/launcher3/allapps/TaplOpenCloseAllAppsTest.java", "src/com/android/launcher3/allapps/TaplAllAppsIconsWorkingTest.java", "src/com/android/launcher3/appiconmenu/TaplAppIconMenuTest.java", "src/com/android/launcher3/dragging/TaplDragTest.java", "src/com/android/launcher3/dragging/TaplUninstallRemoveTest.java", "src/com/android/launcher3/ui/AbstractLauncherUiTest.java", "src/com/android/launcher3/ui/PortraitLandscapeRunner.java", "src/com/android/launcher3/ui/TaplTestsLauncher3Test.java", "src/com/android/launcher3/ui/widget/TaplWidgetPickerTest.java", "src/com/android/launcher3/ui/workspace/TaplWorkspaceTest.java", "multivalentTests/src/com/android/launcher3/util/LauncherLayoutBuilder.java", "src/com/android/launcher3/util/TestConstants.java", "multivalentTests/src/com/android/launcher3/util/TestUtil.java", "src/com/android/launcher3/util/Wait.java", "multivalentTests/src/com/android/launcher3/util/WidgetUtils.java", "src/com/android/launcher3/util/rule/FailureWatcher.java", "src/com/android/launcher3/util/rule/ViewCaptureRule.kt", "src/com/android/launcher3/util/rule/SamplerRule.java", "src/com/android/launcher3/util/rule/ScreenRecordRule.java", "src/com/android/launcher3/util/rule/ShellCommandRule.java", "src/com/android/launcher3/util/rule/TestIsolationRule.java", "multivalentTests/src/com/android/launcher3/util/rule/TestStabilityRule.java", "src/com/android/launcher3/util/viewcapture_analysis/*.java", "src/com/android/launcher3/testcomponent/BaseTestingActivity.java", "src/com/android/launcher3/testcomponent/OtherBaseTestingActivity.java", "src/com/android/launcher3/testcomponent/CustomShortcutConfigActivity.java", "src/com/android/launcher3/testcomponent/TestCommandReceiver.java", "src/com/android/launcher3/testcomponent/TestLauncherActivity.java", "src/com/android/launcher3/testcomponent/ImeTestActivity.java", ], } Loading tests/src/com/android/launcher3/celllayout/FavoriteItemsTransaction.java→tests/multivalentTests/src/com/android/launcher3/celllayout/FavoriteItemsTransaction.java +0 −16 Original line number Diff line number Diff line Loading @@ -15,8 +15,6 @@ */ package com.android.launcher3.celllayout; import static androidx.test.platform.app.InstrumentationRegistry.getInstrumentation; import static com.android.launcher3.LauncherSettings.Favorites.TABLE_NAME; import static com.android.launcher3.util.Executors.MAIN_EXECUTOR; import static com.android.launcher3.util.Executors.MODEL_EXECUTOR; Loading @@ -24,8 +22,6 @@ import static com.android.launcher3.util.TestUtil.runOnExecutorSync; import android.content.Context; import androidx.test.uiautomator.UiDevice; import com.android.launcher3.LauncherAppState; import com.android.launcher3.LauncherModel; import com.android.launcher3.LauncherSettings; Loading @@ -33,7 +29,6 @@ import com.android.launcher3.model.ModelDbController; import com.android.launcher3.model.data.FolderInfo; import com.android.launcher3.model.data.ItemInfo; import com.android.launcher3.provider.LauncherDbUtils.SQLiteTransaction; import com.android.launcher3.tapl.LauncherInstrumentation; import com.android.launcher3.util.ContentWriter; import com.android.launcher3.util.ModelTestExtensions; Loading Loading @@ -106,15 +101,4 @@ public class FavoriteItemsTransaction { runOnExecutorSync(MAIN_EXECUTOR, model::forceReload); ModelTestExtensions.INSTANCE.loadModelSync(model); } /** * Commits the transaction and waits for home load */ public void commitAndLoadHome(LauncherInstrumentation inst) { commit(); // Launch the home activity UiDevice.getInstance(getInstrumentation()).pressHome(); inst.waitForLauncherInitialized(); } } tests/src/com/android/launcher3/celllayout/board/CellLayoutBoard.java→tests/multivalentTests/src/com/android/launcher3/celllayout/board/CellLayoutBoard.java +0 −0 File moved. View file tests/src/com/android/launcher3/celllayout/board/CellType.java→tests/multivalentTests/src/com/android/launcher3/celllayout/board/CellType.java +0 −0 File moved. View file Loading
quickstep/tests/src/com/android/quickstep/TaplViewInflationDuringSwipeUp.java +3 −5 Original line number Diff line number Diff line Loading @@ -190,16 +190,14 @@ public class TaplViewInflationDuringSwipeUp extends AbstractQuickStepTest { info.spanX = 2; info.spanY = 2; AtomicInteger widgetId = new AtomicInteger(); new FavoriteItemsTransaction(mTargetContext) commitTransactionAndLoadHome(new FavoriteItemsTransaction(mTargetContext) .addItem(() -> { LauncherAppWidgetInfo item = createWidgetInfo(info, mTargetContext, true); item.screenId = FIRST_SCREEN_ID; widgetId.set(item.appWidgetId); return item; }) .commitAndLoadHome(mLauncher); })); assertTrue("Widget is not present", mLauncher.goHome().tryGetWidget(info.label, DEFAULT_UI_TIMEOUT) != null); Loading
tests/Android.bp +1 −47 Original line number Diff line number Diff line Loading @@ -40,32 +40,6 @@ filegroup { ], } // Source code used for screenshot tests filegroup { name: "launcher-image-tests-helpers", srcs: [ "src/com/android/launcher3/celllayout/board/*.java", "src/com/android/launcher3/celllayout/board/*.kt", "src/com/android/launcher3/celllayout/FavoriteItemsTransaction.java", "src/com/android/launcher3/ui/AbstractLauncherUiTest.java", "src/com/android/launcher3/ui/PortraitLandscapeRunner.java", "src/com/android/launcher3/ui/TestViewHelpers.java", "multivalentTests/src/com/android/launcher3/util/LauncherLayoutBuilder.java", "src/com/android/launcher3/util/ModelTestExtensions.kt", "src/com/android/launcher3/util/TestConstants.java", "multivalentTests/src/com/android/launcher3/util/TestUtil.java", "src/com/android/launcher3/util/Wait.java", "multivalentTests/src/com/android/launcher3/util/WidgetUtils.java", "src/com/android/launcher3/util/rule/*.java", "src/com/android/launcher3/util/rule/*.kt", "multivalentTests/src/com/android/launcher3/util/rule/*.java", "multivalentTests/src/com/android/launcher3/util/rule/*.kt", "src/com/android/launcher3/util/viewcapture_analysis/*.java", "src/com/android/launcher3/testcomponent/*.java", "src/com/android/launcher3/testcomponent/*.kt", ], } // Source code used for non-quickstep tests filegroup { name: "launcher-non-quickstep-tests-src", Loading @@ -79,35 +53,15 @@ filegroup { filegroup { name: "launcher-oop-tests-src", srcs: [ ":launcher-testing-helpers", "src/com/android/launcher3/allapps/TaplOpenCloseAllAppsTest.java", "src/com/android/launcher3/allapps/TaplAllAppsIconsWorkingTest.java", "src/com/android/launcher3/appiconmenu/TaplAppIconMenuTest.java", "src/com/android/launcher3/dragging/TaplDragTest.java", "src/com/android/launcher3/dragging/TaplUninstallRemoveTest.java", "src/com/android/launcher3/ui/AbstractLauncherUiTest.java", "src/com/android/launcher3/ui/PortraitLandscapeRunner.java", "src/com/android/launcher3/ui/TaplTestsLauncher3Test.java", "src/com/android/launcher3/ui/widget/TaplWidgetPickerTest.java", "src/com/android/launcher3/ui/workspace/TaplWorkspaceTest.java", "multivalentTests/src/com/android/launcher3/util/LauncherLayoutBuilder.java", "src/com/android/launcher3/util/TestConstants.java", "multivalentTests/src/com/android/launcher3/util/TestUtil.java", "src/com/android/launcher3/util/Wait.java", "multivalentTests/src/com/android/launcher3/util/WidgetUtils.java", "src/com/android/launcher3/util/rule/FailureWatcher.java", "src/com/android/launcher3/util/rule/ViewCaptureRule.kt", "src/com/android/launcher3/util/rule/SamplerRule.java", "src/com/android/launcher3/util/rule/ScreenRecordRule.java", "src/com/android/launcher3/util/rule/ShellCommandRule.java", "src/com/android/launcher3/util/rule/TestIsolationRule.java", "multivalentTests/src/com/android/launcher3/util/rule/TestStabilityRule.java", "src/com/android/launcher3/util/viewcapture_analysis/*.java", "src/com/android/launcher3/testcomponent/BaseTestingActivity.java", "src/com/android/launcher3/testcomponent/OtherBaseTestingActivity.java", "src/com/android/launcher3/testcomponent/CustomShortcutConfigActivity.java", "src/com/android/launcher3/testcomponent/TestCommandReceiver.java", "src/com/android/launcher3/testcomponent/TestLauncherActivity.java", "src/com/android/launcher3/testcomponent/ImeTestActivity.java", ], } Loading
tests/src/com/android/launcher3/celllayout/FavoriteItemsTransaction.java→tests/multivalentTests/src/com/android/launcher3/celllayout/FavoriteItemsTransaction.java +0 −16 Original line number Diff line number Diff line Loading @@ -15,8 +15,6 @@ */ package com.android.launcher3.celllayout; import static androidx.test.platform.app.InstrumentationRegistry.getInstrumentation; import static com.android.launcher3.LauncherSettings.Favorites.TABLE_NAME; import static com.android.launcher3.util.Executors.MAIN_EXECUTOR; import static com.android.launcher3.util.Executors.MODEL_EXECUTOR; Loading @@ -24,8 +22,6 @@ import static com.android.launcher3.util.TestUtil.runOnExecutorSync; import android.content.Context; import androidx.test.uiautomator.UiDevice; import com.android.launcher3.LauncherAppState; import com.android.launcher3.LauncherModel; import com.android.launcher3.LauncherSettings; Loading @@ -33,7 +29,6 @@ import com.android.launcher3.model.ModelDbController; import com.android.launcher3.model.data.FolderInfo; import com.android.launcher3.model.data.ItemInfo; import com.android.launcher3.provider.LauncherDbUtils.SQLiteTransaction; import com.android.launcher3.tapl.LauncherInstrumentation; import com.android.launcher3.util.ContentWriter; import com.android.launcher3.util.ModelTestExtensions; Loading Loading @@ -106,15 +101,4 @@ public class FavoriteItemsTransaction { runOnExecutorSync(MAIN_EXECUTOR, model::forceReload); ModelTestExtensions.INSTANCE.loadModelSync(model); } /** * Commits the transaction and waits for home load */ public void commitAndLoadHome(LauncherInstrumentation inst) { commit(); // Launch the home activity UiDevice.getInstance(getInstrumentation()).pressHome(); inst.waitForLauncherInitialized(); } }
tests/src/com/android/launcher3/celllayout/board/CellLayoutBoard.java→tests/multivalentTests/src/com/android/launcher3/celllayout/board/CellLayoutBoard.java +0 −0 File moved. View file
tests/src/com/android/launcher3/celllayout/board/CellType.java→tests/multivalentTests/src/com/android/launcher3/celllayout/board/CellType.java +0 −0 File moved. View file