Home
last modified time | relevance | path

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

12

/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterService.java124 static final String BLUETOOTH_PERM = android.Manifest.permission.BLUETOOTH; field in AdapterService
1388 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in isEnabled()
1393 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getState()
1433 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getAddress()
1441 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getUuids()
1447 enforceCallingOrSelfPermission(BLUETOOTH_PERM, in getName()
1466 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getScanMode()
1472 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in setScanMode()
1481 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDiscoverableTimeout()
1487 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in setDiscoverableTimeout()
[all …]
DRemoteDevices.java212 mAdapterService.sendBroadcast(intent, AdapterService.BLUETOOTH_PERM); in setAlias()
322 mAdapterService.sendBroadcast(intent, mAdapterService.BLUETOOTH_PERM); in devicePropertyChangedCallback()
344 mAdapterService.sendBroadcast(intent, mAdapterService.BLUETOOTH_PERM); in devicePropertyChangedCallback()
387 new String[] {AdapterService.BLUETOOTH_PERM, in deviceFoundCallback()
415 mAdapterService.sendBroadcast(intent, mAdapterService.BLUETOOTH_PERM); in aclStateChangeCallback()
431 mAdapterService.sendBroadcast(intent, mAdapterService.BLUETOOTH_PERM); in aclStateChangeCallback()
DAdapterProperties.java468 mService.BLUETOOTH_PERM); in sendConnectionStateChange()
601 mService.BLUETOOTH_PERM); in adapterPropertyChangedCallback()
612 intent, UserHandle.ALL, mService.BLUETOOTH_PERM); in adapterPropertyChangedCallback()
624 mService.sendBroadcast(intent, mService.BLUETOOTH_PERM); in adapterPropertyChangedCallback()
772 mService.sendBroadcast(intent, mService.BLUETOOTH_PERM); in discoveryStateChangeCallback()
777 mService.sendBroadcast(intent, mService.BLUETOOTH_PERM); in discoveryStateChangeCallback()
DProfileService.java40 public static final String BLUETOOTH_PERM = android.Manifest.permission.BLUETOOTH; field in ProfileService
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java379 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices()
384 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
389 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState()
410 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in startVoiceRecognition()
421 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in stopVoiceRecognition()
436 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in isAudioOn()
441 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in isAudioConnected()
474 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in connectAudio()
490 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in disconnectAudio()
533 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in sendVendorSpecificResultCode()
[all …]
DHeadsetStateMachine.java2315 HeadsetService.BLUETOOTH_PERM); in broadcastConnectionState()
2328 mService.sendBroadcastAsUser(intent, UserHandle.ALL, HeadsetService.BLUETOOTH_PERM); in broadcastAudioState()
2348 mService.sendBroadcastAsUser(intent, UserHandle.ALL, HeadsetService.BLUETOOTH_PERM); in broadcastVendorSpecificEventIntent()
3028 mService.sendBroadcast(intent, HeadsetService.BLUETOOTH_PERM); in sendIndicatorIntent()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java520 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices()
533 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
547 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState()
630 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in holdCall()
648 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in acceptCall()
667 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in rejectCall()
686 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in terminateCall()
706 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in enterPrivateMode()
726 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in dial()
750 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in sendDTMF()
[all …]
DHeadsetClientStateMachine.java243 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in sendCallChangedIntent()
1225 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1245 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1255 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1265 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1275 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1339 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1627 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in broadcastAudioState()
1687 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in broadcastConnectionState()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DGattService.java1507 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
1552 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in registerScanner()
1566 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in unregisterScanner()
1779 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in registerClient()
1788 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in unregisterClient()
1796 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in clientConnect()
1806 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in clientDisconnect()
1815 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in clientSetPreferredPhy()
1828 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in clientReadPhy()
1855 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerService.java279 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 …]
DAvrcpControllerStateMachine.java203 mContext.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
352 mContext.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
380 mContext.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1036 mContext.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in broadcastMetaDataChanged()
1045 mContext.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in broadcastFolderList()
1054 mContext.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in broadcastPlayBackStateChanged()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java214 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices()
219 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
224 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState()
271 enforceCallingOrSelfPermission(BLUETOOTH_PERM, in isA2dpPlaying()
278 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getCodecStatus()
284 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in setCodecConfigPreference()
290 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in enableOptionalCodecs()
296 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in disableOptionalCodecs()
DA2dpStateMachine.java822 mContext.sendBroadcast(intent, A2dpService.BLUETOOTH_PERM); in onCodecConfigChanged()
923 mContext.sendBroadcast(intent, A2dpService.BLUETOOTH_PERM); in broadcastAudioState()
968 mContext.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in onConnectionStateChanged()
/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/
DHealthService.java402 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/hid/
DHidService.java401 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in connect()
417 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in disconnect()
431 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
611 sendBroadcast(intent, BLUETOOTH_PERM); in broadcastConnectionState()
619 sendBroadcast(intent, BLUETOOTH_PERM); in broadcastHandshake()
627 sendBroadcast(intent, BLUETOOTH_PERM); in broadcastProtocolMode()
637 sendBroadcast(intent, BLUETOOTH_PERM); in broadcastReport()
645 sendBroadcast(intent, BLUETOOTH_PERM); in broadcastVirtualUnplugStatus()
DHidDevService.java543 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
661 sendBroadcast(intent, BLUETOOTH_PERM); in broadcastConnectionState()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkService.java155 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()
229 enforceCallingOrSelfPermission(BLUETOOTH_PERM, in isA2dpPlaying()
238 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getAudioConfig()
DA2dpSinkStateMachine.java764 mContext.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in broadcastAudioState()
774 mContext.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in broadcastAudioConfig()
831 mContext.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in onConnectionStateChanged()
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
DPanService.java287 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in connect()
298 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in disconnect()
365 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices()
372 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
520 sendBroadcast(intent, BLUETOOTH_PERM); in handlePanDeviceStateChange()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapService.java140 private static final String BLUETOOTH_PERM = android.Manifest.permission.BLUETOOTH; field in BluetoothPbapService
735 sendBroadcast(intent, BLUETOOTH_PERM); in setState()
904 BluetoothPbapService service = getService(BLUETOOTH_PERM); in getState()
912 BluetoothPbapService service = getService(BLUETOOTH_PERM); in getClient()
919 BluetoothPbapService service = getService(BLUETOOTH_PERM); in isConnected()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPbapClientService.java322 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()
DPbapClientStateMachine.java331 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in onConnectionStateChanged()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapService.java468 sendBroadcast(intent, BLUETOOTH_PERM); in setState()
642 sendBroadcast(intent, BLUETOOTH_PERM); in sendCancelUserConfirmationIntent()
651 sendBroadcast(timeoutIntent, BLUETOOTH_PERM); in sendShutdownMessage()
784 … mService.enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getService()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapService.java99 private static final String BLUETOOTH_PERM = android.Manifest.permission.BLUETOOTH; field in BluetoothMapService
489 sendBroadcast(intent, BLUETOOTH_PERM); in setState()
960 sendBroadcast(timeoutIntent, BLUETOOTH_PERM); in sendShutdownMessage()
1148 mService.enforceCallingOrSelfPermission(BLUETOOTH_PERM,"Need BLUETOOTH permission"); in getService()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMapClientService.java45 private static final String BLUETOOTH_PERM = android.Manifest.permission.BLUETOOTH; field in MapClientService
223 mService.enforceCallingOrSelfPermission(BLUETOOTH_PERM, in getService()

12