/packages/apps/Nfc/src/com/android/nfc/beam/ |
D | BeamTransferRecord.java | 30 public Uri[] uris; field in BeamTransferRecord 38 boolean remoteActivating, Uri[] uris) { in BeamTransferRecord() argument 42 this.uris = uris; in BeamTransferRecord() 49 Uri[] uris) { in forBluetoothDevice() argument 50 return new BeamTransferRecord(remoteDevice, remoteActivating, uris); in forBluetoothDevice() 66 Uri[] uris = null; 68 uris = new Uri[numUris]; 69 in.readTypedArray(uris, Uri.CREATOR); 73 remoteActivating, uris); 93 dest.writeInt(uris != null ? uris.length : 0); in writeToParcel() [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/clipping/ |
D | UrisSupplierTest.java | 78 UrisSupplier uris = createWithShortList(); in testItemCountEquals_shortList() local 80 assertEquals(SHORT_URI_LIST.size(), uris.getItemCount()); in testItemCountEquals_shortList() 85 UrisSupplier uris = createWithLongList(); in testItemCountEquals_longList() local 87 assertEquals(LONG_URI_LIST.size(), uris.getItemCount()); in testItemCountEquals_longList() 92 UrisSupplier uris = createWithShortList(); in testGetDocsEquals_shortList() local 94 assertIterableEquals(SHORT_URI_LIST, uris.getUris(mStorage)); in testGetDocsEquals_shortList() 99 UrisSupplier uris = createWithLongList(); in testGetDocsEquals_longList() local 101 assertIterableEquals(LONG_URI_LIST, uris.getUris(mStorage)); in testGetDocsEquals_longList() 106 UrisSupplier uris = createWithShortList(); in testDispose_shortList() local 108 uris.dispose(); in testDispose_shortList() [all …]
|
D | ClipStorageTest.java | 92 List<Uri> uris = new ArrayList<>(); in testRead() local 97 uris.add(uri); in testRead() 100 assertEquals(TEST_URIS, uris); in testRead() 120 List<Uri> uris = new ArrayList<>(); in testReadConcurrently() local 131 uris.add(iter.next()); in testReadConcurrently() 139 assertEquals(TEST_URIS, uris); in testReadConcurrently() 151 private void writeAll(int slot, List<Uri> uris) { in writeAll() argument 152 mStorage.persistUris(uris, slot); in writeAll() 157 List<Uri> uris = new ArrayList<>(values.length); in createList() local 159 uris.add(i, Uri.parse(values[i])); in createList() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/ |
D | RuntimeDocumentClipper.java | 102 final List<Uri> uris = new ArrayList<>(selection.size()); in getClipDataForDocuments() local 104 uris.add(uriBuilder.apply(id)); in getClipDataForDocuments() 106 return getClipDataForDocuments(uris, opType); in getClipDataForDocuments() 111 List<Uri> uris, @OpType int opType, DocumentInfo parent) { in getClipDataForDocuments() argument 112 ClipData clipData = getClipDataForDocuments(uris, opType); in getClipDataForDocuments() 119 public ClipData getClipDataForDocuments(List<Uri> uris, @OpType int opType) { in getClipDataForDocuments() argument 120 return (uris.size() > Shared.MAX_DOCS_IN_INTENT) in getClipDataForDocuments() 121 ? createJumboClipData(uris, opType) in getClipDataForDocuments() 122 : createStandardClipData(uris, opType); in getClipDataForDocuments() 128 private ClipData createStandardClipData(List<Uri> uris, @OpType int opType) { in createStandardClipData() argument [all …]
|
D | UrisSupplier.java | 74 UrisSupplier uris; in create() local 77 uris = new JumboUrisSupplier(clipData, storage); in create() 79 uris = new StandardUrisSupplier(clipData); in create() 82 return uris; in create() 89 List<Uri> uris = new ArrayList<>(selection.size()); in create() local 91 uris.add(uriBuilder.apply(id)); in create() 94 return create(uris, storage); in create() 98 static UrisSupplier create(List<Uri> uris, ClipStore storage) throws IOException { in create() argument 99 UrisSupplier urisSupplier = (uris.size() > Shared.MAX_DOCS_IN_INTENT) in create() 100 ? new JumboUrisSupplier(uris, storage) in create() [all …]
|
D | ClipStorage.java | 239 public int persistUris(Iterable<Uri> uris) { in persistUris() argument 241 persistUris(uris, slot); in persistUris() 246 void persistUris(Iterable<Uri> uris, int slot) { in persistUris() argument 247 new PersistTask(this, uris, slot).execute(); in persistUris() 259 PersistTask(ClipStorage clipStore, Iterable<Uri> uris, int slot) { in PersistTask() argument 261 mUris = uris; in PersistTask()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/files/ |
D | QuickViewIntentBuilder.java | 121 final ArrayList<Uri> uris = new ArrayList<>(); in build() local 122 final int documentLocation = collectViewableUris(uris); in build() 123 final Range<Integer> range = computeSiblingsRange(uris, documentLocation); in build() 129 uri = uris.get(i); in build() 177 private int collectViewableUris(ArrayList<Uri> uris) { in collectViewableUris() argument 179 uris.ensureCapacity(siblingIds.length); in collectViewableUris() 215 uris.add(uri); in collectViewableUris() 218 documentLocation = uris.size() - 1; // Position in "uris", not in the model. in collectViewableUris() 241 private static Range<Integer> computeSiblingsRange(List<Uri> uris, int documentLocation) { in computeSiblingsRange() argument 247 if (documentLocation < uris.size() / 2) { in computeSiblingsRange() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/panel/ |
D | VolumePanel.java | 56 final List<Uri> uris = new ArrayList<>(); in getSlices() local 57 uris.add(VOLUME_REMOTE_MEDIA_URI); in getSlices() 58 uris.add(VOLUME_MEDIA_URI); in getSlices() 59 uris.add(MEDIA_OUTPUT_INDICATOR_SLICE_URI); in getSlices() 60 uris.add(VOLUME_CALL_URI); in getSlices() 61 uris.add(VOLUME_RINGER_URI); in getSlices() 62 uris.add(VOLUME_ALARM_URI); in getSlices() 63 return uris; in getSlices()
|
D | InternetConnectivityPanel.java | 57 final List<Uri> uris = new ArrayList<>(); in getSlices() local 58 uris.add(CustomSliceRegistry.WIFI_SLICE_URI); in getSlices() 59 uris.add(CustomSliceRegistry.MOBILE_DATA_SLICE_URI); in getSlices() 60 uris.add(CustomSliceRegistry.AIRPLANE_URI); in getSlices() 61 return uris; in getSlices()
|
/packages/apps/Settings/src/com/android/settings/panel/ |
D | VolumePanel.java | 57 final List<Uri> uris = new ArrayList<>(); in getSlices() local 59 uris.add(VOLUME_REMOTE_MEDIA_URI); in getSlices() 61 uris.add(VOLUME_MEDIA_URI); in getSlices() 62 uris.add(MEDIA_OUTPUT_INDICATOR_SLICE_URI); in getSlices() 63 uris.add(VOLUME_CALL_URI); in getSlices() 64 uris.add(VOLUME_RINGER_URI); in getSlices() 65 uris.add(VOLUME_ALARM_URI); in getSlices() 66 return uris; in getSlices()
|
D | InternetConnectivityPanel.java | 57 final List<Uri> uris = new ArrayList<>(); in getSlices() local 58 uris.add(CustomSliceRegistry.WIFI_SLICE_URI); in getSlices() 59 uris.add(CustomSliceRegistry.MOBILE_DATA_SLICE_URI); in getSlices() 60 uris.add(CustomSliceRegistry.AIRPLANE_URI); in getSlices() 61 return uris; in getSlices()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | ActionModeHandler.java | 311 private void setNfcBeamPushUris(Uri[] uris) { in setNfcBeamPushUris() argument 314 mNfcAdapter.setBeamPushUris(uris, mActivity); in setNfcBeamPushUris() 325 final ArrayList<Uri> uris = new ArrayList<Uri>(); in computePanoramaSharingIntent() local 330 uris.add(manager.getContentUri(path)); in computePanoramaSharingIntent() 333 final int size = uris.size(); in computePanoramaSharingIntent() 338 intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris); in computePanoramaSharingIntent() 342 intent.putExtra(Intent.EXTRA_STREAM, uris.get(0)); in computePanoramaSharingIntent() 356 final ArrayList<Uri> uris = new ArrayList<Uri>(); in computeSharingIntent() local 366 uris.add(manager.getContentUri(path)); in computeSharingIntent() 370 final int size = uris.size(); in computeSharingIntent() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | LoadDocStackTask.java | 62 public @Nullable DocumentStack run(Uri... uris) { in run() argument 63 if (mDocs.isDocumentUri(uris[0])) { in run() 65 if (DocumentsContract.isTreeUri(uris[0])) { in run() 68 final String docId = DocumentsContract.getDocumentId(uris[0]); in run() 69 docUri = DocumentsContract.buildDocumentUri(uris[0].getAuthority(), docId); in run() 71 docUri = uris[0]; in run()
|
D | ModelId.java | 47 public static final ArrayList<String> build(ArrayList<Uri> uris) { in build() argument 48 if (uris == null || uris.isEmpty()) { in build() 53 for (Uri uri : uris) { in build()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppHandoverReceiver.java | 49 ArrayList<Uri> uris = new ArrayList<Uri>(); in onReceive() local 53 uris.add(stream); in onReceive() 56 uris = intent.getParcelableArrayListExtra(Intent.EXTRA_STREAM); in onReceive() 59 if (mimeType != null && uris != null && !uris.isEmpty()) { in onReceive() 61 final ArrayList<Uri> finalUris = uris; in onReceive()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/panel/ |
D | VolumePanelTest.java | 86 final List<Uri> uris = mPanel.getSlices(); in getSlices_hasActiveRemoteToken_containsRemoteMediaUri() local 88 assertThat(uris).containsExactly( in getSlices_hasActiveRemoteToken_containsRemoteMediaUri() 99 final List<Uri> uris = mPanel.getSlices(); in getSlices_doesNotHaveActiveRemoteToken_doesNotcontainRemoteMediaUri() local 104 assertThat(uris).doesNotContain(CustomSliceRegistry.VOLUME_REMOTE_MEDIA_URI); in getSlices_doesNotHaveActiveRemoteToken_doesNotcontainRemoteMediaUri() 105 assertThat(uris).containsExactly( in getSlices_doesNotHaveActiveRemoteToken_doesNotcontainRemoteMediaUri()
|
D | MediaOutputPanelTest.java | 49 final List<Uri> uris = mPanel.getSlices(); in getSlices_containsNecessarySlices() local 51 assertThat(uris).containsExactly(CustomSliceRegistry.MEDIA_OUTPUT_SLICE_URI); in getSlices_containsNecessarySlices() 56 final List<Uri> uris = mPanel.getSlices(); in getSlices_verifyPackageName_isEqual() local 58 assertThat(uris.get(0).getQueryParameter(MEDIA_PACKAGE_NAME)).isEqualTo(TEST_PACKAGENAME); in getSlices_verifyPackageName_isEqual()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
D | ResolvedResourcesJob.java | 66 Iterable<Uri> uris = mResourceUris.getUris(appContext); in setUp() local 67 for (Uri uri : uris) { in setUp() 121 Iterable<Uri> uris; in buildDocumentList() local 123 uris = mResourceUris.getUris(appContext); in buildDocumentList() 131 for (Uri uri : uris) { in buildDocumentList()
|
/packages/apps/Contacts/src/com/android/contacts/vcard/ |
D | ImportProcessor.java | 196 List<Uri> uris = committer.getCreatedUris(); in runInternal() local 198 if (uris != null && uris.size() == 1) { in runInternal() 199 mListener.onImportFinished(mImportRequest, mJobId, uris.get(0)); in runInternal() 201 if (uris == null || uris.size() == 0) { in runInternal()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestDocumentClipper.java | 59 public ClipData getClipDataForDocuments(List<Uri> uris, in getClipDataForDocuments() argument 65 public ClipData getClipDataForDocuments(List<Uri> uris, in getClipDataForDocuments() argument 77 List<Uri> uris = new ArrayList<>(selection.size()); in clipDocumentsForCut() local 79 uris.add(uriBuilder.apply(id)); in clipDocumentsForCut() 82 clipForCut.accept(uris); in clipDocumentsForCut()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/ |
D | MessageBuilder.java | 84 List<Uri> uris) { in generateListMessage() argument 123 if (uris != null) { in generateListMessage() 124 for (Uri uri : uris) { in generateListMessage() 131 final int totalItems = docs.size() + (uris != null ? uris.size() : 0); in generateListMessage()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/ |
D | ActionHandler.java | 425 private void onPickFinished(Uri... uris) { in onPickFinished() argument 427 Log.d(TAG, "onFinished() " + Arrays.toString(uris)); in onPickFinished() 431 if (uris.length == 1) { in onPickFinished() 432 intent.setData(uris[0]); in onPickFinished() 433 } else if (uris.length > 1) { in onPickFinished() 435 null, mState.acceptMimes, new ClipData.Item(uris[0])); in onPickFinished() 436 for (int i = 1; i < uris.length; i++) { in onPickFinished() 437 clipData.addItem(new ClipData.Item(uris[i])); in onPickFinished()
|
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/ |
D | ManualDiscovery.java | 105 Set<Uri> uris = new LinkedHashSet<>(); in addManualPrinter() local 116 uris.add(targetUri); in addManualPrinter() 119 mAddRequests.add(new CapabilitiesFinder(uris, callback)); in addManualPrinter() 169 CapabilitiesFinder(Collection<Uri> uris, PrinterAddCallback callback) { in CapabilitiesFinder() argument 171 for (Uri uri : uris) { in CapabilitiesFinder()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | ChangeNotifier.java | 36 public ChangeNotifier(MediaSet set, Uri[] uris, GalleryApp application) { in ChangeNotifier() argument 38 for (int i = 0; i < uris.length; i++) { in ChangeNotifier() 39 application.getDataManager().registerChangeNotifier(uris[i], this); in ChangeNotifier()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/services/ |
D | FileOperationServiceTest.java | 330 List<Uri> uris = new ArrayList<>(files.size()); in createCopyIntent() local 332 uris.add(file.derivedUri); in createCopyIntent() 335 UrisSupplier urisSupplier = DocsProviders.createDocsProvider(uris); in createCopyIntent() 344 List<Uri> uris = new ArrayList<>(files.size()); in createDeleteIntent() local 346 uris.add(file.derivedUri); in createDeleteIntent() 349 UrisSupplier urisSupplier = DocsProviders.createDocsProvider(uris); in createDeleteIntent()
|