/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | AdapterService.java | 1396 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in isEnabled() 1401 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getState() 1415 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH ADMIN permission"); in enable() 1432 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH ADMIN permission"); in disable() 1441 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getAddress() 1442 enforceCallingOrSelfPermission(LOCAL_MAC_ADDRESS_PERM, "Need LOCAL_MAC_ADDRESS permission"); in getAddress() 1450 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getUuids() 1456 enforceCallingOrSelfPermission(BLUETOOTH_PERM, in getName() 1468 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in setName() 1475 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getScanMode() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetService.java | 354 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH ADMIN permission"); in connect() 373 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH ADMIN permission"); in disconnect() 388 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices() 393 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates() 398 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState() 403 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH_ADMIN permission"); in setPriority() 411 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH_ADMIN permission"); in getPriority() 419 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in startVoiceRecognition() 430 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in stopVoiceRecognition() 445 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in isAudioOn() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
D | A2dpService.java | 186 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in connect() 210 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in disconnect() 223 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices() 228 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates() 233 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState() 238 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in setPriority() 248 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in getPriority() 280 enforceCallingOrSelfPermission(BLUETOOTH_PERM, in isA2dpPlaying() 287 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getCodecStatus() 293 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in setCodecConfigPreference() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientService.java | 494 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in connect() 515 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in disconnect() 534 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices() 547 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates() 561 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState() 570 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in setPriority() 582 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in getPriority() 611 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH_ADMIN permission"); in connectAudio() 629 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH_ADMIN permission"); in disconnectAudio() 644 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in holdCall() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkService.java | 124 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in connect() 142 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in disconnect() 155 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices() 160 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates() 165 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState() 170 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in setPriority() 182 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in getPriority() 229 enforceCallingOrSelfPermission(BLUETOOTH_PERM, in isA2dpPlaying() 238 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getAudioConfig()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | GattService.java | 1520 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates() 1565 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in registerScanner() 1587 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in unregisterScanner() 1794 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in registerClient() 1803 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in unregisterClient() 1812 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in clientConnect() 1822 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in clientDisconnect() 1831 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in clientSetPreferredPhy() 1844 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in clientReadPhy() 1871 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/ |
D | HidService.java | 435 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in connect() 451 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in disconnect() 465 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates() 481 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in setPriority() 491 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in getPriority() 501 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in getProtocolMode() 515 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in virtualUnplug() 527 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in setProtocolMode() 541 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in getReport() 559 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, in setReport() [all …]
|
D | HidDevService.java | 543 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerService.java | 279 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices() 291 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates() 302 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState() 317 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in sendGroupNavigationCmd() 335 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in sendPassThroughCmd() 356 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getMetaData() 389 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getPlaybackState() 408 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getPlayerSettings() 487 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getNowPlayingList() 517 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getFolderList() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/ |
D | PbapClientService.java | 287 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH ADMIN permission"); in connect() 309 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH ADMIN permission"); in disconnect() 322 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices() 328 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates() 345 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState() 356 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH_ADMIN permission"); in setPriority() 368 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH_ADMIN permission"); in getPriority()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/ |
D | HealthService.java | 402 enforceCallingOrSelfPermission(BLUETOOTH_PERM, in registerAppConfiguration() 421 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in unregisterAppConfiguration() 433 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in connectChannelToSource() 439 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in connectChannelToSink() 445 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in disconnectChannel() 458 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getMainChannelFd() 473 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getHealthDeviceConnectionState() 478 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedHealthDevices() 485 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getHealthDevicesMatchingConnectionStates()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/ |
D | PanService.java | 288 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in connect() 299 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in disconnect() 328 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH_ADMIN permission"); in setBluetoothTethering() 358 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH_ADMIN permission"); in setPriority() 370 enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH_ADMIN permission"); in getPriority() 377 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices() 384 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | TelecomServiceImplTest.java | 228 .enforceCallingOrSelfPermission(eq(READ_PRIVILEGED_PHONE_STATE), anyString()); in testGetDefaultOutgoingPhoneAccountFailure() 256 doThrow(new SecurityException()).when(mContext).enforceCallingOrSelfPermission( in testSetUserSelectedOutgoingPhoneAccountFailure() 300 doThrow(new SecurityException()).when(mContext).enforceCallingOrSelfPermission( in testGetCallCapablePhoneAccountsFailure() 432 .enforceCallingOrSelfPermission(eq(REGISTER_SIM_SUBSCRIPTION), in testRegisterPhoneAccountWithoutSimSubscriptionPermissionFailure() 672 .when(mContext).enforceCallingOrSelfPermission(eq(CALL_PHONE), anyString()); in testPlaceCallFailure() 706 doThrow(new SecurityException()).when(mContext).enforceCallingOrSelfPermission( in testSetDefaultDialerNoModifyPhoneStatePermission() 713 doThrow(new SecurityException()).when(mContext).enforceCallingOrSelfPermission( in testSetDefaultDialerNoWriteSecureSettingsPermission() 875 doThrow(new SecurityException()).when(mContext).enforceCallingOrSelfPermission( in testIsInCallFail() 900 doThrow(new SecurityException()).when(mContext).enforceCallingOrSelfPermission( in testIsInManagedCallFail()
|
D | ComponentContextFixture.java | 313 public void enforceCallingOrSelfPermission(String permission, String message) { in enforceCallingOrSelfPermission() method
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | TelecomServiceImpl.java | 1049 mContext.enforceCallingOrSelfPermission( 1158 mContext.enforceCallingOrSelfPermission(Manifest.permission.MANAGE_OWN_CALLS, 1584 mContext.enforceCallingOrSelfPermission(MODIFY_PHONE_STATE, message); in enforceModifyPermission() 1588 mContext.enforceCallingOrSelfPermission(permission, null); in enforcePermission() 1609 mContext.enforceCallingOrSelfPermission( in enforceCrossUserPermission() 1631 mContext.enforceCallingOrSelfPermission(READ_PRIVILEGED_PHONE_STATE, message); in canReadPhoneState() 1637 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, message); in canReadPhoneState() 1662 mContext.enforceCallingOrSelfPermission(CALL_PHONE, message); in canCallPhone()
|
D | BluetoothPhoneServiceImpl.java | 555 mContext.enforceCallingOrSelfPermission( in enforceModifyPermission()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | NfcPermissions.java | 28 context.enforceCallingOrSelfPermission(ADMIN_PERM, ADMIN_PERM_ERROR); in enforceAdminPermissions() 33 context.enforceCallingOrSelfPermission(NFC_PERMISSION, NFC_PERM_ERROR); in enforceUserPermissions()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/ |
D | MapClientService.java | 223 mService.enforceCallingOrSelfPermission(BLUETOOTH_PERM, in getService() 294 mService.enforceCallingOrSelfPermission(Manifest.permission.SEND_SMS, in sendMessage() 303 mService.enforceCallingOrSelfPermission(Manifest.permission.READ_SMS, in getUnreadMessages()
|
/packages/services/Telephony/src/com/android/phone/ |
D | PhoneInterfaceManager.java | 1701 mApp.enforceCallingOrSelfPermission( in enableLocationUpdatesForSubscriber() 1716 mApp.enforceCallingOrSelfPermission( in disableLocationUpdatesForSubscriber() 1814 mApp.enforceCallingOrSelfPermission(android.Manifest.permission.MODIFY_PHONE_STATE, null); in enforceModifyPermission() 1852 mApp.enforceCallingOrSelfPermission(android.Manifest.permission.CALL_PHONE, null); in enforceCallPermission() 1856 mApp.enforceCallingOrSelfPermission( in enforceConnectivityInternalPermission() 2797 mApp.enforceCallingOrSelfPermission(android.Manifest.permission.ACCESS_NETWORK_STATE, in getDataEnabled() 3256 mApp.enforceCallingOrSelfPermission( in canReadPhoneState() 3262 mApp.enforceCallingOrSelfPermission(android.Manifest.permission.READ_PHONE_STATE, in canReadPhoneState() 3290 mApp.enforceCallingOrSelfPermission(android.Manifest.permission.READ_SMS, message); in canReadPhoneNumber() 3302 mApp.enforceCallingOrSelfPermission(android.Manifest.permission.READ_PHONE_NUMBERS, in canReadPhoneNumber() [all …]
|
D | CarrierConfigLoader.java | 663 mContext.enforceCallingOrSelfPermission(READ_PRIVILEGED_PHONE_STATE, null); in getConfigForSubId() 666 mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, null); in getConfigForSubId() 696 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MODIFY_PHONE_STATE, in notifyConfigChangedForSubId() 709 mContext.enforceCallingOrSelfPermission( in updateConfigForPhoneId()
|
D | LocationAccessPolicy.java | 60 context.enforceCallingOrSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION, message); in canAccessCellLocation()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadProvider.java | 617 getContext().enforceCallingOrSelfPermission( in insert() 806 getContext().enforceCallingOrSelfPermission( in checkFileUriDestination() 835 getContext().enforceCallingOrSelfPermission(android.Manifest.permission.INTERNET, in checkInsertPermissions() 965 getContext().enforceCallingOrSelfPermission( in query()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/ |
D | ContactsPermissions.java | 57 public static void enforceCallingOrSelfPermission(Context context, String permission) { in enforceCallingOrSelfPermission() method in ContactsPermissions
|
/packages/apps/Bluetooth/src/com/android/bluetooth/ |
D | Utils.java | 288 context.enforceCallingOrSelfPermission(android.Manifest.permission.BLUETOOTH_ADMIN, in enforceAdminPermission()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsActor.java | 549 public void enforceCallingOrSelfPermission(String permission, String message) { in enforceCallingOrSelfPermission() method in ContactsActor.RestrictionMockContext
|