Home
last modified time | relevance | path

Searched refs:aServiceData (Results 1 – 14 of 14) sorted by relevance

/external/openthread/src/core/thread/
Dnetwork_data_service.hpp469 Error Add(const typename ServiceType::ServiceData &aServiceData, bool aServerStable = true) in Add() argument
471 return AddService(&aServiceData, aServiceData.GetLength(), aServerStable, nullptr, 0); in Add()
512 …template <typename ServiceType> Error Remove(const typename ServiceType::ServiceData &aServiceData) in Remove() argument
514 return RemoveService(&aServiceData, aServiceData.GetLength()); in Remove()
596 Error AddService(const void *aServiceData,
601 Error RemoveService(const void *aServiceData, uint8_t aServiceDataLength);
604 Error GetServiceId(const void *aServiceData,
Dnetwork_data_tlvs.cpp97 …d ServiceTlv::Init(uint8_t aServiceId, uint32_t aEnterpriseNumber, const ServiceData &aServiceData) in Init() argument
108 mServiceDataLength = aServiceData.GetLength(); in Init()
109 aServiceData.CopyBytesTo(&mServiceDataLength + sizeof(uint8_t)); in Init()
113 mShared.mServiceDataLengthThreadEnterprise = aServiceData.GetLength(); in Init()
114 aServiceData.CopyBytesTo(&mShared.mServiceDataLengthThreadEnterprise + sizeof(uint8_t)); in Init()
Dnetwork_data_local.cpp180 const ServiceData &aServiceData, in AddService() argument
187 …uint16_t serviceTlvSize = ServiceTlv::CalculateSize(aEnterpriseNumber, aServiceData.GetLength()… in AddService()
190 IgnoreError(RemoveService(aEnterpriseNumber, aServiceData)); in AddService()
197 serviceTlv->Init(/* aServiceId */ 0, aEnterpriseNumber, aServiceData); in AddService()
218 Error Local::RemoveService(uint32_t aEnterpriseNumber, const ServiceData &aServiceData) in RemoveService() argument
223 … VerifyOrExit((tlv = FindService(aEnterpriseNumber, aServiceData, kServiceExactMatch)) != nullptr, in RemoveService()
Dnetwork_data.hpp450 const ServiceData &aServiceData,
470 const ServiceData &aServiceData,
488 const ServiceData &aServiceData,
583 const ServiceData &aServiceData,
709 const ServiceData &aServiceData, in FindService() argument
712 … return AsNonConst(AsConst(this)->FindService(aEnterpriseNumber, aServiceData, aServiceMatchMode)); in FindService()
Dnetwork_data_service.cpp57 Error Manager::AddService(const void *aServiceData, in AddService() argument
66 serviceData.Init(aServiceData, aServiceDataLength); in AddService()
72 Error Manager::RemoveService(const void *aServiceData, uint8_t aServiceDataLength) in RemoveService() argument
76 serviceData.Init(aServiceData, aServiceDataLength); in RemoveService()
83 Error Manager::GetServiceId(const void *aServiceData, in GetServiceId() argument
90 serviceData.Init(aServiceData, aServiceDataLength); in GetServiceId()
Dnetwork_data.cpp526 const ServiceData &aServiceData, in FindService() argument
534 if (MatchService(*serviceTlv, aEnterpriseNumber, aServiceData, aServiceMatchMode)) in FindService()
545 const ServiceData &aServiceData, in FindNextService() argument
562 …return NetworkData(GetInstance(), tlvs, length).FindService(aEnterpriseNumber, aServiceData, aServ… in FindNextService()
566 const ServiceData &aServiceData, in FindNextThreadService() argument
569 …return FindNextService(aPrevServiceTlv, ServiceTlv::kThreadEnterpriseNumber, aServiceData, aServic… in FindNextThreadService()
574 const ServiceData &aServiceData, in MatchService() argument
587 match = (serviceData == aServiceData); in MatchService()
591 match = serviceData.StartsWith(aServiceData); in MatchService()
Dnetwork_data_local.hpp149 const ServiceData &aServiceData,
163 Error RemoveService(uint32_t aEnterpriseNumber, const ServiceData &aServiceData);
Dnetwork_data_types.hpp348 …void GetServiceData(ServiceData &aServiceData) const { aServiceData.Init(mServiceData, mServiceDat… in GetServiceData()
Dnetwork_data_leader.hpp266 const ServiceData &aServiceData,
Dnetwork_data_tlvs.hpp1318 void Init(uint8_t aServiceId, uint32_t aEnterpriseNumber, const ServiceData &aServiceData);
1363 void GetServiceData(ServiceData &aServiceData) const in GetServiceData()
1365 aServiceData.Init(GetServiceData(), GetServiceDataLength()); in GetServiceData()
Dnetwork_data_leader.cpp67 const ServiceData &aServiceData, in GetServiceId() argument
80 if (aEnterpriseNumber == serviceConfig.mEnterpriseNumber && aServiceData == serviceData && in GetServiceId()
/external/openthread/src/core/api/
Dserver_api.cpp65 const uint8_t *aServiceData, in otServerRemoveService() argument
70 serviceData.Init(aServiceData, aServiceDataLength); in otServerRemoveService()
/external/openthread/include/openthread/
Dserver.h99 const uint8_t *aServiceData,
/external/openthread/tests/unit/
Dtest_network_data.cpp502 Error AddService(const ServiceData &aServiceData) in AddService() argument
504 … return Local::AddService(ServiceTlv::kThreadEnterpriseNumber, aServiceData, true, ServerData()); in AddService()
507 Error ValidateServiceData(const ServiceTlv *aServiceTlv, const ServiceData &aServiceData) const in ValidateServiceData()
515 VerifyOrExit(aServiceData == serviceData); in ValidateServiceData()