Home
last modified time | relevance | path

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

/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.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/rust/crates/grpcio-sys/grpc/third_party/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/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/perfetto/include/perfetto/tracing/internal/
Ddata_source_internal.h136 DataSourceState* TryGet(size_t n) { in TryGet() function
/external/perfetto/include/perfetto/tracing/
Dinterceptor.h258 auto* internal_state = static_state_->TryGet(data_source_instance_index_); in GetInterceptorLocked()
Ddata_source.h218 auto* internal_state = static_state_.TryGet(instance_index_); in GetDataSourceLocked()
/external/perfetto/src/tracing/internal/
Dtracing_muxer_impl.cc858 if (!static_state.TryGet(i)) in SetupDataSource()
877 if (static_state.TryGet(i)) in SetupDataSource()
1132 DataSourceState* ds_state = static_state->TryGet(inst); in DestroyStoppedTraceWritersForCurrentThread()
1494 auto* internal_state = static_state->TryGet(i); in FindDataSource()