Home
last modified time | relevance | path

Searched refs:fileUri (Results 1 – 22 of 22) sorted by relevance

/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/download/mdd/
DOnDevicePersonalizationFileDownloaderTest.java60 Uri fileUri = AndroidUri.builder(mContext).setModule("mdd").setRelativePath( in testValidDebugUrl() local
63 BASE_URL).setFileUri(fileUri).setDownloadConstraints( in testValidDebugUrl()
68 assertTrue(mFileStorage.exists(fileUri)); in testValidDebugUrl()
69 mFileStorage.deleteFile(fileUri); in testValidDebugUrl()
78 Uri fileUri = AndroidUri.builder(mContext).setModule("mdd").setRelativePath( in testUnsecureUrl() local
81 downloadUrl).setFileUri(fileUri).setDownloadConstraints( in testUnsecureUrl()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DUpdatePickResultTask.java50 Uri fileUri = mPickResult.getFileUri(); in doInBackground() local
51 if (fileUri != null) { in doInBackground()
53 Metrics.sanitizeMime(mContext.getContentResolver().getType(fileUri))); in doInBackground()
56 mPickCountRecord.increasePickCountRecord(mContext, fileUri)); in doInBackground()
DPickResult.java187 public void setFileUri(Uri fileUri) { in setFileUri() argument
188 this.mFileUri = fileUri; in setFileUri()
/packages/modules/OnDevicePersonalization/tests/manualtests/src/com/android/ondevicepersonalization/services/download/mdd/
DLocalFileDownloaderTest.java55 Uri fileUri = AndroidUri.builder(mContext).setModule("mdd").setRelativePath( in testValidDebugUrl() local
58 BASE_URL).setFileUri(fileUri).setDownloadConstraints( in testValidDebugUrl()
63 assertTrue(mFileStorage.exists(fileUri)); in testValidDebugUrl()
64 mFileStorage.deleteFile(fileUri); in testValidDebugUrl()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/download/mdd/
DOnDevicePersonalizationLocalFileDownloader.java95 Uri fileUri = downloadRequest.fileUri(); in startDownloadingInternal() local
108 try (OutputStream out = mFileStorage.open(fileUri, writeStreamOpener)) { in startDownloadingInternal()
112 sLogger.d(TAG + ": File URI " + fileUri in startDownloadingInternal()
DOnDevicePersonalizationFileDownloader.java141 Uri fileUri = downloadRequest.fileUri(); in startDownloading() local
143 sLogger.d(TAG + ": startDownloading; fileUri: " + fileUri in startDownloading()
147 if (uriToDownload == null || fileUri == null) { in startDownloading()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/
DBluetoothOppLauncherActivity.java150 final Uri fileUri = in onCreate() local
153 if (fileUri != null) { in onCreate()
161 fileUri.toString(), in onCreate()
335 Uri fileUri = null; in createFileForSharedContent() local
405 fileUri = Uri.fromFile(new File(context.getFilesDir(), fileName)); in createFileForSharedContent()
406 if (fileUri != null) { in createFileForSharedContent()
407 Log.d(TAG, "Created one file for shared content: " + fileUri.toString()); in createFileForSharedContent()
446 return fileUri; in createFileForSharedContent()
DBluetoothOppManager.java466 Uri fileUri = mUris.get(i); in insertMultipleShare() local
468 values.put(BluetoothShare.URI, fileUri.toString()); in insertMultipleShare()
470 fileUri = BluetoothOppUtility.originalUri(fileUri); in insertMultipleShare()
471 String contentType = contentResolver.getType(fileUri); in insertMultipleShare()
472 Log.v(TAG, "Got mimetype: " + contentType + " Got uri: " + fileUri); in insertMultipleShare()
DBluetoothOppUtility.java310 public static boolean isRecognizedFileType(Context context, Uri fileUri, String mimetype) { in isRecognizedFileType() argument
313 Log.d(TAG, "RecognizedFileType() fileUri: " + fileUri + " mimetype: " + mimetype); in isRecognizedFileType()
316 mimetypeIntent.setDataAndTypeAndNormalize(fileUri, mimetype); in isRecognizedFileType()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/
DBluetoothOppUtilityTest.java164 Uri fileUri = Uri.parse("content:///tmp/randomFileName.txt"); in openReceivedFile_fileNotExist() local
175 doReturn(fileUri.toString()).when(mCursor).getString(anyInt()); in openReceivedFile_fileNotExist()
200 Uri fileUri = Uri.parse("content:///tmp/randomFileName.txt"); in openReceivedFile_fileExist_HandlingApplicationExist() local
212 doReturn(fileUri.toString()).when(mCursor).getString(anyInt()); in openReceivedFile_fileExist_HandlingApplicationExist()
215 doReturn(pfd).when(mCallProxy).contentResolverOpenFileDescriptor(any(), eq(fileUri), any()); in openReceivedFile_fileExist_HandlingApplicationExist()
244 Uri fileUri = Uri.parse("content:///tmp/randomFileName.txt"); in openReceivedFile_fileExist_HandlingApplicationNotExist() local
255 doReturn(fileUri.toString()).when(mCursor).getString(anyInt()); in openReceivedFile_fileExist_HandlingApplicationNotExist()
258 doReturn(pfd).when(mCallProxy).contentResolverOpenFileDescriptor(any(), eq(fileUri), any()); in openReceivedFile_fileExist_HandlingApplicationNotExist()
DBluetoothOppLauncherActivityTest.java183 final Uri[] fileUri = new Uri[1]; in createFileForSharedContent_returnFile() local
189 fileUri[0] = activity.createFileForSharedContent(activity, shareContent); in createFileForSharedContent_returnFile()
191 assertThat(fileUri[0].toString().endsWith(".html")).isTrue(); in createFileForSharedContent_returnFile()
193 File file = new File(fileUri[0].getPath()); in createFileForSharedContent_returnFile()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/exportimport/
DExportDestinationFragment.kt128 val fileUri = result.data?.data ?: return in <lambda>() constant
129 if (isLocalFile(fileUri)) { in <lambda>()
132 viewModel.updateExportUriWithSelectedFrequency(fileUri) in <lambda>()
DImportSourceLocationFragment.kt129 val fileUri = result.data?.data ?: return in <lambda>() constant
130 if (isLocalFile(fileUri)) { in <lambda>()
/packages/services/Telephony/testapps/TestRcsApp/TestApp/src/com/google/android/sample/rcsclient/
DFileUploadActivity.java198 Uri fileUri = data.getData(); in onActivityResult() local
199 String fileName = getFileName(fileUri); in onActivityResult()
202 mFile = uriToFile(fileUri); in onActivityResult()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DDrmTest.java215 final Uri fileUri = MediaStore.Files.getContentUri(MediaStore.getVolumeName(flUri), in doForwardLock() local
217 try (Cursor c = mContext.getContentResolver().query(fileUri, null, null, null)) { in doForwardLock()
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java616 final Uri fileUri = data.getData(); in onActivityResult() local
617 if (fileUri == null) { in onActivityResult()
625 pendingRequest.mFilename, pendingRequest.mMimeType, fileUri)); in onActivityResult()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DSaveImage.java675 boolean fileUri = isFileUri(sourceUri); in linkNewFileToUri()
677 if (fileUri || oldSelectedFile == null || !deleteOriginal) { in linkNewFileToUri()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java1036 final String fileUri = values.getAsString(Downloads.Impl.COLUMN_FILE_NAME_HINT); in ensureDefaultColumns() local
1037 file = new File(getFileUri(fileUri).getPath()); in ensureDefaultColumns()
1066 String fileUri = values.getAsString(Downloads.Impl.COLUMN_FILE_NAME_HINT); in checkFileUriDestination() local
1067 if (fileUri == null) { in checkFileUriDestination()
1071 final Uri uri = getFileUri(fileUri); in checkFileUriDestination()
/packages/modules/Media/apex/framework/java/android/media/
DMediaTranscodingManager.java329 public ParcelFileDescriptor openFileDescriptor(String fileUri, String mode)
336 Uri uri = Uri.parse(fileUri);
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java1008 Uri fileUri = MediaStore.Files.getContentUri(insertedRow.getVolumeName(),
1035 final Uri fileUri = MediaStore.Files.getContentUri(oldRow.getVolumeName(),
1070 invalidateThumbnails(fileUri);
7068 final Uri fileUri;
7071 fileUri = Uri.fromFile(queryForDataFile(mediaUri, null));
7081 extras.putParcelable(MediaStore.EXTRA_URI, fileUri);
7108 final Uri fileUri = clientRes.getParcelable(MediaStore.EXTRA_URI);
7110 final Uri mediaStoreUri = fileUri.getAuthority().equals(MediaStore.AUTHORITY)
7111 ? fileUri : queryForMediaUri(new File(fileUri.getPath()), null);
9864 final Uri fileUri = ContentUris.withAppendedId(contentUri, id);
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/scan/
DModernMediaScanner.java1008 final Uri fileUri = MediaStore.Files.getContentUri(mVolumeName, mFirstId); in getFirstResult()
1009 try (Cursor c = mResolver.query(fileUri, in getFirstResult()
1028 return fileUri; in getFirstResult()
/packages/modules/IntentResolver/tests/activity/src/com/android/intentresolver/
DChooserActivityTest.java1081 Uri fileUri = createTestContentProviderUri( in testSendManyFilesWithSmallMetadataDelayAndOneImage_fallbackToFilePreviewUi() local
1086 uris.add(fileUri); in testSendManyFilesWithSmallMetadataDelayAndOneImage_fallbackToFilePreviewUi()