Home
last modified time | relevance | path

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

/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DDocumentImagePicker.java109 private void prepareDocumentForAttachment(final Uri documentUri) { in prepareDocumentForAttachment() argument
116 if (FileUtil.isInPrivateDir(documentUri)) { in prepareDocumentForAttachment()
120 + documentUri + ")"); in prepareDocumentForAttachment()
125 Factory.get().getApplicationContext().getContentResolver(), documentUri); in prepareDocumentForAttachment()
136 documentUri); in prepareDocumentForAttachment()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DDocumentsProviderHelper.java141 public void writeDocument(Uri documentUri, byte[] contents) in writeDocument() argument
143 ParcelFileDescriptor file = mClient.openFile(documentUri, "w", null); in writeDocument()
150 public void writeAppendDocument(Uri documentUri, byte[] contents) in writeAppendDocument() argument
152 ParcelFileDescriptor file = mClient.openFile(documentUri, "wa", null); in writeAppendDocument()
163 public byte[] readDocument(Uri documentUri) throws RemoteException, IOException { in readDocument() argument
164 ParcelFileDescriptor file = mClient.openFile(documentUri, "r", null); in readDocument()
299 public void assertFileContents(Uri documentUri, byte[] expected) throws Exception { in assertFileContents() argument
302 expected, readDocument(documentUri)); in assertFileContents()
/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/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/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java4230 final Uri documentUri = extras.getParcelable(DocumentsContract.EXTRA_URI); in call() local
4231 getContext().enforceCallingUriPermission(documentUri, in call()