Searched refs:ClockId (Results 1 – 11 of 11) sorted by relevance
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/clocks/ |
D | ClockRegistryTest.kt | 28 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()
|
D | DefaultClockProviderTest.kt | 29 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/ |
D | ClockProviderPlugin.kt | 31 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/ |
D | input_filter_thread.rs | 34 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()
|
D | slow_keys_filter.rs | 220 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()
|
D | input_filter.rs | 404 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/ |
D | DefaultClockProvider.kt | 22 import com.android.systemui.plugins.clocks.ClockId 63 override fun getClockThumbnail(id: ClockId): Drawable? { in getClockThumbnail()
|
D | ClockRegistry.kt | 33 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/ |
D | FakeKeyguardClockRepository.kt | 23 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/ |
D | KeyguardClockRepository.kt | 31 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/ |
D | KeyguardClockInteractor.kt | 31 import com.android.systemui.plugins.clocks.ClockId in <lambda>() 67 val currentClockId: Flow<ClockId> = keyguardClockRepository.currentClockId in <lambda>() 140 val renderedClockId: ClockId in <lambda>()
|