/frameworks/base/core/java/android/app/ |
AppOpsManager.java | 67 * setting for the operation under that caller: MODE_ALLOWED, MODE_IGNORED (don't execute 84 public static final int MODE_ALLOWED = 0; [all...] |
/frameworks/base/core/java/android/content/ |
ContentProvider.java | 20 import static android.app.AppOpsManager.MODE_ALLOWED; 213 if (enforceReadPermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) { 260 if (enforceWritePermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) { 275 if (enforceWritePermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) { 304 != AppOpsManager.MODE_ALLOWED) { 310 != AppOpsManager.MODE_ALLOWED) { 336 if (enforceWritePermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) { 352 if (enforceWritePermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) { 440 if (enforceReadPermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) { 456 if (enforceReadPermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) { [all...] |
/frameworks/support/compat/java/android/support/v4/app/ |
AppOpsManagerCompat.java | 34 public static final int MODE_ALLOWED = 0; 77 * @return Returns {@link #MODE_ALLOWED} if the operation is allowed, or 103 * @return Returns {@link #MODE_ALLOWED} if the operation is allowed, or
|
/frameworks/native/libs/binder/include/binder/ |
AppOpsManager.h | 31 MODE_ALLOWED = IAppOpsService::MODE_ALLOWED,
|
IAppOpsService.h | 57 MODE_ALLOWED = 0,
|
/packages/apps/Settings/tests/app/src/com/android/settings/applications/ |
ExternalSourcesSettingsTest.java | 19 import static android.app.AppOpsManager.MODE_ALLOWED; 161 findAndVerifySwitchState(appOpMode == MODE_ALLOWED || appOpMode == MODE_DEFAULT); 169 testAppDetailScreenForAppOp(MODE_ALLOWED, user.id); 176 final boolean initialState = (fromAppOp == MODE_ALLOWED || fromAppOp == MODE_DEFAULT); 191 testSwitchToggle(MODE_ALLOWED, MODE_ERRORED); 192 testSwitchToggle(MODE_ERRORED, MODE_ALLOWED);
|
/frameworks/base/services/core/java/com/android/server/ |
MmsServiceBroker.java | 338 callingPkg) != AppOpsManager.MODE_ALLOWED) { 356 callingPkg) != AppOpsManager.MODE_ALLOWED) { 377 callingPkg) != AppOpsManager.MODE_ALLOWED) { 391 callingPkg) != AppOpsManager.MODE_ALLOWED) { 404 callingPkg) != AppOpsManager.MODE_ALLOWED) { 414 callingPkg) != AppOpsManager.MODE_ALLOWED) { 424 callingPkg) != AppOpsManager.MODE_ALLOWED) { 435 callingPkg) != AppOpsManager.MODE_ALLOWED) { 446 callingPkg) != AppOpsManager.MODE_ALLOWED) { 458 callingPkg) != AppOpsManager.MODE_ALLOWED) { [all...] |
/packages/apps/Settings/src/com/android/settings/applications/ |
PictureInPictureDetails.java | 33 import static android.app.AppOpsManager.MODE_ALLOWED; 107 final int newMode = value ? MODE_ALLOWED : MODE_ERRORED; 117 return appOps.checkOpNoThrow(OP_PICTURE_IN_PICTURE, uid, packageName) == MODE_ALLOWED;
|
WriteSettingsDetails.java | 120 ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_ERRORED); 133 if (result == AppOpsManager.MODE_ALLOWED) {
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
TestDocumentsProvider.java | 97 return AppOpsManager.MODE_ALLOWED; 102 return AppOpsManager.MODE_ALLOWED;
|
/cts/tests/tests/permission/src/android/permission/cts/ |
AppOpsTest.java | 54 getContext().getPackageName(), AppOpsManager.MODE_ALLOWED);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
PhoneSubInfoControllerTest.java | 116 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( 166 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( 216 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( 266 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( 319 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( 374 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( 422 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( 441 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( 455 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( 507 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp [all...] |
/frameworks/av/services/audioflinger/ |
ServiceUtilities.cpp | 100 != AppOpsManager::MODE_ALLOWED) {
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
PermissionsUtil.java | 65 return mode == AppOpsManager.MODE_ALLOWED;
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
WifiPermissionsUtilTest.java | 189 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; 217 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; 269 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; 297 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; 322 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; 377 mAllowCoarseLocationApps = AppOpsManager.MODE_ALLOWED; 378 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; 698 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; 729 mAllowCoarseLocationApps = AppOpsManager.MODE_ALLOWED; 730 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
DumpUtils.java | 125 case AppOpsManager.MODE_ALLOWED:
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
PhoneSubInfoController.java | 464 callingPackage) == AppOpsManager.MODE_ALLOWED; 474 Binder.getCallingUid(), callingPackage) == AppOpsManager.MODE_ALLOWED) { 487 == AppOpsManager.MODE_ALLOWED; 499 == AppOpsManager.MODE_ALLOWED;
|
IccSmsInterfaceManager.java | 202 callingPackage) != AppOpsManager.MODE_ALLOWED) { 256 callingPackage) != AppOpsManager.MODE_ALLOWED) { 294 callingPackage) != AppOpsManager.MODE_ALLOWED) { 378 callingPackage) != AppOpsManager.MODE_ALLOWED) { 447 callingPackage) != AppOpsManager.MODE_ALLOWED) { 522 callingPackage) != AppOpsManager.MODE_ALLOWED) { [all...] |
/frameworks/support/core-utils/java/android/support/v4/content/ |
PermissionChecker.java | 113 != AppOpsManagerCompat.MODE_ALLOWED) {
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/ |
ManageAppOp.java | 134 return appOpMode == AppOpsManager.MODE_ALLOWED;
|
ManageAppUsageAccess.java | 108 grant ? AppOpsManager.MODE_ALLOWED : AppOpsManager.MODE_IGNORED);
|
/packages/services/Telephony/src/com/android/phone/ |
LocationAccessPolicy.java | 64 .noteOp(opCode, uid, pkgName) != AppOpsManager.MODE_ALLOWED) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
PipNotificationController.java | 19 import static android.app.AppOpsManager.MODE_ALLOWED; 85 packageName) != MODE_ALLOWED) {
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
BackgroundActivityPreferenceControllerTest.java | 109 mController.getTargetPackage(), AppOpsManager.MODE_ALLOWED); 200 .thenReturn(AppOpsManager.MODE_ALLOWED);
|
/frameworks/base/services/core/java/com/android/server/net/ |
NetworkStatsAccess.java | 186 return (mode == AppOpsManager.MODE_ALLOWED);
|