Home
last modified time | relevance | path

Searched refs:OP_RECORD_AUDIO (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/
DAppOpsControllerTest.java338 assertThat(first.getCode()).isEqualTo(AppOpsManager.OP_RECORD_AUDIO); in startListening_fetchesCurrentActive_multipleAttributes()
364 new int[]{AppOpsManager.OP_RECORD_AUDIO, AppOpsManager.OP_FINE_LOCATION}, in addCallback_existingCallbacksNotifiedOfCurrentActive()
376 AppOpsManager.OP_RECORD_AUDIO, in addCallback_existingCallbacksNotifiedOfCurrentActive()
390 new int[]{AppOpsManager.OP_RECORD_AUDIO, AppOpsManager.OP_FINE_LOCATION}, in addCallback_includedCode()
400 verify(mCallback).onActiveStateChanged(AppOpsManager.OP_RECORD_AUDIO, in addCallback_includedCode()
423 verify(mCallback, never()).onActiveStateChanged(AppOpsManager.OP_RECORD_AUDIO, in addCallback_partialIncludedCode()
442 mController.addCallback(new int[]{AppOpsManager.OP_RECORD_AUDIO}, mCallback); in removeCallback_sameCode()
445 mController.removeCallback(new int[]{AppOpsManager.OP_RECORD_AUDIO}, mCallback); in removeCallback_sameCode()
456 mController.addCallback(new int[]{AppOpsManager.OP_RECORD_AUDIO}, mCallback); in addCallback_notSameCode()
464 verify(mCallback).onActiveStateChanged(AppOpsManager.OP_RECORD_AUDIO, in addCallback_notSameCode()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/
DAppOpsUidStateTrackerTest.java26 import static android.app.AppOpsManager.OP_RECORD_AUDIO;
129 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_RECORD_AUDIO, MODE_FOREGROUND)); in testNoCapability()
144 assertEquals(MODE_ALLOWED, mIntf.evalMode(UID, OP_RECORD_AUDIO, MODE_FOREGROUND)); in testForegroundWithMicrophoneCapability()
160 assertEquals(MODE_ALLOWED, mIntf.evalMode(UID, OP_RECORD_AUDIO, MODE_FOREGROUND)); in testBackgroundWithMicrophoneCapability()
178 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_RECORD_AUDIO, MODE_FOREGROUND)); in testForegroundWithCameraCapability()
194 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_RECORD_AUDIO, MODE_FOREGROUND)); in testBackgroundWithCameraCapability()
211 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_RECORD_AUDIO, MODE_FOREGROUND)); in testForegroundWithLocationCapability()
227 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_RECORD_AUDIO, MODE_FOREGROUND)); in testBackgroundWithLocationCapability()
333 assertEquals(MODE_ALLOWED, mIntf.evalMode(UID, OP_RECORD_AUDIO, MODE_FOREGROUND)); in testMicrophoneCapabilityAdded()
349 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_RECORD_AUDIO, MODE_FOREGROUND)); in testMicrophoneCapabilityRemoved()
[all …]
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVisualQueryDetectorSession.java22 import static android.app.AppOpsManager.OP_RECORD_AUDIO;
189 enforcePermissionsForVisualQueryDelivery(RECORD_AUDIO, OP_RECORD_AUDIO, in startPerceivingLocked()
259 enforcePermissionsForVisualQueryDelivery(RECORD_AUDIO, OP_RECORD_AUDIO, in startPerceivingLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/
DAppOpsPrivacyItemMonitor.kt59 AppOpsManager.OP_RECORD_AUDIO, in <lambda>()
219 AppOpsManager.OP_RECORD_AUDIO -> PrivacyType.TYPE_MICROPHONE in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationGutsManagerTest.java20 import static android.app.AppOpsManager.OP_RECORD_AUDIO;
387 ops.add(OP_RECORD_AUDIO); in testAppOpsSettingsIntent_mic()
399 ops.add(OP_RECORD_AUDIO); in testAppOpsSettingsIntent_camera_mic()
422 ops.add(OP_RECORD_AUDIO); in testAppOpsSettingsIntent_camera_mic_overlay()
446 ops.add(OP_RECORD_AUDIO); in testAppOpsSettingsIntent_mic_overlay()
DNotificationGutsManagerWithScenesTest.kt386 ops.add(AppOpsManager.OP_RECORD_AUDIO) in <lambda>()
402 ops.add(AppOpsManager.OP_RECORD_AUDIO) in <lambda>()
433 ops.add(AppOpsManager.OP_RECORD_AUDIO) in <lambda>()
465 ops.add(AppOpsManager.OP_RECORD_AUDIO) in <lambda>()
/frameworks/base/services/core/java/com/android/server/policy/
DAppOpsPolicy.java462 return AppOpsManager.OP_RECORD_AUDIO; in resolveRecordAudioOp()
469 || !(code == AppOpsManager.OP_RECORD_AUDIO || code == AppOpsManager.OP_CAMERA)) { in resolveSandboxedServiceOp()
479 case AppOpsManager.OP_RECORD_AUDIO: in resolveSandboxedServiceOp()
496 && (code == AppOpsManager.OP_RECORD_AUDIO in resolveUid()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/
DAppOpsPrivacyItemMonitorTest.kt318 AppOpItem(AppOpsManager.OP_RECORD_AUDIO, TEST_UID, TEST_PACKAGE_NAME, 0), in testAlwaysGetPhoneCameraOps()
360 val item = AppOpItem(AppOpsManager.OP_RECORD_AUDIO, TEST_UID, TEST_PACKAGE_NAME, 0) in testDisabledAppOpIsPaused()
371 val item = AppOpItem(AppOpsManager.OP_RECORD_AUDIO, TEST_UID, TEST_PACKAGE_NAME, 0) in testEnabledAppOpIsNotPaused()
/frameworks/native/libs/permission/include/binder/
DAppOpsManager.h70 OP_RECORD_AUDIO = 27, enumerator
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DSuspendPackagesTest.java23 import static android.app.AppOpsManager.OP_RECORD_AUDIO;
267 assertOpBlockedOnSuspend(OP_RECORD_AUDIO); in testRecordAudioBlockedOnSuspend()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationGutsManager.java19 import static android.app.AppOpsManager.OP_RECORD_AUDIO;
259 if (ops.contains(OP_CAMERA) || ops.contains(OP_RECORD_AUDIO)) { in startAppOpsSettingsActivity()
266 } else if (ops.contains(OP_CAMERA) || ops.contains(OP_RECORD_AUDIO)) { in startAppOpsSettingsActivity()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DRecentAppOpsAccess.java54 AppOpsManager.OP_RECORD_AUDIO,
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsUidStateTrackerImpl.java33 import static android.app.AppOpsManager.OP_RECORD_AUDIO;
176 case OP_RECORD_AUDIO: in getOpCapability()
DDiscreteRegistry.java39 import static android.app.AppOpsManager.OP_RECORD_AUDIO;
138 + "," + OP_CAMERA + "," + OP_RECORD_AUDIO + "," + OP_PHONE_CALL_MICROPHONE + ","
DAppOpsService.java45 import static android.app.AppOpsManager.OP_RECORD_AUDIO;
240 OP_RECORD_AUDIO,
3608 result = checkOperation(OP_RECORD_AUDIO, uid, packageName); in startOperationImpl()
/frameworks/base/services/core/java/com/android/server/sensorprivacy/
DSensorPrivacyService.java31 import static android.app.AppOpsManager.OP_RECORD_AUDIO;
309 int[] micAndCameraOps = new int[]{OP_RECORD_AUDIO, OP_PHONE_CALL_MICROPHONE, in SensorPrivacyServiceImpl()
408 if (code == OP_RECORD_AUDIO || code == OP_PHONE_CALL_MICROPHONE in onOpNoted()
1404 mAppOpsManagerInternal.setGlobalRestriction(OP_RECORD_AUDIO, enabled, in setGlobalRestriction()
/frameworks/base/core/java/android/permission/
DPermissionUsageHelper.java37 import static android.app.AppOpsManager.OP_RECORD_AUDIO;
188 int[] ops = {OP_CAMERA, OP_RECORD_AUDIO}; in PermissionUsageHelper()
/frameworks/av/media/utils/
DServiceUtilities.cpp83 return AppOpsManager::OP_RECORD_AUDIO; in getOpForSource()
/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/
DAppOpsControllerImpl.java105 AppOpsManager.OP_RECORD_AUDIO,
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DBackgroundRestrictionTest.java38 import static android.app.AppOpsManager.OP_RECORD_AUDIO;
378 OP_RECORD_AUDIO, in initController()
/frameworks/base/core/java/android/app/
DAppOpsManager.java997 public static final int OP_RECORD_AUDIO = AppProtoEnums.APP_OP_RECORD_AUDIO; field in AppOpsManager
2555 OP_RECORD_AUDIO,
2716 new AppOpInfo.Builder(OP_RECORD_AUDIO, OPSTR_RECORD_AUDIO, "RECORD_AUDIO")
/frameworks/base/services/core/java/com/android/server/am/
DActiveServices.java3353 AppOpsManager.OP_RECORD_AUDIO,
/frameworks/base/core/api/
Dtest-current.txt290 field public static final int OP_RECORD_AUDIO = 27; // 0x1b