Home
last modified time | relevance | path

Searched refs:runTest (Results 1 – 25 of 43) sorted by relevance

12

/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/customization/ui/viewmodel/
DCustomizationPickerViewModelTest.kt30 import kotlinx.coroutines.test.runTest
68 testScope.runTest { in initial tab is lock screen()
80 testScope.runTest { in setInitialScreen - home screen()
94 testScope.runTest { in setInitialScreen - home screen - but lock screen already selected from before()
114 testScope.runTest { in switching to the home screen()
128 testScope.runTest { in switching to the home screen and back to the lock screen()
143 testScope.runTest { in restores saved state()
DWallpaperQuickSwitchViewModelTest.kt35 import kotlinx.coroutines.test.runTest in <lambda>()
83 testScope.runTest { in <lambda>()
93 testScope.runTest { in <lambda>()
124 testScope.runTest { in <lambda>()
156 testScope.runTest { in <lambda>()
/packages/apps/ThemePicker/tests/src/com/android/customization/picker/clock/ui/viewmodel/
DClockCarouselViewModelTest.kt29 import kotlinx.coroutines.test.runTest
69 fun setSelectedClock() = runTest { in <lambda>()
78 fun setShouldShowCarousel() = runTest { in <lambda>()
89 fun shouldNotShowCarouselWhenSingleClock() = runTest { in <lambda>()
100 fun setShouldShowSingleClock() = runTest { in <lambda>()
111 fun shouldNotShowSingleClockWhenMultipleClocks() = runTest { in <lambda>()
DClockSettingsViewModelTest.kt22 import kotlinx.coroutines.test.runTest
70 fun clickOnColorSettingsTab() = runTest { in <lambda>()
83 fun setSelectedColor() = runTest { in <lambda>()
116 fun setColorTone() = runTest { in setColorTone()
148 fun setClockSize() = runTest { in <lambda>()
/packages/apps/ThemePicker/tests/src/com/android/customization/model/themedicon/domain/interactor/
DThemedIconSnapshotRestorerTest.kt25 import kotlinx.coroutines.test.runTest
54 fun `set up and restore - active`() = runTest { in <lambda>()
66 fun `set up and restore - inactive`() = runTest { in <lambda>()
78 fun `set up - deactivate - restore to active`() = runTest { in <lambda>()
91 fun `set up - activate - restore to inactive`() = runTest { in <lambda>()
/packages/apps/ThemePicker/tests/src/com/android/customization/model/mode/
DDarkModeSnapshotRestorerTest.kt26 import kotlinx.coroutines.test.runTest
56 testScope.runTest { in set up and restore - active()
69 testScope.runTest { in set up and restore - inactive()
82 testScope.runTest { in set up - deactivate - restore to active()
96 testScope.runTest { in set up - activate - restore to inactive()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DTestNetworkRunnable.java59 private void runTest() throws Exception { in runTest() method in TestNetworkRunnable
86 mTest.runTest(testIface, tunNetworkCallback); in runTest()
112 runTest(); in run()
114 runWithShellPermissionIdentity(this::runTest, MANAGE_TEST_NETWORKS); in run()
121 void runTest(TestNetworkInterface testIface, TestNetworkCallback tunNetworkCallback) in runTest() method
/packages/modules/Bluetooth/system/packet/tests/avrcp/
Dget_element_attributes_packet_test.cc129 EXPECT_NO_FATAL_FAILURE(helper.runTest(test_data, mtu, false, false)); in TEST()
132 EXPECT_NO_FATAL_FAILURE(helper.runTest(test_data, mtu)); in TEST()
135 EXPECT_NO_FATAL_FAILURE(helper.runTest(test_data, mtu)); in TEST()
138 EXPECT_NO_FATAL_FAILURE(helper.runTest(test_data, mtu, true, false)); in TEST()
141 EXPECT_NO_FATAL_FAILURE(helper.runTest(test_data, mtu)); in TEST()
144 EXPECT_NO_FATAL_FAILURE(helper.runTest(test_data, mtu, false, false)); in TEST()
Dget_item_attributes_packet_test.cc154 EXPECT_NO_FATAL_FAILURE(helper.runTest(test_data, mtu, false, false)); in TEST()
157 EXPECT_NO_FATAL_FAILURE(helper.runTest(test_data, mtu)); in TEST()
160 EXPECT_NO_FATAL_FAILURE(helper.runTest(test_data, mtu)); in TEST()
163 EXPECT_NO_FATAL_FAILURE(helper.runTest(test_data, mtu, true, false)); in TEST()
166 EXPECT_NO_FATAL_FAILURE(helper.runTest(test_data, mtu)); in TEST()
169 EXPECT_NO_FATAL_FAILURE(helper.runTest(test_data, mtu, false, false)); in TEST()
/packages/apps/ThemePicker/tests/src/com/android/customization/model/picker/quickaffordance/ui/viewmodel/
DKeyguardQuickAffordancePickerViewModelTest.kt50 import kotlinx.coroutines.test.runTest in <lambda>()
114 testScope.runTest { in <lambda>()
196 testScope.runTest { in <lambda>()
232 testScope.runTest { in <lambda>()
278 testScope.runTest { in <lambda>()
302 testScope.runTest { in <lambda>()
331 testScope.runTest { in <lambda>()
351 testScope.runTest { in <lambda>()
374 testScope.runTest { in <lambda>()
/packages/apps/ThemePicker/tests/src/com/android/customization/model/grid/domain/interactor/
DGridInteractorTest.kt30 import kotlinx.coroutines.test.runTest in <lambda>()
76 testScope.runTest { in <lambda>()
103 testScope.runTest { in <lambda>()
121 testScope.runTest { in <lambda>()
141 testScope.runTest { in <lambda>()
DGridSnapshotRestorerTest.kt28 import kotlinx.coroutines.test.runTest in <lambda>()
66 testScope.runTest { in <lambda>()
85 testScope.runTest { in <lambda>()
/packages/apps/ThemePicker/tests/src/com/android/customization/picker/clock/domain/interactor/
DClockPickerInteractorTest.kt12 import kotlinx.coroutines.test.runTest
40 fun setSelectedClock() = runTest { in <lambda>()
48 fun setClockSize() = runTest { in <lambda>()
58 fun setColor() = runTest { in <lambda>()
/packages/modules/IntentResolver/java/tests/src/com/android/intentresolver/
DImagePreviewImageLoaderTest.kt30 import kotlinx.coroutines.test.runTest
73 fun test_prePopulate() = runTest { in <lambda>()
84 fun test_invoke_return_cached_image() = runTest { in <lambda>()
92 fun test_invoke_old_records_evicted_from_the_cache() = runTest { in <lambda>()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DRequestPinItemTest.java88 runTest("pinWidgetNoConfig", true, (info, view) -> info instanceof LauncherAppWidgetInfo && in testPinWidgetNoConfig()
102 runTest("pinWidgetNoConfig", true, (info, view) -> info instanceof LauncherAppWidgetInfo && in testPinWidgetNoConfig_customPreview()
111 runTest("pinWidgetWithConfig", true, in testPinWidgetWithConfig()
125 runTest("pinShortcut", false, new ItemOperator() { in testPinShortcut()
135 private void runTest(String activityMethod, boolean isWidget, ItemOperator itemMatcher, in runTest() method in RequestPinItemTest
DAddConfigWidgetTest.java70 runTest(true); in testWidgetConfig()
76 runTest(false); in testConfigCancelled()
83 private void runTest(boolean acceptConfig) throws Throwable { in runTest() method in AddConfigWidgetTest
/packages/apps/RemoteProvisioner/tests/hosttest/src/com/android/remoteprovisioner/hosttest/
DRemoteProvisionerWidevineTests.java37 private void runTest(String testClassName, String testMethodName) throws Exception { in runTest() method in RemoteProvisionerWidevineTests
44 runTest("WidevineTest", "testIfProvisioningNeededIsConsistentWithSystemStatus"); in testIfProvisioningNeededIsConsistentWithSystemStatus()
50 runTest("WidevineTest", "testProvisionWidevine"); in testWipeAndReprovisionCert()
DRemoteProvisionerStatsTests.java82 runTest("ServerToSystemTest", "testGenerateKeyRkpOnly"); in testGenerateKeyRkpOnly()
150 runTest("ServerToSystemTest", "testDataBudgetEmptyCallGenerateRkpKeyService"); in testDataBudgetEmptyCallGenerateRkpKeyService()
184 runTest("ServerToSystemTest", "testRetryableRkpError"); in testRetryableRkpError()
219 runTest("ServerToSystemTest", "testRetryNeverWhenDeviceNotRegistered"); in testRetryNeverWhenDeviceNotRegistered()
254 runTest("ServerToSystemTest", "testRetryWithoutNetworkTee"); in testRetryWithoutNetworkTee()
289 runTest("ServerToSystemTest", "testPeriodicProvisionerRoundTrip"); in testPeriodicProvisionerRoundTrip()
327 runTest("ServerToSystemTest", "testPeriodicProvisionerNoop"); in testPeriodicProvisionerNoop()
369 runTest("ServerToSystemTest", "testPeriodicProvisionerDataBudgetEmpty"); in testPeriodicProvisionerDataBudgetEmpty()
404 runTest("ServerToSystemTest", "testPeriodicProvisionerProvisioningDisabled"); in testPeriodicProvisionerProvisioningDisabled()
437 private void runTest(String testClassName, String testMethodName) throws Exception { in runTest() method in RemoteProvisionerStatsTests
/packages/apps/ThemePicker/tests/src/com/android/customization/model/picker/color/domain/interactor/
DColorPickerInteractorTest.kt31 import kotlinx.coroutines.test.runTest
65 fun select() = runTest { in <lambda>()
84 fun snapshotRestorer_updatesSnapshot() = runTest { in <lambda>()
102 fun snapshotRestorer_doesNotUpdateSnapshotOnExternalUpdates() = runTest { in snapshotRestorer_doesNotUpdateSnapshotOnExternalUpdates()
DColorPickerSnapshotRestorerTest.kt33 import kotlinx.coroutines.test.runTest
66 fun restoreToSnapshot_noCallsToStore_restoresToInitialSnapshot() = runTest { in <lambda>()
82 fun restoreToSnapshot_withCallToStore_restoresToInitialSnapshot() = runTest { in <lambda>()
/packages/apps/ThemePicker/tests/src/com/android/customization/picker/notifications/data/repository/
DNotificationsRepositoryTest.kt29 import kotlinx.coroutines.test.runTest
61 testScope.runTest { in settings()
83 testScope.runTest { in setSettings()
/packages/apps/ThemePicker/tests/src/com/android/customization/model/picker/quickaffordance/data/repository/
DKeyguardQuickAffordancePickerRepositoryTest.kt32 import kotlinx.coroutines.test.runTest
71 testScope.runTest { in isFeatureEnabled - enabled()
87 testScope.runTest { in isFeatureEnabled - not enabled()
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/customization/domain/interactor/
DWallpaperInteractorTest.kt30 import kotlinx.coroutines.test.runTest
65 testScope.runTest { in previews - limits to maximum results()
85 testScope.runTest { in wallpaperUpdateEvents()
116 testScope.runTest { in setWallpaper()
/packages/apps/ThemePicker/tests/src/com/android/customization/model/picker/quickaffordance/domain/interactor/
DKeyguardQuickAffordancePickerInteractorTest.kt36 import kotlinx.coroutines.test.runTest
85 testScope.runTest { in select()
119 testScope.runTest { in unselectAll()
/packages/modules/NeuralNetworks/runtime/test/android_fuzzing/
DDriverFuzzTest.cpp49 ExecutionResult<void> runTest(const ::test_helper::TestModel& testModel) { in runTest() function
79 android::nn::runTest(testModel); in nnapiFuzzTest()

12