/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | DebugReportProcessorTest.java | 74 List<Uri> uris = DebugReportProcessor.getUrisFromAdAuction(List.of(debugReport), signals); in singleBuyerSessionSuccessfulCase_returnsWinUri() local 76 assertThat(uris).containsExactly(winUri); in singleBuyerSessionSuccessfulCase_returnsWinUri() 99 List<Uri> uris = in multiBuyerSessionFailedCase_returnsLosingUri() local 103 assertThat(uris).containsExactly(lossUri1, lossUri2); in multiBuyerSessionFailedCase_returnsLosingUri() 116 List<Uri> uris = DebugReportProcessor.getUrisFromAdAuction(List.of(debugReport), signals); in singleBuyerSessionWithWinningBid_returnsWinningUri() local 118 assertThat(Objects.requireNonNull(uris).get(0).toString()) in singleBuyerSessionWithWinningBid_returnsWinningUri() 136 List<Uri> uris = DebugReportProcessor.getUrisFromAdAuction(List.of(debugReport), signals); in singleBuyerSessionWithMismatchedAdTech_returnsNoUri() local 138 assertThat(uris).isEmpty(); in singleBuyerSessionWithMismatchedAdTech_returnsNoUri() 151 List<Uri> uris = DebugReportProcessor.getUrisFromAdAuction(List.of(debugReport), signals); in singleBuyerSessionWithEmptyUri_returnsNoUri() local 153 assertThat(uris).isEmpty(); in singleBuyerSessionWithEmptyUri_returnsNoUri() [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() 103 public static UrisSupplier create(List<Uri> uris, ClipStore storage) throws IOException { in create() argument 104 UrisSupplier urisSupplier = (uris.size() > Shared.MAX_DOCS_IN_INTENT) in create() 105 ? 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/modules/IntentResolver/tests/unit/src/com/android/intentresolver/widget/ |
D | BatchPreviewLoaderTest.kt | 112 val uris = Array(10) { createUri(it) } in <lambda>() constant 114 Array(uris.size) { i -> in <lambda>() 118 i % 2 == 0 && i < uris.size - 1 -> i + 1 in <lambda>() 121 succeed(uris[uriIdx]) in <lambda>() 125 BatchPreviewLoader(imageLoader, previews(*uris), uris.size, onUpdate, onCompletion) in <lambda>() 134 assertThat(list).containsExactly(*uris).inOrder() in <lambda>() 140 val uris = Array(10) { createUri(it) } in <lambda>() constant 142 Array(uris.size) { i -> in <lambda>() 146 i % 2 == 0 && i < uris.size - 1 -> i + 1 in <lambda>() 149 if (uriIdx % 2 == 0) fail(uris[uriIdx]) else succeed(uris[uriIdx]) in <lambda>() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/files/ |
D | QuickViewIntentBuilder.java | 124 final ArrayList<Uri> uris = new ArrayList<>(); in build() local 125 final int documentLocation = collectViewableUris(uris); in build() 126 final Range<Integer> range = computeSiblingsRange(uris, documentLocation); in build() 132 uri = uris.get(i); in build() 180 private int collectViewableUris(ArrayList<Uri> uris) { in collectViewableUris() argument 182 uris.ensureCapacity(siblingIds.length); in collectViewableUris() 240 uris.add(uri); in collectViewableUris() 241 documentLocation = uris.size() - 1; // Position in "uris", not in the model. in collectViewableUris() 246 uris.add(uri); in collectViewableUris() 250 if (!uris.isEmpty() && hasNonMatchingDocumentUser) { in collectViewableUris() [all …]
|
/packages/apps/Settings/src/com/android/settings/panel/ |
D | VolumePanel.java | 138 final List<Uri> uris = new ArrayList<>(); in getSlices() local 140 uris.add(REMOTE_MEDIA_SLICE_URI); in getSlices() 141 uris.add(VOLUME_MEDIA_URI); in getSlices() 145 uris.add(controlUri); in getSlices() 147 uris.add(MEDIA_OUTPUT_INDICATOR_SLICE_URI); in getSlices() 148 uris.add(VOLUME_CALL_URI); in getSlices() 149 uris.add(VOLUME_SEPARATE_RING_URI); in getSlices() 150 uris.add(VOLUME_NOTIFICATION_URI); in getSlices() 151 uris.add(VOLUME_ALARM_URI); in getSlices() 152 return uris; in getSlices()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | PermissionActivity.java | 107 private List<Uri> uris; field in PermissionActivity 180 uris = collectUris(getIntent().getExtras().getParcelable(MediaStore.EXTRA_CLIP_DATA)); in onCreate() 189 volumeName = MediaStore.getVolumeName(uris.get(0)); in onCreate() 223 handleImageViewVisibility(bodyView, uris); in onCreate() 224 new DescriptionTask(bodyView).execute(uris); in onCreate() 305 Log.d(TAG, "User allowed grant for " + uris); in onPositiveAction() 307 getCallingPackage(), uris.size()); in onPositiveAction() 311 for (Uri uri : uris) { in onPositiveAction() 321 for (Uri uri : uris) { in onPositiveAction() 333 for (Uri uri : uris) { in onPositiveAction() [all …]
|
D | MediaGrants.java | 110 void addMediaGrantsForPackage(String packageName, List<Uri> uris, int packageUserId) in addMediaGrantsForPackage() argument 114 Objects.requireNonNull(uris); in addMediaGrantsForPackage() 119 for (Uri uri : uris) { in addMediaGrantsForPackage() 149 uris.size(), packageName)); in addMediaGrantsForPackage() 186 int removeMediaGrantsForPackage(@NonNull String[] packages, @NonNull List<Uri> uris, in removeMediaGrantsForPackage() argument 189 Objects.requireNonNull(uris); in removeMediaGrantsForPackage() 198 createTempTableWithLocalIdsAsColumn(uris, db); in removeMediaGrantsForPackage() 208 .setUriSelection(uris) in removeMediaGrantsForPackage() 225 private static void createTempTableWithLocalIdsAsColumn(@NonNull List<Uri> uris, 235 List<List<Uri>> listOfSelectionArgsForId = splitArrayList(uris, [all …]
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/contentpreview/payloadtoggle/domain/intent/ |
D | TargetIntentModifier.kt | 44 val uris = selection.mapTo(ArrayList()) { it.getUri() } in intentFromSelection() constant 55 putParcelableArrayListExtra(EXTRA_STREAM, uris) in intentFromSelection() 58 if (uris.isNotEmpty()) { in intentFromSelection() 60 ClipData("", arrayOf(targetMimeType), ClipData.Item(uris[0])).also { in intentFromSelection() 61 for (i in 1 until uris.size) { in intentFromSelection() 62 it.addItem(ClipData.Item(uris[i])) in intentFromSelection()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | LoadDocStackTask.java | 67 public @Nullable DocumentStack run(Uri... uris) { in run() argument 68 if (mDocs.isDocumentUri(uris[0])) { in run() 70 if (DocumentsContract.isTreeUri(uris[0])) { in run() 73 final String docId = DocumentsContract.getDocumentId(uris[0]); in run() 74 docUri = DocumentsContract.buildDocumentUri(uris[0].getAuthority(), docId); in run() 76 docUri = uris[0]; in run()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/ |
D | BluetoothOppHandoverReceiver.java | 50 ArrayList<Uri> uris = new ArrayList<Uri>(); in onReceive() local 54 uris.add(stream); in onReceive() 57 uris = intent.getParcelableArrayListExtra(Intent.EXTRA_STREAM); in onReceive() 60 if (mimeType != null && uris != null && !uris.isEmpty()) { in onReceive() 62 final ArrayList<Uri> finalUris = uris; in onReceive()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/ |
D | DebugReportSenderStrategyHttpImpl.java | 60 public void batchEnqueue(List<Uri> uris) { in batchEnqueue() argument 61 mDebugReportQueue.addAll(uris); in batchEnqueue() 66 List<Uri> uris = mDebugReportQueue.stream().collect(Collectors.toList()); in flush() local 68 if (uris.isEmpty()) { in flush() 72 uris.stream() in flush()
|
D | DebugReportSenderStrategyNoOp.java | 47 public void batchEnqueue(List<Uri> uris) { in batchEnqueue() argument 48 mDebugReportQueue.addAll(uris); in batchEnqueue() 54 List<Uri> uris = mDebugReportQueue.stream().collect(Collectors.toList()); in flush() 56 for (Uri uri : uris) { in flush()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | MediaGrantsTest.java | 103 List<Uri> uris = List.of(buildValidPickerUri(fileId1), buildValidPickerUri(fileId2)); in testAddMediaGrants() local 105 mGrants.addMediaGrantsForPackage(TEST_OWNER_PACKAGE_NAME, uris, TEST_USER_ID); in testAddMediaGrants() 334 List<Uri> uris = List.of(buildValidPickerUri(fileId1)); in testAddDuplicateMediaGrants() local 335 mGrants.addMediaGrantsForPackage(TEST_OWNER_PACKAGE_NAME, uris, TEST_USER_ID); in testAddDuplicateMediaGrants() 339 mGrants.addMediaGrantsForPackage(TEST_OWNER_PACKAGE_NAME, uris, TEST_USER_ID); in testAddDuplicateMediaGrants() 368 List<Uri> uris = List.of(buildValidPickerUri(fileId1), buildValidPickerUri(fileId2)); in removeAllMediaGrantsForPackage() local 369 mGrants.addMediaGrantsForPackage(TEST_OWNER_PACKAGE_NAME, uris, TEST_USER_ID); in removeAllMediaGrantsForPackage() 405 List<Uri> uris = List.of(buildValidPickerUri(fileId1), buildValidPickerUri(fileId2)); in removeAllMediaGrantsForMultiplePackages() local 406 mGrants.addMediaGrantsForPackage(TEST_OWNER_PACKAGE_NAME, uris, TEST_USER_ID); in removeAllMediaGrantsForMultiplePackages() 407 mGrants.addMediaGrantsForPackage(TEST_OWNER_PACKAGE_NAME2, uris, TEST_USER_ID); in removeAllMediaGrantsForMultiplePackages() [all …]
|
/packages/apps/Traceur/src_common/com/android/traceur/ |
D | FileSender.java | 44 List<Uri> uris = new ArrayList(); in getUriForFiles() local 46 uris.add(FileProvider.getUriForFile(context, authority, file)); in getUriForFiles() 48 return uris; in getUriForFiles() 77 private static ClipData buildClipData(List<Uri> uris) { in buildClipData() argument 79 for (Uri uri : uris) { in buildClipData()
|
/packages/modules/IntentResolver/tests/activity/src/com/android/intentresolver/ |
D | ChooserActivityTest.java | 1005 ArrayList<Uri> uris = new ArrayList<>(); in oneVisibleImagePreview() local 1006 uris.add(uri); in oneVisibleImagePreview() 1008 Intent sendIntent = createSendUriIntentWithPreview(uris); in oneVisibleImagePreview() 1042 ArrayList<Uri> uris = new ArrayList<>(); in allThumbnailsFailedToLoad_hidePreview() local 1043 uris.add(uri); in allThumbnailsFailedToLoad_hidePreview() 1044 uris.add(uri); in allThumbnailsFailedToLoad_hidePreview() 1046 Intent sendIntent = createSendUriIntentWithPreview(uris); in allThumbnailsFailedToLoad_hidePreview() 1061 ArrayList<Uri> uris = new ArrayList<>(1); in testSlowUriMetadata_fallbackToFilePreview() local 1062 uris.add(uri); in testSlowUriMetadata_fallbackToFilePreview() 1063 Intent sendIntent = createSendUriIntentWithPreview(uris); in testSlowUriMetadata_fallbackToFilePreview() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
D | ResolvedResourcesJob.java | 67 Iterable<Uri> uris = mResourceUris.getUris(appContext); in setUp() local 68 for (Uri uri : uris) { in setUp() 122 Iterable<Uri> uris; in buildDocumentList() local 124 uris = mResourceUris.getUris(appContext); in buildDocumentList() 132 for (Uri uri : uris) { in buildDocumentList()
|
/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/Gallery2/src/com/android/gallery3d/ui/ |
D | ActionModeHandler.java | 314 final ArrayList<Uri> uris = new ArrayList<Uri>(); in computePanoramaSharingIntent() local 319 uris.add(manager.getContentUri(path)); in computePanoramaSharingIntent() 322 final int size = uris.size(); in computePanoramaSharingIntent() 327 intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris); in computePanoramaSharingIntent() 331 intent.putExtra(Intent.EXTRA_STREAM, uris.get(0)); in computePanoramaSharingIntent() 344 final ArrayList<Uri> uris = new ArrayList<Uri>(); in computeSharingIntent() local 354 uris.add(manager.getContentUri(path)); in computeSharingIntent() 358 final int size = uris.size(); in computeSharingIntent() 363 intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris); in computeSharingIntent() 366 intent.putExtra(Intent.EXTRA_STREAM, uris.get(0)); in computeSharingIntent()
|
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/ |
D | MainActivity.kt | 307 val uris: MutableList<Uri> = selection.map { it.mediaUri }.toMutableList() in <lambda>() constant 311 resultData.setData(uris.removeFirst()) in <lambda>() 312 } else if (uris.isNotEmpty()) { in <lambda>() 318 /* item= */ ClipData.Item(uris.removeFirst()) in <lambda>() 323 for (uri in uris) { in <lambda>() 362 val uris: List<Uri> = selection.map { it.mediaUri } in <lambda>() constant 363 MediaStore.grantMediaReadForPackage(getApplicationContext(), uid, uris) in <lambda>()
|
/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()
|