Home
last modified time | relevance | path

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

12345678

/external/tensorflow/tensorflow/contrib/boosted_trees/lib/utils/
Dexample_test.cc57 EXPECT_FALSE(matrix[0][0].has_value()); in TEST_F()
58 EXPECT_TRUE(matrix[0][1].has_value()); in TEST_F()
60 EXPECT_TRUE(matrix[0][2].has_value()); in TEST_F()
64 EXPECT_TRUE(matrix[1][0].has_value()); in TEST_F()
66 EXPECT_FALSE(matrix[1][1].has_value()); in TEST_F()
67 EXPECT_TRUE(matrix[1][2].has_value()); in TEST_F()
71 EXPECT_TRUE(matrix[2][0].has_value()); in TEST_F()
73 EXPECT_TRUE(matrix[2][1].has_value()); in TEST_F()
75 EXPECT_TRUE(matrix[2][2].has_value()); in TEST_F()
79 EXPECT_FALSE(matrix[3][0].has_value()); in TEST_F()
[all …]
Dexamples_iterable_test.cc86 EXPECT_TRUE(example.sparse_float_features[0][0].has_value()); in TEST_F()
89 EXPECT_FALSE(example.sparse_float_features[1][0].has_value()); in TEST_F()
90 EXPECT_TRUE(example.sparse_float_features[1][1].has_value()); in TEST_F()
102 EXPECT_FALSE(example.sparse_float_features[0][0].has_value()); in TEST_F()
104 EXPECT_TRUE(example.sparse_float_features[1][0].has_value()); in TEST_F()
106 EXPECT_FALSE(example.sparse_float_features[1][1].has_value()); in TEST_F()
117 EXPECT_TRUE(example.sparse_float_features[0][0].has_value()); in TEST_F()
120 EXPECT_FALSE(example.sparse_float_features[1][0].has_value()); in TEST_F()
121 EXPECT_TRUE(example.sparse_float_features[1][1].has_value()); in TEST_F()
132 EXPECT_TRUE(example.sparse_float_features[0][0].has_value()); in TEST_F()
[all …]
/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/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/include/perfetto/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/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 …]
Doptional_unittest.cc273 EXPECT_TRUE(second.has_value()); in TEST()
276 EXPECT_TRUE(first.has_value()); in TEST()
283 EXPECT_TRUE(second.has_value()); in TEST()
286 EXPECT_TRUE(first.has_value()); in TEST()
293 EXPECT_TRUE(second.has_value()); in TEST()
297 EXPECT_TRUE(first.has_value()); in TEST()
307 EXPECT_TRUE(second.has_value()); in TEST()
310 EXPECT_TRUE(first.has_value()); in TEST()
317 EXPECT_TRUE(second.has_value()); in TEST()
320 EXPECT_TRUE(first.has_value()); in TEST()
[all …]
/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/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/tensorflow/tensorflow/compiler/xla/service/
Dhlo_module_config.h50 return entry_computation_layout_.has_value(); in has_entry_computation_layout()
60 CHECK(entry_computation_layout_.has_value()); in entry_computation_layout()
67 CHECK(entry_computation_layout_.has_value()); in mutable_entry_computation_layout()
107 return static_device_assignment_.has_value(); in has_static_device_assignment()
112 CHECK(static_device_assignment_.has_value()); in static_device_assignment()
/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/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/perfetto/src/trace_processor/
Djson_trace_utils_unittest.cc39 ASSERT_FALSE(CoerceToInt64(Json::Value("foo")).has_value()); in TEST()
40 ASSERT_FALSE(CoerceToInt64(Json::Value("1234!")).has_value()); in TEST()
47 ASSERT_FALSE(CoerceToNs(Json::Value("foo")).has_value()); in TEST()
48 ASSERT_FALSE(CoerceToNs(Json::Value("1234!")).has_value()); in TEST()
Dprocess_tracker.cc82 if (!iter_thread->upid.has_value()) { in UpdateThread()
107 if (!thread->upid.has_value()) { in UpdateThread()
135 if (ppid.has_value()) { in UpdateProcess()
177 if (thd1->upid.has_value() && !thd2->upid.has_value()) { in AssociateThreads()
183 if (thd2->upid.has_value() && !thd1->upid.has_value()) { in AssociateThreads()
189 if (thd1->upid.has_value() && thd1->upid != thd2->upid) { in AssociateThreads()
/external/pdfium/core/fxcrt/
Dbytestring_unittest.cpp611 EXPECT_FALSE(null_string.Find('a').has_value()); in TEST()
612 EXPECT_FALSE(null_string.Find('\0').has_value()); in TEST()
615 EXPECT_FALSE(empty_string.Find('a').has_value()); in TEST()
616 EXPECT_FALSE(empty_string.Find('\0').has_value()); in TEST()
621 ASSERT_TRUE(result.has_value()); in TEST()
623 EXPECT_FALSE(single_string.Find('b').has_value()); in TEST()
624 EXPECT_FALSE(single_string.Find('\0').has_value()); in TEST()
628 ASSERT_TRUE(result.has_value()); in TEST()
631 ASSERT_TRUE(result.has_value()); in TEST()
634 ASSERT_TRUE(result.has_value()); in TEST()
[all …]
/external/v8/src/
Dproperty-descriptor.h37 return desc->has_value() || desc->has_writable(); in IsDataDescriptor()
60 !has_value() && !has_get() && !has_set(); in is_empty()
64 return has_configurable() && has_enumerable() && !has_value() && in IsRegularAccessorProperty()
69 return has_configurable() && has_enumerable() && has_value() && in IsRegularDataProperty()
89 bool has_value() const { return !value_.is_null(); } in has_value() function
/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()
Dcopy.pass.cpp41 return (lhs.has_value() == rhs.has_value()) && in constexpr_test()
42 (lhs.has_value() ? *lhs == *rhs : true); in constexpr_test()
135 assert(lhs.has_value() == false); in main()
147 assert(lhs.has_value()); in main()
/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/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 …]
/external/tensorflow/tensorflow/python/data/kernel_tests/
Doptional_test.py47 self.assertTrue(self.evaluate(opt.has_value()))
55 self.assertTrue(self.evaluate(opt.has_value()))
71 self.assertTrue(self.evaluate(opt.has_value()))
89 self.assertFalse(self.evaluate(opt.has_value()))
117 self.assertFalse(self.evaluate(add_opt.has_value()))
159 self.assertFalse(self.evaluate(zeros_opt.has_value()))
196 gpu_optional_with_value_has_value = gpu_optional_with_value.has_value()
199 gpu_optional_none_has_value = gpu_optional_none.has_value()
225 gpu_nested_optional_has_value = gpu_nested_optional.has_value()
238 self.assertFalse(self.evaluate(inner_none.has_value()))
[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/pdfium/xfa/fgas/font/
Dcfgas_pdffontmgr.cpp123 if (nIndex.has_value() && !bStrictMatch) in PsNameMatchDRFontName()
126 if (!nIndex.has_value() || nIndex.value() != 0) in PsNameMatchDRFontName()
132 if (bBold != iBoldIndex.has_value()) in PsNameMatchDRFontName()
135 if (iBoldIndex.has_value()) { in PsNameMatchDRFontName()
158 if (iBoldIndex.has_value() || bItalicFont) in PsNameMatchDRFontName()

12345678