Home
last modified time | relevance | path

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

/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/view/
DClockViewFactoryImpl.kt53 override fun getController(clockId: String): ClockController { in <lambda>()
54 return clockControllers[clockId] in <lambda>()
55 ?: initClockController(clockId).also { clockControllers[clockId] = it } in <lambda>()
62 override fun getLargeView(clockId: String): View { in <lambda>()
63 return getController(clockId).largeClock.let { in <lambda>()
73 override fun getSmallView(clockId: String): View { in <lambda>()
75 smallClockFrames[clockId] in <lambda>()
77 it.addView(getController(clockId).smallClock.view) in <lambda>()
78 smallClockFrames[clockId] = it in <lambda>()
86 override fun setReactiveTouchInteractionEnabled(clockId: String, enable: Boolean) { in <lambda>()
[all …]
DClockViewFactory.kt25 fun getController(clockId: String): ClockController
31 fun getLargeView(clockId: String): View
37 fun getSmallView(clockId: String): View
40 fun setReactiveTouchInteractionEnabled(clockId: String, enable: Boolean)
44 fun updateColor(clockId: String, @ColorInt seedColor: Int?)
48 fun updateTimeFormat(clockId: String)
DClockCarouselView.kt188 val scalingDownClockId = adapter.clocks[carousel.currentIndex].clockId in <lambda>()
192 val scalingUpClockId = adapter.clocks[scalingUpIdx].clockId in <lambda>()
410 val clockId = clocks[index].clockId in <lambda>() constant
415 clockViewFactory.setReactiveTouchInteractionEnabled(clockId, false) in <lambda>()
419 ClockSize.DYNAMIC -> clockViewFactory.getLargeView(clockId) in <lambda>()
420 ClockSize.SMALL -> clockViewFactory.getSmallView(clockId) in <lambda>()
438 clockId, in <lambda>()
454 clockId: String, in <lambda>()
462 val controller = clockViewFactory.getController(clockId) in <lambda>()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/picker/clock/ui/
DFakeClockViewFactory.kt40 override fun getController(clockId: String): ClockController = clockControllers.get(clockId)!! in <lambda>()
42 override fun setReactiveTouchInteractionEnabled(clockId: String, enable: Boolean) { in <lambda>()
46 override fun getLargeView(clockId: String): View { in <lambda>()
50 override fun getSmallView(clockId: String): View { in <lambda>()
58 override fun updateColor(clockId: String, seedColor: Int?) { in <lambda>()
66 override fun updateTimeFormat(clockId: String) { in <lambda>()
86 clock.clockId to in <lambda>()
89 id = clock.clockId, in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/domain/interactor/
DClockPickerInteractor.kt44 repository.selectedClock.map { clock -> clock.clockId }.distinctUntilChanged() in <lambda>()
56 suspend fun setSelectedClock(clockId: String) { in <lambda>()
58 setClockOption(ClockSnapshotModel(clockId = clockId)) in <lambda>()
94 clockSnapshotModel.clockId?.let { repository.setSelectedClock(it) } in <lambda>()
108 clockId = latestOption?.clockId ?: selectedClockId.firstOrNull(), in <lambda>()
DClockPickerSnapshotRestorer.kt44 TextUtils.isEmpty(optionToRestore.clockId) || in <lambda>()
45 optionToRestore.clockId != snapshot.args[KEY_CLOCK_ID] || in <lambda>()
74 clockSnapshotModel.clockId?.let { put(KEY_CLOCK_ID, it) } in <lambda>()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/picker/clock/data/repository/
DFakeClockPickerRepository.kt34 private val selectedClockId = MutableStateFlow(fakeClocks[0].clockId) in <lambda>()
45 val selectedClock = fakeClocks.find { clock -> clock.clockId == selectedClockId } in <lambda>()
48 clockId = selectedClock.clockId, in <lambda>()
59 override suspend fun setSelectedClock(clockId: String) { in <lambda>()
60 selectedClockId.value = clockId in <lambda>()
/packages/apps/DeskClock/src/com/android/alarmclock/
DDigitalAppWidgetCityViewsFactory.kt160 private fun update(rv: RemoteViews, city: City, clockId: Int, labelId: Int, dayId: Int) { in update()
161 rv.setCharSequence(clockId, "setFormat12Hour", Utils.get12ModeFormat(0.4f, false)) in update()
162 rv.setCharSequence(clockId, "setFormat24Hour", Utils.get24ModeFormat(false)) in update()
166 rv.setTextViewTextSize(clockId, TypedValue.COMPLEX_UNIT_PX, fontSize * mFontScale) in update()
167 rv.setString(clockId, "setTimeZone", city.timeZone.id) in update()
184 rv.setViewVisibility(clockId, View.VISIBLE) in update()
188 private fun hide(clock: RemoteViews, clockId: Int, labelId: Int, dayId: Int) { in hide()
190 clock.setViewVisibility(clockId, View.INVISIBLE) in hide()
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/data/repository/
DClockPickerRepositoryImpl.kt59 it.toModel(isSelected = it.clockId == activeClockId) in <lambda>()
93 .find { clockMetadata -> clockMetadata.clockId == activeClockId } in <lambda>()
121 override suspend fun setSelectedClock(clockId: String) { in <lambda>()
123 val newSettings = oldSettings.copy(clockId = clockId) in <lambda>()
189 clockId = clockId, in <lambda>()
DClockPickerRepository.kt36 suspend fun setSelectedClock(clockId: String)
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/viewmodel/
DClockCarouselViewModel.kt64 clockViewFactory.getController(it.clockId).config.description in <lambda>()
66 ClockCarouselItemViewModel(it.clockId, it.isSelected, contentDescription) in <lambda>()
116 val index = allClockIds.indexOfFirst { it.clockId == selectedClockId } in <lambda>()
129 fun setSelectedClock(clockId: String) { in <lambda>()
133 interactor.setSelectedClock(clockId) in <lambda>()
134 logger.logClockApplied(clockId) in <lambda>()
DClockSettingsViewModel.kt58 private val getIsReactiveToTone: (clockId: String?) -> Boolean, in <lambda>()
80 combine(selectedClockId, clockPickerInteractor.selectedColorId) { clockId, colorId -> in <lambda>() method
84 getIsReactiveToTone(clockId) in <lambda>()
320 private val getIsReactiveToTone: (clockId: String?) -> Boolean, in <lambda>()
DClockCarouselItemViewModel.kt19 val clockId: String, constant in com.android.customization.picker.clock.ui.viewmodel.ClockCarouselItemViewModel
/packages/inputmethods/LatinIME/native/jni/src/utils/
Dprofiler.h31 Profiler(const clockid_t clockId) in Profiler() argument
32 : mClockId(clockId), mStartTime(getTimeInMicroSec()), mStartTimes(), mTimes(), in Profiler()
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/binder/
DClockSettingsBinder.kt200 .collect { (clockId, size) -> in <lambda>() method
203 clockViewFactory.setReactiveTouchInteractionEnabled(clockId, true) in <lambda>()
207 ClockSize.DYNAMIC -> clockViewFactory.getLargeView(clockId) in <lambda>()
208 ClockSize.SMALL -> clockViewFactory.getSmallView(clockId) in <lambda>()
DClockCarouselViewBinder.kt70 viewModel.setSelectedClock(clock.clockId) in <lambda>()
84 it.forEach { clock -> clockViewFactory.updateTimeFormat(clock.clockId) } in <lambda>()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/picker/clock/domain/interactor/
DClockPickerInteractorTest.kt52 underTest.setSelectedClock(FakeClockPickerRepository.fakeClocks[1].clockId) in <lambda>()
54 .isEqualTo(FakeClockPickerRepository.fakeClocks[1].clockId) in <lambda>()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/picker/clock/ui/viewmodel/
DClockSettingsViewModelTest.kt48 private val getIsReactiveToTone: (clockId: String?) -> Boolean = { clockId -> in <lambda>() method
49 when (clockId) { in <lambda>()
DClockCarouselViewModelTest.kt55 clockId = FakeClockPickerRepository.CLOCK_ID_0, in <lambda>()
95 underTest.setSelectedClock(FakeClockPickerRepository.fakeClocks[2].clockId) in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/shared/model/
DClockMetadataModel.kt25 val clockId: String, constant in com.android.customization.picker.clock.shared.model.ClockMetadataModel
DClockSnapshotModel.kt26 val clockId: String? = null, constant in com.android.customization.picker.clock.shared.model.ClockSnapshotModel
/packages/apps/ThemePicker/src/com/android/customization/module/logging/
DThemesUserEventLogger.kt30 fun logClockApplied(clockId: String) in logThemeColorApplied()
DThemesUserEventLoggerImpl.kt187 override fun logClockApplied(clockId: String) { in logClockApplied()
190 .setClockPackageHash(getIdHashCode(clockId)) in logClockApplied()
/packages/apps/ThemePicker/tests/common/src/com/android/customization/module/logging/
DTestThemesUserEventLogger.kt47 override fun logClockApplied(clockId: String) {} in logClockApplied()
/packages/apps/ThemePicker/src/com/android/customization/module/
DThemePickerInjector.kt516 ) { clockId -> in <lambda>() method
517 clockId?.let { clockViewFactory.getController(clockId).config.isReactiveToTone } in <lambda>()