Home
last modified time | relevance | path

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

123

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/privacy/
DMicTogglePreferenceControllerTest.java113 .supportsSensorToggle(eq(SensorPrivacyManager.Sensors.MICROPHONE))) in baseUserRestricted_preferenceIsDisabled()
127 .supportsSensorToggle(eq(SensorPrivacyManager.Sensors.MICROPHONE))) in userRestricted_availableForViewing()
149 eq(SensorPrivacyManager.Sensors.MICROPHONE), in onPreferenceClicked_clickMicEnabled_shouldSetPrivacySensor()
153 mListener.getValue().onSensorPrivacyChanged(SensorPrivacyManager.Sensors.MICROPHONE, true); in onPreferenceClicked_clickMicEnabled_shouldSetPrivacySensor()
167 eq(SensorPrivacyManager.Sensors.MICROPHONE), in onPreferenceClicked_clickMicDisabled_shouldClearPrivacySensor()
170 mListener.getValue().onSensorPrivacyChanged(SensorPrivacyManager.Sensors.MICROPHONE, false); in onPreferenceClicked_clickMicDisabled_shouldClearPrivacySensor()
180 mListener.getValue().onSensorPrivacyChanged(SensorPrivacyManager.Sensors.MICROPHONE, false); in onListenerUpdate_micDisabled_shouldUpdateChecked()
190 mListener.getValue().onSensorPrivacyChanged(SensorPrivacyManager.Sensors.MICROPHONE, true); in onListenerUpdate_micEnabled_shouldUpdateChecked()
201 SensorPrivacyManager.Sensors.MICROPHONE, mListener.getValue()); in onStop_removesSensorPrivacyListener()
209 eq(SensorPrivacyManager.Sensors.MICROPHONE), mListener.capture()); in initializePreference()
[all …]
DMicrophoneRecentAccessesPreferenceControllerTest.java123 mListener.getValue().onSensorPrivacyChanged(SensorPrivacyManager.Sensors.MICROPHONE, false); in onListenerUpdate_micEnabled_shouldShow()
133 mListener.getValue().onSensorPrivacyChanged(SensorPrivacyManager.Sensors.MICROPHONE, true); in onListenerUpdate_micDisabled_shouldHide()
257 eq(SensorPrivacyManager.Sensors.MICROPHONE), mListener.capture()); in initializePreference()
262 eq(SensorPrivacyManager.Sensors.MICROPHONE))).thenReturn(isMuted); in setIsSensorPrivacyEnabled()
DMicrophoneAccessPreferenceControllerTest.java92 SensorPrivacyManager.Sensors.MICROPHONE)).thenReturn(true); in onCreate_supportsSensorToggle_getDefaultAvailabilityStatus_available()
103 SensorPrivacyManager.Sensors.MICROPHONE)).thenReturn(false); in onCreate_notSupportsSensorToggle_getDefaultAvailabilityStatus_notAvailable()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/
DMicPrivacyChipViewControllerTest.java19 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE;
124 when(mSensorPrivacyManager.isSensorPrivacyEnabled(anyInt(), eq(MICROPHONE))) in addPrivacyChipView_privacyChipViewPresent_micStatusSet()
144 when(mSensorPrivacyManager.isSensorPrivacyEnabled(anyInt(), eq(MICROPHONE))) in onUserChanged_micStatusSet()
245 verify(mSensorPrivacyManager).addSensorPrivacyListener(eq(MICROPHONE), in onSensorPrivacyChanged_argTrue_setSensorEnabledWithFalseCalled()
250 .onSensorPrivacyChanged(MICROPHONE, /* enabled= */ true); in onSensorPrivacyChanged_argTrue_setSensorEnabledWithFalseCalled()
261 verify(mSensorPrivacyManager).addSensorPrivacyListener(eq(MICROPHONE), in onSensorPrivacyChanged_argFalse_setSensorEnabledWithTrueCalled()
266 .onSensorPrivacyChanged(MICROPHONE, /* enabled= */ false); in onSensorPrivacyChanged_argFalse_setSensorEnabledWithTrueCalled()
278 verify(mSensorPrivacyManager).addSensorPrivacyListener(eq(MICROPHONE), in onSensorPrivacyChanged_qsTileNotifyUpdateRunnableExecuted()
283 .onSensorPrivacyChanged(MICROPHONE, /* enabled= */ true); in onSensorPrivacyChanged_qsTileNotifyUpdateRunnableExecuted()
293 when(mSensorPrivacyManager.isSensorPrivacyEnabled(anyInt(), eq(MICROPHONE))) in isSensorEnabled_sensorPrivacyEnabled_returnFalse()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/privacy/
DMicTogglePreferenceController.java63 SensorPrivacyManager.Sensors.MICROPHONE, mListener); in onStartInternal()
68 mSensorPrivacyManager.removeSensorPrivacyListener(SensorPrivacyManager.Sensors.MICROPHONE, in onStopInternal()
80 SensorPrivacyManager.Sensors.MICROPHONE); in handlePreferenceChanged()
85 SensorPrivacyManager.Sensors.MICROPHONE, in handlePreferenceChanged()
93 if (!mSensorPrivacyManager.supportsSensorToggle(SensorPrivacyManager.Sensors.MICROPHONE)) { in getDefaultAvailabilityStatus()
104 SensorPrivacyManager.Sensors.MICROPHONE)); in updateState()
DMicrophoneInfotainmentAppsPreferenceController.java57 sensorPrivacyManager, SensorPrivacyManager.Sensors.MICROPHONE); in MicrophoneInfotainmentAppsPreferenceController()
77 mContext, Manifest.permission_group.MICROPHONE, userHandle, in loadInfotainmentAppsWithMicrophonePermission()
81 SensorPrivacyManager.Sensors.MICROPHONE); in loadInfotainmentAppsWithMicrophonePermission()
88 Manifest.permission_group.MICROPHONE, showSummary); in loadInfotainmentAppsWithMicrophonePermission()
DMicrophoneRecentAccessesPreferenceController.java79 SensorPrivacyManager.Sensors.MICROPHONE, mListener); in onStartInternal()
84 mSensorPrivacyManager.removeSensorPrivacyListener(SensorPrivacyManager.Sensors.MICROPHONE, in onStopInternal()
92 SensorPrivacyManager.Sensors.MICROPHONE)) { in updateState()
DManageMicPermissionsPreferenceController.java84 SensorPrivacyManager.Sensors.MICROPHONE, mListener); in onStartInternal()
89 mSensorPrivacyManager.removeSensorPrivacyListener(SensorPrivacyManager.Sensors.MICROPHONE, in onStopInternal()
97 SensorPrivacyManager.Sensors.MICROPHONE)) { in updateState()
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DSensorBlockedBannerTest.kt21 import android.Manifest.permission_group.MICROPHONE as MICROPHONE_PERMISSION_GROUP
25 import android.hardware.SensorPrivacyManager.Sensors.MICROPHONE
58 MICROPHONE to MICROPHONE_PERMISSION_GROUP,
65 MICROPHONE to "blocked_microphone_title",
114 Assume.assumeTrue(sensorPrivacyManager.supportsSensorToggle(MICROPHONE)) in testMicCardDisplayed()
115 runSensorTest(MICROPHONE) in testMicCardDisplayed()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/model/
DSafetyCenterQsViewModel.kt22 import android.Manifest.permission_group.MICROPHONE
145 MICROPHONE -> { in toggleSensor()
146 val blocked = sensorPrivacyManager.isSensorPrivacyEnabled(Sensors.MICROPHONE) in toggleSensor()
147 sensorPrivacyManager.setSensorPrivacy(Sensors.MICROPHONE, !blocked) in toggleSensor()
188 MICROPHONE to in onUpdate()
190 Sensors.MICROPHONE, in onUpdate()
210 sensorPrivacyManager.addSensorPrivacyListener(Sensors.MICROPHONE, this) in onActive()
218 sensorPrivacyManager.removeSensorPrivacyListener(Sensors.MICROPHONE, this) in onInactive()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DPowerComponentHandlerUnitTest.java28 import static android.car.hardware.power.PowerComponent.MICROPHONE;
81 MEDIA, MICROPHONE, NFC, PROJECTION, TRUSTED_DEVICE_DETECTION, in testGetAccumulatedPolicy_firstTime()
93 LOCATION, MEDIA, MICROPHONE, NFC, PROJECTION, TRUSTED_DEVICE_DETECTION, in testApplyPowerPolicy_oneTime()
110 new int[]{BLUETOOTH, CELLULAR, ETHERNET, LOCATION, MICROPHONE, NFC, PROJECTION, in testApplyPowerPolicy_multipleTimes()
134 new int[]{INPUT, MEDIA, AUDIO, BLUETOOTH, CELLULAR, ETHERNET, LOCATION, MICROPHONE, in testApplyPowerPolicy_withCustomComponents()
150 MICROPHONE, NFC, PROJECTION, in testApplyPowerPolicy_withCustomComponents()
DPolicyReaderUnitTest.java28 import static android.car.hardware.power.PowerComponent.MICROPHONE;
84 MICROPHONE, CPU});
87 LOCATION, MICROPHONE, CPU},
101 VOICE_INTERACTION, VISUAL_INTERACTION, LOCATION, MICROPHONE});
106 VISUAL_INTERACTION, TRUSTED_DEVICE_DETECTION, LOCATION, MICROPHONE});
110 new int[]{AUDIO, BLUETOOTH, WIFI, LOCATION, MICROPHONE, CPU});
116 VISUAL_INTERACTION, TRUSTED_DEVICE_DETECTION, LOCATION, MICROPHONE,
124 MICROPHONE, CPU, CUSTOM_COMPONENT_SPECIAL_SENSOR, CUSTOM_COMPONENT_AUX_INPUT});
130 MICROPHONE, CPU, CUSTOM_COMPONENT_1000, CUSTOM_COMPONENT_SPECIAL_SENSOR});
134 LOCATION, MICROPHONE, CPU, CUSTOM_COMPONENT_1000,
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v31/
DReviewOngoingUsageFragment.java20 import static android.Manifest.permission_group.MICROPHONE;
131 } else if (numGroups == 2 && groups.containsKey(MICROPHONE) && groups.containsKey(CAMERA)) { in getListOfPermissionLabels()
212 usedGroups.put(MICROPHONE, KotlinUtils.INSTANCE.getPermGroupLabel(context, in updateDialogView()
213 MICROPHONE)); in updateDialogView()
245 if (group.equals(MICROPHONE) && attrLabels.containsKey(usage.getKey())) { in updateDialogView()
279 if (usedGroups.size() == 1 && usedGroups.keyAt(0).equals(MICROPHONE)) { in getTitle()
283 } else if (usedGroups.size() == 2 && usedGroups.containsKey(MICROPHONE) in getTitle()
/packages/apps/TvSystemUI/src/com/android/systemui/tv/sensorprivacy/
DTvUnblockSensorActivity.java108 && !mSensorPrivacyController.isSensorBlocked(Sensors.MICROPHONE)) { in onCreate()
123 case Sensors.MICROPHONE: in showToastAndFinish()
145 || mSensorPrivacyController.isSensorBlockedByHardwareToggle(Sensors.MICROPHONE); in isBlockedByHardwareToggle()
180 boolean micBlocked = (mSensor == Sensors.MICROPHONE || mSensor == ALL_SENSORS) in updateUiForHardwareToggle()
181 && mSensorPrivacyController.isSensorBlockedByHardwareToggle(Sensors.MICROPHONE); in updateUiForHardwareToggle()
234 case Sensors.MICROPHONE: in updateUiForSoftwareToggle()
261 mSensorPrivacyController.setSensorBlocked(Sources.OTHER, Sensors.MICROPHONE, false); in updateUiForSoftwareToggle()
/packages/services/Car/cpp/powerpolicy/server/tests/
DPolicyManagerTest.cpp129 PowerComponent::MICROPHONE, PowerComponent::CPU},
147 PowerComponent::MICROPHONE, PowerComponent::CPU},
159 PowerComponent::MICROPHONE, PowerComponent::CPU});
169 PowerComponent::MICROPHONE, PowerComponent::CPU},
186 PowerComponent::MICROPHONE, PowerComponent::CPU},
195 PowerComponent::MICROPHONE, PowerComponent::CPU},
207 PowerComponent::MICROPHONE, PowerComponent::CPU},
246 PowerComponent::MICROPHONE, PowerComponent::CPU},
257 PowerComponent::MICROPHONE});
267 PowerComponent::LOCATION, PowerComponent::MICROPHONE});
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DPermissionMapping.kt46 Manifest.permission_group.MICROPHONE
162 Manifest.permission_group.MICROPHONE
165 Manifest.permission_group.MICROPHONE
192 ONE_TIME_PERMISSION_GROUPS.add(Manifest.permission_group.MICROPHONE)
369 return Manifest.permission_group.MICROPHONE in getPlatformPermissionGroupForOp()
372 return Manifest.permission_group.MICROPHONE in getPlatformPermissionGroupForOp()
DUtils.java25 import static android.Manifest.permission_group.MICROPHONE;
276 PERM_GROUP_REQUEST_RES.put(MICROPHONE, R.string.permgrouprequest_microphone); in PERM_GROUP_REQUEST_RES.put() argument
301 PERM_GROUP_REQUEST_DEVICE_AWARE_RES.put(MICROPHONE, in PERM_GROUP_REQUEST_DEVICE_AWARE_RES.put() argument
319 PERM_GROUP_REQUEST_DETAIL_RES.put(MICROPHONE, R.string.permgrouprequestdetail_microphone); in PERM_GROUP_REQUEST_DETAIL_RES.put() argument
326 .put(MICROPHONE, R.string.permgroupbackgroundrequest_microphone); in put() argument
336 .put(MICROPHONE, R.string.permgroupbackgroundrequest_device_aware_microphone); in put() argument
346 .put(MICROPHONE, R.string.permgroupbackgroundrequestdetail_microphone); in put() argument
354 PERM_GROUP_UPGRADE_REQUEST_RES.put(MICROPHONE, R.string.permgroupupgraderequest_microphone); in PERM_GROUP_UPGRADE_REQUEST_RES.put() argument
361 PERM_GROUP_UPGRADE_REQUEST_DEVICE_AWARE_RES.put(MICROPHONE, in PERM_GROUP_UPGRADE_REQUEST_DEVICE_AWARE_RES.put() argument
372 .put(MICROPHONE, R.string.permgroupupgraderequestdetail_microphone); in put() argument
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/v31/
DReviewOngoingUsageViewModel.kt23 import android.Manifest.permission_group.MICROPHONE in <lambda>()
108 listOf(CAMERA, LOCATION, MICROPHONE) in <lambda>()
110 listOf(CAMERA, MICROPHONE) in <lambda>()
143 if (permGroupName == MICROPHONE && isMicMuted.value == true) { in <lambda>()
191 permGroupUsages.value?.get(MICROPHONE) in <lambda>()
378 val usages = permGroupUsages.value?.get(MICROPHONE) ?: emptyList() in <lambda>()
521 CARRIER_PRIVILEGE_STATUS_HAS_ACCESS && usages.contains(MICROPHONE) in <lambda>()
DPermissionUsageControlPreferenceUtils.kt43 Manifest.permission_group.MICROPHONE
113 Manifest.permission_group.MICROPHONE -> { in logSensorDataTimelineViewed()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
DMicPrivacyChipViewController.java19 import static android.hardware.SensorPrivacyManager.Sensors.MICROPHONE;
48 return MICROPHONE; in getChipSensor()
/packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/ui/
DSafetyCenterQsActivityTest.kt21 import android.hardware.SensorPrivacyManager.Sensors.MICROPHONE
51 @get:Rule(order = 3) val enableMicrophoneRule = EnableSensorRule(context, MICROPHONE)
/packages/services/Car/libs/car-test-lib/src/android/car/testapi/
DFakeRefactoredCarPowerPolicyDaemon.java132 PowerComponent.LOCATION, PowerComponent.MICROPHONE}); in createInitialOnPowerPolicy()
143 PowerComponent.MICROPHONE, PowerComponent.CPU}, new int[]{}); in createAllOnPowerPolicy()
157 PowerComponent.MICROPHONE}); in createNoUserPowerPolicy()
164 PowerComponent.LOCATION, PowerComponent.MICROPHONE, PowerComponent.CPU}); in createSuspendPrepPowerPolicy()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DInteractionLogger.kt21 import android.Manifest.permission_group.MICROPHONE as PERMISSION_GROUP_MICROPHONE
405 MICROPHONE(PermissionControllerStatsLog.SAFETY_CENTER_INTERACTION_REPORTED__SENSOR__MICROPHONE), in fromUserId()
436 PERMISSION_GROUP_MICROPHONE -> MICROPHONE in fromUserId()
/packages/services/Car/car-lib/src/android/car/hardware/power/
DPowerComponentUtil.java180 return PowerComponent.MICROPHONE; in toPowerComponent()
228 case PowerComponent.MICROPHONE: in powerComponentToString()
DPowerComponent.java85 int MICROPHONE = 15; field

123