/frameworks/base/services/tests/servicestests/src/com/android/server/appop/ |
D | AppOpsActiveWatcherTest.java | 66 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps() 81 assertThat(appOpsManager.isOperationActive(AppOpsManager.OP_CAMERA, in testWatchActiveOps() 85 appOpsManager.finishOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps() 94 assertThat(appOpsManager.isOperationActive(AppOpsManager.OP_CAMERA, in testWatchActiveOps() 107 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps() 113 appOpsManager.finishOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps() 123 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps() 132 appOpsManager.finishOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps() 140 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testIsRunning() 145 appOpsManager.finishOp(AppOpsManager.OP_CAMERA); in testIsRunning() [all …]
|
D | AppOpsStartedWatcherTest.java | 54 AppOpsManager.OP_CAMERA}, listener); in testWatchStartedOps() 58 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testWatchStartedOps() 71 .times(1)).onOpStarted(eq(AppOpsManager.OP_CAMERA), in testWatchStartedOps() 90 appOpsManager.startWatchingStarted(new int[]{AppOpsManager.OP_CAMERA}, listener); in testWatchStartedOps() 93 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testWatchStartedOps() 98 .times(2)).onOpStarted(eq(AppOpsManager.OP_CAMERA), in testWatchStartedOps() 107 appOpsManager.finishOp(AppOpsManager.OP_CAMERA); in testWatchStartedOps()
|
D | AppOpsNotedWatcherTest.java | 56 AppOpsManager.OP_CAMERA}, listener); in testWatchNotedOps() 61 appOpsManager.noteOp(AppOpsManager.OP_CAMERA, Process.myUid(), in testWatchNotedOps() 72 .times(1)).onOpNoted(eq(AppOpsManager.OP_CAMERA), in testWatchNotedOps() 89 AppOpsManager.OP_CAMERA}, listener); in testWatchNotedOps()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/ |
D | AppOpsControllerTest.java | 198 mController.removeCallback(new int[]{AppOpsManager.OP_CAMERA}, mCallback); in addCallback_notSameCode() 490 AppOpsManager.OP_CAMERA in testOnlyRecordAudioPhoneCallMicrophonePaused() 499 AppOpsManager.OP_CAMERA, TEST_UID, TEST_PACKAGE_NAME, true); in testOnlyRecordAudioPhoneCallMicrophonePaused() 503 assertEquals(AppOpsManager.OP_CAMERA, list.get(0).getCode()); in testOnlyRecordAudioPhoneCallMicrophonePaused() 546 mController.addCallback(new int[]{AppOpsManager.OP_RECORD_AUDIO, AppOpsManager.OP_CAMERA}, in testAudioFilteredWhenMicDisabled() 564 assertEquals(AppOpsManager.OP_CAMERA, list.get(0).getCode()); in testAudioFilteredWhenMicDisabled() 573 int micIdx = list.get(0).getCode() == AppOpsManager.OP_CAMERA ? 1 : 0; in testAudioFilteredWhenMicDisabled() 580 new int[]{AppOpsManager.OP_PHONE_CALL_MICROPHONE, AppOpsManager.OP_CAMERA}, in testPhoneCallMicrophoneFilteredWhenMicDisabled() 598 assertEquals(AppOpsManager.OP_CAMERA, list.get(0).getCode()); in testPhoneCallMicrophoneFilteredWhenMicDisabled() 607 int micIdx = list.get(0).getCode() == AppOpsManager.OP_CAMERA ? 1 : 0; in testPhoneCallMicrophoneFilteredWhenMicDisabled() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/ |
D | AppOpsPrivacyItemMonitorTest.kt | 138 doReturn(listOf(AppOpItem(AppOpsManager.OP_CAMERA, TEST_UID, TEST_PACKAGE_NAME, 0), in testDistinctItems() 139 AppOpItem(AppOpsManager.OP_CAMERA, TEST_UID, TEST_PACKAGE_NAME, 0))) in testDistinctItems() 147 doReturn(listOf(AppOpItem(AppOpsManager.OP_CAMERA, TEST_UID, TEST_PACKAGE_NAME, 0), in testSimilarItemsDifferentTimeStamp() 148 AppOpItem(AppOpsManager.OP_CAMERA, TEST_UID, TEST_PACKAGE_NAME, 1))) in testSimilarItemsDifferentTimeStamp() 229 doReturn(listOf(AppOpItem(AppOpsManager.OP_CAMERA, TEST_UID, TEST_PACKAGE_NAME, 0), in testNotSendingLocationWhenLocationDisabled() 284 AppOpItem(AppOpsManager.OP_CAMERA, otherUserUid, TEST_PACKAGE_NAME, 0)) in testListFilterCurrentUser() 332 AppOpItem(AppOpsManager.OP_CAMERA, TEST_UID, TEST_PACKAGE_NAME, 0), in testAlwaysGetPhoneMicOps()
|
/frameworks/av/services/camera/libcameraservice/api2/ |
D | CameraOfflineSessionClient.cpp | 220 mAppOpsManager->startWatchingMode(AppOpsManager::OP_CAMERA, in startCameraOps() 223 res = mAppOpsManager->startOpNoThrow(AppOpsManager::OP_CAMERA, in startCameraOps() 258 mAppOpsManager->finishOp(AppOpsManager::OP_CAMERA, mClientUid, in finishCameraOps()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationGutsManagerTest.java | 19 import static android.app.AppOpsManager.OP_CAMERA; 260 ops.add(OP_CAMERA); in testAppOpsSettingsIntent_camera() 282 ops.add(OP_CAMERA); in testAppOpsSettingsIntent_camera_mic() 305 ops.add(OP_CAMERA); in testAppOpsSettingsIntent_camera_mic_overlay() 318 ops.add(OP_CAMERA); in testAppOpsSettingsIntent_camera_overlay()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/ |
D | AppOpsPrivacyItemMonitor.kt | 56 val OPS_MIC_CAMERA = intArrayOf(AppOpsManager.OP_CAMERA, in <lambda>() 208 AppOpsManager.OP_CAMERA -> PrivacyType.TYPE_CAMERA in <lambda>()
|
/frameworks/native/libs/permission/include/binder/ |
D | AppOpsManager.h | 69 OP_CAMERA = 26, enumerator
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | SuspendPackagesTest.java | 21 import static android.app.AppOpsManager.OP_CAMERA; 257 assertOpBlockedOnSuspend(OP_CAMERA); in testCameraBlockedOnSuspend()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationGutsManager.java | 18 import static android.app.AppOpsManager.OP_CAMERA; 218 if (ops.contains(OP_CAMERA) || ops.contains(OP_RECORD_AUDIO)) { in startAppOpsSettingsActivity() 225 } 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 | 55 AppOpsManager.OP_CAMERA,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/ |
D | AppOpsControllerImpl.java | 101 AppOpsManager.OP_CAMERA, 535 return op == AppOpsManager.OP_CAMERA || op == AppOpsManager.OP_PHONE_CALL_CAMERA; in isOpCamera()
|
/frameworks/base/services/core/java/com/android/server/sensorprivacy/ |
D | SensorPrivacyService.java | 25 import static android.app.AppOpsManager.OP_CAMERA; 274 OP_CAMERA, OP_PHONE_CALL_CAMERA}; in SensorPrivacyServiceImpl() 345 } else if (code == OP_CAMERA || code == OP_PHONE_CALL_CAMERA) { in onOpNoted() 1077 mAppOpsManagerInternal.setGlobalRestriction(OP_CAMERA, enabled, in setGlobalRestriction()
|
/frameworks/base/core/java/android/permission/ |
D | PermissionUsageHelper.java | 35 import static android.app.AppOpsManager.OP_CAMERA; 190 int[] ops = {OP_CAMERA, OP_RECORD_AUDIO}; in PermissionUsageHelper()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
D | ForegroundServiceControllerTest.java | 94 AppOpsManager.OP_CAMERA, in testAppOpsChangedCalledFromBgThread()
|
/frameworks/av/services/camera/libcameraservice/ |
D | CameraService.cpp | 3528 mAppOpsManager->startWatchingMode(AppOpsManager::OP_CAMERA, in startCameraOps() 3533 int32_t mode = mAppOpsManager->checkOp(AppOpsManager::OP_CAMERA, mClientUid, in startCameraOps() 3570 int32_t mode = mAppOpsManager->startOpNoThrow(AppOpsManager::OP_CAMERA, mClientUid, in startCameraStreamingOps() 3593 int32_t mode = mAppOpsManager->noteOp(AppOpsManager::OP_CAMERA, mClientUid, in noteAppOp() 3618 mAppOpsManager->finishOp(AppOpsManager::OP_CAMERA, mClientUid, in finishCameraStreamingOps() 3668 if (op != AppOpsManager::OP_CAMERA) { in opChanged() 3674 res = mAppOpsManager->checkOp(AppOpsManager::OP_CAMERA, in opChanged()
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | DiscreteRegistry.java | 27 import static android.app.AppOpsManager.OP_CAMERA; 136 + "," + OP_CAMERA + "," + OP_RECORD_AUDIO + "," + OP_PHONE_CALL_MICROPHONE + ","
|
D | AppOpsService.java | 40 import static android.app.AppOpsManager.OP_CAMERA; 269 OP_CAMERA, 610 case OP_CAMERA: in evalMode()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | BackgroundRestrictionTest.java | 35 import static android.app.AppOpsManager.OP_CAMERA; 325 OP_CAMERA, in initController()
|
/frameworks/base/core/java/android/app/ |
D | AppOpsManager.java | 964 public static final int OP_CAMERA = AppProtoEnums.APP_OP_CAMERA; field in AppOpsManager 1871 OP_CAMERA, 1946 OP_CAMERA, // CAMERA
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityTaskSupervisor.java | 1306 AppOpsManager.OP_CAMERA, user, callingPackage, null); in getActionRestrictionForCallingPackage()
|
/frameworks/base/services/core/java/com/android/server/ |
D | StorageManagerService.java | 4087 if (appOps.isOperationActive(AppOpsManager.OP_CAMERA, callingUid, callingPackage)) { in adjustAllocateFlags()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActiveServices.java | 2496 AppOpsManager.OP_CAMERA
|
D | ActivityManagerService.java | 1908 final int[] cameraOp = {AppOpsManager.OP_CAMERA}; in setSystemProcess()
|