Home
last modified time | relevance | path

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

1234567

/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardService.java62 void checkPermission() { in checkPermission() method in KeyguardService
78 checkPermission();
85 checkPermission();
93 checkPermission();
100 checkPermission();
106 checkPermission();
112 checkPermission();
118 checkPermission();
126 checkPermission();
135 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
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/av/media/utils/
DServiceUtilities.cpp75 const bool ok = permissionController.checkPermission(sAndroidPermissionRecordAudio, pid, uid); in checkRecordingInternal()
133 bool ok = PermissionCache::checkPermission(sCaptureAudioOutput, pid, uid); in captureAudioOutputAllowed()
141 bool ok = PermissionCache::checkPermission(sCaptureMediaOutput, pid, uid); in captureMediaOutputAllowed()
153 ok = PermissionCache::checkPermission(sCaptureHotwordAllowed, pid, uid); in captureHotwordAllowed()
187 bool ok = PermissionCache::checkPermission(sModifyDefaultAudioEffectsAllowed, pid, uid); in modifyDefaultAudioEffectsAllowed()
203 bool ok = PermissionCache::checkPermission(sModifyPhoneState, pid, uid); in modifyPhoneStateAllowed()
211 bool ok = PermissionCache::checkPermission(sModifyPhoneState, pid, uid) in bypassInterruptionPolicyAllowed()
212 || PermissionCache::checkPermission(sWriteSecureSettings, pid, uid) in bypassInterruptionPolicyAllowed()
213 || PermissionCache::checkPermission(sModifyAudioRouting, pid, uid); in bypassInterruptionPolicyAllowed()
/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/services/core/java/com/android/server/job/
DJobSchedulerShellCommand.java80 private void checkPermission(String operation) throws Exception { in checkPermission() method in JobSchedulerShellCommand
132 checkPermission("force scheduled jobs"); in runJob()
180 checkPermission("force timeout jobs"); in timeout()
215 checkPermission("cancel jobs"); in cancelJob()
251 checkPermission("change battery monitoring"); in monitorBattery()
304 checkPermission("force timeout jobs"); in getJobState()
341 checkPermission("manipulate scheduler heartbeat"); in doHeartbeat()
355 checkPermission("trigger wireless charging dock state"); in triggerDockState()
/frameworks/base/services/core/java/com/android/server/biometrics/face/
DFaceService.java342 checkPermission(MANAGE_BIOMETRIC); in generateChallenge()
348 checkPermission(MANAGE_BIOMETRIC); in revokeChallenge()
368 checkPermission(MANAGE_BIOMETRIC); in enroll()
406 checkPermission(MANAGE_BIOMETRIC); in cancelEnrollment()
414 checkPermission(USE_BIOMETRIC_INTERNAL); in authenticate()
429 checkPermission(USE_BIOMETRIC_INTERNAL); in prepareForAuthentication()
443 checkPermission(MANAGE_BIOMETRIC); in startPreparedClient()
449 checkPermission(USE_BIOMETRIC_INTERNAL); in cancelAuthentication()
456 checkPermission(USE_BIOMETRIC_INTERNAL); in cancelAuthenticationFromService()
463 checkPermission(MANAGE_BIOMETRIC); in setActiveUser()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/fingerprint/
DFingerprintService.java187 checkPermission(MANAGE_FINGERPRINT); in preEnroll()
193 checkPermission(MANAGE_FINGERPRINT); in postEnroll()
201 checkPermission(MANAGE_FINGERPRINT); in enroll()
225 checkPermission(MANAGE_FINGERPRINT); in cancelEnrollment()
246 checkPermission(MANAGE_BIOMETRIC); in prepareForAuthentication()
260 checkPermission(MANAGE_BIOMETRIC); in startPreparedClient()
273 checkPermission(MANAGE_BIOMETRIC); in cancelAuthenticationFromService()
280 checkPermission(MANAGE_FINGERPRINT); in setActiveUser()
287 checkPermission(MANAGE_FINGERPRINT); in remove()
309 checkPermission(MANAGE_FINGERPRINT); in enumerate()
[all …]
/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()
DIServiceManager.cpp140 return checkPermission(permission, pid, uid); in checkCallingPermission()
143 bool checkPermission(const String16& permission, pid_t pid, uid_t uid) in checkPermission() function
157 bool res = pc->checkPermission(permission, pid, uid); in checkPermission()
DIPermissionController.cpp37 virtual bool checkPermission(const String16& permission, int32_t pid, int32_t uid) in checkPermission() function in android::BpPermissionController
120 bool res = checkPermission(permission, pid, uid); in onTransact()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbSerialReader.java90 if (mContext.checkPermission(android.Manifest.permission.MANAGE_USB, pid, uid) in getSerial()
96 settings.checkPermission((UsbDevice) mDevice, packageName, pid, uid); in getSerial()
98 settings.checkPermission((UsbAccessory) mDevice, uid); in getSerial()
/frameworks/base/services/core/java/com/android/server/location/
DLocationPermissionUtil.java51 return context.checkPermission(android.Manifest.permission.LOCATION_HARDWARE, in hasPermissionLocationHardware()
57 return context.checkPermission(android.Manifest.permission.UPDATE_APP_OPS_STATS, in hasPermissionUpdateAppOpsStats()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DSliceManagerServiceTest.java119 when(mContextSpy.checkPermission("perm1", Process.myPid(), Process.myUid())) in testCheckAutoGrantPermissions()
121 when(mContextSpy.checkPermission("perm2", Process.myPid(), Process.myUid())) in testCheckAutoGrantPermissions()
127 verify(mContextSpy).checkPermission(eq("perm1"), eq(Process.myPid()), eq(Process.myUid())); in testCheckAutoGrantPermissions()
128 verify(mContextSpy).checkPermission(eq("perm2"), eq(Process.myPid()), eq(Process.myUid())); in testCheckAutoGrantPermissions()
/frameworks/base/services/core/java/com/android/server/dreams/
DDreamManagerService.java423 private void checkPermission(String permission) { in checkPermission() method in DreamManagerService
504 checkPermission(android.Manifest.permission.READ_DREAM_STATE); in getDreamComponents()
517 checkPermission(android.Manifest.permission.WRITE_DREAM_STATE); in setDreamComponents()
530 checkPermission(android.Manifest.permission.READ_DREAM_STATE); in getDefaultDreamComponent()
543 checkPermission(android.Manifest.permission.READ_DREAM_STATE); in isDreaming()
555 checkPermission(android.Manifest.permission.WRITE_DREAM_STATE); in dream()
570 checkPermission(android.Manifest.permission.WRITE_DREAM_STATE); in testDream()
591 checkPermission(android.Manifest.permission.WRITE_DREAM_STATE); in awaken()
648 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/apct-tests/perftests/core/src/android/os/
DPackageManagerPerfTest.java53 int ret = pm.checkPermission(PERMISSION_NAME_EXISTS, packageName); in testCheckPermissionExists()
64 int ret = pm.checkPermission(PERMISSION_NAME_DOESNT_EXIST, packageName); in testCheckPermissionDoesntExist()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyPermissionsTest.java123 when(mMockContext.checkPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, in setUp()
286 when(mMockContext.checkPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, in testCheckReadDeviceIdentifiers_hasPrivilegedPermission()
327 when(mMockContext.checkPermission(android.Manifest.permission.READ_PHONE_STATE, PID, in testCheckReadDeviceIdentifiers_hasReadPhoneStateTargetQ()
344 when(mMockContext.checkPermission(android.Manifest.permission.READ_PHONE_STATE, PID, in testCheckReadDeviceIdentifiers_hasReadPhoneStateTargetPreQ()
415 when(mMockContext.checkPermission( in testCheckCallingOrSelfReadSubscriberIdentifiers_noPermissions()
435 when(mMockContext.checkPermission( in testCheckCallingOrSelfReadSubscriberIdentifiers_carrierPrivileges()
452 when(mMockContext.checkPermission( in testCheckCallingOrSelfReadSubscriberIdentifiers_carrierPrivilegesOnOtherSub()
/frameworks/native/services/vr/virtual_touchpad/
DVirtualTouchpadService.cpp107 !PermissionCache::checkPermission(kDumpPermission, pid, uid)) { in dump()
136 const bool permission = PermissionCache::checkPermission(kTouchPermission, *out_pid, uid); in CheckTouchPermission()
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DMainActivity.java57 checkPermission(); in onCreate()
83 private void checkPermission() { in checkPermission() method in MainActivity
/frameworks/base/core/java/android/os/
DIPermissionController.aidl22 boolean checkPermission(String permission, int pid, int uid); in checkPermission() method
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java400 when(mContext.checkPermission(eq(android.Manifest.permission.NETWORK_SETTINGS), in setUp()
402 when(mContext.checkPermission(eq(android.Manifest.permission.NETWORK_SETUP_WIZARD), in setUp()
404 when(mContext.checkPermission(eq(android.Manifest.permission.NETWORK_STACK), in setUp()
406 when(mContext.checkPermission(eq(android.Manifest.permission.NETWORK_MANAGED_PROVISIONING), in setUp()
534 when(mContext.checkPermission(eq(android.Manifest.permission.NETWORK_SETTINGS), in testSetWifiEnabledMetricsPrivilegedApp()
587 when(mContext.checkPermission(eq(android.Manifest.permission.NETWORK_SETTINGS), in testSetWifiEnabledSuccessWithNetworkSettingsPermission()
601 when(mContext.checkPermission(eq(android.Manifest.permission.NETWORK_MANAGED_PROVISIONING), in testSetWifiEnabledSuccessWithNetworkManagedProvisioningPermission()
670 when(mContext.checkPermission(eq(android.Manifest.permission.NETWORK_SETTINGS), in testSetWifiEnabledFailureWhenInCryptDebounce()
738 when(mContext.checkPermission( in testSetWifiEnabledFromNetworkSettingsHolderWhenInAirplaneMode()
758 when(mContext.checkPermission( in testSetWifiEnabledFromAppFailsWhenInAirplaneMode()
[all …]
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DLocationPermissionCheckerTest.java144 doAnswer(mReturnPermission).when(mMockContext).checkPermission( in setupMockInterface()
149 when(mMockContext.checkPermission(mManifestStringCoarse, -1, mUid)) in setupMockInterface()
151 when(mMockContext.checkPermission(mManifestStringFine, -1, mUid)) in setupMockInterface()
/frameworks/native/libs/vr/libvr_manager/
Dtrusted_uids.cpp42 bool trusted = interface_cast<IPermissionController>(binder)->checkPermission( in IsTrustedUid()
/frameworks/native/libs/binder/include/binder/
DPermissionController.h49 bool checkPermission(const String16& permission, int32_t pid, int32_t uid);

1234567