Searched refs:docId (Results 1 - 15 of 15) sorted by relevance

/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadStorageProvider.java134 public Path findDocumentPath(String parentDocId, String docId) throws FileNotFoundException { argument
142 final File doc = getFileForDocId(docId);
175 public void deleteDocument(String docId) throws FileNotFoundException { argument
179 if (RawDocumentsHelper.isRawDocId(docId)) {
180 super.deleteDocument(docId);
183 if (mDm.remove(Long.parseLong(docId)) != 1) {
184 throw new IllegalStateException("Failed to delete " + docId);
192 public String renameDocument(String docId, String displayName) argument
197 if (RawDocumentsHelper.isRawDocId(docId)) {
198 return super.renameDocument(docId, displayNam
214 queryDocument(String docId, String[] projection) argument
367 openDocument(String docId, String mode, CancellationSignal signal) argument
385 getFileForDocId(String docId, boolean visible) argument
420 buildNotificationUri(String docId) argument
[all...]
H A DRawDocumentsHelper.java37 public static boolean isRawDocId(String docId) { argument
38 return docId != null && docId.startsWith(RAW_PREFIX);
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/dirlist/
H A DTestDocumentsAdapter.java70 public int getAdapterPosition(String docId) { argument
71 return mModelIds.indexOf(docId);
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/
H A DDocumentInfoTest.java56 private static DocumentInfo createDocInfo(String authority, String docId, String mimeType) { argument
59 doc.documentId = docId;
H A DDocumentStackTest.java57 private static DocumentInfo createDir(String docId) { argument
60 info.documentId = docId;
61 info.displayName = docId;
/packages/providers/MediaProvider/src/com/android/providers/media/
H A DMediaDocumentsProvider.java165 private static Ident getIdentForDocId(String docId) { argument
167 final int split = docId.indexOf(':');
169 ident.type = docId;
172 ident.type = docId.substring(0, split);
173 ident.id = Long.parseLong(docId.substring(split + 1));
190 private Uri getUriForDocumentId(String docId) { argument
191 final Ident ident = getIdentForDocId(docId);
202 throw new UnsupportedOperationException("Unsupported document " + docId);
207 public void deleteDocument(String docId) throws FileNotFoundException { argument
208 final Uri target = getUriForDocumentId(docId);
229 queryDocument(String docId, String[] projection) argument
321 queryChildDocuments(String docId, String[] projection, String sortOrder) argument
491 openDocument(String docId, String mode, CancellationSignal signal) argument
509 openDocumentThumbnail( String docId, Point sizeHint, CancellationSignal signal) argument
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/
H A DLoadDocStackTask.java69 final String docId = DocumentsContract.getDocumentId(uris[0]);
70 docUri = DocumentsContract.buildDocumentUri(uris[0].getAuthority(), docId);
H A DDocumentsAccess.java95 for (String docId : docIds) {
96 final Uri uri = DocumentsContract.buildDocumentUri(authority, docId);
H A DIconUtils.java43 Context context, String mimeType, String authority, String docId, int mode) {
42 loadMimeIcon( Context context, String mimeType, String authority, String docId, int mode) argument
H A DOpenExternalDirectoryActivity.java311 final String docId = bundle == null ? null : bundle.getString("DOC_ID");
312 if (docId == null) {
317 if (DEBUG) Log.d(TAG, "doc id for " + file + ": " + docId);
319 final Uri uri = DocumentsContract.buildTreeDocumentUri(Providers.AUTHORITY_STORAGE, docId);
321 Log.e(TAG, "Could not get URI for doc id " + docId);
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
H A DModelTest.java145 String docId = DocumentInfo.getCursorString(cOut, Document.COLUMN_DOCUMENT_ID);
149 b0.set(Integer.parseInt(docId));
152 b1.set(Integer.parseInt(docId));
/packages/apps/DocumentsUI/perf-tests/src/com/android/documentsui/
H A DStressProvider.java164 public AssetFileDescriptor openDocumentThumbnail(String docId, Point sizeHint, argument
167 final StubDocument document = mDocuments.get(docId);
172 public ParcelFileDescriptor openDocument(String docId, String mode, argument
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
H A DStubProvider.java183 public boolean isChildDocument(String parentDocId, String docId) { argument
185 final StubDocument childDocument = mStorage.get(docId);
338 public ParcelFileDescriptor openDocument(String docId, String mode, CancellationSignal signal) argument
341 final StubDocument document = mStorage.get(docId);
350 if (mSimulateReadErrorIds.contains(docId)) {
375 String docId, Point sizeHint, CancellationSignal signal) throws FileNotFoundException {
381 String docId, String mimeTypeFilter, Bundle opts, CancellationSignal signal)
383 final StubDocument document = mStorage.get(docId);
393 if (mSimulateReadErrorIds.contains(docId)) {
374 openDocumentThumbnail( String docId, Point sizeHint, CancellationSignal signal) argument
380 openTypedDocument( String docId, String mimeTypeFilter, Bundle opts, CancellationSignal signal) argument
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
H A DResourcesProvider.java122 public ParcelFileDescriptor openDocument(String docId, String mode, CancellationSignal signal) argument
124 final Integer resourceId = RESOURCES.get(docId);
/packages/apps/Settings/src/com/android/settings/search/
H A DCursorToSearchResultConverter.java128 final int docId = cursor.getInt(COLUMN_INDEX_ID);
143 .setStableId(docId)

Completed in 307 milliseconds