Home
last modified time | relevance | path

Searched refs:Pair (Results 1 – 25 of 415) sorted by relevance

12345678910>>...17

/external/junit-params/src/test/java/junitparams/internal/
DTestMethodTest.java99 public void testVarargsCustomClass(Pair... pairs){ in testVarargsCustomClass()
107 new Object[]{new Pair(0, 0), new Pair(1, 1), new Pair(2, 3)} in parametersForTestVarargsCustomClass()
113 public void testVarargsMoreArgs(int sumOfX, int sumOfY, Pair... pairs){ in testVarargsMoreArgs()
116 for (Pair pair : pairs) { in testVarargsMoreArgs()
125 …w Object[]{new Object[]{40, 50, new Pair(17, 21), new Pair(12, 18), new Pair(11, 11)}, new Object[… in parametersForTestVarargsMoreArgs()
126 15), new Pair(7, 5)}}; in parametersForTestVarargsMoreArgs()
131 public void testVargsMoreArgsOfTheSameType(Pair sum, Pair... pairs) { in testVargsMoreArgsOfTheSameType()
137 …n new Object[]{new Object[]{new Pair(10, 30), new Pair(7, 17), new Pair(3, 13)}, new Object[]{new in parametersForTestVargsMoreArgsOfTheSameType()
138 21), new Pair(2, 19)}}; in parametersForTestVargsMoreArgsOfTheSameType()
154 private class Pair{ class in TestMethodTest
[all …]
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/lz4/
DBlockLZ4CompressorOutputStreamTest.java34 BlockLZ4CompressorOutputStream.Pair p = new BlockLZ4CompressorOutputStream.Pair(); in pairSeesBackReferenceWhenSet()
42 BlockLZ4CompressorOutputStream.Pair p = new BlockLZ4CompressorOutputStream.Pair(); in canWriteBackReferenceFollowedByLongLiteral()
53 BlockLZ4CompressorOutputStream.Pair p = new BlockLZ4CompressorOutputStream.Pair(); in canWriteBackReferenceFollowedByShortLiteralIfOffsetIsBigEnough()
61 BlockLZ4CompressorOutputStream.Pair p = new BlockLZ4CompressorOutputStream.Pair(); in canWriteBackReferenceFollowedByShortLiteralIfLengthIsBigEnough()
68 BlockLZ4CompressorOutputStream.Pair p = new BlockLZ4CompressorOutputStream.Pair(); in cantWriteBackReferenceFollowedByLiteralThatIsTooShort()
75 BlockLZ4CompressorOutputStream.Pair p = new BlockLZ4CompressorOutputStream.Pair(); in cantWriteBackReferenceIfAccumulatedOffsetIsTooShort()
82 BlockLZ4CompressorOutputStream.Pair p = new BlockLZ4CompressorOutputStream.Pair(); in pairAccumulatesLengths()
92 BlockLZ4CompressorOutputStream.Pair p = new BlockLZ4CompressorOutputStream.Pair(); in canWritePairWithoutLiterals()
101 BlockLZ4CompressorOutputStream.Pair p = new BlockLZ4CompressorOutputStream.Pair(); in writesCorrectSizeFor19ByteLengthBackReference()
110 BlockLZ4CompressorOutputStream.Pair p = new BlockLZ4CompressorOutputStream.Pair(); in writesCorrectSizeFor273ByteLengthBackReference()
[all …]
/external/cldr/tools/java/org/unicode/cldr/util/
DPair.java17 public final class Pair<T extends Comparable<T>, U extends Comparable<U>> implements java.lang.Comp… class
24 public static <T extends Comparable<T>, U extends Comparable<U>> Pair<T, U> of(T arg0, U arg1) { in of()
25 return new Pair<T, U>(arg0, arg1); in of()
28 …public static <T extends Comparable<T>, U extends Comparable<U>> Pair<T, U> ofFrozen(T arg0, U arg… in ofFrozen()
32 public Pair<T, U> setFirst(T first) { in setFirst()
44 public Pair<T, U> setSecond(U second) { in setSecond()
56 public Pair<T, U> set(Pair<T, U> name) { in set()
62 public Pair(T first, U second) { in Pair() method in Pair
67 public Pair() { in Pair() method in Pair
76 Pair<?, ?> that = (Pair<?, ?>) other; in equals()
[all …]
/external/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.members/
Dconstruct_pair.pass.cpp37 using Pair = std::pair<T, U>; in test_no_inner_alloc() typedef
38 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc()
41 Pair * ptr = (Pair*)std::malloc(sizeof(Pair)); in test_no_inner_alloc()
60 using Pair = std::pair<T, U>; in test_no_inner_alloc() typedef
61 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc()
64 Pair * ptr = (Pair*)std::malloc(sizeof(Pair)); in test_no_inner_alloc()
89 using Pair = std::pair<T, U>; in test_with_inner_alloc() typedef
90 using Outer = CountingAllocator<Pair, 1>; in test_with_inner_alloc()
91 using Inner = CountingAllocator<Pair, 2>; in test_with_inner_alloc()
96 Pair * ptr = (Pair*)std::malloc(sizeof(Pair)); in test_with_inner_alloc()
[all …]
Dconstruct_pair_rvalue.pass.cpp37 using Pair = std::pair<T, U>; in test_no_inner_alloc() typedef
41 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc()
44 Pair * ptr = (Pair*)std::malloc(sizeof(Pair)); in test_no_inner_alloc()
64 using Pair = std::pair<T, U>; in test_no_inner_alloc() typedef
68 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc()
71 Pair * ptr = (Pair*)std::malloc(sizeof(Pair)); in test_no_inner_alloc()
97 using Pair = std::pair<T, U>; in test_with_inner_alloc() typedef
101 using Outer = CountingAllocator<Pair, 1>; in test_with_inner_alloc()
102 using Inner = CountingAllocator<Pair, 2>; in test_with_inner_alloc()
107 Pair * ptr = (Pair*)std::malloc(sizeof(Pair)); in test_with_inner_alloc()
[all …]
Dconstruct_pair_piecewise.pass.cpp38 using Pair = std::pair<T, U>; in test_no_inner_alloc() typedef
41 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc()
44 Pair * ptr = (Pair*)std::malloc(sizeof(Pair)); in test_no_inner_alloc()
65 using Pair = std::pair<T, U>; in test_no_inner_alloc() typedef
68 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc()
71 Pair * ptr = (Pair*)std::malloc(sizeof(Pair)); in test_no_inner_alloc()
98 using Pair = std::pair<T, U>; in test_with_inner_alloc() typedef
101 using Outer = CountingAllocator<Pair, 1>; in test_with_inner_alloc()
102 using Inner = CountingAllocator<Pair, 2>; in test_with_inner_alloc()
107 Pair * ptr = (Pair*)std::malloc(sizeof(Pair)); in test_with_inner_alloc()
[all …]
Dconstruct_pair_const_lvalue_pair.pass.cpp37 using Pair = std::pair<T, U>; in test_no_inner_alloc() typedef
41 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc()
44 Pair * ptr = (Pair*)std::malloc(sizeof(Pair)); in test_no_inner_alloc()
64 using Pair = std::pair<T, U>; in test_no_inner_alloc() typedef
68 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc()
71 Pair * ptr = (Pair*)std::malloc(sizeof(Pair)); in test_no_inner_alloc()
97 using Pair = std::pair<T, U>; in test_with_inner_alloc() typedef
101 using Outer = CountingAllocator<Pair, 1>; in test_with_inner_alloc()
102 using Inner = CountingAllocator<Pair, 2>; in test_with_inner_alloc()
107 Pair * ptr = (Pair*)std::malloc(sizeof(Pair)); in test_with_inner_alloc()
[all …]
Dconstruct_pair_values.pass.cpp37 using Pair = std::pair<T, U>; in test_no_inner_alloc() typedef
40 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc()
43 Pair * ptr = (Pair*)std::malloc(sizeof(Pair)); in test_no_inner_alloc()
62 using Pair = std::pair<T, U>; in test_no_inner_alloc() typedef
65 using Alloc = CountingAllocator<Pair>; in test_no_inner_alloc()
68 Pair * ptr = (Pair*)std::malloc(sizeof(Pair)); in test_no_inner_alloc()
93 using Pair = std::pair<T, U>; in test_with_inner_alloc() typedef
96 using Outer = CountingAllocator<Pair, 1>; in test_with_inner_alloc()
97 using Inner = CountingAllocator<Pair, 2>; in test_with_inner_alloc()
102 Pair * ptr = (Pair*)std::malloc(sizeof(Pair)); in test_with_inner_alloc()
[all …]
/external/llvm/unittests/ADT/
DPointerIntPairTest.cpp23 PointerIntPair<S *, 2> Pair(&s, 1U); in TEST() local
24 EXPECT_EQ(&s, Pair.getPointer()); in TEST()
25 EXPECT_EQ(1U, Pair.getInt()); in TEST()
27 Pair.setInt(2); in TEST()
28 EXPECT_EQ(&s, Pair.getPointer()); in TEST()
29 EXPECT_EQ(2U, Pair.getInt()); in TEST()
31 Pair.setPointer(nullptr); in TEST()
32 EXPECT_EQ(nullptr, Pair.getPointer()); in TEST()
33 EXPECT_EQ(2U, Pair.getInt()); in TEST()
35 Pair.setPointerAndInt(&s, 3U); in TEST()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/
DPointerIntPairTest.cpp23 PointerIntPair<S *, 2> Pair(&s, 1U); in TEST() local
24 EXPECT_EQ(&s, Pair.getPointer()); in TEST()
25 EXPECT_EQ(1U, Pair.getInt()); in TEST()
27 Pair.setInt(2); in TEST()
28 EXPECT_EQ(&s, Pair.getPointer()); in TEST()
29 EXPECT_EQ(2U, Pair.getInt()); in TEST()
31 Pair.setPointer(nullptr); in TEST()
32 EXPECT_EQ(nullptr, Pair.getPointer()); in TEST()
33 EXPECT_EQ(2U, Pair.getInt()); in TEST()
35 Pair.setPointerAndInt(&s, 3U); in TEST()
[all …]
/external/grpc-grpc/test/cpp/ext/filters/census/
Dstats_plugin_end2end_test.cc144 ::testing::UnorderedElementsAre(::testing::Pair( in TEST_F()
147 ::testing::UnorderedElementsAre(::testing::Pair( in TEST_F()
151 ::testing::Pair(::testing::ElementsAre("OK"), 1), in TEST_F()
152 ::testing::Pair(::testing::ElementsAre("CANCELLED"), 1), in TEST_F()
153 ::testing::Pair(::testing::ElementsAre("UNKNOWN"), 1), in TEST_F()
154 ::testing::Pair(::testing::ElementsAre("INVALID_ARGUMENT"), 1), in TEST_F()
155 ::testing::Pair(::testing::ElementsAre("DEADLINE_EXCEEDED"), 1), in TEST_F()
156 ::testing::Pair(::testing::ElementsAre("NOT_FOUND"), 1), in TEST_F()
157 ::testing::Pair(::testing::ElementsAre("ALREADY_EXISTS"), 1), in TEST_F()
158 ::testing::Pair(::testing::ElementsAre("PERMISSION_DENIED"), 1), in TEST_F()
[all …]
/external/tensorflow/tensorflow/lite/testing/
Dsplit_test.cc25 using ::testing::Pair;
29 ElementsAre(Pair(0, 4), Pair(6, 12), Pair(14, 19))); in TEST()
31 ElementsAre(Pair(0, 5), Pair(6, 13), Pair(14, 19))); in TEST()
32 EXPECT_THAT(SplitToPos("test", ":"), ElementsAre(Pair(0, 4))); in TEST()
33 EXPECT_THAT(SplitToPos("test ", ":"), ElementsAre(Pair(0, 5))); in TEST()
35 EXPECT_THAT(SplitToPos("test ", ""), ElementsAre(Pair(0, 5))); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/tools/llvm-exegesis/X86/
DAnalysisTest.cpp14 using testing::Pair;
75 EXPECT_THAT(Pressure, UnorderedElementsAre(Pair(P0Idx, 2.0))); in TEST_F()
82 UnorderedElementsAre(Pair(P0Idx, 1.0), Pair(P5Idx, 1.0))); in TEST_F()
89 UnorderedElementsAre(Pair(P0Idx, 1.0), Pair(P1Idx, 1.0), in TEST_F()
90 Pair(P5Idx, 1.0), Pair(P6Idx, 1.0))); in TEST_F()
97 UnorderedElementsAre(Pair(P0Idx, 1.0), Pair(P1Idx, 1.0), in TEST_F()
98 Pair(P5Idx, 1.0), Pair(P6Idx, 1.0))); in TEST_F()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/lz4/
DBlockLZ4CompressorOutputStream.java86 private Deque<Pair> pairs = new LinkedList<>();
184 Pair last = writeBlocksAndReturnUnfinishedPair(block.getLength()); in addLiteralBlock()
190 Pair last = writeBlocksAndReturnUnfinishedPair(block.getLength()); in addBackReference()
196 private Pair writeBlocksAndReturnUnfinishedPair(int length) throws IOException { in writeBlocksAndReturnUnfinishedPair()
198 Pair last = pairs.peekLast(); in writeBlocksAndReturnUnfinishedPair()
200 last = new Pair(); in writeBlocksAndReturnUnfinishedPair()
288 for (Iterator<Pair> it = pairs.descendingIterator(); it.hasNext(); ) { in clearUnusedPairs()
289 Pair p = it.next(); in clearUnusedPairs()
298 Pair p = pairs.peekFirst(); in clearUnusedPairs()
309 for (Pair p : pairs) { in writeFinalLiteralBlock()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowPairTest.java5 import android.util.Pair;
15 Pair<String, Integer> pair = new Pair<>("a", 1); in testConstructor()
22 Pair<String, String> p = Pair.create("Foo", "Bar"); in testStaticCreate()
29 assertThat(Pair.create("1", 2)).isEqualTo(Pair.create("1", 2)); in testEquals()
34 assertThat(Pair.create("1", 2).hashCode()).isEqualTo(Pair.create("1", 2).hashCode()); in testHash()
/external/skia/src/core/
DSkPtrRecorder.cpp11 Pair* p = fList.begin(); in reset()
12 Pair* stop = fList.end(); in reset()
20 bool SkPtrSet::Less(const Pair& a, const Pair& b) { in Less()
30 Pair pair; in find()
33 int index = SkTSearch<Pair, Less>(fList.begin(), count, pair, sizeof(pair)); in find()
46 Pair pair; in add()
49 int index = SkTSearch<Pair, Less>(fList.begin(), count, pair, sizeof(pair)); in add()
65 const Pair* p = fList.begin(); in copyToArray()
/external/skqp/src/core/
DSkPtrRecorder.cpp11 Pair* p = fList.begin(); in reset()
12 Pair* stop = fList.end(); in reset()
20 bool SkPtrSet::Less(const Pair& a, const Pair& b) { in Less()
30 Pair pair; in find()
33 int index = SkTSearch<Pair, Less>(fList.begin(), count, pair, sizeof(pair)); in find()
46 Pair pair; in add()
49 int index = SkTSearch<Pair, Less>(fList.begin(), count, pair, sizeof(pair)); in add()
65 const Pair* p = fList.begin(); in copyToArray()
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/SROA/
Ddbg-addr-diamond.ll8 %struct.Pair = type { i32, i32 }
10 @pair = internal global %struct.Pair zeroinitializer
15 %p = alloca %struct.Pair, align 4
16 %0 = bitcast %struct.Pair* %p to i8*, !dbg !25
17 …call void @llvm.dbg.addr(metadata %struct.Pair* %p, metadata !20, metadata !DIExpression()), !dbg …
18 %x = getelementptr inbounds %struct.Pair, %struct.Pair* %p, i32 0, i32 0, !dbg !27
20 %y = getelementptr inbounds %struct.Pair, %struct.Pair* %p, i32 0, i32 1, !dbg !34
26 %x1 = getelementptr inbounds %struct.Pair, %struct.Pair* %p, i32 0, i32 0, !dbg !40
28 %y2 = getelementptr inbounds %struct.Pair, %struct.Pair* %p, i32 0, i32 1, !dbg !43
33 %x3 = getelementptr inbounds %struct.Pair, %struct.Pair* %p, i32 0, i32 0, !dbg !46
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DPair.java19 public class Pair<F, S> { class
23 protected Pair(F first, S second) { in Pair() method in Pair
34 public static <F, S> Pair<F, S> of(F first, S second) { in of()
38 return new Pair<F, S>(first, second); in of()
46 if (!(other instanceof Pair)) { in equals()
49 Pair<?, ?> rhs = (Pair<?, ?>) other; in equals()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DPair.java17 public class Pair<F, S> { class
21 protected Pair(F first, S second) { in Pair() method in Pair
32 public static <F, S> Pair<F, S> of(F first, S second) { in of()
36 return new Pair<F, S>(first, second); in of()
44 if (!(other instanceof Pair)) { in equals()
47 Pair<?, ?> rhs = (Pair<?, ?>) other; in equals()
/external/libchrome/mojo/public/java/system/src/org/chromium/mojo/system/
DPair.java14 public class Pair<F, S> { class
25 public Pair(F first, S second) { in Pair() method in Pair
42 if (!(o instanceof Pair)) { in equals()
45 Pair<?, ?> p = (Pair<?, ?>) o; in equals()
64 public static <A, B> Pair<A, B> create(A a, B b) { in create()
65 return new Pair<A, B>(a, b); in create()
/external/robolectric-shadows/utils/src/main/java/org/robolectric/util/
DPair.java25 public class Pair<F, S> { class
29 public Pair(F first, S second) { in Pair() method in Pair
36 if (!(o instanceof Pair)) { in equals()
39 Pair<?, ?> p = (Pair<?, ?>) o; in equals()
48 public static <A, B> Pair <A, B> create(A a, B b) { in create()
49 return new Pair<>(a, b); in create()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DLegacyManifestParser.java47 import android.util.Pair;
72 private static final List<Pair<String, Integer>> APPLICATION_FLAGS =
74 Pair.create("android:allowBackup", FLAG_ALLOW_BACKUP),
75 Pair.create("android:allowClearUserData", FLAG_ALLOW_CLEAR_USER_DATA),
76 Pair.create("android:allowTaskReparenting", FLAG_ALLOW_TASK_REPARENTING),
77 Pair.create("android:debuggable", FLAG_DEBUGGABLE),
78 Pair.create("android:hasCode", FLAG_HAS_CODE),
79 Pair.create("android:killAfterRestore", FLAG_KILL_AFTER_RESTORE),
80 Pair.create("android:persistent", FLAG_PERSISTENT),
81 Pair.create("android:resizeable", FLAG_RESIZEABLE_FOR_SCREENS),
[all …]
/external/swiftshader/third_party/LLVM/lib/AsmParser/
DLLLexer.cpp80 uint64_t Pair[2]) { in HexToIntPair()
81 Pair[0] = 0; in HexToIntPair()
84 Pair[0] *= 16; in HexToIntPair()
87 Pair[0] += C-'0'; in HexToIntPair()
89 Pair[0] += C-'A'+10; in HexToIntPair()
91 Pair[0] += C-'a'+10; in HexToIntPair()
93 Pair[1] = 0; in HexToIntPair()
95 Pair[1] *= 16; in HexToIntPair()
98 Pair[1] += C-'0'; in HexToIntPair()
100 Pair[1] += C-'A'+10; in HexToIntPair()
[all …]
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
DAttrData.java8 private final List<Pair> pairs;
10 public AttrData(String name, String format, List<Pair> pairs) { in AttrData()
26 for (Pair pair : pairs) { in getValueFor()
38 for (Pair pair : pairs) { in isValue()
54 for (Pair p : pairs) { in toString()
66 public static class Pair { class in AttrData
70 public Pair(String name, String value) { in Pair() method in AttrData.Pair

12345678910>>...17