Home
last modified time | relevance | path

Searched refs:testScope (Results 1 – 25 of 41) sorted by relevance

12

/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/
DCachingImagePreviewImageLoaderTest.kt38 private val testScope = TestScope(testDispatcher) in <lambda>() constant in com.android.intentresolver.contentpreview.CachingImagePreviewImageLoaderTest
61 scope = testScope.backgroundScope, in <lambda>()
70 testScope.runTest { in <lambda>()
75 imageLoader.loadImage(testScope, testUris[0]) { result = it } in <lambda>()
86 testScope.runTest { in <lambda>()
88 imageLoader.loadImage(testScope, testUris[0]) {} in <lambda>()
95 imageLoader.loadImage(testScope, testUris[0]) { result = it } in <lambda>()
106 testScope.runTest { in <lambda>()
115 imageLoader.loadImage(testScope, testUris[0]) { result = it } in <lambda>()
126 testScope.runTest { in <lambda>()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/fingerprint2/ui/settings/
DFingerprintSettingsNavigationViewModelTest.kt57 private var testScope = TestScope(backgroundDispatcher) variable
64 testScope = TestScope(backgroundDispatcher) in setup()
85 testScope.runTest { in testNoGateKeeper_launchesConfirmDeviceCredential()
96 testScope.runTest { in testConfirmDevice_fails()
109 testScope.runTest { in confirmDeviceSuccess_noGateKeeper()
122 testScope.runTest { in confirmDeviceSuccess_launchesEnrollment_ifNoPreviousEnrollments()
137 testScope.runTest { in firstEnrollment_failsWithReason()
156 testScope.runTest { in firstEnrollmentSucceeds_noToken()
172 testScope.runTest { in firstEnrollmentSucceeds_noKeyChallenge()
190 testScope.runTest { in firstEnrollment_succeeds()
[all …]
DFingerprintSettingsViewModelTest.kt63 private var testScope = TestScope(backgroundDispatcher) variable
70 testScope = TestScope(backgroundDispatcher) in setup()
100 testScope.runTest { in authenticate_DoesNotRun_ifOptical()
142 testScope.runTest { in authenticate_DoesNotRun_ifUltrasonic()
182 testScope.runTest { in authenticate_DoesRun_ifNotUdfps()
333 testScope.runTest { in authenticatePauses_whenPaused()
360 testScope.runTest { in dialog_pausesAuth()
377 testScope.runTest { in cannotAuth_when_notShowingSettings()
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/customization/ui/viewmodel/
DCustomizationPickerViewModelTest.kt49 private lateinit var testScope: TestScope variable in com.android.wallpaper.picker.customization.ui.viewmodel.CustomizationPickerViewModelTest
57 testScope = TestScope(testDispatcher) in setUp()
61 scope = testScope.backgroundScope, in setUp()
69 scope = testScope.backgroundScope, in setUp()
87 testScope.runTest { in initial tab is lock screen()
99 testScope.runTest { in setInitialScreen - home screen()
113 testScope.runTest { in setInitialScreen - home screen - but lock screen already selected from before()
135 testScope.runTest { in switching to the home screen()
149 testScope.runTest { in switching to the home screen and back to the lock screen()
164 testScope.runTest { in restores saved state()
DWallpaperQuickSwitchViewModelTest.kt52 private lateinit var testScope: TestScope in <lambda>() variable in com.android.wallpaper.picker.customization.ui.viewmodel.WallpaperQuickSwitchViewModelTest
60 testScope = TestScope(testDispatcher) in <lambda>()
65 scope = testScope.backgroundScope, in <lambda>()
75 coroutineScope = testScope.backgroundScope, in <lambda>()
87 testScope.runTest { in <lambda>()
97 testScope.runTest { in <lambda>()
131 testScope.runTest { in <lambda>()
156 testScope.runTest { in <lambda>()
/packages/apps/Settings/tests/unit/src/com/android/settings/fingerprint2/domain/interactor/
DFingerprintManagerInteractorTest.kt84 private var testScope = TestScope(backgroundDispatcher) variable
118 testScope.runTest { in testEmptyFingerprints()
127 testScope.runTest { in testOneFingerprint()
142 testScope.runTest { in testCanEnrollFingerprint()
163 testScope.runTest { in testGenerateChallenge()
181 val job = testScope.launch { result = underTest.generateChallenge(1L) } in testGenerateChallenge()
196 testScope.runTest { in testRemoveFingerprint_succeeds()
204 testScope.launch { result = underTest.removeFingerprint(fingerprintViewModelToRemove) } in testRemoveFingerprint_succeeds()
219 testScope.runTest { in testRemoveFingerprint_fails()
227 testScope.launch { result = underTest.removeFingerprint(fingerprintViewModelToRemove) } in testRemoveFingerprint_fails()
[all …]
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/grid/domain/interactor/
DGridInteractorTest.kt44 private lateinit var testScope: TestScope in <lambda>() variable in com.android.customization.model.grid.domain.interactor.GridInteractorTest
50 testScope = TestScope() in <lambda>()
53 scope = testScope.backgroundScope, in <lambda>()
59 applicationScope = testScope.backgroundScope, in <lambda>()
78 testScope.runTest { in <lambda>()
105 testScope.runTest { in <lambda>()
123 testScope.runTest { in <lambda>()
143 testScope.runTest { in <lambda>()
DGridSnapshotRestorerTest.kt42 private lateinit var testScope: TestScope in <lambda>() variable in com.android.customization.model.grid.domain.interactor.GridSnapshotRestorerTest
48 testScope = TestScope() in <lambda>()
51 scope = testScope.backgroundScope, in <lambda>()
58 applicationScope = testScope.backgroundScope, in <lambda>()
68 testScope.runTest { in <lambda>()
87 testScope.runTest { in <lambda>()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/mode/
DDarkModeSnapshotRestorerTest.kt38 private lateinit var testScope: TestScope variable in com.android.customization.model.mode.DarkModeSnapshotRestorerTest
45 testScope = TestScope(testDispatcher) in setUp()
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/apps/Settings/tests/unit/src/com/android/settings/fingerprint2/ui/enrollment/modules/enrolling/rfps/viewmodel/
DRFPSIconTouchViewModelTest.kt45 private var testScope = TestScope(backgroundDispatcher) variable
51 testScope = TestScope(backgroundDispatcher) in setup()
63 testScope.runTest { in initShouldNotShowDialog()
76 testScope.runTest { in shouldShowDialogTest()
93 testScope.runTest { in stateShouldBeFalseAfterReset()
116 testScope.runTest { in toggleMultipleTimes()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/notifications/domain/interactor/
DNotificationsSnapshotRestorerTest.kt49 private lateinit var testScope: TestScope variable in com.android.customization.model.notifications.domain.interactor.NotificationsSnapshotRestorerTest
55 testScope = TestScope(testDispatcher) in setUp()
61 scope = testScope.backgroundScope, in setUp()
69 backgroundScope = testScope.backgroundScope in setUp()
75 testScope.runTest { in setUpAndRestore_Active()
89 testScope.runTest { in setUpAndRestore_Inactive()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/picker/quickaffordance/ui/viewmodel/
DKeyguardQuickAffordancePickerViewModelTest.kt73 private lateinit var testScope: TestScope in <lambda>() variable in com.android.customization.model.picker.quickaffordance.ui.viewmodel.KeyguardQuickAffordancePickerViewModelTest
83 testScope = TestScope(testDispatcher) in <lambda>()
92 scope = testScope.backgroundScope, in <lambda>()
107 scope = testScope.backgroundScope, in <lambda>()
131 testScope.runTest { in <lambda>()
213 testScope.runTest { in <lambda>()
249 testScope.runTest { in <lambda>()
306 testScope.runTest { in <lambda>()
335 testScope.runTest { in <lambda>()
372 testScope.runTest { in <lambda>()
[all …]
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/customization/domain/interactor/
DWallpaperInteractorTest.kt47 private lateinit var testScope: TestScope variable in com.android.wallpaper.picker.customization.domain.interactor.WallpaperInteractorTest
54 testScope = TestScope(testDispatcher) in setUp()
59 scope = testScope.backgroundScope, in setUp()
69 testScope.runTest { in previews - limits to maximum results()
89 testScope.runTest { in previews - handles empty recents list()
101 testScope.runTest { in wallpaperUpdateEvents()
144 testScope.runTest { in setWallpaper()
DWallpaperSnapshotRestorerTest.kt46 private lateinit var testScope: TestScope in <lambda>() variable in com.android.wallpaper.picker.customization.domain.interactor.WallpaperSnapshotRestorerTest
54 testScope = TestScope(testDispatcher) in <lambda>()
70 scope = testScope.backgroundScope, in <lambda>()
75 scope = testScope.backgroundScope, in <lambda>()
86 testScope.runTest { in <lambda>()
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/preview/ui/viewmodel/
DStaticWallpaperPreviewViewModelTest.kt76 private val testScope: TestScope = TestScope(testDispatcher) constant in com.android.wallpaper.picker.preview.ui.viewmodel.StaticWallpaperPreviewViewModelTest
110 testScope.backgroundScope, in setEverything()
132 testScope.backgroundScope, in setEverything()
148 testScope.runTest { in staticWallpaperModel_withStaticWallpaper_shouldEmitNonNullValue()
166 testScope.runTest { in staticWallpaperModel_withLiveWallpaper_shouldNotEmit()
194 testScope.runTest { in lowResBitmap_withStaticWallpaper_shouldEmitNonNullValue()
211 testScope.runTest { in fullResWallpaperViewModel_withStaticWallpaperAndNullCropHints_shouldEmitNonNullValue()
231 testScope.runTest { in fullResWallpaperViewModel_withStaticWallpaperAndCropHints_shouldEmitNonNullValue()
260 testScope.runTest { in subsamplingScaleImageViewModel_withStaticWallpaperAndCropHints_shouldEmitNonNullValue()
291 testScope.runTest { in wallpaperColors_withStoredColorsAndNullCropHints_returnsColorsStoredInPreferences()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/fingerprint2/enrollment/viewmodel/
DFingerprintEnrollFindSensorViewModelV2Test.kt72 private var testScope = TestScope(backgroundDispatcher) variable in com.android.settings.fingerprint2.enrollment.viewmodel.FingerprintEnrollFindSensorViewModelV2Test
88 testScope = TestScope(backgroundDispatcher) in setup()
150 testScope.runTest { in udfpsLottieInfo()
174 testScope.runTest { in sfpsLottieInfoWhenFolded()
194 testScope.runTest { in sfpsLottieInfoWhenUnFolded()
214 testScope.runTest { in rfpsAnimation()
238 testScope.runTest { in showPrimaryButton_ifUdfps()
262 testScope.runTest { in doesNotShowPrimaryButton_ifNonUdfps()
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/customization/data/repository/
DImageEffectsRepositoryImplTest.kt70 @Inject lateinit var testScope: TestScope in <lambda>() variable in com.android.wallpaper.picker.customization.data.repository.ImageEffectsRepositoryImplTest
125 testScope.runTest { in <lambda>()
146 testScope.runTest { in <lambda>()
164 testScope.runTest { in <lambda>()
187 testScope.runTest { in <lambda>()
210 testScope.runTest { in <lambda>()
229 testScope.runTest { in <lambda>()
275 testScope.runTest { in <lambda>()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/grid/ui/viewmodel/
DGridScreenViewModelTest.kt47 private lateinit var testScope: TestScope in <lambda>() variable in com.android.customization.model.grid.ui.viewmodel.GridScreenViewModelTest
53 testScope = TestScope() in <lambda>()
57 applicationScope = testScope.backgroundScope, in <lambda>()
60 scope = testScope.backgroundScope, in <lambda>()
81 testScope.runTest { in <lambda>()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/picker/quickaffordance/domain/interactor/
DKeyguardQuickAffordancePickerInteractorTest.kt51 private lateinit var testScope: TestScope variable in com.android.customization.model.picker.quickaffordance.domain.interactor.KeyguardQuickAffordancePickerInteractorTest
57 testScope = TestScope(testDispatcher) in setUp()
65 scope = testScope.backgroundScope, in setUp()
85 testScope.runTest { in select()
119 testScope.runTest { in unselectAll()
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/undo/domain/interactor/
DUndoInteractorTest.kt42 private lateinit var testScope: TestScope variable in com.android.wallpaper.picker.undo.domain.interactor.UndoInteractorTest
47 testScope = TestScope(testDispatcher) in setUp()
51 scope = testScope.backgroundScope, in setUp()
59 testScope.runTest { in start session - update - and undo all()
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/category/data/
DDefaultWallpaperCategoryClientTest.kt58 @Inject lateinit var testScope: TestScope variable in com.android.wallpaper.picker.category.data.DefaultWallpaperCategoryClientTest
83 testScope.runTest { in getMyPhotosCategory()
101 testScope.runTest { in getValidOnDeviceCategory()
115 testScope.runTest { in getNullOnDeviceCategory()
125 testScope.runTest { in getSystemCategories()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/picker/notifications/ui/viewmodel/
DNotificationSectionViewModelTest.kt50 private lateinit var testScope: TestScope variable in com.android.customization.picker.notifications.ui.viewmodel.NotificationSectionViewModelTest
57 testScope = TestScope(testDispatcher) in setUp()
62 scope = testScope.backgroundScope, in setUp()
82 testScope.runTest { in toggles back and forth()
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/undo/ui/viewmodel/
DUndoViewModelTest.kt43 private lateinit var testScope: TestScope variable in com.android.wallpaper.picker.undo.ui.viewmodel.UndoViewModelTest
49 testScope = TestScope(testDispatcher) in setUp()
52 scope = testScope.backgroundScope, in setUp()
66 testScope.runTest { in revert()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/util/
DTestKosmos.kt45 private val testScope: TestScope, constant
48 get() = testScope.backgroundScope in <lambda>()
50 @ExperimentalCoroutinesApi fun runCurrent() = testScope.runCurrent() in <lambda>()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/widget/
DBatchPreviewLoaderTest.kt49 private val testScope = CoroutineScope(dispatcher) in <lambda>() constant
60 testScope.cancel() in <lambda>()
66 val imageLoader = TestImageLoader(testScope) in <lambda>()
88 val imageLoader = TestImageLoader(testScope) in <lambda>()
111 val imageLoader = TestImageLoader(testScope) in <lambda>()
139 val imageLoader = TestImageLoader(testScope) in <lambda>()

12