Home
last modified time | relevance | path

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

12345678910>>...22

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/domain/interactor/
DKeyguardOcclusionInteractorTest.kt52 import com.android.systemui.kosmos.testScope
74 private val testScope = kosmos.testScope constant
89 testScope.runTest { in transitionFromPowerGesture_whileGoingToSleep_isTrue()
94 testScope = testScope, in transitionFromPowerGesture_whileGoingToSleep_isTrue()
106 testScope.runTest { in transitionFromPowerGesture_whileAsleep_isTrue()
111 testScope = testScope, in transitionFromPowerGesture_whileAsleep_isTrue()
122 testScope.runTest { in transitionFromPowerGesture_whileWaking_isFalse()
127 testScope = testScope, in transitionFromPowerGesture_whileWaking_isFalse()
132 testScope = testScope, in transitionFromPowerGesture_whileWaking_isFalse()
144 testScope.runTest { in transitionFromPowerGesture_whileAwake_isFalse()
[all …]
DFromAodTransitionInteractorTest.kt51 import com.android.systemui.kosmos.testScope
79 private val testScope = kosmos.testScope constant in com.android.systemui.keyguard.domain.interactor.FromAodTransitionInteractorTest
100 testScope in setup()
110 testScope.runTest { in testTransitionToLockscreen_onWakeup()
125 testScope.runTest { in testTransitionToOccluded_onWakeup_whenOccludingActivityOnTop()
141 testScope.runTest { in testTransitionToOccluded_onWakeUp_ifPowerButtonGestureDetected_fromAod_nonDismissibleKeyguard()
154 testScope.runTest { in testTransitionToGone_onWakeUp_ifPowerButtonGestureDetected_fromAod_dismissibleKeyguard()
168 testScope.runTest { in testTransitionToGone_onWakeUp_ifPowerButtonGestureDetected_fromGone()
173 testScope, in testTransitionToGone_onWakeUp_ifPowerButtonGestureDetected_fromGone()
187 testScope = testScope, in testTransitionToGone_onWakeUp_ifPowerButtonGestureDetected_fromGone()
[all …]
DFromDozingTransitionInteractorTest.kt52 import com.android.systemui.kosmos.testScope
79 private val testScope = kosmos.testScope constant in com.android.systemui.keyguard.domain.interactor.FromDozingTransitionInteractorTest
99 testScope in setup()
109 testScope.runTest { in testTransitionToLockscreen_onWakeup()
124 testScope.runTest { in testTransitionToGlanceableHub_onWakeup_ifIdleOnCommunal_noOccludingActivity()
144 testScope.runTest { in testTransitionToOccluded_onWakeup_whenOccludingActivityOnTop()
160 testScope.runTest { in testTransitionToOccluded_onWakeup_whenOccludingActivityOnTop_evenIfIdleOnCommunal()
182 testScope.runTest { in testTransitionToOccluded_onWakeUp_ifPowerButtonGestureDetected_fromAod_nonDismissableKeyguard()
195 testScope.runTest { in testTransitionToGone_onWakeUp_ifPowerButtonGestureDetected_fromAod_dismissableKeyguard()
209 testScope.runTest { in testTransitionToGone_onWakeUp_ifPowerButtonGestureDetected_fromGone()
[all …]
DKeyguardLongPressInteractorTest.kt33 import com.android.systemui.kosmos.testScope in <lambda>()
66 private val testScope = kosmos.testScope in <lambda>() constant in com.android.systemui.keyguard.domain.interactor.KeyguardLongPressInteractorTest
89 testScope.runTest { in <lambda>()
106 testScope.runTest { in <lambda>()
120 testScope.runTest { in <lambda>()
131 testScope.runTest { in <lambda>()
147 testScope.runTest { in <lambda>()
161 testScope.runTest { in <lambda>()
174 testScope.runTest { in <lambda>()
188 testScope.runTest { in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/ui/viewmodel/
DDeviceEntryForegroundViewModelTest.kt29 import com.android.systemui.kosmos.testScope
42 private val testScope = kosmos.testScope constant in com.android.systemui.keyguard.ui.viewmodel.DeviceEntryForegroundViewModelTest
48 testScope.runTest { in aodIconColorWhite()
55 testScope = testScope, in aodIconColorWhite()
64 testScope.runTest { in startsDozing_doNotShowAodVariant()
72 testScope = testScope, in startsDozing_doNotShowAodVariant()
82 testScope.runTest { in finishedDozing_showAodVariant()
89 testScope = testScope, in finishedDozing_showAodVariant()
98 testScope.runTest { in startTransitionToLockscreenFromDozing_doNotShowAodVariant()
105 testScope = testScope, in startTransitionToLockscreenFromDozing_doNotShowAodVariant()
[all …]
DAodAlphaViewModelTest.kt33 import com.android.systemui.kosmos.testScope
57 private val testScope = kosmos.testScope constant
78 testScope.runTest { in alpha_WhenNotGone_clockMigrationFlagIsOff_emitsKeyguardAlpha()
85 testScope = testScope, in alpha_WhenNotGone_clockMigrationFlagIsOff_emitsKeyguardAlpha()
98 testScope.runTest { in alpha_WhenGoneToAod()
104 testScope = testScope, in alpha_WhenGoneToAod()
111 testScope = testScope, in alpha_WhenGoneToAod()
123 testScope.runTest { in alpha_WhenGoneToAod_scene_container()
130 testScope = testScope, in alpha_WhenGoneToAod_scene_container()
139 testScope = testScope, in alpha_WhenGoneToAod_scene_container()
[all …]
DKeyguardRootViewModelTest.kt41 import com.android.systemui.kosmos.testScope
73 private val testScope = kosmos.testScope constant
117 testScope.runTest { in defaultBurnInScaleEqualsOne()
124 testScope.runTest { in burnInLayerVisibility()
141 testScope.runTest { in iconContainer_isNotVisible_notOnKeyguard_dontShowAodIconsWhenShade()
147 testScope, in iconContainer_isNotVisible_notOnKeyguard_dontShowAodIconsWhenShade()
158 testScope.runTest { in iconContainer_isNotVisible_onKeyguard_dontShowWhenGoneToAodTransitionRunning()
164 testScope, in iconContainer_isNotVisible_onKeyguard_dontShowWhenGoneToAodTransitionRunning()
175 testScope.runTest { in iconContainer_isVisible_bypassEnabled()
186 testScope.runTest { in iconContainer_isNotVisible_pulseExpanding_notBypassing()
[all …]
DDreamingToLockscreenTransitionViewModelTest.kt35 import com.android.systemui.kosmos.testScope
50 private val testScope = kosmos.testScope constant
64 testScope.runTest { in shortcutsAlpha_bothShortcutsReceiveLastValue()
77 testScope, in shortcutsAlpha_bothShortcutsReceiveLastValue()
86 testScope.runTest { in dreamOverlayTranslationY()
100 testScope, in dreamOverlayTranslationY()
109 testScope.runTest { in dreamOverlayFadeOut()
122 testScope, in dreamOverlayFadeOut()
131 testScope.runTest { in lockscreenFadeIn()
143 testScope, in lockscreenFadeIn()
[all …]
DPrimaryBouncerToGoneTransitionViewModelTest.kt30 import com.android.systemui.kosmos.testScope
49 val testScope = kosmos.testScope constant in com.android.systemui.keyguard.ui.viewmodel.PrimaryBouncerToGoneTransitionViewModelTest
64 testScope.runTest { in bouncerAlpha()
74 testScope, in bouncerAlpha()
83 testScope.runTest { in bouncerAlpha_runDimissFromKeyguard()
95 testScope, in bouncerAlpha_runDimissFromKeyguard()
104 testScope.runTest { in lockscreenAlpha()
117 testScope.runTest { in lockscreenAlpha_runDimissFromKeyguard()
125 testScope, in lockscreenAlpha_runDimissFromKeyguard()
136 testScope.runTest { in lockscreenAlpha_leaveShadeOpen()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DResourceTrimmerTest.kt16 import com.android.systemui.kosmos.testScope
45 private val testScope = kosmos.testScope constant
65 applicationScope = testScope.backgroundScope, in setUp()
74 testScope.runTest { in dozeAodDisabled_sleep_doesntTrimMemory()
76 testScope.runCurrent() in dozeAodDisabled_sleep_doesntTrimMemory()
82 testScope.runTest { in dozeEnabled_sleepWithFullDozeAmount_doesntTrimMemory()
86 testScope.runCurrent() in dozeEnabled_sleepWithFullDozeAmount_doesntTrimMemory()
92 testScope.runTest { in dozeEnabled_sleepWithoutFullDozeAmount_doesntTrimMemory()
96 testScope.runCurrent() in dozeEnabled_sleepWithoutFullDozeAmount_doesntTrimMemory()
102 testScope.runTest { in aodEnabled_deviceWakesHalfWayThrough_doesNotTrimMemory()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/graphics/
DImageLoaderTest.kt37 private val testScope = TestScope(testDispatcher) constant
63 testScope.runTest { assertThat(imageLoader.loadDrawable(ImageLoader.Res(-1))).isNull() } in invalidResource_drawable_returnsNull()
67 testScope.runTest { assertThat(imageLoader.loadBitmap(ImageLoader.Res(-1))).isNull() } in invalidResource_bitmap_returnsNull()
71 testScope.runTest { in invalidUri_returnsNull()
77 testScope.runTest { in invalidFile_returnsNull()
83 testScope.runTest { in invalidIcon_loadDrawable_returnsNull()
89 testScope.runTest { in invalidIcon_loadSize_returnsNull()
96 testScope.runTest { in invalidIS_returnsNull()
107 testScope.runTest { in validBitmapResource_loadDrawable_returnsBitmapDrawable()
127 testScope.runTest { in validBitmapResource_loadBitmap_returnsBitmapDrawable()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/
DNotificationListViewModelTest.kt33 import com.android.systemui.kosmos.testScope
71 private val testScope = kosmos.testScope constant
106 testScope.runTest { in isImportantForAccessibility_falseWhenNoNotifs()
113 testScope.runCurrent() in isImportantForAccessibility_falseWhenNoNotifs()
121 testScope.runTest { in isImportantForAccessibility_trueWhenNotifs()
136 testScope.runTest { in isImportantForAccessibility_trueWhenNotKeyguard()
151 testScope.runTest { in shouldIncludeEmptyShadeView_trueWhenNoNotifs()
164 testScope.runTest { in shouldIncludeEmptyShadeView_falseWhenNotifs()
177 testScope.runTest { in shouldIncludeEmptyShadeView_falseWhenQsExpandedDefault()
192 testScope.runTest { in shouldIncludeEmptyShadeView_trueWhenQsExpandedInSplitShade()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/domain/interactor/
DMobileIconsInteractorTest.kt70 private val testScope = TestScope(testDispatcher) constant
79 testScope.backgroundScope,
108 testScope.backgroundScope, in setUp()
116 testScope.runTest { in filteredSubscriptions_default()
125 testScope.runTest { in filteredSubscriptions_moreThanTwo_doesNotFilter()
136 testScope.runTest { in filteredSubscriptions_nonOpportunistic_updatesWithMultipleSubs()
146 testScope.runTest { in filteredSubscriptions_opportunistic_differentGroups_doesNotFilter()
157 testScope.runTest { in filteredSubscriptions_opportunistic_nonGrouped_doesNotFilter()
174 testScope.runTest { in filteredSubscriptions_opportunistic_grouped_configFalse_showsActive_3()
194 testScope.runTest { in filteredSubscriptions_opportunistic_grouped_configFalse_showsActive_4()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyboard/shortcut/ui/viewmodel/
DShortcutHelperViewModelTest.kt29 import com.android.systemui.kosmos.testScope
50 private val testScope = kosmos.testScope constant
57 testScope.runTest { in shouldShow_falseByDefault()
65 testScope.runTest { in shouldShow_trueAfterShowRequested()
75 testScope.runTest { in shouldShow_trueAfterToggleRequested()
85 testScope.runTest { in shouldShow_falseAfterToggleTwice()
96 testScope.runTest { in shouldShow_falseAfterViewClosed()
107 testScope.runTest { in shouldShow_falseAfterCloseSystemDialogs()
118 testScope.runTest { in shouldShow_doesNotEmitDuplicateValues()
135 testScope.runTest { in shouldShow_emitsLatestValueToNewSubscribers()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/domain/interactor/
DActiveNotificationsInteractorTest.kt25 import com.android.systemui.kosmos.testScope
41 private val testScope = kosmos.testScope constant in com.android.systemui.statusbar.notification.domain.interactor.ActiveNotificationsInteractorTest
48 testScope.runTest { in testAllNotificationsCount()
60 testScope.runTest { in areAnyNotificationsPresent_isTrue()
72 testScope.runTest { in areAnyNotificationsPresent_isFalse()
84 testScope.runTest { in testActiveNotificationRanks_sizeMatches()
96 testScope.runTest { in clearableNotifications_whenHasClearableAlertingNotifs()
114 testScope.runTest { in hasClearableNotifications_whenHasClearableSilentNotifs()
132 testScope.runTest { in testHasClearableNotifications_whenHasNoNotifs()
150 testScope.runTest { in hasClearableAlertingNotifications_whenHasClearableSilentNotifs()
[all …]
DHeadsUpNotificationInteractorTest.kt30 import com.android.systemui.kosmos.testScope
55 private val testScope = kosmos.testScope constant
68 testScope.runTest { in hasPinnedRows_emptyList_false()
76 testScope.runTest { in hasPinnedRows_noPinnedRows_false()
92 testScope.runTest { in hasPinnedRows_hasPinnedRows_true()
108 testScope.runTest { in hasPinnedRows_rowGetsPinned_true()
130 testScope.runTest { in hasPinnedRows_rowGetsUnPinned_false()
152 testScope.runTest { in pinnedRows_noRows_isEmpty()
160 testScope.runTest { in pinnedRows_noPinnedRows_isEmpty()
176 testScope.runTest { in pinnedRows_hasPinnedRows_containsPinnedRows()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ui/viewmodel/
DAlternateBouncerViewModelTest.kt29 import com.android.systemui.kosmos.testScope
46 private val testScope = kosmos.testScope constant in com.android.systemui.keyguard.ui.viewmodel.AlternateBouncerViewModelTest
53 testScope.runTest { in showPrimaryBouncer()
60 testScope.runTest { in hideAlternateBouncer()
67 testScope.runTest { in transitionToAlternateBouncer_scrimAlphaUpdate()
78 testScope, in transitionToAlternateBouncer_scrimAlphaUpdate()
87 testScope.runTest { in transitionFromAlternateBouncer_scrimAlphaUpdate()
98 testScope, in transitionFromAlternateBouncer_scrimAlphaUpdate()
106 testScope.runTest { in forcePluginOpen()
116 testScope, in forcePluginOpen()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/authentication/domain/interactor/
DAuthenticationInteractorTest.kt35 import com.android.systemui.kosmos.testScope in <lambda>()
55 private val testScope = kosmos.testScope in <lambda>() constant
59 testScope.collectLastValue(underTest.onAuthenticationResult) in <lambda>()
61 testScope.collectLastValue(underTest.failedAuthenticationAttempts) in <lambda>()
65 testScope.runTest { in <lambda>()
79 testScope.runTest { in <lambda>()
91 testScope.runTest { in <lambda>()
99 testScope.runTest { in <lambda>()
107 testScope.runTest { in <lambda>()
114 testScope.runTest { in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/util/kotlin/
DBooleanFlowOperatorsTest.kt24 import com.android.systemui.kosmos.testScope
43 val testScope = kosmos.testScope constant in com.android.systemui.util.kotlin.BooleanFlowOperatorsTest
47 testScope.runTest { in and_allTrue_returnsTrue()
54 testScope.runTest { in and_anyFalse_returnsFalse()
61 testScope.runTest { in and_allFalse_returnsFalse()
68 testScope.runTest { in and_onlyEmitsWhenValueChanges()
83 testScope.runTest { in or_allTrue_returnsTrue()
90 testScope.runTest { in or_anyTrue_returnsTrue()
97 testScope.runTest { in or_allFalse_returnsFalse()
104 testScope.runTest { in or_onlyEmitsWhenValueChanges()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/
DCommunalSceneStartableTest.kt37 import com.android.systemui.kosmos.testScope
88 with(kosmos.testScope) { in setUp()
98 testScope.runTest { in keyguardGoesAway_forceBlankScene()
107 testScope = this in keyguardGoesAway_forceBlankScene()
117 testScope.runTest { in keyguardGoesAway_whenInEditMode_doesNotChangeScene()
126 testScope = this in keyguardGoesAway_whenInEditMode_doesNotChangeScene()
137 testScope.runTest { in deviceDocked_forceCommunalScene()
145 testScope = this in deviceDocked_forceCommunalScene()
154 testScope.runTest { in occluded_forceBlankScene()
164 testScope = this in occluded_forceBlankScene()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/satellite/domain/interactor/
DDeviceBasedSatelliteInteractorTest.kt47 private val testScope = TestScope(dispatcher) constant
59 WifiInteractorImpl(connectivityRepository, wifiRepository, testScope.backgroundScope)
68 testScope.backgroundScope, in setUp()
76 testScope.runTest { in isSatelliteAllowed_falseWhenNotAllowed()
89 testScope.runTest { in isSatelliteAllowed_trueWhenAllowed()
102 testScope.runTest { in isSatelliteAllowed_offWhenFlagIsOff()
111 testScope.backgroundScope, in isSatelliteAllowed_offWhenFlagIsOff()
127 testScope.runTest { in connectionState_matchesRepositoryValue()
150 testScope.runTest { in connectionState_offWhenFeatureIsDisabled()
159 testScope.backgroundScope, in connectionState_offWhenFeatureIsDisabled()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/deviceentry/data/repository/
DDeviceEntryFaceAuthRepositoryTest.kt74 import com.android.systemui.kosmos.testScope
146 private val testScope = kosmos.testScope constant in com.android.systemui.deviceentry.data.repository.DeviceEntryFaceAuthRepositoryTest
205 testScope.backgroundScope in createDeviceEntryFaceAuthRepositoryImpl()
214 testScope.backgroundScope in createDeviceEntryFaceAuthRepositoryImpl()
222 testScope.backgroundScope, in createDeviceEntryFaceAuthRepositoryImpl()
245 testScope.runTest { in faceAuthRunsAndProvidesAuthStatusUpdates()
279 testScope.runTest { in faceAuthDoesNotRunWhileItIsAlreadyRunning()
295 testScope.runTest { in faceLockoutStatusIsPropagated()
317 testScope.runTest { in faceDetectionSupportIsTheCorrectValue()
351 testScope.runTest { in cancelStopsFaceAuthentication()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/domain/interactor/
DKeyguardDismissActionInteractorTest.kt31 import com.android.systemui.kosmos.testScope
55 private val testScope = kosmos.testScope constant in com.android.systemui.keyguard.domain.interactor.KeyguardDismissActionInteractorTest
68 testScope = testScope, in setUp()
77 applicationScope = testScope.backgroundScope, in setUp()
84 testScope.runTest { in updateDismissAction_onRepoChange()
100 testScope.runTest { in messageUpdate()
115 testScope.runTest { assertThat(underTest.runDismissAnimationOnKeyguard()).isFalse() } in runDismissAnimationOnKeyguard_defaultStateFalse()
119 testScope.runTest { in runDismissAnimationOnKeyguardUpdates()
144 testScope.runTest { in executeDismissAction_dismissKeyguardRequestWithImmediateDismissAction_biometricAuthed()
165 testScope.runTest { in executeDismissAction_dismissKeyguardRequestWithoutImmediateDismissAction()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/prod/
DWifiRepositoryImplTest.kt80 testScope.backgroundScope, in <lambda>()
102 private val testScope = TestScope(dispatcher) constant
114 testScope.runTest { in wifiPickerTrackerCreation_scansDisabled()
116 testScope.runCurrent() in wifiPickerTrackerCreation_scansDisabled()
123 testScope.runTest { in isWifiEnabled_enabled_true()
134 testScope.runTest { in isWifiEnabled_enabling_false()
145 testScope.runTest { in isWifiEnabled_disabling_true()
156 testScope.runTest { in isWifiEnabled_disabled_false()
167 testScope.runTest { in isWifiEnabled_respondsToUpdates()
184 testScope.runTest { assertThat(underTest.isWifiDefault.value).isFalse() } in isWifiDefault_initiallyGetsDefault()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/scene/domain/interactor/
DWindowRootViewVisibilityInteractorTest.kt29 import com.android.systemui.kosmos.testScope
61 private val testScope = kosmos.testScope constant in com.android.systemui.scene.domain.interactor.WindowRootViewVisibilityInteractorTest
78 testScope.backgroundScope,
115 testScope.runTest { in isLockscreenOrShadeVisibleAndInteractive_notVisible_false()
126 testScope.runTest { in isLockscreenOrShadeVisibleAndInteractive_deviceAsleep_false()
137 testScope.runTest { in isLockscreenOrShadeVisibleAndInteractive_visibleAndAwake_true()
148 testScope.runTest { in isLockscreenOrShadeVisibleAndInteractive_visibleAndStartingToWake_true()
159 testScope.runTest { in isLockscreenOrShadeVisibleAndStartingToSleep_false()
170 testScope.runTest { in lockscreenShadeInteractive_statusBarServiceNotified()
174 testScope.runCurrent() in lockscreenShadeInteractive_statusBarServiceNotified()
[all …]

12345678910>>...22