HomeSort by relevance Sort by last modified time
    Searched refs:AppOpsManager (Results 26 - 50 of 123) sorted by null

12 3 4 5

  /frameworks/base/services/core/java/com/android/server/
AppOpsService.java 37 import android.app.AppOpsManager;
158 mode = AppOpsManager.opToDefaultMode(op);
299 if (noteOperation(AppOpsManager.OP_READ_EXTERNAL_STORAGE, uid,
300 packageName) != AppOpsManager.MODE_ALLOWED) {
303 if (noteOperation(AppOpsManager.OP_WRITE_EXTERNAL_STORAGE, uid,
304 packageName) != AppOpsManager.MODE_ALLOWED) {
368 private ArrayList<AppOpsManager.OpEntry> collectOps(Ops pkgOps, int[] ops) {
369 ArrayList<AppOpsManager.OpEntry> resOps = null;
371 resOps = new ArrayList<AppOpsManager.OpEntry>();
374 resOps.add(new AppOpsManager.OpEntry(curOp.op, curOp.mode, curOp.time
    [all...]
VibratorService.java 19 import android.app.AppOpsManager;
453 int mode = mAppOpsService.checkAudioOperation(AppOpsManager.OP_VIBRATE,
455 if (mode == AppOpsManager.MODE_ALLOWED) {
456 mode = mAppOpsService.startOperation(AppOpsManager.getToken(mAppOpsService),
457 AppOpsManager.OP_VIBRATE, vib.mUid, vib.mOpPkg);
459 if (mode != AppOpsManager.MODE_ALLOWED) {
460 if (mode == AppOpsManager.MODE_ERRORED) {
482 mAppOpsService.finishOperation(AppOpsManager.getToken(mAppOpsService),
483 AppOpsManager.OP_VIBRATE, mCurrentVibration.mUid,
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/
SmsApplication.java 20 import android.app.AppOpsManager;
354 AppOpsManager appOps = (AppOpsManager)context.getSystemService(Context.APP_OPS_SERVICE);
362 int mode = appOps.checkOp(AppOpsManager.OP_WRITE_SMS, applicationData.mUid,
364 if (mode != AppOpsManager.MODE_ALLOWED) {
368 appOps.setMode(AppOpsManager.OP_WRITE_SMS, applicationData.mUid,
369 applicationData.mPackageName, AppOpsManager.MODE_ALLOWED);
441 AppOpsManager appOps = (AppOpsManager)context.getSystemService(Context.APP_OPS_SERVICE);
446 appOps.setMode(AppOpsManager.OP_WRITE_SMS, info.applicationInfo.uid
    [all...]
IccSmsInterfaceManager.java 20 import android.app.AppOpsManager;
82 final protected AppOpsManager mAppOps;
131 mAppOps = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE);
200 if (mAppOps.noteOp(AppOpsManager.OP_WRITE_ICC_SMS, Binder.getCallingUid(),
201 callingPackage) != AppOpsManager.MODE_ALLOWED) {
254 if (mAppOps.noteOp(AppOpsManager.OP_WRITE_ICC_SMS, Binder.getCallingUid(),
255 callingPackage) != AppOpsManager.MODE_ALLOWED) {
292 if (mAppOps.noteOp(AppOpsManager.OP_READ_ICC_SMS, Binder.getCallingUid(),
293 callingPackage) != AppOpsManager.MODE_ALLOWED) {
378 if (mAppOps.noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid()
    [all...]
  /packages/apps/Settings/src/com/android/settings/applications/
AppStateAppOpsBridge.java 20 import android.app.AppOpsManager;
21 import android.app.AppOpsManager.PackageOps;
44 * Connects app ops info to the ApplicationsState. Makes use of AppOpsManager to
54 private final AppOpsManager mAppOpsManager;
66 mAppOpsManager = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);
225 final List<AppOpsManager.PackageOps> packageOps = mAppOpsManager.getPackagesForOps(
229 final AppOpsManager.PackageOps packageOp = packageOps.get(i);
308 this.appOpMode = AppOpsManager.MODE_DEFAULT;
316 if (appOpMode == AppOpsManager.MODE_DEFAULT) {
319 return appOpMode == AppOpsManager.MODE_ALLOWED
    [all...]
UsageAccessDetails.java 19 import android.app.AppOpsManager;
51 private AppOpsManager mAppOpsManager;
65 mAppOpsManager = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);
122 mAppOpsManager.setMode(AppOpsManager.OP_GET_USAGE_STATS, mPackageInfo.applicationInfo.uid,
123 mPackageName, newState ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_IGNORED);
ResetAppsHelper.java 23 import android.app.AppOpsManager;
50 private final AppOpsManager mAom;
62 mAom = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);
  /frameworks/base/core/java/android/content/
ContentProvider.java 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)
    [all...]
  /packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/
AppPermissionGroup.java 20 import android.app.AppOpsManager;
45 private final AppOpsManager mAppOps;
148 ? AppOpsManager.permissionToOpCode(requestedPermissionInfo.name)
149 : AppOpsManager.OP_NONE;
151 final boolean appOpAllowed = appOp != AppOpsManager.OP_NONE
152 && context.getSystemService(AppOpsManager.class).checkOp(appOp,
154 == AppOpsManager.MODE_ALLOWED;
193 mAppOps = context.getSystemService(AppOpsManager.class);
228 if (permission.getAppOp() != AppOpsManager.OP_NONE) {
279 != AppOpsManager.OP_NONE && permission.isAppOpAllowed()
    [all...]
  /packages/apps/Settings/src/com/android/settings/vpn2/
VpnSettings.java 19 import android.app.AppOpsManager;
64 import static android.app.AppOpsManager.OP_ACTIVATE_VPN;
226 for (AppOpsManager.PackageOps pkg : getVpnApps()) {
353 private List<AppOpsManager.PackageOps> getVpnApps() {
354 List<AppOpsManager.PackageOps> result = Lists.newArrayList();
363 AppOpsManager aom = (AppOpsManager) getSystemService(Context.APP_OPS_SERVICE);
364 List<AppOpsManager.PackageOps> apps = aom.getPackagesForOps(new int[] {OP_ACTIVATE_VPN});
366 for (AppOpsManager.PackageOps pkg : apps) {
374 for (AppOpsManager.OpEntry op : pkg.getOps())
    [all...]
  /frameworks/native/include/binder/
AppOpsManager.h 27 class AppOpsManager
97 AppOpsManager();
  /packages/apps/CellBroadcastReceiver/tests/src/com/android/cellbroadcastreceiver/tests/
SendCdmaCmasMessages.java 21 import android.app.AppOpsManager;
68 AppOpsManager.OP_RECEIVE_EMERGECY_SMS, null, null, Activity.RESULT_OK, null, null);
83 AppOpsManager.OP_RECEIVE_EMERGECY_SMS, null, null, Activity.RESULT_OK, null, null);
98 AppOpsManager.OP_RECEIVE_EMERGECY_SMS, null, null, Activity.RESULT_OK, null, null);
113 AppOpsManager.OP_RECEIVE_EMERGECY_SMS, null, null, Activity.RESULT_OK, null, null);
128 AppOpsManager.OP_RECEIVE_EMERGECY_SMS, null, null, Activity.RESULT_OK, null, null);
SendTestMessages.java 21 import android.app.AppOpsManager;
435 AppOpsManager.OP_RECEIVE_SMS, null, null, Activity.RESULT_OK, null, null);
444 AppOpsManager.OP_RECEIVE_SMS, null, null, Activity.RESULT_OK, null, null);
453 AppOpsManager.OP_RECEIVE_SMS, null, null, Activity.RESULT_OK, null, null);
462 AppOpsManager.OP_RECEIVE_SMS, null, null, Activity.RESULT_OK, null, null);
474 AppOpsManager.OP_RECEIVE_SMS, null, null, Activity.RESULT_OK, null, null);
483 AppOpsManager.OP_RECEIVE_SMS, null, null, Activity.RESULT_OK, null, null);
492 AppOpsManager.OP_RECEIVE_SMS, null, null, Activity.RESULT_OK, null, null);
502 AppOpsManager.OP_RECEIVE_SMS, null, null, Activity.RESULT_OK, null, null);
512 AppOpsManager.OP_RECEIVE_SMS, null, null, Activity.RESULT_OK, null, null)
    [all...]
  /frameworks/base/media/java/android/media/
SoundPool.java 24 import android.app.AppOpsManager;
171 if (op == AppOpsManager.OP_PLAY_AUDIO) {
178 mAppOps.startWatchingMode(AppOpsManager.OP_PLAY_AUDIO,
504 final int mode = mAppOps.checkAudioOperation(AppOpsManager.OP_PLAY_AUDIO,
507 mHasAppOpsPlayAudio = (mode == AppOpsManager.MODE_ALLOWED);
  /packages/apps/Bluetooth/src/com/android/bluetooth/
Utils.java 21 import android.app.AppOpsManager;
277 public static boolean checkCallerHasLocationPermission(Context context, AppOpsManager appOps,
281 && isAppOppAllowed(appOps, AppOpsManager.OP_FINE_LOCATION, callingPackage)) {
287 && isAppOppAllowed(appOps, AppOpsManager.OP_COARSE_LOCATION, callingPackage)) {
331 private static boolean isAppOppAllowed(AppOpsManager appOps, int op, String callingPackage) {
333 == AppOpsManager.MODE_ALLOWED;
  /packages/apps/Settings/src/com/android/settings/
DeviceAdminAdd.java 19 import android.app.AppOpsManager;
75 AppOpsManager mAppOps;
107 mAppOps = (AppOpsManager)getSystemService(Context.APP_OPS_SERVICE);
384 mCurSysAppOpMode = mAppOps.checkOp(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, uid, pkg);
385 mCurToastAppOpMode = mAppOps.checkOp(AppOpsManager.OP_TOAST_WINDOW, uid, pkg);
386 mAppOps.setMode(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, uid, pkg, AppOpsManager.MODE_IGNORED);
387 mAppOps.setMode(AppOpsManager.OP_TOAST_WINDOW, uid, pkg, AppOpsManager.MODE_IGNORED);
396 mAppOps.setMode(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, uid, pkg, mCurSysAppOpMode)
    [all...]
  /packages/apps/Dialer/src/com/android/dialer/settings/
DefaultRingtonePreference.java 19 import android.app.AppOpsManager;
  /frameworks/base/services/core/java/com/android/server/location/
GeofenceManager.java 24 import android.app.AppOpsManager;
72 private final AppOpsManager mAppOps;
112 mAppOps = (AppOpsManager)mContext.getSystemService(Context.APP_OPS_SERVICE);
269 if (mAppOps.noteOpNoThrow(AppOpsManager.OP_FINE_LOCATION, state.mUid,
270 state.mPackageName) != AppOpsManager.MODE_ALLOWED) {
  /packages/services/Telephony/src/com/android/phone/
OutgoingCallBroadcaster.java 23 import android.app.AppOpsManager;
428 AppOpsManager appOps = (AppOpsManager)getSystemService(Context.APP_OPS_SERVICE);
440 if (appOps.noteOpNoThrow(AppOpsManager.OP_CALL_PHONE, launchedFromUid, launchedFromPackage)
441 != AppOpsManager.MODE_ALLOWED) {
640 AppOpsManager.OP_PROCESS_OUTGOING_CALLS,
    [all...]
  /frameworks/base/services/core/java/com/android/server/am/
BroadcastQueue.java 28 import android.app.AppOpsManager;
479 final int opCode = AppOpsManager.permissionToOpCode(filter.requiredPermission);
480 if (opCode != AppOpsManager.OP_NONE
482 r.callerPackage) != AppOpsManager.MODE_ALLOWED) {
487 + " requires appop " + AppOpsManager.permissionToOp(
511 int appOp = AppOpsManager.permissionToOpCode(requiredPermission);
512 if (appOp != AppOpsManager.OP_NONE && appOp != r.appOp
515 != AppOpsManager.MODE_ALLOWED) {
521 + " requires appop " + AppOpsManager.permissionToOp(
544 if (!skip && r.appOp != AppOpsManager.OP_NON
    [all...]
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
CdmaServiceCategoryProgramHandler.java 21 import android.app.AppOpsManager;
110 AppOpsManager.OP_RECEIVE_SMS, mScpResultsReceiver,
  /packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
CellBroadcastContentProvider.java 19 import android.app.AppOpsManager;
78 setAppOps(AppOpsManager.OP_READ_CELL_BROADCASTS, AppOpsManager.OP_NONE);
  /frameworks/base/services/core/java/com/android/server/media/projection/
MediaProjectionManagerService.java 22 import android.app.AppOpsManager;
65 private final AppOpsManager mAppOps;
79 mAppOps = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE);
213 AppOpsManager.OP_PROJECT_MEDIA, uid, packageName)
214 == AppOpsManager.MODE_ALLOWED;
237 mAppOps.setMode(AppOpsManager.OP_PROJECT_MEDIA,
238 projection.uid, projection.packageName, AppOpsManager.MODE_ALLOWED);
  /frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
VoiceInteractionSessionConnection.java 21 import android.app.AppOpsManager;
73 final AppOpsManager mAppOps;
160 mAppOps = context.getSystemService(AppOpsManager.class);
225 if (mAppOps.noteOpNoThrow(AppOpsManager.OP_ASSIST_STRUCTURE, mCallingUid,
226 mSessionComponentName.getPackageName()) == AppOpsManager.MODE_ALLOWED
250 if (mAppOps.noteOpNoThrow(AppOpsManager.OP_ASSIST_SCREENSHOT, mCallingUid,
251 mSessionComponentName.getPackageName()) == AppOpsManager.MODE_ALLOWED
  /frameworks/base/services/core/java/com/android/server/power/
Notifier.java 20 import android.app.AppOpsManager;
185 mAppOps.startOperation(AppOpsManager.getToken(mAppOps),
186 AppOpsManager.OP_WAKE_LOCK, ownerUid, packageName);
250 mAppOps.finishOperation(AppOpsManager.getToken(mAppOps),
251 AppOpsManager.OP_WAKE_LOCK, ownerUid, packageName);
490 mAppOps.noteOperation(AppOpsManager.OP_TURN_SCREEN_ON, opUid, opPackageName);

Completed in 2579 milliseconds

12 3 4 5