Home
last modified time | relevance | path

Searched refs:connectionState (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java447 int connectionState = mStateMachine.getConnectionState(device); in connect() local
448 if (connectionState == BluetoothProfile.STATE_CONNECTED || in connect()
449 connectionState == BluetoothProfile.STATE_CONNECTING) { in connect()
460 int connectionState = mStateMachine.getConnectionState(device); in disconnect() local
461 if (connectionState != BluetoothProfile.STATE_CONNECTED && in disconnect()
462 connectionState != BluetoothProfile.STATE_CONNECTING) { in disconnect()
509 int connectionState = mStateMachine.getConnectionState(device); in startVoiceRecognition() local
510 if (connectionState != BluetoothProfile.STATE_CONNECTED && in startVoiceRecognition()
511 connectionState != BluetoothProfile.STATE_CONNECTING) { in startVoiceRecognition()
523 int connectionState = mStateMachine.getConnectionState(device); in stopVoiceRecognition() local
[all …]
DHeadsetClientStateMachine.java2364 int connectionState; in getDevicesMatchingConnectionStates() local
2371 connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates()
2373 if (connectionState == state) { in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java338 int connectionState = mStateMachine.getConnectionState(device); in connect() local
339 Log.d(TAG,"connectionState = " + connectionState); in connect()
340 if (connectionState == BluetoothProfile.STATE_CONNECTED || in connect()
341 connectionState == BluetoothProfile.STATE_CONNECTING) { in connect()
352 int connectionState = mStateMachine.getConnectionState(device); in disconnect() local
353 if (connectionState != BluetoothProfile.STATE_CONNECTED && in disconnect()
354 connectionState != BluetoothProfile.STATE_CONNECTING) { in disconnect()
398 int connectionState = mStateMachine.getConnectionState(device); in startVoiceRecognition() local
399 if (connectionState != BluetoothProfile.STATE_CONNECTED && in startVoiceRecognition()
400 connectionState != BluetoothProfile.STATE_CONNECTING) { in startVoiceRecognition()
[all …]
DHeadsetStateMachine.java2306 int connectionState; in getDevicesMatchingConnectionStates() local
2313 connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates()
2315 if (connectionState == states[i]) { in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpSinkService.java108 int connectionState = mStateMachine.getConnectionState(device); in connect() local
109 if (connectionState == BluetoothProfile.STATE_CONNECTED || in connect()
110 connectionState == BluetoothProfile.STATE_CONNECTING) { in connect()
121 int connectionState = mStateMachine.getConnectionState(device); in disconnect() local
122 if (connectionState != BluetoothProfile.STATE_CONNECTED && in disconnect()
123 connectionState != BluetoothProfile.STATE_CONNECTING) { in disconnect()
DA2dpService.java142 int connectionState = mStateMachine.getConnectionState(device); in connect() local
143 if (connectionState == BluetoothProfile.STATE_CONNECTED || in connect()
144 connectionState == BluetoothProfile.STATE_CONNECTING) { in connect()
155 int connectionState = mStateMachine.getConnectionState(device); in disconnect() local
156 if (connectionState != BluetoothProfile.STATE_CONNECTED && in disconnect()
157 connectionState != BluetoothProfile.STATE_CONNECTING) { in disconnect()
DA2dpSinkStateMachine.java662 int connectionState; in getDevicesMatchingConnectionStates() local
669 connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates()
671 if (connectionState == states[i]) { in getDevicesMatchingConnectionStates()
DA2dpStateMachine.java694 int connectionState; in getDevicesMatchingConnectionStates() local
701 connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates()
703 if (connectionState == states[i]) { in getDevicesMatchingConnectionStates()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DUtils.java45 public static int getConnectionStateSummary(int connectionState) { in getConnectionStateSummary() argument
46 switch (connectionState) { in getConnectionStateSummary()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapService.java520 int connectionState; in getDevicesMatchingConnectionStates() local
527 connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates()
529 if (connectionState == states[i]) { in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapService.java494 int connectionState; in getDevicesMatchingConnectionStates() local
501 connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates()
503 if (connectionState == states[i]) { in getDevicesMatchingConnectionStates()