Home
last modified time | relevance | path

Searched refs:MICROPHONE (Results 1 – 25 of 28) sorted by relevance

12

/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/
H A DSensorPrivacyServiceMockingTest.java20 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE;
108 assertNull(ps.getState(TOGGLE_TYPE_SOFTWARE, 10, MICROPHONE)); in testMigration1()
111 assertNull(ps.getState(TOGGLE_TYPE_HARDWARE, 0, MICROPHONE)); in testMigration1()
113 assertNull(ps.getState(TOGGLE_TYPE_HARDWARE, 10, MICROPHONE)); in testMigration1()
133 assertNull(ps.getState(TOGGLE_TYPE_HARDWARE, 0, MICROPHONE)); in testMigration2()
153 assertNull(ps.getState(TOGGLE_TYPE_HARDWARE, 0, MICROPHONE)); in testMigration3()
169 assertNull(ps.getState(TOGGLE_TYPE_HARDWARE, 0, MICROPHONE)); in testMigration4()
300 MICROPHONE); in testGetDefaultState()
325 MICROPHONE); in testGetSetState()
333 MICROPHONE); in testGetSetState()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/sensorprivacy/
H A DSensorUseStartedActivity.kt65 internal const val MICROPHONE = SensorPrivacyManager.Sensors.MICROPHONE
92 if (!sensorPrivacyController.isSensorBlocked(MICROPHONE) &&
99 if (!sensorPrivacyController.isSensorBlocked(MICROPHONE) &&
209 sensorPrivacyController.setSensorBlocked(DIALOG, MICROPHONE, false)
221 .suppressSensorPrivacyReminders(MICROPHONE, suppressed)
H A DSensorUseDialog.kt32 SensorUseStartedActivity.MICROPHONE ->
41 if (sensor == SensorUseStartedActivity.MICROPHONE ||
57 SensorUseStartedActivity.MICROPHONE ->
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/sensorprivacy/television/
H A DTvUnblockSensorActivity.java21 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE;
110 && !mSensorPrivacyController.isSensorBlocked(MICROPHONE)) { in onCreate()
125 case MICROPHONE: in showToastAndFinish()
147 || mSensorPrivacyController.isSensorBlockedByHardwareToggle(MICROPHONE); in isBlockedByHardwareToggle()
181 boolean micBlocked = (mSensor == MICROPHONE || mSensor == ALL_SENSORS) in updateUiForHardwareToggle()
182 && mSensorPrivacyController.isSensorBlockedByHardwareToggle(MICROPHONE); in updateUiForHardwareToggle()
229 case MICROPHONE: in updateUiForSoftwareToggle()
256 mSensorPrivacyController.setSensorBlocked(OTHER, MICROPHONE, false); in updateUiForSoftwareToggle()
H A DTvSensorPrivacyChangedActivity.java20 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE;
135 case MICROPHONE: in updateUI()
138 mSensorPrivacyController.isSensorBlockedByHardwareToggle(MICROPHONE)); in updateUI()
/aosp14/frameworks/base/services/core/java/com/android/server/sensorprivacy/
H A DSensorPrivacyService.java364 sensor = MICROPHONE; in onOpNoted()
486 if (sensor == MICROPHONE) { in onSensorUseStarted()
539 sensors.add(MICROPHONE); in enqueueSensorUseReminderDialog()
626 if (sensor == MICROPHONE) { in showSensorUseReminderNotification()
834 case MICROPHONE: in logSensorPrivacyToggle()
955 if (sensor == MICROPHONE) { in supportsSensorToggle()
963 if (sensor == MICROPHONE) { in supportsSensorToggle()
1085 TOGGLE_TYPE_SOFTWARE, MICROPHONE); in userSwitching()
1089 TOGGLE_TYPE_SOFTWARE, MICROPHONE); in userSwitching()
1125 case MICROPHONE: in setGlobalRestriction()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DMicrophoneToggleTile.java19 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE;
71 return mSensorPrivacyController.supportsSensorToggle(MICROPHONE) in isAvailable()
93 return MICROPHONE; in getSensorId()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DIndividualSensorPrivacyControllerImpl.java20 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE;
35 private static final int[] SENSORS = new int[] {CAMERA, MICROPHONE};
/aosp14/frameworks/base/core/java/android/permission/
H A DPermissionUsageHelper.java21 import static android.Manifest.permission_group.MICROPHONE;
154 return MICROPHONE; in getGroupForOp()
319 if (hasPhoneCall && usedPermGroups.contains(MICROPHONE) && audioManager.getMode() in getOpUsageData()
323 List<OpUsage> permUsages = rawUsages.get(MICROPHONE); in getOpUsageData()
348 permGroup = MICROPHONE; in getOpUsageData()
586 && !MICROPHONE.equals(permGroup)) { in getUniqueUsagesWithLabels()
658 if (!MICROPHONE.equals(permGroup)) { in getUniqueUsagesWithLabels()
673 || !MICROPHONE.equals(permGroup)) { in getUniqueUsagesWithLabels()
/aosp14/frameworks/base/core/proto/android/hardware/
H A Dsensorprivacy.proto74 MICROPHONE = 1; enumerator
100 MICROPHONE = 1; enumerator
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/
H A DAppOpsControllerImpl.java20 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE;
133 || mSensorPrivacyController.isSensorBlocked(MICROPHONE); in AppOpsControllerImpl()
159 || mSensorPrivacyController.isSensorBlocked(MICROPHONE); in setListening()
542 || mSensorPrivacyController.isSensorBlocked(MICROPHONE); in onReceive()
551 } else if (sensor == MICROPHONE) { in onSensorBlockedChanged()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dreams/
H A DDreamOverlayStatusBarViewControllerTest.java223 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.MICROPHONE)) in testOnViewAttachedShowsMicIconWhenDisabled()
234 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.MICROPHONE)) in testOnViewAttachedShowsCameraIconWhenDisabled()
245 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.MICROPHONE)) in testOnViewAttachedShowsMicCameraIconWhenDisabled()
431 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.MICROPHONE)) in testMicCameraIconShownWhenSensorsBlocked()
440 SensorPrivacyManager.Sensors.MICROPHONE, true); in testMicCameraIconShownWhenSensorsBlocked()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/
H A DPrivacyItem.kt38 android.Manifest.permission_group.MICROPHONE,
H A DPrivacyDialogControllerV2.kt314 Manifest.permission_group.MICROPHONE -> PrivacyType.TYPE_MICROPHONE
323 Manifest.permission_group.MICROPHONE -> privacyItemController.micCameraAvailable
H A DPrivacyDialogController.kt286 Manifest.permission_group.MICROPHONE -> PrivacyType.TYPE_MICROPHONE
/aosp14/frameworks/base/core/java/android/hardware/
H A DSensorPrivacyManager.java92 public static final int MICROPHONE = SensorPrivacySensorProto.MICROPHONE; field in SensorPrivacyManager.Sensors
105 MICROPHONE,
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/
H A DAppOpsControllerTest.java20 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE;
759 mController.onSensorBlockedChanged(MICROPHONE, true); in testAudioFilteredWhenMicDisabled()
769 mController.onSensorBlockedChanged(MICROPHONE, false); in testAudioFilteredWhenMicDisabled()
793 mController.onSensorBlockedChanged(MICROPHONE, true); in testPhoneCallMicrophoneFilteredWhenMicDisabled()
803 mController.onSensorBlockedChanged(MICROPHONE, false); in testPhoneCallMicrophoneFilteredWhenMicDisabled()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/
H A DDreamOverlayStatusBarViewController.java308 .isSensorBlocked(SensorPrivacyManager.Sensors.MICROPHONE); in updateMicCameraBlockedStatusIcon()
/aosp14/frameworks/base/services/core/java/com/android/server/location/contexthub/
H A DIContextHubWrapper.java561 onSettingChanged(android.hardware.contexthub.Setting.MICROPHONE, enabled); in onMicrophoneSettingChanged()
1118 sendSettingChanged(android.hardware.contexthub.V1_2.Setting.MICROPHONE, in onMicrophoneSettingChanged()
H A DContextHubService.java512 SensorPrivacyManager.Sensors.MICROPHONE, (userId, enabled) -> {
1475 getCurrentUserId(), SensorPrivacyManager.Sensors.MICROPHONE);
/aosp14/frameworks/base/services/usb/java/com/android/server/usb/
H A DUsbUserPermissionManager.java214 UserHandle.getUserId(uid), Sensors.MICROPHONE)) { in hasPermission()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/
H A DPrivacyDialogControllerTest.kt78 private const val PERM_MICROPHONE = android.Manifest.permission_group.MICROPHONE
H A DPrivacyDialogControllerV2Test.kt80 private const val PERM_MICROPHONE = android.Manifest.permission_group.MICROPHONE
/aosp14/frameworks/base/services/core/java/com/android/server/input/
H A DInputManagerService.java548 setSensorPrivacy(Sensors.MICROPHONE, true); in systemRunning()
2369 setSensorPrivacy(Sensors.MICROPHONE, micMute); in notifySwitch()
/aosp14/frameworks/base/services/core/java/com/android/server/policy/
H A DPhoneWindowManager.java3444 SensorPrivacyManager.Sensors.MICROPHONE)) {
3447 SensorPrivacyManager.Sensors.MICROPHONE);
3449 mSensorPrivacyManager.setSensorPrivacy(SensorPrivacyManager.Sensors.MICROPHONE,

12