Home
last modified time | relevance | path

Searched refs:documentUri (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DDocumentImagePicker.java105 private void prepareDocumentForAttachment(final Uri documentUri) { in prepareDocumentForAttachment() argument
112 if (FileUtil.isInPrivateDir(documentUri)) { in prepareDocumentForAttachment()
116 + documentUri + ")"); in prepareDocumentForAttachment()
121 Factory.get().getApplicationContext().getContentResolver(), documentUri); in prepareDocumentForAttachment()
132 documentUri); in prepareDocumentForAttachment()
/packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/
DTrampolineActivity.java60 Uri documentUri = getIntent().getData(); in onCreate() local
61 if (RawDocumentsHelper.isRawDocId(DocumentsContract.getDocumentId(documentUri))) { in onCreate()
62 if (!RawDocumentsHelper.startViewIntent(this, documentUri)) { in onCreate()
71 DocumentsContract.getDocumentId(documentUri))) { in onCreate()
73 this, documentUri); in onCreate()
82 final long id = ContentUris.parseId(documentUri); in onCreate()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DDocumentsProviderHelper.java148 public void writeDocument(Uri documentUri, byte[] contents) in writeDocument() argument
150 ParcelFileDescriptor file = mClient.openFile(documentUri, "w", null); in writeDocument()
157 public void writeAppendDocument(Uri documentUri, byte[] contents, int length) in writeAppendDocument() argument
159 ParcelFileDescriptor file = mClient.openFile(documentUri, "wa", null); in writeAppendDocument()
170 public byte[] readDocument(Uri documentUri) throws RemoteException, IOException { in readDocument() argument
171 ParcelFileDescriptor file = mClient.openFile(documentUri, "r", null); in readDocument()
307 public void assertFileContents(Uri documentUri, byte[] expected) throws Exception { in assertFileContents() argument
310 expected, readDocument(documentUri)); in assertFileContents()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DOpenHelper.java70 Uri documentUri) { in buildViewIntentForMediaStoreDownload() argument
72 DocumentsContract.getDocumentId(documentUri)); in buildViewIntentForMediaStoreDownload()
82 intent.setDataAndType(documentUri, mimeType); in buildViewIntentForMediaStoreDownload()
125 final Uri documentUri = DocumentsContract.buildDocumentUri( in buildViewIntent() local
129 intent.setDataAndType(documentUri, mimeType); in buildViewIntent()
DRawDocumentsHelper.java52 public static boolean startViewIntent(Context context, Uri documentUri) { in startViewIntent() argument
54 intent.setData(documentUri); in startViewIntent()
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DQuickViewIntentBuilder.java255 Uri documentUri = uris.get(documentLocation); in collectViewableUris() local
257 uris.add(documentUri); in collectViewableUris()
/packages/providers/MediaProvider/apex/framework/java/android/provider/
DMediaStore.java4231 public static @Nullable Uri getMediaUri(@NonNull Context context, @NonNull Uri documentUri) { in getMediaUri() argument
4237 in.putParcelable(EXTRA_URI, documentUri); in getMediaUri()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java442 final Uri documentUri = extras.getParcelable(MediaStore.EXTRA_URI); in call() local
443 final String docId = DocumentsContract.getDocumentId(documentUri); in call()
DMediaProvider.java5650 final Uri documentUri = extras.getParcelable(MediaStore.EXTRA_URI);
5651 getContext().enforceCallingUriPermission(documentUri,
5658 final String authority = documentUri.getAuthority();
5672 copyUriPermissionGrants(documentUri, mediaStoreUri, callingPid,