Home
last modified time | relevance | path

Searched refs:EnvironmentAutoDetect (Results 1 – 11 of 11) sorted by relevance

/external/rust/android-crates-io/crates/grpcio-sys/grpc/src/cpp/ext/gcp/
Denvironment_autodetect.cc137 absl::AnyInvocable<void(EnvironmentAutoDetect::ResourceType)> on_done, in EnvironmentAutoDetectHelper()
265 absl::optional<EnvironmentAutoDetect::ResourceType> resource; in FetchMetadataServerAttributesAsynchronouslyLocked()
315 absl::AnyInvocable<void(EnvironmentAutoDetect::ResourceType)> on_done_;
324 EnvironmentAutoDetect::ResourceType resource_ ABSL_GUARDED_BY(mu_);
331 EnvironmentAutoDetect* g_autodetect = nullptr;
335 void EnvironmentAutoDetect::Create(std::string project_id) { in Create()
337 g_autodetect = new EnvironmentAutoDetect(project_id); in Create()
340 EnvironmentAutoDetect& EnvironmentAutoDetect::Get() { return *g_autodetect; } in Get()
342 EnvironmentAutoDetect::EnvironmentAutoDetect(std::string project_id) in EnvironmentAutoDetect() function in grpc::internal::EnvironmentAutoDetect
347 void EnvironmentAutoDetect::NotifyOnDone(absl::AnyInvocable<void()> callback) { in NotifyOnDone()
[all …]
Denvironment_autodetect.h41 class EnvironmentAutoDetect {
50 static EnvironmentAutoDetect& Get();
53 explicit EnvironmentAutoDetect(std::string project_id);
Dobservability_logging_sink.h82 const EnvironmentAutoDetect::ResourceType* resource);
90 const EnvironmentAutoDetect::ResourceType* resource);
108 const EnvironmentAutoDetect::ResourceType* resource_ ABSL_GUARDED_BY(mu_) =
Dobservability.cc114 grpc::internal::EnvironmentAutoDetect::Create(config->project_id); in GcpObservabilityInit()
148 grpc::internal::EnvironmentAutoDetect::Get().NotifyOnDone( in GcpObservabilityInit()
151 auto* resource = grpc::internal::EnvironmentAutoDetect::Get().resource(); in GcpObservabilityInit()
Dobservability_logging_sink.cc266 const EnvironmentAutoDetect::ResourceType* resource) { in RegisterEnvironmentResource()
283 const EnvironmentAutoDetect::ResourceType* resource = nullptr; in Flush()
323 const EnvironmentAutoDetect::ResourceType* resource) { in FlushEntriesHelper()
405 auto& env_autodetect = EnvironmentAutoDetect::Get(); in MaybeTriggerFlushLocked()
411 RegisterEnvironmentResource(EnvironmentAutoDetect::Get().resource()); in MaybeTriggerFlushLocked()
/external/grpc-grpc/src/cpp/ext/gcp/
Denvironment_autodetect.cc135 absl::AnyInvocable<void(EnvironmentAutoDetect::ResourceType)> on_done, in EnvironmentAutoDetectHelper()
263 absl::optional<EnvironmentAutoDetect::ResourceType> resource; in FetchMetadataServerAttributesAsynchronouslyLocked()
313 absl::AnyInvocable<void(EnvironmentAutoDetect::ResourceType)> on_done_;
322 EnvironmentAutoDetect::ResourceType resource_ ABSL_GUARDED_BY(mu_);
329 EnvironmentAutoDetect* g_autodetect = nullptr;
333 void EnvironmentAutoDetect::Create(std::string project_id) { in Create()
335 g_autodetect = new EnvironmentAutoDetect(project_id); in Create()
338 EnvironmentAutoDetect& EnvironmentAutoDetect::Get() { return *g_autodetect; } in Get()
340 EnvironmentAutoDetect::EnvironmentAutoDetect(std::string project_id) in EnvironmentAutoDetect() function in grpc::internal::EnvironmentAutoDetect
345 void EnvironmentAutoDetect::NotifyOnDone(absl::AnyInvocable<void()> callback) { in NotifyOnDone()
[all …]
Denvironment_autodetect.h41 class EnvironmentAutoDetect {
50 static EnvironmentAutoDetect& Get();
53 explicit EnvironmentAutoDetect(std::string project_id);
Dobservability_logging_sink.h80 const EnvironmentAutoDetect::ResourceType* resource);
88 const EnvironmentAutoDetect::ResourceType* resource);
106 const EnvironmentAutoDetect::ResourceType* resource_ ABSL_GUARDED_BY(mu_) =
Dobservability.cc115 grpc::internal::EnvironmentAutoDetect::Create(config->project_id); in GcpObservabilityInit()
149 grpc::internal::EnvironmentAutoDetect::Get().NotifyOnDone( in GcpObservabilityInit()
152 auto* resource = grpc::internal::EnvironmentAutoDetect::Get().resource(); in GcpObservabilityInit()
Dobservability_logging_sink.cc266 const EnvironmentAutoDetect::ResourceType* resource) { in RegisterEnvironmentResource()
283 const EnvironmentAutoDetect::ResourceType* resource = nullptr; in Flush()
323 const EnvironmentAutoDetect::ResourceType* resource) { in FlushEntriesHelper()
405 auto& env_autodetect = EnvironmentAutoDetect::Get(); in MaybeTriggerFlushLocked()
411 RegisterEnvironmentResource(EnvironmentAutoDetect::Get().resource()); in MaybeTriggerFlushLocked()
/external/grpc-grpc/test/cpp/ext/gcp/
Denvironment_autodetect_test.cc44 grpc::internal::EnvironmentAutoDetect* env, in GetNotifiedOnEnvironmentDetection()
55 grpc::internal::EnvironmentAutoDetect env("project"); in TEST_F()
68 grpc::internal::EnvironmentAutoDetect env("project"); in TEST_F()
81 grpc::internal::EnvironmentAutoDetect env("project"); in TEST_F()
94 grpc::internal::EnvironmentAutoDetect env("project"); in TEST_F()
107 grpc::internal::EnvironmentAutoDetect env("project"); in TEST_F()
119 grpc::internal::EnvironmentAutoDetect env("project"); in TEST_F()