Home
last modified time | relevance | path

Searched refs:TryGet (Results 1 – 24 of 24) sorted by relevance

/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/flags/
Dflag_test.cc561 EXPECT_EQ(*handle->TryGet<bool>(), true); in TEST_F()
563 EXPECT_EQ(*handle->TryGet<int>(), 1234); in TEST_F()
565 EXPECT_EQ(*handle->TryGet<int16_t>(), -34); in TEST_F()
567 EXPECT_EQ(*handle->TryGet<uint16_t>(), 189); in TEST_F()
569 EXPECT_EQ(*handle->TryGet<int32_t>(), 10765); in TEST_F()
571 EXPECT_EQ(*handle->TryGet<uint32_t>(), 40000); in TEST_F()
573 EXPECT_EQ(*handle->TryGet<int64_t>(), -1234567); in TEST_F()
575 EXPECT_EQ(*handle->TryGet<uint64_t>(), 9876543); in TEST_F()
577 EXPECT_NEAR(*handle->TryGet<double>(), -9.876e-50, 1e-55); in TEST_F()
579 EXPECT_NEAR(*handle->TryGet<float>(), 1.234e12f, 1e5f); in TEST_F()
[all …]
Dcommandlineflag.h83 absl::optional<T> TryGet() const { in TryGet() function
/external/openscreen/third_party/abseil/src/absl/flags/
Dflag_test.cc559 EXPECT_EQ(*handle->TryGet<bool>(), true); in TEST_F()
561 EXPECT_EQ(*handle->TryGet<int>(), 1234); in TEST_F()
563 EXPECT_EQ(*handle->TryGet<int16_t>(), -34); in TEST_F()
565 EXPECT_EQ(*handle->TryGet<uint16_t>(), 189); in TEST_F()
567 EXPECT_EQ(*handle->TryGet<int32_t>(), 10765); in TEST_F()
569 EXPECT_EQ(*handle->TryGet<uint32_t>(), 40000); in TEST_F()
571 EXPECT_EQ(*handle->TryGet<int64_t>(), -1234567); in TEST_F()
573 EXPECT_EQ(*handle->TryGet<uint64_t>(), 9876543); in TEST_F()
575 EXPECT_NEAR(*handle->TryGet<double>(), -9.876e-50, 1e-55); in TEST_F()
577 EXPECT_NEAR(*handle->TryGet<float>(), 1.234e12f, 1e5f); in TEST_F()
[all …]
Dcommandlineflag.h83 absl::optional<T> TryGet() const { in TryGet() function
/external/libtextclassifier/abseil-cpp/absl/flags/
Dflag_test.cc559 EXPECT_EQ(*handle->TryGet<bool>(), true); in TEST_F()
561 EXPECT_EQ(*handle->TryGet<int>(), 1234); in TEST_F()
563 EXPECT_EQ(*handle->TryGet<int16_t>(), -34); in TEST_F()
565 EXPECT_EQ(*handle->TryGet<uint16_t>(), 189); in TEST_F()
567 EXPECT_EQ(*handle->TryGet<int32_t>(), 10765); in TEST_F()
569 EXPECT_EQ(*handle->TryGet<uint32_t>(), 40000); in TEST_F()
571 EXPECT_EQ(*handle->TryGet<int64_t>(), -1234567); in TEST_F()
573 EXPECT_EQ(*handle->TryGet<uint64_t>(), 9876543); in TEST_F()
575 EXPECT_NEAR(*handle->TryGet<double>(), -9.876e-50, 1e-55); in TEST_F()
577 EXPECT_NEAR(*handle->TryGet<float>(), 1.234e12f, 1e5f); in TEST_F()
[all …]
Dcommandlineflag.h83 absl::optional<T> TryGet() const { in TryGet() function
/external/libbrillo/brillo/
Dany.h154 T TryGet(typename std::decay<T>::type const& def_val) const { in TryGet() function
163 T TryGet() const { in TryGet() function
164 return TryGet<T>(typename std::decay<T>::type()); in TryGet()
Dany_test.cc255 TEST(Any, TryGet) { in TEST() argument
258 EXPECT_EQ("dummy", val.TryGet<std::string>("dummy")); in TEST()
259 EXPECT_EQ(12, val.TryGet<int>(17)); in TEST()
260 EXPECT_EQ(17, empty.TryGet<int>(17)); in TEST()
Dvariant_dictionary.h28 return it->second.TryGet<T>(); in GetVariantValueOrDefault()
/external/angle/third_party/abseil-cpp/absl/flags/
Dflag_test.cc619 EXPECT_EQ(*handle->TryGet<bool>(), true); in TEST_F()
621 EXPECT_EQ(*handle->TryGet<int>(), 1234); in TEST_F()
623 EXPECT_EQ(*handle->TryGet<int16_t>(), -34); in TEST_F()
625 EXPECT_EQ(*handle->TryGet<uint16_t>(), 189); in TEST_F()
627 EXPECT_EQ(*handle->TryGet<int32_t>(), 10765); in TEST_F()
629 EXPECT_EQ(*handle->TryGet<uint32_t>(), 40000); in TEST_F()
631 EXPECT_EQ(*handle->TryGet<int64_t>(), -1234567); in TEST_F()
633 EXPECT_EQ(*handle->TryGet<uint64_t>(), 9876543); in TEST_F()
635 EXPECT_NEAR(*handle->TryGet<double>(), -9.876e-50, 1e-55); in TEST_F()
637 EXPECT_NEAR(*handle->TryGet<float>(), 1.234e12f, 1e5f); in TEST_F()
[all …]
Dcommandlineflag.h83 absl::optional<T> TryGet() const { in TryGet() function
/external/tensorflow/third_party/absl/abseil-cpp/absl/flags/
Dflag_test.cc562 EXPECT_EQ(*handle->TryGet<bool>(), true); in TEST_F()
564 EXPECT_EQ(*handle->TryGet<int>(), 1234); in TEST_F()
566 EXPECT_EQ(*handle->TryGet<int16_t>(), -34); in TEST_F()
568 EXPECT_EQ(*handle->TryGet<uint16_t>(), 189); in TEST_F()
570 EXPECT_EQ(*handle->TryGet<int32_t>(), 10765); in TEST_F()
572 EXPECT_EQ(*handle->TryGet<uint32_t>(), 40000); in TEST_F()
574 EXPECT_EQ(*handle->TryGet<int64_t>(), -1234567); in TEST_F()
576 EXPECT_EQ(*handle->TryGet<uint64_t>(), 9876543); in TEST_F()
578 EXPECT_NEAR(*handle->TryGet<double>(), -9.876e-50, 1e-55); in TEST_F()
580 EXPECT_NEAR(*handle->TryGet<float>(), 1.234e12f, 1e5f); in TEST_F()
[all …]
Dcommandlineflag.h83 absl::optional<T> TryGet() const { in TryGet() function
/external/cronet/third_party/abseil-cpp/absl/flags/
Dflag_test.cc562 EXPECT_EQ(*handle->TryGet<bool>(), true); in TEST_F()
564 EXPECT_EQ(*handle->TryGet<int>(), 1234); in TEST_F()
566 EXPECT_EQ(*handle->TryGet<int16_t>(), -34); in TEST_F()
568 EXPECT_EQ(*handle->TryGet<uint16_t>(), 189); in TEST_F()
570 EXPECT_EQ(*handle->TryGet<int32_t>(), 10765); in TEST_F()
572 EXPECT_EQ(*handle->TryGet<uint32_t>(), 40000); in TEST_F()
574 EXPECT_EQ(*handle->TryGet<int64_t>(), -1234567); in TEST_F()
576 EXPECT_EQ(*handle->TryGet<uint64_t>(), 9876543); in TEST_F()
578 EXPECT_NEAR(*handle->TryGet<double>(), -9.876e-50, 1e-55); in TEST_F()
580 EXPECT_NEAR(*handle->TryGet<float>(), 1.234e12f, 1e5f); in TEST_F()
[all …]
Dcommandlineflag.h83 absl::optional<T> TryGet() const { in TryGet() function
/external/abseil-cpp/absl/flags/
Dflag_test.cc562 EXPECT_EQ(*handle->TryGet<bool>(), true); in TEST_F()
564 EXPECT_EQ(*handle->TryGet<int>(), 1234); in TEST_F()
566 EXPECT_EQ(*handle->TryGet<int16_t>(), -34); in TEST_F()
568 EXPECT_EQ(*handle->TryGet<uint16_t>(), 189); in TEST_F()
570 EXPECT_EQ(*handle->TryGet<int32_t>(), 10765); in TEST_F()
572 EXPECT_EQ(*handle->TryGet<uint32_t>(), 40000); in TEST_F()
574 EXPECT_EQ(*handle->TryGet<int64_t>(), -1234567); in TEST_F()
576 EXPECT_EQ(*handle->TryGet<uint64_t>(), 9876543); in TEST_F()
578 EXPECT_NEAR(*handle->TryGet<double>(), -9.876e-50, 1e-55); in TEST_F()
580 EXPECT_NEAR(*handle->TryGet<float>(), 1.234e12f, 1e5f); in TEST_F()
[all …]
Dcommandlineflag.h83 absl::optional<T> TryGet() const { in TryGet() function
/external/webrtc/third_party/abseil-cpp/absl/flags/
Dflag_test.cc562 EXPECT_EQ(*handle->TryGet<bool>(), true); in TEST_F()
564 EXPECT_EQ(*handle->TryGet<int>(), 1234); in TEST_F()
566 EXPECT_EQ(*handle->TryGet<int16_t>(), -34); in TEST_F()
568 EXPECT_EQ(*handle->TryGet<uint16_t>(), 189); in TEST_F()
570 EXPECT_EQ(*handle->TryGet<int32_t>(), 10765); in TEST_F()
572 EXPECT_EQ(*handle->TryGet<uint32_t>(), 40000); in TEST_F()
574 EXPECT_EQ(*handle->TryGet<int64_t>(), -1234567); in TEST_F()
576 EXPECT_EQ(*handle->TryGet<uint64_t>(), 9876543); in TEST_F()
578 EXPECT_NEAR(*handle->TryGet<double>(), -9.876e-50, 1e-55); in TEST_F()
580 EXPECT_NEAR(*handle->TryGet<float>(), 1.234e12f, 1e5f); in TEST_F()
[all …]
Dcommandlineflag.h83 absl::optional<T> TryGet() const { in TryGet() function
/external/perfetto/include/perfetto/tracing/internal/
Ddata_source_internal.h157 DataSourceState* TryGet(size_t n) { in TryGet() function
/external/perfetto/src/tracing/internal/
Dtracing_muxer_impl.cc1218 auto* internal_state = static_state->TryGet(i); in MaybeAdoptStartupTracingInDataSource()
1282 if (!static_state.TryGet(i)) in SetupDataSource()
1330 if (static_state.TryGet(i)) in SetupDataSourceImpl()
1560 if (!ds.static_state->TryGet(ds.instance_idx) || in StopDataSource_AsyncEnd()
1723 if (!ds.static_state->TryGet(ds.instance_idx) || in FlushDataSource_AsyncEnd()
1818 DataSourceState* ds_state = static_state->TryGet(inst); in DestroyStoppedTraceWritersForCurrentThread()
2180 auto* internal_state = static_state->TryGet(i); in OnProducerDisconnected()
2230 auto* internal_state = static_state->TryGet(i); in FindDataSource()
2548 auto* internal_state = static_state->TryGet(i); in AbortStartupTracingSession()
/external/perfetto/src/shared_lib/
Ddata_source.cc317 auto* internal_state = ds_impl->cpp_type.static_state()->TryGet(idx); in PerfettoDsImplGetInstanceLocked()
338 auto* internal_state = ds_impl->cpp_type.static_state()->TryGet(idx); in PerfettoDsImplReleaseInstanceLocked()
/external/perfetto/include/perfetto/tracing/
Dinterceptor.h266 auto* internal_state = static_state_->TryGet(data_source_instance_index_); in GetInterceptorLocked()
Ddata_source.h307 Helper::type().static_state()->TryGet(instance_index_); in GetDataSourceLocked()