/foundation/communication/bluetooth_service/services/bluetooth/service/include/ |
H A D | interface_profile_gatt_server.h | 62 virtual void OnCharacteristicReadRequest(const GattDevice &device, const Characteristic &characteristic) {} in OnCharacteristicReadRequest() 64 virtual void OnCharacteristicReadByUuidRequest(const GattDevice &device, const Characteristic &characteristic) {} in OnCharacteristicReadByUuidRequest() 77 const GattDevice &device, const Characteristic &characteristic, bool needRespones) {} in OnCharacteristicWriteRequest() 88 virtual void OnDescriptorReadRequest(const GattDevice &device, const Descriptor &descriptor) {} in OnDescriptorReadRequest() 99 virtual void OnDescriptorWriteRequest(const GattDevice &device, const Descriptor &descriptor) {} in OnDescriptorWriteRequest() 109 virtual void OnNotifyConfirm(const GattDevice &device, const Characteristic &characteristic, int result) {} in OnNotifyConfirm() 119 virtual void OnConnectionStateChanged(const GattDevice &device, int ret, int state) = 0; 128 virtual void OnMtuChanged(const GattDevice &device, int mtu) {} in OnMtuChanged() 142 const GattDevice &device, int interval, int latency, int timeout, int status) {} in OnConnectionParameterChanged() 219 virtual int NotifyClient(const GattDevice [all...] |
H A D | interface_profile_gatt_client.h | 263 * @return std::vector<GattDevice> devices list. 267 virtual std::vector<GattDevice> GetAllDevice() = 0;
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/ |
H A D | gatt_connection_observer.h | 26 virtual void OnConnect(const GattDevice &device, uint16_t connectionHandle, int ret) in OnConnect() 28 virtual void OnDisconnect(const GattDevice &device, uint16_t connectionHandle, int ret) in OnDisconnect() 30 virtual void OnConnectionChanged(const GattDevice &device, uint16_t connectionHandle, int state) in OnConnectionChanged() 33 const GattDevice &device, int interval, int latency, int timeout, int status) in OnConnectionParameterChanged() 36 virtual void OnReconnect(const GattDevice &device, uint16_t connectionHandle, int ret) in OnReconnect() 39 virtual void OnDisconnectInter(const GattDevice &device, uint16_t connectionHandle, int ret) in OnDisconnectInter()
|
H A D | gatt_server_service.h | 36 int NotifyClient(const GattDevice &device, Characteristic &characteristic, bool needConfirm = false) override; 37 int RespondCharacteristicRead(const GattDevice &device, Characteristic &characteristic, int ret) override; 38 int RespondCharacteristicReadByUuid(const GattDevice &device, Characteristic &characteristic, int ret) override; 39 int RespondCharacteristicWrite(const GattDevice &device, const Characteristic &characteristic, int ret) override; 40 int RespondDescriptorRead(const GattDevice &device, Descriptor &descriptor, int ret) override; 41 int RespondDescriptorWrite(const GattDevice &device, const Descriptor &descriptor, int ret) override; 42 int CancelConnection(const GattDevice &device) override;
|
H A D | gatt_connection.h | 27 GattDevice device_; 34 explicit GattConnection(const GattDevice &device) : device_(device) in GattConnection() 36 GattConnection(const GattDevice &device, uint16_t mtu, uint16_t handle) in GattConnection() 40 const GattDevice &GetDevice() const in GetDevice()
|
H A D | gatt_connection_manager.h | 116 explicit Device(const GattDevice &device, bool autoConnect = false); 122 GattDevice &Info(); 138 GattDevice info_; 155 int Connect(const GattDevice &device, bool autoConnect = false) const; 156 int Disconnect(const GattDevice &device) const; 159 const std::string &GetDeviceState(const GattDevice &device) const; 160 void GetDevices(std::vector<GattDevice> &devices) const; 162 std::tuple<std::string, uint16_t, uint16_t> GetDeviceInformation(const GattDevice &device) const; 166 bool GetEncryptionInfo(const GattDevice &device) const; 167 int SetConnectionType(const GattDevice [all...] |
H A D | gatt_cache.h | 104 int StoredToFile(const GattDevice& address) const; 105 int LoadFromFile(const GattDevice& address); 144 static std::string GenerateGattCacheFileName(const GattDevice &address); 145 int WriteStorageBlobToFile(const GattDevice& address, std::vector<StorageBlob> &blob) const; 146 std::vector<StorageBlob> ReadStorageBlobFromFile(const GattDevice &address) const;
|
H A D | gatt_server_service.cpp | 78 const GattDevice &device, uint16_t valueHandle, const GattValue &value, size_t length, bool needConfirm); 79 void RespondCharacteristicRead(const GattDevice &device, uint16_t valueHandle, const GattValue &value, 81 void RespondCharacteristicWrite(const GattDevice &device, uint16_t characteristicHandle, int ret); 83 const GattDevice &device, uint16_t valueHandle, const GattValue &value, size_t length, int ret); 84 void RespondDescriptorWrite(const GattDevice &device, uint16_t descriptorHandle, int ret); 85 void CancelConnection(const GattDevice &device); 95 void OnConnect(const GattDevice &device, uint16_t connectionHandle, int ret); 96 void OnDisconnect(const GattDevice &device, uint16_t connectionHandle, int ret); 97 void OnConnectionChanged(const GattDevice &device, int state); 98 void OnConnectionParameterChanged(const GattDevice [all...] |
H A D | gatt_connection_manager.cpp | 74 const GattDevice &device, bool autoConnect, std::unique_lock<std::mutex> &deviceLock); 80 GattConnectionManager::Device *FindDevice(const GattDevice &device, std::unique_lock<std::mutex> &deviceLock); 83 void RemoveDevice(const GattDevice &device); 85 void NotifyObserver(const GattDevice &device, uint8_t event, uint16_t connectionHandle, int ret); 92 const GattDevice &device, uint16_t connInterval, uint16_t connLatency, uint16_t timeout, int status); 94 static int CheckDeviceParameter(const GattDevice &device); 132 void DirectConnectTimeout(const GattDevice &device); 145 int GattConnectionManager::Connect(const GattDevice &device, bool autoConnect) const in Connect() 171 int GattConnectionManager::Disconnect(const GattDevice &device) const in Disconnect() 211 const std::string &GattConnectionManager::GetDeviceState(const GattDevice [all...] |
H A D | gatt_client_service.cpp | 55 IGattClientCallback &callback, const GattDevice &device, GattClientProfile &profile, bool isShared) in ClientApplication() 100 IGattClientCallback &callback, const GattDevice &device, std::promise<int> &promise, bool isShared); 134 void OnConnect(const GattDevice &device, uint16_t connectionHandle, int ret); 135 void OnDisconnect(const GattDevice &device, uint16_t connectionHandle, int ret); 136 void OnConnectionChanged(const GattDevice &device, uint16_t connectionHandle, int state); 137 void OnConnectionParameterChanged(const GattDevice &device, int interval, int latency, int timeout, int status); 141 std::optional<AppIterator> GetValidApplication(const GattDevice &device); 223 GattDevice(addr, transport), in RegisterApplication() 242 GattDevice(addr, transport), in RegisterSharedApplication() 381 std::vector<GattDevice> GattClientServic [all...] |
H A D | gatt_cache.cpp | 171 int GattCache::StoredToFile(const GattDevice& address) const in StoredToFile() 215 int GattCache::LoadFromFile(const GattDevice& address) in LoadFromFile() 251 std::string GattCache::GenerateGattCacheFileName(const GattDevice &address) in GenerateGattCacheFileName() 257 int GattCache::WriteStorageBlobToFile(const GattDevice& address, std::vector<StorageBlob> &blob) const in WriteStorageBlobToFile() 280 std::vector<GattCache::StorageBlob> GattCache::ReadStorageBlobFromFile(const GattDevice &address) const in ReadStorageBlobFromFile()
|
H A D | gatt_profile_defines.h | 90 GattDevice device_; 93 explicit DeviceInfo(GattDevice dev) : device_(dev) in DeviceInfo()
|
H A D | gatt_client_service.h | 47 std::vector<GattDevice> GetAllDevice() override;
|
H A D | gatt_client_profile.cpp | 123 void CreateCache(uint16_t connectHandle, const GattDevice device); 124 void DeleteCache(uint16_t connectHandle, const GattDevice device); 2267 void GattClientProfile::impl::CreateCache(uint16_t connectHandle, const GattDevice device) in CreateCache() 2281 void GattClientProfile::impl::DeleteCache(uint16_t connectHandle, const GattDevice device) in DeleteCache() 2396 void OnConnect(const GattDevice &device, uint16_t connectionHandle, int ret) override 2402 void OnDisconnect(const GattDevice &device, uint16_t connectionHandle, int ret) override 2410 void OnReconnect(const GattDevice &device, uint16_t connectionHandle, int ret) override 2416 void OnDisconnectInter(const GattDevice &device, uint16_t connectionHandle, int ret) override
|
H A D | gatt_server_profile.cpp | 132 void AddDeviceList(uint16_t connectHandle, GattDevice device); 1737 void GattServerProfile::impl::AddDeviceList(uint16_t connectHandle, GattDevice device) in AddDeviceList() 1835 void OnConnect(const GattDevice &device, uint16_t connectionHandle, int ret) override 1844 void OnDisconnect(const GattDevice &device, uint16_t connectionHandle, int ret) override
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/gatts/ |
H A D | generic_attribute_service.h | 64 std::map<GattDevice, NotifyInformation> devices_ = {}; 68 void ComfirmNotify(GattDevice device); 71 void NotifyServiceChanged(const GattDevice& device, Characteristic& characteristic) const; 72 void ConnectIncoming(const GattDevice& device); 73 void Disconnected(const GattDevice& device);
|
H A D | generic_attribute_service.cpp | 47 void OnConnectionStateChanged(const GattDevice &device, int ret, int state) override 63 void OnNotifyConfirm(const GattDevice &device, const Characteristic &characteristic, int result) override 172 devices_.emplace(std::make_pair<GattDevice, NotifyInformation>( in LoadNotifyInformation() 173 GattDevice(RawAddress(dev), (uint8_t)transport), { in LoadNotifyInformation() 182 void GenericAttributeService::ComfirmNotify(GattDevice device) in ComfirmNotify() 233 void GenericAttributeService::NotifyServiceChanged(const GattDevice& device, Characteristic& characteristic) const in NotifyServiceChanged() 239 void GenericAttributeService::ConnectIncoming(const GattDevice& device) in ConnectIncoming() 256 void GenericAttributeService::Disconnected(const GattDevice& device) in Disconnected()
|
/foundation/communication/bluetooth/frameworks/inner/ipc/parcel/ |
H A D | bluetooth_gatt_device.h | 24 class BluetoothGattDevice : public Parcelable, public bluetooth::GattDevice { 27 BluetoothGattDevice(const bluetooth::GattDevice &other) : bluetooth::GattDevice(other) in BluetoothGattDevice() 29 BluetoothGattDevice(const BluetoothGattDevice &other) : bluetooth::GattDevice(other) in BluetoothGattDevice()
|
/foundation/communication/bluetooth/frameworks/inner/ipc/common/ |
H A D | gatt_data.cpp | 23 GattDevice::GattDevice(const RawAddress& addr, uint8_t type, uint8_t transport) in GattDevice() function in OHOS::bluetooth::GattDevice 29 GattDevice::GattDevice(const RawAddress& addr, uint8_t type, uint8_t transport, int state) in GattDevice() function in OHOS::bluetooth::GattDevice 35 GattDevice::GattDevice(const RawAddress& addr, uint8_t transport) in GattDevice() function in OHOS::bluetooth::GattDevice
|
H A D | gatt_data.h | 166 struct GattDevice { struct 167 GattDevice() : isEncryption_(false), transport_(0), addressType_(0), connectState_(0), addr_() {} in GattDevice() function 168 GattDevice(const RawAddress &addr, uint8_t type, uint8_t transport); 170 GattDevice(const RawAddress &addr, uint8_t type, uint8_t transport, int state); 172 GattDevice(const RawAddress &addr, uint8_t transport); 181 bool operator==(const GattDevice& rhs) const in operator ==() 186 bool operator<(const GattDevice& rhs) const in operator <()
|
/foundation/communication/bluetooth_service/services/bluetooth/server/src/ |
H A D | bluetooth_gatt_server_server.cpp | 87 const bluetooth::GattDevice &device, const bluetooth::Characteristic &characteristic) override 98 const bluetooth::GattDevice &device, const bluetooth::Characteristic &characteristic) override 102 void OnCharacteristicWriteRequest(const bluetooth::GattDevice &device, 113 void OnDescriptorReadRequest(const bluetooth::GattDevice &device, const bluetooth::Descriptor &descriptor) override 122 void OnDescriptorWriteRequest(const bluetooth::GattDevice &device, const bluetooth::Descriptor &descriptor) override 132 const bluetooth::GattDevice &device, const bluetooth::Characteristic &characteristic, int result) override 137 void OnConnectionStateChanged(const bluetooth::GattDevice &device, int ret, int state) override 157 void OnMtuChanged(const bluetooth::GattDevice &device, int mtu) override 172 const bluetooth::GattDevice &device, int interval, int latency, int timeout, int status) override 366 int ret = pimpl->serverService_->NotifyClient((bluetooth::GattDevice)devic in NotifyClient() [all...] |
/foundation/communication/bluetooth/frameworks/inner/src/ |
H A D | bluetooth_gatt_server.cpp | 42 bluetooth::GattDevice device_; 48 RequestInformation(uint8_t type, const bluetooth::GattDevice &device, GattCharacteristic *characteristic) in RequestInformation() 54 RequestInformation(uint8_t type, const bluetooth::GattDevice &device, GattDescriptor *decriptor) 60 RequestInformation(uint8_t type, const bluetooth::GattDevice &device) : type_(type), device_(device) in device_() 84 std::list<bluetooth::GattDevice> devices_; 88 const bluetooth::GattDevice &device, uint16_t handle, const uint8_t *value, size_t length, int ret); 89 int RespondCharacteristicWrite(const bluetooth::GattDevice &device, uint16_t handle, int ret); 91 const bluetooth::GattDevice &device, uint16_t handle, const uint8_t *value, size_t length, int ret); 92 int RespondDescriptorWrite(const bluetooth::GattDevice &device, uint16_t handle, int ret); 96 bluetooth::GattDevice *FindConnectedDevic [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/dis/ |
H A D | device_information_service.cpp | 57 void OnCharacteristicReadRequest(const GattDevice &device, const Characteristic &characteristic) override 75 void OnCharacteristicReadByUuidRequest(const GattDevice &device, const Characteristic &characteristic) override 89 void OnConnectionStateChanged(const GattDevice &device, int ret, int state) override
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/gas/ |
H A D | generic_access_service.cpp | 40 void OnCharacteristicReadRequest(const GattDevice &device, const Characteristic &characteristic) override 58 void OnCharacteristicReadByUuidRequest(const GattDevice &device, const Characteristic &characteristic) override 76 void OnConnectionStateChanged(const GattDevice &device, int ret, int state) override
|