Home
last modified time | relevance | path

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

123

/frameworks/av/services/audioflinger/
DServiceUtilities.cpp119 bool ok = PermissionCache::checkCallingPermission(sCaptureHotwordAllowed); in captureHotwordAllowed()
128 bool ok = PermissionCache::checkCallingPermission(sAudioSettings); in settingsAllowed()
136 bool ok = PermissionCache::checkCallingPermission(sModifyAudioRoutingAllowed); in modifyAudioRoutingAllowed()
145 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.java224 if (mContext.checkCallingPermission(Manifest.permission.MANAGE_MEDIA_PROJECTION) in createProjection()
254 if (mContext.checkCallingPermission(Manifest.permission.MANAGE_MEDIA_PROJECTION) in getActiveProjectionInfo()
269 if (mContext.checkCallingPermission(Manifest.permission.MANAGE_MEDIA_PROJECTION) in stopActiveProjection()
287 if (mContext.checkCallingPermission(Manifest.permission.MANAGE_MEDIA_PROJECTION) in addCallback()
302 if (mContext.checkCallingPermission(Manifest.permission.MANAGE_MEDIA_PROJECTION) in removeCallback()
/frameworks/base/services/core/java/com/android/server/webkit/
DWebViewUpdateService.java194 if (getContext().checkCallingPermission( in changeProviderAndSetting()
236 if (getContext().checkCallingPermission( in enableFallbackLogic()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java875 if (!checkCallingPermission(android.Manifest.permission.SET_INPUT_CALIBRATION, in setTouchCalibrationForInputDevice()
903 if (!checkCallingPermission(android.Manifest.permission.TABLET_MODE, in isInTabletMode()
912 if (!checkCallingPermission(android.Manifest.permission.TABLET_MODE, in registerTabletModeChangedListener()
1287 if (!checkCallingPermission(android.Manifest.permission.SET_KEYBOARD_LAYOUT, in setCurrentKeyboardLayoutForInputDevice()
1357 if (!checkCallingPermission(android.Manifest.permission.SET_KEYBOARD_LAYOUT, in setKeyboardLayoutForInputDevice()
1402 if (!checkCallingPermission(android.Manifest.permission.SET_KEYBOARD_LAYOUT, in addKeyboardLayoutForInputDevice()
1430 if (!checkCallingPermission(android.Manifest.permission.SET_KEYBOARD_LAYOUT, in removeKeyboardLayoutForInputDevice()
1551 if (!checkCallingPermission(android.Manifest.permission.SET_POINTER_SPEED, in tryPointerSpeed()
1752 if (!checkCallingPermission(android.Manifest.permission.SET_KEYBOARD_LAYOUT, in onShellCommand()
1768 private boolean checkCallingPermission(String permission, String func) { in checkCallingPermission() method in InputManagerService
[all …]
/frameworks/support/core-utils/java/android/support/v4/content/
DPermissionChecker.java140 public static int checkCallingPermission(@NonNull Context context, in checkCallingPermission() method in PermissionChecker
/frameworks/av/services/medialog/
DMediaLogService.cpp77 PermissionCache::checkCallingPermission(sDump))) { in dump()
/frameworks/base/libs/common_time/
Dcommon_time_server_api.cpp297 if (checkCallingPermission(String16("android.permission.DUMP")) == false) { in dumpClockInterface()
373 if (checkCallingPermission(String16("android.permission.DUMP")) == false) { in dumpConfigInterface()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsAccess.java182 final int permissionCheck = context.checkCallingPermission( in hasAppOpsPermission()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerService.java3316 private boolean checkCallingPermission(String permission, String func) { in checkCallingPermission() method
3322 if (mContext.checkCallingPermission(permission) in checkCallingPermission()
3348 if (!checkCallingPermission(android.Manifest.permission.MANAGE_APP_TOKENS, in addWindowToken()
3369 if (!checkCallingPermission(android.Manifest.permission.MANAGE_APP_TOKENS, in removeWindowToken()
3453 if (!checkCallingPermission(android.Manifest.permission.MANAGE_APP_TOKENS, in addAppToken()
3509 if (!checkCallingPermission(android.Manifest.permission.MANAGE_APP_TOKENS, in setAppTask()
3693 if (!checkCallingPermission(android.Manifest.permission.MANAGE_APP_TOKENS, in updateOrientationFromAppTokens()
3789 if (!checkCallingPermission(android.Manifest.permission.MANAGE_APP_TOKENS, in setNewConfiguration()
3857 if (!checkCallingPermission(android.Manifest.permission.MANAGE_APP_TOKENS, in setAppOrientation()
3897 if (!checkCallingPermission(android.Manifest.permission.MANAGE_APP_TOKENS, in setFocusedApp()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java431 if (mService.checkCallingPermission(INTERACT_ACROSS_USERS_FULL) in stopUser()
768 if (mService.checkCallingPermission(INTERACT_ACROSS_USERS_FULL) in startUser()
931 if (mService.checkCallingPermission(INTERACT_ACROSS_USERS_FULL) in unlockUser()
1292 if (mService.checkCallingPermission(INTERACT_ACROSS_USERS_FULL) in registerUserSwitchObserver()
1427 if ((mService.checkCallingPermission(INTERACT_ACROSS_USERS) in getCurrentUser()
1429 mService.checkCallingPermission(INTERACT_ACROSS_USERS_FULL) in getCurrentUser()
DActivityManagerService.java2518 if (mActivityManagerService.checkCallingPermission(android.Manifest.permission.DUMP) in dump()
2538 if (mActivityManagerService.checkCallingPermission(android.Manifest.permission.DUMP) in dump()
2558 if (mActivityManagerService.checkCallingPermission(android.Manifest.permission.DUMP) in dump()
2578 if (mActivityManagerService.checkCallingPermission(android.Manifest.permission.DUMP) in dump()
4084 return checkCallingPermission(Manifest.permission.PACKAGE_USAGE_STATS) in hasUsageStatsPermission()
4505 if (checkCallingPermission(Manifest.permission.BIND_VOICE_INTERACTION) in startVoiceActivity()
4708 if (checkCallingPermission(START_TASKS_FROM_RECENTS) != PackageManager.PERMISSION_GRANTED) { in startActivityFromRecents()
4901 if (checkCallingPermission(android.Manifest.permission.FORCE_STOP_PACKAGES) in finishHeavyWeightApp()
4934 if (checkCallingPermission(android.Manifest.permission.FORCE_STOP_PACKAGES) in crashApplication()
5572 if (checkCallingPermission(android.Manifest.permission.KILL_BACKGROUND_PROCESSES) in killBackgroundProcesses()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkStatsAccessTest.java168 when(mContext.checkCallingPermission(Manifest.permission.PACKAGE_USAGE_STATS)).thenReturn( in setHasAppOpsPermission()
/frameworks/native/services/surfaceflinger/
DClient.cpp95 if (!PermissionCache::checkCallingPermission(sAccessSurfaceFlinger)) in onTransact()
/frameworks/base/core/java/android/net/
DNetworkScorerAppManager.java236 return context.checkCallingPermission(Manifest.permission.SCORE_NETWORKS) == in isCallerActiveScorer()
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputManagerService.java1122 if (mContext.checkCallingPermission( in ensureParentalControlsPermission()
1675 if (mContext.checkCallingPermission(android.Manifest.permission.TV_INPUT_HARDWARE) in getHardwareList()
1692 if (mContext.checkCallingPermission(android.Manifest.permission.TV_INPUT_HARDWARE) in acquireTvInputHardware()
1712 if (mContext.checkCallingPermission(android.Manifest.permission.TV_INPUT_HARDWARE) in releaseTvInputHardware()
1731 if (mContext.checkCallingPermission(android.Manifest.permission.DVB_DEVICE) in getDvbDeviceList()
1757 if (mContext.checkCallingPermission(android.Manifest.permission.DVB_DEVICE) in openDvbDevice()
1800 if (mContext.checkCallingPermission( in getAvailableTvStreamConfigList()
1822 if (mContext.checkCallingPermission( in captureFrame()
2245 if (mContext.checkCallingPermission(android.Manifest.permission.TV_INPUT_HARDWARE) in ensureHardwarePermission()
/frameworks/av/drm/drmserver/
DDrmManagerService.cpp345 if (checkCallingPermission(String16("android.permission.DUMP")) == false) { in dump()
/frameworks/av/media/libmediaplayerservice/
DMediaRecorderClient.cpp50 bool ok = checkCallingPermission(String16(permissionString)); in checkPermission()
/frameworks/base/core/java/android/content/
DContextWrapper.java679 public int checkCallingPermission(String permission) { in checkCallingPermission() method in ContextWrapper
680 return mBase.checkCallingPermission(permission); in checkCallingPermission()
/frameworks/base/services/core/java/com/android/server/
DPersistentDataBlockService.java524 if (mContext.checkCallingPermission(Manifest.permission.ACCESS_PDB_STATE)
/frameworks/av/services/mediaresourcemanager/
DResourceManagerService.cpp111 if (checkCallingPermission(String16("android.permission.DUMP")) == false) { in dump()
/frameworks/wilhelm/src/android/
Dandroid_AudioSfDecoder.cpp799 return checkCallingPermission( in isSupportedCodec()

123