Home
last modified time | relevance | path

Searched refs:checkCallingOrSelfPermission (Results 1 – 23 of 23) sorted by relevance

/packages/services/Car/service/src/com/android/car/
DICarImpl.java235 if (context.checkCallingOrSelfPermission(Car.PERMISSION_MOCK_VEHICLE_HAL) in assertVehicleHalMockPermission()
242 if (context.checkCallingOrSelfPermission(Car.PERMISSION_CAR_CAMERA) in assertCameraPermission()
250 if (context.checkCallingOrSelfPermission(Car.PERMISSION_CAR_NAVIGATION_MANAGER) in assertNavigationManagerPermission()
258 if (context.checkCallingOrSelfPermission(Car.PERMISSION_CAR_HVAC) in assertHvacPermission()
266 if (context.checkCallingOrSelfPermission(Car.PERMISSION_CAR_RADIO) in assertRadioPermission()
274 if (context.checkCallingOrSelfPermission(Car.PERMISSION_CAR_PROJECTION) in assertProjectionPermission()
DCarRadioService.java205 mContext.checkCallingOrSelfPermission(Car.PERMISSION_CAR_RADIO) != in checkRadioPremissions()
DCarSensorService.java399 return mContext.checkCallingOrSelfPermission(permission); in getSensorPermission()
/packages/apps/Bluetooth/src/com/android/bluetooth/
DUtils.java281 if (context.checkCallingOrSelfPermission(android.Manifest.permission. in checkCallerHasLocationPermission()
287 if (context.checkCallingOrSelfPermission(android.Manifest.permission. in checkCallerHasLocationPermission()
316 return context.checkCallingOrSelfPermission( in checkCallerHasPeersMacAddressPermission()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DTelecomServiceImplTest.java396 .when(mContext).checkCallingOrSelfPermission(MODIFY_PHONE_STATE); in testRegisterPhoneAccount()
411 .when(mContext).checkCallingOrSelfPermission(MODIFY_PHONE_STATE); in testRegisterPhoneAccountWithoutModifyPermission()
428 .when(mContext).checkCallingOrSelfPermission(MODIFY_PHONE_STATE); in testRegisterPhoneAccountWithoutModifyPermissionFailure()
445 .when(mContext).checkCallingOrSelfPermission(MODIFY_PHONE_STATE); in testRegisterPhoneAccountWithoutSimSubscriptionPermissionFailure()
462 .when(mContext).checkCallingOrSelfPermission(MODIFY_PHONE_STATE); in testRegisterPhoneAccountWithoutMultiUserPermissionFailure()
511 .when(mContext).checkCallingOrSelfPermission(MODIFY_PHONE_STATE); in testUnregisterPhoneAccount()
532 .when(mContext).checkCallingOrSelfPermission(MODIFY_PHONE_STATE); in testUnregisterPhoneAccountFailure()
DComponentContextFixture.java296 public int checkCallingOrSelfPermission(String permission) { in checkCallingOrSelfPermission() method
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DMockTvProviderContext.java66 public int checkCallingOrSelfPermission(String permission) { in checkCallingOrSelfPermission() method in MockTvProviderContext
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DContactsPermissions.java44 ok = context.checkCallingOrSelfPermission(permission) in hasCallerOrSelfPermission()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java541 if (getContext().checkCallingOrSelfPermission(Downloads.Impl.PERMISSION_ACCESS_ADVANCED) in insert()
552 getContext().checkCallingOrSelfPermission( in insert()
647 if (getContext().checkCallingOrSelfPermission(Downloads.Impl.PERMISSION_ACCESS_ADVANCED) in insert()
766 if (getContext().checkCallingOrSelfPermission(Downloads.Impl.PERMISSION_ACCESS) in checkInsertPermissions()
797 if (getContext().checkCallingOrSelfPermission(Downloads.Impl.PERMISSION_NO_NOTIFICATION) in checkInsertPermissions()
1178 && getContext().checkCallingOrSelfPermission(Downloads.Impl.PERMISSION_ACCESS_ALL) in getWhereClause()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DProfileService.java127 if (checkCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM)!=PackageManager.PERMISSION_GRANTED) { in onStartCommand()
/packages/providers/TvProvider/src/com/android/providers/tv/
DTvProvider.java1138 return getContext().checkCallingOrSelfPermission(PERMISSION_READ_TV_LISTINGS) in callerHasReadTvListingsPermission()
1143 return getContext().checkCallingOrSelfPermission(PERMISSION_ACCESS_ALL_EPG_DATA) in callerHasAccessAllEpgDataPermission()
1148 return getContext().checkCallingOrSelfPermission(PERMISSION_ACCESS_WATCHED_PROGRAMS) in callerHasAccessWatchedProgramsPermission()
1153 return getContext().checkCallingOrSelfPermission( in callerHasModifyParentalControlsPermission()
/packages/apps/Email/provider_src/com/android/email/provider/
DAttachmentProvider.java149 if (context.checkCallingOrSelfPermission(EmailContent.PROVIDER_PERMISSION) in openFile()
/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomServiceImpl.java1167 if (mContext.checkCallingOrSelfPermission(
1331 int result = mContext.checkCallingOrSelfPermission(MODIFY_PHONE_STATE); in enforcePhoneAccountModificationForPackage()
/packages/services/Car/service/src/com/android/car/pm/
DCarPackageManagerService.java100 if (mContext.checkCallingOrSelfPermission(Car.PERMISSION_CONTROL_APP_BLOCKING) in doSetAppBlockingPolicy()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DGattService.java231 (0 != checkCallingOrSelfPermission(BLUETOOTH_PRIVILEGED))) in permissionCheck()
241 (0 != checkCallingOrSelfPermission(BLUETOOTH_PRIVILEGED))) in permissionCheck()
1316 checkCallingOrSelfPermission(BLUETOOTH_PRIVILEGED) != PERMISSION_GRANTED) { in startScan()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java517 public int checkCallingOrSelfPermission(String permission) { in checkCallingOrSelfPermission() method in ContactsActor.RestrictionMockContext
/packages/services/Telephony/src/com/android/phone/
DCarrierConfigLoader.java704 if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.DUMP) in dump()
DPhoneInterfaceManager.java1594 return mPhone.getContext().checkCallingOrSelfPermission( in checkCallerInteractAcrossUsersFull()
1646 int permission = mApp.checkCallingOrSelfPermission( in enforceModifyPermissionOrCarrierPrivilege()
/packages/apps/Nfc/src/com/android/nfc/
DNfcService.java2175 if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.DUMP) in dump()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyProvider.java2208 int status = getContext().checkCallingOrSelfPermission( in checkPermission()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapContentObserver.java3269 (context.checkCallingOrSelfPermission("android.Manifest.permission.WRITE_SMS") in actionSmsSentDisconnected()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java4745 if (c.checkCallingOrSelfPermission(WRITE_MEDIA_STORAGE) in checkAccess()
/packages/services/Car/bluetooth/bt-map-service/
Dbt_hci_startup_issues.txt46799 at android.app.ContextImpl.checkCallingOrSelfPermission(ContextImpl.java:1447)