Home
last modified time | relevance | path

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

/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java493 int connectionState = sm.getConnectionState(device); in disconnect() local
494 if (connectionState != BluetoothProfile.STATE_CONNECTED in disconnect()
495 && connectionState != BluetoothProfile.STATE_CONNECTING) { in disconnect()
562 int connectionState = sm.getConnectionState(device); in startVoiceRecognition() local
563 if (connectionState != BluetoothProfile.STATE_CONNECTED) { in startVoiceRecognition()
577 int connectionState = sm.getConnectionState(device); in stopVoiceRecognition() local
578 if (connectionState != BluetoothProfile.STATE_CONNECTED) { in stopVoiceRecognition()
636 int connectionState = sm.getConnectionState(device); in holdCall() local
637 if (connectionState != BluetoothProfile.STATE_CONNECTED in holdCall()
638 && connectionState != BluetoothProfile.STATE_CONNECTING) { in holdCall()
[all …]
DHeadsetClientStateMachine.java1837 int connectionState; in getDevicesMatchingConnectionStates() local
1844 connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates()
1846 if (connectionState == state) { in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java702 int connectionState = stateMachine.getConnectionState(); in connect() local
703 if (connectionState == BluetoothProfile.STATE_CONNECTED in connect()
704 || connectionState == BluetoothProfile.STATE_CONNECTING) { in connect()
706 + " is already connected/connecting, connectionState=" + connectionState); in connect()
741 int connectionState = stateMachine.getConnectionState(); in disconnect() local
742 if (connectionState != BluetoothProfile.STATE_CONNECTED in disconnect()
743 && connectionState != BluetoothProfile.STATE_CONNECTING) { in disconnect()
745 + " not connected/connecting, connectionState=" + connectionState); in disconnect()
789 int connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates() local
791 if (connectionState == state) { in getDevicesMatchingConnectionStates()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkService.java260 int connectionState = stateMachine.getState(); in disconnect() local
261 if (connectionState == BluetoothProfile.STATE_DISCONNECTED in disconnect()
262 || connectionState == BluetoothProfile.STATE_DISCONNECTING) { in disconnect()
293 int connectionState; in getDevicesMatchingConnectionStates() local
295 connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates()
296 if (DBG) Log.d(TAG, "Device: " + device + "State: " + connectionState); in getDevicesMatchingConnectionStates()
298 if (connectionState == states[i]) { in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMapClientService.java172 int connectionState = mapStateMachine.getState(); in disconnect() local
173 if (connectionState != BluetoothProfile.STATE_CONNECTED in disconnect()
174 && connectionState != BluetoothProfile.STATE_CONNECTING) { in disconnect()
199 int connectionState; in getDevicesMatchingConnectionStates() local
201 connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates()
202 if (DBG) Log.d(TAG, "Device: " + device + "State: " + connectionState); in getDevicesMatchingConnectionStates()
204 if (connectionState == states[i]) { in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerService.java626 int connectionState = stateMachine.getState(); in disconnect() local
627 if (connectionState != BluetoothProfile.STATE_CONNECTED in disconnect()
628 && connectionState != BluetoothProfile.STATE_CONNECTING) { in disconnect()
670 int connectionState; in getDevicesMatchingConnectionStates() local
672 connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates()
673 if (DBG) Log.d(TAG, "Device: " + device + "State: " + connectionState); in getDevicesMatchingConnectionStates()
675 if (connectionState == states[i]) { in getDevicesMatchingConnectionStates()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DUtils.java53 public static int getConnectionStateSummary(int connectionState) { in getConnectionStateSummary() argument
54 switch (connectionState) { in getConnectionStateSummary()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DUtils.java55 public static int getConnectionStateSummary(int connectionState) { in getConnectionStateSummary() argument
56 switch (connectionState) { in getConnectionStateSummary()
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidService.java392 int connectionState = BluetoothProfile.STATE_DISCONNECTED; in getDevicesMatchingConnectionStates() local
395 connectionState = sm.getConnectionState(); in getDevicesMatchingConnectionStates()
398 if (connectionState == state) { in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapService.java570 int connectionState; in getDevicesMatchingConnectionStates() local
577 connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates()
579 if (connectionState == states[i]) { in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java387 int connectionState = BluetoothProfile.STATE_DISCONNECTED; in getDevicesMatchingConnectionStates() local
390 connectionState = sm.getConnectionState(); in getDevicesMatchingConnectionStates()
393 if (connectionState == state) { in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterProperties.java373 void setConnectionState(int connectionState) { in setConnectionState() argument
374 mConnectionState = connectionState; in setConnectionState()
DRemoteDevices.java642 int connectionState = newState == AbstractionLayer.BT_ACL_STATE_CONNECTED in aclStateChangeCallback() local
645 sAdapterService.obfuscateAddress(device), connectionState); in aclStateChangeCallback()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapService.java555 int connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates() local
557 if (connectionState == state) { in getDevicesMatchingConnectionStates()