Home
last modified time | relevance | path

Searched refs:flashlightController (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/quickaffordance/
DFlashlightQuickAffordanceConfigTest.kt49 private lateinit var flashlightController: FakeFlashlightController variable in com.android.systemui.keyguard.data.quickaffordance.FlashlightQuickAffordanceConfigTest
57 flashlightController = in setUp()
60 underTest = FlashlightQuickAffordanceConfig(context, flashlightController) in setUp()
66 flashlightController.isEnabled = false in <lambda>()
67 flashlightController.isAvailable = true in <lambda>()
89 flashlightController.isEnabled = true in flashlightIsOn_triggered_iconIsOffAndInactive()
90 flashlightController.isAvailable = true in flashlightIsOn_triggered_iconIsOffAndInactive()
112 flashlightController.isEnabled = true in <lambda>()
113 flashlightController.isAvailable = false in <lambda>()
118 flashlightController.onFlashlightError() in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/quickaffordance/
DFlashlightQuickAffordanceConfig.kt40 private val flashlightController: FlashlightController, constant in com.android.systemui.keyguard.data.quickaffordance.FlashlightQuickAffordanceConfig
110 if (flashlightController.isEnabled) { in pickerName()
121 flashlightController.addCallback(flashlightCallback) in pickerName()
123 awaitClose { flashlightController.removeCallback(flashlightCallback) } in pickerName()
129 flashlightController.setFlashlight( in onTriggered()
130 flashlightController.isAvailable && !flashlightController.isEnabled in onTriggered()
136 if (flashlightController.isAvailable) { in getPickerScreenState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/flashlight/domain/interactor/
DFlashlightTileDataInteractor.kt34 private val flashlightController: FlashlightController, constant in com.android.systemui.qs.tiles.impl.flashlight.domain.interactor.FlashlightTileDataInteractor
52 FlashlightTileModel.FlashlightAvailable(flashlightController.isEnabled) in tileData()
57 flashlightController.addCallback(callback) in tileData()
58 awaitClose { flashlightController.removeCallback(callback) } in tileData()
66 flowOf(flashlightController.hasFlashlight())
DFlashlightTileUserActionInteractor.kt31 private val flashlightController: FlashlightController, constant in com.android.systemui.qs.tiles.impl.flashlight.domain.interactor.FlashlightTileUserActionInteractor
42 flashlightController.setFlashlight(!input.data.isEnabled) in handleInput()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DFlashlightTileTest.kt46 @Mock private lateinit var flashlightController: FlashlightController variable in com.android.systemui.qs.tiles.FlashlightTileTest
72 flashlightController in setUp()
84 Mockito.`when`(flashlightController.isAvailable).thenReturn(true) in testIcon_whenFlashlightEnabled_isOnState()
85 Mockito.`when`(flashlightController.isEnabled).thenReturn(true) in testIcon_whenFlashlightEnabled_isOnState()
96 Mockito.`when`(flashlightController.isAvailable).thenReturn(true) in testIcon_whenFlashlightDisabled_isOffState()
97 Mockito.`when`(flashlightController.isEnabled).thenReturn(false) in testIcon_whenFlashlightDisabled_isOffState()
108 Mockito.`when`(flashlightController.isAvailable).thenReturn(false) in testIcon_whenFlashlightUnavailable_isOffState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DFlashlightTile.java67 FlashlightController flashlightController in FlashlightTile() argument
71 mFlashlightController = flashlightController; in FlashlightTile()