Home
last modified time | relevance | path

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

/frameworks/native/libs/binder/
DPermissionCache.cpp30 ANDROID_SINGLETON_STATIC_INSTANCE(PermissionCache) ;
34 PermissionCache::PermissionCache() { in PermissionCache() function in android::PermissionCache
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.bp51 "PermissionCache.cpp",
/frameworks/av/media/utils/
DServiceUtilities.cpp135 bool ok = PermissionCache::checkPermission(sCaptureAudioOutput, pid, uid); in captureAudioOutputAllowed()
143 bool ok = PermissionCache::checkPermission(sCaptureMediaOutput, pid, uid); in captureMediaOutputAllowed()
152 bool ok = PermissionCache::checkPermission(sCaptureVoiceCommOutput, pid, uid); in captureVoiceCommunicationOutputAllowed()
164 ok = PermissionCache::checkPermission(sCaptureHotwordAllowed, pid, uid); in captureHotwordAllowed()
175 bool ok = PermissionCache::checkCallingPermission(sAudioSettings); in settingsAllowed()
188 bool ok = PermissionCache::checkPermission(sModifyAudioRouting, pid, uid); in modifyAudioRoutingAllowed()
205 bool ok = PermissionCache::checkPermission(sModifyDefaultAudioEffectsAllowed, pid, uid); in modifyDefaultAudioEffectsAllowed()
214 bool ok = PermissionCache::checkCallingPermission(sDump); in dumpAllowed()
221 bool ok = PermissionCache::checkPermission(sModifyPhoneState, pid, uid); in modifyPhoneStateAllowed()
229 bool ok = PermissionCache::checkPermission(sModifyPhoneState, pid, uid) in bypassInterruptionPolicyAllowed()
[all …]
/frameworks/native/libs/binder/include/binder/
DPermissionCache.h43 class PermissionCache : Singleton<PermissionCache> {
68 PermissionCache();
/frameworks/native/include/binder/
DPermissionCache.h43 class PermissionCache : Singleton<PermissionCache> {
68 PermissionCache();
/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/native/services/inputflinger/host/
DInputFlinger.cpp54 && !PermissionCache::checkPermission(sDumpPermission, pid, uid)) { in dump()
/frameworks/base/services/incremental/
DIncrementalServiceValidation.cpp52 if (!PermissionCache::checkCallingPermission(String16(permission), &pid, &uid)) { in CheckPermissionForDataDelivery()
DBinderIncrementalService.cpp99 if (!PermissionCache::checkCallingPermission(*kDump)) { in dump()
/frameworks/native/services/vr/hardware_composer/
Dvr_composer.cpp14 const bool permission = PermissionCache::checkPermission( in CheckPermission()
/frameworks/native/services/gpuservice/
DGpuService.cpp96 if ((uid != AID_SHELL) && !PermissionCache::checkPermission(sDump, pid, uid)) { in doDump()
/frameworks/av/media/libstagefright/
DMediaExtractorFactory.cpp353 if (!PermissionCache::checkPermission(String16("android.permission.DUMP"), pid, uid)) { in dump()
/frameworks/av/media/libmedia/
DIMediaExtractor.cpp339 if (!PermissionCache::checkPermission(String16("android.permission.DUMP"), pid, uid)) { in dumpExtractors()
/frameworks/native/libs/gui/
DBufferQueueConsumer.cpp805 !PermissionCache::checkPermission(String16("android.permission.DUMP"), pid, uid)) { in dumpState()
/frameworks/native/services/sensorservice/
DSensorService.cpp371 if (!PermissionCache::checkCallingPermission(sDumpPermission)) { in dump()
1844 hasPermission = PermissionCache::checkCallingPermission(String16(requiredPermission)); in hasPermissionForSensor()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp3590 (usePermissionCache ? !PermissionCache::checkPermission(sAccessSurfaceFlinger, pid, uid) in callingThreadHasUnscopedSurfaceFlingerAccess()
4311 !PermissionCache::checkPermission(sDump, pid, uid)) { in doDump()
4917 if ((uid != AID_SHELL) && !PermissionCache::checkPermission(sDump, pid, uid)) { in CheckTransactCodeCredentials()
4964 !PermissionCache::checkPermission(sReadFramebuffer, pid, uid)) { in CheckTransactCodeCredentials()
5012 && !PermissionCache::checkCallingPermission(sHardwareTest))) { in onTransact()