/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowParcel.java | 10 import android.util.Pair; 52 private final ArrayList<Pair<Integer, ?>> parcelData = new ArrayList<Pair<Integer, ?>>(); 113 addValueToList(Pair.create(str.length(), str)); 139 addValueToList(Pair.create(Integer.SIZE / 8, i)); 149 addValueToList(Pair.create(Long.SIZE / 8, i)); 159 addValueToList(Pair.create(Float.SIZE / 8, f)); 169 addValueToList(Pair.create(Double.SIZE / 8, f)); 178 addValueToList(Pair.create(1, b)); 186 addValueToList(Pair.create(Character.SIZE / 8, c)) [all...] |
/external/stlport/test/eh/ |
Prefix.h | 292 template <class Pair, class U> 294 struct eh_select1st_hint : public unary_function<Pair, U> { 295 const U& operator () (const Pair& x) const { return x.first; }
|
/frameworks/base/core/java/android/net/ |
NetworkUtils.java | 28 import android.util.Pair; 277 public static Pair<InetAddress, Integer> parseIpAndMask(String ipAndMaskString) { 294 return new Pair<InetAddress, Integer>(address, prefixLength);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/ |
FakeExpandableAdapter.java | 23 import com.android.util.Pair; 137 Pair<View, Boolean> pair = AdapterHelper.getView(item, null /*parentItem*/, parent, local 139 mSkipCallbackParser = pair.getSecond(); 140 return pair.getFirst(); 149 Pair<View, Boolean> pair = AdapterHelper.getView(item, parentItem, parent, mCallback, local 151 mSkipCallbackParser = pair.getSecond(); 152 return pair.getFirst();
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
PlayAnimationMenu.java | 30 import com.android.utils.Pair; 239 Pair<IProject, String> pair = Pair.of(editor.getEditor().getProject(), animationDir); local 240 IStructuredSelection selection = new StructuredSelection(pair);
|
CustomViewFinder.java | 26 import com.android.utils.Pair; 178 * Returns a pair of view lists - the custom views and the 3rd-party views. 184 * @return a pair of lists, the first containing custom views and the second 187 public static Pair<List<String>,List<String>> findViews( 194 private Pair<List<String>,List<String>> findViews(final boolean layoutsOnly) { 279 return Pair.of(custom, thirdParty); 371 Pair<List<String>, List<String>> views = findViews(false);
|
PreviewIconFactory.java | 47 import com.android.utils.Pair; 216 Pair<RGB, RGB> themeColors = getColorsFromTheme(); 288 Pair<RGB, RGB> themeColors = getColorsFromTheme(); 375 * the background or foreground or both, but will always return a pair of possibly 378 * @return a pair of possibly null color descriptions 381 private Pair<RGB, RGB> getColorsFromTheme() { 387 return Pair.of(background, foreground); 428 return Pair.of(background, foreground);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newproject/ |
NewProjectWizardState.java | 29 import com.android.utils.Pair; 102 * The pair is (String: sample display name => File: sample directory). 105 public List<Pair<String, File>> samples = new ArrayList<Pair<String, File>>();
|
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/ |
LoadUrlTest.java | 8 import android.util.Pair; 103 private static List<Pair<String, String>> createHeadersList(String[] namesAndValues) { 104 List<Pair<String, String>> result = new ArrayList<Pair<String, String>>(); 106 result.add(Pair.create(namesAndValues[i], namesAndValues[i + 1]));
|
/external/chromium_org/base/i18n/ |
build_utf8_validator_tables.cc | 119 struct Pair { 124 typedef std::vector<Pair> PairVector; 185 Pair pair = {Character(bytes, bytes + offset), StringSet()}; local 186 vector.push_back(pair); 191 // Construct a new Pair from |character| and the concatenation of |new_range| 197 Pair new_pair = {character, StringSet(1, new_range)}; 222 const Pair& current_pair = *it++;
|
/external/chromium_org/net/android/java/src/org/chromium/net/ |
X509Util.java | 16 import android.util.Pair; 150 * sufficient to efficiently query whether a given X500Principal, PublicKey pair is a trust 160 private static Set<Pair<X500Principal, PublicKey>> sSystemTrustAnchorCache; 211 sSystemTrustAnchorCache = new HashSet<Pair<X500Principal, PublicKey>>(); 340 Pair<X500Principal, PublicKey> key = 341 new Pair<X500Principal, PublicKey>(root.getSubjectX500Principal(), root.getPublicKey());
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
CaptureCollector.java | 21 import android.util.Pair; 482 * @return a pair containing the {@link RequestHolder} and the timestamp of the capture. 484 public Pair<RequestHolder, Long> jpegProduced() { 494 return new Pair<>(h.mRequest, h.mTimestamp); 519 * @return a pair containing the {@link RequestHolder} and the timestamp of the capture. 521 public Pair<RequestHolder, Long> previewCaptured(long timestamp) { 533 return new Pair<>(h.mRequest, h.mTimestamp);
|
RequestThreadManager.java | 35 import android.util.Pair; 123 public final Collection<Pair<Surface, Size>> surfaces; 125 public ConfigureHolder(ConditionVariable condition, Collection<Pair<Surface, 205 Pair<RequestHolder, Long> captureInfo = mCaptureCollector.jpegProduced(); 325 private void configureOutputs(Collection<Pair<Surface, Size>> outputs) { 373 for (Pair<Surface, Size> outPair : outputs) { 477 List<Pair<Surface, Size>> previews = new ArrayList<>(); 480 previews.add(new Pair<>(p, previewSizeIter.next())); 687 Pair<BurstHolder, Long> nextBurst = mRequestQueue.getNext(); [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/tests/functests/layoutRendering/ |
ApiDemosRenderingTest.java | 64 import com.android.util.Pair; 109 private Map<Integer, Pair<ResourceType, String>> mResourceMap = 110 new HashMap<Integer, Pair<ResourceType, String>>(); 131 mResourceMap.put(result, Pair.of(type, name)); 136 public Pair<ResourceType, String> resolveResourceId(int id) {
|
/external/chromium_org/mojo/android/system/src/org/chromium/mojo/system/impl/ |
CoreImpl.java | 18 import org.chromium.mojo.system.Pair; 81 public WaitManyResult waitMany(List<Pair<Handle, HandleSignals>> handles, long deadline) { 86 for (Pair<Handle, HandleSignals> handle : handles) { 114 public Pair<MessagePipeHandle, MessagePipeHandle> createMessagePipe( 126 return Pair.<MessagePipeHandle, MessagePipeHandle> create( 135 public Pair<ProducerHandle, ConsumerHandle> createDataPipe(DataPipe.CreateOptions options) { 148 return Pair.<ProducerHandle, ConsumerHandle> create(
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ |
Hyperlinks.java | 79 import com.android.utils.Pair; 272 * Returns true if this node/attribute pair corresponds to a manifest reference to 289 * Returns true if this node/attribute pair corresponds to a manifest android:name reference 422 * Returns true if this node/attribute pair corresponds to a manifest reference to [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
VideoEncoderTest.java | 37 import android.util.Pair; 63 private LinkedList<Pair<ByteBuffer, BufferInfo>> mStream; 68 mStream = new LinkedList<Pair<ByteBuffer, BufferInfo>>(); 83 mStream.addLast(Pair.create(savedBuffer, savedInfo)); 89 final Iterator<Pair<ByteBuffer, BufferInfo>> it = mStream.iterator(); 101 Pair<ByteBuffer, BufferInfo> el = it.next(); 350 private LinkedList<Pair<Integer, BufferInfo>> mBuffersToRender = 351 new LinkedList<Pair<Integer, BufferInfo>>(); 378 Pair<Integer, BufferInfo> decBuffer = null; 464 mBuffersToRender.addLast(Pair.create(ix, info)) [all...] |
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
CaptureResultTest.java | 30 import android.util.Pair; 189 Pair<TotalCaptureResult, List<CaptureResult>> resultPair = 299 Pair<TotalCaptureResult, Long> result = captureAndVerifyResult(mockCaptureCallback, 307 Pair<TotalCaptureResult, Long> result2 = captureAndVerifyResult(mockCaptureCallback, 322 Pair<TotalCaptureResult, Long> result3 = captureAndVerifyResult(mockCaptureCallback, 324 Pair<TotalCaptureResult, Long> result4 = captureAndVerifyResult(mockCaptureCallback, 560 private final LinkedBlockingQueue<Pair<TotalCaptureResult, List<CaptureResult>> > mQueue = 583 mQueue.put(new Pair<TotalCaptureResult, List<CaptureResult>>( 621 public Pair<TotalCaptureResult, List<CaptureResult>> getCaptureResultPairs(long timeout) { 623 Pair<TotalCaptureResult, List<CaptureResult>> result [all...] |
/frameworks/base/core/java/android/database/sqlite/ |
SQLiteDatabase.java | 32 import android.util.Pair; [all...] |
/external/chromium_org/third_party/WebKit/Source/core/css/ |
CSSBasicShapes.cpp | 34 #include "core/css/Pair.h" 70 static String serializePositionOffset(const Pair& offset, const Pair& other) 87 } else if (Pair* pair = offset->getPairValue()) { 88 side = pair->first()->getValueID(); 89 amount = pair->second(); 109 return cssValuePool().createValue(Pair::create(cssValuePool().createValue(side), amount.release(), Pair::KeepIdenticalValues)); 386 Pair* radius = corner->getPairValue() [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/ |
Bridge.java | 38 import com.android.util.Pair; 89 private final static Map<Integer, Pair<ResourceType, String>> sRMap = 90 new HashMap<Integer, Pair<ResourceType, String>>(); 272 sRMap.put(value, Pair.of(resType, f.getName())); 468 * @return a Pair containing the resource type and name, or null if the id 471 public static Pair<ResourceType, String> resolveResourceId(int value) { 472 Pair<ResourceType, String> pair = sRMap.get(value); local 473 if (pair == null) { 474 pair = sDynamicIds.resolveId(value) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
ExtractStyleRefactoring.java | 53 import com.android.utils.Pair; 249 Pair<Map<String, List<Attr>>, Set<Attr>> getAvailableAttributes() { 301 return Pair.of(mAvailableAttributes, withinSelection); 340 Pair<Integer, String> context = computeInsertContext(file); 454 * @return a pair of an insert offset and an indent string 456 private Pair<Integer, String> computeInsertContext(final IFile file) { 505 return Pair.of(insertAtIndex, indent);
|
/external/llvm/lib/Analysis/ |
MemoryDependenceAnalysis.cpp | [all...] |
/external/stlport/test/unit/ |
alg_test.cpp | 335 typedef pair<int, string> Pair; 338 public binary_function<const Pair&, const string&, bool> 340 bool operator () ( const Pair &p, const string& value ) const
|
/ndk/tests/device/test-gnustl-full/unit/ |
alg_test.cpp | 335 typedef pair<int, string> Pair; 338 public binary_function<const Pair&, const string&, bool> 340 bool operator () ( const Pair &p, const string& value ) const
|