Home
last modified time | relevance | path

Searched refs:PermissionCache (Results 1 – 19 of 19) sorted by relevance

/frameworks/native/libs/binder/
DPermissionCache.cpp30 ANDROID_SINGLETON_STATIC_INSTANCE(PermissionCache) in ANDROID_SINGLETON_STATIC_INSTANCE() argument
34 PermissionCache::PermissionCache() { in ANDROID_SINGLETON_STATIC_INSTANCE()
37 status_t PermissionCache::check(bool* granted, in check()
51 void PermissionCache::cache(const String16& permission, in cache()
72 void PermissionCache::purge() { in purge()
77 bool PermissionCache::checkCallingPermission(const String16& permission) { in checkCallingPermission()
78 return PermissionCache::checkCallingPermission(permission, nullptr, nullptr); in checkCallingPermission()
81 bool PermissionCache::checkCallingPermission( in checkCallingPermission()
88 return PermissionCache::checkPermission(permission, pid, uid); in checkCallingPermission()
91 bool PermissionCache::checkPermission( in checkPermission()
[all …]
DAndroid.bp215 "PermissionCache.cpp",
/frameworks/native/libs/binder/include/binder/
DPermissionCache.h43 class PermissionCache : Singleton<PermissionCache> {
68 LIBBINDER_EXPORTED PermissionCache();
/frameworks/native/include/binder/
DPermissionCache.h43 class PermissionCache : Singleton<PermissionCache> {
68 LIBBINDER_EXPORTED PermissionCache();
/frameworks/av/media/utils/
DServiceUtilities.cpp218 bool ok = PermissionCache::checkPermission(sCaptureMediaOutput, pid, uid); in captureMediaOutputAllowed()
228 bool ok = PermissionCache::checkPermission(sCaptureTunerAudioInput, pid, uid); in captureTunerAudioInputAllowed()
239 bool ok = PermissionCache::checkPermission(sCaptureVoiceCommOutput, pid, uid); in captureVoiceCommunicationOutputAllowed()
250 bool ok = PermissionCache::checkPermission(sAccessUltrasound, pid, uid); in accessUltrasoundAllowed()
277 bool ok = PermissionCache::checkCallingPermission(sAudioSettings); in settingsAllowed()
291 bool ok = PermissionCache::checkPermission(sModifyAudioRouting, pid, uid); in modifyAudioRoutingAllowed()
309 bool ok = PermissionCache::checkPermission(sModifyDefaultAudioEffectsAllowed, pid, uid); in modifyDefaultAudioEffectsAllowed()
318 bool ok = PermissionCache::checkCallingPermission(sDump); in dumpAllowed()
327 bool ok = PermissionCache::checkPermission(sModifyPhoneState, pid, uid); in modifyPhoneStateAllowed()
337 bool ok = PermissionCache::checkPermission(sModifyPhoneState, pid, uid) in bypassInterruptionPolicyAllowed()
[all …]
/frameworks/native/services/vr/virtual_touchpad/
DVirtualTouchpadService.cpp107 !PermissionCache::checkPermission(kDumpPermission, pid, uid)) { in dump()
136 const bool permission = PermissionCache::checkPermission(kTouchPermission, *out_pid, uid); in CheckTouchPermission()
/frameworks/av/services/camera/virtualcamera/util/
DPermissions.cc39 const bool hasPermission = PermissionCache::checkCallingPermission( in checkCallingPermission()
/frameworks/native/libs/gui/
DLayerStatePermissions.cpp43 PermissionCache::checkPermission(permission, pid, uid); in callingThreadHasPermission()
DBufferQueueConsumer.cpp816 !PermissionCache::checkPermission(String16("android.permission.DUMP"), pid, uid)) { in dumpState()
/frameworks/base/services/incremental/
DIncrementalServiceValidation.cpp52 if (!PermissionCache::checkCallingPermission(String16(permission), &pid, &uid)) { in CheckPermissionForDataDelivery()
DBinderIncrementalService.cpp97 if (!PermissionCache::checkCallingPermission(*kDump)) { in dump()
/frameworks/native/services/gpuservice/
DGpuService.cpp117 !PermissionCache::checkPermission(sAccessGpuServicePermission, pid, uid)) { in toggleAngleAsSystemDriver()
176 if ((uid != AID_SHELL) && !PermissionCache::checkPermission(sDump, pid, uid)) { in doDump()
/frameworks/av/services/tuner/
DTunerService.cpp46 using ::android::PermissionCache;
227 if (!PermissionCache::checkCallingPermission(sSharedFilterPermission)) { in openSharedFilter()
/frameworks/av/services/tuner/hidl/
DTunerHidlService.cpp51 using ::android::PermissionCache;
289 if (!PermissionCache::checkCallingPermission(sSharedFilterPermission)) { in openSharedFilter()
/frameworks/native/services/gpuservice/gpuwork/
DGpuWork.cpp531 while (!PermissionCache::checkPermission(permissionRegisterStatsPullAtom, getpid(), getuid())) { in waitForPermissions()
/frameworks/av/media/libstagefright/
DMediaExtractorFactory.cpp358 if (!PermissionCache::checkPermission(String16("android.permission.DUMP"), pid, uid)) { in dump()
/frameworks/av/media/libmedia/
DIMediaExtractor.cpp375 if (!PermissionCache::checkPermission(String16("android.permission.DUMP"), pid, uid)) { in dumpExtractors()
/frameworks/native/services/sensorservice/
DSensorService.cpp581 if (!PermissionCache::checkCallingPermission(sDumpPermission)) { in dump()
2344 hasPermission = PermissionCache::checkCallingPermission(String16(requiredPermission)); in hasPermissionForSensor()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp412 PermissionCache::checkPermission(permission, pid, uid); in callingThreadHasPermission()
5481 (usePermissionCache ? !PermissionCache::checkPermission(sAccessSurfaceFlinger, pid, uid) in callingThreadHasUnscopedSurfaceFlingerAccess()
6360 !PermissionCache::checkPermission(sDump, pid, uid)) { in doDump()
7167 && !PermissionCache::checkCallingPermission(sHardwareTest))) { in onTransact()
7835 PermissionCache::checkPermission(sCaptureBlackoutContent, pid, uid); in hasCaptureBlackoutContentPermission()
7842 if (uid == AID_GRAPHICS || PermissionCache::checkPermission(sReadFramebuffer, pid, uid)) { in validateScreenshotPermissions()
10509 !PermissionCache::checkPermission(sControlDisplayBrightness, pid, uid)) { in checkControlDisplayBrightnessPermission()
10520 if ((uid != AID_GRAPHICS) && !PermissionCache::checkPermission(sReadFramebuffer, pid, uid)) { in checkReadFrameBufferPermission()