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

1 2 3 4 5 6 7 8 91011

  /external/webkit/Source/WebCore/css/
Pair.h 30 // A primitive value representing a pair. This is useful for properties like border-radius, background-size/position,
34 class Pair : public RefCounted<Pair> {
36 static PassRefPtr<Pair> create()
38 return adoptRef(new Pair);
40 static PassRefPtr<Pair> create(PassRefPtr<CSSPrimitiveValue> first, PassRefPtr<CSSPrimitiveValue> second)
42 return adoptRef(new Pair(first, second));
44 virtual ~Pair() { }
53 Pair() : m_first(0), m_second(0) { }
54 Pair(PassRefPtr<CSSPrimitiveValue> first, PassRefPtr<CSSPrimitiveValue> second
    [all...]
  /external/smali/dexlib/src/main/java/org/jf/dexlib/Util/
Pair.java 31 public class Pair<A, B> {
35 public Pair(A first, B second) {
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowPair.java 7 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 p, Object first, Object second)
    [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/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
PairTest.java 10 import android.util.Pair;
17 Pair<String, Integer> pair = new Pair<String, Integer>("a", 1); local
18 assertThat(pair.first, equalTo("a"));
19 assertThat(pair.second, equalTo(1));
24 Pair<String, String> p = Pair.create("Foo", "Bar");
31 assertThat(Pair.create("1", 2), equalTo(Pair.create("1", 2)))
    [all...]
  /external/skia/legacy/src/core/
SkPtrRecorder.cpp 12 Pair* p = fList.begin();
13 Pair* stop = fList.end();
21 int SkPtrSet::Cmp(const Pair& a, const Pair& b) {
31 Pair pair; local
32 pair.fPtr = ptr;
34 int index = SkTSearch<Pair>(fList.begin(), count, pair, sizeof(pair), &Cmp)
47 Pair pair; local
    [all...]
  /external/skia/src/core/
SkPtrRecorder.cpp 15 Pair* p = fList.begin();
16 Pair* stop = fList.end();
24 int SkPtrSet::Cmp(const Pair* a, const Pair* b) {
34 Pair pair; local
35 pair.fPtr = ptr;
37 int index = SkTSearch<Pair, Cmp>(fList.begin(), count, pair, sizeof(pair));
50 Pair pair; local
    [all...]
  /frameworks/base/libs/hwui/utils/
Pair.h 24 struct Pair {
28 Pair() { }
29 Pair(const Pair& o) : first(o.first), second(o.second) { }
30 Pair(const F& f, const S& s) : first(f), second(s) { }
44 struct trait_trivial_ctor< uirenderer::Pair<F, S> >
47 struct trait_trivial_dtor< uirenderer::Pair<F, S> >
50 struct trait_trivial_copy< uirenderer::Pair<F, S> >
53 struct trait_trivial_move< uirenderer::Pair<F, S> >
  /libcore/luni/src/main/java/java/util/concurrent/atomic/
AtomicMarkableReference.java 23 private static class Pair<T> {
26 private Pair(T reference, boolean mark) {
30 static <T> Pair<T> of(T reference, boolean mark) {
31 return new Pair<T>(reference, mark);
35 private volatile Pair<V> pair; field in class:AtomicMarkableReference
45 pair = Pair.of(initialRef, initialMark);
54 return pair.reference;
63 return pair.mark
75 Pair<V> pair = this.pair; local
    [all...]
AtomicStampedReference.java 23 private static class Pair<T> {
26 private Pair(T reference, int stamp) {
30 static <T> Pair<T> of(T reference, int stamp) {
31 return new Pair<T>(reference, stamp);
35 private volatile Pair<V> pair; field in class:AtomicStampedReference
45 pair = Pair.of(initialRef, initialStamp);
54 return pair.reference;
63 return pair.stamp
75 Pair<V> pair = this.pair; local
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DynamicIdMap.java 20 import com.android.util.Pair;
29 private final Map<Pair<ResourceType, String>, Integer> mDynamicIds = new HashMap<Pair<ResourceType, String>, Integer>();
30 private final SparseArray<Pair<ResourceType, String>> mRevDynamicIds = new SparseArray<Pair<ResourceType, String>>();
52 return getId(Pair.of(type, name));
62 public Integer getId(Pair<ResourceType, String> resource) {
73 public Pair<ResourceType, String> resolveId(int id) {
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/manager/
DynamicIdMap.java 21 import com.android.util.Pair;
28 private final Map<Pair<ResourceType, String>, Integer> mDynamicIds = new HashMap<Pair<ResourceType, String>, Integer>();
29 private final SparseArray<Pair<ResourceType, String>> mRevDynamicIds = new SparseArray<Pair<ResourceType, String>>();
51 return getId(Pair.of(type, name));
61 public Integer getId(Pair<ResourceType, String> resource) {
72 public Pair<ResourceType, String> resolveId(int id) {
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/refactorings/core/
RenameResourceXmlTextActionTest.java 19 import com.android.utils.Pair;
34 checkWord(" @string/nam^e ", Pair.of(ResourceType.STRING, "name"));
35 checkWord("@string/nam^e ", Pair.of(ResourceType.STRING, "name"));
36 checkWord("\"^@string/name ", Pair.of(ResourceType.STRING, "name"));
37 checkWord("^@string/name ", Pair.of(ResourceType.STRING, "name"));
38 checkWord("\n^@string/name ", Pair.of(ResourceType.STRING, "name"));
39 checkWord("\n^@string/name(", Pair.of(ResourceType.STRING, "name"));
40 checkWord("\n^@string/name;", Pair.of(ResourceType.STRING, "name"));
41 checkWord("\n^@string/name5", Pair.of(ResourceType.STRING, "name5"));
42 checkWord("\n@string/name5^", Pair.of(ResourceType.STRING, "name5"))
    [all...]
  /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/skia/include/core/
SkTDict.h 47 Pair* pair = fArray.insert(~index); local
51 pair->fName = copy;
52 pair->fValue = value;
87 Pair* end = fArray.end();
88 for (Pair* pair = fArray.begin(); pair < end; pair++) {
89 if (pair->fValue != value
    [all...]
SkDataSet.h 30 struct Pair {
36 SkDataSet(const Pair[], int count);
67 const SkDataSet::Pair* fPair;
68 const SkDataSet::Pair* fStop;
83 Pair* fPairs;
  /external/skia/legacy/include/core/
SkTDict.h 47 Pair* pair = fArray.insert(~index); local
51 pair->fName = copy;
52 pair->fValue = value;
87 Pair* end = fArray.end();
88 for (Pair* pair = fArray.begin(); pair < end; pair++) {
89 if (pair->fValue != value
    [all...]
SkPtrRecorder.h 63 struct Pair {
72 SkTDArray<Pair> fList;
74 static int Cmp(const Pair& a, const Pair& b);
  /frameworks/base/media/java/android/media/videoeditor/
MediaProperties.java 21 import android.util.Pair;
64 private static final Pair<Integer, Integer>[] ASPECT_RATIO_3_2_RESOLUTIONS =
65 new Pair[] {
66 new Pair<Integer, Integer>(720, HEIGHT_480),
67 new Pair<Integer, Integer>(1080, HEIGHT_720)
71 private static final Pair<Integer, Integer>[] ASPECT_RATIO_4_3_RESOLUTIONS =
72 new Pair[] {
73 new Pair<Integer, Integer>(640, HEIGHT_480),
74 new Pair<Integer, Integer>(960, HEIGHT_720)
78 private static final Pair<Integer, Integer>[] ASPECT_RATIO_5_3_RESOLUTIONS
    [all...]
  /packages/apps/Launcher2/src/com/android/launcher2/
DeferredHandler.java 23 import android.util.Pair;
35 private LinkedList<Pair<Runnable, Integer>> mQueue = new LinkedList<Pair<Runnable, Integer>>();
41 Pair<Runnable, Integer> p;
83 mQueue.add(new Pair<Runnable, Integer>(runnable, type));
105 ListIterator<Pair<Runnable, Integer>> iter = mQueue.listIterator();
106 Pair<Runnable, Integer> p;
124 LinkedList<Pair<Runnable, Integer>> queue = new LinkedList<Pair<Runnable, Integer>>();
129 for (Pair<Runnable, Integer> p : queue)
    [all...]
  /external/chromium/base/
stl_util-inl.h 329 // function that "projects" one of the members of a pair.
331 // map a pair to its first and second, respectively, members, the
334 // * UnaryOperate1st<pair>(f) returns the function x -> f(p1(x))
335 // * UnaryOperate2nd<pair>(f) returns the function x -> f(p2(x))
336 // * BinaryOperate1st<pair>(f) returns the function (x,y) -> f(p1(x),p1(y))
337 // * BinaryOperate2nd<pair>(f) returns the function (x,y) -> f(p2(x),p2(y))
342 template<typename Pair, typename UnaryOp>
344 : public std::unary_function<Pair, typename UnaryOp::result_type> {
352 typename UnaryOp::result_type operator()(const Pair& p) const {
360 template<typename Pair, typename UnaryOp
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/
BaseLayoutRuleTest.java 26 import com.android.utils.Pair;
59 Map<String, Pair<String, String>> idMap = new HashMap<String, Pair<String, String>>();
60 Map<String, Pair<String, String>> ids = new BaseLayoutRule().collectIds(idMap, elements);
74 Map<String, Pair<String, String>> idMap = new HashMap<String, Pair<String, String>>();
75 Map<String, Pair<String, String>> ids = new BaseLayoutRule().collectIds(idMap, elements);
107 Map<String, Pair<String, String>> idMap = new HashMap<String, Pair<String, String>>();
110 Map<String, Pair<String, String>> ids = new BaseLayoutRule().collectIds(idMap, elements)
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
Gesture.java 19 import com.android.utils.Pair;
149 * @return a pair of booleans, the first indicating whether the tooltip should be
153 public Pair<Boolean, Boolean> getTooltipPosition() {
154 return Pair.of(true, true);
  /external/clang/test/Index/
index-templates.cpp 76 struct Pair {
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> { };
179 // 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]
180 // CHECK-LOAD: index-templates.cpp:101:36: C++ base class specifier=Pair<T, U>:76:8 [access=public isVirtual=false] Extent=[101:36 - 101:46
    [all...]
  /bionic/libc/bionic/
strerror_r.cpp 12 struct Pair {
17 static const char* __code_string_lookup(const Pair* strings, int code) {
26 static const Pair _sys_error_strings[] = {
36 static const Pair _sys_signal_strings[] = {

Completed in 680 milliseconds

1 2 3 4 5 6 7 8 91011