Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/clocks/
DClockRegistryTest.kt28 import com.android.systemui.plugins.clocks.ClockId
80 private fun failFactory(clockId: ClockId): ClockController { in failFactory()
85 private fun failThumbnail(clockId: ClockId): Drawable? { in failThumbnail()
125 private val createCallbacks = mutableMapOf<ClockId, (ClockId) -> ClockController>()
126 private val thumbnailCallbacks = mutableMapOf<ClockId, (ClockId) -> Drawable?>()
131 override fun getClockThumbnail(id: ClockId): Drawable? = thumbnailCallbacks[id]!!(id) in getClocks()
135 id: ClockId, in addClock()
136 create: (ClockId) -> ClockController = ::failFactory, in addClock()
137 getThumbnail: (ClockId) -> Drawable? = ::failThumbnail in addClock()
DDefaultClockProviderTest.kt29 import com.android.systemui.plugins.clocks.ClockId
53 private fun DefaultClockProvider.createClock(id: ClockId): DefaultClockController = in createClock()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/clocks/
DClockProviderPlugin.kt31 typealias ClockId = String typealias
54 fun getClockThumbnail(id: ClockId): Drawable? in initialize()
267 val clockId: ClockId,
312 val clockId: ClockId? = null,
/frameworks/native/services/inputflinger/rust/
Dinput_filter_thread.rs34 use nix::{sys::time::TimeValLike, time::clock_gettime, time::ClockId};
212 self.loop_once(clock_gettime(ClockId::CLOCK_MONOTONIC).unwrap().num_nanoseconds()); in loopOnce()
279 use nix::{sys::time::TimeValLike, time::clock_gettime, time::ClockId};
309 let now = clock_gettime(ClockId::CLOCK_MONOTONIC).unwrap().num_milliseconds(); in test_notify_timeout_called_after_timeout_expired()
323 let now = clock_gettime(ClockId::CLOCK_MONOTONIC).unwrap().num_milliseconds(); in test_notify_timeout_not_called_before_timeout_expired()
Dslow_keys_filter.rs220 use nix::{sys::time::TimeValLike, time::clock_gettime, time::ClockId};
288 let down_time = clock_gettime(ClockId::CLOCK_MONOTONIC).unwrap().num_nanoseconds(); in test_notify_key_for_external_keyboard_when_key_pressed_for_threshold_time()
309 let up_time = clock_gettime(ClockId::CLOCK_MONOTONIC).unwrap().num_nanoseconds(); in test_notify_key_for_external_keyboard_when_key_pressed_for_threshold_time()
339 let mut now = clock_gettime(ClockId::CLOCK_MONOTONIC).unwrap().num_nanoseconds(); in test_notify_key_for_external_keyboard_when_key_not_pressed_for_threshold_time()
349 now = clock_gettime(ClockId::CLOCK_MONOTONIC).unwrap().num_nanoseconds(); in test_notify_key_for_external_keyboard_when_key_not_pressed_for_threshold_time()
372 let now = clock_gettime(ClockId::CLOCK_MONOTONIC).unwrap().num_nanoseconds(); in test_notify_key_for_external_keyboard_when_device_removed_before_threshold_time()
Dinput_filter.rs404 use nix::{sys::time::TimeValLike, time::clock_gettime, time::ClockId};
563 let now = clock_gettime(ClockId::CLOCK_MONOTONIC).unwrap().num_nanoseconds(); in sleepUntil()
/frameworks/base/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/
DDefaultClockProvider.kt22 import com.android.systemui.plugins.clocks.ClockId
63 override fun getClockThumbnail(id: ClockId): Drawable? { in getClockThumbnail()
DClockRegistry.kt33 import com.android.systemui.plugins.clocks.ClockId in <lambda>()
87 val fallbackClockId: ClockId = DEFAULT_CLOCK_ID,
106 private val availableClocks = ConcurrentHashMap<ClockId, ClockInfo>()
375 var currentClockId: ClockId
568 fun getClockThumbnail(clockId: ClockId): Drawable? = in getClockThumbnail()
571 fun createExampleClock(clockId: ClockId): ClockController? = createClock(clockId) in getClockThumbnail()
611 private fun createClock(targetClockId: ClockId): ClockController? { in createClock()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/keyguard/data/repository/
DFakeKeyguardClockRepository.kt23 import com.android.systemui.plugins.clocks.ClockId
41 override val currentClockId: Flow<ClockId> = _currentClockId
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/
DKeyguardClockRepository.kt31 import com.android.systemui.plugins.clocks.ClockId
65 val currentClockId: Flow<ClockId>
114 override val currentClockId: Flow<ClockId> = in setClockSize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/
DKeyguardClockInteractor.kt31 import com.android.systemui.plugins.clocks.ClockId in <lambda>()
67 val currentClockId: Flow<ClockId> = keyguardClockRepository.currentClockId in <lambda>()
140 val renderedClockId: ClockId in <lambda>()