Searched refs:flashlightController (Results 1 – 6 of 6) sorted by relevance
49 private lateinit var flashlightController: FakeFlashlightController variable in com.android.systemui.keyguard.data.quickaffordance.FlashlightQuickAffordanceConfigTest57 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 …]
40 private val flashlightController: FlashlightController, constant in com.android.systemui.keyguard.data.quickaffordance.FlashlightQuickAffordanceConfig110 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()
34 private val flashlightController: FlashlightController, constant in com.android.systemui.qs.tiles.impl.flashlight.domain.interactor.FlashlightTileDataInteractor52 FlashlightTileModel.FlashlightAvailable(flashlightController.isEnabled) in tileData()57 flashlightController.addCallback(callback) in tileData()58 awaitClose { flashlightController.removeCallback(callback) } in tileData()66 flowOf(flashlightController.hasFlashlight())
31 private val flashlightController: FlashlightController, constant in com.android.systemui.qs.tiles.impl.flashlight.domain.interactor.FlashlightTileUserActionInteractor42 flashlightController.setFlashlight(!input.data.isEnabled) in handleInput()
46 @Mock private lateinit var flashlightController: FlashlightController variable in com.android.systemui.qs.tiles.FlashlightTileTest72 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()
67 FlashlightController flashlightController in FlashlightTile() argument71 mFlashlightController = flashlightController; in FlashlightTile()