Home
last modified time | relevance | path

Searched refs:ClockSizeSetting (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/shared/model/
DClockSize.kt44 enum class ClockSizeSetting( class
51 private val TAG = ClockSizeSetting::class.simpleName!!
52 fun fromSettingValue(value: Int): ClockSizeSetting { in fromSettingValue()
53 for (enumVal in enumValues<ClockSizeSetting>()) { in fromSettingValue()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/viewmodel/
DKeyguardPreviewClockViewModel.kt20 import com.android.systemui.keyguard.shared.model.ClockSizeSetting
36 interactor.selectedClockSize.map { it == ClockSizeSetting.DYNAMIC } in <lambda>()
39 interactor.selectedClockSize.map { it == ClockSizeSetting.SMALL } in <lambda>()
43 val selectedClockSize: StateFlow<ClockSizeSetting?> = interactor.selectedClockSize
DKeyguardPreviewSmartspaceViewModel.kt21 import com.android.systemui.keyguard.shared.model.ClockSizeSetting in <lambda>()
38 val selectedClockSize: StateFlow<ClockSizeSetting> = interactor.selectedClockSize in <lambda>()
51 ClockSizeSetting.DYNAMIC -> currentClockId == "DIGITAL_CLOCK_WEATHER" in <lambda>()
52 ClockSizeSetting.SMALL -> false in <lambda>()
DKeyguardClockViewModel.kt30 import com.android.systemui.keyguard.shared.model.ClockSizeSetting in <lambda>()
66 if (selectedSize == ClockSizeSetting.SMALL) ClockSize.SMALL else clockSize in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/
DKeyguardPreviewSmartspaceViewBinder.kt26 import com.android.systemui.keyguard.shared.model.ClockSizeSetting
46 ClockSizeSetting.DYNAMIC -> in bind()
51 ClockSizeSetting.SMALL -> in bind()
DKeyguardPreviewClockViewBinder.kt39 import com.android.systemui.keyguard.shared.model.ClockSizeSetting in <lambda>()
202 ClockSizeSetting.DYNAMIC -> VISIBLE in <lambda>()
203 ClockSizeSetting.SMALL -> INVISIBLE in <lambda>()
208 ClockSizeSetting.DYNAMIC -> INVISIBLE in <lambda>()
209 ClockSizeSetting.SMALL -> VISIBLE in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/
DKeyguardClockRepository.kt29 import com.android.systemui.keyguard.shared.model.ClockSizeSetting
62 val selectedClockSize: StateFlow<ClockSizeSetting>
100 override val selectedClockSize: StateFlow<ClockSizeSetting> = in setClockSize()
158 private fun getClockSize(): ClockSizeSetting { in setClockSize()
159 return ClockSizeSetting.fromSettingValue( in setClockSize()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/keyguard/data/repository/
DFakeKeyguardClockRepository.kt21 import com.android.systemui.keyguard.shared.model.ClockSizeSetting
37 private val _selectedClockSize = MutableStateFlow(ClockSizeSetting.DYNAMIC)
59 fun setSelectedClockSize(size: ClockSizeSetting) { in setSelectedClockSize()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/data/repository/
DKeyguardClockRepositoryTest.kt27 import com.android.systemui.keyguard.shared.model.ClockSizeSetting
81 Truth.assertThat(value()).isEqualTo(ClockSizeSetting.SMALL) in testSelectedClockSize_small()
89 Truth.assertThat(value()).isEqualTo(ClockSizeSetting.DYNAMIC) in testSelectedClockSize_dynamic()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/
DKeyguardClockInteractor.kt27 import com.android.systemui.keyguard.shared.model.ClockSizeSetting in <lambda>()
65 val selectedClockSize: StateFlow<ClockSizeSetting> = keyguardClockRepository.selectedClockSize in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ui/viewmodel/
DKeyguardClockViewModelTest.kt32 import com.android.systemui.keyguard.shared.model.ClockSizeSetting
192 fakeKeyguardClockRepository.setSelectedClockSize(ClockSizeSetting.SMALL) in testClockSize_alwaysSmallClockSize()
205 fakeKeyguardClockRepository.setSelectedClockSize(ClockSizeSetting.DYNAMIC) in testClockSize_dynamicClockSize()