/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/domain/interactor/ |
D | KeyguardOcclusionInteractorTest.kt | 53 import com.android.systemui.kosmos.testScope 80 private val testScope = kosmos.testScope constant 95 testScope.runTest { in transitionFromPowerGesture_whileGoingToSleep_isTrue() 100 testScope = testScope, in transitionFromPowerGesture_whileGoingToSleep_isTrue() 112 testScope.runTest { in transitionFromPowerGesture_whileAsleep_isTrue() 117 testScope = testScope, in transitionFromPowerGesture_whileAsleep_isTrue() 128 testScope.runTest { in transitionFromPowerGesture_whileWaking_isFalse() 133 testScope = testScope, in transitionFromPowerGesture_whileWaking_isFalse() 138 testScope = testScope, in transitionFromPowerGesture_whileWaking_isFalse() 150 testScope.runTest { in transitionFromPowerGesture_whileAwake_isFalse() [all …]
|
D | KeyguardStateCallbackInteractorTest.kt | 30 import com.android.systemui.kosmos.testScope 56 private val testScope = kosmos.testScope constant in com.android.systemui.keyguard.domain.interactor.KeyguardStateCallbackInteractorTest 65 systemClock.setCurrentTimeMillis(testScope.currentTime) in setUp() 75 testScope.runTest { in test_addCallback_passesInitialValues() 86 testScope.runTest { in test_lockscreenVisibility_notifyDismissSucceeded_ifNotVisible() 96 testScope = testScope, in test_lockscreenVisibility_notifyDismissSucceeded_ifNotVisible() 105 testScope = testScope, in test_lockscreenVisibility_notifyDismissSucceeded_ifNotVisible() 113 testScope.runTest { in test_lockscreenVisibility_reportsKeyguardShowingChanged() 122 testScope = testScope, in test_lockscreenVisibility_reportsKeyguardShowingChanged() 132 testScope = testScope, in test_lockscreenVisibility_reportsKeyguardShowingChanged()
|
D | FromLockscreenTransitionInteractorTest.kt | 38 import com.android.systemui.kosmos.testScope 57 spy(FakeKeyguardTransitionRepository(testScope = testScope)) in <lambda>() 60 private val testScope = kosmos.testScope constant in com.android.systemui.keyguard.domain.interactor.FromLockscreenTransitionInteractorTest 73 testScope.runTest { in testSurfaceBehindVisibility() 129 testScope.runTest { in draggingToPrimaryBouncerUpdateIsSent() 134 testScope, in draggingToPrimaryBouncerUpdateIsSent() 177 testScope.runTest { in testTransitionsToGone_whenDismissFlingWhileDismissable_flagEnabled() 184 testScope = testScope, in testTransitionsToGone_whenDismissFlingWhileDismissable_flagEnabled() 201 testScope.runTest { in testDoesNotTransitionToGone_whenDismissFlingWhileDismissable_flagDisabled() 218 testScope.runTest { in testDoesNotTransitionToGone_whenDismissFling_emitsNull() [all …]
|
D | FromAodTransitionInteractorTest.kt | 64 import com.android.systemui.kosmos.testScope 91 private val testScope = kosmos.testScope constant 114 testScope, in setup() 124 testScope.runTest { in testTransitionToLockscreen_onWakeup() 136 testScope.runTest { in testTransitionToOccluded_onWakeup_whenOccludingActivityOnTop() 149 testScope.runTest { in testTransitionToOccluded_onWakeUp_ifPowerButtonGestureDetected_fromAod_nonDismissibleKeyguard() 162 testScope.runTest { in testTransitionToGone_onWakeUp_ifPowerButtonGestureDetected_fromAod_dismissibleKeyguard() 176 testScope.runTest { in testTransitionToGone_onWakeUp_ifPowerButtonGestureDetected_fromGone() 185 testScope, in testTransitionToGone_onWakeUp_ifPowerButtonGestureDetected_fromGone() 199 testScope = testScope, in testTransitionToGone_onWakeUp_ifPowerButtonGestureDetected_fromGone() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/ui/viewmodel/ |
D | DeviceEntryForegroundViewModelTest.kt | 29 import com.android.systemui.kosmos.testScope 43 private val testScope = kosmos.testScope constant in com.android.systemui.keyguard.ui.viewmodel.DeviceEntryForegroundViewModelTest 59 testScope.runTest { in aodIconColorWhite() 66 testScope = testScope, in aodIconColorWhite() 75 testScope.runTest { in startsDozing_doNotShowAodVariant() 83 testScope = testScope, in startsDozing_doNotShowAodVariant() 93 testScope.runTest { in finishedDozing_showAodVariant() 100 testScope = testScope, in finishedDozing_showAodVariant() 109 testScope.runTest { in startTransitionToLockscreenFromDozing_doNotShowAodVariant() 116 testScope = testScope, in startTransitionToLockscreenFromDozing_doNotShowAodVariant() [all …]
|
D | KeyguardRootViewModelTest.kt | 48 import com.android.systemui.kosmos.testScope 85 private val testScope = kosmos.testScope constant 137 testScope.runTest { in defaultBurnInScaleEqualsOne() 144 testScope.runTest { in burnInLayerVisibility() 161 testScope.runTest { in iconContainer_isNotVisible_notOnKeyguard_dontShowAodIconsWhenShade() 167 testScope, in iconContainer_isNotVisible_notOnKeyguard_dontShowAodIconsWhenShade() 178 testScope.runTest { in iconContainer_isNotVisible_onKeyguard_dontShowWhenGoneToAodTransitionRunning() 184 testScope, in iconContainer_isNotVisible_onKeyguard_dontShowWhenGoneToAodTransitionRunning() 195 testScope.runTest { in iconContainer_isNotVisible_pulseExpanding_notBypassing() 207 testScope.runTest { in iconContainer_isVisible_notifsFullyHidden_bypassEnabled() [all …]
|
D | LockscreenToOccludedTransitionViewModelTest.kt | 37 import com.android.systemui.kosmos.testScope 60 private val testScope = kosmos.testScope constant 91 testScope.runTest { in lockscreenFadeOut_shadeNotExpanded() 106 testScope = testScope, in lockscreenFadeOut_shadeNotExpanded() 118 testScope.runTest { in lockscreenFadeOut_shadeExpanded() 133 testScope = testScope, in lockscreenFadeOut_shadeExpanded() 140 testScope.runTest { in lockscreenTranslationY() 155 testScope = testScope, in lockscreenTranslationY() 163 testScope.runTest { in lockscreenTranslationYIsCanceled() 177 testScope = testScope, in lockscreenTranslationYIsCanceled() [all …]
|
D | DreamingToLockscreenTransitionViewModelTest.kt | 35 import com.android.systemui.kosmos.testScope 48 private val testScope = kosmos.testScope constant 62 testScope.runTest { in shortcutsAlpha_bothShortcutsReceiveLastValue() 75 testScope, in shortcutsAlpha_bothShortcutsReceiveLastValue() 84 testScope.runTest { in dreamOverlayTranslationY() 98 testScope, in dreamOverlayTranslationY() 107 testScope.runTest { in dreamOverlayFadeOut() 120 testScope, in dreamOverlayFadeOut() 129 testScope.runTest { in lockscreenFadeIn() 141 testScope, in lockscreenFadeIn() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/lifecycle/ |
D | ExclusiveActivatableTest.kt | 22 import com.android.systemui.kosmos.testScope 36 private val testScope = kosmos.testScope constant 42 testScope.runTest { in activate() 46 underTest.activateIn(testScope) in activate() 54 testScope.runTest { in activate_andCancel() 59 underTest.activateIn(testScope, context = job) in activate_andCancel() 72 testScope.runTest { in activate_afterCancellation() 77 underTest.activateIn(testScope, context = job) in activate_afterCancellation() 87 underTest.activateIn(testScope) in activate_afterCancellation() 95 testScope.runTest { in activate_whileActive_throws() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/ |
D | ResourceTrimmerTest.kt | 18 import com.android.systemui.kosmos.testScope 44 private val testScope = kosmos.testScope constant in com.android.systemui.keyguard.ResourceTrimmerTest 64 applicationScope = testScope.backgroundScope, in setUp() 72 testScope.runTest { in dozeAodDisabled_sleep_doesntTrimMemory() 74 testScope.runCurrent() in dozeAodDisabled_sleep_doesntTrimMemory() 80 testScope.runTest { in dozeEnabled_sleepWithFullDozeAmount_doesntTrimMemory() 84 testScope.runCurrent() in dozeEnabled_sleepWithFullDozeAmount_doesntTrimMemory() 90 testScope.runTest { in dozeEnabled_sleepWithoutFullDozeAmount_doesntTrimMemory() 94 testScope.runCurrent() in dozeEnabled_sleepWithoutFullDozeAmount_doesntTrimMemory() 100 testScope.runTest { in aodEnabled_deviceWakesHalfWayThrough_doesNotTrimMemory() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/icon/domain/interactor/ |
D | NotificationIconsInteractorTest.kt | 26 import com.android.systemui.kosmos.testScope 64 private val testScope = kosmos.testScope constant 80 testScope.apply { in setup() 90 testScope.runTest { in filteredEntrySet() 97 testScope.runTest { in filteredEntrySet_noExpandedBubbles() 105 testScope.runTest { in filteredEntrySet_noAmbient() 115 testScope.runTest { in filteredEntrySet_noLowPriority() 122 testScope.runTest { in filteredEntrySet_noDismissed() 129 testScope.runTest { in filteredEntrySet_noRepliedMessages() 139 testScope.runTest { in filteredEntrySet_noPulsing_notifsNotFullyHidden() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/graphics/ |
D | ImageLoaderTest.kt | 36 private val testScope = TestScope(testDispatcher) constant 62 testScope.runTest { assertThat(imageLoader.loadDrawable(ImageLoader.Res(-1))).isNull() } in invalidResource_drawable_returnsNull() 66 testScope.runTest { assertThat(imageLoader.loadBitmap(ImageLoader.Res(-1))).isNull() } in invalidResource_bitmap_returnsNull() 70 testScope.runTest { in invalidUri_returnsNull() 76 testScope.runTest { in invalidFile_returnsNull() 82 testScope.runTest { in invalidIcon_loadDrawable_returnsNull() 88 testScope.runTest { in invalidIcon_loadSize_returnsNull() 95 testScope.runTest { in invalidIS_returnsNull() 106 testScope.runTest { in validBitmapResource_loadDrawable_returnsBitmapDrawable() 126 testScope.runTest { in validBitmapResource_loadBitmap_returnsBitmapDrawable() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/disableflags/data/repository/ |
D | DisableFlagsRepositoryTest.kt | 57 private val testScope = TestScope(UnconfinedTestDispatcher()) constant in com.android.systemui.statusbar.disableflags.data.repository.DisableFlagsRepositoryTest 76 testScope.backgroundScope, in setUp() 91 testScope.runTest { verify(commandQueue).addCallback(any()) } in disableFlags_noSubscribers_callbackStillRegistered() 95 testScope.runTest { in disableFlags_notifAlertsNotDisabled_notifAlertsEnabledTrue() 104 testScope.runTest { in disableFlags_notifAlertsDisabled_notifAlertsEnabledFalse() 118 testScope.runTest { in disableFlags_notifAlertsDisabled_differentDisplay_notifAlertsEnabledTrue() 135 testScope.runTest { in disableFlags_shadeNotDisabled_shadeEnabledTrue() 144 testScope.runTest { in disableFlags_shadeDisabled_shadeEnabledFalse() 158 testScope.runTest { in disableFlags_shadeDisabled_differentDisplay_shadeEnabledTrue() 175 testScope.runTest { in disableFlags_quickSettingsNotDisabled_quickSettingsEnabledTrue() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/util/settings/ |
D | SettingsProxyTest.kt | 53 private lateinit var testScope: TestScope variable in com.android.systemui.util.settings.SettingsProxyTest 57 testScope = TestScope(testDispatcher) in setUp() 58 mSettings = FakeSettingsProxy(testScope) in setUp() 64 testScope.runTest { in registerContentObserver_inputString_success() 72 testScope.runTest { in registerContentObserverSuspend_inputString_success() 80 testScope.runTest { in registerContentObserverAsync_inputString_success() 82 testScope.advanceUntilIdle() in registerContentObserverAsync_inputString_success() 89 testScope.runTest { in registerContentObserver_inputString_notifyForDescendants_true() 101 testScope.runTest { in registerContentObserverSuspend_inputString_notifyForDescendants_true() 113 testScope.runTest { in registerContentObserverAsync_inputString_notifyForDescendants_true() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/display/data/repository/ |
D | DisplayRepositoryTest.kt | 67 private val testScope = TestScope(UnconfinedTestDispatcher()) in <lambda>() constant 80 testScope.backgroundScope, in <lambda>() 87 testScope.backgroundScope, in <lambda>() 105 testScope.runTest { in <lambda>() 115 testScope.runTest { in <lambda>() 127 testScope.runTest { in <lambda>() 156 testScope.runTest { in <lambda>() 167 testScope.runTest { in <lambda>() 184 testScope.runTest { in <lambda>() 200 testScope.runTest { in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/shade/data/repository/ |
D | ShadeRepositoryImplTest.kt | 36 private val testScope = TestScope(testDispatcher) constant in com.android.systemui.shade.data.repository.ShadeRepositoryImplTest 42 underTest = ShadeRepositoryImpl(testScope) in setUp() 47 testScope.runTest { in updateQsExpansion() 62 testScope.runTest { in updateDragDownAmount() 77 testScope.runTest { in updateLegacyShadeExpansion() 92 testScope.runTest { in updateLegacyShadeTracking() 101 testScope.runTest { in updateLegacyLockscreenShadeTracking() 110 testScope.runTest { in updateLegacyQsTracking() 119 testScope.runTest { in updateLegacyExpandedOrAwaitingInputTransfer() 128 testScope.runTest { in updateUdfpsTransitionToFullShadeProgress() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/inputdevice/tutorial/domain/interactor/ |
D | TutorialSchedulerInteractorTest.kt | 27 import com.android.systemui.kosmos.testScope 47 private val testScope = kosmos.testScope constant 57 testScope.backgroundScope, in setup() 67 testScope.backgroundScope, in setup() 74 testScope.advanceTimeBy(LAUNCH_DELAY) in <lambda>() 82 testScope.advanceTimeBy(LAUNCH_DELAY) in <lambda>() 91 testScope.advanceTimeBy(A_SHORT_PERIOD_OF_TIME) in <lambda>() 100 testScope.advanceTimeBy(LAUNCH_DELAY) in <lambda>() 108 testScope.advanceTimeBy(A_SHORT_PERIOD_OF_TIME) in connectKeyboard_thenTouchpad_delayElapse_notifyForBoth() 110 testScope.advanceTimeBy(REMAINING_TIME) in connectKeyboard_thenTouchpad_delayElapse_notifyForBoth() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/domain/interactor/ |
D | HeadsUpNotificationInteractorTest.kt | 28 import com.android.systemui.kosmos.testScope 51 FakeKeyguardTransitionRepository(initInLockscreen = false, testScope = testScope) in <lambda>() 53 private val testScope = kosmos.testScope constant 66 testScope.runTest { in hasPinnedRows_emptyList_false() 74 testScope.runTest { in hasPinnedRows_noPinnedRows_false() 90 testScope.runTest { in hasPinnedRows_hasPinnedRows_true() 106 testScope.runTest { in hasPinnedRows_rowGetsPinnedNormally_true() 128 testScope.runTest { in hasPinnedRows_rowGetsPinnedByUser_true() 150 testScope.runTest { in hasPinnedRows_rowGetsUnPinned_false() 172 testScope.runTest { in activeRows_noRows_isEmpty() [all …]
|
D | ActiveNotificationsInteractorTest.kt | 25 import com.android.systemui.kosmos.testScope 45 private val testScope = kosmos.testScope constant in com.android.systemui.statusbar.notification.domain.interactor.ActiveNotificationsInteractorTest 52 testScope.runTest { in testAllNotificationsCount() 64 testScope.runTest { in ongoingCallNotification_noCallNotifs_null() 83 testScope.runTest { in ongoingCallNotification_incomingCallNotif_null() 103 testScope.runTest { in ongoingCallNotification_screeningCallNotif_null() 123 testScope.runTest { in ongoingCallNotification_ongoingCallNotif_hasNotif() 139 testScope.runTest { in ongoingCallNotification_multipleCallNotifs_usesEarlierNotif() 167 testScope.runTest { in promotedOngoingNotifications_flagOff_empty() 189 testScope.runTest { in promotedOngoingNotifications_nonePromoted_empty() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/ |
D | NotificationListViewModelTest.kt | 30 import com.android.systemui.kosmos.testScope 66 private val testScope = kosmos.testScope constant 102 testScope.runTest { in isImportantForAccessibility_falseWhenNoNotifs() 109 testScope.runCurrent() in isImportantForAccessibility_falseWhenNoNotifs() 117 testScope.runTest { in isImportantForAccessibility_trueWhenNotifs() 132 testScope.runTest { in isImportantForAccessibility_trueWhenNotKeyguard() 149 testScope.runTest { in shouldShowEmptyShadeView_trueWhenNoNotifs() 164 testScope.runTest { in shouldShowEmptyShadeView_falseWhenNotifs() 177 testScope.runTest { in shouldShowEmptyShadeView_falseWhenQsExpandedDefault() 192 testScope.runTest { in shouldShowEmptyShadeView_trueWhenQsExpandedInSplitShade() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/deviceentry/data/repository/ |
D | DeviceEntryFaceAuthRepositoryTest.kt | 74 import com.android.systemui.kosmos.testScope 147 private val testScope by lazy { kosmos.testScope } in <lambda>() constant 206 testScope.backgroundScope, in createDeviceEntryFaceAuthRepositoryImpl() 230 testScope.runTest { in faceAuthRunsAndProvidesAuthStatusUpdates() 264 testScope.runTest { in faceAuthDoesNotRunWhileItIsAlreadyRunning() 280 testScope.runTest { in faceLockoutStatusIsPropagated() 302 testScope.runTest { in faceDetectionSupportIsTheCorrectValue() 336 testScope.runTest { in cancelStopsFaceAuthentication() 352 fun cancelInvokedWithoutFaceAuthRunningIsANoop() = testScope.runTest { underTest.cancel() } in <lambda>() 356 testScope.runTest { in faceDetectionRunsAndPropagatesDetectionStatus() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/util/kotlin/ |
D | BooleanFlowOperatorsTest.kt | 24 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/haptics/slider/compose/ui/ |
D | SliderHapticsViewModelTest.kt | 29 import com.android.systemui.kosmos.testScope 46 private val testScope = kosmos.testScope constant in com.android.systemui.haptics.slider.compose.ui.SliderHapticsViewModelTest 59 underTest.activateIn(testScope) in setUp() 64 testScope.runTest { in onActivated_startsRunning() 66 testScope.runCurrent() in onActivated_startsRunning() 74 testScope.runTest { in onDragStart_goesToUserStartedDragging() 86 testScope.runTest { in onValueChange_whileUserStartedDragging_goesToUserDragging() 101 testScope.runTest { in onValueChange_whileUserDragging_staysInUserDragging() 117 testScope.runTest { in onValueChange_whileNOTHING_goesToProgramStartedDragging() 128 testScope.runTest { in onValueChange_whileProgramStartedDragging_goesToProgramDragging() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/authentication/domain/interactor/ |
D | AuthenticationInteractorTest.kt | 33 import com.android.systemui.kosmos.testScope in <lambda>() 51 private val testScope = kosmos.testScope in <lambda>() constant in com.android.systemui.authentication.domain.interactor.AuthenticationInteractorTest 55 testScope.collectLastValue(underTest.onAuthenticationResult) in <lambda>() 57 testScope.collectLastValue(underTest.failedAuthenticationAttempts) in <lambda>() 61 testScope.runTest { in <lambda>() 75 testScope.runTest { in <lambda>() 87 testScope.runTest { in <lambda>() 95 testScope.runTest { in <lambda>() 103 testScope.runTest { in <lambda>() 110 testScope.runTest { in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyboard/shortcut/ui/viewmodel/ |
D | ShortcutCustomizationViewModelTest.kt | 49 import com.android.systemui.kosmos.testScope 73 private val testScope = kosmos.testScope constant in com.android.systemui.keyboard.shortcut.ui.viewmodel.ShortcutCustomizationViewModelTest 82 testScope.backgroundScope.launch { viewModel.activate() } in setup() 87 testScope.runTest { in uiState_inactiveByDefault() 96 testScope.runTest { in uiState_correctlyUpdatedWhenAddShortcutCustomizationIsRequested() 113 testScope.runTest { in uiState_correctlyUpdatedWhenResetShortcutCustomizationIsRequested() 123 testScope.runTest { in uiState_correctlyUpdatedWhenDeleteShortcutCustomizationIsRequested() 133 testScope.runTest { in uiState_inactiveAfterDialogIsDismissed() 143 testScope.runTest { in uiState_pressedKeys_emptyByDefault() 152 testScope.runTest { in uiState_becomeInactiveAfterSuccessfullySettingShortcut() [all …]
|