Home
last modified time | relevance | path

Searched refs:appOps (Results 1 – 11 of 11) sorted by relevance

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsApplication.java431 AppOpsManager appOps = (AppOpsManager)context.getSystemService(Context.APP_OPS_SERVICE); in getApplication() local
439 int mode = appOps.checkOp(AppOpsManager.OP_WRITE_SMS, applicationData.mUid, in getApplication()
445 appOps.setMode(AppOpsManager.OP_WRITE_SMS, applicationData.mUid, in getApplication()
465 assignWriteSmsPermissionToSystemApp(context, packageManager, appOps, in getApplication()
467 assignWriteSmsPermissionToSystemApp(context, packageManager, appOps, in getApplication()
469 assignWriteSmsPermissionToSystemApp(context, packageManager, appOps, in getApplication()
471 assignWriteSmsPermissionToSystemApp(context, packageManager, appOps, in getApplication()
477 assignWriteSmsPermissionToSystemUid(appOps, Process.PHONE_UID); in getApplication()
530 AppOpsManager appOps = (AppOpsManager)context.getSystemService(Context.APP_OPS_SERVICE); in setDefaultApplicationInternal() local
535 appOps.setMode(AppOpsManager.OP_WRITE_SMS, info.applicationInfo.uid, in setDefaultApplicationInternal()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DRecentLocationApps.java64 List<AppOpsManager.PackageOps> appOps = aoManager.getPackagesForOps(LOCATION_OPS); in getAppList() local
66 final int appOpsCount = appOps != null ? appOps.size() : 0; in getAppList()
75 AppOpsManager.PackageOps ops = appOps.get(i); in getAppList()
/frameworks/support/v4/kitkat/android/support/v4/app/
DNotificationManagerCompatKitKat.java31 AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in areNotificationsEnabled() local
41 return ((int) checkOpNoThrowMethod.invoke(appOps, value, uid, pkg) in areNotificationsEnabled()
/frameworks/av/services/audioflinger/
DServiceUtilities.cpp98 AppOpsManager appOps; in recordingAllowed() local
99 if (appOps.noteOp(AppOpsManager::OP_RECORD_AUDIO, uid, checkedOpPackageName) in recordingAllowed()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsAccess.java174 AppOpsManager appOps = (AppOpsManager) context.getSystemService( in hasAppOpsPermission() local
177 final int mode = appOps.checkOp(AppOpsManager.OP_GET_USAGE_STATS, in hasAppOpsPermission()
/frameworks/native/libs/gui/
DSensor.cpp124 AppOpsManager appOps; in Sensor() local
125 mRequiredAppOp = appOps.permissionToOpCode(String16(SENSOR_PERMISSION_BODY_SENSORS)); in Sensor()
255 AppOpsManager appOps; in Sensor() local
256 … mRequiredAppOp = appOps.permissionToOpCode(String16(SENSOR_PERMISSION_BODY_SENSORS)); in Sensor()
/frameworks/base/services/core/java/com/android/server/power/
DNotifier.java129 IAppOpsService appOps, SuspendBlocker suspendBlocker, in Notifier() argument
133 mAppOps = appOps; in Notifier()
DPowerManagerService.java559 public void systemReady(IAppOpsService appOps) { in systemReady() argument
562 mAppOps = appOps; in systemReady()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java542 AppOpsManager appOps = in setPackageAuthorization() local
544 appOps.setMode(AppOpsManager.OP_ACTIVATE_VPN, uid, packageName, in setPackageAuthorization()
556 AppOpsManager appOps = in isVpnUserPreConsented() local
560 return appOps.noteOpNoThrow(AppOpsManager.OP_ACTIVATE_VPN, Binder.getCallingUid(), in isVpnUserPreConsented()
/frameworks/native/services/sensorservice/
DSensorService.cpp1258 AppOpsManager appOps; in canAccessSensor() local
1259 if (appOps.noteOp(opCode, IPCThreadState::self()->getCallingUid(), opPackageName) in canAccessSensor()
/frameworks/base/services/core/java/com/android/server/
DMountService.java2970 final AppOpsManager appOps = (AppOpsManager) mContext.getSystemService(
2972 appOps.checkPackage(Binder.getCallingUid(), callingPkg);