Home
last modified time | relevance | path

Searched refs:isSwitchOn (Results 1 – 3 of 3) sorted by relevance

/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/picker/notifications/ui/viewmodel/
DNotificationSectionViewModelTest.kt83 val isSwitchOn = collectLastValue(underTest.isSwitchOn()) in toggles back and forth() constant
85 val initialIsSwitchOn = isSwitchOn() in toggles back and forth()
88 assertThat(isSwitchOn()).isNotEqualTo(initialIsSwitchOn) in toggles back and forth()
91 assertThat(isSwitchOn()).isEqualTo(initialIsSwitchOn) in toggles back and forth()
/packages/apps/ThemePicker/src/com/android/customization/picker/notifications/ui/binder/
DNotificationSectionBinder.kt47 launch { viewModel.isSwitchOn().collect { switch.isChecked = it } } in bind()
/packages/apps/ThemePicker/src/com/android/customization/picker/notifications/ui/viewmodel/
DNotificationSectionViewModel.kt38 suspend fun isSwitchOn(): Flow<Boolean> = interactor.isShowNotificationsOnLockScreenEnabled() in isSwitchOn() method in com.android.customization.picker.notifications.ui.viewmodel.NotificationSectionViewModel