Home
last modified time | relevance | path

Searched refs:BTConnectState (Results 1 - 25 of 77) sorted by relevance

1234

/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/
H A Dgatt_service_base.cpp28 BTConnectState newState = BTConnectState::DISCONNECTED; in ConvertConnectionState()
30 newState = BTConnectState::CONNECTING; in ConvertConnectionState()
32 newState = BTConnectState::CONNECTED; in ConvertConnectionState()
34 newState = BTConnectState::DISCONNECTING; in ConvertConnectionState()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_ct/
H A Davrcp_ct_service.cpp356 int result = static_cast<int>(BTConnectState::DISCONNECTED); in GetDeviceState()
377 if (GetDeviceState(rawAddr) != static_cast<int>(BTConnectState::DISCONNECTED)) { in Connect()
411 if (GetDeviceState(rawAddr) != static_cast<int>(BTConnectState::CONNECTED)) { in Disconnect()
432 if (GetDeviceState(rawAddr) != static_cast<int>(BTConnectState::CONNECTED)) { in DisconnectNative()
475 if (GetDeviceState(rawAddr) != static_cast<int>(BTConnectState::DISCONNECTED)) { in AcceptActiveConnect()
529 if (GetDeviceState(rawAddr) != static_cast<int>(BTConnectState::CONNECTED)) { in PressButton()
554 if (GetDeviceState(rawAddr) != static_cast<int>(BTConnectState::CONNECTED)) { in PressButtonNative()
585 if (GetDeviceState(rawAddr) != static_cast<int>(BTConnectState::CONNECTED)) { in ReleaseButton()
610 if (GetDeviceState(rawAddr) != static_cast<int>(BTConnectState::CONNECTED)) { in ReleaseButtonNative()
645 if (GetDeviceState(rawAddr) != static_cast<int>(BTConnectState in GetUnitInfo()
[all...]
H A Davrcp_ct_profile.cpp160 if (GetDeviceState(rawAddr) == static_cast<int>(BTConnectState::CONNECTED)) { in GetConnectedDevices()
179 if (state == static_cast<int>(BTConnectState::DISCONNECTED)) { in GetDevicesByStates()
204 result = static_cast<int>(BTConnectState::CONNECTING); in GetDeviceState()
207 result = static_cast<int>(BTConnectState::CONNECTED); in GetDeviceState()
209 result = static_cast<int>(BTConnectState::DISCONNECTING); in GetDeviceState()
211 result = static_cast<int>(BTConnectState::DISCONNECTING); in GetDeviceState()
213 result = static_cast<int>(BTConnectState::DISCONNECTED); in GetDeviceState()
230 if (GetDeviceState(rawAddr) == static_cast<int>(BTConnectState::CONNECTED)) { in GetMaxConnectNum()
249 myObserver_->onConnectionStateChanged(rawAddr, static_cast<int>(BTConnectState::CONNECTING)); in Connect()
266 myObserver_->onConnectionStateChanged(rawAddr, static_cast<int>(BTConnectState in Disconnect()
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/
H A Da2dp_service_connection.cpp49 info = AddDevice(device, static_cast<int>(BTConnectState::DISCONNECTED)); in A2dpConnect()
59 info->SetConnectState(static_cast<int>(BTConnectState::CONNECTING)); in A2dpConnect()
84 deviceInfo->SetConnectState(static_cast<int>(BTConnectState::DISCONNECTING)); in A2dpDisconnect()
112 if (connectionState == static_cast<int>(BTConnectState::CONNECTED)) { in JudgeConnectedNum()
178 if ((static_cast<int>(BTConnectState::CONNECTED) == info->GetConnectState()) || in JudgeConnectExit()
179 (static_cast<int>(BTConnectState::CONNECTING) == info->GetConnectState())) { in JudgeConnectExit()
H A Da2dp_service_state_machine.cpp40 service->ProcessConnectFrameworkCallback(static_cast<int>(BTConnectState::CONNECTING), rawAddr); in Dispatch()
47 service->ProcessConnectFrameworkCallback(static_cast<int>(BTConnectState::CONNECTING), rawAddr); in Dispatch()
95 service->ProcessConnectFrameworkCallback(static_cast<int>(BTConnectState::DISCONNECTING), rawAddr); in Dispatch()
102 service->ProcessConnectFrameworkCallback(static_cast<int>(BTConnectState::DISCONNECTING), rawAddr); in Dispatch()
113 service->ProcessConnectFrameworkCallback(static_cast<int>(BTConnectState::CONNECTING), rawAddr); in Dispatch()
169 service->ProcessConnectFrameworkCallback(static_cast<int>(BTConnectState::DISCONNECTING), rawAddr); in Dispatch()
H A Da2dp_service.cpp54 service->ConnectManager().AddDevice(btAddr, static_cast<int>(BTConnectState::CONNECTING)); in OnConnectStateChanged()
55 service->ProcessConnectFrameworkCallback(static_cast<int>(BTConnectState::CONNECTING), btAddr); in OnConnectStateChanged()
64 if (connectState == static_cast<int>(BTConnectState::DISCONNECTED)) { in OnConnectStateChanged()
71 } else if (connectState == static_cast<int>(BTConnectState::CONNECTED)) { in OnConnectStateChanged()
76 if ((connectState == static_cast<int>(BTConnectState::CONNECTED)) || in OnConnectStateChanged()
77 (connectState == static_cast<int>(BTConnectState::DISCONNECTED))) { in OnConnectStateChanged()
90 std::vector<int> states = {static_cast<int>(BTConnectState::CONNECTED)}; in ProcessA2dpHdfLoad()
97 if (state == static_cast<int>(BTConnectState::CONNECTED) && devices.size() == 1) { in ProcessA2dpHdfLoad()
104 if (state == static_cast<int>(BTConnectState::DISCONNECTED) && devices.size() == 0) { in ProcessA2dpHdfLoad()
123 msg, connectState, A2DP_MSG_CONNECT_FORBIDDEN, static_cast<int>(BTConnectState in ProcessConnectStateMessage()
[all...]
H A Da2dp_service_device.h147 int currentConnectState_ = static_cast<int>(BTConnectState::DISCONNECTED);
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hid_host/
H A Dhid_host_service.h132 {HID_HOST_STATE_DISCONNECTED, static_cast<int>(BTConnectState::DISCONNECTED)},
133 {HID_HOST_STATE_CONNECTING, static_cast<int>(BTConnectState::CONNECTING)},
134 {HID_HOST_STATE_DISCONNECTING, static_cast<int>(BTConnectState::DISCONNECTING)},
135 {HID_HOST_STATE_CONNECTED, static_cast<int>(BTConnectState::CONNECTED)}
/foundation/communication/bluetooth_service/services/bluetooth/service/src/pan/
H A Dpan_service.h145 {PAN_STATE_DISCONNECTED, static_cast<int>(BTConnectState::DISCONNECTED)},
146 {PAN_STATE_CONNECTING, static_cast<int>(BTConnectState::CONNECTING)},
147 {PAN_STATE_DISCONNECTING, static_cast<int>(BTConnectState::DISCONNECTING)},
148 {PAN_STATE_CONNECTED, static_cast<int>(BTConnectState::CONNECTED)}
/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_tg/
H A Davrcp_tg_service.cpp788 int result = static_cast<int>(BTConnectState::DISCONNECTED); in GetDeviceState()
823 if (GetDeviceState(rawAddr) != static_cast<int>(BTConnectState::DISCONNECTED)) { in Connect()
857 if (GetDeviceState(rawAddr) != static_cast<int>(BTConnectState::CONNECTED)) { in Disconnect()
878 if (GetDeviceState(rawAddr) != static_cast<int>(BTConnectState::CONNECTED)) { in DisconnectNative()
919 if (GetDeviceState(rawAddr) != static_cast<int>(BTConnectState::DISCONNECTED)) { in AcceptActiveConnect()
1087 if (GetDeviceState(rawAddr) != static_cast<int>(BTConnectState::CONNECTED)) { in OnSetAddressedPlayer()
1106 if (GetDeviceState(rawAddr) != static_cast<int>(BTConnectState::CONNECTED)) { in OnSetAddressedPlayerNative()
1137 if (GetDeviceState(rawAddr) != static_cast<int>(BTConnectState::CONNECTED)) { in OnSetBrowsedPlayer()
1163 if (GetDeviceState(rawAddr) != static_cast<int>(BTConnectState::CONNECTED)) { in OnSetBrowsedPlayerNative()
1189 if (GetDeviceState(rawAddr) != static_cast<int>(BTConnectState in GetCapabilities()
[all...]
H A Davrcp_tg_profile.cpp158 if (GetDeviceState(rawAddr) == static_cast<int>(BTConnectState::CONNECTED)) { in GetConnectedDevices()
177 if (state == static_cast<int>(BTConnectState::DISCONNECTED)) { in GetDevicesByStates()
202 result = static_cast<int>(BTConnectState::CONNECTING); in GetDeviceState()
204 result = static_cast<int>(BTConnectState::CONNECTED); in GetDeviceState()
206 result = static_cast<int>(BTConnectState::DISCONNECTING); in GetDeviceState()
208 result = static_cast<int>(BTConnectState::DISCONNECTING); in GetDeviceState()
210 result = static_cast<int>(BTConnectState::DISCONNECTED); in GetDeviceState()
227 if (GetDeviceState(rawAddr) == static_cast<int>(BTConnectState::CONNECTED)) { in GetMaxConnectNum()
245 myObserver_->onConnectionStateChanged(rawAddr, static_cast<int>(BTConnectState::CONNECTING)); in Connect()
270 myObserver_->onConnectionStateChanged(rawAddr, static_cast<int>(BTConnectState in Disconnect()
[all...]
/foundation/communication/bluetooth/frameworks/inner/src/
H A Dbluetooth_utils.cpp109 case static_cast<int>(BTConnectState::CONNECTING): in GetProfileConnStateName()
111 case static_cast<int>(BTConnectState::CONNECTED): in GetProfileConnStateName()
113 case static_cast<int>(BTConnectState::DISCONNECTING): in GetProfileConnStateName()
115 case static_cast<int>(BTConnectState::DISCONNECTED): in GetProfileConnStateName()
H A Dbluetooth_gatt_client.cpp148 if (newState == static_cast<int>(BTConnectState::DISCONNECTED)) {
362 connectionState_(static_cast<int>(BTConnectState::DISCONNECTED)), in impl()
606 if (pimpl->connectionState_ == static_cast<int>(BTConnectState::CONNECTED)) { in Connect()
661 if (pimpl->connectionState_ != static_cast<int>(BTConnectState::CONNECTED) || !pimpl->isRegisterSucceeded_) { in Disconnect()
712 if (pimpl->connectionState_ != static_cast<int>(BTConnectState::CONNECTED)) { in DiscoverServices()
777 if (pimpl->connectionState_ != static_cast<int>(BTConnectState::CONNECTED) || !pimpl->isRegisterSucceeded_) { in ReadCharacteristic()
814 if (pimpl->connectionState_ != static_cast<int>(BTConnectState::CONNECTED) || !pimpl->isRegisterSucceeded_) { in ReadDescriptor()
851 if (pimpl->connectionState_ != static_cast<int>(BTConnectState::CONNECTED) || !pimpl->isRegisterSucceeded_) { in RequestBleMtuSize()
878 if (pimpl->connectionState_ != static_cast<int>(BTConnectState::CONNECTED)) { in SetNotifyCharacteristicInner()
954 if (pimpl->connectionState_ != static_cast<int>(BTConnectState in WriteCharacteristic()
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_hf/
H A Dhfp_hf_service.h608 {HFP_HF_STATE_DISCONNECTED, static_cast<int>(BTConnectState::DISCONNECTED)},
609 {HFP_HF_STATE_CONNECTING, static_cast<int>(BTConnectState::CONNECTING)},
610 {HFP_HF_STATE_DISCONNECTING, static_cast<int>(BTConnectState::DISCONNECTING)},
611 {HFP_HF_STATE_CONNECTED, static_cast<int>(BTConnectState::CONNECTED)}
/foundation/communication/bluetooth_service/services/bluetooth/service/src/common/
H A Dprofile_service_manager.cpp541 BTConnectState ProfileServiceManager::GetProfileServiceConnectState(const uint32_t profileID) const in GetProfileServiceConnectState()
546 return BTConnectState::DISCONNECTED; in GetProfileServiceConnectState()
552 return BTConnectState::CONNECTED; in GetProfileServiceConnectState()
554 return BTConnectState::CONNECTING; in GetProfileServiceConnectState()
556 return BTConnectState::DISCONNECTING; in GetProfileServiceConnectState()
558 return BTConnectState::DISCONNECTED; in GetProfileServiceConnectState()
562 BTConnectState ProfileServiceManager::GetProfileServicesConnectState() const in GetProfileServicesConnectState()
578 return BTConnectState::CONNECTED; in GetProfileServicesConnectState()
580 return BTConnectState::CONNECTING; in GetProfileServicesConnectState()
582 return BTConnectState in GetProfileServicesConnectState()
[all...]
H A Dprofile_service_manager.h150 BTConnectState GetProfileServiceConnectState(const uint32_t profileID) const override;
165 BTConnectState GetProfileServicesConnectState() const;
/foundation/multimedia/audio_framework/frameworks/native/bluetoothclient/
H A Daudio_bluetooth_manager.cpp34 int AudioA2dpManager::connectionState_ = static_cast<int>(BTConnectState::DISCONNECTED);
124 int connectionState = static_cast<int>(BTConnectState::DISCONNECTED); in DisconnectBluetoothA2dpSink()
197 std::vector<int32_t> states {static_cast<int32_t>(BTConnectState::CONNECTED)}; in HasA2dpDeviceConnected()
262 std::vector<int32_t> states {static_cast<int32_t>(BTConnectState::CONNECTED)}; in CheckA2dpDeviceReconnect()
267 a2dpListener_->OnConnectionStateChanged(device, static_cast<int32_t>(BTConnectState::CONNECTED), in CheckA2dpDeviceReconnect()
314 if (state == static_cast<int>(BTConnectState::CONNECTING)) { in OnConnectionStateChanged()
317 if (state == static_cast<int>(BTConnectState::CONNECTED)) { in OnConnectionStateChanged()
320 if (state == static_cast<int>(BTConnectState::DISCONNECTED)) { in OnConnectionStateChanged()
389 std::vector<int32_t> states {static_cast<int32_t>(BTConnectState::CONNECTED)}; in CheckHfpDeviceReconnect()
392 hfpListener_->OnConnectionStateChanged(device, static_cast<int32_t>(BTConnectState in CheckHfpDeviceReconnect()
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_ag/
H A Dhfp_ag_service.h757 {HFP_AG_STATE_DISCONNECTED, static_cast<int>(BTConnectState::DISCONNECTED)},
758 {HFP_AG_STATE_CONNECTING, static_cast<int>(BTConnectState::CONNECTING)},
759 {HFP_AG_STATE_DISCONNECTING, static_cast<int>(BTConnectState::DISCONNECTING)},
760 {HFP_AG_STATE_CONNECTED, static_cast<int>(BTConnectState::CONNECTED)}
/foundation/communication/bluetooth_service/test/unittest/pan/
H A Dpan_test.cpp121 int sucess = static_cast<int>(BTConnectState::DISCONNECTED); in HWTEST_F()
124 int32_t state = static_cast<int32_t>(BTConnectState::DISCONNECTED); in HWTEST_F()
195 int state = static_cast<int>(BTConnectState::DISCONNECTED); in HWTEST_F()
/foundation/communication/nfc/services/src/tag/
H A Dbt_connection_manager.cpp360 if (state == static_cast<int32_t>(Bluetooth::BTConnectState::CONNECTED)) { in DecideInitNextAction()
371 if (state == static_cast<int32_t>(Bluetooth::BTConnectState::CONNECTED)) { in DecideInitNextAction()
480 if (state != static_cast<int32_t>(Bluetooth::BTConnectState::CONNECTED)) { in HandleBtConnect()
498 if (state != static_cast<int32_t>(Bluetooth::BTConnectState::CONNECTED)) { in HandleBtConnect()
592 if (devState != static_cast<int32_t>(Bluetooth::BTConnectState::DISCONNECTED)) { in HandleBtDisconnect()
605 if (devState != static_cast<int32_t>(Bluetooth::BTConnectState::DISCONNECTED)) { in HandleBtDisconnect()
616 if (devState != static_cast<int32_t>(Bluetooth::BTConnectState::DISCONNECTED)) { in HandleBtDisconnect()
806 if (info->state_ == static_cast<int32_t>(Bluetooth::BTConnectState::CONNECTED)) { in OnConnectionStateChanged()
818 } else if (info->state_ == static_cast<int32_t>(Bluetooth::BTConnectState::DISCONNECTED)) { in OnConnectionStateChanged()
/foundation/communication/bluetooth_service/services/bluetooth/service/include/
H A Dinterface_profile_manager.h87 virtual BTConnectState GetProfileServiceConnectState(const uint32_t profileID) const = 0;
/foundation/communication/bluetooth/frameworks/js/napi/src/ble/
H A Dnapi_bluetooth_gatt_server_callback.cpp60 if (state == static_cast<int>(BTConnectState::CONNECTED)) { in OnConnectionStateUpdate()
73 } else if (state == static_cast<int>(BTConnectState::DISCONNECTED)) { in OnConnectionStateUpdate()
/foundation/communication/bluetooth_service/test/unittest/hid/
H A Dhid_host_test.cpp124 int sucess = static_cast<int>(BTConnectState::DISCONNECTED); in HWTEST_F()
127 int32_t state = static_cast<int32_t>(BTConnectState::DISCONNECTED); in HWTEST_F()
/foundation/communication/netmanager_ext/services/networksharemanager/include/
H A Dnetworkshare_tracker.h247 void SetBluetoothState(const Bluetooth::BTConnectState &state);
276 Bluetooth::BTConnectState curBluetoothState_ = Bluetooth::BTConnectState::DISCONNECTED;
/foundation/communication/bluetooth/frameworks/js/napi/src/pan/
H A Dnapi_bluetooth_pan.cpp145 vector<int> states = { static_cast<int>(BTConnectState::CONNECTED) }; in GetConnectionDevices()
174 int32_t state = static_cast<int32_t>(BTConnectState::DISCONNECTED); in GetDeviceState()
199 vector<int> states = { static_cast<int>(BTConnectState::CONNECTED) }; in GetConnectedDevices()
228 int32_t state = static_cast<int32_t>(BTConnectState::DISCONNECTED); in GetConnectionState()

Completed in 26 milliseconds

1234