Searched refs:Pair (Results 1 - 25 of 210) sorted by relevance

123456789

/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowPair.java7 import android.util.Pair;
12 * Shadow of {@code Pair}
15 @Implements(Pair.class)
17 @RealObject private Pair realPair;
24 public static <F, S> Pair<F, S> create(F f, S s) {
25 return new Pair<F, S>(f, s);
36 if (!(o instanceof Pair)) return false;
37 final Pair other = (Pair) o;
41 private static void setFields(Pair
[all...]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
H A DPair.java19 public class Pair<F, S> { class
23 protected Pair(F first, S second) { method in class:Pair
34 public static <F, S> Pair<F, S> of(F first, S second) {
36 throw new IllegalArgumentException("Pair.of requires non null values.");
38 return new Pair<F, S>(first, second);
46 if (!(other instanceof Pair)) {
49 Pair<?, ?> rhs = (Pair<?, ?>) other;
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DPair.java17 public class Pair<F, S> { class
21 protected Pair(F first, S second) { method in class:Pair
32 public static <F, S> Pair<F, S> of(F first, S second) {
34 throw new IllegalArgumentException("Pair.of requires non null values.");
36 return new Pair<F, S>(first, second);
44 if (!(other instanceof Pair)) {
47 Pair<?, ?> rhs = (Pair<?, ?>) other;
/external/libmojo/mojo/public/java/system/src/org/chromium/mojo/system/
H A DPair.java14 public class Pair<F, S> { class
25 public Pair(F first, S second) { method in class:Pair
42 if (!(o instanceof Pair)) {
45 Pair<?, ?> p = (Pair<?, ?>) o;
64 public static <A, B> Pair<A, B> create(A a, B b) {
65 return new Pair<A, B>(a, b);
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
H A DPairTest.java10 import android.util.Pair;
17 Pair<String, Integer> pair = new Pair<String, Integer>("a", 1);
24 Pair<String, String> p = Pair.create("Foo", "Bar");
31 assertThat(Pair.create("1", 2), equalTo(Pair.create("1", 2)));
36 assertThat(Pair.create("1", 2).hashCode(), equalTo(Pair.create("1", 2).hashCode()));
/external/skia/src/core/
H A DSkPtrRecorder.cpp11 Pair* p = fList.begin();
12 Pair* stop = fList.end();
20 bool SkPtrSet::Less(const Pair& a, const Pair& b) {
30 Pair pair;
33 int index = SkTSearch<Pair, Less>(fList.begin(), count, pair, sizeof(pair));
46 Pair pair;
49 int index = SkTSearch<Pair, Less>(fList.begin(), count, pair, sizeof(pair));
65 const Pair* p = fList.begin();
H A DSkPtrRecorder.h86 struct Pair { struct in class:SkPtrSet
95 SkTDArray<Pair> fList;
97 static bool Less(const Pair& a, const Pair& b);
/external/llvm/unittests/ADT/
H A DPointerIntPairTest.cpp23 PointerIntPair<S *, 2> Pair(&s, 1U);
24 EXPECT_EQ(&s, Pair.getPointer());
25 EXPECT_EQ(1U, Pair.getInt());
27 Pair.setInt(2);
28 EXPECT_EQ(&s, Pair.getPointer());
29 EXPECT_EQ(2U, Pair.getInt());
31 Pair.setPointer(nullptr);
32 EXPECT_EQ(nullptr, Pair.getPointer());
33 EXPECT_EQ(2U, Pair.getInt());
35 Pair
68 PointerIntPair<float *, 2> Pair; local
[all...]
/external/junit-params/src/test/java/junitparams/internal/
H A DTestMethodTest.java99 public void testVarargsCustomClass(Pair... pairs){
107 new Object[]{new Pair(0, 0), new Pair(1, 1), new Pair(2, 3)}
113 public void testVarargsMoreArgs(int sumOfX, int sumOfY, Pair... pairs){
116 for (Pair pair : pairs) {
125 return new Object[]{new Object[]{40, 50, new Pair(17, 21), new Pair(12, 18), new Pair(11, 11)}, new Object[]{10, 20, new Pair(
154 private class Pair{ class in class:TestMethodTest
156 public Pair(int x, int y){ method in class:TestMethodTest.Pair
[all...]
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/xy/
H A DXYSeries.java19 import android.util.Pair;
25 public interface XYSeries extends Series<Pair<Number, Number>> {
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/
H A DPair.java16 * Pair of two objects.
21 public final class Pair<L, R> { class
30 public Pair(L left, R right) { method in class:Pair
45 if (!(o instanceof Pair<?, ?>)) {
48 Pair<?, ?> other = (Pair<?, ?>) o;
78 public static <L, R> Pair<L, R> create(L left, R right) {
79 return new Pair<L, R>(left, right);
/external/testng/src/main/java/org/testng/internal/collections/
H A DPair.java9 public class Pair<A, B> { class
13 public Pair(A first, B second) { method in class:Pair
46 final Pair other = (Pair) obj;
66 public static <A, B> Pair<A, B> create(A first, B second) {
70 public static <A, B> Pair<A, B> of(A a, B b) {
71 return new Pair<>(a, b);
/external/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.members/
H A Dconstruct_pair.pass.cpp37 using Pair = std::pair<T, U>;
38 using Alloc = CountingAllocator<Pair>;
41 Pair * ptr = (Pair*)std::malloc(sizeof(Pair));
59 using Pair = std::pair<T, U>;
60 using Alloc = CountingAllocator<Pair>;
63 Pair * ptr = (Pair*)std::malloc(sizeof(Pair));
[all...]
H A Dconstruct_pair_const_lvalue_pair.pass.cpp37 using Pair = std::pair<T, U>;
41 using Alloc = CountingAllocator<Pair>;
44 Pair * ptr = (Pair*)std::malloc(sizeof(Pair));
64 using Pair = std::pair<T, U>;
68 using Alloc = CountingAllocator<Pair>;
71 Pair * ptr = (Pair*)std::malloc(sizeof(Pair));
[all...]
H A Dconstruct_pair_piecewise.pass.cpp38 using Pair = std::pair<T, U>;
41 using Alloc = CountingAllocator<Pair>;
44 Pair * ptr = (Pair*)std::malloc(sizeof(Pair));
65 using Pair = std::pair<T, U>;
68 using Alloc = CountingAllocator<Pair>;
71 Pair * ptr = (Pair*)std::malloc(sizeof(Pair));
[all...]
H A Dconstruct_pair_rvalue.pass.cpp37 using Pair = std::pair<T, U>;
41 using Alloc = CountingAllocator<Pair>;
44 Pair * ptr = (Pair*)std::malloc(sizeof(Pair));
64 using Pair = std::pair<T, U>;
68 using Alloc = CountingAllocator<Pair>;
71 Pair * ptr = (Pair*)std::malloc(sizeof(Pair));
[all...]
H A Dconstruct_pair_values.pass.cpp37 using Pair = std::pair<T, U>;
40 using Alloc = CountingAllocator<Pair>;
43 Pair * ptr = (Pair*)std::malloc(sizeof(Pair));
62 using Pair = std::pair<T, U>;
65 using Alloc = CountingAllocator<Pair>;
68 Pair * ptr = (Pair*)std::malloc(sizeof(Pair));
[all...]
/external/clang/test/Index/
H A Dindex-templates.cpp76 struct Pair { struct
85 Pair<T, U> p = { t, second_type(u) };
92 typename Comparison = compare<Pair<Key, Value> >,
93 typename Allocator = allocator<Pair<Key, Value> > >
96 void f(map<Z4, Pair<int, Z4> >);
98 template class Pair<int, int>;
101 struct SuperPair : Pair<int, int>, Pair<T, U> { };
192 // CHECK-LOAD: index-templates.cpp:101:20: C++ base class specifier=Pair<int, int>:98:16 [access=public isVirtual=false] Extent=[101:20 - 101:34]
193 // CHECK-LOAD: index-templates.cpp:101:36: C++ base class specifier=Pair<
[all...]
/external/testng/src/main/java/org/testng/xml/dom/
H A DReflect.java4 import org.testng.internal.collections.Pair;
12 public static List<Pair<Method, Wrapper>> findMethodsWithAnnotation(
14 List<Pair<Method, Wrapper>> result = Lists.newArrayList();
18 result.add(Pair.of(m, new Wrapper(a, bean)));
24 public static Pair<Method, Wrapper> findSetterForTag(
31 List<Pair<Method, Wrapper>> methods
34 for (Pair<Method, Wrapper> pair : methods) {
46 return Pair.of(m, null);
/external/libmojo/mojo/android/javatests/src/org/chromium/mojo/bindings/
H A DBindingsTestUtils.java11 import org.chromium.mojo.system.Pair;
48 public final List<Pair<Message, MessageReceiver>> messagesWithReceivers =
49 new ArrayList<Pair<Message, MessageReceiver>>();
56 messagesWithReceivers.add(Pair.create(message, responder));
101 Pair<MessagePipeHandle, MessagePipeHandle> handles =
/external/javassist/src/main/javassist/compiler/ast/
H A DPair.java24 public class Pair extends ASTree { class in inherits:ASTree
27 public Pair(ASTree _left, ASTree _right) { method in class:Pair
36 sbuf.append("(<Pair> ");
/external/llvm/lib/Transforms/ObjCARC/
H A DBlotMapVector.h50 std::pair<typename MapTy::iterator, bool> Pair = local
52 if (Pair.second) {
54 Pair.first->second = Num;
58 return Vector[Pair.first->second].second;
62 std::pair<typename MapTy::iterator, bool> Pair = local
64 if (Pair.second) {
66 Pair.first->second = Num;
70 return std::make_pair(Vector.begin() + Pair.first->second, false);
/external/llvm/tools/llvm-dwp/
H A DDWPStringPool.h44 auto Pair = Pool.insert(std::make_pair(Str, Offset)); local
45 if (Pair.second) {
51 return Pair.first->second;
/external/javassist/src/main/javassist/bytecode/annotation/
H A DAnnotation.java48 static class Pair { class in class:Annotation
181 Pair p = new Pair();
194 Pair p = new Pair();
203 private void addMemberValue(Pair pair) {
272 Pair p = (Pair)members.get(name);
315 Pair pair = (Pair)i
[all...]
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
H A DDenseMapInfo.h135 typedef std::pair<T, U> Pair; typedef in struct:llvm::DenseMapInfo
139 static inline Pair getEmptyKey() {
143 static inline Pair getTombstoneKey() {
147 static unsigned getHashValue(const Pair& PairVal) {
160 static bool isEqual(const Pair &LHS, const Pair &RHS) {

Completed in 2065 milliseconds

123456789