Home
last modified time | relevance | path

Searched refs:checkCallingPermission (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/av/services/audioflinger/
DServiceUtilities.cpp32 bool ok = checkCallingPermission(sRecordAudio); in recordingAllowed()
41 bool ok = checkCallingPermission(sCaptureAudioOutput); in captureAudioOutputAllowed()
48 bool ok = checkCallingPermission(sCaptureHotwordAllowed); in captureHotwordAllowed()
57 bool ok = checkCallingPermission(sAudioSettings); in settingsAllowed()
64 bool ok = checkCallingPermission(sModifyAudioRoutingAllowed); in modifyAudioRoutingAllowed()
73 bool ok = PermissionCache::checkCallingPermission(sDump); in dumpAllowed()
/frameworks/native/libs/binder/
DPermissionCache.cpp77 bool PermissionCache::checkCallingPermission(const String16& permission) { in checkCallingPermission() function in android::PermissionCache
78 return PermissionCache::checkCallingPermission(permission, NULL, NULL); in checkCallingPermission()
81 bool PermissionCache::checkCallingPermission( in checkCallingPermission() function in android::PermissionCache
DIServiceManager.cpp50 bool checkCallingPermission(const String16& permission) in checkCallingPermission() function
52 return checkCallingPermission(permission, NULL, NULL); in checkCallingPermission()
58 bool checkCallingPermission(const String16& permission, int32_t* outPid, int32_t* outUid) in checkCallingPermission() function
/frameworks/native/include/binder/
DPermissionCache.h68 static bool checkCallingPermission(const String16& permission);
70 static bool checkCallingPermission(const String16& permission,
DIServiceManager.h79 bool checkCallingPermission(const String16& permission);
80 bool checkCallingPermission(const String16& permission,
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionManagerService.java226 if (mContext.checkCallingPermission(Manifest.permission.MANAGE_MEDIA_PROJECTION) in createProjection()
256 if (mContext.checkCallingPermission(Manifest.permission.MANAGE_MEDIA_PROJECTION) in getActiveProjectionInfo()
271 if (mContext.checkCallingPermission(Manifest.permission.MANAGE_MEDIA_PROJECTION) in stopActiveProjection()
289 if (mContext.checkCallingPermission(Manifest.permission.MANAGE_MEDIA_PROJECTION) in addCallback()
304 if (mContext.checkCallingPermission(Manifest.permission.MANAGE_MEDIA_PROJECTION) in removeCallback()
/frameworks/av/services/medialog/
DMediaLogService.cpp62 PermissionCache::checkCallingPermission(sDump))) { in dump()
/frameworks/base/libs/common_time/
Dcommon_time_server_api.cpp295 if (checkCallingPermission(String16("android.permission.DUMP")) == false) { in dumpClockInterface()
371 if (checkCallingPermission(String16("android.permission.DUMP")) == false) { in dumpConfigInterface()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java751 if (!checkCallingPermission(android.Manifest.permission.SET_INPUT_CALIBRATION, in setTouchCalibrationForInputDevice()
1032 if (!checkCallingPermission(android.Manifest.permission.SET_KEYBOARD_LAYOUT, in setCurrentKeyboardLayoutForInputDevice()
1071 if (!checkCallingPermission(android.Manifest.permission.SET_KEYBOARD_LAYOUT, in addKeyboardLayoutForInputDevice()
1100 if (!checkCallingPermission(android.Manifest.permission.SET_KEYBOARD_LAYOUT, in removeKeyboardLayoutForInputDevice()
1213 if (!checkCallingPermission(android.Manifest.permission.SET_POINTER_SPEED, in tryPointerSpeed()
1359 private boolean checkCallingPermission(String permission, String func) { in checkCallingPermission() method in InputManagerService
1365 if (mContext.checkCallingPermission(permission) == PackageManager.PERMISSION_GRANTED) { in checkCallingPermission()
/frameworks/native/services/surfaceflinger/
DClient.cpp98 if (!PermissionCache::checkCallingPermission(sAccessSurfaceFlinger)) in onTransact()
/frameworks/base/core/java/android/net/
DNetworkScorerAppManager.java199 return context.checkCallingPermission(Manifest.permission.SCORE_NETWORKS) == in isCallerActiveScorer()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionManagerService.java451 if (mContext.checkCallingPermission(Manifest.permission.MANAGE_VOICE_KEYPHRASES) in getKeyphraseSoundModel()
474 if (mContext.checkCallingPermission(Manifest.permission.MANAGE_VOICE_KEYPHRASES) in updateKeyphraseSoundModel()
505 if (mContext.checkCallingPermission(Manifest.permission.MANAGE_VOICE_KEYPHRASES) in deleteKeyphraseSoundModel()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerService.java3459 boolean checkCallingPermission(String permission, String func) { in checkCallingPermission() method
3465 if (mContext.checkCallingPermission(permission) in checkCallingPermission()
3491 if (!checkCallingPermission(android.Manifest.permission.MANAGE_APP_TOKENS, in addWindowToken()
3512 if (!checkCallingPermission(android.Manifest.permission.MANAGE_APP_TOKENS, in removeWindowToken()
3593 if (!checkCallingPermission(android.Manifest.permission.MANAGE_APP_TOKENS, in addAppToken()
3649 if (!checkCallingPermission(android.Manifest.permission.MANAGE_APP_TOKENS, in setAppGroupId()
3788 if (!checkCallingPermission(android.Manifest.permission.MANAGE_APP_TOKENS, in updateOrientationFromAppTokens()
3886 if (!checkCallingPermission(android.Manifest.permission.MANAGE_APP_TOKENS, in setNewConfiguration()
3903 if (!checkCallingPermission(android.Manifest.permission.MANAGE_APP_TOKENS, in setAppOrientation()
3980 if (!checkCallingPermission(android.Manifest.permission.MANAGE_APP_TOKENS, in setFocusedApp()
[all …]
/frameworks/av/media/libmediaplayerservice/
DMediaRecorderClient.cpp53 bool ok = checkCallingPermission(String16(permissionString)); in checkPermission()
DDrm.cpp41 bool ok = checkCallingPermission(String16(permissionString)); in checkPermission()
/frameworks/base/core/java/android/content/
DContextWrapper.java570 public int checkCallingPermission(String permission) { in checkCallingPermission() method in ContextWrapper
571 return mBase.checkCallingPermission(permission); in checkCallingPermission()
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputManagerService.java946 if (mContext.checkCallingPermission( in ensureParentalControlsPermission()
1328 if (mContext.checkCallingPermission(android.Manifest.permission.TV_INPUT_HARDWARE) in getHardwareList()
1345 if (mContext.checkCallingPermission(android.Manifest.permission.TV_INPUT_HARDWARE) in acquireTvInputHardware()
1365 if (mContext.checkCallingPermission(android.Manifest.permission.TV_INPUT_HARDWARE) in releaseTvInputHardware()
1385 if (mContext.checkCallingPermission( in getAvailableTvStreamConfigList()
1407 if (mContext.checkCallingPermission( in captureFrame()
1855 if (mContext.checkCallingPermission(android.Manifest.permission.TV_INPUT_HARDWARE) in ensureHardwarePermission()
/frameworks/av/drm/drmserver/
DDrmManagerService.cpp288 if (checkCallingPermission(String16("android.permission.DUMP")) == false) { in dump()
/frameworks/av/services/camera/libcameraservice/api_pro/
DProCamera2Client.cpp432 if (!checkCallingPermission(permissionString)) { in enforceRequestPermissions()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsService.java357 return getContext().checkCallingPermission(Manifest.permission.PACKAGE_USAGE_STATS) in hasPermission()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java2167 if (mActivityManagerService.checkCallingPermission(android.Manifest.permission.DUMP) in dump()
2187 if (mActivityManagerService.checkCallingPermission(android.Manifest.permission.DUMP) in dump()
2207 if (mActivityManagerService.checkCallingPermission(android.Manifest.permission.DUMP) in dump()
2227 if (mActivityManagerService.checkCallingPermission(android.Manifest.permission.DUMP) in dump()
3694 if (checkCallingPermission(Manifest.permission.BIND_VOICE_INTERACTION) in startVoiceActivity()
3822 if (checkCallingPermission(START_TASKS_FROM_RECENTS) != PackageManager.PERMISSION_GRANTED) { in startActivityFromRecents()
4519 if (checkCallingPermission(android.Manifest.permission.FORCE_STOP_PACKAGES) in finishHeavyWeightApp()
4553 if (checkCallingPermission(android.Manifest.permission.FORCE_STOP_PACKAGES) in crashApplication()
5360 if (checkCallingPermission(android.Manifest.permission.KILL_BACKGROUND_PROCESSES) in killBackgroundProcesses()
5362 checkCallingPermission(android.Manifest.permission.RESTART_PACKAGES) in killBackgroundProcesses()
[all …]
/frameworks/base/test-runner/src/android/test/mock/
DMockContext.java487 public int checkCallingPermission(String permission) { in checkCallingPermission() method in MockContext
/frameworks/wilhelm/src/android/
Dandroid_AudioSfDecoder.cpp802 return checkCallingPermission( in isSupportedCodec()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayManagerService.java1417 if (mContext.checkCallingPermission( in canProjectVideo()
1435 return mContext.checkCallingPermission( in canProjectSecureVideo()
/frameworks/av/services/camera/libcameraservice/api2/
DCameraDeviceClient.cpp650 if (!checkCallingPermission(permissionString)) { in enforceRequestPermissions()

12