/external/icu/icu4j/main/common_tests/src/test/java/com/ibm/icu/dev/test/format/ |
D | NumberFormatDataDrivenTest.java | 125 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 …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | NumberFormatDataDrivenTest.java | 128 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 …]
|
/external/icu/icu4c/source/test/intltest/ |
D | numfmtdatadriventest.cpp | 69 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/cronet/tot/third_party/icu/source/test/intltest/ |
D | numfmtdatadriventest.cpp | 69 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/cronet/stable/third_party/icu/source/test/intltest/ |
D | numfmtdatadriventest.cpp | 69 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/cronet/stable/third_party/libc++/src/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/ |
D | deduct.pass.cpp | 46 std::tuple t1(42); in test_primary_template() 47 ASSERT_SAME_TYPE(decltype(t1), std::tuple<int>); in test_primary_template() 48 std::tuple t2(x, 0.0, nullptr); in test_primary_template() 49 ASSERT_SAME_TYPE(decltype(t2), std::tuple<int, double, decltype(nullptr)>); in test_primary_template() 53 std::tuple t1(p1); in test_primary_template() 54 ASSERT_SAME_TYPE(decltype(t1), std::tuple<int, char>); in test_primary_template() 56 …std::pair<int, std::tuple<char, long, void*>> p2(1, std::tuple<char, long, void*>('c', 3l, nullptr… in test_primary_template() 57 std::tuple t2(p2); in test_primary_template() 58 ASSERT_SAME_TYPE(decltype(t2), std::tuple<int, std::tuple<char, long, void*>>); in test_primary_template() 62 std::tuple t3(p3); in test_primary_template() [all …]
|
D | convert_non_const_copy.pass.cpp | 37 static_assert(std::is_convertible_v<std::tuple<MutableCopy>&, std::tuple<ConvertibleFrom<MutableCop… 39 static_assert(std::is_convertible_v<std::tuple<MutableCopy, MutableCopy>&, 40 … std::tuple<ConvertibleFrom<MutableCopy>, ConvertibleFrom<MutableCopy>>>); 42 static_assert(!std::is_convertible_v<std::tuple<MutableCopy>&, std::tuple<ExplicitConstructibleFrom… 44 static_assert(!std::is_convertible_v<std::tuple<MutableCopy, MutableCopy>&, 45 … std::tuple<ConvertibleFrom<MutableCopy>, ExplicitConstructibleFrom<MutableCopy>>>); 51 std::tuple<MutableCopy> t1{1}; in test() 52 std::tuple<ConvertibleFrom<MutableCopy>> t2 = t1; in test() 59 std::tuple<MutableCopy, int> t1{1, 2}; in test() 60 std::tuple<ConvertibleFrom<MutableCopy>, int> t2 = t1; in test() [all …]
|
D | convert_const_move.pass.cpp | 38 static_assert(std::is_convertible_v<const std::tuple<ConstMove>&&, std::tuple<ConvertibleFrom<Const… 40 static_assert(std::is_convertible_v<const std::tuple<ConstMove, ConstMove>&&, 41 … std::tuple<ConvertibleFrom<ConstMove>, ConvertibleFrom<ConstMove>>>); 44 …!std::is_convertible_v<const std::tuple<MutableCopy>&&, std::tuple<ExplicitConstructibleFrom<Const… 46 static_assert(!std::is_convertible_v<const std::tuple<ConstMove, ConstMove>&&, 47 … std::tuple<ConvertibleFrom<ConstMove>, ExplicitConstructibleFrom<ConstMove>>>); 53 const std::tuple<ConstMove> t1{1}; in test() 54 std::tuple<ConvertibleFrom<ConstMove>> t2 = std::move(t1); in test() 61 const std::tuple<ConstMove, int> t1{1, 2}; in test() 62 std::tuple<ConvertibleFrom<ConstMove>, int> t2 = std::move(t1); in test() [all …]
|
/external/cronet/tot/third_party/libc++/src/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/ |
D | deduct.pass.cpp | 46 std::tuple t1(42); in test_primary_template() 47 ASSERT_SAME_TYPE(decltype(t1), std::tuple<int>); in test_primary_template() 48 std::tuple t2(x, 0.0, nullptr); in test_primary_template() 49 ASSERT_SAME_TYPE(decltype(t2), std::tuple<int, double, decltype(nullptr)>); in test_primary_template() 53 std::tuple t1(p1); in test_primary_template() 54 ASSERT_SAME_TYPE(decltype(t1), std::tuple<int, char>); in test_primary_template() 56 …std::pair<int, std::tuple<char, long, void*>> p2(1, std::tuple<char, long, void*>('c', 3l, nullptr… in test_primary_template() 57 std::tuple t2(p2); in test_primary_template() 58 ASSERT_SAME_TYPE(decltype(t2), std::tuple<int, std::tuple<char, long, void*>>); in test_primary_template() 62 std::tuple t3(p3); in test_primary_template() [all …]
|
D | convert_non_const_copy.pass.cpp | 37 static_assert(std::is_convertible_v<std::tuple<MutableCopy>&, std::tuple<ConvertibleFrom<MutableCop… 39 static_assert(std::is_convertible_v<std::tuple<MutableCopy, MutableCopy>&, 40 … std::tuple<ConvertibleFrom<MutableCopy>, ConvertibleFrom<MutableCopy>>>); 42 static_assert(!std::is_convertible_v<std::tuple<MutableCopy>&, std::tuple<ExplicitConstructibleFrom… 44 static_assert(!std::is_convertible_v<std::tuple<MutableCopy, MutableCopy>&, 45 … std::tuple<ConvertibleFrom<MutableCopy>, ExplicitConstructibleFrom<MutableCopy>>>); 51 std::tuple<MutableCopy> t1{1}; in test() 52 std::tuple<ConvertibleFrom<MutableCopy>> t2 = t1; in test() 59 std::tuple<MutableCopy, int> t1{1, 2}; in test() 60 std::tuple<ConvertibleFrom<MutableCopy>, int> t2 = t1; in test() [all …]
|
D | convert_const_move.pass.cpp | 38 static_assert(std::is_convertible_v<const std::tuple<ConstMove>&&, std::tuple<ConvertibleFrom<Const… 40 static_assert(std::is_convertible_v<const std::tuple<ConstMove, ConstMove>&&, 41 … std::tuple<ConvertibleFrom<ConstMove>, ConvertibleFrom<ConstMove>>>); 44 …!std::is_convertible_v<const std::tuple<MutableCopy>&&, std::tuple<ExplicitConstructibleFrom<Const… 46 static_assert(!std::is_convertible_v<const std::tuple<ConstMove, ConstMove>&&, 47 … std::tuple<ConvertibleFrom<ConstMove>, ExplicitConstructibleFrom<ConstMove>>>); 53 const std::tuple<ConstMove> t1{1}; in test() 54 std::tuple<ConvertibleFrom<ConstMove>> t2 = std::move(t1); in test() 61 const std::tuple<ConstMove, int> t1{1, 2}; in test() 62 std::tuple<ConvertibleFrom<ConstMove>, int> t2 = std::move(t1); in test() [all …]
|
/external/tensorflow/tensorflow/compiler/mlir/xla/tests/translate/ |
D | while.hlotxt | 30 // 1. whileOp no more have tuple as ops or return types 37 // CHECK-SAME: (%[[ARG_0:.*]]: tuple<tensor<i32>, tensor<i32>, tensor<f32>, tensor<f32>>) -> tup… 43 // CHECK-NEXT: %[[RES:.*]] = "mhlo.tuple"(%[[GTE_0]], %[[GTE_1]], %[[GTE_2]], %[[ADD]]) 44 // CHECK-NEXT: return %[[RES]] : tuple<tensor<i32>, tensor<i32>, tensor<f32>, tensor<f32>> 48 %get-tuple-element.8 = s32[] get-tuple-element((s32[], s32[], f32[], f32[]) %Arg_0.7), index=0 49 %get-tuple-element.9 = s32[] get-tuple-element((s32[], s32[], f32[], f32[]) %Arg_0.7), index=1 50 %get-tuple-element.10 = f32[] get-tuple-element((s32[], s32[], f32[], f32[]) %Arg_0.7), index=2 51 %get-tuple-element.11 = f32[] get-tuple-element((s32[], s32[], f32[], f32[]) %Arg_0.7), index=3 52 %add.12 = f32[] add(f32[] %get-tuple-element.10, f32[] %get-tuple-element.11) 53 …ROOT %tuple.13 = (s32[], s32[], f32[], f32[]) tuple(s32[] %get-tuple-element.8, s32[] %get-tuple-e… [all …]
|
D | if_conditional.hlotxt | 4 // Test importing If op with tuple args; element-size of tuple == 1 10 …%get-tuple-element.8 = f32[] get-tuple-element(%arg_tuple.7), index=0, metadata={op_name="XLA_Args… 11 %log.9 = f32[] log(%get-tuple-element.8), metadata={op_type="Log" op_name="cond/Log"} 12 ROOT %tuple.10 = (f32[]) tuple(%log.9), metadata={op_name="XLA_Retvals"} 17 …%get-tuple-element.13 = f32[] get-tuple-element(%arg_tuple.12), index=0, metadata={op_name="XLA_Ar… 18 …%exponential.14 = f32[] exponential(%get-tuple-element.13), metadata={op_type="Exp" op_name="cond/… 19 ROOT %tuple.15 = (f32[]) tuple(%exponential.14), metadata={op_name="XLA_Retvals"} 33 %tuple.5 = (f32[]) tuple(%arg0.1), metadata={op_type="If" op_name="cond/Merge_if"} 42 …%conditional.16 = (f32[]) conditional(%compare.4, %tuple.5, %tuple.5), true_computation=%then_bran… 44 …%get-tuple-element.17 = f32[] get-tuple-element(%conditional.16), index=0, metadata={op_type="If" … [all …]
|
/external/tensorflow/tensorflow/compiler/mlir/hlo/tests/ |
D | mhlo_flatten_tuple.mlir | 1 // RUN: mlir-hlo-opt -mhlo-flatten-tuple %s | FileCheck %s 61 …%0 = "mhlo.tuple"(%cst_0, %cst_1, %cst_2, %arg0) : (tensor<1xi32>, tensor<2xi32>, tensor<1xf32>, t… 63 …^bb0(%arg2: tuple<tensor<1xi32>, tensor<2xi32>, tensor<1xf32>, tensor<3xf32>>): // no predecessors 64 …%t0 = "mhlo.get_tuple_element"(%arg2) {index = 0 : i32} : (tuple<tensor<1xi32>, tensor<2xi32>, ten… 65 …%t1 = "mhlo.get_tuple_element"(%arg2) {index = 1 : i32} : (tuple<tensor<1xi32>, tensor<2xi32>, ten… 71 …^bb0(%arg2: tuple<tensor<1xi32>, tensor<2xi32>, tensor<1xf32>, tensor<3xf32>>): // no predecessors 72 …%t0 = "mhlo.get_tuple_element"(%arg2) {index = 0 : i32} : (tuple<tensor<1xi32>, tensor<2xi32>, ten… 73 …%t1 = "mhlo.get_tuple_element"(%arg2) {index = 1 : i32} : (tuple<tensor<1xi32>, tensor<2xi32>, ten… 74 …%t2 = "mhlo.get_tuple_element"(%arg2) {index = 2 : i32} : (tuple<tensor<1xi32>, tensor<2xi32>, ten… 75 …%t3 = "mhlo.get_tuple_element"(%arg2) {index = 3 : i32} : (tuple<tensor<1xi32>, tensor<2xi32>, ten… [all …]
|
/external/clang/test/CXX/temp/temp.decls/temp.variadic/ |
D | example-tuple.cpp | 54 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 …]
|
D | example-bind.cpp | 54 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.cnstr/ |
D | implicit_deduction_guides.pass.cpp | 50 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 …]
|
/external/cronet/stable/third_party/libc++/src/test/std/utilities/tuple/tuple.tuple/tuple.creation/ |
D | tuple_cat.pass.cpp | 37 std::tuple<> t = std::tuple_cat(); in main() 41 std::tuple<> t1; in main() 42 std::tuple<> t2 = std::tuple_cat(t1); in main() 46 std::tuple<> t = std::tuple_cat(std::tuple<>()); in main() 50 std::tuple<> t = std::tuple_cat(std::array<int, 0>()); in main() 54 std::tuple<int> t1(1); in main() 55 std::tuple<int> t = std::tuple_cat(t1); in main() 61 constexpr std::tuple<> t = std::tuple_cat(); in main() 65 constexpr std::tuple<> t1; in main() 66 constexpr std::tuple<> t2 = std::tuple_cat(t1); in main() [all …]
|
/external/cronet/tot/third_party/libc++/src/test/std/utilities/tuple/tuple.tuple/tuple.creation/ |
D | tuple_cat.pass.cpp | 37 std::tuple<> t = std::tuple_cat(); in main() 41 std::tuple<> t1; in main() 42 std::tuple<> t2 = std::tuple_cat(t1); in main() 46 std::tuple<> t = std::tuple_cat(std::tuple<>()); in main() 50 std::tuple<> t = std::tuple_cat(std::array<int, 0>()); in main() 54 std::tuple<int> t1(1); in main() 55 std::tuple<int> t = std::tuple_cat(t1); in main() 61 constexpr std::tuple<> t = std::tuple_cat(); in main() 65 constexpr std::tuple<> t1; in main() 66 constexpr std::tuple<> t2 = std::tuple_cat(t1); in main() [all …]
|
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/ |
D | tuple_cat.pass.cpp | 30 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/tensorflow/tensorflow/compiler/xla/service/spmd/ |
D | schedule_aware_collective_ops_cse_test.cc | 60 HloInstruction* tuple = module->entry_computation()->root_instruction(); in TEST_F() local 61 EXPECT_EQ(tuple->opcode(), HloOpcode::kTuple); in TEST_F() 62 EXPECT_EQ(tuple->operand_count(), 2); in TEST_F() 63 EXPECT_EQ(tuple->operand(0), tuple->operand(1)); in TEST_F() 81 HloInstruction* tuple = module->entry_computation()->root_instruction(); in TEST_F() local 82 EXPECT_EQ(tuple->opcode(), HloOpcode::kTuple); in TEST_F() 83 EXPECT_EQ(tuple->operand_count(), 2); in TEST_F() 84 EXPECT_EQ(tuple->operand(0), tuple->operand(1)); in TEST_F() 104 HloInstruction* tuple = module->entry_computation()->root_instruction(); in TEST_F() local 105 EXPECT_EQ(tuple->opcode(), HloOpcode::kTuple); in TEST_F() [all …]
|
/external/cronet/tot/third_party/libc++/src/test/std/utilities/tuple/tuple.tuple/tuple.rel/ |
D | eq.pass.cpp | 28 typedef std::tuple<> T1; in main() 29 typedef std::tuple<> T2; in main() 36 typedef std::tuple<int> T1; in main() 37 typedef std::tuple<double> T2; in main() 44 typedef std::tuple<int> T1; in main() 45 typedef std::tuple<double> T2; in main() 52 typedef std::tuple<int, double> T1; in main() 53 typedef std::tuple<double, long> T2; in main() 60 typedef std::tuple<int, double> T1; in main() 61 typedef std::tuple<double, long> T2; in main() [all …]
|
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.rel/ |
D | eq.pass.cpp | 29 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 …]
|
/external/cronet/stable/third_party/libc++/src/test/std/utilities/tuple/tuple.tuple/tuple.rel/ |
D | eq.pass.cpp | 28 typedef std::tuple<> T1; in main() 29 typedef std::tuple<> T2; in main() 36 typedef std::tuple<int> T1; in main() 37 typedef std::tuple<double> T2; in main() 44 typedef std::tuple<int> T1; in main() 45 typedef std::tuple<double> T2; in main() 52 typedef std::tuple<int, double> T1; in main() 53 typedef std::tuple<double, long> T2; in main() 60 typedef std::tuple<int, double> T1; in main() 61 typedef std::tuple<double, long> T2; in main() [all …]
|
/external/linux-kselftest/tools/testing/selftests/bpf/progs/ |
D | test_sk_lookup_kern.c | 61 struct bpf_sock_tuple *tuple; in sk_lookup_success() local 69 tuple = get_tuple(data, sizeof(*eth), data_end, eth->h_proto, &ipv4); in sk_lookup_success() 70 if (!tuple || tuple + sizeof *tuple > data_end) in sk_lookup_success() 73 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in sk_lookup_success() 74 sk = bpf_sk_lookup_tcp(skb, tuple, tuple_len, BPF_F_CURRENT_NETNS, 0); in sk_lookup_success() 84 struct bpf_sock_tuple tuple = {}; in sk_lookup_success_simple() local 87 sk = bpf_sk_lookup_tcp(skb, &tuple, sizeof(tuple), BPF_F_CURRENT_NETNS, 0); in sk_lookup_success_simple() 96 struct bpf_sock_tuple tuple = {}; in err_use_after_free() local 100 sk = bpf_sk_lookup_tcp(skb, &tuple, sizeof(tuple), BPF_F_CURRENT_NETNS, 0); in err_use_after_free() 111 struct bpf_sock_tuple tuple = {}; in err_modify_sk_pointer() local [all …]
|