Home
last modified time | relevance | path

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

123456789

/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardService.java128 void checkPermission() { in checkPermission() method in KeyguardService
149 checkPermission();
192 checkPermission();
199 checkPermission();
207 checkPermission();
214 checkPermission();
220 checkPermission();
226 checkPermission();
232 checkPermission();
242 checkPermission();
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/
DFaceService.java139 Utils.checkPermission(getContext(), USE_BIOMETRIC_INTERNAL); in createTestSession()
153 Utils.checkPermission(getContext(), USE_BIOMETRIC_INTERNAL); in dumpSensorServiceStateProto()
167 Utils.checkPermission(getContext(), MANAGE_BIOMETRIC); in getSensorPropertiesInternal()
175 Utils.checkPermission(getContext(), USE_BIOMETRIC_INTERNAL); in getSensorProperties()
190 Utils.checkPermission(getContext(), MANAGE_BIOMETRIC); in generateChallenge()
204 Utils.checkPermission(getContext(), MANAGE_BIOMETRIC); in revokeChallenge()
219 Utils.checkPermission(getContext(), MANAGE_BIOMETRIC); in enroll()
235 Utils.checkPermission(getContext(), MANAGE_BIOMETRIC); in enrollRemotely()
241 Utils.checkPermission(getContext(), MANAGE_BIOMETRIC); in cancelEnrollment()
256 Utils.checkPermission(getContext(), USE_BIOMETRIC_INTERNAL); in authenticate()
[all …]
/frameworks/base/core/java/android/hardware/location/
DGeofenceHardwareService.java59 private void checkPermission(int pid, int uid, int monitoringType) { in checkPermission() method in GeofenceHardwareService
101 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
110 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);
149 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/
DFingerprintService.java137 Utils.checkPermission(getContext(), TEST_BIOMETRIC); in createTestSession()
152 Utils.checkPermission(getContext(), USE_BIOMETRIC_INTERNAL); in dumpSensorServiceStateProto()
168 Utils.checkPermission(getContext(), TEST_BIOMETRIC); in getSensorPropertiesInternal()
177 Utils.checkPermission(getContext(), USE_BIOMETRIC_INTERNAL); in getSensorProperties()
191 Utils.checkPermission(getContext(), MANAGE_FINGERPRINT); in generateChallenge()
205 Utils.checkPermission(getContext(), MANAGE_FINGERPRINT); in revokeChallenge()
221 Utils.checkPermission(getContext(), MANAGE_FINGERPRINT); in enroll()
235 Utils.checkPermission(getContext(), MANAGE_FINGERPRINT); in cancelEnrollment()
288 Utils.checkPermission(getContext(), USE_BIOMETRIC_INTERNAL); in authenticate()
397 Utils.checkPermission(getContext(), USE_BIOMETRIC_INTERNAL); in detectFingerprint()
[all …]
/frameworks/native/libs/permission/android/permission/
DPermissionChecker.cpp72 return checkPermission(permission, attributionSource, message, /*forDataDelivery*/ true, in checkPermissionForDataDeliveryFromDatasource()
81 return checkPermission(permission, attributionSource, message, /*forDataDelivery*/ true, in checkPermissionForStartDataDeliveryFromDatasource()
89 return checkPermission(permission, attributionSource, message, /*forDataDelivery*/ false, in checkPermissionForPreflight()
97 return checkPermission(permission, attributionSource, message, /*forDataDelivery*/ false, in checkPermissionForPreflightFromDatasource()
114 PermissionChecker::PermissionResult PermissionChecker::checkPermission(const String16& permission, in checkPermission() function in android::permission::PermissionChecker
122 binder::Status status = service->checkPermission(permission, attributionSource, message, in checkPermission()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/hidl/
DBiometricTestSessionImpl.java131 Utils.checkPermission(mContext, TEST_BIOMETRIC); in setTestHalEnabled()
138 Utils.checkPermission(mContext, TEST_BIOMETRIC); in startEnroll()
147 Utils.checkPermission(mContext, TEST_BIOMETRIC); in finishEnroll()
161 Utils.checkPermission(mContext, TEST_BIOMETRIC); in acceptAuthentication()
177 Utils.checkPermission(mContext, TEST_BIOMETRIC); in rejectAuthentication()
184 Utils.checkPermission(mContext, TEST_BIOMETRIC); in notifyAcquired()
191 Utils.checkPermission(mContext, TEST_BIOMETRIC); in notifyError()
198 Utils.checkPermission(mContext, TEST_BIOMETRIC); in cleanupInternalState()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/
DBiometricTestSessionImpl.java136 Utils.checkPermission(mContext, TEST_BIOMETRIC); in setTestHalEnabled()
143 Utils.checkPermission(mContext, TEST_BIOMETRIC); in startEnroll()
152 Utils.checkPermission(mContext, TEST_BIOMETRIC); in finishEnroll()
166 Utils.checkPermission(mContext, TEST_BIOMETRIC); in acceptAuthentication()
182 Utils.checkPermission(mContext, TEST_BIOMETRIC); in rejectAuthentication()
189 Utils.checkPermission(mContext, TEST_BIOMETRIC); in notifyAcquired()
196 Utils.checkPermission(mContext, TEST_BIOMETRIC); in notifyError()
203 Utils.checkPermission(mContext, TEST_BIOMETRIC); in cleanupInternalState()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/aidl/
DBiometricTestSessionImpl.java135 Utils.checkPermission(mContext, TEST_BIOMETRIC); in setTestHalEnabled()
143 Utils.checkPermission(mContext, TEST_BIOMETRIC); in startEnroll()
152 Utils.checkPermission(mContext, TEST_BIOMETRIC); in finishEnroll()
166 Utils.checkPermission(mContext, TEST_BIOMETRIC); in acceptAuthentication()
182 Utils.checkPermission(mContext, TEST_BIOMETRIC); in rejectAuthentication()
189 Utils.checkPermission(mContext, TEST_BIOMETRIC); in notifyAcquired()
197 Utils.checkPermission(mContext, TEST_BIOMETRIC); in notifyError()
205 Utils.checkPermission(mContext, TEST_BIOMETRIC); in cleanupInternalState()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/aidl/
DBiometricTestSessionImpl.java142 Utils.checkPermission(mContext, TEST_BIOMETRIC); in setTestHalEnabled()
150 Utils.checkPermission(mContext, TEST_BIOMETRIC); in startEnroll()
159 Utils.checkPermission(mContext, TEST_BIOMETRIC); in finishEnroll()
173 Utils.checkPermission(mContext, TEST_BIOMETRIC); in acceptAuthentication()
189 Utils.checkPermission(mContext, TEST_BIOMETRIC); in rejectAuthentication()
197 Utils.checkPermission(mContext, TEST_BIOMETRIC); in notifyAcquired()
213 Utils.checkPermission(mContext, TEST_BIOMETRIC); in notifyError()
221 Utils.checkPermission(mContext, TEST_BIOMETRIC); in cleanupInternalState()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerShellCommand.java85 private void checkPermission(String operation) throws Exception { in checkPermission() method in JobSchedulerShellCommand
137 checkPermission("force scheduled jobs"); in runJob()
196 checkPermission("force timeout jobs"); in timeout()
231 checkPermission("cancel jobs"); in cancelJob()
267 checkPermission("change battery monitoring"); in monitorBattery()
320 checkPermission("force timeout jobs"); in getJobState()
357 checkPermission("manipulate scheduler heartbeat"); in doHeartbeat()
364 checkPermission("reset execution quota"); in resetExecutionQuota()
398 checkPermission("reset schedule quota"); in resetScheduleQuota()
410 checkPermission("trigger wireless charging dock state"); in triggerDockState()
/frameworks/opt/chips/src/com/android/ex/chips/
DChipsUtil.java62 public static int checkPermission(Context context, String permission) { in checkPermission() method in ChipsUtil
65 return context.checkPermission(permission, Process.myPid(), Process.myUid()); in checkPermission()
82 checkPermission(context, permission) == PackageManager.PERMISSION_GRANTED; in hasPermissions()
/frameworks/base/core/java/android/permission/
DPermissionCheckerManager.java113 public int checkPermission(@NonNull String permission, in checkPermission() method in PermissionCheckerManager
125 return mContext.checkPermission(permission, attributionSource.next[0].pid, in checkPermission()
130 return (mContext.checkPermission(permission, attributionSource.pid, in checkPermission()
136 return mService.checkPermission(permission, attributionSource, message, forDataDelivery, in checkPermission()
/frameworks/base/services/tests/servicestests/src/com/android/server/appsearch/
DAppSearchImplPlatformTest.java120 when(mockPackageManager.checkPermission( in testSetSchema_existingSchemaRetainsVisibilitySetting()
123 when(mockPackageManager.checkPermission(READ_GLOBAL_APP_SEARCH_DATA, packageNameFoo)) in testSetSchema_existingSchemaRetainsVisibilitySetting()
227 when(mockPackageManager.checkPermission( in testRemoveSchema_removedFromVisibilityStore()
230 when(mockPackageManager.checkPermission(READ_GLOBAL_APP_SEARCH_DATA, packageNameFoo)) in testRemoveSchema_removedFromVisibilityStore()
323 when(mockPackageManager.checkPermission( in testSetSchema_defaultPlatformVisible()
351 when(mockPackageManager.checkPermission( in testSetSchema_platformHidden()
381 when(mockPackageManager.checkPermission( in testSetSchema_defaultNotVisibleToPackages()
420 when(mockPackageManager.checkPermission(READ_GLOBAL_APP_SEARCH_DATA, packageNameFoo)) in testSetSchema_visibleToPackages()
/frameworks/base/services/tests/servicestests/src/com/android/server/appsearch/visibilitystore/
DVisibilityStoreImplTest.java126 .checkPermission(READ_GLOBAL_APP_SEARCH_DATA, mContext.getPackageName())) in testDoesCallerHaveSystemAccess()
131 .checkPermission(READ_GLOBAL_APP_SEARCH_DATA, mContext.getPackageName())) in testDoesCallerHaveSystemAccess()
142 .checkPermission(READ_GLOBAL_APP_SEARCH_DATA, mContext.getPackageName())) in testSetVisibility_displayedBySystem()
252 .checkPermission(READ_GLOBAL_APP_SEARCH_DATA, packageNameFoo)) in testSetVisibility_visibleToPackages()
255 .checkPermission(READ_GLOBAL_APP_SEARCH_DATA, packageNameBar)) in testSetVisibility_visibleToPackages()
391 when(mockPackageManager.checkPermission(READ_GLOBAL_APP_SEARCH_DATA, packageNameFoo)) in testIsSchemaSearchableByCaller_packageAccessibilityHandlesNameNotFoundException()
422 when(mockPackageManager.checkPermission( in testEmptyPrefix()
425 when(mockPackageManager.checkPermission(READ_GLOBAL_APP_SEARCH_DATA, packageNameFoo)) in testEmptyPrefix()
/frameworks/base/services/tests/servicestests/src/com/android/server/tv/
DTvRemoteProviderWatcherTest.java71 when(mMockPackageManager.checkPermission( in setUp()
76 when(mMockPackageManager.checkPermission( in setUp()
81 when(mMockPackageManager.checkPermission(Manifest.permission.TV_VIRTUAL_REMOTE_CONTROLLER, in setUp()
143 when(mMockPackageManager.checkPermission(anyString(), anyString())).thenReturn( in packageManagerPermissionIsRequired()
/frameworks/av/media/utils/
DServiceUtilities.cpp181 bool ok = PermissionCache::checkPermission(sCaptureAudioOutput, pid, uid); in captureAudioOutputAllowed()
191 bool ok = PermissionCache::checkPermission(sCaptureMediaOutput, pid, uid); in captureMediaOutputAllowed()
201 bool ok = PermissionCache::checkPermission(sCaptureTunerAudioInput, pid, uid); in captureTunerAudioInputAllowed()
212 bool ok = PermissionCache::checkPermission(sCaptureVoiceCommOutput, pid, uid); in captureVoiceCommunicationOutputAllowed()
253 bool ok = PermissionCache::checkPermission(sModifyAudioRouting, pid, uid); in modifyAudioRoutingAllowed()
271 bool ok = PermissionCache::checkPermission(sModifyDefaultAudioEffectsAllowed, pid, uid); in modifyDefaultAudioEffectsAllowed()
289 bool ok = PermissionCache::checkPermission(sModifyPhoneState, pid, uid); in modifyPhoneStateAllowed()
299 bool ok = PermissionCache::checkPermission(sModifyPhoneState, pid, uid) in bypassInterruptionPolicyAllowed()
300 || PermissionCache::checkPermission(sWriteSecureSettings, pid, uid) in bypassInterruptionPolicyAllowed()
301 || PermissionCache::checkPermission(sModifyAudioRouting, pid, uid); in bypassInterruptionPolicyAllowed()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbSerialReader.java92 if (mContext.checkPermission(android.Manifest.permission.MANAGE_USB, pid, uid) in getSerial()
98 .checkPermission((UsbDevice) mDevice, packageName, pid, uid); in getSerial()
101 .checkPermission((UsbAccessory) mDevice, uid); in getSerial()
/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()
DPermissionController.cpp56 bool PermissionController::checkPermission(const String16& permission, int32_t pid, int32_t uid) in checkPermission() function in android::PermissionController
59 return service != nullptr ? service->checkPermission(permission, pid, uid) : false; in checkPermission()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DSliceManagerServiceTest.java120 when(mContextSpy.checkPermission("perm1", Process.myPid(), Process.myUid())) in testCheckAutoGrantPermissions()
122 when(mContextSpy.checkPermission("perm2", Process.myPid(), Process.myUid())) in testCheckAutoGrantPermissions()
128 verify(mContextSpy).checkPermission(eq("perm1"), eq(Process.myPid()), eq(Process.myUid())); in testCheckAutoGrantPermissions()
129 verify(mContextSpy).checkPermission(eq("perm2"), eq(Process.myPid()), eq(Process.myUid())); in testCheckAutoGrantPermissions()
/frameworks/base/services/core/java/com/android/server/biometrics/
DAuthService.java174 Utils.checkPermission(getContext(), TEST_BIOMETRIC); in createTestSession()
188 Utils.checkPermission(getContext(), TEST_BIOMETRIC); in getSensorProperties()
202 Utils.checkPermission(getContext(), TEST_BIOMETRIC); in getUiPackage()
217 checkPermission(); in authenticate()
275 checkPermission(); in cancelAuthentication()
300 checkPermission(); in canAuthenticate()
413 checkPermission(); in getButtonLabel()
459 checkPermission(); in getPromptMessage()
529 checkPermission(); in getSettingName()
718 private void checkPermission() { in checkPermission() method in AuthService
/frameworks/base/services/core/java/com/android/server/dreams/
DDreamManagerService.java469 private void checkPermission(String permission) { in checkPermission() method in DreamManagerService
555 checkPermission(android.Manifest.permission.READ_DREAM_STATE); in getDreamComponentsForUser()
569 checkPermission(android.Manifest.permission.WRITE_DREAM_STATE); in setDreamComponents()
582 checkPermission(android.Manifest.permission.WRITE_DREAM_STATE); in setDreamComponentsForUser()
596 checkPermission(android.Manifest.permission.READ_DREAM_STATE); in getDefaultDreamComponentForUser()
610 checkPermission(android.Manifest.permission.READ_DREAM_STATE); in isDreaming()
622 checkPermission(android.Manifest.permission.WRITE_DREAM_STATE); in dream()
637 checkPermission(android.Manifest.permission.WRITE_DREAM_STATE); in testDream()
659 checkPermission(android.Manifest.permission.WRITE_DREAM_STATE); in awaken()
716 checkPermission(android.Manifest.permission.DEVICE_POWER); in forceAmbientDisplayEnabled()
/frameworks/base/tests/testables/tests/src/android/testing/
DTestablePermissionsTest.java49 mContext.checkPermission(permission.INTERACT_ACROSS_USERS, 0, 0)); in testCheck()
51 mContext.checkPermission(permission.INTERACT_ACROSS_USERS_FULL, 0, 0)); in testCheck()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DLegacyPermissionManagerService.java99 if (mInjector.checkPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, pid, in checkDeviceIdentifierAccess()
134 if (mInjector.checkPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, pid, in checkPhoneNumberAccess()
220 if (mInjector.checkPermission(permission, pid, uid) in checkPermissionAndAppop()
417 public int checkPermission(@NonNull String permission, int pid, int uid) { in checkPermission() method in LegacyPermissionManagerService.Injector
418 return mContext.checkPermission(permission, pid, uid); in checkPermission()
/frameworks/base/services/core/java/com/android/server/location/
DLocationPermissions.java165 if (context.checkPermission(ACCESS_FINE_LOCATION, pid, uid) == PERMISSION_GRANTED) { in getPermissionLevel()
168 if (context.checkPermission(ACCESS_COARSE_LOCATION, pid, uid) == PERMISSION_GRANTED) { in getPermissionLevel()

123456789