Home
last modified time | relevance | path

Searched refs:checkPermission (Results 1 – 25 of 62) sorted by relevance

123

/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardService.java54 void checkPermission() { in checkPermission() method in 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/
DGeofenceHardwareService.java59 private void checkPermission(int pid, int uid, int monitoringType) { in checkPermission() method in 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/
DNotificationCompatSideChannelService.java77 checkPermission(getCallingUid(), packageName); in notify()
88 checkPermission(getCallingUid(), packageName); in cancel()
99 checkPermission(getCallingUid(), packageName); in cancelAll()
109 private void checkPermission(int callingUid, String packageName) { in checkPermission() method in NotificationCompatSideChannelService
/frameworks/native/libs/binder/
DPermissionCache.cpp88 return PermissionCache::checkPermission(permission, pid, uid); in checkCallingPermission()
91 bool PermissionCache::checkPermission( in checkPermission() function in android::PermissionCache
102 granted = android::checkPermission(permission, pid, uid); in checkPermission()
DIPermissionController.cpp39 virtual bool checkPermission(const String16& permission, int32_t pid, int32_t uid) in checkPermission() function in android::BpPermissionController
67 bool res = checkPermission(permission, pid, uid); in onTransact()
DIServiceManager.cpp65 return checkPermission(permission, pid, uid); in checkCallingPermission()
68 bool checkPermission(const String16& permission, pid_t pid, uid_t uid) in checkPermission() function
79 bool res = pc->checkPermission(permission, pid, uid); in checkPermission()
/frameworks/base/services/core/java/com/android/server/fingerprint/
DFingerprintService.java285 void checkPermission(String permisison) { in checkPermission() method in FingerprintService
292 checkPermission(ENROLL_FINGERPRINT); in enroll()
298 checkPermission(ENROLL_FINGERPRINT); in enrollCancel()
304 checkPermission(ENROLL_FINGERPRINT); // TODO: Maybe have another permission in remove()
311 checkPermission(USE_FINGERPRINT); in startListening()
317 checkPermission(USE_FINGERPRINT); in stopListening()
/frameworks/base/services/core/java/com/android/server/dreams/
DDreamManagerService.java408 private void checkPermission(String permission) { in checkPermission() method in DreamManagerService
483 checkPermission(android.Manifest.permission.READ_DREAM_STATE); in getDreamComponents()
496 checkPermission(android.Manifest.permission.WRITE_DREAM_STATE); in setDreamComponents()
509 checkPermission(android.Manifest.permission.READ_DREAM_STATE); in getDefaultDreamComponent()
522 checkPermission(android.Manifest.permission.READ_DREAM_STATE); in isDreaming()
534 checkPermission(android.Manifest.permission.WRITE_DREAM_STATE); in dream()
549 checkPermission(android.Manifest.permission.WRITE_DREAM_STATE); in testDream()
570 checkPermission(android.Manifest.permission.WRITE_DREAM_STATE); in awaken()
/frameworks/base/core/java/android/os/
DIPermissionController.aidl22 boolean checkPermission(String permission, int pid, int uid); in checkPermission() method
/frameworks/av/media/libmediaplayerservice/
DMediaRecorderClient.cpp48 static bool checkPermission(const char* permissionString) { in checkPermission() function
99 if (vs != VIDEO_SOURCE_SURFACE && !checkPermission(cameraPermission)) { in setVideoSource()
113 if (!checkPermission(recordAudioPermission)) { in setAudioSource()
DDrm.cpp36 static bool checkPermission(const char* permissionString) { in checkPermission() function
431 if (!checkPermission("android.permission.REMOVE_DRM_CERTIFICATES")) { in unprovisionDevice()
668 if (!checkPermission("android.permission.ACCESS_DRM_CERTIFICATES")) { in signRSA()
/frameworks/native/include/binder/
DIPermissionController.h32 virtual bool checkPermission(const String16& permission,
DPermissionCache.h73 static bool checkPermission(const String16& permission,
DIServiceManager.h82 bool checkPermission(const String16& permission, pid_t pid, uid_t uid);
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DServiceManagerPermissionTests.java52 public boolean checkPermission(java.lang.String permission, int pid, int uid) { in testSetPermissionController()
/frameworks/base/services/core/java/com/android/server/media/
DRemoteDisplayProviderWatcher.java176 if (mPackageManager.checkPermission(Manifest.permission.CAPTURE_VIDEO_OUTPUT, in hasCaptureVideoPermission()
180 if (mPackageManager.checkPermission(Manifest.permission.CAPTURE_SECURE_VIDEO_OUTPUT, in hasCaptureVideoPermission()
/frameworks/base/core/java/android/content/
DContextWrapper.java566 public int checkPermission(String permission, int pid, int uid) { in checkPermission() method in ContextWrapper
567 return mBase.checkPermission(permission, pid, uid); in checkPermission()
572 public int checkPermission(String permission, int pid, int uid, IBinder callerToken) { in checkPermission() method in ContextWrapper
573 return mBase.checkPermission(permission, pid, uid, callerToken); in checkPermission()
DContentProvider.java472 || context.checkPermission(INTERACT_ACROSS_USERS, pid, uid) in checkUser()
491 if (context.checkPermission(componentPerm, pid, uid, callerToken) in enforceReadPermissionInner()
509 if (context.checkPermission(pathPerm, pid, uid, callerToken) in enforceReadPermissionInner()
559 if (context.checkPermission(componentPerm, pid, uid, callerToken) in enforceWritePermissionInner()
577 if (context.checkPermission(pathPerm, pid, uid, callerToken) in enforceWritePermissionInner()
/frameworks/base/services/tests/servicestests/src/com/android/server/search/
DSearchablesTest.java435 public int checkPermission(String permName, String pkgName) { in checkPermission() method in SearchablesTest.MyMockPackageManager
440 return mRealPackageManager.checkPermission(permName, pkgName); in checkPermission()
/frameworks/base/test-runner/src/android/test/mock/
DMockContext.java483 public int checkPermission(String permission, int pid, int uid) { in checkPermission() method in MockContext
489 public int checkPermission(String permission, int pid, int uid, IBinder callerToken) { in checkPermission() method in MockContext
490 return checkPermission(permission, pid, uid); in checkPermission()
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionManagerService.java217 hasPermission |= checkPermission(packageName, in hasProjectionPermission()
341 private boolean checkPermission(String packageName, String permission) { in checkPermission() method in MediaProjectionManagerService.BinderService
342 return mContext.getPackageManager().checkPermission(permission, packageName) in checkPermission()
/frameworks/base/core/java/android/net/
DNetworkScorerAppManager.java106 if (pm.checkPermission(permission.SCORE_NETWORKS, receiverInfo.packageName) != in getAllValidScorers()
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkScorerAppManagerTest.java128 Mockito.when(mMockPm.checkPermission(permission.SCORE_NETWORKS, packageName)) in buildResolveInfo()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java694 checkPermission(android.Manifest.permission.SET_WALLPAPER_HINTS); in setDimensionHints()
748 checkPermission(android.Manifest.permission.SET_WALLPAPER_HINTS); in setDisplayPadding()
825 checkPermission(android.Manifest.permission.SET_WALLPAPER); in setWallpaper()
872 checkPermission(android.Manifest.permission.SET_WALLPAPER_COMPONENT); in setWallpaperComponent()
1093 private void checkPermission(String permission) { in checkPermission() method in WallpaperManagerService
/frameworks/base/core/java/android/app/
DContextImpl.java1859 public int checkPermission(String permission, int pid, int uid) { in checkPermission() method in ContextImpl
1865 return ActivityManagerNative.getDefault().checkPermission( in checkPermission()
1874 public int checkPermission(String permission, int pid, int uid, IBinder callerToken) { in checkPermission() method in ContextImpl
1895 return checkPermission(permission, pid, Binder.getCallingUid()); in checkCallingPermission()
1906 return checkPermission(permission, Binder.getCallingPid(), in checkCallingOrSelfPermission()
1927 checkPermission(permission, pid, uid), in enforcePermission()
2023 || checkPermission(readPermission, pid, uid) in checkUriPermission()
2030 || checkPermission(writePermission, pid, uid) in checkUriPermission()

123