/frameworks/base/services/tests/servicestests/src/com/android/server/appop/ |
D | AppOpsActiveWatcherTest.java | 60 appOpsManager.startWatchingActive(new int[] {AppOpsManager.OP_CAMERA, in testWatchActiveOps() 64 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps() 68 .times(1)).onOpActiveChanged(eq(AppOpsManager.OP_CAMERA), in testWatchActiveOps() 78 assertThat(appOpsManager.isOperationActive(AppOpsManager.OP_CAMERA, in testWatchActiveOps() 82 appOpsManager.finishOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps() 86 .times(1)).onOpActiveChanged(eq(AppOpsManager.OP_CAMERA), in testWatchActiveOps() 90 assertThat(appOpsManager.isOperationActive(AppOpsManager.OP_CAMERA, in testWatchActiveOps() 103 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps() 109 appOpsManager.finishOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps() 119 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testIsRunning() [all …]
|
D | AppOpsNotedWatcherTest.java | 56 AppOpsManager.OP_CAMERA}, listener); in testWatchNotedOps() 61 appOpsManager.noteOp(AppOpsManager.OP_CAMERA, Process.myUid(), in testWatchNotedOps() 71 .times(1)).onOpNoted(eq(AppOpsManager.OP_CAMERA), in testWatchNotedOps()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | AppOpsInfoTest.java | 19 import static android.app.AppOpsManager.OP_CAMERA; 115 expectedOps.add(OP_CAMERA); in testBindNotification_SetsOnClickListenerForSettings() 134 expectedOps.add(OP_CAMERA); in testOk() 153 expectedOps.add(OP_CAMERA); in testPrompt_camera() 180 expectedOps.add(OP_CAMERA); in testPrompt_camera_mic() 190 expectedOps.add(OP_CAMERA); in testPrompt_camera_mic_overlay() 202 expectedOps.add(OP_CAMERA); in testPrompt_camera_overlay()
|
D | NotificationGutsManagerTest.java | 19 import static android.app.AppOpsManager.OP_CAMERA; 231 ops.add(OP_CAMERA); in testAppOpsSettingsIntent_camera() 253 ops.add(OP_CAMERA); in testAppOpsSettingsIntent_camera_mic() 276 ops.add(OP_CAMERA); in testAppOpsSettingsIntent_camera_mic_overlay() 289 ops.add(OP_CAMERA); in testAppOpsSettingsIntent_camera_overlay()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | NotificationListControllerTest.java | 126 AppOpsManager.OP_CAMERA, in testAppOps_appOpAddedToForegroundNotif() 132 assertTrue(entry.mActiveAppOps.contains(AppOpsManager.OP_CAMERA)); in testAppOps_appOpAddedToForegroundNotif() 144 mController.updateNotificationsForAppOp(AppOpsManager.OP_CAMERA, 1000, "pkg", true); in testAppOps_appOpAddedToUnrelatedNotif()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/ |
D | AppOpsControllerTest.java | 131 mController.removeCallback(new int[]{AppOpsManager.OP_CAMERA}, mCallback); in addCallback_notSameCode() 152 mController.onOpActiveChanged(AppOpsManager.OP_CAMERA, in getActiveItems_differentDetails() 163 mController.onOpActiveChanged(AppOpsManager.OP_CAMERA, in getActiveItemsForUser()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
D | NotificationDataTest.java | 20 import static android.app.AppOpsManager.OP_CAMERA; 162 expectedOps.add(OP_CAMERA); in testAllRelevantNotisTaggedWithAppOps() 188 expectedOps.add(OP_CAMERA); in testAppOpsRemoval() 200 assertTrue(mRow.getEntry().key + " doesn't have op " + OP_CAMERA, in testAppOpsRemoval() 201 mNotificationData.get(mRow.getEntry().key).mActiveAppOps.contains(OP_CAMERA)); in testAppOpsRemoval() 202 assertTrue(row2.getEntry().key + " doesn't have op " + OP_CAMERA, in testAppOpsRemoval() 203 mNotificationData.get(row2.getEntry().key).mActiveAppOps.contains(OP_CAMERA)); in testAppOpsRemoval()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | AppOpsInfo.java | 126 if (mAppOps.contains(AppOpsManager.OP_CAMERA)) { in getPrompt() 134 if (mAppOps.contains(AppOpsManager.OP_CAMERA)) { in getPrompt()
|
D | NotificationGutsManager.java | 18 import static android.app.AppOpsManager.OP_CAMERA; 170 if (ops.contains(OP_CAMERA) || ops.contains(OP_RECORD_AUDIO)) { in startAppOpsSettingsActivity() 177 } else if (ops.contains(OP_CAMERA) || ops.contains(OP_RECORD_AUDIO)) { in startAppOpsSettingsActivity()
|
/frameworks/native/libs/binder/include/binder/ |
D | AppOpsManager.h | 66 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; 557 assertOpBlockedOnSuspend(OP_CAMERA); in testCameraBlockedOnSuspend()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/ |
D | AppOpsControllerImpl.java | 72 AppOpsManager.OP_CAMERA,
|
/frameworks/av/services/camera/libcameraservice/ |
D | CameraService.cpp | 2488 mAppOpsManager->startWatchingMode(AppOpsManager::OP_CAMERA, in startCameraOps() 2490 res = mAppOpsManager->startOpNoThrow(AppOpsManager::OP_CAMERA, in startCameraOps() 2535 mAppOpsManager->finishOp(AppOpsManager::OP_CAMERA, mClientUid, in finishCameraOps() 2576 if (op != AppOpsManager::OP_CAMERA) { in opChanged() 2582 res = mAppOpsManager->checkOp(AppOpsManager::OP_CAMERA, in opChanged()
|
/frameworks/base/core/java/android/view/ |
D | NotificationHeaderView.java | 345 mCameraIcon.setVisibility(appOps.contains(AppOpsManager.OP_CAMERA) in showAppOpsIcons()
|
/frameworks/base/core/java/android/app/ |
D | AppOpsManager.java | 661 public static final int OP_CAMERA = 26; field in AppOpsManager 1189 OP_CAMERA, 1247 OP_CAMERA, // CAMERA
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | AppOpsService.java | 21 import static android.app.AppOpsManager.OP_CAMERA; 184 OP_CAMERA,
|
/frameworks/base/services/core/java/com/android/server/ |
D | StorageManagerService.java | 3205 if (appOps.isOperationActive(AppOpsManager.OP_CAMERA, callingUid, callingPackage)) { in adjustAllocateFlags()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBar.java | 626 protected static final int[] APP_OPS = new int[] {AppOpsManager.OP_CAMERA,
|