/external/apache-http/src/org/apache/http/impl/client/ |
RedirectLocations.java | 39 * A collection of URIs that were used as redirects. 48 private final Set<URI> uris; field in class:RedirectLocations 52 this.uris = new HashSet<URI>(); 59 return this.uris.contains(uri); 66 this.uris.add(uri); 73 return this.uris.remove(uri);
|
/frameworks/base/core/java/android/nfc/ |
BeamShareData.java | 10 * Allows bundling NdefMessage, Uris and flags in a single 17 public final Uri[] uris; field in class:BeamShareData 21 public BeamShareData(NdefMessage msg, Uri[] uris, UserHandle userHandle, int flags) { 23 this.uris = uris; 35 int urisLength = (uris != null) ? uris.length : 0; 39 dest.writeTypedArray(uris, 0); 49 Uri[] uris = null; 53 uris = new Uri[numUris] [all...] |
/packages/apps/Nfc/src/com/android/nfc/beam/ |
BeamTransferRecord.java | 30 public Uri[] uris; field in class:BeamTransferRecord 38 boolean remoteActivating, Uri[] uris) { 42 this.uris = uris; 49 Uri[] uris) { 50 return new BeamTransferRecord(remoteDevice, remoteActivating, uris); 66 Uri[] uris = null; 68 uris = new Uri[numUris]; 69 in.readTypedArray(uris, Uri.CREATOR); 73 remoteActivating, uris); [all...] |
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/clipping/ |
UrisSupplierTest.java | 76 UrisSupplier uris = createWithShortList(); local 78 assertEquals(SHORT_URI_LIST.size(), uris.getItemCount()); 83 UrisSupplier uris = createWithLongList(); local 85 assertEquals(LONG_URI_LIST.size(), uris.getItemCount()); 90 UrisSupplier uris = createWithShortList(); local 92 assertIterableEquals(SHORT_URI_LIST, uris.getUris(mStorage)); 97 UrisSupplier uris = createWithLongList(); local 99 assertIterableEquals(LONG_URI_LIST, uris.getUris(mStorage)); 104 UrisSupplier uris = createWithShortList(); local 106 uris.dispose() 111 UrisSupplier uris = createWithLongList(); local 121 UrisSupplier uris = local 142 List<Uri> uris = new ArrayList<>(count); local [all...] |
ClipStorageTest.java | 87 List<Uri> uris = new ArrayList<>(); local 92 uris.add(uri); 95 assertEquals(TEST_URIS, uris); 115 List<Uri> uris = new ArrayList<>(); local 126 uris.add(iter.next()); 134 assertEquals(TEST_URIS, uris); 146 private void writeAll(int slot, List<Uri> uris) { 147 mStorage.persistUris(uris, slot); 152 List<Uri> uris = new ArrayList<>(values.length); local 154 uris.add(i, Uri.parse(values[i])) [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/content/ |
ObserverNodeTest.java | 47 Uri[] uris = new Uri[] { local 61 root.addObserverLocked(uris[0], new TestObserver().getContentObserver(), false, root, 63 for(int i = 1; i < uris.length; i++) { 64 root.addObserverLocked(uris[i], new TestObserver().getContentObserver(), true, root, 71 root.collectObserversLocked(uris[i], 0, null, false, 0, myUserHandle, calls); 81 Uri[] uris = new Uri[] { local 93 for(int i = 0; i < uris.length; i++) { 94 root.addObserverLocked(uris[i], new TestObserver().getContentObserver(), false, root, 100 for (int i = uris.length - 1; i >=0; --i) { 101 root.collectObserversLocked(uris[i], 0, null, false, 0, myUserHandle, calls) [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppHandoverReceiver.java | 46 ArrayList<Uri> uris = new ArrayList<Uri>(); local 49 if (stream != null) uris.add(stream); 51 uris = intent.getParcelableArrayListExtra(Intent.EXTRA_STREAM); 54 if (mimeType != null && uris != null && !uris.isEmpty()) { 56 final ArrayList<Uri> finalUris = uris;
|
BluetoothOppLauncherActivity.java | 144 final ArrayList<Uri> uris = intent.getParcelableArrayListExtra(Intent.EXTRA_STREAM); local 145 if (mimeType != null && uris != null) { 146 if (V) Log.v(TAG, "Get ACTION_SHARE_MULTIPLE intent: uris " + uris + "\n Type= " 152 .saveSendingFileInfo(mimeType, uris, false /* isHandover */, 167 Log.e(TAG, "type is null; or sending files URIs are null");
|
BluetoothOppUtility.java | 145 ArrayList<String> uris = Lists.newArrayList(); local 165 uris.add(path.toString()); 169 return uris;
|
/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
ResolvedResourcesJob.java | 39 * Abstract job that resolves all resource URIs into mResolvedDocs. This provides 66 Iterable<Uri> uris = mResourceUris.getUris(appContext); local 67 for (Uri uri : uris) { 79 Log.e(TAG, "Failed to read list of target resource Uris. Cannot continue.", e); 121 Iterable<Uri> uris; local 123 uris = mResourceUris.getUris(appContext); 125 Log.e(TAG, "Failed to read list of target resource Uris. Cannot continue.", e); 131 for (Uri uri : uris) {
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
TestDocumentClipper.java | 58 public ClipData getClipDataForDocuments(List<Uri> uris, 64 public ClipData getClipDataForDocuments(List<Uri> uris, 76 List<Uri> uris = new ArrayList<>(selection.size()); local 78 uris.add(uriBuilder.apply(id)); 81 clipForCut.accept(uris);
|
/frameworks/wilhelm/tests/sandbox/ |
multithread.c | 102 //const char * const uris[4] = {"wav/frog.wav", "wav/bach.wav", "wav/8days.wav", "wav/help16.wav"}; 103 const char * const uris[4] = {"wav/frog.wav", "wav/frog.wav", "wav/frog.wav", "wav/frog.wav"}; variable 147 ta->mURI = (SLchar *) uris[(r >> 1) & 3];
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/ |
TestJobListener.java | 92 public void assertUrisFailed(List<Uri> uris) { 97 assertEquals(finished.failedDocs.size(), uris.size()); 98 for (Uri uri : uris) {
|
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/ |
RuntimeDocumentClipper.java | 102 final List<Uri> uris = new ArrayList<>(selection.size()); local 104 uris.add(uriBuilder.apply(id)); 106 return getClipDataForDocuments(uris, opType); 111 List<Uri> uris, @OpType int opType, DocumentInfo parent) { 112 ClipData clipData = getClipDataForDocuments(uris, opType); 119 public ClipData getClipDataForDocuments(List<Uri> uris, @OpType int opType) { 120 return (uris.size() > Shared.MAX_DOCS_IN_INTENT) 121 ? createJumboClipData(uris, opType) 122 : createStandardClipData(uris, opType); 128 private ClipData createStandardClipData(List<Uri> uris, @OpType int opType) 277 UrisSupplier uris = UrisSupplier.create(clipData, mClipStore); local [all...] |
UrisSupplier.java | 73 UrisSupplier uris; local 76 uris = new JumboUrisSupplier(clipData, storage); 78 uris = new StandardUrisSupplier(clipData); 81 return uris; 88 List<Uri> uris = new ArrayList<>(selection.size()); local 90 uris.add(uriBuilder.apply(id)); 93 return create(uris, storage); 97 static UrisSupplier create(List<Uri> uris, ClipStore storage) throws IOException { 98 UrisSupplier urisSupplier = (uris.size() > Shared.MAX_DOCS_IN_INTENT) 99 ? new JumboUrisSupplier(uris, storage [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
NfcTestActivity.java | 93 Uri[] uris = new Uri[]{uri}; local 95 mNfcAdapter.setBeamPushUris(uris, this);
|
/libcore/ojluni/src/main/java/java/net/ |
InMemoryCookieStore.java | 145 * Get all URIs, which are associated with at least one cookie 149 List<URI> uris = new ArrayList<URI>(); local 157 uris.addAll(uriIndex.keySet()); 340 // index on Android and we want to support null URIs. The underlying
|
/packages/apps/DocumentsUI/src/com/android/documentsui/files/ |
QuickViewIntentBuilder.java | 111 final ArrayList<Uri> uris = new ArrayList<>(); local 112 final int documentLocation = collectViewableUris(uris); 113 final Range<Integer> range = computeSiblingsRange(uris, documentLocation); 119 uri = uris.get(i); 124 "URIs", new String[] { ClipDescription.MIMETYPE_TEXT_URILIST }, 131 // The documentLocation variable contains an index in "uris". However, 132 // ClipData contains a slice of "uris", so we need to shift the location 166 private int collectViewableUris(ArrayList<Uri> uris) { 168 uris.ensureCapacity(siblingIds.length); 200 uris.add(uri) [all...] |
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/ |
PickActivity.java | 314 final Uri[] uris = new Uri[size]; local 316 uris[i] = docs.get(i).derivedUri; 318 mInjector.actions.finishPicking(uris);
|
/packages/apps/Nfc/src/com/android/nfc/ |
BeamShareActivity.java | 194 final ArrayList<Uri> uris = intent.getParcelableArrayListExtra(Intent.EXTRA_STREAM); local 198 if (uris != null && uris.size() > 0) { 199 for (Uri uri : uris) { 217 // Uris have our first preference for sharing 247 // No uris left
|
/packages/apps/Contacts/src/com/android/contacts/vcard/ |
ImportVCardActivity.java | 224 // Uris given from caller applications may not be opened twice: consider when 310 * app local storage, as we cannot guarantee other types of Uris can be read 403 private void importVCard(final Uri[] uris, final String[] sourceDisplayNames) { 408 mVCardCacheThread = new VCardCacheThread(uris, sourceDisplayNames); 551 // Reading uris from non-storage needs the permission granted from the source intent, 553 // permissions from RequestImportVCardPermissionActivity for uris from non-storage source. 679 final ArrayList<Uri> uris = new ArrayList<>(); local 688 uris.add(localUri); 693 if (uris.isEmpty()) { 697 Log.i(LOG_TAG, "Multiple vCards selected for import: " + uris); [all...] |
ImportProcessor.java | 196 List<Uri> uris = committer.getCreatedUris(); local 198 if (uris != null && uris.size() == 1) { 199 mListener.onImportFinished(mImportRequest, mJobId, uris.get(0)); 201 if (uris == null || uris.size() == 0) { 203 Log.w(LOG_TAG, "Created Uris is null or 0 length " +
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
ActionModeHandler.java | 311 private void setNfcBeamPushUris(Uri[] uris) { 314 mNfcAdapter.setBeamPushUris(uris, mActivity); 325 final ArrayList<Uri> uris = new ArrayList<Uri>(); local 330 uris.add(manager.getContentUri(path)); 333 final int size = uris.size(); 338 intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris); 342 intent.putExtra(Intent.EXTRA_STREAM, uris.get(0)); 356 final ArrayList<Uri> uris = new ArrayList<Uri>(); local 366 uris.add(manager.getContentUri(path)); 370 final int size = uris.size() [all...] |
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
TriggerContentTest.java | 54 // Path segments for image-specific URIs in the provider. 196 private void assertUriArrayLength(int length, Uri[] uris) { 197 if (uris.length != length) { 202 sb.append(uris.length); 203 if (uris.length > 0) { 205 for (int i=0; i<uris.length; i++) { 209 sb.append(uris[i]); 216 private void assertHasUri(Uri wanted, Uri[] uris) { 217 for (int i=0; i<uris.length; i++) { 218 if (wanted.equals(uris[i])) 259 Uri[] uris = params.getTriggeredContentUris(); local 306 Uri[] uris = params.getTriggeredContentUris(); local 348 Uri[] uris = params.getTriggeredContentUris(); local 414 Uri[] uris = params.getTriggeredContentUris(); local [all...] |
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
DragAndDropManager.java | 239 List<Uri> uris = new ArrayList<>(srcs.size()); local 241 uris.add(doc.derivedUri); 244 ? mClipper.getClipDataForDocuments(uris, FileOperationService.OPERATION_UNKNOWN) 246 uris, FileOperationService.OPERATION_UNKNOWN, parent);
|