Home
last modified time | relevance | path

Searched refs:BLUETOOTH_PERM (Results 1 – 20 of 20) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterService.java114 static final String BLUETOOTH_PERM = android.Manifest.permission.BLUETOOTH; field in AdapterService
1156 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in isEnabled()
1162 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getState()
1204 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getAddress()
1212 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getUuids()
1218 enforceCallingOrSelfPermission(BLUETOOTH_PERM, in getName()
1237 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getScanMode()
1243 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in setScanMode()
1252 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDiscoverableTimeout()
1258 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in setDiscoverableTimeout()
[all …]
DAdapterProperties.java366 mService.BLUETOOTH_PERM); in sendConnectionStateChange()
499 mService.BLUETOOTH_PERM); in adapterPropertyChangedCallback()
516 mService.sendBroadcast(intent, mService.BLUETOOTH_PERM); in adapterPropertyChangedCallback()
618 mService.sendBroadcast(intent, mService.BLUETOOTH_PERM); in discoveryStateChangeCallback()
622 mService.sendBroadcast(intent, mService.BLUETOOTH_PERM); in discoveryStateChangeCallback()
DRemoteDevices.java277 mAdapterService.sendBroadcast(intent, mAdapterService.BLUETOOTH_PERM); in devicePropertyChangedCallback()
299 mAdapterService.sendBroadcast(intent, mAdapterService.BLUETOOTH_PERM); in devicePropertyChangedCallback()
340 mAdapterService.sendBroadcast(intent, mAdapterService.BLUETOOTH_PERM); in deviceFoundCallback()
365 mAdapterService.sendBroadcast(intent, mAdapterService.BLUETOOTH_PERM); in aclStateChangeCallback()
DProfileService.java42 public static final String BLUETOOTH_PERM = android.Manifest.permission.BLUETOOTH; field in ProfileService
DBondStateMachine.java321 AdapterService.BLUETOOTH_PERM); in sendIntent()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java471 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices()
476 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
481 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState()
508 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in startVoiceRecognition()
519 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in stopVoiceRecognition()
568 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in holdCall()
580 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in acceptCall()
593 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in rejectCall()
606 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in terminateCall()
620 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in enterPrivateMode()
[all …]
DHeadsetClientStateMachine.java318 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in sendCallChangedIntent()
1745 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1765 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1776 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1787 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1798 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1810 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1838 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1890 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1962 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DGattService.java1265 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
1338 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in registerClient()
1347 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in unregisterClient()
1355 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in clientConnect()
1362 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in clientDisconnect()
1393 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices()
1403 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in refreshDevice()
1410 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in discoverServices()
1424 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in readCharacteristic()
1444 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in writeCharacteristic()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java363 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices()
368 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
373 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState()
397 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in startVoiceRecognition()
408 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in stopVoiceRecognition()
423 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in isAudioOn()
428 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in isAudioConnected()
453 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in connectAudio()
466 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in disconnectAudio()
513 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in sendVendorSpecificResultCode()
[all …]
DHeadsetStateMachine.java2315 HeadsetService.BLUETOOTH_PERM); in broadcastConnectionState()
2329 HeadsetService.BLUETOOTH_PERM); in broadcastAudioState()
2355 HeadsetService.BLUETOOTH_PERM); in broadcastVendorSpecificEventIntent()
/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/
DHealthService.java405 enforceCallingOrSelfPermission(BLUETOOTH_PERM, in registerAppConfiguration()
418 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in unregisterAppConfiguration()
430 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in connectChannelToSource()
436 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in connectChannelToSink()
442 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in disconnectChannel()
455 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getMainChannelFd()
470 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getHealthDeviceConnectionState()
475 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedHealthDevices()
482 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getHealthDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidService.java399 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in connect()
415 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in disconnect()
429 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
618 sendBroadcast(intent, BLUETOOTH_PERM); in broadcastConnectionState()
626 sendBroadcast(intent, BLUETOOTH_PERM); in broadcastHandshake()
634 sendBroadcast(intent, BLUETOOTH_PERM); in broadcastProtocolMode()
644 sendBroadcast(intent, BLUETOOTH_PERM); in broadcastReport()
652 sendBroadcast(intent, BLUETOOTH_PERM); in broadcastVirtualUnplugStatus()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpControllerService.java136 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices()
141 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
151 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState()
162 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in sendPassThroughCmd()
251 sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in onConnectionStateChanged()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpSinkService.java132 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices()
137 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
142 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState()
147 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getAudioConfig()
DA2dpService.java151 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices()
156 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
161 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState()
202 enforceCallingOrSelfPermission(BLUETOOTH_PERM, in isA2dpPlaying()
DA2dpSinkStateMachine.java701 mContext.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in broadcastAudioState()
711 mContext.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in broadcastAudioConfig()
767 mContext.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in onConnectionStateChanged()
DA2dpStateMachine.java695 mContext.sendBroadcast(intent, A2dpService.BLUETOOTH_PERM); in broadcastAudioState()
739 mContext.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in onConnectionStateChanged()
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
DPanService.java258 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in connect()
269 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in disconnect()
314 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices()
321 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
464 sendBroadcast(intent, BLUETOOTH_PERM); in handlePanDeviceStateChange()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapService.java128 private static final String BLUETOOTH_PERM = android.Manifest.permission.BLUETOOTH; field in BluetoothPbapService
757 sendBroadcast(intent, BLUETOOTH_PERM); in setState()
833 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission");
845 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission");
858 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission");
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapService.java105 private static final String BLUETOOTH_PERM = android.Manifest.permission.BLUETOOTH; field in BluetoothMapService
438 sendBroadcast(intent, BLUETOOTH_PERM); in setState()
856 sendBroadcast(timeoutIntent, BLUETOOTH_PERM); in sendShutdownMessage()
977 sendBroadcast(timeoutIntent, BLUETOOTH_PERM); in onReceive()
1002 … mService.enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getService()