Home
last modified time | relevance | path

Searched refs:MODE_ALLOWED (Results 1 – 25 of 77) sorted by relevance

1234

/frameworks/base/core/java/android/app/
DAppOpsManager.java84 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/
DContentProvider.java20 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/
DMmsServiceBroker.java338 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 …]
DAppOpsService.java305 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/
DWifiPermissionsUtilTest.java178 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/
DPhoneSubInfoControllerTest.java116 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/
DAppOpsManager.h31 MODE_ALLOWED = IAppOpsService::MODE_ALLOWED, enumerator
DIAppOpsService.h57 MODE_ALLOWED = 0, enumerator
/frameworks/base/core/tests/coretests/src/android/provider/
DTestDocumentsProvider.java97 return AppOpsManager.MODE_ALLOWED; in enforceReadPermissionInner()
102 return AppOpsManager.MODE_ALLOWED; in enforceWritePermissionInner()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneSubInfoController.java434 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()
DIccSmsInterfaceManager.java202 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/
DAppOpsManagerCompat.java35 public static final int MODE_ALLOWED = 0; field in AppOpsManagerCompat
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipNotificationController.java19 import static android.app.AppOpsManager.MODE_ALLOWED;
74 != MODE_ALLOWED) {
/frameworks/base/telephony/java/com/android/internal/telephony/
DSmsApplication.java488 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/
DServiceUtilities.cpp100 != AppOpsManager::MODE_ALLOWED) { in recordingAllowed()
/frameworks/support/core-utils/java/android/support/v4/content/
DPermissionChecker.java112 != AppOpsManagerCompat.MODE_ALLOWED) { in checkPermission()
/frameworks/base/core/java/com/android/internal/util/
DDumpUtils.java125 case AppOpsManager.MODE_ALLOWED: in checkUsageStatsPermission()
/frameworks/native/libs/binder/
DAppOpsManager.cpp32 const int APP_OPS_MANAGER_UNAVAILABLE_MODE = AppOpsManager::MODE_ALLOWED;
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsAccess.java186 return (mode == AppOpsManager.MODE_ALLOWED); in hasAppOpsPermission()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java212 return mAppOps.noteOp(op, uid, pkgName) == AppOpsManager.MODE_ALLOWED; in checkAppOpAllowed()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkStatsAccessTest.java103 setHasAppOpsPermission(AppOpsManager.MODE_ALLOWED, false); in testCheckAccessLevel_hasAppOpsBitAllowed()
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionManagerService.java215 == 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/
DWifiAwareClientState.java257 == AppOpsManager.MODE_ALLOWED; in hasLocationingPermission()
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastQueue.java535 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/
DVoiceInteractionSessionConnection.java254 mSessionComponentName.getPackageName()) == AppOpsManager.MODE_ALLOWED in showLocked()
290 mSessionComponentName.getPackageName()) == AppOpsManager.MODE_ALLOWED in showLocked()

1234