Home
last modified time | relevance | path

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

123

/frameworks/native/libs/binder/
DPermissionCache.cpp77 bool PermissionCache::checkCallingPermission(const String16& permission) { in checkCallingPermission() function in android::PermissionCache
78 return PermissionCache::checkCallingPermission(permission, nullptr, nullptr); in checkCallingPermission()
81 bool PermissionCache::checkCallingPermission( in checkCallingPermission() function in android::PermissionCache
DIServiceManager.cpp125 bool checkCallingPermission(const String16& permission) in checkCallingPermission() function
127 return checkCallingPermission(permission, nullptr, nullptr); in checkCallingPermission()
133 bool checkCallingPermission(const String16& permission, int32_t* outPid, int32_t* outUid) in checkCallingPermission() function
/frameworks/native/libs/binder/include/binder/
DPermissionCache.h70 static bool checkCallingPermission(const String16& permission);
72 static bool checkCallingPermission(const String16& permission,
DIServiceManager.h156 bool checkCallingPermission(const String16& permission);
157 bool checkCallingPermission(const String16& permission,
/frameworks/native/include/binder/
DPermissionCache.h70 static bool checkCallingPermission(const String16& permission);
72 static bool checkCallingPermission(const String16& permission,
DIServiceManager.h156 bool checkCallingPermission(const String16& permission);
157 bool checkCallingPermission(const String16& permission,
/frameworks/av/media/utils/
DServiceUtilities.cpp164 bool ok = PermissionCache::checkCallingPermission(sAudioSettings); in settingsAllowed()
171 bool ok = PermissionCache::checkCallingPermission(sModifyAudioRouting); in modifyAudioRoutingAllowed()
196 bool ok = PermissionCache::checkCallingPermission(sDump); in dumpAllowed()
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionManagerService.java276 if (mContext.checkCallingPermission(Manifest.permission.MANAGE_MEDIA_PROJECTION) in createProjection()
317 if (mContext.checkCallingPermission(Manifest.permission.MANAGE_MEDIA_PROJECTION) in getActiveProjectionInfo()
332 if (mContext.checkCallingPermission(Manifest.permission.MANAGE_MEDIA_PROJECTION) in stopActiveProjection()
350 if (mContext.checkCallingPermission(Manifest.permission.MANAGE_MEDIA_PROJECTION) in addCallback()
365 if (mContext.checkCallingPermission(Manifest.permission.MANAGE_MEDIA_PROJECTION) in removeCallback()
/frameworks/base/cmds/statsd/src/
DStatsService.cpp94 if (!checkCallingPermission(String16(kPermissionDump))) { in checkDumpAndUsageStats()
98 if (!checkCallingPermission(String16(kPermissionUsage))) { in checkDumpAndUsageStats()
283 if (!checkCallingPermission(String16(kPermissionDump))) { in dump()
911 if (checkCallingPermission(String16(kPermissionDump))) { in cmd_clear_puller_cache()
924 if (checkCallingPermission(String16(kPermissionDump))) { in cmd_print_logs()
1308 if (!checkCallingPermission(String16(kPermissionDump))) { in sendBinaryPushStateChangedAtom()
1313 if (!checkCallingPermission(String16(kPermissionUsage))) { in sendBinaryPushStateChangedAtom()
1404 if (!checkCallingPermission(String16(kPermissionDump))) { in sendWatchdogRollbackOccurredAtom()
1409 if (!checkCallingPermission(String16(kPermissionUsage))) { in sendWatchdogRollbackOccurredAtom()
1455 if (!checkCallingPermission(String16(kPermissionDump))) { in getRegisteredExperimentIds()
[all …]
/frameworks/base/services/core/java/com/android/server/webkit/
DWebViewUpdateService.java202 if (getContext().checkCallingPermission( in changeProviderAndSetting()
250 if (getContext().checkCallingPermission( in enableMultiProcess()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerService.java2435 boolean checkCallingPermission(String permission, String func) { in checkCallingPermission() method in WindowManagerService
2441 if (mContext.checkCallingPermission(permission) in checkCallingPermission()
2453 if (!checkCallingPermission(MANAGE_APP_TOKENS, "addWindowToken()")) { in addWindowToken()
2483 if (!checkCallingPermission(MANAGE_APP_TOKENS, "removeWindowToken()")) { in removeWindowToken()
2525 if (!checkCallingPermission(MANAGE_APP_TOKENS, "prepareAppTransition()")) { in prepareAppTransition()
2551 if (!checkCallingPermission(CONTROL_REMOTE_APP_TRANSITION_ANIMATIONS, in overridePendingAppTransitionRemote()
2577 if (!checkCallingPermission(MANAGE_APP_TOKENS, "executeAppTransition()")) { in executeAppTransition()
2816 if (!checkCallingPermission(android.Manifest.permission.FREEZE_SCREEN, in startFreezingScreen()
2838 if (!checkCallingPermission(android.Manifest.permission.FREEZE_SCREEN, in stopFreezingScreen()
2930 && !checkCallingPermission(Manifest.permission.INTERACT_ACROSS_USERS, in isKeyguardSecure()
[all …]
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java529 if (!checkCallingPermission(android.Manifest.permission.MONITOR_INPUT, in monitorGestureInput()
698 if (!checkCallingPermission(android.Manifest.permission.DISABLE_INPUT_DEVICE, in enableInputDevice()
708 if (!checkCallingPermission(android.Manifest.permission.DISABLE_INPUT_DEVICE, in disableInputDevice()
952 if (!checkCallingPermission(android.Manifest.permission.SET_INPUT_CALIBRATION, in setTouchCalibrationForInputDevice()
980 if (!checkCallingPermission(android.Manifest.permission.TABLET_MODE, in isInTabletMode()
994 if (!checkCallingPermission(android.Manifest.permission.TABLET_MODE, in registerTabletModeChangedListener()
1369 if (!checkCallingPermission(android.Manifest.permission.SET_KEYBOARD_LAYOUT, in setCurrentKeyboardLayoutForInputDevice()
1408 if (!checkCallingPermission(android.Manifest.permission.SET_KEYBOARD_LAYOUT, in addKeyboardLayoutForInputDevice()
1437 if (!checkCallingPermission(android.Manifest.permission.SET_KEYBOARD_LAYOUT, in removeKeyboardLayoutForInputDevice()
1581 if (!checkCallingPermission(android.Manifest.permission.SET_POINTER_SPEED, in tryPointerSpeed()
[all …]
/frameworks/base/cmds/incidentd/src/
DIncidentService.cpp71 if (checkCallingPermission(APPROVE_INCIDENT_REPORTS)) { in checkIncidentPermissions()
79 if (!checkCallingPermission(DUMP_PERMISSION)) { in checkIncidentPermissions()
86 if (!checkCallingPermission(USAGE_STATS_PERMISSION)) { in checkIncidentPermissions()
/frameworks/base/services/core/java/com/android/server/broadcastradio/
DBroadcastRadioService.java69 if (PackageManager.PERMISSION_GRANTED != getContext().checkCallingPermission( in enforcePolicyAccess()
/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/tv/
DTvInputManagerService.java902 && mContext.checkCallingPermission( in updateTvInputInfo()
950 if (mContext.checkCallingPermission( in getTvContentRatingSystemList()
971 if (mContext.checkCallingPermission(android.Manifest.permission.NOTIFY_TV_INPUTS) in sendTvInputNotifyIntent()
1147 if (mContext.checkCallingPermission( in ensureParentalControlsPermission()
1236 if (mContext.checkCallingPermission( in setMainSession()
1708 if (mContext.checkCallingPermission(android.Manifest.permission.TV_INPUT_HARDWARE) in getHardwareList()
1725 if (mContext.checkCallingPermission(android.Manifest.permission.TV_INPUT_HARDWARE) in acquireTvInputHardware()
1745 if (mContext.checkCallingPermission(android.Manifest.permission.TV_INPUT_HARDWARE) in releaseTvInputHardware()
1764 if (mContext.checkCallingPermission(android.Manifest.permission.DVB_DEVICE) in getDvbDeviceList()
1819 if (mContext.checkCallingPermission(android.Manifest.permission.DVB_DEVICE) in openDvbDevice()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmMockContext.java453 public int checkCallingPermission(String permission) { in checkCallingPermission() method in DpmMockContext
454 return spiedContext.checkCallingPermission(permission); in checkCallingPermission()
/frameworks/base/tests/testables/src/android/testing/
DTestableContext.java324 public int checkCallingPermission(String permission) { in checkCallingPermission() method in TestableContext
328 return super.checkCallingPermission(permission); in checkCallingPermission()
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java629 if (mInjector.checkCallingPermission(INTERACT_ACROSS_USERS_FULL)
1039 if (mInjector.checkCallingPermission(INTERACT_ACROSS_USERS_FULL)
1262 if (mInjector.checkCallingPermission(INTERACT_ACROSS_USERS_FULL)
1723 if (mInjector.checkCallingPermission(INTERACT_ACROSS_USERS_FULL)
1892 if ((mInjector.checkCallingPermission(INTERACT_ACROSS_USERS)
1894 mInjector.checkCallingPermission(INTERACT_ACROSS_USERS_FULL)
2286 int checkCallingPermission(String permission) {
2287 return mService.checkCallingPermission(permission);
/frameworks/base/services/contentsuggestions/java/com/android/server/contentsuggestions/
DContentSuggestionsManagerService.java98 if (ctx.checkCallingPermission(MANAGE_CONTENT_SUGGESTIONS) == PERMISSION_GRANTED in enforceCaller()
/frameworks/base/services/appprediction/java/com/android/server/appprediction/
DAppPredictionManagerService.java175 if (!(ctx.checkCallingPermission(PACKAGE_USAGE_STATS) == PERMISSION_GRANTED in runForUserLocked()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsAccessTest.java182 when(mContext.checkCallingPermission(Manifest.permission.PACKAGE_USAGE_STATS)).thenReturn( in setHasAppOpsPermission()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayManagerService.java2006 if (!checkCallingPermission(INTERNAL_SYSTEM_WINDOW, "createVirtualDisplay()")) { in createVirtualDisplay()
2090 hasUsageStats = mContext.checkCallingPermission( in getBrightnessEvents()
2311 if (checkCallingPermission(CAPTURE_VIDEO_OUTPUT, "canProjectVideo()")) { in canProjectVideo()
2327 return checkCallingPermission(CAPTURE_SECURE_VIDEO_OUTPUT, "canProjectSecureVideo()"); in canProjectSecureVideo()
2330 private boolean checkCallingPermission(String permission, String func) { in checkCallingPermission() method in DisplayManagerService.BinderService
2331 if (mContext.checkCallingPermission(permission) == PackageManager.PERMISSION_GRANTED) { in checkCallingPermission()
/frameworks/base/services/core/java/com/android/server/incident/
DIncidentCompanionService.java341 if (getContext().checkCallingPermission( in enforceAccessReportsPermissions()
/frameworks/av/drm/drmserver/
DDrmManagerService.cpp352 if (checkCallingPermission(String16("android.permission.DUMP")) == false) { in dump()

123