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

1 2 3 4 5

  /frameworks/base/core/java/android/app/
AppOpsManager.aidl 19 parcelable AppOpsManager.PackageOps;
20 parcelable AppOpsManager.OpEntry;
AppOpsManager.java 49 public class AppOpsManager {
769 AppOpsManager.MODE_ALLOWED,
770 AppOpsManager.MODE_ALLOWED,
771 AppOpsManager.MODE_ALLOWED,
772 AppOpsManager.MODE_ALLOWED,
773 AppOpsManager.MODE_ALLOWED,
774 AppOpsManager.MODE_ALLOWED,
775 AppOpsManager.MODE_ALLOWED,
776 AppOpsManager.MODE_ALLOWED,
777 AppOpsManager.MODE_ALLOWED
    [all...]
  /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/Settings/src/com/android/settings/applications/
AppOpsState.java 19 import android.app.AppOpsManager;
48 final AppOpsManager mAppOps;
57 mAppOps = (AppOpsManager)context.getSystemService(Context.APP_OPS_SERVICE);
100 new int[] { AppOpsManager.OP_COARSE_LOCATION,
101 AppOpsManager.OP_FINE_LOCATION,
102 AppOpsManager.OP_GPS,
103 AppOpsManager.OP_WIFI_SCAN,
104 AppOpsManager.OP_NEIGHBORING_CELLS,
105 AppOpsManager.OP_MONITOR_LOCATION,
106 AppOpsManager.OP_MONITOR_HIGH_POWER_LOCATION }
    [all...]
WriteSettingsDetails.java 19 import android.app.AppOpsManager;
55 AppOpsManager.OP_WRITE_SETTINGS
61 private AppOpsManager mAppOpsManager;
74 mAppOpsManager = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);
123 mAppOpsManager.setMode(AppOpsManager.OP_WRITE_SETTINGS,
125 ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED);
129 int result = mAppOpsManager.noteOpNoThrow(AppOpsManager.OP_WRITE_SETTINGS,
131 if (result == AppOpsManager.MODE_ALLOWED) {
193 AppOpsManager appOpsManager = (AppOpsManager) context.getSystemService(Contex
    [all...]
DrawOverlayDetails.java 19 import android.app.AppOpsManager;
55 AppOpsManager.OP_SYSTEM_ALERT_WINDOW
61 private AppOpsManager mAppOpsManager;
74 mAppOpsManager = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);
124 mAppOpsManager.setMode(AppOpsManager.OP_SYSTEM_ALERT_WINDOW,
126 ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED);
130 int result = mAppOpsManager.noteOpNoThrow(AppOpsManager.OP_SYSTEM_ALERT_WINDOW,
132 if (result == AppOpsManager.MODE_ALLOWED) {
195 AppOpsManager appOpsManager = (AppOpsManager) context.getSystemService(Contex
    [all...]
AppOpsDetails.java 20 import android.app.AppOpsManager;
57 private AppOpsManager mAppOps;
109 final AppOpsManager.OpEntry firstOp = entry.getOpEntry(0);
113 String perm = AppOpsManager.opToPermission(firstOp.getOp());
133 final int switchOp = AppOpsManager.opToSwitch(firstOp.getOp());
135 entry.getPackageOps().getPackageName()) == AppOpsManager.MODE_ALLOWED);
141 ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_IGNORED);
165 mAppOps = (AppOpsManager)getActivity().getSystemService(Context.APP_OPS_SERVICE);
AppStateOverlayBridge.java 19 import android.app.AppOpsManager;
35 private static final int APP_OPS_OP_CODE = AppOpsManager.OP_SYSTEM_ALERT_WINDOW;
AppStateUsageBridge.java 19 import android.app.AppOpsManager;
37 private static final int APP_OPS_OP_CODE = AppOpsManager.OP_GET_USAGE_STATS;
AppStateWriteSettingsBridge.java 19 import android.app.AppOpsManager;
35 private static final int APP_OPS_OP_CODE = AppOpsManager.OP_WRITE_SETTINGS;
  /frameworks/native/libs/binder/
AppOpsManager.cpp 17 #include <binder/AppOpsManager.h>
38 AppOpsManager::AppOpsManager()
42 sp<IAppOpsService> AppOpsManager::getService()
68 int32_t AppOpsManager::checkOp(int32_t op, int32_t uid, const String16& callingPackage)
74 int32_t AppOpsManager::noteOp(int32_t op, int32_t uid, const String16& callingPackage) {
79 int32_t AppOpsManager::startOp(int32_t op, int32_t uid, const String16& callingPackage) {
85 void AppOpsManager::finishOp(int32_t op, int32_t uid, const String16& callingPackage) {
92 void AppOpsManager::startWatchingMode(int32_t op, const String16& packageName,
100 void AppOpsManager::stopWatchingMode(const sp<IAppOpsCallback>& callback)
    [all...]
  /cts/tests/tests/permission/src/android/permission/cts/
AppOpsTest.java 19 import android.app.AppOpsManager;
33 private AppOpsManager mAppOps;
38 mAppOps = (AppOpsManager)getContext().getSystemService(Context.APP_OPS_SERVICE);
54 getContext().getPackageName(), AppOpsManager.MODE_ALLOWED);
  /frameworks/base/services/core/java/com/android/server/
MmsServiceBroker.java 20 import android.app.AppOpsManager;
73 private volatile AppOpsManager mAppOpsManager = null;
296 private AppOpsManager getAppOpsManager() {
298 mAppOpsManager = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE);
336 if (getAppOpsManager().noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid(),
337 callingPkg) != AppOpsManager.MODE_ALLOWED) {
354 if (getAppOpsManager().noteOp(AppOpsManager.OP_RECEIVE_MMS, Binder.getCallingUid(),
355 callingPkg) != AppOpsManager.MODE_ALLOWED) {
375 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(),
376 callingPkg) != AppOpsManager.MODE_ALLOWED)
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
LocationControllerImpl.java 20 import android.app.AppOpsManager;
50 = new int[] {AppOpsManager.OP_MONITOR_HIGH_POWER_LOCATION};
54 private AppOpsManager mAppOpsManager;
72 mAppOpsManager = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);
146 List<AppOpsManager.PackageOps> packages
148 // AppOpsManager can return null when there is no requested data.
152 AppOpsManager.PackageOps packageOp = packages.get(packageInd);
153 List<AppOpsManager.OpEntry> opEntries = packageOp.getOps();
157 AppOpsManager.OpEntry opEntry = opEntries.get(opInd);
158 // AppOpsManager should only return OP_MONITOR_HIGH_POWER_LOCATION becaus
    [all...]
  /frameworks/av/services/audioflinger/
ServiceUtilities.cpp 17 #include <binder/AppOpsManager.h>
90 AppOpsManager appOps;
91 if (appOps.noteOp(AppOpsManager::OP_RECORD_AUDIO, uid, checkedOpPackageName)
92 != AppOpsManager::MODE_ALLOWED) {
  /packages/apps/ContactsCommon/src/com/android/contacts/common/util/
PermissionsUtil.java 20 import android.app.AppOpsManager;
59 final AppOpsManager appOpsManager =
60 (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);
61 final int mode = appOpsManager.checkOpNoThrow(appOp, Process.myUid(),
63 return mode == AppOpsManager.MODE_ALLOWED;
  /packages/apps/Settings/src/com/android/settings/location/
RecentLocationApps.java 20 import android.app.AppOpsManager;
104 AppOpsManager aoManager =
105 (AppOpsManager) mActivity.getSystemService(Context.APP_OPS_SERVICE);
106 List<AppOpsManager.PackageOps> appOps = aoManager.getPackagesForOps(new int[] {
107 AppOpsManager.OP_MONITOR_LOCATION, AppOpsManager.OP_MONITOR_HIGH_POWER_LOCATION, });
117 AppOpsManager.PackageOps ops = appOps.get(i);
146 AppOpsManager.PackageOps ops) {
148 List<AppOpsManager.OpEntry> entries = ops.getOps();
153 for (AppOpsManager.OpEntry entry : entries)
    [all...]
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
LocationActivity.java 19 import android.app.AppOpsManager;
113 AppOpsManager aoManager = (AppOpsManager) getSystemService(Context.APP_OPS_SERVICE);
114 List<AppOpsManager.PackageOps> appOps = aoManager.getPackagesForOps(
116 AppOpsManager.OP_MONITOR_LOCATION,
117 AppOpsManager.OP_MONITOR_HIGH_POWER_LOCATION,
120 for (AppOpsManager.PackageOps ops : appOps) {
130 private Layout.Action getActionFromOps(long now, AppOpsManager.PackageOps ops) {
132 List<AppOpsManager.OpEntry> entries = ops.getOps();
139 for (AppOpsManager.OpEntry entry : entries)
    [all...]
  /frameworks/base/cmds/appops/src/com/android/commands/appops/
AppOpsCommand.java 21 import android.app.AppOpsManager;
91 return AppOpsManager.strOpToOp(op);
99 return AppOpsManager.strDebugOpToOp(op);
146 modeInt = AppOpsManager.MODE_ALLOWED;
149 modeInt = AppOpsManager.MODE_ERRORED;
152 modeInt = AppOpsManager.MODE_IGNORED;
155 modeInt = AppOpsManager.MODE_DEFAULT;
219 List<AppOpsManager.PackageOps> ops = appOpsService.getOpsForPackage(uid, packageName,
227 List<AppOpsManager.OpEntry> entries = ops.get(i).getOps();
229 AppOpsManager.OpEntry ent = entries.get(j)
    [all...]
  /frameworks/base/core/java/com/android/internal/app/
IAppOpsService.aidl 19 import android.app.AppOpsManager;
39 List<AppOpsManager.PackageOps> getPackagesForOps(in int[] ops);
40 List<AppOpsManager.PackageOps> getOpsForPackage(int uid, String packageName, in int[] ops);
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/
CellBroadcastHandler.java 21 import android.app.AppOpsManager;
86 appOp = AppOpsManager.OP_RECEIVE_EMERGECY_SMS;
91 appOp = AppOpsManager.OP_RECEIVE_SMS;
PhoneSubInfo.java 21 import android.app.AppOpsManager;
39 private AppOpsManager mAppOps;
51 mAppOps = mContext.getSystemService(AppOpsManager.class);
380 return mAppOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, Binder.getCallingUid(),
381 callingPackage) == AppOpsManager.MODE_ALLOWED;
390 if (mAppOps.noteOp(AppOpsManager.OP_WRITE_SMS,
391 Binder.getCallingUid(), callingPackage) == AppOpsManager.MODE_ALLOWED) {
399 return mAppOps.noteOp(AppOpsManager.OP_READ_SMS,
400 Binder.getCallingUid(), callingPackage) == AppOpsManager.MODE_ALLOWED;
  /cts/tests/tests/app.usage/src/android/app/usage/cts/
NetworkUsageStatsTest.java 19 import android.app.AppOpsManager;
142 mWriteSettingsMode = getAppOpsMode(AppOpsManager.OPSTR_WRITE_SETTINGS);
143 setAppOpsMode(AppOpsManager.OPSTR_WRITE_SETTINGS, "allow");
144 mUsageStatsMode = getAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS);
150 setAppOpsMode(AppOpsManager.OPSTR_WRITE_SETTINGS, mWriteSettingsMode);
153 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, mUsageStatsMode);
219 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "allow");
232 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "deny");
251 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "allow");
264 setAppOpsMode(AppOpsManager.OPSTR_GET_USAGE_STATS, "deny")
    [all...]
  /frameworks/base/services/core/java/com/android/server/clipboard/
ClipboardService.java 21 import android.app.AppOpsManager;
64 private final AppOpsManager mAppOps;
102 mAppOps = (AppOpsManager)context.getSystemService(Context.APP_OPS_SERVICE);
166 if (mAppOps.noteOp(AppOpsManager.OP_WRITE_CLIPBOARD, callingUid,
167 callingPackage) != AppOpsManager.MODE_ALLOWED) {
231 if (mAppOps.checkOpNoThrow(AppOpsManager.OP_READ_CLIPBOARD, li.mUid,
232 li.mPackageName) == AppOpsManager.MODE_ALLOWED) {
249 if (mAppOps.noteOp(AppOpsManager.OP_READ_CLIPBOARD, Binder.getCallingUid(),
250 pkg) != AppOpsManager.MODE_ALLOWED) {
260 if (mAppOps.checkOp(AppOpsManager.OP_READ_CLIPBOARD, Binder.getCallingUid()
    [all...]
  /packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/
Permission.java 19 import android.app.AppOpsManager;
52 return mAppOp != AppOpsManager.OP_NONE;

Completed in 884 milliseconds

1 2 3 4 5