/frameworks/native/libs/binder/ |
D | PermissionCache.cpp | 30 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 …]
|
D | Android.bp | 215 "PermissionCache.cpp",
|
/frameworks/native/libs/binder/include/binder/ |
D | PermissionCache.h | 43 class PermissionCache : Singleton<PermissionCache> { 68 LIBBINDER_EXPORTED PermissionCache();
|
/frameworks/native/include/binder/ |
D | PermissionCache.h | 43 class PermissionCache : Singleton<PermissionCache> { 68 LIBBINDER_EXPORTED PermissionCache();
|
/frameworks/av/media/utils/ |
D | ServiceUtilities.cpp | 218 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/ |
D | VirtualTouchpadService.cpp | 107 !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/ |
D | Permissions.cc | 39 const bool hasPermission = PermissionCache::checkCallingPermission( in checkCallingPermission()
|
/frameworks/native/libs/gui/ |
D | LayerStatePermissions.cpp | 43 PermissionCache::checkPermission(permission, pid, uid); in callingThreadHasPermission()
|
D | BufferQueueConsumer.cpp | 816 !PermissionCache::checkPermission(String16("android.permission.DUMP"), pid, uid)) { in dumpState()
|
/frameworks/base/services/incremental/ |
D | IncrementalServiceValidation.cpp | 52 if (!PermissionCache::checkCallingPermission(String16(permission), &pid, &uid)) { in CheckPermissionForDataDelivery()
|
D | BinderIncrementalService.cpp | 97 if (!PermissionCache::checkCallingPermission(*kDump)) { in dump()
|
/frameworks/native/services/gpuservice/ |
D | GpuService.cpp | 117 !PermissionCache::checkPermission(sAccessGpuServicePermission, pid, uid)) { in toggleAngleAsSystemDriver() 176 if ((uid != AID_SHELL) && !PermissionCache::checkPermission(sDump, pid, uid)) { in doDump()
|
/frameworks/av/services/tuner/ |
D | TunerService.cpp | 46 using ::android::PermissionCache; 227 if (!PermissionCache::checkCallingPermission(sSharedFilterPermission)) { in openSharedFilter()
|
/frameworks/av/services/tuner/hidl/ |
D | TunerHidlService.cpp | 51 using ::android::PermissionCache; 289 if (!PermissionCache::checkCallingPermission(sSharedFilterPermission)) { in openSharedFilter()
|
/frameworks/native/services/gpuservice/gpuwork/ |
D | GpuWork.cpp | 531 while (!PermissionCache::checkPermission(permissionRegisterStatsPullAtom, getpid(), getuid())) { in waitForPermissions()
|
/frameworks/av/media/libstagefright/ |
D | MediaExtractorFactory.cpp | 358 if (!PermissionCache::checkPermission(String16("android.permission.DUMP"), pid, uid)) { in dump()
|
/frameworks/av/media/libmedia/ |
D | IMediaExtractor.cpp | 375 if (!PermissionCache::checkPermission(String16("android.permission.DUMP"), pid, uid)) { in dumpExtractors()
|
/frameworks/native/services/sensorservice/ |
D | SensorService.cpp | 581 if (!PermissionCache::checkCallingPermission(sDumpPermission)) { in dump() 2344 hasPermission = PermissionCache::checkCallingPermission(String16(requiredPermission)); in hasPermissionForSensor()
|
/frameworks/native/services/surfaceflinger/ |
D | SurfaceFlinger.cpp | 412 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()
|