Home
last modified time | relevance | path

Searched refs:mAppOps (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/src/com/android/settings/
DDeviceAdminAdd.java91 AppOpsManager mAppOps; field in DeviceAdminAdd
128 mAppOps = (AppOpsManager)getSystemService(Context.APP_OPS_SERVICE); in onCreate()
454 mCurSysAppOpMode = mAppOps.checkOp(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, uid, pkg); in onResume()
455 mCurToastAppOpMode = mAppOps.checkOp(AppOpsManager.OP_TOAST_WINDOW, uid, pkg); in onResume()
456 mAppOps.setMode(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, uid, pkg, AppOpsManager.MODE_IGNORED); in onResume()
457 mAppOps.setMode(AppOpsManager.OP_TOAST_WINDOW, uid, pkg, AppOpsManager.MODE_IGNORED); in onResume()
466 mAppOps.setMode(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, uid, pkg, mCurSysAppOpMode); in onPause()
467 mAppOps.setMode(AppOpsManager.OP_TOAST_WINDOW, uid, pkg, mCurToastAppOpMode); in onPause()
/packages/apps/Settings/src/com/android/settings/applications/
DAppOpsDetails.java56 private AppOpsManager mAppOps; field in AppOpsDetails
133 sw.setChecked(mAppOps.checkOp(switchOp, entry.getPackageOps().getUid(), in refreshUi()
138 mAppOps.setMode(switchOp, entry.getPackageOps().getUid(), in refreshUi()
164 mAppOps = (AppOpsManager)getActivity().getSystemService(Context.APP_OPS_SERVICE); in onCreate()
DAppOpsState.java48 final AppOpsManager mAppOps; field in AppOpsState
57 mAppOps = (AppOpsManager)context.getSystemService(Context.APP_OPS_SERVICE); in AppOpsState()
497 return mAppOps; in getAppOpsManager()
552 pkgs = mAppOps.getOpsForPackage(uid, packageName, tpl.ops); in buildState()
554 pkgs = mAppOps.getPackagesForOps(tpl.ops); in buildState()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/
DAppPermissionGroup.java47 private final AppOpsManager mAppOps; field in AppPermissionGroup
194 mAppOps = context.getSystemService(AppOpsManager.class); in AppPermissionGroup()
340 mAppOps.setUidMode(permission.getAppOp(), uid, AppOpsManager.MODE_ALLOWED); in grantRuntimePermissions()
379 mAppOps.setUidMode(permission.getAppOp(), uid, AppOpsManager.MODE_ALLOWED); in grantRuntimePermissions()
479 mAppOps.setUidMode(permission.getAppOp(), uid, AppOpsManager.MODE_IGNORED); in revokeRuntimePermissions()
/packages/services/Telephony/src/com/android/phone/
DPhoneInterfaceManager.java149 private AppOpsManager mAppOps; field in PhoneInterfaceManager
865 mAppOps = (AppOpsManager)app.getSystemService(Context.APP_OPS_SERVICE); in PhoneInterfaceManager()
935 if (mAppOps.noteOp(AppOpsManager.OP_CALL_PHONE, Binder.getCallingUid(), callingPackage) in callForSubscriber()
1435 if (mAppOps.noteOp(AppOpsManager.OP_COARSE_LOCATION, Binder.getCallingUid(), in getCellLocation()
1507 if (mAppOps.noteOp(AppOpsManager.OP_COARSE_LOCATION, Binder.getCallingUid(), in getNeighboringCellInfo()
1512 if (mAppOps.noteOp(AppOpsManager.OP_NEIGHBORING_CELLS, Binder.getCallingUid(), in getNeighboringCellInfo()
1543 if (mAppOps.noteOp(AppOpsManager.OP_COARSE_LOCATION, Binder.getCallingUid(), in getAllCellInfo()
2840 if (mAppOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, Binder.getCallingUid(), in canReadPhoneState()
2853 if (mAppOps.noteOp(AppOpsManager.OP_WRITE_SMS, in canReadPhoneNumber()
2863 return mAppOps.noteOp(AppOpsManager.OP_READ_SMS, in canReadPhoneNumber()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DGattService.java171 private AppOpsManager mAppOps; field in GattService
193 mAppOps = getSystemService(AppOpsManager.class); in start()
1301 scanClient.hasLocationPermission = Utils.checkCallerHasLocationPermission(this, mAppOps, in startScan()