Searched refs:OP_CAMERA (Results 1 - 14 of 14) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/appops/
H A DAppOpsActiveWatcherTest.java59 appOpsManager.startWatchingActive(new int[] {AppOpsManager.OP_CAMERA,
63 appOpsManager.startOp(AppOpsManager.OP_CAMERA);
67 .times(1)).onOpActiveChanged(eq(AppOpsManager.OP_CAMERA),
77 assertThat(appOpsManager.isOperationActive(AppOpsManager.OP_CAMERA,
81 appOpsManager.finishOp(AppOpsManager.OP_CAMERA);
85 .times(1)).onOpActiveChanged(eq(AppOpsManager.OP_CAMERA),
89 assertThat(appOpsManager.isOperationActive(AppOpsManager.OP_CAMERA,
102 appOpsManager.startOp(AppOpsManager.OP_CAMERA);
108 appOpsManager.finishOp(AppOpsManager.OP_CAMERA);
118 appOpsManager.startOp(AppOpsManager.OP_CAMERA);
[all...]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
H A DAppOpsInfoTest.java19 import static android.app.AppOpsManager.OP_CAMERA;
115 expectedOps.add(OP_CAMERA);
134 expectedOps.add(OP_CAMERA);
153 expectedOps.add(OP_CAMERA);
180 expectedOps.add(OP_CAMERA);
190 expectedOps.add(OP_CAMERA);
202 expectedOps.add(OP_CAMERA);
H A DNotificationGutsManagerTest.java19 import static android.app.AppOpsManager.OP_CAMERA;
196 ops.add(OP_CAMERA);
216 ops.add(OP_CAMERA);
237 ops.add(OP_CAMERA);
249 ops.add(OP_CAMERA);
H A DNotificationDataTest.java20 import static android.app.AppOpsManager.OP_CAMERA;
163 expectedOps.add(OP_CAMERA);
189 expectedOps.add(OP_CAMERA);
201 assertTrue(mRow.getEntry().key + " doesn't have op " + OP_CAMERA,
202 mNotificationData.get(mRow.getEntry().key).mActiveAppOps.contains(OP_CAMERA));
203 assertTrue(row2.getEntry().key + " doesn't have op " + OP_CAMERA,
204 mNotificationData.get(row2.getEntry().key).mActiveAppOps.contains(OP_CAMERA));
H A DNotificationEntryManagerTest.java302 AppOpsManager.OP_CAMERA, mEntry.notification.getUid(),
307 AppOpsManager.OP_CAMERA));
316 mEntryManager.updateNotificationsForAppOp(AppOpsManager.OP_CAMERA, 1000, "pkg", true);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DAppOpsListener.java41 protected static final int[] OPS = new int[] {AppOpsManager.OP_CAMERA,
H A DAppOpsInfo.java128 if (mAppOps.contains(AppOpsManager.OP_CAMERA)) {
136 if (mAppOps.contains(AppOpsManager.OP_CAMERA)) {
H A DNotificationGutsManager.java18 import static android.app.AppOpsManager.OP_CAMERA;
136 if (ops.contains(OP_CAMERA) || ops.contains(OP_RECORD_AUDIO)) {
143 } else if (ops.contains(OP_CAMERA) || ops.contains(OP_RECORD_AUDIO)) {
/frameworks/native/include/binder/
H A DAppOpsManager.h66 OP_CAMERA = 26, enumerator in enum:android::AppOpsManager::__anon1439
/frameworks/native/libs/binder/include/binder/
H A DAppOpsManager.h66 OP_CAMERA = 26, enumerator in enum:android::AppOpsManager::__anon1559
/frameworks/base/core/java/android/app/
H A DAppOpsManager.java251 public static final int OP_CAMERA = 26; field in class:AppOpsManager
639 OP_CAMERA,
686 OP_CAMERA, // CAMERA
/frameworks/av/services/camera/libcameraservice/
H A DCameraService.cpp2228 mAppOpsManager.startWatchingMode(AppOpsManager::OP_CAMERA,
2230 res = mAppOpsManager.startOpNoThrow(AppOpsManager::OP_CAMERA,
2268 mAppOpsManager.finishOp(AppOpsManager::OP_CAMERA, mClientUid,
2305 if (op != AppOpsManager::OP_CAMERA) {
2311 res = mAppOpsManager.checkOp(AppOpsManager::OP_CAMERA,
/frameworks/base/core/java/android/view/
H A DNotificationHeaderView.java332 mCameraIcon.setVisibility(appOps.contains(AppOpsManager.OP_CAMERA)
/frameworks/base/services/core/java/com/android/server/
H A DStorageManagerService.java2886 if (appOps.isOperationActive(AppOpsManager.OP_CAMERA, callingUid, callingPackage)) {

Completed in 81 milliseconds