/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
InputLogicTestsReorderingMyanmar.java | 21 import android.util.Pair; 86 // Each test is an entry in the array of Pair arrays. 88 // One test is an array of pairs. Each pair contains, in the `first' member, 93 private static final Pair[][] TESTS = { 96 new Pair[] { // Type : U+1031 U+1000 U+101F ? ? ? 97 Pair.create(new int[] { 0x1031 }, "\u1031"), // ? 98 Pair.create(new int[] { 0x1000 }, "\u1000\u1031"), // ?? 99 Pair.create(new int[] { 0x101F }, "\u1000\u1031\u101F") // ??? 102 new Pair[] { // Type : U+1000 U+1031 U+101F ? ? ? 103 Pair.create(new int[] { 0x1000 }, "\u1000"), // [all...] |
/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) {}
|
/external/llvm/unittests/ADT/ |
PointerIntPairTest.cpp | 22 PointerIntPair<PointerIntPairTest *, 2> Pair(this, 1U); 23 EXPECT_EQ(this, Pair.getPointer()); 24 EXPECT_EQ(1U, Pair.getInt()); 26 Pair.setInt(2); 27 EXPECT_EQ(this, Pair.getPointer()); 28 EXPECT_EQ(2U, Pair.getInt()); 30 Pair.setPointer(nullptr); 31 EXPECT_EQ(nullptr, Pair.getPointer()); 32 EXPECT_EQ(2U, Pair.getInt()); 34 Pair.setPointerAndInt(this, 3U) 63 PointerIntPair<Fixnum31, 1, bool, FixnumPointerTraits> pair; local [all...] |
/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...] |
/external/chromium_org/mojo/public/java/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...] |
/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...] |
/frameworks/support/v4/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...] |
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/util/ |
CommonResources.java | 7 import android.util.Pair; 18 public static List<Pair<String, String>> getTextHtmlHeaders(boolean disableCache) { 23 public static List<Pair<String, String>> getTextJavascriptHeaders(boolean disableCache) { 28 public static List<Pair<String, String>> getImagePngHeaders(boolean disableCache) { 32 public static List<Pair<String, String>> getContentTypeAndCacheHeaders( 34 List<Pair<String, String>> headers = new ArrayList<Pair<String, String>>(); 35 headers.add(Pair.create("Content-Type", contentType)); 36 if (disableCache) headers.add(Pair.create("Cache-Control", "no-store"));
|
/external/chromium_org/third_party/WebKit/Source/core/css/ |
Pair.cpp | 6 #include "core/css/Pair.h" 10 void Pair::trace(Visitor* visitor)
|
Pair.h | 31 // A primitive value representing a pair. This is useful for properties like border-radius, background-size/position, 35 class Pair FINAL : public RefCountedWillBeGarbageCollected<Pair> { 39 static PassRefPtrWillBeRawPtr<Pair> create(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> first, PassRefPtrWillBeRawPtr<CSSPrimitiveValue> second, 42 return adoptRefWillBeNoop(new Pair(first, second, identicalValuesPolicy)); 58 bool equals(const Pair& other) const 68 Pair() 73 Pair(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> first, PassRefPtrWillBeRawPtr<CSSPrimitiveValue> second, IdenticalValuesPolicy identicalValuesPolicy)
|
/external/chromium_org/third_party/skia/src/core/ |
SkPtrRecorder.cpp | 12 Pair* p = fList.begin(); 13 Pair* stop = fList.end(); 21 bool SkPtrSet::Less(const Pair& a, const Pair& b) { 31 Pair pair; local 32 pair.fPtr = ptr; 34 int index = SkTSearch<Pair, Less>(fList.begin(), count, pair, sizeof(pair)); 47 Pair pair; local [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/src/core/ |
SkPtrRecorder.cpp | 12 Pair* p = fList.begin(); 13 Pair* stop = fList.end(); 21 bool SkPtrSet::Less(const Pair& a, const Pair& b) { 31 Pair pair; local 32 pair.fPtr = ptr; 34 int index = SkTSearch<Pair, Less>(fList.begin(), count, pair, sizeof(pair)); 47 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 | 20 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) {
|
/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) { 38 if (!(o instanceof Pair)) return false; 39 Pair<?, ?> p = (Pair<?, ?>)o;
|
/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/chromium_org/third_party/skia/include/core/ |
SkTDict.h | 39 Pair* pair = fArray.insert(~index); local 43 pair->fName = copy; 44 pair->fValue = value; 74 const Pair* end = fArray.end(); 75 for (const Pair* pair = fArray.begin(); pair < end; pair++) { 76 if (pair->fValue != value) [all...] |
/external/skia/include/core/ |
SkTDict.h | 39 Pair* pair = fArray.insert(~index); local 43 pair->fName = copy; 44 pair->fValue = value; 74 const Pair* end = fArray.end(); 75 for (const Pair* pair = fArray.begin(); pair < end; pair++) { 76 if (pair->fValue != value) [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...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
DeferredHandler.java | 23 import android.util.Pair; 36 private LinkedList<Pair<Runnable, Integer>> mQueue = new LinkedList<Pair<Runnable, Integer>>(); 42 Pair<Runnable, Integer> p; 84 mQueue.add(new Pair<Runnable, Integer>(runnable, type)); 106 ListIterator<Pair<Runnable, Integer>> iter = mQueue.listIterator(); 107 Pair<Runnable, Integer> p; 125 LinkedList<Pair<Runnable, Integer>> queue = new LinkedList<Pair<Runnable, Integer>>(); 130 for (Pair<Runnable, Integer> p : queue) [all...] |
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
MarshalQueryablePair.java | 22 import android.util.Pair; 31 * Marshal {@link Pair} to/from any native type 34 implements MarshalQueryable<Pair<T1, T2>> { 36 private class MarshalerPair extends Marshaler<Pair<T1, T2>> { 37 private final Class<? super Pair<T1, T2>> mClass; 38 private final Constructor<Pair<T1, T2>> mConstructor; 39 /** Marshal the {@code T1} inside of {@code Pair<T1, T2>} */ 41 /** Marshal the {@code T1} inside of {@code Pair<T1, T2>} */ 45 protected MarshalerPair(TypeReference<Pair<T1, T2>> typeReference, 52 * Lookup the actual type arguments, e.g. Pair<Integer, Float> --> [Integer, Float [all...] |