HomeSort by relevance Sort by last modified time
    Searched defs:docId (Results 1 - 7 of 7) sorted by null

  /packages/providers/DownloadProvider/src/com/android/providers/downloads/
DownloadStorageProvider.java 107 public String createDocument(String docId, String mimeType, String displayName)
141 public void deleteDocument(String docId) throws FileNotFoundException {
145 if (mDm.remove(Long.parseLong(docId)) != 1) {
146 throw new IllegalStateException("Failed to delete " + docId);
154 public Cursor queryDocument(String docId, String[] projection) throws FileNotFoundException {
157 if (DOC_ID_ROOT.equals(docId)) {
164 cursor = mDm.query(new Query().setFilterById(Long.parseLong(docId)));
178 public Cursor queryChildDocuments(String docId, String[] projection, String sortOrder)
257 public ParcelFileDescriptor openDocument(String docId, String mode, CancellationSignal signal)
262 final long id = Long.parseLong(docId);
    [all...]
  /cts/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/
MyDocumentsProvider.java 92 private Doc buildDoc(String docId, String displayName, String mimeType) {
94 doc.docId = docId;
97 mDocs.put(doc.docId, doc);
149 public String docId;
160 row.add(Document.COLUMN_DOCUMENT_ID, docId);
172 if (doc.docId.equals(documentId)) {
176 return isChildDocument(doc.docId, documentId);
185 final String docId = "doc:" + System.currentTimeMillis();
186 final Doc doc = buildDoc(docId, displayName, mimeType)
    [all...]
  /frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
ExternalStorageProvider.java 68 // docId format: root:path/to/file
84 public String docId;
171 root.docId = getDocIdForFile(root.path);
229 private File getFileForDocId(String docId) throws FileNotFoundException {
230 return getFileForDocId(docId, false);
233 private File getFileForDocId(String docId, boolean visible) throws FileNotFoundException {
234 final int splitIndex = docId.indexOf(':', 1);
235 final String tag = docId.substring(0, splitIndex);
236 final String path = docId.substring(splitIndex + 1);
255 throw new FileNotFoundException("Missing file for " + docId + " at " + target)
    [all...]
  /development/samples/Vault/src/com/example/android/vault/
VaultProvider.java 222 private EncryptedDocument getDocument(long docId) throws GeneralSecurityException {
223 final File file = new File(mDocumentsDir, String.valueOf(docId));
224 return new EncryptedDocument(docId, file, mDataKey, mMacKey);
230 private void includeDocument(MatrixCursor result, long docId)
232 final EncryptedDocument doc = getDocument(docId);
234 throw new FileNotFoundException("Missing document " + docId);
332 private void initDocument(long docId, String mimeType, String displayName)
334 final EncryptedDocument doc = getDocument(docId);
339 meta.put(Document.COLUMN_DOCUMENT_ID, docId);
355 final long docId = Long.parseLong(documentId)
    [all...]
  /packages/providers/MediaProvider/src/com/android/providers/media/
MediaDocumentsProvider.java 165 private static Ident getIdentForDocId(String docId) {
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));
200 public Cursor queryDocument(String docId, String[] projection) throws FileNotFoundException {
203 final Ident ident = getIdentForDocId(docId);
281 throw new UnsupportedOperationException("Unsupported document " + docId);
291 public Cursor queryChildDocuments(String docId, String[] projection, String sortOrder)
295 final Ident ident = getIdentForDocId(docId);
    [all...]
  /frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DirectoryFragment.java     [all...]
  /packages/apps/Settings/src/com/android/settings/search/
Index.java     [all...]

Completed in 861 milliseconds