Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/
DSensorPrivacyServiceMockingTest.java20 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE;
105 assertTrue(ps.getState(TOGGLE_TYPE_SOFTWARE, 0, MICROPHONE).isEnabled()); in testMigration1()
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()
121 assertTrue(ps.getState(TOGGLE_TYPE_SOFTWARE, 0, MICROPHONE).isEnabled()); in testMigration2()
124 assertTrue(ps.getState(TOGGLE_TYPE_SOFTWARE, 10, MICROPHONE).isEnabled()); in testMigration2()
127 assertNull(ps.getState(TOGGLE_TYPE_SOFTWARE, 11, MICROPHONE)); in testMigration2()
130 assertTrue(ps.getState(TOGGLE_TYPE_SOFTWARE, 12, MICROPHONE).isEnabled()); in testMigration2()
133 assertNull(ps.getState(TOGGLE_TYPE_HARDWARE, 0, MICROPHONE)); in testMigration2()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/sensorprivacy/
DSensorUseStartedActivity.kt67 internal const val MICROPHONE = SensorPrivacyManager.Sensors.MICROPHONE in <lambda>() constant
94 if (!sensorPrivacyController.isSensorBlocked(MICROPHONE) && in <lambda>()
101 if (!sensorPrivacyController.isSensorBlocked(MICROPHONE) && in <lambda>()
119 } else if ((whichSensor == MICROPHONE) && !isBlocked) { in <lambda>()
129 } else if ((sensor == MICROPHONE) && in <lambda>()
130 !sensorPrivacyController.isSensorBlocked(MICROPHONE)) { in <lambda>()
235 sensorPrivacyController.setSensorBlocked(DIALOG, MICROPHONE, false) in <lambda>()
247 .suppressSensorPrivacyReminders(MICROPHONE, suppressed) in <lambda>()
DSensorUseDialog.kt32 SensorUseStartedActivity.MICROPHONE ->
41 if (sensor == SensorUseStartedActivity.MICROPHONE ||
57 SensorUseStartedActivity.MICROPHONE ->
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DMicrophoneToggleTile.java19 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE;
73 return mSensorPrivacyController.supportsSensorToggle(MICROPHONE) in isAvailable()
95 return MICROPHONE; in getSensorId()
/frameworks/base/services/core/java/com/android/server/sensorprivacy/
DSensorPrivacyService.java42 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE;
387 setToggleSensorPrivacyUnchecked(TOGGLE_TYPE_SOFTWARE, userId, OTHER, MICROPHONE, in onUserRestrictionsChanged()
410 sensor = MICROPHONE; in onOpNoted()
538 if (sensor == MICROPHONE) { in onSensorUseStarted()
588 if (sensor == MICROPHONE && mSuppressReminders.containsKey(new Pair<>(CAMERA, user)) in enqueueSensorUseReminderDialog()
590 .containsKey(new Pair<>(MICROPHONE, user))) { in enqueueSensorUseReminderDialog()
591 sensors.add(MICROPHONE); in enqueueSensorUseReminderDialog()
678 if (sensor == MICROPHONE) { in showSensorUseReminderNotification()
906 case MICROPHONE: in logSensorPrivacyStateToggle()
1056 if (sensor == MICROPHONE && mCallStateHelper.isInEmergencyCall()) { in canChangeToggleSensorPrivacy()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/sensorprivacy/domain/interactor/
DSensorPrivacyToggleTileUserActionInteractorTest.kt21 import android.hardware.SensorPrivacyManager.Sensors.MICROPHONE
153 MICROPHONE in <lambda>()
160 .setSensorBlocked(eq(SensorPrivacyManager.Sources.QS_TILE), eq(MICROPHONE), eq(true)) in <lambda>()
166 .setSensorBlocked(eq(SensorPrivacyManager.Sources.QS_TILE), eq(MICROPHONE), eq(false)) in <lambda>()
DSensorPrivacyToggleTileDataInteractorTest.kt20 import android.hardware.SensorPrivacyManager.Sensors.MICROPHONE
98 callback.onSensorBlockedChanged(MICROPHONE, true) in tileData_matchesPrivacyControllerIsSensorBlocked()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/sensorprivacy/ui/
DSensorPrivacyToggleTileMapperTest.kt21 import android.hardware.SensorPrivacyManager.Sensors.MICROPHONE
95 MICROPHONE in mapMic_notBlocked()
113 MICROPHONE in mapMic_blocked()
/frameworks/hardware/interfaces/automotive/powerpolicy/aidl/aidl_api/android.frameworks.automotive.powerpolicy/1/android/frameworks/automotive/powerpolicy/
DPowerComponent.aidl51 MICROPHONE = 15, enumConstant
/frameworks/hardware/interfaces/automotive/powerpolicy/aidl/android/frameworks/automotive/powerpolicy/
DPowerComponent.aidl98 MICROPHONE = 15, enumConstant
/frameworks/hardware/interfaces/automotive/powerpolicy/aidl/aidl_api/android.frameworks.automotive.powerpolicy/3/android/frameworks/automotive/powerpolicy/
DPowerComponent.aidl51 MICROPHONE = 15, enumConstant
/frameworks/hardware/interfaces/automotive/powerpolicy/aidl/aidl_api/android.frameworks.automotive.powerpolicy/2/android/frameworks/automotive/powerpolicy/
DPowerComponent.aidl51 MICROPHONE = 15, enumConstant
/frameworks/hardware/interfaces/automotive/powerpolicy/aidl/aidl_api/android.frameworks.automotive.powerpolicy/current/android/frameworks/automotive/powerpolicy/
DPowerComponent.aidl51 MICROPHONE = 15, enumConstant
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/sensorprivacy/
DSensorPrivacyToggleTileDataInteractor.kt20 import android.hardware.SensorPrivacyManager.Sensors.MICROPHONE in <lambda>()
102 if (sensorId == MICROPHONE) { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DIndividualSensorPrivacyControllerImpl.java20 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE;
41 private static final int[] SENSORS = new int[] {CAMERA, MICROPHONE};
DPolicyModule.kt18 import android.hardware.SensorPrivacyManager.Sensors.MICROPHONE
363 userActionInteractor.create(MICROPHONE), in bindDndTile()
364 stateInteractor.create(MICROPHONE), in bindDndTile()
374 return factory.create(MICROPHONE) in bindDndTile()
/frameworks/base/core/proto/android/hardware/
Dsensorprivacy.proto74 MICROPHONE = 1; enumerator
101 MICROPHONE = 1; enumerator
/frameworks/base/core/java/android/permission/
DPermissionUsageHelper.java21 import static android.Manifest.permission_group.MICROPHONE;
150 return MICROPHONE; in getGroupForOp()
319 if (hasPhoneCall && usedPermGroups.contains(MICROPHONE) && audioManager.getMode() in getOpUsageDataByDevice()
323 List<OpUsage> permUsages = rawUsages.get(MICROPHONE); in getOpUsageDataByDevice()
348 permGroup = MICROPHONE; in getOpUsageDataByDevice()
624 && !MICROPHONE.equals(permGroup)) { in getUniqueUsagesWithLabels()
696 if (!MICROPHONE.equals(permGroup)) { in getUniqueUsagesWithLabels()
711 || !MICROPHONE.equals(permGroup)) { in getUniqueUsagesWithLabels()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/ambient/statusbar/ui/
DAmbientStatusBarViewControllerTest.java202 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.MICROPHONE)) in testOnViewAttachedShowsMicIconWhenDisabled()
213 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.MICROPHONE)) in testOnViewAttachedShowsCameraIconWhenDisabled()
224 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.MICROPHONE)) in testOnViewAttachedShowsMicCameraIconWhenDisabled()
348 when(mSensorPrivacyController.isSensorBlocked(SensorPrivacyManager.Sensors.MICROPHONE)) in testMicCameraIconShownWhenSensorsBlocked()
357 SensorPrivacyManager.Sensors.MICROPHONE, true); in testMicCameraIconShownWhenSensorsBlocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/
DPrivacyItem.kt38 android.Manifest.permission_group.MICROPHONE,
DPrivacyDialogControllerV2.kt341 Manifest.permission_group.MICROPHONE -> PrivacyType.TYPE_MICROPHONE in permGroupToPrivacyType()
350 Manifest.permission_group.MICROPHONE -> privacyItemController.micCameraAvailable in isAvailable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/
DAppOpsControllerImpl.java20 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE;
176 || mSensorPrivacyController.isSensorBlocked(MICROPHONE); in AppOpsControllerImpl()
204 || mSensorPrivacyController.isSensorBlocked(MICROPHONE); in setListening()
590 || mSensorPrivacyController.isSensorBlocked(MICROPHONE); in onReceive()
599 } else if (sensor == MICROPHONE) { in onSensorBlockedChanged()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/
DAppOpsControllerTest.java20 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE;
811 mController.onSensorBlockedChanged(MICROPHONE, true); in testAudioFilteredWhenMicDisabled()
818 mController.onSensorBlockedChanged(MICROPHONE, false); in testAudioFilteredWhenMicDisabled()
840 mController.onSensorBlockedChanged(MICROPHONE, true); in testPhoneCallMicrophoneFilteredWhenMicDisabled()
847 mController.onSensorBlockedChanged(MICROPHONE, false); in testPhoneCallMicrophoneFilteredWhenMicDisabled()
869 mController.onSensorBlockedChanged(MICROPHONE, true); in testAmbientTriggerMicrophoneFilteredWhenMicDisabled()
876 mController.onSensorBlockedChanged(MICROPHONE, false); in testAmbientTriggerMicrophoneFilteredWhenMicDisabled()
898 mController.onSensorBlockedChanged(MICROPHONE, true); in testSandboxTriggerMicrophoneFilteredWhenMicDisabled()
905 mController.onSensorBlockedChanged(MICROPHONE, false); in testSandboxTriggerMicrophoneFilteredWhenMicDisabled()
/frameworks/base/core/java/android/hardware/
DSensorPrivacyManager.java102 public static final int MICROPHONE = SensorPrivacySensorProto.MICROPHONE; field in SensorPrivacyManager.Sensors
115 MICROPHONE,
/frameworks/base/services/core/java/com/android/server/input/
DKeyboardLedController.java94 || mSensorPrivacyManager.areAnySensorPrivacyTogglesEnabled(Sensors.MICROPHONE); in updateMicMuteLedState()

12