Home
last modified time | relevance | path

Searched refs:tuple (Results 1 – 25 of 2458) sorted by relevance

12345678910>>...99

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatDataDrivenTest.java125 public String format(DataDrivenNumberFormatTestData tuple) {
126 DecimalFormat fmt = createDecimalFormat(tuple);
127 String actual = fmt.format(toNumber(tuple.format));
128 String expected = tuple.output;
136 public String toPattern(DataDrivenNumberFormatTestData tuple) {
137 DecimalFormat fmt = createDecimalFormat(tuple);
139 if (tuple.toPattern != null) {
140 String expected = tuple.toPattern;
146 if (tuple.toLocalizedPattern != null) {
147 String expected = tuple.toLocalizedPattern;
[all …]
DDataDrivenNumberFormatTestUtility.java49 public String format(DataDrivenNumberFormatTestData tuple) { in format() argument
50 if (tuple.output != null && tuple.output.equals("fail")) return "fail"; in format()
60 public String toPattern(DataDrivenNumberFormatTestData tuple) { in toPattern() argument
61 if (tuple.output != null && tuple.output.equals("fail")) return "fail"; in toPattern()
71 public String parse(DataDrivenNumberFormatTestData tuple) { in parse() argument
72 if (tuple.output != null && tuple.output.equals("fail")) return "fail"; in parse()
82 public String parseCurrency(DataDrivenNumberFormatTestData tuple) { in parseCurrency() argument
83 if (tuple.output != null && tuple.output.equals("fail")) return "fail"; in parseCurrency()
93 public String select(DataDrivenNumberFormatTestData tuple) { in select() argument
94 if (tuple.output != null && tuple.output.equals("fail")) return "fail"; in select()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DNumberFormatDataDrivenTest.java128 public String format(DataDrivenNumberFormatTestData tuple) {
129 DecimalFormat fmt = createDecimalFormat(tuple);
130 String actual = fmt.format(toNumber(tuple.format));
131 String expected = tuple.output;
139 public String toPattern(DataDrivenNumberFormatTestData tuple) {
140 DecimalFormat fmt = createDecimalFormat(tuple);
142 if (tuple.toPattern != null) {
143 String expected = tuple.toPattern;
149 if (tuple.toLocalizedPattern != null) {
150 String expected = tuple.toLocalizedPattern;
[all …]
DDataDrivenNumberFormatTestUtility.java52 public String format(DataDrivenNumberFormatTestData tuple) { in format() argument
53 if (tuple.output != null && tuple.output.equals("fail")) return "fail"; in format()
63 public String toPattern(DataDrivenNumberFormatTestData tuple) { in toPattern() argument
64 if (tuple.output != null && tuple.output.equals("fail")) return "fail"; in toPattern()
74 public String parse(DataDrivenNumberFormatTestData tuple) { in parse() argument
75 if (tuple.output != null && tuple.output.equals("fail")) return "fail"; in parse()
85 public String parseCurrency(DataDrivenNumberFormatTestData tuple) { in parseCurrency() argument
86 if (tuple.output != null && tuple.output.equals("fail")) return "fail"; in parseCurrency()
96 public String select(DataDrivenNumberFormatTestData tuple) { in select() argument
97 if (tuple.output != null && tuple.output.equals("fail")) return "fail"; in select()
[all …]
/external/icu/icu4c/source/test/intltest/
Dnumfmtdatadriventest.cpp69 static void adjustDecimalFormat(const NumberFormatTestTuple& tuple, DecimalFormat& fmt, in adjustDecimalFormat() argument
71 if (tuple.minIntegerDigitsFlag) { in adjustDecimalFormat()
72 fmt.setMinimumIntegerDigits(tuple.minIntegerDigits); in adjustDecimalFormat()
74 if (tuple.maxIntegerDigitsFlag) { in adjustDecimalFormat()
75 fmt.setMaximumIntegerDigits(tuple.maxIntegerDigits); in adjustDecimalFormat()
77 if (tuple.minFractionDigitsFlag) { in adjustDecimalFormat()
78 fmt.setMinimumFractionDigits(tuple.minFractionDigits); in adjustDecimalFormat()
80 if (tuple.maxFractionDigitsFlag) { in adjustDecimalFormat()
81 fmt.setMaximumFractionDigits(tuple.maxFractionDigits); in adjustDecimalFormat()
83 if (tuple.currencyFlag) { in adjustDecimalFormat()
[all …]
/external/clang/test/CXX/temp/temp.decls/temp.variadic/
Dexample-tuple.cpp54 template<typename... Values> class tuple;
57 template<> class tuple<> { }; class
60 class tuple<Head, Tail...> : private tuple<Tail...> { class
61 typedef tuple<Tail...> inherited;
64 tuple() { } in tuple() function in tuple
68 tuple(typename add_const_reference<Head>::type v, in tuple() function in tuple
73 template<typename... VValues> tuple(const tuple<VValues...>& other) in tuple() function in tuple
76 template<typename... VValues> tuple&
77 operator=(const tuple<VValues...>& other) { in operator =()
93 tuple<> t0a; in test_tuple()
[all …]
Dexample-bind.cpp54 template<typename... Values> class tuple;
57 template<> class tuple<> { }; class
60 class tuple<Head, Tail...> : private tuple<Tail...> { class
61 typedef tuple<Tail...> inherited;
64 tuple() { } in tuple() function in tuple
68 tuple(typename add_const_reference<Head>::type v, in tuple() function in tuple
73 template<typename... VValues> tuple(const tuple<VValues...>& other) in tuple() function in tuple
76 template<typename... VValues> tuple&
77 operator=(const tuple<VValues...>& other) { in operator =()
104 tuple<typename make_tuple_result<Values>::type...>
[all …]
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/
Dtuple_cat.pass.cpp30 std::tuple<> t = std::tuple_cat(); in main()
34 std::tuple<> t1; in main()
35 std::tuple<> t2 = std::tuple_cat(t1); in main()
39 std::tuple<> t = std::tuple_cat(std::tuple<>()); in main()
43 std::tuple<> t = std::tuple_cat(std::array<int, 0>()); in main()
47 std::tuple<int> t1(1); in main()
48 std::tuple<int> t = std::tuple_cat(t1); in main()
54 constexpr std::tuple<> t = std::tuple_cat(); in main()
58 constexpr std::tuple<> t1; in main()
59 constexpr std::tuple<> t2 = std::tuple_cat(t1); in main()
[all …]
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
Dimplicit_deduction_guides.pass.cpp50 std::tuple t1(42); in test_primary_template()
51 ASSERT_SAME_TYPE(decltype(t1), std::tuple<int>); in test_primary_template()
52 std::tuple t2(x, 0.0, nullptr); in test_primary_template()
53 ASSERT_SAME_TYPE(decltype(t2), std::tuple<int, double, decltype(nullptr)>); in test_primary_template()
59 std::tuple t1(T{}); in test_primary_template()
60 ASSERT_SAME_TYPE(decltype(t1), std::tuple<T>); in test_primary_template()
63 std::tuple t2(T{}, 101l, v); in test_primary_template()
64 ASSERT_SAME_TYPE(decltype(t2), std::tuple<T, long, T>); in test_primary_template()
68 std::tuple t1(AT, A, 42); in test_primary_template()
69 ASSERT_SAME_TYPE(decltype(t1), std::tuple<int>); in test_primary_template()
[all …]
DPR31384.pass.cpp34 struct Derived : std::tuple<T> {
35 using std::tuple<T>::tuple;
37 operator std::tuple<U>() && { ++count; return {}; } in operator std::tuple<U>()
42 struct ExplicitDerived : std::tuple<T> {
43 using std::tuple<T>::tuple;
45 explicit operator std::tuple<U>() && { ++count; return {}; } in operator std::tuple<U>()
50 std::tuple<Explicit> foo = Derived<int>{42}; ((void)foo); in main()
52 std::tuple<Explicit> bar(Derived<int>{42}); ((void)bar); in main()
57 std::tuple<Implicit> foo = Derived<int>{42}; ((void)foo); in main()
59 std::tuple<Implicit> bar(Derived<int>{42}); ((void)bar); in main()
[all …]
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.rel/
Deq.pass.cpp29 typedef std::tuple<> T1; in main()
30 typedef std::tuple<> T2; in main()
37 typedef std::tuple<int> T1; in main()
38 typedef std::tuple<double> T2; in main()
45 typedef std::tuple<int> T1; in main()
46 typedef std::tuple<double> T2; in main()
53 typedef std::tuple<int, double> T1; in main()
54 typedef std::tuple<double, long> T2; in main()
61 typedef std::tuple<int, double> T1; in main()
62 typedef std::tuple<double, long> T2; in main()
[all …]
Dlt.pass.cpp41 typedef std::tuple<> T1; in main()
42 typedef std::tuple<> T2; in main()
51 typedef std::tuple<long> T1; in main()
52 typedef std::tuple<double> T2; in main()
61 typedef std::tuple<long> T1; in main()
62 typedef std::tuple<double> T2; in main()
71 typedef std::tuple<long> T1; in main()
72 typedef std::tuple<double> T2; in main()
81 typedef std::tuple<long, int> T1; in main()
82 typedef std::tuple<double, long> T2; in main()
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_sk_lookup_kern.c62 struct bpf_sock_tuple *tuple; in bpf_sk_lookup_test0() local
70 tuple = get_tuple(data, sizeof(*eth), data_end, eth->h_proto, &ipv4); in bpf_sk_lookup_test0()
71 if (!tuple || tuple + sizeof *tuple > data_end) in bpf_sk_lookup_test0()
74 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in bpf_sk_lookup_test0()
75 sk = bpf_sk_lookup_tcp(skb, tuple, tuple_len, BPF_F_CURRENT_NETNS, 0); in bpf_sk_lookup_test0()
84 struct bpf_sock_tuple tuple = {}; in bpf_sk_lookup_test1() local
87 sk = bpf_sk_lookup_tcp(skb, &tuple, sizeof(tuple), BPF_F_CURRENT_NETNS, 0); in bpf_sk_lookup_test1()
96 struct bpf_sock_tuple tuple = {}; in bpf_sk_lookup_uaf() local
100 sk = bpf_sk_lookup_tcp(skb, &tuple, sizeof(tuple), BPF_F_CURRENT_NETNS, 0); in bpf_sk_lookup_uaf()
111 struct bpf_sock_tuple tuple = {}; in bpf_sk_lookup_modptr() local
[all …]
/external/google-breakpad/src/testing/gtest/test/
Dgtest-tuple_test.cc40 using ::std::tr1::tuple;
47 StaticAssertTypeEq<int, tuple_element<0, tuple<int, char> >::type>(); in TEST()
48 StaticAssertTypeEq<int&, tuple_element<1, tuple<double, int&> >::type>(); in TEST()
49 StaticAssertTypeEq<bool, tuple_element<2, tuple<double, int, bool> >::type>(); in TEST()
55 EXPECT_EQ(0, +tuple_size<tuple<> >::value); in TEST()
56 EXPECT_EQ(1, +tuple_size<tuple<void*> >::value); in TEST()
57 EXPECT_EQ(1, +tuple_size<tuple<char> >::value); in TEST()
58 EXPECT_EQ(1, +(tuple_size<tuple<tuple<int, double> > >::value)); in TEST()
59 EXPECT_EQ(2, +(tuple_size<tuple<int&, const char> >::value)); in TEST()
60 EXPECT_EQ(3, +(tuple_size<tuple<char*, void, const bool&> >::value)); in TEST()
[all …]
/external/libcxx/include/
Dtuple2 //===--------------------------- tuple ------------------------------------===//
15 tuple synopsis
21 class tuple {
23 constexpr tuple();
24 explicit tuple(const T&...); // constexpr in C++14
26 explicit tuple(U&&...); // constexpr in C++14
27 tuple(const tuple&) = default;
28 tuple(tuple&&) = default;
30 tuple(const tuple<U...>&); // constexpr in C++14
32 tuple(tuple<U...>&&); // constexpr in C++14
[all …]
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/
Dapply_extended_types.pass.cpp368 std::tuple<A_int_0 &>, std::tuple<A_int_0 const &> in main()
369 , std::tuple<A_int_0 *>, std::tuple<A_int_0 const *> in main()
370 , std::tuple<A_wrap_0 &>, std::tuple<A_wrap_0 const &> in main()
371 , std::tuple<A_base_0 &>, std::tuple<A_base_0 const &> in main()
374 std::tuple<A_int_0>, std::tuple<A_int_0 const> in main()
375 , std::tuple<A_int_0 *>, std::tuple<A_int_0 const *> in main()
376 , std::tuple<A_wrap_0>, std::tuple<A_wrap_0 const> in main()
377 , std::tuple<A_base_0>, std::tuple<A_base_0 const> in main()
388 std::tuple<A_int_1 &, int>, std::tuple<A_int_1 const &, int> in main()
389 , std::tuple<A_int_1 *, int>, std::tuple<A_int_1 const *, int> in main()
[all …]
/external/libnl/src/lib/
Dexp.c97 void nl_cli_exp_parse_src(struct nfnl_exp *exp, int tuple, char *arg) in nl_cli_exp_parse_src() argument
101 if ((err = nfnl_exp_set_src(exp, tuple, a)) < 0) in nl_cli_exp_parse_src()
106 void nl_cli_exp_parse_dst(struct nfnl_exp *exp, int tuple, char *arg) in nl_cli_exp_parse_dst() argument
110 if ((err = nfnl_exp_set_dst(exp, tuple, a)) < 0) in nl_cli_exp_parse_dst()
115 void nl_cli_exp_parse_l4protonum(struct nfnl_exp *exp, int tuple, char *arg) in nl_cli_exp_parse_l4protonum() argument
124 nfnl_exp_set_l4protonum(exp, tuple, l4protonum); in nl_cli_exp_parse_l4protonum()
127 void nl_cli_exp_parse_src_port(struct nfnl_exp *exp, int tuple, char *arg) in nl_cli_exp_parse_src_port() argument
130 uint16_t dport = nfnl_exp_get_dst_port(exp, tuple); in nl_cli_exp_parse_src_port()
131 nfnl_exp_set_ports(exp, tuple, sport, dport); in nl_cli_exp_parse_src_port()
134 void nl_cli_exp_parse_dst_port(struct nfnl_exp *exp, int tuple, char *arg) in nl_cli_exp_parse_dst_port() argument
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dfifo_queue.cc41 void FIFOQueue::DequeueLocked(OpKernelContext* ctx, Tuple* tuple) { in DequeueLocked() argument
43 (*tuple).reserve(num_components()); in DequeueLocked()
45 (*tuple).push_back(*queues_[i][0].AccessTensor(ctx)); in DequeueLocked()
50 void FIFOQueue::TryEnqueue(const Tuple& tuple, OpKernelContext* ctx, in TryEnqueue() argument
62 [tuple, this](Attempt* attempt) EXCLUSIVE_LOCKS_REQUIRED(mu_) { in TryEnqueue()
70 queues_[i].push_back(PersistentTensor(tuple[i])); in TryEnqueue()
88 Status FIFOQueue::GetElementComponentFromBatch(const FIFOQueue::Tuple& tuple, in GetElementComponentFromBatch() argument
92 TensorShape element_shape(tuple[component].shape()); in GetElementComponentFromBatch()
96 tuple[component].dtype(), element_shape, out_tensor, &element_access)); in GetElementComponentFromBatch()
98 batch_util::CopySliceToElement(tuple[component], element_access, index)); in GetElementComponentFromBatch()
[all …]
/external/llvm/utils/unittest/googletest/include/gtest/internal/
Dgtest-tuple.h50 template <GTEST_10_TYPENAMES_(U)> friend class tuple; \
55 #define GTEST_0_TUPLE_(T) tuple<>
56 #define GTEST_1_TUPLE_(T) tuple<T##0, void, void, void, void, void, void, \
58 #define GTEST_2_TUPLE_(T) tuple<T##0, T##1, void, void, void, void, void, \
60 #define GTEST_3_TUPLE_(T) tuple<T##0, T##1, T##2, void, void, void, void, \
62 #define GTEST_4_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, void, void, void, \
64 #define GTEST_5_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, void, void, \
66 #define GTEST_6_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, void, \
68 #define GTEST_7_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, T##6, \
70 #define GTEST_8_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, T##6, \
[all …]
/external/mesa3d/src/gtest/include/gtest/internal/
Dgtest-tuple.h52 template <GTEST_10_TYPENAMES_(U)> friend class tuple; \
65 #define GTEST_0_TUPLE_(T) tuple<>
66 #define GTEST_1_TUPLE_(T) tuple<T##0, void, void, void, void, void, void, \
68 #define GTEST_2_TUPLE_(T) tuple<T##0, T##1, void, void, void, void, void, \
70 #define GTEST_3_TUPLE_(T) tuple<T##0, T##1, T##2, void, void, void, void, \
72 #define GTEST_4_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, void, void, void, \
74 #define GTEST_5_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, void, void, \
76 #define GTEST_6_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, void, \
78 #define GTEST_7_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, T##6, \
80 #define GTEST_8_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, T##6, \
[all …]
/external/google-breakpad/src/testing/gtest/include/gtest/internal/
Dgtest-tuple.h52 template <GTEST_10_TYPENAMES_(U)> friend class tuple; \
57 #define GTEST_0_TUPLE_(T) tuple<>
58 #define GTEST_1_TUPLE_(T) tuple<T##0, void, void, void, void, void, void, \
60 #define GTEST_2_TUPLE_(T) tuple<T##0, T##1, void, void, void, void, void, \
62 #define GTEST_3_TUPLE_(T) tuple<T##0, T##1, T##2, void, void, void, void, \
64 #define GTEST_4_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, void, void, void, \
66 #define GTEST_5_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, void, void, \
68 #define GTEST_6_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, void, \
70 #define GTEST_7_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, T##6, \
72 #define GTEST_8_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, T##6, \
[all …]
/external/libaom/libaom/third_party/googletest/src/googletest/include/gtest/internal/
Dgtest-tuple.h52 template <GTEST_10_TYPENAMES_(U)> friend class tuple; \
65 #define GTEST_0_TUPLE_(T) tuple<>
66 #define GTEST_1_TUPLE_(T) tuple<T##0, void, void, void, void, void, void, \
68 #define GTEST_2_TUPLE_(T) tuple<T##0, T##1, void, void, void, void, void, \
70 #define GTEST_3_TUPLE_(T) tuple<T##0, T##1, T##2, void, void, void, void, \
72 #define GTEST_4_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, void, void, void, \
74 #define GTEST_5_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, void, void, \
76 #define GTEST_6_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, void, \
78 #define GTEST_7_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, T##6, \
80 #define GTEST_8_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, T##6, \
[all …]
/external/swiftshader/third_party/LLVM/utils/unittest/googletest/include/gtest/internal/
Dgtest-tuple.h50 template <GTEST_10_TYPENAMES_(U)> friend class tuple; \
55 #define GTEST_0_TUPLE_(T) tuple<>
56 #define GTEST_1_TUPLE_(T) tuple<T##0, void, void, void, void, void, void, \
58 #define GTEST_2_TUPLE_(T) tuple<T##0, T##1, void, void, void, void, void, \
60 #define GTEST_3_TUPLE_(T) tuple<T##0, T##1, T##2, void, void, void, void, \
62 #define GTEST_4_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, void, void, void, \
64 #define GTEST_5_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, void, void, \
66 #define GTEST_6_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, void, \
68 #define GTEST_7_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, T##6, \
70 #define GTEST_8_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, T##6, \
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/googletest/include/gtest/internal/
Dgtest-tuple.h52 template <GTEST_10_TYPENAMES_(U)> friend class tuple; \
65 #define GTEST_0_TUPLE_(T) tuple<>
66 #define GTEST_1_TUPLE_(T) tuple<T##0, void, void, void, void, void, void, \
68 #define GTEST_2_TUPLE_(T) tuple<T##0, T##1, void, void, void, void, void, \
70 #define GTEST_3_TUPLE_(T) tuple<T##0, T##1, T##2, void, void, void, void, \
72 #define GTEST_4_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, void, void, void, \
74 #define GTEST_5_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, void, void, \
76 #define GTEST_6_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, void, \
78 #define GTEST_7_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, T##6, \
80 #define GTEST_8_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, T##6, \
[all …]
/external/libvpx/libvpx/third_party/googletest/src/include/gtest/internal/
Dgtest-tuple.h53 template <GTEST_10_TYPENAMES_(U)> friend class tuple; \
66 #define GTEST_0_TUPLE_(T) tuple<>
67 #define GTEST_1_TUPLE_(T) tuple<T##0, void, void, void, void, void, void, \
69 #define GTEST_2_TUPLE_(T) tuple<T##0, T##1, void, void, void, void, void, \
71 #define GTEST_3_TUPLE_(T) tuple<T##0, T##1, T##2, void, void, void, void, \
73 #define GTEST_4_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, void, void, void, \
75 #define GTEST_5_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, void, void, \
77 #define GTEST_6_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, void, \
79 #define GTEST_7_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, T##6, \
81 #define GTEST_8_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, T##4, T##5, T##6, \
[all …]

12345678910>>...99