HomeSort by relevance Sort by last modified time
    Searched refs:appOpsManager (Results 1 - 13 of 13) sorted by null

  /frameworks/support/v4/api23/android/support/v4/app/
AppOpsManagerCompat23.java 19 import android.app.AppOpsManager;
23 * AppOpsManager implementations for API 23.
27 return AppOpsManager.permissionToOp(permission);
31 AppOpsManager appOpsManager = context.getSystemService(AppOpsManager.class);
32 return appOpsManager.noteOp(op, uid, packageName);
36 AppOpsManager appOpsManager = context.getSystemService(AppOpsManager.class)
    [all...]
  /packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/
OverlayTouchActivity.java 19 import android.app.AppOpsManager;
39 AppOpsManager appOpsManager = getSystemService(AppOpsManager.class);
40 if (appOpsManager != null) {
41 appOpsManager.setUserRestriction(AppOpsManager.OP_SYSTEM_ALERT_WINDOW,
  /packages/apps/ContactsCommon/src/com/android/contacts/common/util/
PermissionsUtil.java 20 import android.app.AppOpsManager;
61 final AppOpsManager appOpsManager =
62 (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);
63 final int mode = appOpsManager.checkOpNoThrow(appOp, Process.myUid(),
65 return mode == AppOpsManager.MODE_ALLOWED;
  /packages/apps/Settings/src/com/android/settings/applications/
WriteSettingsDetails.java 19 import android.app.AppOpsManager;
52 AppOpsManager.OP_WRITE_SETTINGS
58 private AppOpsManager mAppOpsManager;
71 mAppOpsManager = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);
120 mAppOpsManager.setMode(AppOpsManager.OP_WRITE_SETTINGS,
122 ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED);
126 int result = mAppOpsManager.noteOpNoThrow(AppOpsManager.OP_WRITE_SETTINGS,
128 if (result == AppOpsManager.MODE_ALLOWED) {
194 AppOpsManager appOpsManager = (AppOpsManager) context.getSystemService(Contex
    [all...]
DrawOverlayDetails.java 19 import android.app.AppOpsManager;
49 AppOpsManager.OP_SYSTEM_ALERT_WINDOW
55 private AppOpsManager mAppOpsManager;
68 mAppOpsManager = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);
118 mAppOpsManager.setMode(AppOpsManager.OP_SYSTEM_ALERT_WINDOW,
120 ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED);
124 int result = mAppOpsManager.noteOpNoThrow(AppOpsManager.OP_SYSTEM_ALERT_WINDOW,
126 if (result == AppOpsManager.MODE_ALLOWED) {
193 AppOpsManager appOpsManager = (AppOpsManager) context.getSystemService(Contex
    [all...]
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DevelopmentFragment.java 23 import android.app.AppOpsManager;
162 private static final int[] MOCK_LOCATION_APP_OPS = new int[] {AppOpsManager.OP_MOCK_LOCATION};
700 AppOpsManager appOpsManager =
701 (AppOpsManager) getActivity().getSystemService(Context.APP_OPS_SERVICE);
704 List<AppOpsManager.PackageOps> packageOps =
705 appOpsManager.getPackagesForOps(MOCK_LOCATION_APP_OPS);
708 for (AppOpsManager.PackageOps packageOp : packageOps) {
709 if (packageOp.getOps().get(0).getMode() != AppOpsManager.MODE_ERRORED) {
714 appOpsManager.setMode(AppOpsManager.OP_MOCK_LOCATION, ai.uid
    [all...]
  /frameworks/base/services/core/java/com/android/server/vr/
VrManagerService.java 20 import android.app.AppOpsManager;
558 AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class);
562 appOpsManager.setUserRestrictionForUser(AppOpsManager.OP_SYSTEM_ALERT_WINDOW,
570 appOpsManager.setUserRestrictionForUser(AppOpsManager.OP_SYSTEM_ALERT_WINDOW,
    [all...]
  /packages/apps/Settings/src/com/android/settings/
DevelopmentSettings.java 23 import android.app.AppOpsManager;
24 import android.app.AppOpsManager.PackageOps;
218 private static final int[] MOCK_LOCATION_APP_OPS = new int[] {AppOpsManager.OP_MOCK_LOCATION};
    [all...]
  /frameworks/base/core/java/com/android/internal/inputmethod/
InputMethodUtils.java 22 import android.app.AppOpsManager;
    [all...]
  /prebuilts/sdk/current/support/v13/
android-support-v13.jar 
  /prebuilts/sdk/current/support/v4/
android-support-v4.jar 
  /external/robolectric/v3/runtime/
android-all-5.0.0_r2-robolectric-1.jar 
android-all-5.1.1_r9-robolectric-1.jar 

Completed in 584 milliseconds