Home
last modified time | relevance | path

Searched refs:OP_CAMERA (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsActiveWatcherTest.java60 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 …]
DAppOpsNotedWatcherTest.java56 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/
DAppOpsInfoTest.java19 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()
DNotificationGutsManagerTest.java19 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/
DNotificationListControllerTest.java126 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/
DAppOpsControllerTest.java131 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/
DNotificationDataTest.java20 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/
DAppOpsInfo.java126 if (mAppOps.contains(AppOpsManager.OP_CAMERA)) { in getPrompt()
134 if (mAppOps.contains(AppOpsManager.OP_CAMERA)) { in getPrompt()
DNotificationGutsManager.java18 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/
DAppOpsManager.h66 OP_CAMERA = 26, enumerator
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DSuspendPackagesTest.java21 import static android.app.AppOpsManager.OP_CAMERA;
557 assertOpBlockedOnSuspend(OP_CAMERA); in testCameraBlockedOnSuspend()
/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/
DAppOpsControllerImpl.java72 AppOpsManager.OP_CAMERA,
/frameworks/av/services/camera/libcameraservice/
DCameraService.cpp2488 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/
DNotificationHeaderView.java345 mCameraIcon.setVisibility(appOps.contains(AppOpsManager.OP_CAMERA) in showAppOpsIcons()
/frameworks/base/core/java/android/app/
DAppOpsManager.java661 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/
DAppOpsService.java21 import static android.app.AppOpsManager.OP_CAMERA;
184 OP_CAMERA,
/frameworks/base/services/core/java/com/android/server/
DStorageManagerService.java3205 if (appOps.isOperationActive(AppOpsManager.OP_CAMERA, callingUid, callingPackage)) { in adjustAllocateFlags()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBar.java626 protected static final int[] APP_OPS = new int[] {AppOpsManager.OP_CAMERA,