/frameworks/support/compat/kitkat/android/support/v4/app/ |
NotificationManagerCompatKitKat.java | 31 AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); 41 return ((int) checkOpNoThrowMethod.invoke(appOps, value, uid, pkg)
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/ |
RecentLocationApps.java | 61 // Retrieve a location usage list from AppOps 64 List<AppOpsManager.PackageOps> appOps = aoManager.getPackagesForOps(LOCATION_OPS); 66 final int appOpsCount = appOps != null ? appOps.size() : 0; 68 // Process the AppOps list and generate a preference list. 75 AppOpsManager.PackageOps ops = appOps.get(i);
|
/frameworks/av/services/audioflinger/ |
ServiceUtilities.cpp | 98 AppOpsManager appOps; 99 if (appOps.noteOp(AppOpsManager::OP_RECORD_AUDIO, uid, checkedOpPackageName)
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
SmsApplication.java | 423 // Picking a new SMS app requires AppOps and Settings.Secure permissions, so we only do 445 // If we found a package, make sure AppOps permissions are set up correctly 447 AppOpsManager appOps = (AppOpsManager)context.getSystemService(Context.APP_OPS_SERVICE); 455 int mode = appOps.checkOp(AppOpsManager.OP_WRITE_SMS, applicationData.mUid, 461 appOps.setMode(AppOpsManager.OP_WRITE_SMS, applicationData.mUid, 481 assignWriteSmsPermissionToSystemApp(context, packageManager, appOps, 483 assignWriteSmsPermissionToSystemApp(context, packageManager, appOps, 485 assignWriteSmsPermissionToSystemApp(context, packageManager, appOps, 487 assignWriteSmsPermissionToSystemApp(context, packageManager, appOps, 489 // Give WRITE_SMS AppOps permission to UID 1001 which contains multipl [all...] |
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
ShortcutManagerUsageTest.java | 18 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.appOps; 31 private static final String APPOPS_SET_SHELL_COMMAND = "appops set {0} " + 41 appOps(getInstrumentation(), getTestContext().getPackageName(), 47 appOps(getInstrumentation(), getTestContext().getPackageName(),
|
/packages/apps/Bluetooth/src/com/android/bluetooth/ |
Utils.java | 279 public static boolean checkCallerHasLocationPermission(Context context, AppOpsManager appOps, 283 && isAppOppAllowed(appOps, AppOpsManager.OP_FINE_LOCATION, callingPackage)) { 289 && isAppOppAllowed(appOps, AppOpsManager.OP_COARSE_LOCATION, callingPackage)) { 345 private static boolean isAppOppAllowed(AppOpsManager appOps, int op, String callingPackage) { 346 return appOps.noteOp(op, Binder.getCallingUid(), callingPackage)
|
/frameworks/base/services/core/java/com/android/server/net/ |
NetworkStatsAccess.java | 83 * <li>Apps with the PACKAGE_USAGE_STATS permission granted. Note that this is an AppOps bit 132 // Apps with the AppOps permission, profile owners, and apps with the privileged 174 AppOpsManager appOps = (AppOpsManager) context.getSystemService( 177 final int mode = appOps.checkOp(AppOpsManager.OP_GET_USAGE_STATS,
|
/frameworks/native/libs/gui/ |
Sensor.cpp | 124 AppOpsManager appOps; 125 mRequiredAppOp = appOps.permissionToOpCode(String16(SENSOR_PERMISSION_BODY_SENSORS)); 255 AppOpsManager appOps; 256 mRequiredAppOp = appOps.permissionToOpCode(String16(SENSOR_PERMISSION_BODY_SENSORS));
|
/packages/services/Telephony/src/com/android/phone/ |
OutgoingCallBroadcaster.java | 428 AppOpsManager appOps = (AppOpsManager)getSystemService(Context.APP_OPS_SERVICE); 440 if (appOps.noteOpNoThrow(AppOpsManager.OP_CALL_PHONE, launchedFromUid, launchedFromPackage) [all...] |
/frameworks/base/services/core/java/com/android/server/power/ |
Notifier.java | 131 IAppOpsService appOps, SuspendBlocker suspendBlocker, 135 mAppOps = appOps;
|
PowerManagerService.java | 572 public void systemReady(IAppOpsService appOps) { 575 mAppOps = appOps; [all...] |
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/ |
BlockedNumberProvider.java | 494 final AppOpsManager appOps = getContext().getSystemService(AppOpsManager.class); 495 if (appOps.noteOp(AppOpsManager.OP_WRITE_SMS,
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
Vpn.java | 542 AppOpsManager appOps = 544 appOps.setMode(AppOpsManager.OP_ACTIVATE_VPN, uid, packageName, 556 AppOpsManager appOps = 560 return appOps.noteOpNoThrow(AppOpsManager.OP_ACTIVATE_VPN, Binder.getCallingUid(), [all...] |
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
DownloadProvider.java | 580 final AppOpsManager appOps = getContext().getSystemService(AppOpsManager.class); 581 if (appOps.noteProxyOp(AppOpsManager.OP_WRITE_EXTERNAL_STORAGE, [all...] |
/frameworks/native/services/sensorservice/ |
SensorService.cpp | [all...] |
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/ |
ShortcutManagerTestUtils.java | 257 public static void appOps(Instrumentation instrumentation, String packageName, 259 runCommand(instrumentation, "appops set " + packageName + " " + op + " " + mode); [all...] |
/frameworks/base/services/core/java/com/android/server/ |
MountService.java | [all...] |
/external/robolectric/v3/runtime/ |
android-all-4.4_r1-robolectric-1.jar | |
android-all-5.0.0_r2-robolectric-1.jar | |
/prebuilts/sdk/current/support/v13/ |
android-support-v13.jar | |
/prebuilts/sdk/current/support/v4/ |
android-support-v4.jar | |