/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/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/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) {
|
/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/chromium_org/third_party/WebKit/Source/core/css/ |
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 RefCounted<Pair> { 39 static PassRefPtr<Pair> create() 41 return adoptRef(new Pair); 43 static PassRefPtr<Pair> create(PassRefPtr<CSSPrimitiveValue> first, PassRefPtr<CSSPrimitiveValue> second, IdenticalValuesPolicy identicalValuesPolicy) 45 return adoptRef(new Pair(first, second, identicalValuesPolicy)); 61 bool equals(const Pair& other) const 79 Pair() 84 Pair(PassRefPtr<CSSPrimitiveValue> first, PassRefPtr<CSSPrimitiveValue> second, IdenticalValuesPolicy i (…) [all...] |
/external/chromium_org/third_party/skia/include/core/ |
SkTDict.h | 47 Pair* pair = fArray.insert(~index); local 51 pair->fName = copy; 52 pair->fValue = value; 87 const Pair* end = fArray.end(); 88 for (const Pair* pair = fArray.begin(); pair < end; pair++) { 89 if (pair->fValue != value [all...] |
/external/skia/include/core/ |
SkTDict.h | 47 Pair* pair = fArray.insert(~index); local 51 pair->fName = copy; 52 pair->fValue = value; 87 const Pair* end = fArray.end(); 88 for (const Pair* pair = fArray.begin(); pair < end; pair++) { 89 if (pair->fValue != value [all...] |
/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...] |
/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...] |
/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...] |
/external/chromium_org/chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/sync/ |
SyncTestUtil.java | 10 import android.util.Pair; 55 public static final Pair<String, String> SYNC_SUMMARY_STATUS = 58 protected static final Pair<String, String> USERNAME_STAT = 69 * Creates a Pair of lowercased and trimmed Strings. Makes it easier to avoid running afoul of 70 * case-sensitive comparison since getAboutInfoStats(), et al, use Pair<String, String> as map 73 private static Pair<String, String> newPair(String first, String second) { 74 return Pair.create(first.toLowerCase().trim(), second.toLowerCase().trim()); 78 * Parses raw JSON into a map with keys Pair<String, String>. The first string in each Pair 81 * "Local State" would be a Pair of newPair("Local State", "Syncing") [all...] |