Home
last modified time | relevance | path

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

/frameworks/base/telephony/java/com/android/internal/telephony/
DSmsApplication.java478 AppOpsManager appOps = (AppOpsManager)context.getSystemService(Context.APP_OPS_SERVICE); in getApplication() local
486 int mode = appOps.checkOp(AppOpsManager.OP_WRITE_SMS, applicationData.mUid, in getApplication()
492 appOps.setMode(AppOpsManager.OP_WRITE_SMS, applicationData.mUid, in getApplication()
512 assignWriteSmsPermissionToSystemApp(context, packageManager, appOps, in getApplication()
514 assignWriteSmsPermissionToSystemApp(context, packageManager, appOps, in getApplication()
516 assignWriteSmsPermissionToSystemApp(context, packageManager, appOps, in getApplication()
518 assignWriteSmsPermissionToSystemApp(context, packageManager, appOps, in getApplication()
524 assignWriteSmsPermissionToSystemUid(appOps, Process.PHONE_UID); in getApplication()
577 AppOpsManager appOps = (AppOpsManager)context.getSystemService(Context.APP_OPS_SERVICE); in setDefaultApplicationInternal() local
582 appOps.setMode(AppOpsManager.OP_WRITE_SMS, info.applicationInfo.uid, in setDefaultApplicationInternal()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DRecentLocationApps.java67 List<AppOpsManager.PackageOps> appOps = aoManager.getPackagesForOps(LOCATION_OPS); in getAppList() local
69 final int appOpsCount = appOps != null ? appOps.size() : 0; in getAppList()
78 AppOpsManager.PackageOps ops = appOps.get(i); in getAppList()
/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/core/java/com/android/internal/util/
DDumpUtils.java120 final AppOpsManager appOps = context.getSystemService(AppOpsManager.class); in checkUsageStatsPermission() local
124 switch (appOps.checkOpNoThrow(AppOpsManager.OP_GET_USAGE_STATS, uid, pkg)) { in checkUsageStatsPermission()
/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/opt/telephony/src/java/com/android/internal/telephony/
DAppSmsManager.java77 AppOpsManager appOps = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in createAppSpecificSmsToken() local
78 appOps.checkPackage(Binder.getCallingUid(), callingPkg); in createAppSpecificSmsToken()
/frameworks/native/libs/sensor/
DSensor.cpp117 AppOpsManager appOps; in Sensor() local
118 mRequiredAppOp = appOps.permissionToOpCode(String16(SENSOR_PERMISSION_BODY_SENSORS)); in Sensor()
263 AppOpsManager appOps; in Sensor() local
264 … mRequiredAppOp = appOps.permissionToOpCode(String16(SENSOR_PERMISSION_BODY_SENSORS)); in Sensor()
/frameworks/base/services/core/java/com/android/server/power/
DNotifier.java133 IAppOpsService appOps, SuspendBlocker suspendBlocker, in Notifier() argument
137 mAppOps = appOps; in Notifier()
DPowerManagerService.java715 public void systemReady(IAppOpsService appOps) { in systemReady() argument
718 mAppOps = appOps; in systemReady()
/frameworks/support/compat/java/android/support/v4/app/
DNotificationManagerCompat.java220 AppOpsManager appOps = in areNotificationsEnabled() local
231 return ((int) checkOpNoThrowMethod.invoke(appOps, value, uid, pkg) in areNotificationsEnabled()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java570 AppOpsManager appOps = in setPackageAuthorization() local
572 appOps.setMode(AppOpsManager.OP_ACTIVATE_VPN, uid, packageName, in setPackageAuthorization()
584 AppOpsManager appOps = in isVpnUserPreConsented() local
588 return appOps.noteOpNoThrow(AppOpsManager.OP_ACTIVATE_VPN, Binder.getCallingUid(), in isVpnUserPreConsented()
/frameworks/native/services/sensorservice/
DSensorService.cpp1445 AppOpsManager appOps; in canAccessSensor() local
1446 if (appOps.noteOp(opCode, IPCThreadState::self()->getCallingUid(), opPackageName) in canAccessSensor()
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
DShortcutManagerTestUtils.java261 public static void appOps(Instrumentation instrumentation, String packageName, in appOps() method in ShortcutManagerTestUtils
/frameworks/base/services/core/java/com/android/server/
DStorageManagerService.java3112 final AppOpsManager appOps = (AppOpsManager) mContext.getSystemService( in mkdirs() local
3114 appOps.checkPackage(Binder.getCallingUid(), callingPkg); in mkdirs()