Home
last modified time | relevance | path

Searched refs:keyboardRepository (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyboard/backlight/domain/interactor/
DKeyboardBacklightInteractorTest.kt39 private val keyboardRepository = FakeKeyboardRepository() constant
44 underTest = KeyboardBacklightInteractor(keyboardRepository) in setUp()
50 keyboardRepository.setIsAnyKeyboardConnected(true) in <lambda>()
57 keyboardRepository.setIsAnyKeyboardConnected(true) in <lambda>()
58 keyboardRepository.setBacklight(BacklightModel(1, 5)) in <lambda>()
66 keyboardRepository.setIsAnyKeyboardConnected(true) in <lambda>()
67 keyboardRepository.setBacklight(BacklightModel(1, 5)) in <lambda>()
69 keyboardRepository.setIsAnyKeyboardConnected(false) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyboard/stickykeys/ui/
DStickyKeysIndicatorCoordinatorTest.kt24 import com.android.systemui.keyboard.data.repository.keyboardRepository
57 val keyboardRepository = Kosmos().keyboardRepository in setup() constant
61 keyboardRepository, in setup()
72 keyboardRepository.setIsAnyKeyboardConnected(true) in setup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/backlight/domain/interactor/
DKeyboardBacklightInteractor.kt34 private val keyboardRepository: KeyboardRepository, in <lambda>() constant in com.android.systemui.keyboard.backlight.domain.interactor.KeyboardBacklightInteractor
40 keyboardRepository.isAnyKeyboardConnected.flatMapLatest { connected -> in <lambda>()
41 if (connected) keyboardRepository.backlight else flowOf(null) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/docking/domain/interactor/
DKeyboardDockingIndicationInteractor.kt27 constructor(keyboardRepository: KeyboardRepository) {
28 val onKeyboardConnected = keyboardRepository.isAnyKeyboardConnected
/frameworks/base/packages/SystemUI/src/com/android/keyguard/domain/interactor/
DKeyguardKeyboardInteractor.kt25 class KeyguardKeyboardInteractor @Inject constructor(keyboardRepository: KeyboardRepository) {
26 val isAnyKeyboardConnected: Flow<Boolean> = keyboardRepository.isAnyKeyboardConnected
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyboard/stickykeys/ui/viewmodel/
DStickyKeysIndicatorViewModelTest.kt64 private val keyboardRepository = FakeKeyboardRepository() constant in com.android.systemui.keyboard.stickykeys.ui.viewmodel.StickyKeysIndicatorViewModelTest
87 keyboardRepository = keyboardRepository, in setup()
97 keyboardRepository.setIsAnyKeyboardConnected(true) in doesntListenToStickyKeysOnlyWhenKeyboardIsConnected()
108 keyboardRepository.setIsAnyKeyboardConnected(true) in startsListeningToStickyKeysOnlyWhenKeyboardIsConnectedAndSettingIsOn()
148 keyboardRepository.setIsAnyKeyboardConnected(false) in stopsListeningToStickyKeysWhenKeyboardDisconnects()
235 keyboardRepository.setIsAnyKeyboardConnected(true) in setStickyKeysActive()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyboard/backlight/ui/
DKeyboardBacklightDialogCoordinatorTest.kt55 private val keyboardRepository = FakeKeyboardRepository() in <lambda>() constant in com.android.systemui.keyboard.backlight.ui.KeyboardBacklightDialogCoordinatorTest
75 KeyboardBacklightInteractor(keyboardRepository), in <lambda>()
81 keyboardRepository.setIsAnyKeyboardConnected(true) in <lambda>()
151 keyboardRepository.setBacklight(BacklightModel(value, maxValue)) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyboard/docking/ui/viewmodel/
DKeyboardDockingIndicationViewModelTest.kt47 private lateinit var keyboardRepository: FakeKeyboardRepository variable in com.android.systemui.keyboard.docking.ui.viewmodel.KeyboardDockingIndicationViewModelTest
56 keyboardRepository = FakeKeyboardRepository() in setup()
61 KeyboardDockingIndicationInteractor(keyboardRepository) in setup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/stickykeys/ui/viewmodel/
DStickyKeysIndicatorViewModel.kt37 keyboardRepository: KeyboardRepository, in <lambda>()
43 keyboardRepository.isAnyKeyboardConnected in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/keyboard/data/repository/
DKeyboardRepositoryKosmos.kt21 val Kosmos.keyboardRepository by Kosmos.Fixture { FakeKeyboardRepository() } in <lambda>() constant