/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyboard/backlight/domain/interactor/ |
D | KeyboardBacklightInteractorTest.kt | 39 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/ |
D | StickyKeysIndicatorCoordinatorTest.kt | 24 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/ |
D | KeyboardBacklightInteractor.kt | 34 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/ |
D | KeyboardDockingIndicationInteractor.kt | 27 constructor(keyboardRepository: KeyboardRepository) { 28 val onKeyboardConnected = keyboardRepository.isAnyKeyboardConnected
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/domain/interactor/ |
D | KeyguardKeyboardInteractor.kt | 25 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/ |
D | StickyKeysIndicatorViewModelTest.kt | 64 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/ |
D | KeyboardBacklightDialogCoordinatorTest.kt | 55 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/ |
D | KeyboardDockingIndicationViewModelTest.kt | 47 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/ |
D | StickyKeysIndicatorViewModel.kt | 37 keyboardRepository: KeyboardRepository, in <lambda>() 43 keyboardRepository.isAnyKeyboardConnected in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/keyboard/data/repository/ |
D | KeyboardRepositoryKosmos.kt | 21 val Kosmos.keyboardRepository by Kosmos.Fixture { FakeKeyboardRepository() } in <lambda>() constant
|