Home
last modified time | relevance | path

Searched refs:has_value (Results 1 – 25 of 360) sorted by relevance

12345678910>>...15

/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/
Dtuple_size_value_sfinae.pass.cpp25 constexpr bool has_value(int) { return true; } in has_value() function
26 template <class> constexpr bool has_value(long) { return false; } in has_value() function
27 template <class T> constexpr bool has_value() { return has_value<T>(0); } in has_value() function
33 static_assert(has_value<std::tuple<int> const>(), ""); in main()
34 static_assert(has_value<std::pair<int, long> volatile>(), ""); in main()
35 static_assert(!has_value<int>(), ""); in main()
36 static_assert(!has_value<const int>(), ""); in main()
37 static_assert(!has_value<volatile void>(), ""); in main()
38 static_assert(!has_value<const volatile std::tuple<int>&>(), ""); in main()
/external/libcxx/test/std/utilities/any/any.class/any.observers/
Dhas_value.pass.cpp27 static_assert(noexcept(a.has_value()), "any::has_value() must be noexcept"); in main()
32 assert(!a.has_value()); in main()
35 assert(!a.has_value()); in main()
38 assert(a.has_value()); in main()
44 assert(a.has_value()); in main()
47 assert(!a.has_value()); in main()
50 assert(a.has_value()); in main()
56 assert(a.has_value()); in main()
59 assert(!a.has_value()); in main()
62 assert(a.has_value()); in main()
/external/pdfium/xfa/fxfa/parser/
Dxfa_basic_data_unittest.cpp13 EXPECT_FALSE(result.has_value()); in TEST()
16 EXPECT_FALSE(result.has_value()); in TEST()
19 ASSERT_TRUE(result.has_value()); in TEST()
23 ASSERT_TRUE(result.has_value()); in TEST()
55 EXPECT_FALSE(result.has_value()); in TEST()
58 EXPECT_FALSE(result.has_value()); in TEST()
61 ASSERT_TRUE(result.has_value()); in TEST()
65 ASSERT_TRUE(result.has_value()); in TEST()
69 ASSERT_TRUE(result.has_value()); in TEST()
80 EXPECT_FALSE(result.has_value()); in TEST()
[all …]
/external/pdfium/core/fpdfapi/font/
Dcpdf_tounicodemap_unittest.cpp20 EXPECT_FALSE(CPDF_ToUnicodeMap::StringToCode("<100000000>").has_value()); in TEST()
21 EXPECT_FALSE(CPDF_ToUnicodeMap::StringToCode("<1abcdFFFF>").has_value()); in TEST()
24 EXPECT_FALSE(CPDF_ToUnicodeMap::StringToCode("").has_value()); in TEST()
25 EXPECT_FALSE(CPDF_ToUnicodeMap::StringToCode("<>").has_value()); in TEST()
26 EXPECT_FALSE(CPDF_ToUnicodeMap::StringToCode("12").has_value()); in TEST()
27 EXPECT_FALSE(CPDF_ToUnicodeMap::StringToCode("<12").has_value()); in TEST()
28 EXPECT_FALSE(CPDF_ToUnicodeMap::StringToCode("12>").has_value()); in TEST()
29 EXPECT_FALSE(CPDF_ToUnicodeMap::StringToCode("<1-7>").has_value()); in TEST()
30 EXPECT_FALSE(CPDF_ToUnicodeMap::StringToCode("00AB").has_value()); in TEST()
31 EXPECT_FALSE(CPDF_ToUnicodeMap::StringToCode("<00NN>").has_value()); in TEST()
Dcpdf_cmapparser_unittest.cpp44 EXPECT_FALSE(range.has_value()); in TEST()
46 EXPECT_FALSE(range.has_value()); in TEST()
50 EXPECT_FALSE(range.has_value()); in TEST()
53 ASSERT_TRUE(range.has_value()); in TEST()
64 ASSERT_TRUE(range.has_value()); in TEST()
71 ASSERT_TRUE(range.has_value()); in TEST()
/external/grpc-grpc/test/core/transport/chttp2/
Dhpack_table_test.cc191 GPR_ASSERT(r.has_value == 1); in test_find()
195 GPR_ASSERT(r.has_value == 1); in test_find()
199 GPR_ASSERT(r.has_value == 1); in test_find()
203 GPR_ASSERT(r.has_value == 0); in test_find()
207 GPR_ASSERT(r.has_value == 0); in test_find()
211 GPR_ASSERT(r.has_value == 1); in test_find()
215 GPR_ASSERT(r.has_value == 0); in test_find()
219 GPR_ASSERT(r.has_value == 1); in test_find()
223 GPR_ASSERT(r.has_value == 1); in test_find()
227 GPR_ASSERT(r.has_value == 0); in test_find()
[all …]
/external/perfetto/src/trace_processor/importers/systrace/
Dsystrace_line_parser.cc81 if (!(prev_pid.has_value() && prev_prio.has_value() && in ParseLine()
82 next_pid.has_value() && next_prio.has_value())) { in ParseLine()
96 if (!wakee_pid.has_value()) { in ParseLine()
108 if (!event_cpu.has_value()) { in ParseLine()
111 if (!event_cpu.has_value()) { in ParseLine()
129 if (!dest_tgid.has_value()) { in ParseLine()
132 if (!dest_tid.has_value()) { in ParseLine()
135 if (!id.has_value()) { in ParseLine()
138 if (!dest_node.has_value()) { in ParseLine()
146 if (!id.has_value()) { in ParseLine()
[all …]
/external/perfetto/src/profiling/perf/
Devent_config_unittest.cc49 ASSERT_TRUE(event_config.has_value()); in TEST()
59 ASSERT_TRUE(event_config.has_value()); in TEST()
70 ASSERT_TRUE(event_config.has_value()); in TEST()
79 ASSERT_FALSE(event_config.has_value()); in TEST()
89 ASSERT_TRUE(event_config.has_value()); in TEST()
99 ASSERT_TRUE(event_config.has_value()); in TEST()
110 ASSERT_TRUE(event_config.has_value()); in TEST()
120 ASSERT_TRUE(event_config.has_value()); in TEST()
/external/perfetto/src/trace_processor/importers/json/
Djson_utils_unittest.cc38 ASSERT_FALSE(CoerceToInt64(Json::Value("foo")).has_value()); in TEST()
39 ASSERT_FALSE(CoerceToInt64(Json::Value("1234!")).has_value()); in TEST()
51 ASSERT_FALSE(CoerceToTs(TimeUnit::kNs, Json::Value("foo")).has_value()); in TEST()
52 ASSERT_FALSE(CoerceToTs(TimeUnit::kNs, Json::Value("1234!")).has_value()); in TEST()
53 ASSERT_FALSE(CoerceToTs(TimeUnit::kUs, Json::Value("1234!")).has_value()); in TEST()
54 ASSERT_FALSE(CoerceToTs(TimeUnit::kMs, Json::Value("1234!")).has_value()); in TEST()
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.assign/
Dcopy.pass.cpp42 return !lhs.has_value() && !rhs.has_value(); in assign_empty()
49 return lhs.has_value() && rhs.has_value() && *lhs == *rhs; in assign_value()
85 assert(!opt2.has_value()); in main()
86 assert(!opt.has_value()); in main()
/external/libcxx/test/std/utilities/any/any.class/any.assign/
Dmove.pass.cpp51 assert(RHS::count == 2 + a2.has_value()); in test_move_assign()
55 if (a2.has_value()) in test_move_assign()
57 LIBCPP_ASSERT(!a2.has_value()); in test_move_assign()
74 assert(LHS::count == 1 + a2.has_value()); in test_move_assign_empty()
78 if (a2.has_value()) in test_move_assign_empty()
80 LIBCPP_ASSERT(!a2.has_value()); in test_move_assign_empty()
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.observe/
Dhas_value.pass.cpp26 ASSERT_NOEXCEPT(opt.has_value()); in main()
27 ASSERT_SAME_TYPE(decltype(opt.has_value()), bool); in main()
31 static_assert(!opt.has_value(), ""); in main()
35 static_assert(opt.has_value(), ""); in main()
/external/libchrome/base/
Doptional.h609 constexpr bool has_value() const { return storage_.is_populated_; }
710 if (lhs.has_value() != rhs.has_value())
712 if (!lhs.has_value())
719 if (lhs.has_value() != rhs.has_value())
721 if (!lhs.has_value())
728 if (!rhs.has_value())
730 if (!lhs.has_value())
737 if (!lhs.has_value())
739 if (!rhs.has_value())
746 if (!lhs.has_value())
[all …]
/external/v8/src/base/
Doptional.h592 constexpr bool has_value() const { return storage_.is_populated_; }
692 if (lhs.has_value() != rhs.has_value()) return false;
693 if (!lhs.has_value()) return true;
699 if (lhs.has_value() != rhs.has_value()) return true;
700 if (!lhs.has_value()) return false;
706 if (!rhs.has_value()) return false;
707 if (!lhs.has_value()) return true;
713 if (!lhs.has_value()) return true;
714 if (!rhs.has_value()) return false;
720 if (!lhs.has_value()) return false;
[all …]
/external/perfetto/include/perfetto/ext/base/
Doptional.h594 constexpr bool has_value() const { return storage_.is_populated_; }
689 if (lhs.has_value() != rhs.has_value())
691 if (!lhs.has_value())
698 if (lhs.has_value() != rhs.has_value())
700 if (!lhs.has_value())
707 if (!rhs.has_value())
709 if (!lhs.has_value())
716 if (!lhs.has_value())
718 if (!rhs.has_value())
725 if (!lhs.has_value())
[all …]
/external/perfetto/src/trace_processor/importers/common/
Dprocess_tracker.cc59 if (opt_upid.has_value()) { in EndThread()
81 PERFETTO_DCHECK(!threads->end_ts()[utid].has_value()); in GetThreadOrNull()
112 if (threads->end_ts()[utid].has_value()) in IsThreadAlive()
122 if (processes->end_ts()[current_upid].has_value()) in IsThreadAlive()
152 PERFETTO_DCHECK(!threads->end_ts()[current_utid].has_value()); in GetThreadOrNull()
183 if (!thread_table->upid()[utid].has_value()) { in UpdateThread()
214 PERFETTO_DCHECK(!process_table->start_ts()[upid].has_value()); in StartNewProcess()
224 if (opt_parent_upid.has_value()) { in StartNewProcess()
239 if (ppid.has_value()) { in SetProcessMetadata()
277 if (opt_upid.has_value()) { in UpdateProcessNameFromThreadName()
[all …]
/external/tensorflow/tensorflow/core/kernels/data/
Doptional_ops.h54 bool has_value() const { return values_ != nullptr; } in has_value() function
78 bool has_value = false; in Decode() local
79 if (!data.get_metadata(&has_value)) { in Decode()
82 if (has_value) { in Decode()
110 if (!x.has_value()) { in OptionalZerosLike()
128 if (a.has_value() != b.has_value()) { in OptionalBinaryAdd()
132 if (!a.has_value()) { in OptionalBinaryAdd()
/external/libchrome/base/test/metrics/
Dhistogram_enum_reader.cc38 const bool has_value = reader->NodeAttribute("value", &value_str); in ParseEnumFromHistogramsXml() local
40 if (!has_value) { in ParseEnumFromHistogramsXml()
54 if (has_value && !StringToInt(value_str, &value)) { in ParseEnumFromHistogramsXml()
115 if (result.has_value()) { in ReadEnumFromEnumsXml()
129 if (!result.has_value()) { in ReadEnumFromEnumsXml()
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_module_config.h81 return entry_computation_layout_.has_value(); in has_entry_computation_layout()
91 CHECK(entry_computation_layout_.has_value()); in entry_computation_layout()
98 CHECK(entry_computation_layout_.has_value()); in mutable_entry_computation_layout()
143 return static_device_assignment_.has_value(); in has_static_device_assignment()
148 CHECK(static_device_assignment_.has_value()); in static_device_assignment()
/external/v8/src/objects/
Dproperty-descriptor.h35 return desc->has_value() || desc->has_writable(); in IsDataDescriptor()
58 !has_value() && !has_get() && !has_set(); in is_empty()
62 return has_configurable() && has_enumerable() && !has_value() && in IsRegularAccessorProperty()
67 return has_configurable() && has_enumerable() && has_value() && in IsRegularDataProperty()
87 bool has_value() const { return !value_.is_null(); } in has_value() function
/external/v8/testing/
Dgmock-support.h22 bool has_value() const { return has_value_; } in has_value() function
25 DCHECK(!has_value()); in SetValue()
45 if (capture_->has_value()) *os << " which has value " << capture_->value(); in DescribeTo()
49 if (!capture_->has_value()) { in MatchAndExplain()
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.ctor/
Dmove.pass.cpp52 return (lhs.has_value() == orig.has_value()) && in constexpr_test()
53 (lhs.has_value() ? *lhs == *orig : true); in constexpr_test()
173 assert(lhs.has_value() == false); in main()
174 assert(rhs.has_value() == false); in main()
186 assert(lhs.has_value()); in main()
187 assert(rhs.has_value()); in main()
/external/pdfium/core/fxcrt/
Dbytestring_unittest.cpp661 EXPECT_FALSE(null_string.Find('a').has_value()); in TEST()
662 EXPECT_FALSE(null_string.Find('\0').has_value()); in TEST()
665 EXPECT_FALSE(empty_string.Find('a').has_value()); in TEST()
666 EXPECT_FALSE(empty_string.Find('\0').has_value()); in TEST()
671 ASSERT_TRUE(result.has_value()); in TEST()
673 EXPECT_FALSE(single_string.Find('b').has_value()); in TEST()
674 EXPECT_FALSE(single_string.Find('\0').has_value()); in TEST()
678 ASSERT_TRUE(result.has_value()); in TEST()
681 ASSERT_TRUE(result.has_value()); in TEST()
684 ASSERT_TRUE(result.has_value()); in TEST()
[all …]
/external/autotest/client/cros/
Dkernel_config.py56 def has_value(self, name, value): member in KernelConfig
73 self.has_value(name, wanted)
84 self.has_value(name, wanted)
95 self.has_value(name, wanted)
103 self.has_value(name, [None])
/external/perfetto/src/base/
Doptional_unittest.cc290 EXPECT_TRUE(second.has_value()); in TEST()
293 EXPECT_TRUE(first.has_value()); in TEST()
300 EXPECT_TRUE(second.has_value()); in TEST()
303 EXPECT_TRUE(first.has_value()); in TEST()
310 EXPECT_TRUE(second.has_value()); in TEST()
314 EXPECT_TRUE(first.has_value()); in TEST()
324 EXPECT_TRUE(second.has_value()); in TEST()
327 EXPECT_TRUE(first.has_value()); in TEST()
334 EXPECT_TRUE(second.has_value()); in TEST()
337 EXPECT_TRUE(first.has_value()); in TEST()
[all …]

12345678910>>...15