Lines Matching refs:AppOpsManager
20 import static android.app.AppOpsManager.MODE_ALLOWED;
21 import static android.app.AppOpsManager.MODE_ERRORED;
22 import static android.app.AppOpsManager.MODE_IGNORED;
27 import android.app.AppOpsManager;
192 AppOpsManager mAppOpsManager = null;
193 int mReadOp = AppOpsManager.OP_NONE;
194 int mWriteOp = AppOpsManager.OP_NONE;
211 if (enforceReadPermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) {
258 if (enforceWritePermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) {
273 if (enforceWritePermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) {
302 != AppOpsManager.MODE_ALLOWED) {
308 != AppOpsManager.MODE_ALLOWED) {
334 if (enforceWritePermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) {
350 if (enforceWritePermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) {
436 if (enforceReadPermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) {
452 if (enforceReadPermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) {
467 != AppOpsManager.MODE_ALLOWED) {
472 != AppOpsManager.MODE_ALLOWED) {
485 if (mReadOp != AppOpsManager.OP_NONE) {
489 return AppOpsManager.MODE_ALLOWED;
499 if (mWriteOp != AppOpsManager.OP_NONE) {
503 return AppOpsManager.MODE_ALLOWED;
525 final int permOp = AppOpsManager.permissionToOpCode(permission);
526 if (permOp != AppOpsManager.OP_NONE) {
834 public AppOpsManager getAppOpsManager() {
1736 mTransport.mAppOpsManager = (AppOpsManager) context.getSystemService(