/external/perfetto/src/trace_processor/ |
D | json_trace_utils_unittest.cc | 30 ASSERT_EQ(CoerceToUint32(Json::Value(42)).value_or(0), 42); in TEST() 31 ASSERT_EQ(CoerceToUint32(Json::Value("42")).value_or(0), 42); in TEST() 32 ASSERT_EQ(CoerceToInt64(Json::Value(42.1)).value_or(-1), 42); in TEST() 36 ASSERT_EQ(CoerceToInt64(Json::Value(42)).value_or(-1), 42); in TEST() 37 ASSERT_EQ(CoerceToInt64(Json::Value("42")).value_or(-1), 42); in TEST() 38 ASSERT_EQ(CoerceToInt64(Json::Value(42.1)).value_or(-1), 42); in TEST() 44 ASSERT_EQ(CoerceToNs(Json::Value(42)).value_or(-1), 42000); in TEST() 45 ASSERT_EQ(CoerceToNs(Json::Value("42")).value_or(-1), 42000); in TEST() 46 ASSERT_EQ(CoerceToNs(Json::Value(42.1)).value_or(-1), 42100); in TEST()
|
D | json_trace_parser.cc | 75 uint32_t pid = opt_pid.value_or(0); in ParseTracePacket() 76 uint32_t tid = opt_tid.value_or(pid); in ParseTracePacket()
|
D | event_tracker.cc | 215 UniquePid upid = thread.upid.value_or(0); in FlushPendingEvents() 227 UniquePid upid = thread.upid.value_or(0); in FlushPendingEvents()
|
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.observe/ |
D | value_or_const.pass.cpp | 44 static_assert(opt.value_or(y) == 2, ""); in main() 48 static_assert(opt.value_or(Y(3)) == 2, ""); in main() 53 static_assert(opt.value_or(y) == 3, ""); in main() 57 static_assert(opt.value_or(Y(3)) == 4, ""); in main() 62 assert(opt.value_or(y) == 2); in main() 66 assert(opt.value_or(Y(3)) == 2); in main() 71 assert(opt.value_or(y) == 3); in main() 75 assert(opt.value_or(Y(3)) == 4); in main()
|
D | value_or.pass.cpp | 49 assert(std::move(opt).value_or(y) == 2); in test() 54 assert(std::move(opt).value_or(Y(3)) == 2); in test() 60 assert(std::move(opt).value_or(y) == 3); in test() 65 assert(std::move(opt).value_or(Y(3)) == 4); in test()
|
/external/pdfium/xfa/fxfa/parser/ |
D | cxfa_margin.cpp | 44 return TryLeftInset().value_or(0); in GetLeftInset() 48 return TryTopInset().value_or(0); in GetTopInset() 52 return TryRightInset().value_or(0); in GetRightInset() 56 return TryBottomInset().value_or(0); in GetBottomInset()
|
D | cxfa_caption.cpp | 53 .value_or(XFA_AttributeEnum::Visible) == in IsVisible() 60 .value_or(XFA_AttributeEnum::Visible) == XFA_AttributeEnum::Hidden; in IsHidden() 66 .value_or(XFA_AttributeEnum::Left); in GetPlacementType()
|
D | cxfa_image.cpp | 48 return JSObject()->TryCData(XFA_Attribute::ContentType, true).value_or(L""); in GetContentType() 52 return JSObject()->TryCData(XFA_Attribute::Href, true).value_or(L""); in GetHref() 61 return JSObject()->TryContent(false, true).value_or(L""); in GetContent()
|
D | cxfa_para.cpp | 60 .value_or(XFA_AttributeEnum::Left); in GetHorizontalAlign() 66 .value_or(XFA_AttributeEnum::Top); in GetVerticalAlign()
|
D | cxfa_stroke.cpp | 88 .value_or(XFA_AttributeEnum::Visible); in IsVisible() 148 .value_or(CXFA_Measurement(0, XFA_Unit::In)) in GetRadius()
|
D | cxfa_box.cpp | 88 .value_or(XFA_AttributeEnum::Visible); in GetPresence() 267 -startAngle.value_or(0) * FX_PI / 180.0f, in GetPathArcOrRounded() 268 -sweepAngle.value_or(360) * FX_PI / 180.0f); in GetPathArcOrRounded()
|
D | cxfa_calculate.cpp | 49 .value_or(XFA_AttributeEnum::Error); in GetOverride()
|
D | cxfa_stipple.cpp | 49 .value_or(GetDefaultRate()); in GetRate()
|
D | cxfa_radial.cpp | 49 .value_or(XFA_AttributeEnum::ToEdge) == XFA_AttributeEnum::ToEdge; in IsToEdge()
|
D | cxfa_linear.cpp | 47 .value_or(XFA_AttributeEnum::ToRight); in GetType()
|
/external/libchrome/base/ |
D | optional_unittest.cc | 1035 EXPECT_EQ(0.0f, a.value_or(0.0f)); in TEST() 1038 EXPECT_EQ(0.1f, a.value_or(0.0f)); in TEST() 1041 EXPECT_EQ(0.0f, a.value_or(0.0f)); in TEST() 1047 constexpr int value = a.value_or(10); in TEST() 1052 constexpr int value = a.value_or(10); in TEST() 1058 EXPECT_EQ("bar", a.value_or("bar")); in TEST() 1061 EXPECT_EQ(std::string("foo"), a.value_or("bar")); in TEST() 1064 EXPECT_EQ(std::string("bar"), a.value_or("bar")); in TEST() 1069 EXPECT_TRUE(a.value_or(TestObject(1, 0.3)) == TestObject(1, 0.3)); in TEST() 1072 EXPECT_TRUE(a.value_or(TestObject(1, 0.3)) == TestObject(3, 0.1)); in TEST() [all …]
|
/external/perfetto/src/base/ |
D | optional_unittest.cc | 1049 EXPECT_EQ(0.0f, a.value_or(0.0f)); in TEST() 1052 EXPECT_EQ(0.1f, a.value_or(0.0f)); in TEST() 1055 EXPECT_EQ(0.0f, a.value_or(0.0f)); in TEST() 1061 constexpr int value = a.value_or(10); in TEST() 1066 constexpr int value = a.value_or(10); in TEST() 1072 EXPECT_EQ("bar", a.value_or("bar")); in TEST() 1075 EXPECT_EQ(std::string("foo"), a.value_or("bar")); in TEST() 1078 EXPECT_EQ(std::string("bar"), a.value_or("bar")); in TEST() 1083 EXPECT_TRUE(a.value_or(TestObject(1, 0.3)) == TestObject(1, 0.3)); in TEST() 1086 EXPECT_TRUE(a.value_or(TestObject(1, 0.3)) == TestObject(3, 0.1)); in TEST() [all …]
|
/external/webrtc/webrtc/base/ |
D | optional_unittest.cc | 417 EXPECT_EQ(a, x.value_or(Logger(42))); in TEST() 419 EXPECT_EQ(b, y.value_or(Logger(42))); in TEST() 421 EXPECT_EQ(a, Optional<Logger>(Logger(17)).value_or(b)); in TEST() 423 EXPECT_EQ(b, Optional<Logger>().value_or(b)); in TEST()
|
D | optional.h | 114 const T& value_or(const T& default_val) const { in value_or() function
|
/external/webrtc/webrtc/modules/audio_coding/acm2/ |
D | codec_manager.cc | 50 .value_or(false)) { in IsValidSendCodec() 56 return RentACodec::CodecIndexFromId(*maybe_codec_id).value_or(-1); in IsValidSendCodec()
|
/external/libtextclassifier/utils/ |
D | optional.h | 65 T const& value_or(T&& default_value) { in value_or() function
|
/external/bcc/src/cc/vendor/ |
D | optional.hpp | 567 constexpr T value_or(V&& v) const& in value_or() function in std::experimental::optional 575 OPTIONAL_MUTABLE_CONSTEXPR T value_or(V&& v) && in value_or() function in std::experimental::optional 583 T value_or(V&& v) && in value_or() function in std::experimental::optional 593 constexpr T value_or(V&& v) const in value_or() function in std::experimental::optional 696 constexpr typename decay<T>::type value_or(V&& v) const in value_or() function in std::experimental::optional
|
/external/pdfium/fxjs/xfa/ |
D | cjx_object.cpp | 266 return TryAttribute(attr, true).value_or(WideString()); in GetAttribute() 270 return TryAttribute(attr, true).value_or(WideString()); in GetAttribute() 351 return TryBoolean(eAttr, true).value_or(false); in GetBoolean() 365 return TryInteger(eAttr, true).value_or(0); in GetInteger() 407 return TryEnum(eAttr, true).value_or(XFA_AttributeEnum::Unknown); in GetEnum() 443 return TryMeasure(eAttr, true).value_or(CXFA_Measurement()); in GetMeasure() 447 return TryCData(eAttr, true).value_or(WideString()); in GetCData() 801 return TryContent(bScriptModify, true).value_or(WideString()); in GetContent()
|
D | cjx_model.cpp | 83 runtime->NewBoolean(TryNamespace().value_or(WideString()) == nameSpace)); in isCompatibleNS()
|
/external/libchrome/mojo/core/ |
D | message_pipe_dispatcher.cc | 230 *limit = receive_queue_length_limit_.value_or(MOJO_QUOTA_LIMIT_NONE); in QueryQuota() 235 *limit = receive_queue_memory_size_limit_.value_or(MOJO_QUOTA_LIMIT_NONE); in QueryQuota()
|