Home
last modified time | relevance | path

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

123456

/external/llvm/unittests/ADT/
DPointerIntPairTest.cpp22 PointerIntPair<PointerIntPairTest *, 2> Pair(this, 1U); in TEST_F() local
23 EXPECT_EQ(this, Pair.getPointer()); in TEST_F()
24 EXPECT_EQ(1U, Pair.getInt()); in TEST_F()
26 Pair.setInt(2); in TEST_F()
27 EXPECT_EQ(this, Pair.getPointer()); in TEST_F()
28 EXPECT_EQ(2U, Pair.getInt()); in TEST_F()
30 Pair.setPointer(nullptr); in TEST_F()
31 EXPECT_EQ(nullptr, Pair.getPointer()); in TEST_F()
32 EXPECT_EQ(2U, Pair.getInt()); in TEST_F()
34 Pair.setPointerAndInt(this, 3U); in TEST_F()
[all …]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowPair.java7 import android.util.Pair;
15 @Implements(Pair.class)
17 @RealObject private Pair realPair;
24 public static <F, S> Pair<F, S> create(F f, S s) { in create()
25 return new Pair<F, S>(f, s); in create()
36 if (!(o instanceof Pair)) return false; in equals()
37 final Pair other = (Pair) o; in equals()
41 private static void setFields(Pair p, Object first, Object second) { in setFields()
43 Field f = Pair.class.getDeclaredField("first"); in setFields()
47 Field s = Pair.class.getDeclaredField("second"); in setFields()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DPairTest.java10 import android.util.Pair;
17 Pair<String, Integer> pair = new Pair<String, Integer>("a", 1); in testConstructor()
24 Pair<String, String> p = Pair.create("Foo", "Bar"); in testStaticCreate()
31 assertThat(Pair.create("1", 2), equalTo(Pair.create("1", 2))); in testEquals()
36 assertThat(Pair.create("1", 2).hashCode(), equalTo(Pair.create("1", 2).hashCode())); in testHash()
/external/skia/include/private/
DSkTDict.h39 Pair* pair = fArray.insert(~index); in set()
74 const Pair* end = fArray.end(); in findKey()
75 for (const Pair* pair = fArray.begin(); pair < end; pair++) { in findKey()
86 struct Pair { struct
90 friend int operator<(const Pair& a, const Pair& b) { argument
94 friend int operator!=(const Pair& a, const Pair& b) {
120 const Pair* fIter;
121 const Pair* fStop;
125 SkTDArray<Pair> fArray;
139 index = SkStrSearch(&fArray.begin()->fName, count, name, len, sizeof(Pair)); in find_index()
DSkTHash.h213 Pair in = { key, val }; in set()
214 Pair* out = fTable.set(in); in set()
221 if (Pair* p = fTable.find(key)) { in find()
236 fTable.foreach([&fn](Pair* p){ fn(p->key, &p->val); }); in foreach()
242 fTable.foreach([&fn](const Pair& p){ fn(p.key, p.val); }); in foreach()
246 struct Pair { struct
249 static const K& GetKey(const Pair& p) { return p.key; } in GetKey() argument
253 SkTHashTable<Pair, K> fTable; argument
/external/skia/src/core/
DSkPtrRecorder.cpp12 Pair* p = fList.begin(); in reset()
13 Pair* stop = fList.end(); in reset()
21 bool SkPtrSet::Less(const Pair& a, const Pair& b) { in Less()
31 Pair pair; in find()
34 int index = SkTSearch<Pair, Less>(fList.begin(), count, pair, sizeof(pair)); in find()
47 Pair pair; in add()
50 int index = SkTSearch<Pair, Less>(fList.begin(), count, pair, sizeof(pair)); in add()
66 const Pair* p = fList.begin(); in copyToArray()
DSkPtrRecorder.h87 struct Pair { struct
96 SkTDArray<Pair> fList; argument
98 static bool Less(const Pair& a, const Pair& b);
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DPair.java15 public class Pair<F, S> { class
19 protected Pair(F first, S second) { in Pair() method in Pair
30 public static <F, S> Pair<F, S> of(F first, S second) { in of()
34 return new Pair<F, S>(first, second); in of()
42 if (!(other instanceof Pair)) { in equals()
45 Pair<?, ?> rhs = (Pair<?, ?>) other; in equals()
/external/icu/android_icu4j/src/main/java/android/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/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/
DPair.java21 public final class Pair<L, R> { class
30 public Pair(L left, R right) { in Pair() method in Pair
45 if (!(o instanceof Pair<?, ?>)) { in equals()
48 Pair<?, ?> other = (Pair<?, ?>) o; in equals()
78 public static <L, R> Pair<L, R> create(L left, R right) { in create()
79 return new Pair<L, R>(left, right); in create()
/external/testng/src/main/java/org/testng/internal/collections/
DPair.java9 public class Pair<A, B> { class
13 public Pair(A first, B second) { in Pair() method in Pair
46 final Pair other = (Pair) obj; in equals()
66 public static <A, B> Pair<A, B> create(A first, B second) { in create()
70 public static <A, B> Pair<A, B> of(A a, B b) { in of()
71 return new Pair<>(a, b); in of()
/external/clang/test/Index/
Dindex-templates.cpp76 struct Pair { struct
85 Pair<T, U> p = { t, second_type(u) }; in init_list() argument
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>; variable
101 struct SuperPair : Pair<int, int>, Pair<T, U> { };
/external/testng/src/main/java/org/testng/xml/dom/
DReflect.java4 import org.testng.internal.collections.Pair;
12 public static List<Pair<Method, Wrapper>> findMethodsWithAnnotation( in findMethodsWithAnnotation()
14 List<Pair<Method, Wrapper>> result = Lists.newArrayList(); in findMethodsWithAnnotation()
18 result.add(Pair.of(m, new Wrapper(a, bean))); in findMethodsWithAnnotation()
24 public static Pair<Method, Wrapper> findSetterForTag( in findSetterForTag()
31 List<Pair<Method, Wrapper>> methods in findSetterForTag()
34 for (Pair<Method, Wrapper> pair : methods) { in findSetterForTag()
46 return Pair.of(m, null); in findSetterForTag()
/external/llvm/lib/Analysis/
DDependenceAnalysis.cpp839 void DependenceAnalysis::removeMatchingExtensions(Subscript *Pair) { in removeMatchingExtensions() argument
840 const SCEV *Src = Pair->Src; in removeMatchingExtensions()
841 const SCEV *Dst = Pair->Dst; in removeMatchingExtensions()
849 Pair->Src = SrcCastOp; in removeMatchingExtensions()
850 Pair->Dst = DstCastOp; in removeMatchingExtensions()
3246 SmallVectorImpl<Subscript> &Pair) in tryDelinearize() argument
3314 Pair.resize(size); in tryDelinearize()
3316 Pair[i].Src = SrcSubscripts[i]; in tryDelinearize()
3317 Pair[i].Dst = DstSubscripts[i]; in tryDelinearize()
3318 unifySubscriptType(&Pair[i]); in tryDelinearize()
[all …]
/external/javassist/src/main/javassist/bytecode/annotation/
DAnnotation.java48 static class Pair { class in Annotation
181 Pair p = new Pair(); in addMemberValue()
194 Pair p = new Pair(); in addMemberValue()
203 private void addMemberValue(Pair pair) { in addMemberValue()
272 Pair p = (Pair)members.get(name); in getMemberValue()
315 Pair pair = (Pair)it.next(); in write()
/external/v8/test/mjsunit/
Dindexed-accessors.js44 function Pair(x, y) { class
48 Pair.prototype.__defineGetter__('0', function() { return this.x; });
49 Pair.prototype.__defineGetter__('1', function() { return this.y; });
50 Pair.prototype.__defineSetter__('0', function(x) { this.x = x; });
51 Pair.prototype.__defineSetter__('1', function(y) { this.y = y; });
53 var p = new Pair(2, 3);
/external/llvm/lib/Transforms/ObjCARC/
DBlotMapVector.h50 std::pair<typename MapTy::iterator, bool> Pair = variable
52 if (Pair.second) {
54 Pair.first->second = Num;
58 return Vector[Pair.first->second].second;
62 std::pair<typename MapTy::iterator, bool> Pair = in insert() local
64 if (Pair.second) { in insert()
66 Pair.first->second = Num; in insert()
70 return std::make_pair(Vector.begin() + Pair.first->second, false); in insert()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/
DAbstractSampleEncryptionBox.java70 e.pairs = new LinkedList<Entry.Pair>(); in _parseDetails()
163 for (Entry.Pair pair : entry.pairs) { in getContent()
196 public List<Pair> pairs = new LinkedList<Pair>();
209 for (Entry.Pair pair : pairs) { in getSize()
216 public Pair createPair(int clear, long encrypted) { in createPair()
217 return new Pair(clear, encrypted); in createPair()
221 public class Pair { class in AbstractSampleEncryptionBox.Entry
225 public Pair(int clear, long encrypted) { in Pair() method in AbstractSampleEncryptionBox.Entry.Pair
239 Pair pair = (Pair) o; in equals()
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/collision/broadphase/
DDefaultBroadPhaseBuffer.java53 private Pair[] m_pairBuffer;
64 m_pairBuffer = new Pair[m_pairCapacity]; in DefaultBroadPhaseBuffer()
66 m_pairBuffer[i] = new Pair(); in DefaultBroadPhaseBuffer()
173 Pair primaryPair = m_pairBuffer[i]; in updatePairs()
183 Pair pair = m_pairBuffer[i]; in updatePairs()
248 Pair[] oldBuffer = m_pairBuffer; in treeCallback()
250 m_pairBuffer = new Pair[m_pairCapacity]; in treeCallback()
253 m_pairBuffer[i] = new Pair(); in treeCallback()
DPair.java31 public class Pair implements Comparable<Pair> { class
35 public int compareTo(Pair pair2) { in compareTo()
/external/guice/extensions/throwingproviders/test/com/google/inject/throwingproviders/
DCheckedProviderMethodsModuleTest.java51 private final TypeLiteral<RpcProvider<Pair<Double, String>>> rpcProviderOfPair
52 = new TypeLiteral<RpcProvider<Pair<Double, String>>>() { };
97 Pair<Double, String> getSomePair(Double input) { in getSomePair()
98 return new Pair<Double, String>(input * 2, "foo"); in getSomePair()
156 RpcProvider<Pair<Double, String>> provider = injector in testWithInjectedParameters()
158 Pair<Double, String> pair = provider.get(); in testWithInjectedParameters()
186 private static class Pair<A, B> { class in CheckedProviderMethodsModuleTest
190 Pair(A a, B b) { in Pair() method in CheckedProviderMethodsModuleTest.Pair
/external/llvm/lib/IR/
DLLVMContextImpl.cpp88 for (auto &Pair : ValuesAsMetadata) in ~LLVMContextImpl() local
89 Pair.second->dropUsers(); in ~LLVMContextImpl()
90 for (auto &Pair : MetadataAsValues) in ~LLVMContextImpl() local
91 Pair.second->dropUse(); in ~LLVMContextImpl()
151 for (auto &Pair : MetadataAsValues) in ~LLVMContextImpl() local
152 MDVs.push_back(Pair.second); in ~LLVMContextImpl()
159 for (auto &Pair : ValuesAsMetadata) in ~LLVMContextImpl() local
160 delete Pair.second; in ~LLVMContextImpl()
/external/llvm/lib/AsmParser/
DLLLexer.cpp79 uint64_t Pair[2]) { in HexToIntPair()
80 Pair[0] = 0; in HexToIntPair()
84 Pair[0] *= 16; in HexToIntPair()
85 Pair[0] += hexDigitValue(*Buffer); in HexToIntPair()
88 Pair[1] = 0; in HexToIntPair()
90 Pair[1] *= 16; in HexToIntPair()
91 Pair[1] += hexDigitValue(*Buffer); in HexToIntPair()
100 uint64_t Pair[2]) { in FP80HexToIntPair()
101 Pair[1] = 0; in FP80HexToIntPair()
104 Pair[1] *= 16; in FP80HexToIntPair()
[all …]
/external/llvm/include/llvm/ADT/
DDenseMapInfo.h138 typedef std::pair<T, U> Pair;
142 static inline Pair getEmptyKey() {
146 static inline Pair getTombstoneKey() {
150 static unsigned getHashValue(const Pair& PairVal) {
163 static bool isEqual(const Pair &LHS, const Pair &RHS) {
/external/antlr/antlr-3.4/runtime/Delphi/Sources/Antlr3.Runtime.Tests/
DAntlr.Runtime.Tools.Tests.pas537 Pair: TPair<String, Integer>;
545 for Pair in FIDictionary do
547 if (Pair.Key = 'Foo') then
550 CheckEquals(Pair.Value, 1);
553 if (Pair.Key = 'Bar') then
556 CheckEquals(Pair.Value, 3);
559 if (Pair.Key = 'Baz') then
562 CheckEquals(Pair.Value, 7);
565 if (Pair.Key = 'Zip') then
568 CheckEquals(Pair.Value, 7);

123456