Lines Matching refs:DeviceConnectState
119 using bluetooth::le_audio::DeviceConnectState;
711 leAudioDevice->SetConnectionState(DeviceConnectState::REMOVING); in SetDeviceAsRemovePendingAndStopGroup()
942 leAudioDevices_.Add(address, DeviceConnectState::CONNECTING_BY_USER); in group_add_node()
994 if (leAudioDevice->GetConnectionState() == DeviceConnectState::CONNECTED) { in group_add_node()
1830 case DeviceConnectState::REMOVING: in RemoveDevice()
1833 case DeviceConnectState::CONNECTED: in RemoveDevice()
1834 case DeviceConnectState::CONNECTED_AUTOCONNECT_GETTING_READY: in RemoveDevice()
1835 case DeviceConnectState::CONNECTED_BY_USER_GETTING_READY: in RemoveDevice()
1839 case DeviceConnectState::DISCONNECTING: in RemoveDevice()
1840 case DeviceConnectState::DISCONNECTING_AND_RECOVER: in RemoveDevice()
1842 leAudioDevice->SetConnectionState(DeviceConnectState::REMOVING); in RemoveDevice()
1844 case DeviceConnectState::CONNECTING_AUTOCONNECT: in RemoveDevice()
1848 case DeviceConnectState::CONNECTING_BY_USER: in RemoveDevice()
1850 leAudioDevice->SetConnectionState(DeviceConnectState::DISCONNECTED); in RemoveDevice()
1852 case DeviceConnectState::DISCONNECTED: in RemoveDevice()
1879 leAudioDevices_.Add(address, DeviceConnectState::CONNECTING_BY_USER); in Connect()
1882 if ((current_connect_state == DeviceConnectState::CONNECTED) || in Connect()
1883 (current_connect_state == DeviceConnectState::CONNECTING_BY_USER)) { in Connect()
1900 leAudioDevice->SetConnectionState(DeviceConnectState::CONNECTING_BY_USER); in Connect()
1949 leAudioDevices_.Add(address, DeviceConnectState::DISCONNECTED); in AddFromStorage()
2072 case DeviceConnectState::CONNECTING_BY_USER: in Disconnect()
2082 case DeviceConnectState::CONNECTED: { in Disconnect()
2110 (dev->GetConnectionState() == DeviceConnectState::CONNECTING_AUTOCONNECT)) { in Disconnect()
2114 dev->SetConnectionState(DeviceConnectState::DISCONNECTED); in Disconnect()
2143 case DeviceConnectState::CONNECTED_BY_USER_GETTING_READY: in Disconnect()
2148 case DeviceConnectState::CONNECTED_AUTOCONNECT_GETTING_READY: in Disconnect()
2155 case DeviceConnectState::DISCONNECTED: in Disconnect()
2156 case DeviceConnectState::DISCONNECTING: in Disconnect()
2157 case DeviceConnectState::DISCONNECTING_AND_RECOVER: in Disconnect()
2158 case DeviceConnectState::CONNECTING_AUTOCONNECT: in Disconnect()
2159 case DeviceConnectState::REMOVING: in Disconnect()
2171 if (leAudioDevice->GetConnectionState() != DeviceConnectState::REMOVING) { in DisconnectDevice()
2172 leAudioDevice->SetConnectionState(DeviceConnectState::DISCONNECTING); in DisconnectDevice()
2181 leAudioDevice->SetConnectionState(DeviceConnectState::DISCONNECTING_AND_RECOVER); in DisconnectDevice()
2478 leAudioDevice->SetConnectionState(DeviceConnectState::CONNECTING_AUTOCONNECT); in AddToBackgroundConnectCheckGroupConnected()
2521 (leAudioDevice->GetConnectionState() == DeviceConnectState::CONNECTING_AUTOCONNECT || in OnGattConnected()
2524 leAudioDevice->SetConnectionState(DeviceConnectState::DISCONNECTED); in OnGattConnected()
2529 leAudioDevice->SetConnectionState(DeviceConnectState::DISCONNECTED); in OnGattConnected()
2571 if (leAudioDevice->GetConnectionState() == DeviceConnectState::CONNECTING_AUTOCONNECT) { in OnGattConnected()
2572 leAudioDevice->SetConnectionState(DeviceConnectState::CONNECTED_AUTOCONNECT_GETTING_READY); in OnGattConnected()
2574 leAudioDevice->SetConnectionState(DeviceConnectState::CONNECTED_BY_USER_GETTING_READY); in OnGattConnected()
2710 DeviceConnectState::CONNECTED_BY_USER_GETTING_READY) { in OnEncryptionComplete()
2717 leAudioDevice->SetConnectionState(DeviceConnectState::DISCONNECTING); in OnEncryptionComplete()
2823 leAudioDevice->GetConnectionState() != DeviceConnectState::DISCONNECTING_AND_RECOVER) { in recoveryReconnect()
2831 leAudioDevice->SetConnectionState(DeviceConnectState::CONNECTING_AUTOCONNECT); in recoveryReconnect()
2834 leAudioDevice->SetConnectionState(DeviceConnectState::DISCONNECTED); in recoveryReconnect()
2899 leAudioDevice->SetConnectionState(DeviceConnectState::DISCONNECTED); in OnGattDisconnected()
2907 if (connection_state == DeviceConnectState::REMOVING) { in OnGattDisconnected()
2920 if (connection_state == DeviceConnectState::DISCONNECTING_AND_RECOVER) { in OnGattDisconnected()
2929 leAudioDevice->SetConnectionState(DeviceConnectState::DISCONNECTING_AND_RECOVER); in OnGattDisconnected()
2955 leAudioDevice->SetConnectionState(DeviceConnectState::CONNECTING_AUTOCONNECT); in OnGattDisconnected()
3041 if (leAudioDevice->GetConnectionState() == DeviceConnectState::CONNECTED) { in ClearDeviceInformationAndStartSearch()
3042 leAudioDevice->SetConnectionState(DeviceConnectState::CONNECTED_BY_USER_GETTING_READY); in ClearDeviceInformationAndStartSearch()
3569 if (leAudioDevice->GetConnectionState() != DeviceConnectState::CONNECTED) { in AttachToStreamingGroupIfNeeded()
3700 DeviceConnectState::CONNECTED_BY_USER_GETTING_READY && in connectionReady()
3706 leAudioDevice->SetConnectionState(DeviceConnectState::CONNECTED); in connectionReady()
5973 if (device->GetConnectionState() == DeviceConnectState::REMOVING) { in HandlePendingDeviceRemove()