Home
last modified time | relevance | path

Searched refs:factories_ (Results 1 – 12 of 12) sorted by relevance

/external/grpc-grpc/src/core/ext/filters/client_channel/
Dlb_policy_registry.cc38 for (size_t i = 0; i < factories_.size(); ++i) { in RegisterLoadBalancingPolicyFactory()
39 GPR_ASSERT(strcmp(factories_[i]->name(), factory->name()) != 0); in RegisterLoadBalancingPolicyFactory()
41 factories_.push_back(std::move(factory)); in RegisterLoadBalancingPolicyFactory()
46 for (size_t i = 0; i < factories_.size(); ++i) { in GetLoadBalancingPolicyFactory()
47 if (strcmp(name, factories_[i]->name()) == 0) { in GetLoadBalancingPolicyFactory()
48 return factories_[i].get(); in GetLoadBalancingPolicyFactory()
55 InlinedVector<UniquePtr<LoadBalancingPolicyFactory>, 10> factories_; member in grpc_core::__anoncba075320111::RegistryState
Dresolver_registry.cc44 for (size_t i = 0; i < factories_.size(); ++i) { in RegisterResolverFactory()
45 GPR_ASSERT(strcmp(factories_[i]->scheme(), factory->scheme()) != 0); in RegisterResolverFactory()
47 factories_.push_back(std::move(factory)); in RegisterResolverFactory()
51 for (size_t i = 0; i < factories_.size(); ++i) { in LookupResolverFactory()
52 if (strcmp(scheme, factories_[i]->scheme()) == 0) { in LookupResolverFactory()
53 return factories_[i].get(); in LookupResolverFactory()
93 InlinedVector<UniquePtr<ResolverFactory>, 10> factories_; member in grpc_core::__anon641b43270111::RegistryState
/external/rust/crates/grpcio-sys/grpc/src/core/ext/xds/
Dcertificate_provider_registry.cc35 for (size_t i = 0; i < factories_.size(); ++i) { in RegisterCertificateProviderFactory()
36 GPR_ASSERT(strcmp(factories_[i]->name(), factory->name()) != 0); in RegisterCertificateProviderFactory()
38 factories_.push_back(std::move(factory)); in RegisterCertificateProviderFactory()
43 for (size_t i = 0; i < factories_.size(); ++i) { in LookupCertificateProviderFactory()
44 if (name == factories_[i]->name()) { in LookupCertificateProviderFactory()
45 return factories_[i].get(); in LookupCertificateProviderFactory()
58 factories_; member in grpc_core::__anon60f7b3e60111::RegistryState
/external/rust/crates/grpcio-sys/grpc/src/core/lib/channel/
Dhandshaker_registry.cc48 absl::InlinedVector<std::unique_ptr<HandshakerFactory>, 2> factories_; member in grpc_core::__anon4e4902c20111::HandshakerFactoryList
57 factories_.push_back(std::move(factory)); in Register()
59 auto* end = &factories_[factories_.size() - 1]; in Register()
60 std::rotate(&factories_[0], end, end + 1); in Register()
67 for (size_t idx = 0; idx < factories_.size(); ++idx) { in AddHandshakers()
68 auto& handshaker_factory = factories_[idx]; in AddHandshakers()
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/
Dlb_policy_registry.cc44 for (size_t i = 0; i < factories_.size(); ++i) { in RegisterLoadBalancingPolicyFactory()
45 GPR_ASSERT(strcmp(factories_[i]->name(), factory->name()) != 0); in RegisterLoadBalancingPolicyFactory()
47 factories_.push_back(std::move(factory)); in RegisterLoadBalancingPolicyFactory()
52 for (size_t i = 0; i < factories_.size(); ++i) { in GetLoadBalancingPolicyFactory()
53 if (strcmp(name, factories_[i]->name()) == 0) { in GetLoadBalancingPolicyFactory()
54 return factories_[i].get(); in GetLoadBalancingPolicyFactory()
62 factories_; member in grpc_core::__anond20c5a860111::RegistryState
Dresolver_registry.cc48 for (size_t i = 0; i < factories_.size(); ++i) { in RegisterResolverFactory()
49 GPR_ASSERT(strcmp(factories_[i]->scheme(), factory->scheme()) != 0); in RegisterResolverFactory()
51 factories_.push_back(std::move(factory)); in RegisterResolverFactory()
55 for (size_t i = 0; i < factories_.size(); ++i) { in LookupResolverFactory()
56 if (scheme == factories_[i]->scheme()) { in LookupResolverFactory()
57 return factories_[i].get(); in LookupResolverFactory()
106 absl::InlinedVector<std::unique_ptr<ResolverFactory>, 10> factories_; member in grpc_core::__anon0735cdfb0111::RegistryState
/external/tensorflow/tensorflow/lite/experimental/acceleration/configuration/
Ddelegate_registry.cc28 factories_[name] = creator_function; in RegisterImpl()
34 auto it = factories_.find(name); in CreateImpl()
35 return (it != factories_.end()) ? it->second(settings) : nullptr; in CreateImpl()
Ddelegate_registry.h83 std::unordered_map<std::string, CreatorFunction> factories_
/external/tensorflow/tensorflow/core/framework/
Dallocator_registry.cc31 for (auto& entry : factories_) { in FindEntry()
65 factories_.push_back(std::move(entry)); in Register()
72 for (auto& entry : factories_) { in GetAllocator()
94 for (auto& entry : factories_) { in GetSubAllocator()
Dallocator_registry.h104 std::vector<FactoryEntry> factories_ TF_GUARDED_BY(mu_);
/external/tensorflow/tensorflow/stream_executor/
Dplugin_registry.cc170 auto iter = factories_.find(platform_id); in HasFactory()
171 if (iter != factories_.end()) { in HasFactory()
200 &factories_[platform_id].FACTORY_VAR); \
229 return GetFactoryInternal(plugin_id, factories_[platform_id].FACTORY_VAR, \
Dplugin_registry.h149 std::map<Platform::Id, PluginFactories> factories_; variable