Home
last modified time | relevance | path

Searched refs:micCameraAvailable (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/
DAppOpsPrivacyItemMonitor.kt77 private var micCameraAvailable = privacyConfig.micCameraAvailable in <lambda>() variable
92 if (code in OPS_MIC_CAMERA && !micCameraAvailable) { in <lambda>()
129 micCameraAvailable = privacyConfig.micCameraAvailable in <lambda>()
166 val shouldListen = callback != null && (micCameraAvailable || locationAvailable) in <lambda>()
199 return micCameraAvailable in <lambda>()
247 ipw.println("micCameraAvailable: $micCameraAvailable") in <lambda>()
DPrivacyConfig.kt56 var micCameraAvailable = isMicCameraEnabled() in <lambda>() variable
68 micCameraAvailable = properties.getBoolean(MIC_CAMERA, DEFAULT_MIC_CAMERA) in <lambda>()
69 callbacks.forEach { it.get()?.onFlagMicCameraChanged(micCameraAvailable) } in <lambda>()
135 ipw.println("micCameraAvailable: $micCameraAvailable") in <lambda>()
DPrivacyItemController.kt63 val micCameraAvailable constant
64 get() = privacyConfig.micCameraAvailable
68 get() = micCameraAvailable && locationAvailable && privacyConfig.mediaProjectionAvailable
DPrivacyDialogControllerV2.kt349 Manifest.permission_group.CAMERA -> privacyItemController.micCameraAvailable in isAvailable()
350 Manifest.permission_group.MICROPHONE -> privacyItemController.micCameraAvailable in isAvailable()
DPrivacyDialogController.kt302 privacyItemController.micCameraAvailable) { in filterType()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/
DPrivacyConfigFlagsTest.kt81 assertTrue(privacyConfig.micCameraAvailable) in testMicCameraListeningByDefault()
91 assertFalse(privacyConfig.micCameraAvailable) in testMicCameraChanged()
123 assertFalse(privacyConfig.micCameraAvailable) in testMicCamAndLocationChanged()
134 assertTrue(privacyConfig.micCameraAvailable) in testMicDeleted_stillAvailable()
DPrivacyItemControllerTest.kt362 `when`(privacyConfig.micCameraAvailable).thenReturn(true) in testFlagsAll_listeningToAll()
377 `when`(privacyConfig.micCameraAvailable).thenReturn(true) in testFlags_onFlagMicCameraChanged()
381 assertTrue(privacyItemController.micCameraAvailable) in testFlags_onFlagMicCameraChanged()
DPrivacyDialogControllerTest.kt405 `when`(privacyItemController.micCameraAvailable).thenReturn(false) in <lambda>()
455 `when`(privacyItemController.micCameraAvailable).thenReturn(true) in <lambda>()
479 `when`(privacyItemController.micCameraAvailable).thenReturn(false) in <lambda>()
766 `when`(privacyItemController.micCameraAvailable).thenReturn(true) in <lambda>()
DPrivacyDialogControllerV2Test.kt421 `when`(privacyItemController.micCameraAvailable).thenReturn(false) in <lambda>()
455 `when`(privacyItemController.micCameraAvailable).thenReturn(true) in <lambda>()
472 `when`(privacyItemController.micCameraAvailable).thenReturn(false) in <lambda>()
784 `when`(privacyItemController.micCameraAvailable).thenReturn(true) in <lambda>()
DAppOpsPrivacyItemMonitorTest.kt109 `when`(privacyConfig.micCameraAvailable).thenReturn(true) in setup()
380 `when`(privacyConfig.micCameraAvailable).thenReturn(value) in changeMicCamera()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DHeaderPrivacyIconsController.kt161 micCameraIndicatorsEnabled = privacyItemController.micCameraAvailable in onChipVisibilityRefreshed()
196 micCameraIndicatorsEnabled = privacyItemController.micCameraAvailable in onChipVisibilityRefreshed()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/data/repository/
DPrivacyChipRepository.kt114 initialValue = privacyItemController.micCameraAvailable,
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DHeaderPrivacyIconsControllerTest.kt269 whenever(privacyItemController.micCameraAvailable).thenReturn(micCamera) in eq()