Home
last modified time | relevance | path

Searched refs:ModifierKey (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/stickykeys/data/repository/
DStickyKeysRepository.kt29 import com.android.systemui.keyboard.stickykeys.shared.model.ModifierKey in <lambda>()
30 import com.android.systemui.keyboard.stickykeys.shared.model.ModifierKey.ALT in <lambda>()
31 import com.android.systemui.keyboard.stickykeys.shared.model.ModifierKey.ALT_GR in <lambda>()
32 import com.android.systemui.keyboard.stickykeys.shared.model.ModifierKey.CTRL in <lambda>()
33 import com.android.systemui.keyboard.stickykeys.shared.model.ModifierKey.META in <lambda>()
34 import com.android.systemui.keyboard.stickykeys.shared.model.ModifierKey.SHIFT in <lambda>()
45 val stickyKeys: Flow<LinkedHashMap<ModifierKey, Locked>> in <lambda>()
59 override val stickyKeys: Flow<LinkedHashMap<ModifierKey, Locked>> =
78 private fun toStickyKeysMap(state: StickyModifierState): LinkedHashMap<ModifierKey, Locked> { in toStickyKeysMap()
79 val keys = linkedMapOf<ModifierKey, Locked>() in toStickyKeysMap()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/keyboard/data/repository/
DFakeStickyKeysRepository.kt21 import com.android.systemui.keyboard.stickykeys.shared.model.ModifierKey
27 private val _stickyKeys: MutableStateFlow<LinkedHashMap<ModifierKey, Locked>> =
30 override val stickyKeys: Flow<LinkedHashMap<ModifierKey, Locked>> = _stickyKeys
32 fun setStickyKeys(keys: LinkedHashMap<ModifierKey, Locked>) { in setStickyKeys()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyboard/stickykeys/ui/viewmodel/
DStickyKeysIndicatorViewModelTest.kt30 import com.android.systemui.keyboard.stickykeys.shared.model.ModifierKey
31 import com.android.systemui.keyboard.stickykeys.shared.model.ModifierKey.ALT
32 import com.android.systemui.keyboard.stickykeys.shared.model.ModifierKey.ALT_GR
33 import com.android.systemui.keyboard.stickykeys.shared.model.ModifierKey.CTRL
34 import com.android.systemui.keyboard.stickykeys.shared.model.ModifierKey.META
35 import com.android.systemui.keyboard.stickykeys.shared.model.ModifierKey.SHIFT
175 assertThat(stickyKeys).isEqualTo(emptyMap<ModifierKey, Locked>()) in emitsEmptyListWhenNoStickyKeysAreActive()
239 private fun TestScope.setStickyKeys(keys: Map<ModifierKey, Boolean>) { in setStickyKeys()
246 private class TestStickyModifierState(private val keys: Map<ModifierKey, Boolean>) :
249 private fun isOn(key: ModifierKey) = keys.any { it.key == key && !it.value } in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/stickykeys/
DStickyKeysLogger.kt20 import com.android.systemui.keyboard.stickykeys.shared.model.ModifierKey
29 fun logNewStickyKeysReceived(stickyKeys: Map<ModifierKey, Locked>) { in logNewStickyKeysReceived()
38 fun logNewUiState(stickyKeys: Map<ModifierKey, Locked>) { in logNewUiState()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/keyboard/stickykeys/ui/view/
DStickyKeysIndicator.kt42 import com.android.systemui.keyboard.stickykeys.shared.model.ModifierKey in <lambda>()
65 fun StickyKeysIndicator(stickyKeys: Map<ModifierKey, Locked>, modifier: Modifier = Modifier) { in StickyKeysIndicator()
82 private fun StickyKeyText(key: ModifierKey, isLocked: Locked, modifier: Modifier = Modifier) { in StickyKeyText()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/stickykeys/ui/viewmodel/
DStickyKeysIndicatorViewModel.kt23 import com.android.systemui.keyboard.stickykeys.shared.model.ModifierKey in <lambda>()
42 val indicatorContent: Flow<Map<ModifierKey, Locked>> = in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/stickykeys/shared/model/
DStickyKey.kt22 enum class ModifierKey(val displayedText: String) { class
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyboard/stickykeys/ui/
DStickyKeysIndicatorCoordinatorTest.kt27 import com.android.systemui.keyboard.stickykeys.shared.model.ModifierKey.SHIFT