/frameworks/base/core/java/android/util/ |
H A D | Pair.java | 26 public class Pair<F, S> { class 31 * Constructor for a Pair. 33 * @param first the first object in the Pair 36 public Pair(F first, S second) { method in class:Pair 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; 61 * @return a hashcode of the Pair [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
H A D | 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) {
|
/frameworks/base/media/java/android/media/videoeditor/ |
H A D | 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<Intege [all...] |
H A D | OverlayFrame.java | 34 import android.util.Pair; 209 final Pair<Integer, Integer> maxResolution; 210 final Pair<Integer, Integer>[] resolutions;
|
/frameworks/base/core/java/android/database/ |
H A D | DefaultDatabaseErrorHandler.java | 24 import android.util.Pair; 68 List<Pair<String, String>> attachedDbs = null; 85 for (Pair<String, String> p : attachedDbs) {
|
/frameworks/base/services/java/com/android/server/wm/ |
H A D | KeyguardDisableHandler.java | 29 import android.util.Pair; 63 final Pair<IBinder, String> pair = (Pair<IBinder, String>)msg.obj;
|
/frameworks/wilhelm/src/ut/ |
H A D | OpenSLESUT.c | 34 } Pair; typedef in typeref:struct:__anon1689 43 static Pair pairs[] = { 105 Pair *p; 106 const Pair *end = &pairs[sizeof(pairs)/sizeof(pairs[0])];
|
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/ |
H A D | BridgeResources.java | 30 import com.android.util.Pair; 127 private Pair<String, ResourceValue> getResourceValue(int id, boolean[] platformResFlag_out) { 129 Pair<ResourceType, String> resourceInfo = Bridge.resolveResourceId(id); 135 return Pair.of(attributeName, mContext.getRenderResources().getFrameworkResource( 147 return Pair.of(attributeName, mContext.getRenderResources().getProjectResource( 157 Pair<String, ResourceValue> value = getResourceValue(id, mPlatformResourceFlag); 172 Pair<String, ResourceValue> value = getResourceValue(id, mPlatformResourceFlag); 193 Pair<String, ResourceValue> resValue = getResourceValue(id, mPlatformResourceFlag); 212 Pair<String, ResourceValue> value = getResourceValue(id, mPlatformResourceFlag); 235 Pair<Strin [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | RetryManager.java | 20 import android.util.Pair; 140 Pair<Boolean, Integer> value; 191 Pair<Boolean, Integer> value; 359 * @return Pair.first == true if stringValue an integer >= 0 361 private Pair<Boolean, Integer> parseNonNegativeInt(String name, String stringValue) { 363 Pair<Boolean, Integer> retVal; 366 retVal = new Pair<Boolean, Integer>(validateNonNegativeInt(name, value), value); 369 retVal = new Pair<Boolean, Integer>(false, 0); 381 * @return Pair.first
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
H A D | GsmSmsCbMessage.java | 21 import android.util.Pair; 74 Pair<String, String> p = parseBody(header, pdu); 108 * @return a Pair of Strings containing the language and body of the message 110 private static Pair<String, String> parseBody(SmsCbHeader header, byte[] pdu) { 207 Pair<String, String> p = unpackBody(pdu, encoding, offset, length, 212 return new Pair<String, String>(language, sb.toString()); 234 * @return a Pair of Strings containing the language and body of the message 236 private static Pair<String, String> unpackBody(byte[] pdu, int encoding, int offset, int length, 285 return new Pair<String, String>(language, body);
|
/frameworks/compile/mclinker/include/mcld/Target/ |
H A D | ELFDynamic.h | 59 typedef llvm::ELF::Elf32_Dyn Pair; typedef in class:mcld::elf_dynamic::Entry 73 { return sizeof(Pair); } 89 Pair m_Pair;
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
H A D | BridgeContext.java | 32 import com.android.util.Pair; 251 Pair<ResourceType, String> resourceInfo = Bridge.resolveResourceId(resid); 299 Pair<ResourceType, String> resourceInfo = Bridge.resolveResourceId(id); 317 public Pair<View, Boolean> inflateView(ResourceReference resource, ViewGroup parent, 330 return Pair.of( 368 return Pair.of( 393 return Pair.of(null, false); 536 List<Pair<String, Boolean>> attributeList = searchAttrs(attrs); 565 Pair<String, Boolean> defStyleAttribute = searchAttr(defStyleAttr); 596 Pair<ResourceTyp [all...] |
/frameworks/base/core/java/android/provider/ |
H A D | SyncStateContract.java | 27 import android.util.Pair; 128 public static Pair<Uri, byte[]> getWithUri(ContentProviderClient provider, Uri uri, 141 return Pair.create(ContentUris.withAppendedId(uri, rowId), blob);
|
H A D | BrowserContract.java | 30 import android.util.Pair; 532 public static Pair<Uri, byte[]> getWithUri(ContentProviderClient provider, Account account)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tablet/ |
H A D | InputMethodsPanel.java | 32 import android.util.Pair; 65 private final HashMap<View, Pair<InputMethodInfo, InputMethodSubtype>> mRadioViewAndImiMap = 66 new HashMap<View, Pair<InputMethodInfo, InputMethodSubtype>>(); 264 subtypeView, new Pair<InputMethodInfo, InputMethodSubtype> (imi, subtype)); 268 Pair<InputMethodInfo, InputMethodSubtype> imiAndSubtype = 339 private Pair<InputMethodInfo, InputMethodSubtype> updateRadioButtonsByView(View selectedView) { 340 Pair<InputMethodInfo, InputMethodSubtype> selectedImiAndSubtype = null; 350 Pair<InputMethodInfo, InputMethodSubtype> imiAndSubtype = 381 Pair<InputMethodInfo, InputMethodSubtype> imiAndSubtype =
|
/frameworks/base/tests/TileBenchmark/src/com/test/tilebenchmark/ |
H A D | ProfileActivity.java | 27 import android.util.Pair; 181 AsyncTask<Pair<String, RunData>, Void, Void> { 184 protected Void doInBackground(Pair<String, RunData>... params) { 253 new StoreFileTask().execute(new Pair<String, RunData>(
|
/frameworks/base/services/java/com/android/server/ |
H A D | InputMethodManagerService.java | 86 import android.util.Pair; 2021 final Pair<String, String> lastIme = mSettings.getLastInputMethodAndSubtypeLocked(); 2107 final Pair<String, String> lastIme = mSettings.getLastInputMethodAndSubtypeLocked(); 2838 List<Pair<String, ArrayList<String>>> enabledInputMethodsList = mSettings 2842 for (Pair<String, ArrayList<String>> pair: enabledInputMethodsList) { 3095 private Pair<InputMethodInfo, InputMethodSubtype> 3167 return new Pair<InputMethodInfo, InputMethodSubtype> (mostApplicableIMI, 3249 Pair<InputMethodInfo, InputMethodSubtype> info = 3429 StringBuilder builder, Pair<String, ArrayList<String>> pair) { 3465 public List<Pair<InputMethodInf [all...] |
/frameworks/base/core/java/android/database/sqlite/ |
H A D | SQLiteDatabase.java | 32 import android.util.Pair; 2053 public List<Pair<String, String>> getAttachedDbs() { 2054 ArrayList<Pair<String, String>> attachedDbs = new ArrayList<Pair<String, String>>(); 2070 attachedDbs.add(new Pair<String, String>("main", mConfigurationLocked.path)); 2088 attachedDbs.add(new Pair<String, String>(c.getString(1), c.getString(2))); 2117 List<Pair<String, String>> attachedDbs = null; 2126 attachedDbs = new ArrayList<Pair<String, String>>(); 2127 attachedDbs.add(new Pair<String, String>("main", getPath())); 2131 Pair<Strin [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/ |
H A D | Bridge.java | 37 import com.android.util.Pair; 84 private final static Map<Integer, Pair<ResourceType, String>> sRMap = 85 new HashMap<Integer, Pair<ResourceType, String>>(); 283 sRMap.put(value, Pair.of(resType, f.getName())); 466 * @return a Pair containing the resource type and name, or null if the id 469 public static Pair<ResourceType, String> resolveResourceId(int value) { 470 Pair<ResourceType, String> pair = sRMap.get(value);
|
/frameworks/base/core/java/android/widget/ |
H A D | RemoteViewsAdapter.java | 34 import android.util.Pair; 91 private static final HashMap<Pair<Intent.FilterComparison, Integer>, FixedSizeRemoteViewsCache> 92 sCachedRemoteViewsCaches = new HashMap<Pair<Intent.FilterComparison, Integer>, 94 private static final HashMap<Pair<Intent.FilterComparison, Integer>, Runnable> 95 sRemoteViewsCacheRemoveRunnables = new HashMap<Pair<Intent.FilterComparison, Integer>, 785 Pair<Intent.FilterComparison, Integer> key = new Pair<Intent.FilterComparison, Integer> 827 final Pair<Intent.FilterComparison, Integer> key = new Pair<Intent.FilterComparison,
|
/frameworks/base/core/java/android/content/ |
H A D | SyncStorageEngine.java | 44 import android.util.Pair; 198 final ArrayList<Pair<Bundle, Long>> periodicSyncs; 216 periodicSyncs = new ArrayList<Pair<Bundle, Long>>(); 217 for (Pair<Bundle, Long> sync : toCopy.periodicSyncs) { 219 periodicSyncs.add(Pair.create(new Bundle(sync.first), sync.second)); 232 periodicSyncs = new ArrayList<Pair<Bundle, Long>>(); 233 periodicSyncs.add(Pair.create(new Bundle(), DEFAULT_POLL_FREQUENCY_SECONDS)); 553 public Pair<Long, Long> getBackoff(Account account, int userId, String providerName) { 560 return Pair.create(authority.backoffTime, authority.backoffDelay); 693 Pair<Bundl [all...] |
H A D | SyncQueue.java | 25 import android.util.Pair; 60 final Pair<Long, Long> backoff = mSyncStorageEngine.getBackoff(
|
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
H A D | BridgeInflater.java | 29 import com.android.util.Pair; 162 Pair<ResourceType, String> layoutInfo = Bridge.resolveResourceId(resource);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/ |
H A D | BaseAdapter.java | 28 import com.android.util.Pair; 148 Pair<View, Boolean> pair = context.inflateView(dataBindingItem.getViewReference(),
|
/frameworks/base/services/java/com/android/server/usb/ |
H A D | UsbDeviceManager.java | 47 import android.util.Pair; 115 private Map<String, List<Pair<String, String>>> mOemModeMap; 813 mOemModeMap = new HashMap<String, List<Pair<String, String>>>(); 817 overrideList = new LinkedList<Pair<String, String>>(); 820 overrideList.add(new Pair<String, String>(items[1], items[2])); 838 List<Pair<String, String>> overrides = mOemModeMap.get(bootMode); 840 for (Pair<String, String> pair: overrides) {
|