Searched refs:checkPermission (Results 1 - 25 of 57) sorted by relevance

123

/frameworks/base/core/java/android/os/
H A DIPermissionController.aidl22 boolean checkPermission(String permission, int pid, int uid);
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
H A DKeyguardService.java54 void checkPermission() { method in class:KeyguardService
70 checkPermission();
76 checkPermission();
82 checkPermission();
88 checkPermission();
94 checkPermission();
100 checkPermission();
106 checkPermission();
112 checkPermission();
118 checkPermission();
[all...]
/frameworks/base/core/java/android/hardware/location/
H A DGeofenceHardwareService.java59 private void checkPermission(int pid, int uid, int monitoringType) { method in class:GeofenceHardwareService
95 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
103 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
111 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
119 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
128 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
138 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
/frameworks/support/v4/java/android/support/v4/app/
H A DNotificationCompatSideChannelService.java77 checkPermission(getCallingUid(), packageName);
88 checkPermission(getCallingUid(), packageName);
99 checkPermission(getCallingUid(), packageName);
109 private void checkPermission(int callingUid, String packageName) { method in class:NotificationCompatSideChannelService
/frameworks/native/include/binder/
H A DIPermissionController.h32 virtual bool checkPermission(const String16& permission,
H A DPermissionCache.h73 static bool checkPermission(const String16& permission,
H A DIServiceManager.h82 bool checkPermission(const String16& permission, pid_t pid, uid_t uid);
/frameworks/native/libs/binder/
H A DIPermissionController.cpp39 virtual bool checkPermission(const String16& permission, int32_t pid, int32_t uid) function in class:android::BpPermissionController
67 bool res = checkPermission(permission, pid, uid);
H A DPermissionCache.cpp88 return PermissionCache::checkPermission(permission, pid, uid);
91 bool PermissionCache::checkPermission( function in class:android::PermissionCache
102 granted = android::checkPermission(permission, pid, uid);
H A DIServiceManager.cpp65 return checkPermission(permission, pid, uid);
68 bool checkPermission(const String16& permission, pid_t pid, uid_t uid) function in namespace:android
79 bool res = pc->checkPermission(permission, pid, uid);
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
H A DServiceManagerPermissionTests.java52 public boolean checkPermission(java.lang.String permission, int pid, int uid) {
/frameworks/base/services/core/java/com/android/server/fingerprint/
H A DFingerprintService.java285 void checkPermission(String permisison) { method in class:FingerprintService
292 checkPermission(ENROLL_FINGERPRINT);
298 checkPermission(ENROLL_FINGERPRINT);
304 checkPermission(ENROLL_FINGERPRINT); // TODO: Maybe have another permission
311 checkPermission(USE_FINGERPRINT);
317 checkPermission(USE_FINGERPRINT);
/frameworks/base/services/core/java/com/android/server/dreams/
H A DDreamManagerService.java408 private void checkPermission(String permission) { method in class:DreamManagerService
483 checkPermission(android.Manifest.permission.READ_DREAM_STATE);
496 checkPermission(android.Manifest.permission.WRITE_DREAM_STATE);
509 checkPermission(android.Manifest.permission.READ_DREAM_STATE);
522 checkPermission(android.Manifest.permission.READ_DREAM_STATE);
534 checkPermission(android.Manifest.permission.WRITE_DREAM_STATE);
549 checkPermission(android.Manifest.permission.WRITE_DREAM_STATE);
570 checkPermission(android.Manifest.permission.WRITE_DREAM_STATE);
/frameworks/av/media/libmediaplayerservice/
H A DMediaRecorderClient.cpp48 static bool checkPermission(const char* permissionString) { function in namespace:android
99 if (vs != VIDEO_SOURCE_SURFACE && !checkPermission(cameraPermission)) {
113 if (!checkPermission(recordAudioPermission)) {
H A DDrm.cpp36 static bool checkPermission(const char* permissionString) { function in namespace:android
431 if (!checkPermission("android.permission.REMOVE_DRM_CERTIFICATES")) {
668 if (!checkPermission("android.permission.ACCESS_DRM_CERTIFICATES")) {
/frameworks/base/services/core/java/com/android/server/media/
H A DRemoteDisplayProviderWatcher.java176 if (mPackageManager.checkPermission(Manifest.permission.CAPTURE_VIDEO_OUTPUT,
180 if (mPackageManager.checkPermission(Manifest.permission.CAPTURE_SECURE_VIDEO_OUTPUT,
/frameworks/base/services/tests/servicestests/src/com/android/server/search/
H A DSearchablesTest.java435 public int checkPermission(String permName, String pkgName) { method in class:SearchablesTest.MyMockPackageManager
440 return mRealPackageManager.checkPermission(permName, pkgName);
/frameworks/base/test-runner/src/android/test/mock/
H A DMockContext.java483 public int checkPermission(String permission, int pid, int uid) { method in class:MockContext
489 public int checkPermission(String permission, int pid, int uid, IBinder callerToken) { method in class:MockContext
490 return checkPermission(permission, pid, uid);
/frameworks/base/core/java/android/content/
H A DContextWrapper.java566 public int checkPermission(String permission, int pid, int uid) { method in class:ContextWrapper
567 return mBase.checkPermission(permission, pid, uid);
572 public int checkPermission(String permission, int pid, int uid, IBinder callerToken) { method in class:ContextWrapper
573 return mBase.checkPermission(permission, pid, uid, callerToken);
H A DContentProvider.java472 || context.checkPermission(INTERACT_ACROSS_USERS, pid, uid)
491 if (context.checkPermission(componentPerm, pid, uid, callerToken)
509 if (context.checkPermission(pathPerm, pid, uid, callerToken)
559 if (context.checkPermission(componentPerm, pid, uid, callerToken)
577 if (context.checkPermission(pathPerm, pid, uid, callerToken)
/frameworks/base/core/java/android/net/
H A DNetworkScorerAppManager.java106 if (pm.checkPermission(permission.SCORE_NETWORKS, receiverInfo.packageName) !=
/frameworks/base/core/tests/coretests/src/android/net/
H A DNetworkScorerAppManagerTest.java128 Mockito.when(mMockPm.checkPermission(permission.SCORE_NETWORKS, packageName))
/frameworks/base/services/core/java/com/android/server/media/projection/
H A DMediaProjectionManagerService.java217 hasPermission |= checkPermission(packageName,
341 private boolean checkPermission(String packageName, String permission) { method in class:MediaProjectionManagerService.BinderService
342 return mContext.getPackageManager().checkPermission(permission, packageName)
/frameworks/base/services/usb/java/com/android/server/usb/
H A DUsbHostManager.java281 getCurrentSettings().checkPermission(device);
/frameworks/base/core/java/android/app/
H A DContextImpl.java1859 public int checkPermission(String permission, int pid, int uid) { method in class:ContextImpl
1865 return ActivityManagerNative.getDefault().checkPermission(
1874 public int checkPermission(String permission, int pid, int uid, IBinder callerToken) { method in class:ContextImpl
1895 return checkPermission(permission, pid, Binder.getCallingUid());
1906 return checkPermission(permission, Binder.getCallingPid(),
1927 checkPermission(permission, pid, uid),
2023 || checkPermission(readPermission, pid, uid)
2030 || checkPermission(writePermission, pid, uid)

Completed in 871 milliseconds

123