Home
last modified time | relevance | path

Searched refs:testDispatcher (Results 1 – 25 of 57) sorted by relevance

123

/packages/apps/AvatarPicker/src/tests/unit/java/com/android/avatarpicker/tests/unit/viewmodel/
DDetailsViewModelTest.kt60 val testDispatcher = UnconfinedTestDispatcher(testScheduler) in testNoIllustrations() constant
61 Dispatchers.setMain(testDispatcher) in testNoIllustrations()
71 testDispatcher in testNoIllustrations()
86 val testDispatcher = UnconfinedTestDispatcher(testScheduler) in <lambda>() constant
87 Dispatchers.setMain(testDispatcher) in <lambda>()
96 testDispatcher in <lambda>()
112 val testDispatcher = UnconfinedTestDispatcher(testScheduler) in <lambda>() constant
113 Dispatchers.setMain(testDispatcher) in <lambda>()
122 testDispatcher in <lambda>()
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/preview/data/repository/
DWallpaperPreviewRepositoryTest.kt58 private lateinit var testDispatcher: CoroutineDispatcher variable in com.android.wallpaper.picker.preview.data.repository.WallpaperPreviewRepositoryTest
66 testDispatcher = StandardTestDispatcher() in setUp()
67 testScope = TestScope(testDispatcher) in setUp()
77 bgDispatcher = testDispatcher, in setWallpaperModel()
100 bgDispatcher = testDispatcher, in dismissSmallTooltip()
121 bgDispatcher = testDispatcher, in dismissFullTooltip()
144 bgDispatcher = testDispatcher, in downloadWallpaper_fails()
171 bgDispatcher = testDispatcher, in downloadWallpaper_succeeds()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/picker/notifications/ui/viewmodel/
DNotificationSectionViewModelTest.kt55 val testDispatcher = UnconfinedTestDispatcher() in setUp() constant
56 Dispatchers.setMain(testDispatcher) in setUp()
57 testScope = TestScope(testDispatcher) in setUp()
63 backgroundDispatcher = testDispatcher, in setUp()
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/preview/domain/interactor/
DPreviewActionsInteractorTest.kt59 @Inject lateinit var testDispatcher: TestDispatcher variable in com.android.wallpaper.picker.preview.domain.interactor.PreviewActionsInteractorTest
71 Dispatchers.setMain(testDispatcher) in setUp()
77 testDispatcher in setUp()
79 creativeEffectsRepository = CreativeEffectsRepository(appContext, testDispatcher) in setUp()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/picker/clock/ui/viewmodel/
DClockCarouselViewModelTest.kt65 private lateinit var testDispatcher: CoroutineDispatcher variable in com.android.customization.picker.clock.ui.viewmodel.ClockCarouselViewModelTest
72 testDispatcher = StandardTestDispatcher() in setUp()
74 Dispatchers.setMain(testDispatcher) in setUp()
87 backgroundDispatcher = testDispatcher, in <lambda>()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/notifications/domain/interactor/
DNotificationsSnapshotRestorerTest.kt53 val testDispatcher = StandardTestDispatcher() in setUp() constant
54 Dispatchers.setMain(testDispatcher) in setUp()
55 testScope = TestScope(testDispatcher) in setUp()
62 backgroundDispatcher = testDispatcher, in setUp()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/mode/
DDarkModeSnapshotRestorerTest.kt44 val testDispatcher = StandardTestDispatcher() in setUp() constant
45 testScope = TestScope(testDispatcher) in setUp()
48 backgroundDispatcher = testDispatcher, in setUp()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/access/
DAccessViewModelTest.kt39 private val testDispatcher = TestCoroutineDispatcher() constant in com.android.healthconnect.controller.tests.data.access.AccessViewModelTest
46 Dispatchers.setMain(testDispatcher) in setup()
54 testDispatcher.cleanupTestCoroutines() in tearDown()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/selectabledeletion/
DDeletionViewModelTest.kt48 private val testDispatcher = TestCoroutineDispatcher() constant
58 Dispatchers.setMain(testDispatcher) in setup()
65 testDispatcher.cleanupTestCoroutines() in tearDown()
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/customization/ui/viewmodel/
DWallpaperQuickSwitchViewModelTest.kt58 val testDispatcher = StandardTestDispatcher() in <lambda>() constant
59 Dispatchers.setMain(testDispatcher) in <lambda>()
60 testScope = TestScope(testDispatcher) in <lambda>()
68 backgroundDispatcher = testDispatcher, in <lambda>()
DCustomizationPickerViewModelTest.kt56 val testDispatcher = StandardTestDispatcher() in setUp() constant
57 testScope = TestScope(testDispatcher) in setUp()
72 backgroundDispatcher = testDispatcher, in setUp()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/snackbar/
DSnackbarFeatureTest.kt93 val testDispatcher = StandardTestDispatcher() constant
96 @BindValue @Main val mainScope: TestScope = TestScope(testDispatcher)
100 @BindValue @Main val mainDispatcher: CoroutineDispatcher = testDispatcher
101 @BindValue @Background val backgroundDispatcher: CoroutineDispatcher = testDispatcher
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/picker/quickaffordance/domain/interactor/
DKeyguardQuickAffordancePickerInteractorTest.kt56 val testDispatcher = StandardTestDispatcher() in setUp() constant
57 testScope = TestScope(testDispatcher) in setUp()
58 Dispatchers.setMain(testDispatcher) in setUp()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/navigationbar/
DNavigationBarFeatureTest.kt94 val testDispatcher = StandardTestDispatcher() constant in com.android.photopicker.features.navigationbar.NavigationBarFeatureTest
97 @BindValue @Main val mainScope: TestScope = TestScope(testDispatcher)
104 @BindValue @Main val mainDispatcher: CoroutineDispatcher = testDispatcher
105 @BindValue @Background val backgroundDispatcher: CoroutineDispatcher = testDispatcher
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/cloudmedia/
DCloudMediaFeatureTest.kt90 val testDispatcher = StandardTestDispatcher() constant in com.android.photopicker.features.cloudmedia.CloudMediaFeatureTest
93 @BindValue @Main val mainScope: TestScope = TestScope(testDispatcher)
97 @BindValue @Main val mainDispatcher: CoroutineDispatcher = testDispatcher
98 @BindValue @Background val backgroundDispatcher: CoroutineDispatcher = testDispatcher
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/customization/domain/interactor/
DWallpaperSnapshotRestorerTest.kt53 val testDispatcher = StandardTestDispatcher() in <lambda>() constant
54 testScope = TestScope(testDispatcher) in <lambda>()
78 backgroundDispatcher = testDispatcher, in <lambda>()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/overflowmenu/
DOverflowMenuFeatureTest.kt94 val testDispatcher = StandardTestDispatcher() constant in com.android.photopicker.features.overflowmenu.OverflowMenuFeatureTest
97 @BindValue @Main val mainScope: TestScope = TestScope(testDispatcher)
101 @BindValue @Main val mainDispatcher: CoroutineDispatcher = testDispatcher
102 @BindValue @Background val backgroundDispatcher: CoroutineDispatcher = testDispatcher
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appcompat/
DUserAspectRatioAppsPageProviderTest.kt52 private val testDispatcher = StandardTestDispatcher() constant in com.android.settings.spa.app.appcompat.UserAspectRatioAppsPageProviderTest
53 private val testScope = TestScope(testDispatcher)
165 val listModel = UserAspectRatioAppListModel(context, testDispatcher) in setSummary()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/entries/
DEntriesViewModelTest.kt87 private val testDispatcher = TestCoroutineDispatcher() in formattedAggregation() constant in com.android.healthconnect.controller.tests.data.entries.EntriesViewModelTest
100 Dispatchers.setMain(testDispatcher) in formattedAggregation()
112 testDispatcher.cleanupTestCoroutines() in tearDown()
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/preview/ui/viewmodel/
DStaticWallpaperPreviewViewModelTest.kt75 private val testDispatcher: TestDispatcher = UnconfinedTestDispatcher() constant in com.android.wallpaper.picker.preview.ui.viewmodel.StaticWallpaperPreviewViewModelTest
76 private val testScope: TestScope = TestScope(testDispatcher)
95 Dispatchers.setMain(testDispatcher) in setUp()
113 testDispatcher, in setEverything()
119 testDispatcher, in setEverything()
131 testDispatcher, in setEverything()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/profileselector/
DProfileSelectorFeatureTest.kt93 val testDispatcher = StandardTestDispatcher() constant in com.android.photopicker.features.profileselector.ProfileSelectorFeatureTest
96 @BindValue @Main val mainScope: TestScope = TestScope(testDispatcher)
103 @BindValue @Main val mainDispatcher: CoroutineDispatcher = testDispatcher
104 @BindValue @Background val backgroundDispatcher: CoroutineDispatcher = testDispatcher
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/photogrid/
DPhotoGridFeatureTest.kt103 val testDispatcher = StandardTestDispatcher() constant in com.android.photopicker.features.photogrid.PhotoGridFeatureTest
106 @BindValue @Main val mainScope: TestScope = TestScope(testDispatcher)
113 @BindValue @Main val mainDispatcher: CoroutineDispatcher = testDispatcher
114 @BindValue @Background val backgroundDispatcher: CoroutineDispatcher = testDispatcher
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/undo/domain/interactor/
DUndoInteractorTest.kt46 val testDispatcher = StandardTestDispatcher() in setUp() constant
47 testScope = TestScope(testDispatcher) in setUp()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/
DConnectedAppsViewModelTest.kt52 private val testDispatcher = TestCoroutineDispatcher() constant in com.android.healthconnect.controller.tests.permissions.connectedapps.ConnectedAppsViewModelTest
63 Dispatchers.setMain(testDispatcher) in setup()
76 testDispatcher.cleanupTestCoroutines() in tearDown()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/datasources/
DDataSourcesViewModelTest.kt51 private val testDispatcher = TestCoroutineDispatcher() in formattedAggregation() constant in com.android.healthconnect.controller.tests.datasources.DataSourcesViewModelTest
71 Dispatchers.setMain(testDispatcher) in formattedAggregation()
88 testDispatcher.cleanupTestCoroutines() in tearDown()

123