Home
last modified time | relevance | path

Searched refs:STATE_CONNECTED (Results 1 – 25 of 58) sorted by relevance

123

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBluetoothDeviceManagerTest.java85 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device1)); in testSingleDeviceConnectAndDisconnect()
98 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device1)); in testMultiDeviceConnectAndDisconnect()
100 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2)); in testMultiDeviceConnectAndDisconnect()
104 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device3)); in testMultiDeviceConnectAndDisconnect()
106 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2)); in testMultiDeviceConnectAndDisconnect()
120 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device1)); in testExclusionaryGetRecentDevices()
122 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2)); in testExclusionaryGetRecentDevices()
126 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device3)); in testExclusionaryGetRecentDevices()
128 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2)); in testExclusionaryGetRecentDevices()
137 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device1)); in testHeadsetServiceDisconnect()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothSummaryUpdaterTest.java117 mAdapterConnectionState[0] = BluetoothAdapter.STATE_CONNECTED; in register_true_shouldSendSummaryChange()
130 mAdapterConnectionState[0] = BluetoothAdapter.STATE_CONNECTED; in onBluetoothStateChanged_btDisabled_shouldSendDisabledSummary()
142 mAdapterConnectionState[0] = BluetoothAdapter.STATE_CONNECTED; in onBluetoothStateChanged_btEnabled_connected_shouldSendConnectedSummary()
155 mAdapterConnectionState[0] = BluetoothAdapter.STATE_CONNECTED; in onBluetoothStateChanged_btEnabled_connectedMisMatch_shouldSendNotConnected()
188 mAdapterConnectionState[0] = BluetoothAdapter.STATE_CONNECTED; in onBluetoothStateChanged_ConnectedDisabledEnabled_shouldSendDisconnectedSummary()
191 BluetoothAdapter.STATE_CONNECTED); in onBluetoothStateChanged_ConnectedDisabledEnabled_shouldSendDisconnectedSummary()
214 mAdapterConnectionState[0] = BluetoothAdapter.STATE_CONNECTED; in onConnectionStateChanged_connected_shouldSendConnectedMessage()
219 BluetoothAdapter.STATE_CONNECTED); in onConnectionStateChanged_connected_shouldSendConnectedMessage()
233 BluetoothAdapter.STATE_CONNECTED); in onConnectionStateChanged_inconsistentState_shouldSendDisconnectedMessage()
241 mAdapterConnectionState[0] = BluetoothAdapter.STATE_CONNECTED; in onConnectionStateChanged_noBondedDevice_shouldSendDisconnectedMessage()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java524 if (connectionState != BluetoothProfile.STATE_CONNECTED && in disconnect()
539 if (sm != null && sm.getConnectionState(bd) == BluetoothProfile.STATE_CONNECTED) { in getConnectedDevices()
652 if (connectionState != BluetoothProfile.STATE_CONNECTED && in holdCall()
675 if (connectionState == BluetoothProfile.STATE_CONNECTED) { in acceptCall()
689 if (connectionState != BluetoothProfile.STATE_CONNECTED) { in acceptCall()
707 if (connectionState != BluetoothProfile.STATE_CONNECTED && in rejectCall()
726 if (connectionState != BluetoothProfile.STATE_CONNECTED && in terminateCall()
746 if (connectionState != BluetoothProfile.STATE_CONNECTED && in enterPrivateMode()
766 if (connectionState != BluetoothProfile.STATE_CONNECTED && in dial()
790 if (connectionState != BluetoothProfile.STATE_CONNECTED && in sendDTMF()
[all …]
DHeadsetClientStateMachine.java989 broadcastConnectionState(mCurrentDevice, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent()
1093 BluetoothProfile.STATE_CONNECTED); in processMessage()
1096 broadcastConnectionState(dev, BluetoothProfile.STATE_CONNECTED, in processMessage()
1385 BluetoothProfile.STATE_CONNECTED); in processConnectionEvent()
1570 BluetoothProfile.STATE_CONNECTED); in processConnectionEvent()
1635 return BluetoothProfile.STATE_CONNECTED; in getConnectionState()
1676 if (newState == BluetoothProfile.STATE_CONNECTED) { in broadcastConnectionState()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterProperties.java498 state == BluetoothProfile.STATE_CONNECTED || in validateProfileConnectionState()
508 case BluetoothProfile.STATE_CONNECTED: in convertToAdapterState()
509 return BluetoothAdapter.STATE_CONNECTED; in convertToAdapterState()
521 case BluetoothProfile.STATE_CONNECTED: in isNormalStateTransition()
526 || (nextState == BluetoothProfile.STATE_CONNECTED); in isNormalStateTransition()
541 case BluetoothProfile.STATE_CONNECTED: in updateCountersAndCheckForConnectionStateChange()
561 case BluetoothProfile.STATE_CONNECTED: in updateCountersAndCheckForConnectionStateChange()
604 } else if (newState == BluetoothProfile.STATE_CONNECTED || in updateProfileConnectionState()
606 currHashState != BluetoothProfile.STATE_CONNECTED)) { in updateProfileConnectionState()
613 if (currHashState == BluetoothProfile.STATE_CONNECTED || in updateProfileConnectionState()
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidService.java362 new int[] {BluetoothProfile.STATE_CONNECTED}); in getConnectedDevices()
504 if (state != BluetoothInputDevice.STATE_CONNECTED) { in getProtocolMode()
518 if (state != BluetoothInputDevice.STATE_CONNECTED) { in virtualUnplug()
530 if (state != BluetoothInputDevice.STATE_CONNECTED) { in setProtocolMode()
544 if (state != BluetoothInputDevice.STATE_CONNECTED) { in getReport()
562 if (state != BluetoothInputDevice.STATE_CONNECTED) { in setReport()
580 if (state != BluetoothInputDevice.STATE_CONNECTED) { in sendData()
590 if (state != BluetoothInputDevice.STATE_CONNECTED) { in getIdleTime()
601 if (state != BluetoothInputDevice.STATE_CONNECTED) { in setIdleTime()
743 return BluetoothProfile.STATE_CONNECTED; in convertHalState()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStateMachine.java272 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent()
405 broadcastConnectionState(mCurrentDevice, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent()
417 broadcastConnectionState(mTargetDevice, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent()
426 broadcastConnectionState(mIncomingDevice, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent()
437 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent()
545 BluetoothProfile.STATE_CONNECTED); in processMessage()
547 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED, in processMessage()
607 BluetoothProfile.STATE_CONNECTED); in processConnectionEvent()
675 return BluetoothProfile.STATE_CONNECTED; in getConnectionState()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpStateMachine.java359 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent()
495 broadcastConnectionState(mCurrentDevice, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent()
506 broadcastConnectionState(mTargetDevice, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent()
514 broadcastConnectionState(mIncomingDevice, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent()
532 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent()
631 BluetoothProfile.STATE_CONNECTED); in processMessage()
647 BluetoothProfile.STATE_CONNECTED); in processMessage()
649 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED, in processMessage()
684 BluetoothProfile.STATE_CONNECTED); in processConnectionEvent()
758 return BluetoothProfile.STATE_CONNECTED; in getConnectionState()
DA2dpService.java61 if (state != BluetoothProfile.STATE_CONNECTED || device == null) { in onReceive()
200 if (connectionState == BluetoothProfile.STATE_CONNECTED || in connect()
213 if (connectionState != BluetoothProfile.STATE_CONNECTED && in disconnect()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java361 if (connectionState == BluetoothProfile.STATE_CONNECTED in connect()
376 if (connectionState != BluetoothProfile.STATE_CONNECTED in disconnect()
421 if (connectionState != BluetoothProfile.STATE_CONNECTED in startVoiceRecognition()
435 if (connectionState != BluetoothProfile.STATE_CONNECTED in stopVoiceRecognition()
520 if (connectionState != BluetoothProfile.STATE_CONNECTED in stopScoUsingVirtualVoiceCall()
548 if (connectionState != BluetoothProfile.STATE_CONNECTED) { in sendVendorSpecificResultCode()
596 if (connectionState != BluetoothProfile.STATE_CONNECTED in bindResponse()
DHeadsetStateMachine.java665 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent()
720 device, BluetoothProfile.STATE_CONNECTED, previousConnectionState); in processConnectionEvent()
779 broadcastConnectionState(mCurrentDevice, BluetoothProfile.STATE_CONNECTED, in processMultiHFConnected()
822 BluetoothProfile.STATE_CONNECTED); in processMessage()
864 BluetoothProfile.STATE_CONNECTED); in processMessage()
867 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED, in processMessage()
1056 BluetoothProfile.STATE_CONNECTED); in processConnectionEvent()
1065 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent()
1157 broadcastConnectionState(mCurrentDevice, BluetoothProfile.STATE_CONNECTED, in processMultiHFConnected()
1207 BluetoothProfile.STATE_CONNECTED); in processMessage()
[all …]
/packages/services/Car/service/src/com/android/car/
DBluetoothDevicesInfo.java407 if (devInfo.getConnectionState() == BluetoothProfile.STATE_CONNECTED) { in getConnectedDevicesLocked()
431 if (devInfo.getConnectionState() == BluetoothProfile.STATE_CONNECTED) { in removeDeviceLocked()
556 if (getCurrentConnectionStateLocked(device) != BluetoothProfile.STATE_CONNECTED) { in updateConnectionStatusLocked()
564 setConnectionStateLocked(device, BluetoothProfile.STATE_CONNECTED); in updateConnectionStatusLocked()
582 if (getCurrentConnectionStateLocked(device) == BluetoothProfile.STATE_CONNECTED) { in updateConnectionStatusLocked()
/packages/services/Car/car-support-lib/src/android/support/car/
DCar.java220 private static final int STATE_CONNECTED = 2; field in Car
229 mConnectionState = STATE_CONNECTED;
349 mConnectionState = STATE_CONNECTED; in Car()
388 return mConnectionState == STATE_CONNECTED; in isConnected()
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
DPanService.java379 new int[] {BluetoothProfile.STATE_CONNECTED}); in getConnectedDevices()
433 return BluetoothProfile.STATE_CONNECTED; in convertHalState()
482 if (state == BluetoothProfile.STATE_CONNECTED) { in handlePanDeviceStateChange()
513 if (state == BluetoothProfile.STATE_CONNECTED) { in handlePanDeviceStateChange()
516 (prevState == BluetoothProfile.STATE_CONNECTED || in handlePanDeviceStateChange()
618 if (getPanDeviceConnectionState(device) == BluetoothProfile.STATE_CONNECTED) { in getConnectedPanDevices()
/packages/apps/Settings/src/com/android/settings/vpn2/
DLegacyVpnPreference.java26 import static com.android.internal.net.LegacyVpnInfo.STATE_CONNECTED;
68 if (mState != STATE_CONNECTED && another.getState() == AppPreference.STATE_CONNECTED) { in compareTo()
DAppPreference.java34 public static final int STATE_CONNECTED = LegacyVpnInfo.STATE_CONNECTED; field in AppPreference
/packages/apps/Nfc/src/com/android/nfc/handover/
DBluetoothPeripheralHandover.java366 BluetoothProfile.STATE_CONNECTED) { in nextStepConnect()
376 if (mA2dp.getConnectionState(mDevice) != BluetoothProfile.STATE_CONNECTED) { in nextStepConnect()
465 if (state == BluetoothProfile.STATE_CONNECTED) { in handleIntent()
479 if (state == BluetoothProfile.STATE_CONNECTED) { in handleIntent()
493 if (state == BluetoothProfile.STATE_CONNECTED) { in handleIntent()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapService.java489 case BluetoothSap.STATE_CONNECTED: in disconnect()
505 if (mState == BluetoothSap.STATE_CONNECTED && mRemoteDevice != null) { in getConnectedDevices()
535 if (getState() == BluetoothSap.STATE_CONNECTED && getRemoteDevice().equals(device)) { in getConnectionState()
536 return BluetoothProfile.STATE_CONNECTED; in getConnectionState()
819 return (service.getState() == BluetoothSap.STATE_CONNECTED in isConnected()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapService.java265 setState(BluetoothMap.STATE_CONNECTED); in startObexServerSessions()
508 case BluetoothMap.STATE_CONNECTED: in disconnectMap()
523 if (mState == BluetoothMap.STATE_CONNECTED && mRemoteDevice != null) { in getConnectedDevices()
553 if (getState() == BluetoothMap.STATE_CONNECTED && getRemoteDevice().equals(device)) { in getConnectionState()
554 return BluetoothProfile.STATE_CONNECTED; in getConnectionState()
1183 return service.getState() == BluetoothMap.STATE_CONNECTED in isConnected()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMapClientService.java94 return getDevicesMatchingConnectionStates(new int[]{BluetoothAdapter.STATE_CONNECTED}); in getConnectedDevices()
176 if (mMceStateMachine.getState() == BluetoothAdapter.STATE_CONNECTED) { in stop()
239 return service.getConnectionState(device) == BluetoothProfile.STATE_CONNECTED; in isConnected()
DMceStateMachine.java172 return BluetoothProfile.STATE_CONNECTED; in getState()
379 BluetoothProfile.STATE_CONNECTED); in enter()
456 mPreviousState = BluetoothProfile.STATE_CONNECTED; in exit()
623 if (getDevice().equals(device) && getState() == BluetoothProfile.STATE_CONNECTED) { in onReceive()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPbapClientStateMachine.java288 BluetoothProfile.STATE_CONNECTED); in enter()
289 mMostRecentState = BluetoothProfile.STATE_CONNECTED; in enter()
362 return BluetoothProfile.STATE_CONNECTED; in getConnectionState()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerService.java294 if (states[i] == BluetoothProfile.STATE_CONNECTED && mConnectedDevice != null) { in getDevicesMatchingConnectionStates()
303 return (mConnectedDevice != null ? BluetoothProfile.STATE_CONNECTED : in getConnectionState()
762 int oldState = (device.equals(mConnectedDevice) ? BluetoothProfile.STATE_CONNECTED : in onConnectionStateChanged()
764 int newState = (rc_connected ? BluetoothProfile.STATE_CONNECTED : in onConnectionStateChanged()
778 } else if (!rc_connected && oldState == BluetoothProfile.STATE_CONNECTED) { in onConnectionStateChanged()
/packages/services/Car/car-lib/src/android/car/
DCar.java322 private static final int STATE_CONNECTED = 2; field in Car
348 mConnectionState = STATE_CONNECTED;
433 mConnectionState = STATE_CONNECTED; in Car()
/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/
DHealthService.java480 new int[] {BluetoothHealth.STATE_CONNECTED}); in getConnectedHealthDevices()
664 if (newDeviceState == BluetoothHealth.STATE_CONNECTED) { in broadcastHealthDeviceStateChange()
676 case BluetoothHealth.STATE_CONNECTED: in broadcastHealthDeviceStateChange()
722 return BluetoothHealth.STATE_CONNECTED; in convertState()

123