/frameworks/av/services/camera/virtualcamera/util/ |
D | Permissions.cc | 32 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()
|
D | Permissions.h | 38 virtual bool checkCallingPermission(const std::string& permission) const = 0;
|
/frameworks/base/services/companion/java/com/android/server/companion/utils/ |
D | PermissionsUtils.java | 132 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/ |
D | PermissionCache.cpp | 77 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
|
D | IServiceManager.cpp | 191 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/ |
D | PermissionCache.h | 70 LIBBINDER_EXPORTED static bool checkCallingPermission(const String16& permission); 72 LIBBINDER_EXPORTED static bool checkCallingPermission(const String16& permission,
|
D | IServiceManager.h | 213 LIBBINDER_EXPORTED bool checkCallingPermission(const String16& permission); 214 LIBBINDER_EXPORTED bool checkCallingPermission(const String16& permission, int32_t* outPid,
|
/frameworks/native/include/binder/ |
D | PermissionCache.h | 70 LIBBINDER_EXPORTED static bool checkCallingPermission(const String16& permission); 72 LIBBINDER_EXPORTED static bool checkCallingPermission(const String16& permission,
|
D | IServiceManager.h | 213 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/ |
D | BroadcastRadioService.java | 46 if (getContext().checkCallingPermission(Manifest.permission.ACCESS_BROADCAST_RADIO) in enforcePolicyAccess()
|
/frameworks/av/services/mediaresourcemanager/ |
D | ResourceObserverService.cpp | 121 if (checkCallingPermission(String16("android.permission.DUMP")) == false) { in dump() 162 checkCallingPermission( in registerObserver() 221 checkCallingPermission( in unregisterObserver()
|
/frameworks/av/services/camera/virtualcamera/tests/ |
D | VirtualCameraServiceTest.cc | 119 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/ |
D | InputManagerService.java | 758 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/ |
D | SmartspaceManagerService.java | 168 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/ |
D | WindowManagerService.java | 2871 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/ |
D | IncrementalServiceValidation.cpp | 52 if (!PermissionCache::checkCallingPermission(String16(permission), &pid, &uid)) { in CheckPermissionForDataDelivery()
|
/frameworks/base/services/flags/java/com/android/server/flags/ |
D | FeatureFlagsService.java | 108 if (mContext.checkCallingPermission(WRITE_FLAGS) != PackageManager.PERMISSION_GRANTED) { in assertWritePermission()
|
/frameworks/av/services/camera/virtualcamera/ |
D | VirtualCameraService.cc | 242 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/ |
D | WebViewUpdateService.java | 252 if (getContext().checkCallingPermission( in changeProviderAndSetting() 320 .checkCallingPermission( in enableMultiProcess()
|
/frameworks/av/media/utils/ |
D | ProcessInfo.cpp | 141 return checkCallingPermission(String16("android.permission.MEDIA_RESOURCE_OVERRIDE_PID")); in isPidUidTrusted()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | UserController.java | 497 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/ |
D | IncidentService.cpp | 73 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/ |
D | MusicRecognitionManagerService.java | 90 if (ctx.checkCallingPermission(android.Manifest.permission.MANAGE_MUSIC_RECOGNITION) in enforceCaller()
|
/frameworks/base/services/wallpapereffectsgeneration/java/com/android/server/wallpapereffectsgeneration/ |
D | WallpaperEffectsGenerationManagerService.java | 168 if (!(ctx.checkCallingPermission(MANAGE_WALLPAPER_EFFECTS_GENERATION) in runForUser()
|
/frameworks/base/tests/testables/src/android/testing/ |
D | TestableContext.java | 395 public int checkCallingPermission(String permission) { in checkCallingPermission() method in TestableContext 399 return super.checkCallingPermission(permission); in checkCallingPermission()
|