HomeSort by relevance Sort by last modified time
    Searched defs:Pair (Results 1 - 25 of 574) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /frameworks/av/media/img_utils/include/img_utils/
Pair.h 26 * Generic pair utility class. Nothing special here.
29 class ANDROID_API Pair {
34 Pair() {}
36 Pair(const Pair& o) : first(o.first), second(o.second) {}
38 Pair(const F& f, const S& s) : first(f), second(s) {}
  /packages/inputmethods/LatinIME/tools/dicttool/compat/android/util/
Pair.java 21 public class Pair<T1, T2> {
25 public Pair(final T1 first, final T2 second) {
39 if (!(o instanceof Pair)) return false;
40 Pair<?, ?> p = (Pair<?, ?>)o;
  /external/icu/android_icu4j/src/main/java/android/icu/impl/
Pair.java 13 * A pair of objects: first and second.
19 public class Pair<F, S> {
23 protected Pair(F first, S second) {
29 * Creates a pair object
32 * @return The pair object.
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
    [all...]
  /frameworks/base/core/java/android/util/
Pair.java 26 public class Pair<F, S> {
31 * Constructor for a Pair.
33 * @param first the first object in the Pair
34 * @param second the second object in the pair
36 public Pair(F first, S second) {
45 * @param o the {@link Pair} to which this one is to be checked for equality
46 * @return true if the underlying objects of the Pair are both considered
51 if (!(o instanceof Pair)) {
54 Pair<?, ?> p = (Pair<?, ?>) o
    [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
Pair.java 12 * A pair of objects: first and second.
17 public class Pair<F, S> {
21 protected Pair(F first, S second) {
27 * Creates a pair object
30 * @return The pair object.
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
    [all...]
  /external/libmojo/mojo/public/java/system/src/org/chromium/mojo/system/
Pair.java 9 * A pair of object.
14 public class Pair<F, S> {
22 * @param first the first element of the pair.
23 * @param second the second element of the pair.
25 public Pair(F first, S second) {
42 if (!(o instanceof Pair)) {
45 Pair<?, ?> p = (Pair<?, ?>) o;
58 * Helper method for creating a pair.
60 * @param a the first element of the pair
    [all...]
  /external/llvm/include/llvm/ADT/
DenseMapInfo.h 167 struct DenseMapInfo<std::pair<T, U> > {
168 typedef std::pair<T, U> Pair;
172 static inline Pair getEmptyKey() {
176 static inline Pair getTombstoneKey() {
180 static unsigned getHashValue(const Pair& PairVal) {
193 static bool isEqual(const Pair &LHS, const Pair &RHS) {
  /external/llvm/lib/Transforms/ObjCARC/
ProvenanceAnalysis.cpp 169 std::pair<CachedResultsTy::iterator, bool> Pair =
171 if (!Pair.second)
172 return Pair.first->second;
DependencyAnalysis.cpp 231 SmallVector<std::pair<BasicBlock *, BasicBlock::iterator>, 4> Worklist;
234 std::pair<BasicBlock *, BasicBlock::iterator> Pair =
236 BasicBlock *LocalStartBB = Pair.first;
237 BasicBlock::iterator LocalStartPos = Pair.second;
  /external/llvm/tools/llvm-dwp/
DWPStringPool.h 44 auto Pair = Pool.insert(std::make_pair(Str, Offset));
45 if (Pair.second) {
51 return Pair.first->second;
  /external/llvm/unittests/ADT/
PointerIntPairTest.cpp 23 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.setPointerAndInt(&s, 3U)
90 PointerIntPair<Fixnum31, 1, bool, FixnumPointerTraits> pair; local
    [all...]
  /external/swiftshader/third_party/LLVM/include/llvm/ADT/
DenseMapInfo.h 134 struct DenseMapInfo<std::pair<T, U> > {
135 typedef std::pair<T, U> Pair;
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) {
  /external/testng/src/main/java/org/testng/internal/collections/
Pair.java 9 public class Pair<A, B> {
13 public Pair(A first, B second) {
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);
  /frameworks/base/libs/hwui/utils/
Pair.h 26 struct Pair {
30 Pair() { }
31 Pair(const Pair& o) : first(o.first), second(o.second) { }
32 Pair(const F& f, const S& s) : first(f), second(s) { }
46 struct trait_trivial_ctor< uirenderer::Pair<F, S> >
49 struct trait_trivial_dtor< uirenderer::Pair<F, S> >
52 struct trait_trivial_copy< uirenderer::Pair<F, S> >
55 struct trait_trivial_move< uirenderer::Pair<F, S> >
  /frameworks/support/compat/java/android/support/v4/util/
Pair.java 24 public class Pair<F, S> {
29 * Constructor for a Pair.
31 * @param first the first object in the Pair
32 * @param second the second object in the pair
34 public Pair(F first, S second) {
43 * @param o the {@link Pair} to which this one is to be checked for equality
44 * @return true if the underlying objects of the Pair are both considered
49 if (!(o instanceof Pair)) {
52 Pair<?, ?> p = (Pair<?, ?>) o
    [all...]
  /frameworks/wilhelm/src/ut/
OpenSLESUT.c 36 } Pair;
46 static Pair pairs[] = {
114 Pair *p;
115 const Pair *end = &pairs[sizeof(pairs)/sizeof(pairs[0])];
  /libcore/support/src/test/java/tests/util/
Pair.java 20 * Pair of typed values.
27 public class Pair<F, S> {
31 private Pair(F first, S second) {
37 * Gets the pair consisting of the two provided values.
42 public static <F, S> Pair<F, S> of(F first, S second) {
43 return new Pair<F, S>(first, second);
47 * Gets the first value from this pair.
56 * Gets the second value from this pair.
66 return "Pair[" + mFirst + ", " + mSecond + "]";
90 Pair other = (Pair) obj
    [all...]
  /packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
TestActivity.java 21 import android.util.Pair;
30 public TestEventListener<Pair<Integer, Intent>> setResult;
31 public TestEventListener<Pair<Intent, Integer>> startActivityForResult;
49 setResult.accept(Pair.create(resultCode, intent));
54 startActivityForResult.accept(Pair.create(intent, requestCode));
  /tools/apksig/src/main/java/com/android/apksig/internal/util/
Pair.java 20 * Pair of two elements.
22 public final class Pair<A, B> {
26 private Pair(A first, B second) {
31 public static <A, B> Pair<A, B> of(A first, B second) {
32 return new Pair<A, B>(first, second);
64 Pair other = (Pair) obj;
  /tools/tradefederation/core/src/com/android/tradefed/util/
Pair.java 21 * Define our own Pair class which contains two objects.
23 public class Pair<A, B> {
27 public Pair(A first, B second) {
37 if (!(o instanceof Pair)) {
38 // o is not an instance of Pair object
41 final Pair<?, ?> pair = (Pair<?, ?>) o; local
42 if (this == pair) {
47 if (pair.first != null)
    [all...]
  /bionic/libc/bionic/
strerror_r.cpp 18 struct Pair {
23 static const char* __code_string_lookup(const Pair* strings, int code) {
32 static const Pair _sys_error_strings[] = {
42 static const Pair _sys_signal_strings[] = {
  /external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/
Pair.java 16 * Pair of two objects.
21 public final class Pair<L, R> {
30 public Pair(L left, R right) {
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/javassist/src/main/javassist/compiler/ast/
Pair.java 24 public class Pair extends ASTree {
27 public Pair(ASTree _left, ASTree _right) {
36 sbuf.append("(<Pair> ");
  /external/llvm/lib/Target/WebAssembly/InstPrinter/
WebAssemblyInstPrinter.cpp 105 const auto &Pair = ControlFlowStack.rbegin()[Depth];
106 printAnnotation(OS, utostr(Depth) + ": " + (Pair.second ? "up" : "down") +
107 " to label" + utostr(Pair.first));
  /external/testng/src/main/java/org/testng/xml/dom/
Reflect.java 4 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) {
35 if (pair.second().getTagName().equals(tagName)) {
36 return pair;
    [all...]

Completed in 410 milliseconds

1 2 3 4 5 6 7 8 91011>>