Home
last modified time | relevance | path

Searched refs:PermissionCache (Results 1 – 14 of 14) 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.cpp133 bool ok = PermissionCache::checkPermission(sCaptureAudioOutput, pid, uid); in captureAudioOutputAllowed()
141 bool ok = PermissionCache::checkPermission(sCaptureMediaOutput, pid, uid); in captureMediaOutputAllowed()
153 ok = PermissionCache::checkPermission(sCaptureHotwordAllowed, pid, uid); in captureHotwordAllowed()
164 bool ok = PermissionCache::checkCallingPermission(sAudioSettings); in settingsAllowed()
171 bool ok = PermissionCache::checkCallingPermission(sModifyAudioRouting); in modifyAudioRoutingAllowed()
187 bool ok = PermissionCache::checkPermission(sModifyDefaultAudioEffectsAllowed, pid, uid); in modifyDefaultAudioEffectsAllowed()
196 bool ok = PermissionCache::checkCallingPermission(sDump); in dumpAllowed()
203 bool ok = PermissionCache::checkPermission(sModifyPhoneState, pid, uid); in modifyPhoneStateAllowed()
211 bool ok = PermissionCache::checkPermission(sModifyPhoneState, pid, uid) in bypassInterruptionPolicyAllowed()
212 || PermissionCache::checkPermission(sWriteSecureSettings, 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/native/services/vr/hardware_composer/
Dvr_composer.cpp14 const bool permission = PermissionCache::checkPermission( in CheckPermission()
/frameworks/native/services/gpuservice/
DGpuService.cpp98 if ((uid != AID_SHELL) && !PermissionCache::checkPermission(sDump, pid, uid)) { in doDump()
/frameworks/av/media/libstagefright/
DMediaExtractorFactory.cpp347 if (!PermissionCache::checkPermission(String16("android.permission.DUMP"), pid, uid)) { in dump()
/frameworks/av/media/libmedia/
DIMediaExtractor.cpp313 if (!PermissionCache::checkPermission(String16("android.permission.DUMP"), pid, uid)) { in dumpExtractors()
/frameworks/native/libs/gui/
DBufferQueueConsumer.cpp775 !PermissionCache::checkPermission(String16("android.permission.DUMP"), pid, uid)) { in dumpState()
/frameworks/native/services/sensorservice/
DSensorService.cpp349 if (!PermissionCache::checkCallingPermission(sDumpPermission)) { in dump()
1698 hasPermission = PermissionCache::checkCallingPermission(String16(requiredPermission)); in hasPermissionForSensor()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp3961 !PermissionCache::checkPermission(sAccessSurfaceFlinger, pid, uid)) { in callingThreadHasUnscopedSurfaceFlingerAccess()
4617 !PermissionCache::checkPermission(sDump, pid, uid)) { in doDump()
5204 if ((uid != AID_SHELL) && !PermissionCache::checkPermission(sDump, pid, uid)) { in CheckTransactCodeCredentials()
5246 !PermissionCache::checkPermission(sReadFramebuffer, pid, uid)) { in CheckTransactCodeCredentials()
5300 && !PermissionCache::checkCallingPermission(sHardwareTest))) { in onTransact()