Home
last modified time | relevance | path

Searched refs:GetPrefix (Results 1 – 25 of 33) sorted by relevance

12

/external/perfetto/src/traced/probes/filesystem/
Dprefix_finder_unittest.cc43 ASSERT_EQ(pr.GetPrefix("/a/1")->ToString(), ""); in TEST()
44 ASSERT_EQ(pr.GetPrefix("/a/2")->ToString(), ""); in TEST()
45 ASSERT_EQ(pr.GetPrefix("/a/3")->ToString(), ""); in TEST()
46 ASSERT_EQ(pr.GetPrefix("/b/4")->ToString(), "/b"); in TEST()
47 ASSERT_EQ(pr.GetPrefix("/b/5")->ToString(), "/b"); in TEST()
Drange_tree_unittest.cc45 auto a = pr.GetPrefix("/a/foo"); in TEST()
46 auto b = pr.GetPrefix("/b/foo"); in TEST()
47 auto c = pr.GetPrefix("/c/foo"); in TEST()
48 auto d = pr.GetPrefix("/d/foo"); in TEST()
Dprefix_finder.h93 Node* GetPrefix(std::string path);
Dprefix_finder.cc105 PrefixFinder::Node* PrefixFinder::GetPrefix(std::string path) { in GetPrefix() function in perfetto::PrefixFinder
/external/openthread/tests/unit/
Dtest_routing_manager.cpp230 pio.GetPrefix(prefix); in ValidateRouterAdvert()
255 rio.GetPrefix(prefix); in ValidateRouterAdvert()
290 pio.GetPrefix(prefix); in LogRouterAdvert()
303 rio.GetPrefix(prefix); in LogRouterAdvert()
444 VerifyOrQuit(prefixConfig.GetPrefix() == localOmr); in TestRoutingManager()
457 VerifyOrQuit(routeConfig.GetPrefix() == localOnLink); in TestRoutingManager()
525 VerifyOrQuit(prefixConfig.GetPrefix() == localOmr); in TestRoutingManager()
541 …VerifyOrQuit((routeConfig.GetPrefix() == localOnLink) || (routeConfig.GetPrefix() == onLinkPrefix)… in TestRoutingManager()
542 (routeConfig.GetPrefix() == routePrefix)); in TestRoutingManager()
660 VerifyOrQuit(prefixConfig.GetPrefix() == localOmr); in TestRoutingManager()
[all …]
/external/openthread/src/core/border_router/
Drouting_manager.cpp148 aPrefix = mLocalOmrPrefix.GetPrefix(); in GetOmrPrefix()
159 aPrefix = mFavoredOmrPrefix.GetPrefix(); in GetFavoredOmrPrefix()
399 mDiscoveredPrefixTable.RemoveRoutePrefix(prefixConfig.GetPrefix(), in UpdateDiscoveredPrefixTableOnNetDataChange()
455 else if (mFavoredOmrPrefix.GetPrefix() == mLocalOmrPrefix.GetPrefix()) in EvaluateOmrPrefix()
462 mFavoredOmrPrefix.GetPrefix().ToString().AsCString()); in EvaluateOmrPrefix()
600 const Ip6::Prefix &prefix = config.GetPrefix(); in EvaluateNat64Prefix()
791 …efixConfig.mOnMesh || prefixConfig.mDp || (prefixConfig.GetPrefix() == mLocalOmrPrefix.GetPrefix()… in SendRouterAdvertisement()
796 mAdvertisedPrefixes.MarkAsDeleted(prefixConfig.GetPrefix()); in SendRouterAdvertisement()
801 mAdvertisedPrefixes.MarkAsDeleted(mLocalOmrPrefix.GetPrefix()); in SendRouterAdvertisement()
831 mAdvertisedPrefixes.Add(mLocalOmrPrefix.GetPrefix()); in SendRouterAdvertisement()
[all …]
Drouting_manager.hpp413 const Ip6::Prefix &GetPrefix(void) const { return mPrefix; } in GetPrefix() function in ot::BorderRouter::RoutingManager::DiscoveredPrefixTable::Entry
509 const Ip6::Prefix &GetPrefix(void) const { return mPrefix; } in GetPrefix() function in ot::BorderRouter::RoutingManager::OmrPrefix
523 const Ip6::Prefix &GetPrefix(void) const { return mPrefix; } in GetPrefix() function in ot::BorderRouter::RoutingManager::LocalOmrPrefix
/external/openthread/src/core/thread/
Dnetwork_data_types.cpp68 VerifyOrExit(GetPrefix().GetLength() == Ip6::NetworkPrefix::kLength); in IsValid()
72 VerifyOrExit(IsPrefixValid(aInstance, GetPrefix())); in IsValid()
73 VerifyOrExit(GetPrefix().GetLength() > 0); in IsValid()
140 aPrefixTlv.CopyPrefixTo(GetPrefix()); in SetFrom()
166 VerifyOrExit(GetPrefix().IsValidNat64()); in IsValid()
170 VerifyOrExit(IsPrefixValid(aInstance, GetPrefix())); in IsValid()
201 aPrefixTlv.CopyPrefixTo(GetPrefix()); in SetFrom()
Dnetwork_data_types.hpp183 const Ip6::Prefix &GetPrefix(void) const { return AsCoreType(&mPrefix); } in GetPrefix() function in ot::NetworkData::OnMeshPrefixConfig
191 Ip6::Prefix &GetPrefix(void) { return AsCoreType(&mPrefix); } in GetPrefix() function in ot::NetworkData::OnMeshPrefixConfig
243 const Ip6::Prefix &GetPrefix(void) const { return AsCoreType(&mPrefix); } in GetPrefix() function in ot::NetworkData::ExternalRouteConfig
251 Ip6::Prefix &GetPrefix(void) { return AsCoreType(&mPrefix); } in GetPrefix() function in ot::NetworkData::ExternalRouteConfig
Dnetwork_data_tlvs.hpp651 memcpy(GetPrefix(), aPrefix, Ip6::Prefix::SizeForLength(aPrefixLength)); in Init()
703 uint8_t *GetPrefix(void) { return reinterpret_cast<uint8_t *>(this) + sizeof(*this); } in GetPrefix() function in ot::NetworkData::PrefixTlv
711 …const uint8_t *GetPrefix(void) const { return reinterpret_cast<const uint8_t *>(this) + sizeof(*th… in GetPrefix() function in ot::NetworkData::PrefixTlv
719 void CopyPrefixTo(Ip6::Prefix &aPrefix) const { aPrefix.Set(GetPrefix(), GetPrefixLength()); } in CopyPrefixTo()
730 …bool IsEqual(Ip6::Prefix &aPrefix) const { return aPrefix.IsEqual(GetPrefix(), GetPrefixLength());… in IsEqual()
745 … (Ip6::Prefix::MatchLength(GetPrefix(), aPrefix, Ip6::Prefix::SizeForLength(aPrefixLength)) >= in IsEqual()
757 …return reinterpret_cast<NetworkDataTlv *>(GetPrefix() + Ip6::Prefix::SizeForLength(mPrefixLength)); in GetSubTlvs()
768 …return reinterpret_cast<const NetworkDataTlv *>(GetPrefix() + Ip6::Prefix::SizeForLength(mPrefixLe… in GetSubTlvs()
Dnetwork_data_leader.cpp100 if (!config.mNat64 || !config.GetPrefix().IsValidNat64()) in GetPreferredNat64Prefix()
122 if (aAddress.MatchesPrefix(prefixTlv->GetPrefix(), prefixTlv->GetPrefixLength())) in FindNextMatchingPrefix()
156 aContext.mPrefix.Set(prefix->GetPrefix(), prefix->GetPrefixLength()); in GetContext()
188 aContext.mPrefix.Set(prefix->GetPrefix(), prefix->GetPrefixLength()); in GetContext()
284 if (!aDestination.MatchesPrefix(prefixTlv->GetPrefix(), prefixLength)) in ExternalRouteLookup()
Dnetwork_data_publisher.cpp98 entry = FindOrAllocatePrefixEntry(aConfig.GetPrefix()); in PublishOnMeshPrefix()
115 entry = FindOrAllocatePrefixEntry(aConfig.GetPrefix()); in PublishExternalRoute()
796 LogInfo("Publishing OnMeshPrefix %s", aConfig.GetPrefix().ToString().AsCString()); in Publish()
798 Publish(aConfig.GetPrefix(), aConfig.ConvertToTlvFlags(), kTypeOnMeshPrefix); in Publish()
803 LogInfo("Publishing ExternalRoute %s", aConfig.GetPrefix().ToString().AsCString()); in Publish()
805 Publish(aConfig.GetPrefix(), aConfig.ConvertToTlvFlags(), kTypeExternalRoute); in Publish()
Dnetwork_data_local.cpp61 …AddPrefix(aConfig.GetPrefix(), NetworkDataTlv::kTypeBorderRouter, aConfig.ConvertToTlvFlags(), aCo… in AddOnMeshPrefix()
87 …error = AddPrefix(aConfig.GetPrefix(), NetworkDataTlv::kTypeHasRoute, aConfig.ConvertToTlvFlags(),… in AddHasRoutePrefix()
Dnetwork_data_leader_ftd.cpp427 …VerifyOrExit(validatedSegment.FindPrefix(prefix->GetPrefix(), prefix->GetPrefixLength()) == nullpt… in Validate()
753 PrefixTlv *dstPrefix = FindPrefix(aPrefix.GetPrefix(), aPrefix.GetPrefixLength()); in AddPrefix()
760 dstPrefix->Init(aPrefix.GetDomainId(), aPrefix.GetPrefixLength(), aPrefix.GetPrefix()); in AddPrefix()
1079 aExcludeNetworkData.FindPrefix(prefix->GetPrefix(), prefix->GetPrefixLength()); in RemoveRloc()
/external/openthread/src/core/backbone_router/
Dbbr_local.cpp63 mDomainPrefixConfig.GetPrefix().SetLength(0); in Local()
295 VerifyOrExit(mDomainPrefixConfig.GetPrefix().GetLength() > 0, error = kErrorNotFound); in GetDomainPrefix()
308 VerifyOrExit(mDomainPrefixConfig.GetPrefix() == aPrefix, error = kErrorNotFound); in RemoveDomainPrefix()
315 mDomainPrefixConfig.GetPrefix().SetLength(0); in RemoveDomainPrefix()
412 error = Get<NetworkData::Local>().RemoveOnMeshPrefix(mDomainPrefixConfig.GetPrefix()); in RemoveDomainPrefixFromNetworkData()
440 if (mDomainPrefixConfig.GetPrefix().GetLength() > 0) in AddDomainPrefixToNetworkData()
451 …LogInfo("%s Domain Prefix: %s, %s", aAction, mDomainPrefixConfig.GetPrefix().ToString().AsCString(… in LogDomainPrefix()
Dbbr_leader.cpp257 else if (config.GetPrefix() == mDomainPrefix) in UpdateDomainPrefixConfig()
272 mDomainPrefix = config.GetPrefix(); in UpdateDomainPrefixConfig()
/external/openthread/src/core/net/
Ddhcp6_server.hpp102 …l IsPrefixMatch(const Ip6::Address &aAddress) const { return aAddress.MatchesPrefix(GetPrefix()); } in IsPrefixMatch()
141 const Ip6::Prefix &GetPrefix(void) const { return mPrefix; } in GetPrefix() function in ot::Dhcp6::Server::PrefixAgent
149 Ip6::Prefix &GetPrefix(void) { return mPrefix; } in GetPrefix() function in ot::Dhcp6::Server::PrefixAgent
Dnd6.cpp102 void PrefixInfoOption::GetPrefix(Prefix &aPrefix) const in GetPrefix() function in ot::Ip6::Nd::PrefixInfoOption
140 void RouteInfoOption::GetPrefix(Prefix &aPrefix) const in GetPrefix() function in ot::Ip6::Nd::RouteInfoOption
Dnd6.hpp275 void GetPrefix(Prefix &aPrefix) const;
389 void GetPrefix(Prefix &aPrefix) const;
Ddhcp6_server.cpp121 AddPrefixAgent(config.GetPrefix(), lowpanContext); in UpdateService()
164 else if (prefixAgent.GetPrefix() == aIp6Prefix) in AddPrefixAgent()
/external/openthread/src/core/utils/
Dslaac_address.cpp143 (aAddr.GetAddress().MatchesPrefix(aConfig.GetPrefix()))); in DoesConfigMatchNetifAddr()
178 if (config.mSlaac && !ShouldFilter(config.GetPrefix()) && in Update()
205 Ip6::Prefix &prefix = config.GetPrefix(); in Update()
/external/angle/src/common/
Dstring_utils.h45 std::string GetPrefix(const std::string &input, size_t offset, const char *delimiter);
46 std::string GetPrefix(const std::string &input, size_t offset, char delimiter);
Dstring_utils.cpp119 std::string GetPrefix(const std::string &input, size_t offset, const char *delimiter) in GetPrefix() function
129 std::string GetPrefix(const std::string &input, size_t offset, char delimiter) in GetPrefix() function
/external/ot-br-posix/src/common/
Dlogging.cpp82 static const char *GetPrefix(const char *aLogTag) in GetPrefix() function
118 … syslog(static_cast<int>(aLevel), "%s%s: %s", sLevelString[aLevel], GetPrefix(aLogTag), buffer); in otbrLog()
/external/clang/tools/scan-build/bin/
Dscan-build307 sub GetPrefix { subroutine
755 my $prefix = GetPrefix();
854 my $prefix = GetPrefix();
881 my $prefix = GetPrefix();

12