Home
last modified time | relevance | path

Searched refs:stickyKeys (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/stickykeys/
DStickyKeysLogger.kt29 fun logNewStickyKeysReceived(stickyKeys: Map<ModifierKey, Locked>) { in logNewStickyKeysReceived()
33 { str1 = stickyKeys.toString() }, in logNewStickyKeysReceived()
38 fun logNewUiState(stickyKeys: Map<ModifierKey, Locked>) { in logNewUiState()
42 { str1 = stickyKeys.toString() }, in logNewUiState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyboard/stickykeys/ui/viewmodel/
DStickyKeysIndicatorViewModelTest.kt158 val stickyKeys by collectLastValue(viewModel.indicatorContent) in emitsStickyKeysListWhenStickyKeyIsPressed() constant
163 assertThat(stickyKeys).isEqualTo(mapOf(ALT to Locked(false))) in emitsStickyKeysListWhenStickyKeyIsPressed()
170 val stickyKeys by collectLastValue(viewModel.indicatorContent) in emitsEmptyListWhenNoStickyKeysAreActive() constant
175 assertThat(stickyKeys).isEqualTo(emptyMap<ModifierKey, Locked>()) in emitsEmptyListWhenNoStickyKeysAreActive()
182 val stickyKeys by collectLastValue(viewModel.indicatorContent) in passesAllStickyKeysToDialog() constant
190 assertThat(stickyKeys).isEqualTo(mapOf( in passesAllStickyKeysToDialog()
201 val stickyKeys by collectLastValue(viewModel.indicatorContent) in showsOnlyLockedStateIfKeyIsStickyAndLocked() constant
208 assertThat(stickyKeys).isEqualTo(mapOf(ALT to Locked(true))) in showsOnlyLockedStateIfKeyIsStickyAndLocked()
215 val stickyKeys by collectLastValue(viewModel.indicatorContent) in doesNotChangeOrderOfKeysIfTheyBecomeLocked() constant
222 val previousShiftIndex = stickyKeys?.toList()?.indexOf(SHIFT to Locked(false)) in doesNotChangeOrderOfKeysIfTheyBecomeLocked()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/stickykeys/ui/
DStickyKeysIndicatorCoordinator.kt42 viewModel.indicatorContent.collect { stickyKeys -> in <lambda>() method
43 stickyKeysLogger.logNewUiState(stickyKeys) in <lambda>()
44 if (stickyKeys.isEmpty()) { in <lambda>()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/keyboard/stickykeys/ui/view/
DStickyKeysIndicator.kt60 val stickyKeys by viewModel.indicatorContent.collectAsStateWithLifecycle(emptyMap()) in StickyKeysIndicator() constant
61 StickyKeysIndicator(stickyKeys) in StickyKeysIndicator()
65 fun StickyKeysIndicator(stickyKeys: Map<ModifierKey, Locked>, modifier: Modifier = Modifier) { in StickyKeysIndicator()
76 stickyKeys.forEach { (key, isLocked) -> key(key) { StickyKeyText(key, isLocked) } } in StickyKeysIndicator()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/stickykeys/data/repository/
DStickyKeysRepository.kt45 val stickyKeys: Flow<LinkedHashMap<ModifierKey, Locked>> in <lambda>() constant
59 override val stickyKeys: Flow<LinkedHashMap<ModifierKey, Locked>> = constant
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/keyboard/data/repository/
DFakeStickyKeysRepository.kt30 override val stickyKeys: Flow<LinkedHashMap<ModifierKey, Locked>> = _stickyKeys constant in com.android.systemui.keyboard.data.repository.FakeStickyKeysRepository
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/stickykeys/ui/viewmodel/
DStickyKeysIndicatorViewModel.kt48 if (enabled) stickyKeysRepository.stickyKeys else flowOf(emptyMap()) in <lambda>()