/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/ |
D | AppOpsControllerTest.java | 338 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/ |
D | AppOpsUidStateTrackerTest.java | 26 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/ |
D | VisualQueryDetectorSession.java | 22 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/ |
D | AppOpsPrivacyItemMonitor.kt | 59 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/ |
D | NotificationGutsManagerTest.java | 20 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()
|
D | NotificationGutsManagerWithScenesTest.kt | 386 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/ |
D | AppOpsPolicy.java | 462 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/ |
D | AppOpsPrivacyItemMonitorTest.kt | 318 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/ |
D | AppOpsManager.h | 70 OP_RECORD_AUDIO = 27, enumerator
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | SuspendPackagesTest.java | 23 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/ |
D | NotificationGutsManager.java | 19 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/ |
D | RecentAppOpsAccess.java | 54 AppOpsManager.OP_RECORD_AUDIO,
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | AppOpsUidStateTrackerImpl.java | 33 import static android.app.AppOpsManager.OP_RECORD_AUDIO; 176 case OP_RECORD_AUDIO: in getOpCapability()
|
D | DiscreteRegistry.java | 39 import static android.app.AppOpsManager.OP_RECORD_AUDIO; 138 + "," + OP_CAMERA + "," + OP_RECORD_AUDIO + "," + OP_PHONE_CALL_MICROPHONE + ","
|
D | AppOpsService.java | 45 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/ |
D | SensorPrivacyService.java | 31 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/ |
D | PermissionUsageHelper.java | 37 import static android.app.AppOpsManager.OP_RECORD_AUDIO; 188 int[] ops = {OP_CAMERA, OP_RECORD_AUDIO}; in PermissionUsageHelper()
|
/frameworks/av/media/utils/ |
D | ServiceUtilities.cpp | 83 return AppOpsManager::OP_RECORD_AUDIO; in getOpForSource()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/ |
D | AppOpsControllerImpl.java | 105 AppOpsManager.OP_RECORD_AUDIO,
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | BackgroundRestrictionTest.java | 38 import static android.app.AppOpsManager.OP_RECORD_AUDIO; 378 OP_RECORD_AUDIO, in initController()
|
/frameworks/base/core/java/android/app/ |
D | AppOpsManager.java | 997 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/ |
D | ActiveServices.java | 3353 AppOpsManager.OP_RECORD_AUDIO,
|
/frameworks/base/core/api/ |
D | test-current.txt | 290 field public static final int OP_RECORD_AUDIO = 27; // 0x1b
|