Home
last modified time | relevance | path

Searched refs:TestUtil (Results 1 – 25 of 53) sorted by relevance

123

/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DModelMultiCallbacksTest.java42 import com.android.launcher3.util.TestUtil;
73 TestUtil.uninstallDummyApp(); in tearDown()
119 TestUtil.uninstallDummyApp(); in testTwoCallbacks_receiveUpdates()
133 TestUtil.installDummyApp(); in testTwoCallbacks_receiveUpdates()
134 getCallbacks().onPackageAdded(TestUtil.DUMMY_PACKAGE, Process.myUserHandle()); in testTwoCallbacks_receiveUpdates()
136 assertTrue(cb1.allApps().contains(TestUtil.DUMMY_PACKAGE)); in testTwoCallbacks_receiveUpdates()
137 assertTrue(cb2.allApps().contains(TestUtil.DUMMY_PACKAGE)); in testTwoCallbacks_receiveUpdates()
140 TestUtil.uninstallDummyApp(); in testTwoCallbacks_receiveUpdates()
141 getCallbacks().onPackageRemoved(TestUtil.DUMMY_PACKAGE, Process.myUserHandle()); in testTwoCallbacks_receiveUpdates()
143 assertFalse(cb1.allApps().contains(TestUtil.DUMMY_PACKAGE)); in testTwoCallbacks_receiveUpdates()
[all …]
DFolderIconLoadTest.kt26 import com.android.launcher3.util.TestUtil
68 TestUtil.uninstallDummyApp() in tearDown()
150 TestUtil.runOnExecutorSync(Executors.MODEL_EXECUTOR) { cache.clearMemoryCache() } in setupAndLoadFolder()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/
DModelTestExtensions.kt31 TestUtil.runOnExecutorSync(Executors.MODEL_EXECUTOR) { in <lambda>()
39 TestUtil.runOnExecutorSync(Executors.MAIN_EXECUTOR) { forceReload() } in <lambda>()
46 TestUtil.runOnExecutorSync(Executors.MAIN_EXECUTOR) { addCallbacksAndLoad(mockCb) } in <lambda>()
47 TestUtil.runOnExecutorSync(Executors.MODEL_EXECUTOR) {} in <lambda>()
48 TestUtil.runOnExecutorSync(Executors.MAIN_EXECUTOR) {} in <lambda>()
49 TestUtil.runOnExecutorSync(Executors.MAIN_EXECUTOR) { removeCallbacks(mockCb) } in <lambda>()
73 TestUtil.runOnExecutorSync(Executors.MODEL_EXECUTOR) { in <lambda>()
/packages/apps/Launcher3/tests/src/com/android/launcher3/dragging/
DTaplUninstallRemoveTest.java40 import com.android.launcher3.util.TestUtil;
81 TestUtil.installDummyApp(); in installDummyAppAndWaitForUIUpdate()
108 TestUtil.uninstallDummyApp(); in testUninstallFromWorkspace()
126 TestUtil.uninstallDummyApp(); in testUninstallFromAllApps()
137 Point[] gridPositions = TestUtil.getCornersAndCenterPositions(mLauncher); in uninstallWorkspaceIcon()
171 TestUtil.uninstallDummyApp(); in uninstallWorkspaceIcon()
DTaplDragTest.java43 import com.android.launcher3.util.TestUtil;
150 Point[] targets = TestUtil.getCornersAndCenterPositions(mLauncher); in testDragShortcutToMultipleWorkspaceCells()
225 Point[] targets = TestUtil.getCornersAndCenterPositions(mLauncher); in testDragAppIconToMultipleWorkspaceCells()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
DBugleServiceTestCase.java23 import com.android.messaging.TestUtil;
44 TestUtil.testSetup(getContext(), this); in setUp()
50 TestUtil.testTeardown(this); in tearDown()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/
DBugleActivityInstrumentationTestCase.java22 import com.android.messaging.TestUtil;
44 TestUtil.testSetup(getInstrumentation().getTargetContext(), this); in setUp()
50 TestUtil.testTeardown(this); in tearDown()
DBugleActivityUnitTestCase.java23 import com.android.messaging.TestUtil;
44 TestUtil.testSetup(getInstrumentation().getTargetContext(), this); in setUp()
53 TestUtil.testTeardown(this); in tearDown()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DTaplPrivateSpaceTest.java34 import com.android.launcher3.util.TestUtil;
124 TestUtil.uninstallDummyApp(); in testUserInstalledAppIsShownAboveDivider()
126 TestUtil.installDummyAppForUser(mProfileUserId); in testUserInstalledAppIsShownAboveDivider()
149 TestUtil.uninstallDummyApp(); in testPrivateSpaceAppLongPressUninstallMenu()
151 TestUtil.installDummyAppForUser(mProfileUserId); in testPrivateSpaceAppLongPressUninstallMenu()
DAbstractTaplTestsTaskbar.java30 import com.android.launcher3.util.TestUtil;
56 mLauncherLayout = TestUtil.setLauncherDefaultLayout(mTargetContext, layoutBuilder); in setUp()
/packages/modules/AdServices/adservices/tests/jetpack/src/com/android/adservices/appsetid/
DAppSetIdManagerJetpackTest.java29 import com.android.adservices.TestUtil;
38 TestUtil mTestUtil = new TestUtil(InstrumentationRegistry.getInstrumentation(), TAG);
/packages/modules/AdServices/adservices/tests/jetpack/src/com/android/adservices/adid/
DAdIdManagerJetpackTest.java29 import com.android.adservices.TestUtil;
38 private TestUtil mTestUtil = new TestUtil(InstrumentationRegistry.getInstrumentation(), TAG);
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/
DAllAppsActionManagerTest.kt24 import com.android.launcher3.util.TestUtil
67 TestUtil.runOnExecutorSync(bgExecutor) {} // Force system action to unregister. in toggleTaskbar_destroyedAfterActionRegistered_actionUnregistered()
76 TestUtil.runOnExecutorSync(bgExecutor) {} // Force system action to unregister. in toggleTaskbar_destroyedBeforeActionRegistered_pendingActionUnregistered()
/packages/apps/Messaging/tests/src/com/android/messaging/
DBugleTestCase.java40 TestUtil.testSetup(super.getContext(), this); in setUp()
46 TestUtil.testTeardown(this); in tearDown()
/packages/modules/AdServices/adservices/tests/jetpack/src/com/android/adservices/topics/
DTopicsManagerJetpackTest.java31 import com.android.adservices.TestUtil;
43 TestUtil mTestUtil = new TestUtil(InstrumentationRegistry.getInstrumentation(), TAG);
/packages/apps/Camera2/tests/src/com/android/camera/stress/
DTestUtil.java27 public class TestUtil { class
31 public TestUtil() { in TestUtil() method in TestUtil
DVideoCapture.java47 private TestUtil testUtil = new TestUtil();
DImageCapture.java44 private TestUtil testUtil = new TestUtil();
/packages/apps/LegacyCamera/tests/src/com/android/camera/stress/
DTestUtil.java27 public class TestUtil { class
31 public TestUtil() { in TestUtil() method in TestUtil
DVideoCapture.java49 private TestUtil testUtil = new TestUtil();
/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/
DTestUtil.java27 public class TestUtil { class
28 private static String TAG = TestUtil.class.getSimpleName();
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DOsuNetworkConnectionTest.java51 import com.android.server.wifi.TestUtil;
148 TestUtil.sendWifiStateChanged(broadcastReceiver, mContext, in verifyWifiStateCallbacks()
150 TestUtil.sendWifiStateChanged(broadcastReceiver, mContext, in verifyWifiStateCallbacks()
153 TestUtil.sendWifiStateChanged(broadcastReceiver, mContext, in verifyWifiStateCallbacks()
155 TestUtil.sendWifiStateChanged(broadcastReceiver, mContext, in verifyWifiStateCallbacks()
/packages/apps/Launcher3/tests/src/com/android/launcher3/compat/
DTaplPromiseIconUiTest.java38 import com.android.launcher3.util.TestUtil;
81 TestUtil.uninstallDummyApp(); in tearDown()
171 TestUtil.installDummyApp(); in installDummyAppAndWaitForUIUpdate()
/packages/apps/Launcher3/tests/src/com/android/launcher3/backuprestore/
DBackupAndRestoreDBSelectionTest.kt27 import com.android.launcher3.util.TestUtil
58 TestUtil.runOnExecutorSync(MODEL_EXECUTOR) { in oldDatabasesNotPresentAfterRestore()
/packages/modules/AdServices/adservices/tests/jetpack/src/com/android/adservices/measurement/
DMeasurementManagerJetpackTest.java35 import com.android.adservices.TestUtil;
48 TestUtil mTestUtil = new TestUtil(InstrumentationRegistry.getInstrumentation(), TAG);

123