Home
last modified time | relevance | path

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

12

/packages/apps/Bluetooth/src/com/android/bluetooth/
DUtils.java320 if (context.checkCallingOrSelfPermission( in checkCallerHasCoarseLocation()
344 if (context.checkCallingOrSelfPermission( in checkCallerHasCoarseOrFineLocation()
352 if (context.checkCallingOrSelfPermission( in checkCallerHasCoarseOrFineLocation()
375 if (context.checkCallingOrSelfPermission( in checkCallerHasFineLocation()
391 return context.checkCallingOrSelfPermission(android.Manifest.permission.NETWORK_SETTINGS) in checkCallerHasNetworkSettingsPermission()
399 return context.checkCallingOrSelfPermission( in checkCallerHasNetworkSetupWizardPermission()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DTelecomServiceImplTest.java429 .when(mContext).checkCallingOrSelfPermission(MODIFY_PHONE_STATE); in testRegisterPhoneAccount()
445 .when(mContext).checkCallingOrSelfPermission(MODIFY_PHONE_STATE); in testRegisterPhoneAccountWithoutModifyPermission()
463 .when(mContext).checkCallingOrSelfPermission(MODIFY_PHONE_STATE); in testRegisterPhoneAccountWithoutModifyPermissionFailure()
481 .when(mContext).checkCallingOrSelfPermission(MODIFY_PHONE_STATE); in testRegisterPhoneAccountWithoutSimSubscriptionPermissionFailure()
500 .when(mContext).checkCallingOrSelfPermission(MODIFY_PHONE_STATE); in testRegisterPhoneAccountWithoutMultiUserPermissionFailure()
538 .when(mContext).checkCallingOrSelfPermission(MODIFY_PHONE_STATE); in testUnregisterPhoneAccount()
552 .when(mContext).checkCallingOrSelfPermission(MODIFY_PHONE_STATE); in testUnregisterPhoneAccountFailure()
DComponentContextFixture.java334 public int checkCallingOrSelfPermission(String permission) { in checkCallingOrSelfPermission() method
/packages/apps/Dialer/java/com/android/dialer/preferredsim/impl/
DPreferredSimFallbackProvider.java162 if (getContext().checkCallingOrSelfPermission(permission.READ_CONTACTS) in checkReadContactsPermission()
169 if (getContext().checkCallingOrSelfPermission(permission.WRITE_CONTACTS) in checkWriteContactsPermission()
/packages/services/Car/service/src/com/android/car/
DICarImpl.java420 if (context.checkCallingOrSelfPermission(permission) != PackageManager.PERMISSION_GRANTED) { in assertPermission()
431 return context.checkCallingOrSelfPermission(permission) in hasPermission()
437 if (context.checkCallingOrSelfPermission(permission) == in assertAnyPermission()
447 if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.DUMP) in dump()
DCarBluetoothService.java440 && PackageManager.PERMISSION_GRANTED == mContext.checkCallingOrSelfPermission( in enforceBluetoothAdminPermission()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DVmsPublisherServiceTest.java179 when(mContext.checkCallingOrSelfPermission(Car.PERMISSION_VMS_PUBLISHER)).thenReturn( in testSetLayersOffering_PermissionDenied()
234 when(mContext.checkCallingOrSelfPermission(Car.PERMISSION_VMS_PUBLISHER)).thenReturn( in testPublish_PermissionDenied()
260 when(mContext.checkCallingOrSelfPermission(Car.PERMISSION_VMS_PUBLISHER)).thenReturn( in testGetSubscriptions_PermissionDenied()
285 when(mContext.checkCallingOrSelfPermission(Car.PERMISSION_VMS_PUBLISHER)).thenReturn( in testGetPublisherId_PermissionDenied()
/packages/services/Car/car-lib/src/com/android/car/internal/
DCarPermission.java44 mContext.checkCallingOrSelfPermission(mName); in checkGranted()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java757 if (getContext().checkCallingOrSelfPermission(Downloads.Impl.PERMISSION_ACCESS_ADVANCED) in insert()
767 getContext().checkCallingOrSelfPermission( in insert()
867 if (getContext().checkCallingOrSelfPermission(Downloads.Impl.PERMISSION_ACCESS_ADVANCED) in insert()
1219 if (getContext().checkCallingOrSelfPermission(Downloads.Impl.PERMISSION_ACCESS) in checkInsertPermissions()
1250 if (getContext().checkCallingOrSelfPermission(Downloads.Impl.PERMISSION_NO_NOTIFICATION) in checkInsertPermissions()
1639 if (getContext().checkCallingOrSelfPermission( in getQueryBuilder()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DContactsPermissions.java44 ok = context.checkCallingOrSelfPermission(permission) in hasCallerOrSelfPermission()
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DMockTvProviderContext.java69 public int checkCallingOrSelfPermission(String permission) { in checkCallingOrSelfPermission() method in MockTvProviderContext
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DCarrierIdProvider.java671 int status = getContext().checkCallingOrSelfPermission( in checkReadPermission()
680 int status = getContext().checkCallingOrSelfPermission( in checkWritePermission()
/packages/apps/Car/Settings/src/com/android/car/settings/setupservice/
DInitialLockSetupService.java67 if (checkCallingOrSelfPermission(SET_LOCK_PERMISSION) in onBind()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DProfileService.java134 if (checkCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM) in onStartCommand()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DSmsProviderTest.java140 public int checkCallingOrSelfPermission(String permission) { in checkCallingOrSelfPermission() method in SmsProviderTest.MockContextWithProvider
DCarrierProviderTest.java112 public int checkCallingOrSelfPermission(String permission) { in checkCallingOrSelfPermission() method in CarrierProviderTest.MockContextWithProvider
DCarrierIdProviderTest.java134 public int checkCallingOrSelfPermission(String permission) { in checkCallingOrSelfPermission() method in CarrierIdProviderTest.MockContextWithProvider
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DFakeTvProvider.java2210 return getContext().checkCallingOrSelfPermission(PERMISSION_READ_TV_LISTINGS) in callerHasReadTvListingsPermission()
2215 return getContext().checkCallingOrSelfPermission(PERMISSION_ACCESS_ALL_EPG_DATA) in callerHasAccessAllEpgDataPermission()
2220 return getContext().checkCallingOrSelfPermission(PERMISSION_ACCESS_WATCHED_PROGRAMS) in callerHasAccessWatchedProgramsPermission()
2226 .checkCallingOrSelfPermission( in callerHasModifyParentalControlsPermission()
/packages/apps/Email/provider_src/com/android/email/provider/
DAttachmentProvider.java149 if (context.checkCallingOrSelfPermission(EmailContent.PROVIDER_PERMISSION) in openFile()
/packages/services/AlternativeNetworkAccess/src/com/android/ons/
DOpportunisticNetworkService.java113 if (context.checkCallingOrSelfPermission(android.Manifest.permission.MODIFY_PHONE_STATE) in enforceModifyPhoneStatePermission()
/packages/providers/TvProvider/src/com/android/providers/tv/
DTvProvider.java1998 return getContext().checkCallingOrSelfPermission(PERMISSION_READ_TV_LISTINGS) in callerHasReadTvListingsPermission()
2003 return getContext().checkCallingOrSelfPermission(PERMISSION_ACCESS_ALL_EPG_DATA) in callerHasAccessAllEpgDataPermission()
2008 return getContext().checkCallingOrSelfPermission(PERMISSION_ACCESS_WATCHED_PROGRAMS) in callerHasAccessWatchedProgramsPermission()
2013 return getContext().checkCallingOrSelfPermission( in callerHasModifyParentalControlsPermission()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DGattService.java289 || (checkCallingOrSelfPermission(BLUETOOTH_PRIVILEGED) in permissionCheck()
299 return (checkCallingOrSelfPermission(BLUETOOTH_PRIVILEGED) in permissionCheck()
310 && checkCallingOrSelfPermission(BLUETOOTH_PRIVILEGED)== PERMISSION_GRANTED) { in permissionCheck()
1915 && checkCallingOrSelfPermission(BLUETOOTH_PRIVILEGED) != PERMISSION_GRANTED) { in registerScanner()
/packages/services/Car/car-lib/src/android/car/cluster/renderer/
DInstrumentClusterRenderingService.java464 if (checkCallingOrSelfPermission(Car.PERMISSION_CAR_NAVIGATION_MANAGER) in assertClusterManagerPermission()
/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomServiceImpl.java1370 if (mContext.checkCallingOrSelfPermission(
1845 int result = mContext.checkCallingOrSelfPermission(MODIFY_PHONE_STATE); in enforcePhoneAccountModificationForPackage()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java576 public int checkCallingOrSelfPermission(String permission) { in checkCallingOrSelfPermission() method in ContactsActor.RestrictionMockContext

12