Home
last modified time | relevance | path

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

1234

/frameworks/av/services/camera/virtualcamera/util/
DPermissions.cc32 bool checkCallingPermission(const std::string& permission) const override;
35 bool PermissionsProxyImpl::checkCallingPermission( in checkCallingPermission() function in android::companion::virtualcamera::__anon04e0a0bc0111::PermissionsProxyImpl
39 const bool hasPermission = PermissionCache::checkCallingPermission( in checkCallingPermission()
DPermissions.h38 virtual bool checkCallingPermission(const std::string& permission) const = 0;
/frameworks/base/services/companion/java/com/android/server/companion/utils/
DPermissionsUtils.java132 return context.checkCallingPermission(INTERACT_ACROSS_USERS) == PERMISSION_GRANTED; in checkCallerCanInteractWithUserId()
188 boolean canInteractAcrossUsers = context.checkCallingPermission(INTERACT_ACROSS_USERS) in enforceCallerCanManageAssociationsForPackage()
190 boolean canManageCompanionDevices = context.checkCallingPermission(MANAGE_COMPANION_DEVICES) in enforceCallerCanManageAssociationsForPackage()
240 return context.checkCallingPermission( in hasRequirePermissions()
242 && context.checkCallingPermission(BLUETOOTH_SCAN) == PERMISSION_GRANTED in hasRequirePermissions()
243 && context.checkCallingPermission(BLUETOOTH_CONNECT) == PERMISSION_GRANTED in hasRequirePermissions()
/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.cpp191 bool checkCallingPermission(const String16& permission) in checkCallingPermission() function
193 return checkCallingPermission(permission, nullptr, nullptr); in checkCallingPermission()
198 bool checkCallingPermission(const String16& permission, int32_t* outPid, int32_t* outUid) in checkCallingPermission() function
/frameworks/native/libs/binder/include/binder/
DPermissionCache.h70 LIBBINDER_EXPORTED static bool checkCallingPermission(const String16& permission);
72 LIBBINDER_EXPORTED static bool checkCallingPermission(const String16& permission,
DIServiceManager.h213 LIBBINDER_EXPORTED bool checkCallingPermission(const String16& permission);
214 LIBBINDER_EXPORTED bool checkCallingPermission(const String16& permission, int32_t* outPid,
/frameworks/native/include/binder/
DPermissionCache.h70 LIBBINDER_EXPORTED static bool checkCallingPermission(const String16& permission);
72 LIBBINDER_EXPORTED static bool checkCallingPermission(const String16& permission,
DIServiceManager.h213 LIBBINDER_EXPORTED bool checkCallingPermission(const String16& permission);
214 LIBBINDER_EXPORTED bool checkCallingPermission(const String16& permission, int32_t* outPid,
/frameworks/base/services/core/java/com/android/server/broadcastradio/
DBroadcastRadioService.java46 if (getContext().checkCallingPermission(Manifest.permission.ACCESS_BROADCAST_RADIO) in enforcePolicyAccess()
/frameworks/av/services/mediaresourcemanager/
DResourceObserverService.cpp121 if (checkCallingPermission(String16("android.permission.DUMP")) == false) { in dump()
162 checkCallingPermission( in registerObserver()
221 checkCallingPermission( in unregisterObserver()
/frameworks/av/services/camera/virtualcamera/tests/
DVirtualCameraServiceTest.cc119 MOCK_METHOD(bool, checkCallingPermission, (const std::string&),
138 ON_CALL(mMockPermissionsProxy, checkCallingPermission) in SetUp()
383 checkCallingPermission(kCreateVirtualDevicePermissions)) in TEST_F()
395 checkCallingPermission(kCreateVirtualDevicePermissions)) in TEST_F()
406 checkCallingPermission(kCreateVirtualDevicePermissions)) in TEST_F()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java758 if (!checkCallingPermission(android.Manifest.permission.MONITOR_INPUT, in monitorGestureInput()
885 if (!checkCallingPermission(android.Manifest.permission.INJECT_EVENTS, in injectInputEventToTarget()
964 if (!checkCallingPermission(android.Manifest.permission.DISABLE_INPUT_DEVICE, in enableInputDevice()
974 if (!checkCallingPermission(android.Manifest.permission.DISABLE_INPUT_DEVICE, in disableInputDevice()
1090 if (!checkCallingPermission(android.Manifest.permission.SET_INPUT_CALIBRATION, in setTouchCalibrationForInputDevice()
1114 if (!checkCallingPermission(android.Manifest.permission.TABLET_MODE, in isInTabletMode()
1128 if (!checkCallingPermission(android.Manifest.permission.TABLET_MODE, in registerTabletModeChangedListener()
1292 if (!checkCallingPermission(android.Manifest.permission.SET_POINTER_SPEED, in tryPointerSpeed()
1617 if (!checkCallingPermission( in addPortAssociation()
1638 if (!checkCallingPermission( in removePortAssociation()
[all …]
/frameworks/base/services/smartspace/java/com/android/server/smartspace/
DSmartspaceManagerService.java168 if (!(ctx.checkCallingPermission(MANAGE_SMARTSPACE) == PERMISSION_GRANTED in runForUserLocked()
170 && ctx.checkCallingPermission(ACCESS_SMARTSPACE) == PERMISSION_GRANTED) in runForUserLocked()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerService.java2871 boolean checkCallingPermission(String permission, String func) { in checkCallingPermission() method in WindowManagerService
2872 return checkCallingPermission(permission, func, true /* printLog */); in checkCallingPermission()
2875 boolean checkCallingPermission(String permission, String func, boolean printLog) { in checkCallingPermission() method in WindowManagerService
2880 if (mContext.checkCallingPermission(permission) in checkCallingPermission()
2894 if (!checkCallingPermission(MANAGE_APP_TOKENS, "addWindowToken()")) { in addWindowToken()
2934 final boolean callerCanManageAppTokens = checkCallingPermission(MANAGE_APP_TOKENS, in attachWindowContextToDisplayArea()
3016 final boolean callerCanManageAppTokens = checkCallingPermission(MANAGE_APP_TOKENS, in attachWindowContextToWindowToken()
3063 final boolean callerCanManageAppTokens = checkCallingPermission(MANAGE_APP_TOKENS, in detachWindowContext()
3124 if (!checkCallingPermission(MANAGE_APP_TOKENS, "removeWindowToken()")) { in removeWindowToken()
3163 if (!checkCallingPermission(MANAGE_APP_TOKENS, "prepareAppTransition()")) { in prepareAppTransitionNone()
[all …]
/frameworks/base/services/incremental/
DIncrementalServiceValidation.cpp52 if (!PermissionCache::checkCallingPermission(String16(permission), &pid, &uid)) { in CheckPermissionForDataDelivery()
/frameworks/base/services/flags/java/com/android/server/flags/
DFeatureFlagsService.java108 if (mContext.checkCallingPermission(WRITE_FLAGS) != PackageManager.PERMISSION_GRANTED) { in assertWritePermission()
/frameworks/av/services/camera/virtualcamera/
DVirtualCameraService.cc242 if (!mPermissionProxy.checkCallingPermission(kCreateVirtualDevicePermission)) { in registerCamera()
295 if (!mPermissionProxy.checkCallingPermission(kCreateVirtualDevicePermission)) { in unregisterCamera()
320 if (!mPermissionProxy.checkCallingPermission(kCreateVirtualDevicePermission)) { in getCameraId()
/frameworks/base/services/core/java/com/android/server/webkit/
DWebViewUpdateService.java252 if (getContext().checkCallingPermission( in changeProviderAndSetting()
320 .checkCallingPermission( in enableMultiProcess()
/frameworks/av/media/utils/
DProcessInfo.cpp141 return checkCallingPermission(String16("android.permission.MEDIA_RESOURCE_OVERRIDE_PID")); in isPidUidTrusted()
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java497 if (mInjector.checkCallingPermission(android.Manifest.permission.MANAGE_USERS) in setStopUserOnSwitch()
498 == PackageManager.PERMISSION_DENIED && mInjector.checkCallingPermission( in setStopUserOnSwitch()
974 if (mInjector.checkCallingPermission(android.Manifest.permission.MANAGE_USERS)
975 == PackageManager.PERMISSION_DENIED && mInjector.checkCallingPermission(
1012 checkCallingPermission(INTERACT_ACROSS_USERS_FULL, "stopUser");
1675 if (mInjector.checkCallingPermission(android.Manifest.permission.MANAGE_USERS)
1676 == PackageManager.PERMISSION_DENIED && mInjector.checkCallingPermission(
1739 checkCallingPermission(INTERACT_ACROSS_USERS_FULL, "startUser");
2057 checkCallingPermission(INTERACT_ACROSS_USERS_FULL, "unlockUser");
2840 checkCallingPermission(INTERACT_ACROSS_USERS_FULL, "registerUserSwitchObserver");
[all …]
/frameworks/base/cmds/incidentd/src/
DIncidentService.cpp73 if (checkCallingPermission(APPROVE_INCIDENT_REPORTS)) { in checkIncidentPermissions()
81 if (!checkCallingPermission(DUMP_PERMISSION)) { in checkIncidentPermissions()
88 if (!checkCallingPermission(USAGE_STATS_PERMISSION)) { in checkIncidentPermissions()
/frameworks/base/services/musicrecognition/java/com/android/server/musicrecognition/
DMusicRecognitionManagerService.java90 if (ctx.checkCallingPermission(android.Manifest.permission.MANAGE_MUSIC_RECOGNITION) in enforceCaller()
/frameworks/base/services/wallpapereffectsgeneration/java/com/android/server/wallpapereffectsgeneration/
DWallpaperEffectsGenerationManagerService.java168 if (!(ctx.checkCallingPermission(MANAGE_WALLPAPER_EFFECTS_GENERATION) in runForUser()
/frameworks/base/tests/testables/src/android/testing/
DTestableContext.java395 public int checkCallingPermission(String permission) { in checkCallingPermission() method in TestableContext
399 return super.checkCallingPermission(permission); in checkCallingPermission()

1234