Home
last modified time | relevance | path

Searched refs:GattConnectionManager (Results 1 - 8 of 8) sorted by relevance

/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/
H A Dgatt_connection_manager.cpp43 const std::string GattConnectionManager::Device::STATE_IDLE = "IDLE";
44 const std::string GattConnectionManager::Device::STATE_CONNECTING = "CONNECTING";
45 const std::string GattConnectionManager::Device::STATE_CONNECTED = "CONNECTED";
46 const std::string GattConnectionManager::Device::STATE_DISCONNECTING = "DISCONNECTING";
47 const std::string GattConnectionManager::Device::STATE_DISCONNECTED = "DISCONNECTED";
49 using DeviceIterator = std::list<std::unique_ptr<GattConnectionManager::Device>>::iterator;
51 struct GattConnectionManager::impl : public GattServiceBase {
55 std::list<std::unique_ptr<GattConnectionManager::Device>> devices_ = {};
73 GattConnectionManager::Device *FindOrRegister(
75 GattConnectionManager
137 GattConnectionManager::GattConnectionManager() : pimpl(std::make_unique<impl>()) GattConnectionManager() function in OHOS::bluetooth::GattConnectionManager
[all...]
H A Dgatt_connection_manager.h36 class GattConnectionManager { class
64 explicit StateMachine(GattConnectionManager::Device &device);
71 utility::StateMachine &stateMachine, GattConnectionManager::Device &device);
76 GattConnectionManager::Device &device_;
79 Idle(utility::StateMachine &stateMachine, GattConnectionManager::Device &device);
86 Connecting(utility::StateMachine &stateMachine, GattConnectionManager::Device &device);
93 Connected(utility::StateMachine &stateMachine, GattConnectionManager::Device &device);
100 Disconnecting(utility::StateMachine &stateMachine, GattConnectionManager::Device &device);
107 Disconnected(utility::StateMachine &stateMachine, GattConnectionManager::Device &device);
148 static GattConnectionManager
[all...]
H A Dgatt_service_base.cpp29 if (state.compare(GattConnectionManager::Device::STATE_CONNECTING) == 0) { in ConvertConnectionState()
31 } else if (state.compare(GattConnectionManager::Device::STATE_CONNECTED) == 0) { in ConvertConnectionState()
33 } else if (state.compare(GattConnectionManager::Device::STATE_DISCONNECTING) == 0) { in ConvertConnectionState()
H A Dgatt_client_service.cpp208 auto maxNum = GattConnectionManager::GetInstance().GetMaximumNumberOfConnections(); in GetMaxConnectNum()
384 GattConnectionManager::GetInstance().GetDevices(devices); in GetAllDevice()
573 connectionObserverId_ = GattConnectionManager::GetInstance().RegisterObserver(*connectionObserver_); in impl()
582 GattConnectionManager::GetInstance().DeregisterObserver(connectionObserverId_); in ~impl()
593 auto &manager = GattConnectionManager::GetInstance(); in Connect()
596 auto deviceInfo = GattConnectionManager::GetInstance().GetDeviceInformation(device); in Connect()
597 if (std::get<TUPLE_INDEX_FIRST>(deviceInfo).compare(GattConnectionManager::Device::STATE_IDLE) == 0 || in Connect()
598 std::get<TUPLE_INDEX_FIRST>(deviceInfo).compare(GattConnectionManager::Device::STATE_DISCONNECTED) == 0) { in Connect()
605 if (std::get<TUPLE_INDEX_FIRST>(deviceInfo).compare(GattConnectionManager::Device::STATE_CONNECTED) == 0) { in Connect()
614 GattConnectionManager in Connect()
[all...]
H A Dgatt_server_service.cpp145 auto maxNum = GattConnectionManager::GetInstance().GetMaximumNumberOfConnections(); in GetMaxConnectNum()
624 connectionObserverId_ = GattConnectionManager::GetInstance().RegisterObserver(*connectionObserver_); in impl()
633 GattConnectionManager::GetInstance().DeregisterObserver(connectionObserverId_); in ~impl()
834 auto &manager = GattConnectionManager::GetInstance(); in CancelConnection()
H A Dgatt_client_profile.cpp216 if (GattConnectionManager::GetInstance().GetDeviceTransport(connectHandle) == GATT_TRANSPORT_TYPE_CLASSIC) { in ExchangeMtu()
618 if (GattConnectionManager::GetInstance().GetEncryptionInfo(connectHandle) != false) { in SignedWriteWithoutResponse()
2438 connectionObserverId_ = GattConnectionManager::GetInstance().RegisterObserver(*connectionCallBack_); in RegisterCallbackToConnectManager()
2451 GattConnectionManager::GetInstance().DeregisterObserver(connectionObserverId_); in DeregisterCallbackToConnectManager()
H A Dgatt_server_profile.cpp1873 connectionObserverId_ = GattConnectionManager::GetInstance().RegisterObserver(*connectionCallBack_); in RegisterCallbackToConnectManager()
1886 GattConnectionManager::GetInstance().DeregisterObserver(connectionObserverId_); in DeregisterCallbackToConnectManager()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/gatts/
H A Dgeneric_attribute_service.cpp131 if (!dev.second.isNotified && GattConnectionManager::GetInstance().GetEncryptionInfo(dev.first)) { in StoreNotifyInformation()
244 if (GattConnectionManager::GetInstance().GetEncryptionInfo(device)) { in ConnectIncoming()

Completed in 16 milliseconds