/foundation/communication/bluetooth/frameworks/inner/src/ |
H A D | bluetooth_gatt_service.cpp | 26 void GattService::AddCharacteristic(const GattCharacteristic &characteristic) in AddCharacteristic() 31 GattService::GattService(const UUID &uuid, const GattServiceType type) in GattService() function in OHOS::Bluetooth::GattService 35 GattService::GattService(const UUID &uuid, uint16_t handle, uint16_t endHandle, const GattServiceType type) in GattService() function in OHOS::Bluetooth::GattService 39 GattService::GattService(const GattService &src) in GattService() function in OHOS::Bluetooth::GattService 53 GattService::GattService(GattServic function in OHOS::Bluetooth::GattService [all...] |
H A D | bluetooth_gatt_server.cpp | 79 std::list<GattService> gattServices_; 95 GattService *GetIncludeService(uint16_t handle); 97 GattService BuildService(const BluetoothGattService &service); 98 void BuildIncludeService(GattService &svc, const std::vector<bluetooth::Service> &iSvcs); 354 GattService *ptr = nullptr; 356 GattService gattSvc = serverSptr->pimpl->BuildService(service); 408 GattService GattServer::impl::BuildService(const BluetoothGattService &service) in BuildService() 410 GattService gattService(UUID::ConvertFrom128Bits(service.uuid_.ConvertTo128Bits()), in BuildService() 437 void GattServer::impl::BuildIncludeService(GattService &svc, const std::vector<bluetooth::Service> &iSvcs) in BuildIncludeService() 440 GattService *pSv in BuildIncludeService() [all...] |
H A D | bluetooth_gatt_client.cpp | 104 std::vector<GattService> gattServices_; 119 GattService *FindService(uint16_t handle); 441 GattService svcTmp(UUID::ConvertFrom128Bits(svc.uuid_.ConvertTo128Bits()), in BuildServiceList() 460 GattService *ptr = FindService(svc.handle_); in BuildServiceList() 465 GattService *iptr = FindService(isvc.startHandle_); in BuildServiceList() 474 GattService *GattClient::impl::FindService(uint16_t handle) in FindService() 719 std::optional<std::reference_wrapper<GattService>> GattClient::GetService(const UUID &uuid) in GetService() 744 std::vector<GattService> &GattClient::GetService() in GetService() 747 std::vector<GattService> gattServices; in GetService()
|
H A D | bluetooth_gatt_characteristic.cpp | 151 GattService *GattCharacteristic::GetService() const in GetService()
|
/foundation/communication/bluetooth/interfaces/inner_api/include/ |
H A D | bluetooth_gatt_service.h | 57 class BLUETOOTH_API GattService { class 60 * @brief The function to delete constructor of GattService. 65 GattService() = delete; 67 * @brief A constructor of GattService. 74 GattService(const UUID &uuid, const GattServiceType type); 76 * @brief A constructor of GattService. 85 GattService(const UUID &uuid, uint16_t handle, uint16_t endHandle, const GattServiceType type); 102 void AddService(GattService &service); 127 const std::vector<std::reference_wrapper<GattService>> &GetIncludedServices(); 153 GattService(cons [all...] |
H A D | bluetooth_gatt_server.h | 72 virtual void OnServiceAdded(GattService *Service, int ret) in OnServiceAdded() 194 int AddService(GattService &service); 203 int RemoveGattService(const GattService &service); 228 std::optional<std::reference_wrapper<GattService>> GetService(const UUID &uuid, bool isPrimary); 236 std::list<GattService> &GetServices();
|
H A D | bluetooth_gatt_characteristic.h | 52 * @brief Class for GattService functions. 57 class GattService; 185 GattService *GetService() const; 274 GattService *service_; 308 friend class GattService;
|
H A D | bluetooth_gatt_client.h | 257 std::optional<std::reference_wrapper<GattService>> GetService(const UUID &uuid); 266 std::vector<GattService> &GetService();
|
/foundation/communication/bluetooth_service/test/unittest/gatt/ |
H A D | gatt_service_test.cpp | 59 EXPECT_EQ(true, GattService(uuid_, serviceType_).IsPrimary()); in HWTEST_F() 60 GTEST_LOG_(INFO) << "GattService::GattService ends"; in HWTEST_F() 61 GTEST_LOG_(INFO) << "GattService::IsPrimary ends"; in HWTEST_F() 75 uint16_t result = GattService(uuid_, handle_, endHandle_, serviceType_).GetHandle(); in HWTEST_F() 77 GTEST_LOG_(INFO) << "GattService::GattService ends"; in HWTEST_F() 78 GTEST_LOG_(INFO) << "GattService::GetHandle ends"; in HWTEST_F() 91 const UUID result = GattService(uuid_, handle_, endHandle_, serviceType_).GetUuid(); in HWTEST_F() 99 GTEST_LOG_(INFO) << "GattService in HWTEST_F() [all...] |
H A D | gatt_server_test.cpp | 33 void OnServiceAdded(GattService *Service, int ret) override 106 GattService serviceOne(uuidSerPer, GattServiceType::PRIMARY); in HWTEST_F() 141 GattService serviceOne(uuidSerPer, 1, 1, GattServiceType::PRIMARY); in HWTEST_F() 145 std::list<GattService> &list = server.GetServices(); in HWTEST_F() 162 std::list<GattService>& list = server.GetServices(); in HWTEST_F() 225 GattService serviceOne(uuidSerPer, GattServiceType::PRIMARY); in HWTEST_F() 230 std::list<GattService> list = server.GetServices(); in HWTEST_F() 250 GattService serviceOne(uuidSerPer, GattServiceType::SECONDARY); in HWTEST_F() 256 std::optional<GattService> listSecondary = server.GetService(uuidSerPer, false); in HWTEST_F()
|
H A D | gatt_characteristic_test.cpp | 163 GattService *tempGattService = pGattCharacteristic->GetService(); in HWTEST_F()
|
/foundation/communication/bluetooth/frameworks/js/napi/include/ |
H A D | napi_bluetooth_ble_utils.h | 54 void ConvertGattServiceToJS(napi_env env, napi_value result, GattService &service); 55 void ConvertGattServiceVectorToJS(napi_env env, napi_value result, std::vector<GattService> &services); 113 NapiNativeGattServiceArray(const std::vector<GattService> &gattServices) : gattServices_(gattServices) {} in NapiNativeGattServiceArray() 118 std::vector<GattService> gattServices_ {};
|
H A D | napi_bluetooth_gatt_server_callback.h | 41 void OnServiceAdded(GattService *Service, int ret) override {}
|
/foundation/communication/bluetooth/frameworks/js/napi/src/ble/ |
H A D | napi_bluetooth_ble_utils.cpp | 31 void ConvertGattServiceToJS(napi_env env, napi_value result, GattService& service) in ConvertGattServiceToJS() 49 vector<GattService> services; in ConvertGattServiceToJS() 50 vector<std::reference_wrapper<GattService>> srvs = service.GetIncludedServices(); in ConvertGattServiceToJS() 58 void ConvertGattServiceVectorToJS(napi_env env, napi_value result, vector<GattService>& services) in ConvertGattServiceVectorToJS() 408 ConvertGattServiceVectorToJS(env, object, const_cast<vector<GattService> &>(gattServices_)); in ToNapiValue()
|
H A D | napi_bluetooth_gatt_server.cpp | 132 std::unique_ptr<GattService> &outService) in CheckGattsAddService() 140 // std::unique_ptr<GattService> service {nullptr}; in CheckGattsAddService() 149 outService = std::make_unique<GattService>(napiGattService.serviceUuid, type); in CheckGattsAddService() 171 std::unique_ptr<GattService> gattService {nullptr}; in AddService()
|
/foundation/communication/bluetooth/frameworks/inner/c_adapter/ |
H A D | ohos_bt_gatt_client.cpp | 107 std::optional<std::reference_wrapper<GattService>> service = client->GetService(UUID::FromString(strUuidSvc)); in GattcFindCharacteristic() 581 std::optional<std::reference_wrapper<GattService>> gattService = client->GetService(uuid); in BleGattcGetService() 586 GattService service = gattService->get(); in BleGattcGetService()
|
H A D | ohos_bt_gatt_server.cpp | 109 GattService *gattService; 276 void OnServiceAdded(GattService *Service, int ret) override 729 GATTSERVICE(serverId, i) = new GattService( in BleGattsAddService()
|