/frameworks/base/core/java/android/app/ |
D | AppOpsManager.java | 84 public static final int MODE_ALLOWED = 0; field in AppOpsManager 888 AppOpsManager.MODE_ALLOWED, 889 AppOpsManager.MODE_ALLOWED, 890 AppOpsManager.MODE_ALLOWED, 891 AppOpsManager.MODE_ALLOWED, 892 AppOpsManager.MODE_ALLOWED, 893 AppOpsManager.MODE_ALLOWED, 894 AppOpsManager.MODE_ALLOWED, 895 AppOpsManager.MODE_ALLOWED, 896 AppOpsManager.MODE_ALLOWED, [all …]
|
/frameworks/base/core/java/android/content/ |
D | ContentProvider.java | 20 import static android.app.AppOpsManager.MODE_ALLOWED; 215 if (enforceReadPermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) { in query() 262 if (enforceWritePermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) { in insert() 277 if (enforceWritePermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) { in bulkInsert() 306 != AppOpsManager.MODE_ALLOWED) { in applyBatch() 312 != AppOpsManager.MODE_ALLOWED) { in applyBatch() 338 if (enforceWritePermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) { in delete() 354 if (enforceWritePermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) { in update() 442 if (enforceReadPermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) { in canonicalize() 458 if (enforceReadPermission(callingPkg, uri, null) != AppOpsManager.MODE_ALLOWED) { in uncanonicalize() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | MmsServiceBroker.java | 338 callingPkg) != AppOpsManager.MODE_ALLOWED) { in sendMessage() 356 callingPkg) != AppOpsManager.MODE_ALLOWED) { in downloadMessage() 377 callingPkg) != AppOpsManager.MODE_ALLOWED) { in importTextMessage() 391 callingPkg) != AppOpsManager.MODE_ALLOWED) { in importMultimediaMessage() 404 callingPkg) != AppOpsManager.MODE_ALLOWED) { in deleteStoredMessage() 414 callingPkg) != AppOpsManager.MODE_ALLOWED) { in deleteStoredConversation() 424 callingPkg) != AppOpsManager.MODE_ALLOWED) { in updateStoredMessageStatus() 435 callingPkg) != AppOpsManager.MODE_ALLOWED) { in archiveStoredConversation() 446 callingPkg) != AppOpsManager.MODE_ALLOWED) { in addTextMessageDraft() 458 callingPkg) != AppOpsManager.MODE_ALLOWED) { in addMultimediaMessageDraft() [all …]
|
D | AppOpsService.java | 305 case AppOpsManager.MODE_ALLOWED: in systemReady() 325 packageName) != AppOpsManager.MODE_ALLOWED) { in systemReady() 329 packageName) != AppOpsManager.MODE_ALLOWED) { in systemReady() 976 if (mode != AppOpsManager.MODE_ALLOWED) { in checkAudioOperation() 1000 return AppOpsManager.MODE_ALLOWED; in checkRestrictionLocked() 1015 if (mode != AppOpsManager.MODE_ALLOWED) { in setAudioRestriction() 1039 return AppOpsManager.MODE_ALLOWED; in checkPackage() 1057 if (proxyMode != AppOpsManager.MODE_ALLOWED || Binder.getCallingUid() == proxiedUid) { in noteProxyOperation() 1103 if (uidMode != AppOpsManager.MODE_ALLOWED) { in noteOperationUnchecked() 1112 if (switchOp.mode != AppOpsManager.MODE_ALLOWED) { in noteOperationUnchecked() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | WifiPermissionsUtilTest.java | 178 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; in testCanReadPeersMacAddressCurrentUserAndAllPermissions() 206 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; in testCanReadPeersMacAddressCurrentProfileAndAllPermissions() 258 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; in testCanAccessScanResults_UserOrProfileNotCurrent() 286 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; in testCannotAccessScanResults_NoInteractAcrossUsersFullPermission() 311 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; in testCanAccessScanResults_CallerIsActiveNwScorer() 339 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; in testLegacyForegroundAppAndAllPermissions() 370 mAllowCoarseLocationApps = AppOpsManager.MODE_ALLOWED; in testLegacyAppHasLocationAndAllPermissions() 371 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; in testLegacyAppHasLocationAndAllPermissions() 441 mAllowCoarseLocationApps = AppOpsManager.MODE_ALLOWED; in testEnforceLocationPermission() 442 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; in testEnforceLocationPermission()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PhoneSubInfoControllerTest.java | 116 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetDeviceIdWithOutPermission() 166 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetNaiWithOutPermission() 216 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetImeiWithOutPermission() 266 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetDeviceSvnWithOutPermission() 319 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetSubscriberIdWithOutPermission() 374 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetIccSerialNumberWithOutPermission() 422 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testLine1NumberWithOutPermission() 441 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testLine1NumberWithOutPermission() 455 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testLine1NumberWithOutPermission() 507 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testLine1AlphaTagWithOutPermission() [all …]
|
/frameworks/native/libs/binder/include/binder/ |
D | AppOpsManager.h | 31 MODE_ALLOWED = IAppOpsService::MODE_ALLOWED, enumerator
|
D | IAppOpsService.h | 57 MODE_ALLOWED = 0, enumerator
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | TestDocumentsProvider.java | 97 return AppOpsManager.MODE_ALLOWED; in enforceReadPermissionInner() 102 return AppOpsManager.MODE_ALLOWED; in enforceWritePermissionInner()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | PhoneSubInfoController.java | 434 callingPackage) == AppOpsManager.MODE_ALLOWED; in checkReadPhoneState() 444 Binder.getCallingUid(), callingPackage) == AppOpsManager.MODE_ALLOWED) { in checkReadPhoneNumber() 457 == AppOpsManager.MODE_ALLOWED; in checkReadPhoneNumber() 469 == AppOpsManager.MODE_ALLOWED; in checkReadPhoneNumber()
|
D | IccSmsInterfaceManager.java | 202 callingPackage) != AppOpsManager.MODE_ALLOWED) { in updateMessageOnIccEf() 256 callingPackage) != AppOpsManager.MODE_ALLOWED) { in copyMessageToIccEf() 294 callingPackage) != AppOpsManager.MODE_ALLOWED) { in getAllMessagesFromIccEf() 378 callingPackage) != AppOpsManager.MODE_ALLOWED) { in sendDataInternal() 447 callingPackage) != AppOpsManager.MODE_ALLOWED) { in sendTextInternal() 522 callingPackage) != AppOpsManager.MODE_ALLOWED) { in sendMultipartText() 938 != AppOpsManager.MODE_ALLOWED) { in sendStoredText() 964 != AppOpsManager.MODE_ALLOWED) { in sendStoredMultipartText()
|
/frameworks/support/compat/java/android/support/v4/app/ |
D | AppOpsManagerCompat.java | 35 public static final int MODE_ALLOWED = 0; field in AppOpsManagerCompat
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | PipNotificationController.java | 19 import static android.app.AppOpsManager.MODE_ALLOWED; 74 != MODE_ALLOWED) {
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | SmsApplication.java | 488 if (mode != AppOpsManager.MODE_ALLOWED) { in getApplication() 493 applicationData.mPackageName, AppOpsManager.MODE_ALLOWED); in getApplication() 600 applicationData.mPackageName, AppOpsManager.MODE_ALLOWED); in setDefaultApplicationInternal() 678 if (mode != AppOpsManager.MODE_ALLOWED) { in assignWriteSmsPermissionToSystemApp() 681 packageName, AppOpsManager.MODE_ALLOWED); in assignWriteSmsPermissionToSystemApp() 691 appOps.setUidMode(AppOpsManager.OP_WRITE_SMS, uid, AppOpsManager.MODE_ALLOWED); in assignWriteSmsPermissionToSystemUid()
|
/frameworks/av/services/audioflinger/ |
D | ServiceUtilities.cpp | 100 != AppOpsManager::MODE_ALLOWED) { in recordingAllowed()
|
/frameworks/support/core-utils/java/android/support/v4/content/ |
D | PermissionChecker.java | 112 != AppOpsManagerCompat.MODE_ALLOWED) { in checkPermission()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | DumpUtils.java | 125 case AppOpsManager.MODE_ALLOWED: in checkUsageStatsPermission()
|
/frameworks/native/libs/binder/ |
D | AppOpsManager.cpp | 32 const int APP_OPS_MANAGER_UNAVAILABLE_MODE = AppOpsManager::MODE_ALLOWED;
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsAccess.java | 186 return (mode == AppOpsManager.MODE_ALLOWED); in hasAppOpsPermission()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 212 return mAppOps.noteOp(op, uid, pkgName) == AppOpsManager.MODE_ALLOWED; in checkAppOpAllowed()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkStatsAccessTest.java | 103 setHasAppOpsPermission(AppOpsManager.MODE_ALLOWED, false); in testCheckAccessLevel_hasAppOpsBitAllowed()
|
/frameworks/base/services/core/java/com/android/server/media/projection/ |
D | MediaProjectionManagerService.java | 215 == AppOpsManager.MODE_ALLOWED; in hasProjectionPermission() 239 projection.uid, projection.packageName, AppOpsManager.MODE_ALLOWED); in createProjection()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareClientState.java | 257 == AppOpsManager.MODE_ALLOWED; in hasLocationingPermission()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BroadcastQueue.java | 535 r.callerPackage) != AppOpsManager.MODE_ALLOWED) { in deliverToRegisteredReceiverLocked() 568 != AppOpsManager.MODE_ALLOWED) { in deliverToRegisteredReceiverLocked() 600 != AppOpsManager.MODE_ALLOWED) { in deliverToRegisteredReceiverLocked() 1089 r.callerPackage) != AppOpsManager.MODE_ALLOWED) { in processNextBroadcast() 1128 != AppOpsManager.MODE_ALLOWED) { in processNextBroadcast() 1144 != AppOpsManager.MODE_ALLOWED) { in processNextBroadcast()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | VoiceInteractionSessionConnection.java | 254 mSessionComponentName.getPackageName()) == AppOpsManager.MODE_ALLOWED in showLocked() 290 mSessionComponentName.getPackageName()) == AppOpsManager.MODE_ALLOWED in showLocked()
|