/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/ |
H A D | SensorPrivacyServiceMockingTest.java | 20 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 D | SensorUseStartedActivity.kt | 65 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 D | SensorUseDialog.kt | 32 SensorUseStartedActivity.MICROPHONE -> 41 if (sensor == SensorUseStartedActivity.MICROPHONE || 57 SensorUseStartedActivity.MICROPHONE ->
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/sensorprivacy/television/ |
H A D | TvUnblockSensorActivity.java | 21 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 D | TvSensorPrivacyChangedActivity.java | 20 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 D | SensorPrivacyService.java | 364 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 D | MicrophoneToggleTile.java | 19 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 D | IndividualSensorPrivacyControllerImpl.java | 20 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 D | PermissionUsageHelper.java | 21 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 D | sensorprivacy.proto | 74 MICROPHONE = 1; enumerator 100 MICROPHONE = 1; enumerator
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/ |
H A D | AppOpsControllerImpl.java | 20 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 D | DreamOverlayStatusBarViewControllerTest.java | 223 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 D | PrivacyItem.kt | 38 android.Manifest.permission_group.MICROPHONE,
|
H A D | PrivacyDialogControllerV2.kt | 314 Manifest.permission_group.MICROPHONE -> PrivacyType.TYPE_MICROPHONE 323 Manifest.permission_group.MICROPHONE -> privacyItemController.micCameraAvailable
|
H A D | PrivacyDialogController.kt | 286 Manifest.permission_group.MICROPHONE -> PrivacyType.TYPE_MICROPHONE
|
/aosp14/frameworks/base/core/java/android/hardware/ |
H A D | SensorPrivacyManager.java | 92 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 D | AppOpsControllerTest.java | 20 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 D | DreamOverlayStatusBarViewController.java | 308 .isSensorBlocked(SensorPrivacyManager.Sensors.MICROPHONE); in updateMicCameraBlockedStatusIcon()
|
/aosp14/frameworks/base/services/core/java/com/android/server/location/contexthub/ |
H A D | IContextHubWrapper.java | 561 onSettingChanged(android.hardware.contexthub.Setting.MICROPHONE, enabled); in onMicrophoneSettingChanged() 1118 sendSettingChanged(android.hardware.contexthub.V1_2.Setting.MICROPHONE, in onMicrophoneSettingChanged()
|
H A D | ContextHubService.java | 512 SensorPrivacyManager.Sensors.MICROPHONE, (userId, enabled) -> { 1475 getCurrentUserId(), SensorPrivacyManager.Sensors.MICROPHONE);
|
/aosp14/frameworks/base/services/usb/java/com/android/server/usb/ |
H A D | UsbUserPermissionManager.java | 214 UserHandle.getUserId(uid), Sensors.MICROPHONE)) { in hasPermission()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/ |
H A D | PrivacyDialogControllerTest.kt | 78 private const val PERM_MICROPHONE = android.Manifest.permission_group.MICROPHONE
|
H A D | PrivacyDialogControllerV2Test.kt | 80 private const val PERM_MICROPHONE = android.Manifest.permission_group.MICROPHONE
|
/aosp14/frameworks/base/services/core/java/com/android/server/input/ |
H A D | InputManagerService.java | 548 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 D | PhoneWindowManager.java | 3444 SensorPrivacyManager.Sensors.MICROPHONE)) { 3447 SensorPrivacyManager.Sensors.MICROPHONE); 3449 mSensorPrivacyManager.setSensorPrivacy(SensorPrivacyManager.Sensors.MICROPHONE,
|