Home
last modified time | relevance | path

Searched refs:ClockSize (Results 1 – 15 of 15) sorted by relevance

/packages/apps/ThemePicker/src/com/android/customization/picker/clock/shared/
DClockSize.kt22 enum class ClockSize { class
27 @ThemesUserEventLogger.ClockSize
28 fun ClockSize.toClockSizeForLogging(): Int { in ClockSize() method
30 ClockSize.DYNAMIC -> StyleEnums.CLOCK_SIZE_DYNAMIC in ClockSize()
31 ClockSize.SMALL -> StyleEnums.CLOCK_SIZE_SMALL in ClockSize()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/picker/clock/domain/interactor/
DClockPickerInteractorTest.kt5 import com.android.customization.picker.clock.shared.ClockSize
60 underTest.setClockSize(ClockSize.DYNAMIC) in <lambda>()
61 Truth.assertThat(observedClockSize()).isEqualTo(ClockSize.DYNAMIC) in <lambda>()
63 underTest.setClockSize(ClockSize.SMALL) in <lambda>()
64 Truth.assertThat(observedClockSize()).isEqualTo(ClockSize.SMALL) in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/view/
DClockCarouselView.kt32 import com.android.customization.picker.clock.shared.ClockSize in <lambda>()
132 clockSize: ClockSize, in <lambda>()
163 ClockSize.DYNAMIC -> prepareDynamicClockView(motionLayout, endId) in <lambda>()
164 ClockSize.SMALL -> prepareSmallClockView(motionLayout, endId) in <lambda>()
177 ClockSize.DYNAMIC -> onDynamicClockViewTransition(progress) in <lambda>()
178 ClockSize.SMALL -> onSmallClockViewTransition(progress) in <lambda>()
297 ClockSize.DYNAMIC -> onDynamicClockViewTransition(if (isStart) 0f else 1f) in <lambda>()
298 ClockSize.SMALL -> onSmallClockViewTransition(if (isStart) 0f else 1f) in <lambda>()
385 val clockSize: ClockSize, in <lambda>()
419 ClockSize.DYNAMIC -> clockViewFactory.getLargeView(clockId) in <lambda>()
[all …]
/packages/apps/ThemePicker/tests/common/src/com/android/customization/module/logging/
DTestThemesUserEventLogger.kt20 import com.android.customization.module.logging.ThemesUserEventLogger.ClockSize
30 @ClockSize private var clockSize: Int = StyleEnums.CLOCK_SIZE_UNSPECIFIED
51 override fun logClockSizeApplied(@ClockSize clockSize: Int) { in logClockSizeApplied()
63 @ClockSize
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/data/repository/
DClockPickerRepositoryImpl.kt22 import com.android.customization.picker.clock.shared.ClockSize in <lambda>()
144 override val selectedClockSize: SharedFlow<ClockSize> = in <lambda>()
151 .map { isDynamic -> if (isDynamic) ClockSize.DYNAMIC else ClockSize.SMALL } in <lambda>()
159 override suspend fun setClockSize(size: ClockSize) { in <lambda>()
162 value = if (size == ClockSize.DYNAMIC) 1 else 0, in <lambda>()
DClockPickerRepository.kt21 import com.android.customization.picker.clock.shared.ClockSize
34 val selectedClockSize: Flow<ClockSize>
51 suspend fun setClockSize(size: ClockSize)
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/picker/clock/data/repository/
DFakeClockPickerRepository.kt22 import com.android.customization.picker.clock.shared.ClockSize in <lambda>()
56 private val _selectedClockSize = MutableStateFlow(ClockSize.SMALL) in <lambda>()
57 override val selectedClockSize: Flow<ClockSize> = _selectedClockSize.asStateFlow() in <lambda>()
73 override suspend fun setClockSize(size: ClockSize) { in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/binder/
DClockSettingsBinder.kt41 import com.android.customization.picker.clock.shared.ClockSize in <lambda>()
95 R.id.radio_dynamic -> viewModel.setClockSize(ClockSize.DYNAMIC) in <lambda>()
96 R.id.radio_small -> viewModel.setClockSize(ClockSize.SMALL) in <lambda>()
207 ClockSize.DYNAMIC -> clockViewFactory.getLargeView(clockId) in <lambda>()
208 ClockSize.SMALL -> clockViewFactory.getSmallView(clockId) in <lambda>()
215 ClockSize.DYNAMIC -> { in <lambda>()
229 ClockSize.SMALL -> { in <lambda>()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/picker/clock/ui/viewmodel/
DClockSettingsViewModelTest.kt11 import com.android.customization.picker.clock.shared.ClockSize in <lambda>()
191 underTest.setClockSize(ClockSize.DYNAMIC) in <lambda>()
192 assertThat(observedClockSize()).isEqualTo(ClockSize.DYNAMIC) in <lambda>()
195 underTest.setClockSize(ClockSize.SMALL) in <lambda>()
196 assertThat(observedClockSize()).isEqualTo(ClockSize.SMALL) in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/shared/model/
DClockSnapshotModel.kt22 import com.android.customization.picker.clock.shared.ClockSize
27 val clockSize: ClockSize? = null,
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/domain/interactor/
DClockPickerInteractor.kt23 import com.android.customization.picker.clock.shared.ClockSize in <lambda>()
54 val selectedClockSize: Flow<ClockSize> = repository.selectedClockSize in <lambda>()
76 suspend fun setClockSize(size: ClockSize) { in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/module/logging/
DThemesUserEventLogger.kt34 fun logClockSizeApplied(@ClockSize clockSize: Int) in logThemeColorApplied()
59 annotation class ClockSize in logThemeColorApplied() class
DThemesUserEventLoggerImpl.kt53 import com.android.customization.module.logging.ThemesUserEventLogger.ClockSize
201 override fun logClockSizeApplied(@ClockSize clockSize: Int) { in logClockSizeApplied()
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/viewmodel/
DClockCarouselViewModel.kt25 import com.android.customization.picker.clock.shared.ClockSize in <lambda>()
75 val selectedClockSize: Flow<ClockSize> = interactor.selectedClockSize in <lambda>()
DClockSettingsViewModel.kt27 import com.android.customization.picker.clock.shared.ClockSize in <lambda>()
263 val selectedClockSize: Flow<ClockSize> = clockPickerInteractor.selectedClockSize in <lambda>()
265 fun setClockSize(size: ClockSize) { in <lambda>()