Home
last modified time | relevance | path

Searched refs:enforceCallingOrSelfPermission (Results 1 – 25 of 81) sorted by relevance

1234

/packages/providers/ContactsKeysProvider/src/com/android/providers/contactkeys/
DE2eeContactKeysProvider.java119 E2eeContactKeysPermissions.enforceCallingOrSelfPermission(getContext(), WRITE_PERMISSION); in updateOrInsertE2eeContactKey()
153 E2eeContactKeysPermissions.enforceCallingOrSelfPermission(getContext(), READ_PERMISSION); in getE2eeContactKey()
177 E2eeContactKeysPermissions.enforceCallingOrSelfPermission(getContext(), READ_PERMISSION); in getAllE2eeContactKeys()
211 E2eeContactKeysPermissions.enforceCallingOrSelfPermission(getContext(), READ_PERMISSION); in getOwnerE2eeContactKeys()
234 E2eeContactKeysPermissions.enforceCallingOrSelfPermission(getContext(), WRITE_PERMISSION); in updateE2eeContactKeyLocalVerificationState()
249 E2eeContactKeysPermissions.enforceCallingOrSelfPermission(getContext(), in updateE2eeContactKeyLocalVerificationState()
272 E2eeContactKeysPermissions.enforceCallingOrSelfPermission(getContext(), WRITE_PERMISSION); in updateE2eeContactKeyRemoteVerificationState()
287 E2eeContactKeysPermissions.enforceCallingOrSelfPermission(getContext(), in updateE2eeContactKeyRemoteVerificationState()
308 E2eeContactKeysPermissions.enforceCallingOrSelfPermission(getContext(), WRITE_PERMISSION); in removeE2eeContactKey()
331 E2eeContactKeysPermissions.enforceCallingOrSelfPermission(getContext(), WRITE_PERMISSION); in updateOrInsertE2eeSelfKey()
[all …]
/packages/modules/Permission/service/java/com/android/role/
DRoleService.java510 getContext().enforceCallingOrSelfPermission(Manifest.permission.MANAGE_ROLE_HOLDERS, in getRoleHoldersAsUser()
533 getContext().enforceCallingOrSelfPermission(Manifest.permission.MANAGE_ROLE_HOLDERS, in addRoleHolderAsUser()
554 getContext().enforceCallingOrSelfPermission(Manifest.permission.MANAGE_ROLE_HOLDERS, in removeRoleHolderAsUser()
576 getContext().enforceCallingOrSelfPermission(Manifest.permission.MANAGE_ROLE_HOLDERS, in clearRoleHoldersAsUser()
595 getContext().enforceCallingOrSelfPermission( in getDefaultApplicationAsUser()
620 getContext().enforceCallingOrSelfPermission( in setDefaultApplicationAsUser()
646 getContext().enforceCallingOrSelfPermission(Manifest.permission.OBSERVE_ROLE_HOLDERS, in addOnRoleHoldersChangedListenerAsUser()
667 getContext().enforceCallingOrSelfPermission(Manifest.permission.OBSERVE_ROLE_HOLDERS, in removeOnRoleHoldersChangedListenerAsUser()
681 getContext().enforceCallingOrSelfPermission(Manifest.permission.MANAGE_ROLE_HOLDERS, in isBypassingRoleQualification()
691 getContext().enforceCallingOrSelfPermission( in setBypassingRoleQualification()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bass_client/
DBleBroadcastAssistantBinderTest.java151 doThrow(new RuntimeException()).when(mService).enforceCallingOrSelfPermission(any(), any()); in registerCallback()
168 doThrow(new RuntimeException()).when(mService).enforceCallingOrSelfPermission(any(), any()); in unregisterCallback()
184 doThrow(new RuntimeException()).when(mService).enforceCallingOrSelfPermission(any(), any()); in startSearchingForSources()
199 doThrow(new RuntimeException()).when(mService).enforceCallingOrSelfPermission(any(), any()); in stopSearchingForSources()
213 doThrow(new RuntimeException()).when(mService).enforceCallingOrSelfPermission(any(), any()); in isSearchInProgress()
227 doThrow(new RuntimeException()).when(mService).enforceCallingOrSelfPermission(any(), any()); in addSource()
243 doThrow(new RuntimeException()).when(mService).enforceCallingOrSelfPermission(any(), any()); in modifySource()
259 doThrow(new RuntimeException()).when(mService).enforceCallingOrSelfPermission(any(), any()); in removeSource()
/packages/apps/Nfc/src/com/android/nfc/
DNfcPermissions.java84 context.enforceCallingOrSelfPermission(ADMIN_PERM, ADMIN_PERM_ERROR); in enforceAdminPermissions()
92 context.enforceCallingOrSelfPermission(NFC_PERMISSION, NFC_PERM_ERROR); in enforceUserPermissions()
96 context.enforceCallingOrSelfPermission(NFC_PREFERRED_PAYMENT_INFO_PERMISSION, in enforcePreferredPaymentInfoPermissions()
104 context.enforceCallingOrSelfPermission(NFC_SET_CONTROLLER_ALWAYS_ON, in enforceSetControllerAlwaysOnPermissions()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DTelecomServiceImplTest.java379 .enforceCallingOrSelfPermission(eq(READ_PRIVILEGED_PHONE_STATE), anyString()); in testGetDefaultOutgoingPhoneAccountSucceedsIfCallerIsSimCallManager()
412 .enforceCallingOrSelfPermission(eq(READ_PRIVILEGED_PHONE_STATE), anyString()); in testGetDefaultOutgoingPhoneAccountFailure()
520 doThrow(new SecurityException()).when(mContext).enforceCallingOrSelfPermission( in testSetUserSelectedOutgoingPhoneAccountWithoutPermission()
610 doThrow(new SecurityException()).when(mContext).enforceCallingOrSelfPermission( in testGetCallCapablePhoneAccountsWithoutPermission()
634 doThrow(new SecurityException()).when(mContext).enforceCallingOrSelfPermission( in testGetSelfManagedPhoneAccountsWithoutPermission()
659 doThrow(new SecurityException()).when(mContext).enforceCallingOrSelfPermission( in testGetOwnSelfManagedPhoneAccountsWithoutPermission()
694 doThrow(new SecurityException()).when(mContext).enforceCallingOrSelfPermission( in testGetPhoneAccountsSupportingSchemeWithoutPermission()
718 doThrow(new SecurityException()).when(mContext).enforceCallingOrSelfPermission( in testGetPhoneAccountsForPackageWithoutPermission()
760 doThrow(new SecurityException()).when(mContext).enforceCallingOrSelfPermission( in testGetAllPhoneAccountsCountWithoutPermission()
784 doThrow(new SecurityException()).when(mContext).enforceCallingOrSelfPermission( in testGetAllPhoneAccountsWithoutPermission()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bas/
DBatteryService.java170 enforceCallingOrSelfPermission( in connect()
217 enforceCallingOrSelfPermission( in disconnect()
237 enforceCallingOrSelfPermission( in getConnectedDevices()
304 enforceCallingOrSelfPermission( in getDevicesMatchingConnectionStates()
351 enforceCallingOrSelfPermission(BLUETOOTH_CONNECT, "Need BLUETOOTH_CONNECT permission"); in getConnectionState()
377 enforceCallingOrSelfPermission( in setConnectionPolicy()
393 enforceCallingOrSelfPermission( in getConnectionPolicy()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/
DMapClientService.java114 enforceCallingOrSelfPermission( in connect()
182 enforceCallingOrSelfPermission( in disconnect()
251 enforceCallingOrSelfPermission( in setConnectionPolicy()
278 enforceCallingOrSelfPermission( in getConnectionPolicy()
574 mService.enforceCallingOrSelfPermission( in sendMessage()
589 mService.enforceCallingOrSelfPermission( in getUnreadMessages()
615 mService.enforceCallingOrSelfPermission( in setMessageStatus()
/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/
DThreadNetworkShellCommandTest.java93 .enforceCallingOrSelfPermission( in setUp()
117 .enforceCallingOrSelfPermission( in getCountryCode_testingPermissionIsChecked()
145 .enforceCallingOrSelfPermission( in forceSetCountryCodeEnabled_testingPermissionIsChecked()
183 .enforceCallingOrSelfPermission( in forceStopOtDaemon_testingPermissionIsChecked()
/packages/modules/Permission/service/java/com/android/safetycenter/
DSafetyCenterService.java309 .enforceCallingOrSelfPermission( in setSafetySourceData()
376 .enforceCallingOrSelfPermission( in reportSafetySourceError()
446 .enforceCallingOrSelfPermission(MANAGE_SAFETY_CENTER, "getSafetyCenterConfig"); in getSafetyCenterConfig()
464 .enforceCallingOrSelfPermission(MANAGE_SAFETY_CENTER, "getSafetyCenterData"); in getSafetyCenterData()
486 .enforceCallingOrSelfPermission( in addOnSafetyCenterDataChangedListener()
513 .enforceCallingOrSelfPermission( in removeOnSafetyCenterDataChangedListener()
529 .enforceCallingOrSelfPermission( in dismissSafetyCenterIssue()
584 .enforceCallingOrSelfPermission( in executeSafetyCenterIssueAction()
616 .enforceCallingOrSelfPermission( in clearAllSafetySourceDataForTests()
635 .enforceCallingOrSelfPermission( in setSafetyCenterConfigForTests()
[all …]
/packages/services/Car/service/src/com/android/car/telemetry/
DCarTelemetryService.java350 mContext.enforceCallingOrSelfPermission( in addMetricsConfig()
411 mContext.enforceCallingOrSelfPermission( in removeMetricsConfig()
431 mContext.enforceCallingOrSelfPermission( in removeAllMetricsConfigs()
454 mContext.enforceCallingOrSelfPermission( in getFinishedReport()
488 mContext.enforceCallingOrSelfPermission( in getAllFinishedReports()
518 mContext.enforceCallingOrSelfPermission( in setReportReadyListener()
538 mContext.enforceCallingOrSelfPermission( in clearReportReadyListener()
/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomServiceImpl.java1130 mContext.enforceCallingOrSelfPermission(READ_PRIVILEGED_PHONE_STATE,
1639 mContext.enforceCallingOrSelfPermission(
1769 mContext.enforceCallingOrSelfPermission(
1913 mContext.enforceCallingOrSelfPermission(
2325 mContext.enforceCallingOrSelfPermission(PERMISSION_HANDLE_CALL_INTENT,
2633 mContext.enforceCallingOrSelfPermission(READ_PRIVILEGED_PHONE_STATE,
2698 mContext.enforceCallingOrSelfPermission(Manifest.permission.ACCEPT_HANDOVER, in enforceAcceptHandoverPermission()
3054 mContext.enforceCallingOrSelfPermission(MODIFY_PHONE_STATE, message); in enforceModifyPermission()
3058 mContext.enforceCallingOrSelfPermission(permission, null); in enforcePermission()
3113 mContext.enforceCallingOrSelfPermission( in enforceCrossUserPermission()
[all …]
/packages/services/Telephony/tests/src/com/android/
DTestContext.java226 public void enforceCallingOrSelfPermission(String permission, String message) { in enforceCallingOrSelfPermission() method in TestContext
234 enforceCallingOrSelfPermission(permission, message); in enforcePermission()
239 enforceCallingOrSelfPermission(permission, message); in enforceCallingPermission()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dpsink/
DA2dpSinkService.java179 enforceCallingOrSelfPermission( in isA2dpPlaying()
315 enforceCallingOrSelfPermission( in connect()
462 enforceCallingOrSelfPermission( in setConnectionPolicy()
486 enforceCallingOrSelfPermission( in getConnectionPolicy()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pan/
DPanService.java432 enforceCallingOrSelfPermission( in getConnectionState()
454 enforceCallingOrSelfPermission( in setBluetoothTethering()
456 enforceCallingOrSelfPermission(TETHER_PRIVILEGED, "Need TETHER_PRIVILEGED permission"); in setBluetoothTethering()
512 enforceCallingOrSelfPermission( in setConnectionPolicy()
544 enforceCallingOrSelfPermission( in getConnectedDevices()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DPermissionUtils.java121 context.enforceCallingOrSelfPermission(CONNECTIVITY_USE_RESTRICTED_NETWORKS, message); in enforceRestrictedNetworkPermission()
133 context.enforceCallingOrSelfPermission(ACCESS_NETWORK_STATE, message); in enforceAccessNetworkStatePermission()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/csip/
DCsipSetCoordinatorService.java254 enforceCallingOrSelfPermission( in connect()
288 enforceCallingOrSelfPermission( in disconnect()
305 enforceCallingOrSelfPermission(BLUETOOTH_CONNECT, "Need BLUETOOTH_CONNECT permission"); in getConnectedDevices()
349 enforceCallingOrSelfPermission(BLUETOOTH_CONNECT, "Need BLUETOOTH_CONNECT permission"); in getDevicesMatchingConnectionStates()
432 enforceCallingOrSelfPermission(BLUETOOTH_CONNECT, "Need BLUETOOTH_CONNECT permission"); in getConnectionState()
457 enforceCallingOrSelfPermission( in setConnectionPolicy()
477 enforceCallingOrSelfPermission( in getConnectionPolicy()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbapclient/
DPbapClientService.java495 enforceCallingOrSelfPermission( in connect()
527 enforceCallingOrSelfPermission( in disconnect()
621 enforceCallingOrSelfPermission( in setConnectionPolicy()
652 enforceCallingOrSelfPermission( in getConnectionPolicy()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hearingaid/
DHearingAidService.java238 enforceCallingOrSelfPermission( in connect()
305 enforceCallingOrSelfPermission( in disconnect()
488 enforceCallingOrSelfPermission( in setConnectionPolicy()
516 enforceCallingOrSelfPermission( in getConnectionPolicy()
523 enforceCallingOrSelfPermission( in setVolume()
530 enforceCallingOrSelfPermission( in getHiSyncId()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/
DUwbServiceImplTest.java326 doThrow(new SecurityException()).when(mContext).enforceCallingOrSelfPermission( in testThrowSecurityExceptionWhenCalledWithoutUwbPrivilegedPermission()
338 doThrow(new SecurityException()).when(mContext).enforceCallingOrSelfPermission( in testThrowSecurityExceptionWhenSetUwbEnabledCalledWithoutUwbPrivilegedPermission()
634 doThrow(new SecurityException()).when(mContext).enforceCallingOrSelfPermission( in testThrowSecurityExceptionWhenGetDefaultChipIdWithoutUwbPrivilegedPermission()
651 doThrow(new SecurityException()).when(mContext).enforceCallingOrSelfPermission( in testThrowSecurityExceptionWhenGetChipIdsWithoutUwbPrivilegedPermission()
673 doThrow(new SecurityException()).when(mContext).enforceCallingOrSelfPermission( in testThrowSecurityExceptionWhenGetChipInfosWithoutUwbPrivilegedPermission()
838 doThrow(new SecurityException()).when(mContext).enforceCallingOrSelfPermission( in testThrowSecurityExceptionWhenSendDataWithoutUwbPrivilegedPermission()
925 doThrow(new SecurityException()).when(mContext).enforceCallingOrSelfPermission( in testGetUwbActivityEnergyInfoAsyncSecurityException()
/packages/services/Telephony/src/com/android/phone/
DImsRcsController.java849 mApp.enforceCallingOrSelfPermission( in enforceReadPrivilegedPermission()
858 mApp.enforceCallingOrSelfPermission( in enforceImsSingleRegistrationPermission()
868 mApp.enforceCallingOrSelfPermission(android.Manifest.permission.MODIFY_PHONE_STATE, null); in enforceModifyPermission()
877 mApp.enforceCallingOrSelfPermission( in enforceAccessUserCapabilityExchangePermission()
887 mApp.enforceCallingOrSelfPermission( in enforceReadContactsPermission()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java740 doThrow(SecurityException.class).when(mContext).enforceCallingOrSelfPermission( in setUp()
1474 .enforceCallingOrSelfPermission(eq(android.Manifest.permission.CHANGE_WIFI_STATE), in testSetWifiEnableWithoutChangeWifiStatePermission()
1611 .enforceCallingOrSelfPermission(eq(android.Manifest.permission.CHANGE_WIFI_STATE), in testSetWifiDisabledWithoutChangeWifiStatePermission()
1624 doThrow(new SecurityException()).when(mContext).enforceCallingOrSelfPermission( in testRestartWifiSubsystemWithoutPermission()
1643 .enforceCallingOrSelfPermission(eq(ACCESS_WIFI_STATE), in testRegisterSubsystemRestartThrowsSecurityExceptionOnMissingPermissions()
1659 .enforceCallingOrSelfPermission(eq(ACCESS_WIFI_STATE), in testUnregisterSubsystemRestartThrowsSecurityExceptionOnMissingPermissions()
1699 .enforceCallingOrSelfPermission(eq(android.Manifest.permission.NETWORK_SETTINGS), in testAddWifiNetworkStateChangedListener()
1992 .enforceCallingOrSelfPermission(eq(ACCESS_WIFI_STATE), in testGetWifiApEnabledPermissionDenied()
2149 .enforceCallingOrSelfPermission(eq(WIFI_UPDATE_COEX_UNSAFE_CHANNELS), in testSetCoexUnsafeChannelsThrowsSecurityExceptionOnMissingPermissions()
2165 .enforceCallingOrSelfPermission(eq(WIFI_ACCESS_COEX_UNSAFE_CHANNELS), in testRegisterCoexCallbackThrowsSecurityExceptionOnMissingPermissions()
[all …]
/packages/modules/Connectivity/remoteauth/service/java/com/android/server/remoteauth/
DRemoteAuthService.java68 context.enforceCallingOrSelfPermission( in checkPermission()
/packages/providers/ContactsKeysProvider/src/com/android/providers/contactkeys/util/
DE2eeContactKeysPermissions.java52 public static void enforceCallingOrSelfPermission(Context context, String permission) { in enforceCallingOrSelfPermission() method in E2eeContactKeysPermissions
/packages/modules/Connectivity/service-t/src/com/android/server/ethernet/
DEthernetServiceImpl.java206 mContext.enforceCallingOrSelfPermission( in enforceNetworkManagementPermission()
212 mContext.enforceCallingOrSelfPermission( in enforceManageTestNetworksPermission()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java794 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in setAudioRouteAllowed()
810 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getAudioRouteAllowed()
826 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in setAudioPolicy()
848 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in setAudioPolicyRemoteSupported()
863 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getAudioPolicyRemoteSupported()

1234