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

  /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...]
EncryptedDocument.java 95 * @param docId the expected {@link Document#COLUMN_DOCUMENT_ID} to be
100 public EncryptedDocument(long docId, File file, SecretKey dataKey, SecretKey macKey)
113 mDocId = docId;
  /frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
ExternalStorageProvider.java 75 // docId format: root:path/to/file
91 public String docId;
216 root.docId = getDocIdForFile(root.path);
247 root.docId = getDocIdForFile(root.path);
317 private File getFileForDocId(String docId) throws FileNotFoundException {
318 return getFileForDocId(docId, false);
321 private File getFileForDocId(String docId, boolean visible) throws FileNotFoundException {
322 final int splitIndex = docId.indexOf(':', 1);
323 final String tag = docId.substring(0, splitIndex);
324 final String path = docId.substring(splitIndex + 1)
    [all...]
TestDocumentsProvider.java 311 public ParcelFileDescriptor openDocument(String docId, String mode, CancellationSignal signal)
319 String docId, Point sizeHint, CancellationSignal signal) throws FileNotFoundException {
393 private static void includeFile(MatrixCursor result, String docId, int flags) {
395 row.add(Document.COLUMN_DOCUMENT_ID, docId);
396 row.add(Document.COLUMN_DISPLAY_NAME, docId);
400 if (MY_DOC_ID.equals(docId)) {
403 } else if (MY_DOC_NULL.equals(docId)) {
  /packages/providers/DownloadProvider/src/com/android/providers/downloads/
DownloadStorageProvider.java 111 public String createDocument(String docId, String mimeType, String displayName)
145 public void deleteDocument(String docId) throws FileNotFoundException {
149 if (mDm.remove(Long.parseLong(docId)) != 1) {
150 throw new IllegalStateException("Failed to delete " + docId);
177 public Cursor queryDocument(String docId, String[] projection) throws FileNotFoundException {
178 if (mArchiveHelper.isArchivedDocument(docId)) {
179 return mArchiveHelper.queryDocument(docId, projection);
184 if (DOC_ID_ROOT.equals(docId)) {
191 cursor = mDm.query(new Query().setFilterById(Long.parseLong(docId)));
207 public Cursor queryChildDocuments(String docId, String[] projection, String sortOrder
    [all...]
  /frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/model/
DocumentInfoTest.java 54 private static DocumentInfo createDocInfo(String authority, String docId, String mimeType) {
57 doc.documentId = docId;
  /cts/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/
MyDocumentsProvider.java 96 private Doc buildDoc(String docId, String displayName, String mimeType,
99 doc.docId = docId;
103 mDocs.put(doc.docId, doc);
170 public String docId;
182 row.add(Document.COLUMN_DOCUMENT_ID, docId);
194 if (doc.docId.equals(documentId)) {
198 if (isChildDocument(doc.docId, documentId)) {
209 final String docId = "doc:" + System.currentTimeMillis();
210 final Doc doc = buildDoc(docId, displayName, mimeType, null)
    [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));
190 private Uri getUriForDocumentId(String docId) {
191 final Ident ident = getIdentForDocId(docId);
202 throw new UnsupportedOperationException("Unsupported document " + docId);
207 public void deleteDocument(String docId) throws FileNotFoundException {
208 final Uri target = getUriForDocumentId(docId);
    [all...]
  /developers/build/prebuilts/gradle/StorageProvider/Application/src/main/java/com/example/android/storageprovider/
MyCloudProvider.java 470 * @param docId the document ID representing the desired file (may be null if given file)
471 * @param file the File object representing the desired file (may be null if given docID)
474 private void includeFile(MatrixCursor result, String docId, File file)
476 if (docId == null) {
477 docId = getDocIdForFile(file);
479 file = getFileForDocId(docId);
509 row.add(Document.COLUMN_DOCUMENT_ID, docId);
523 * @param docId the document ID representing the desired file
527 private File getFileForDocId(String docId) throws FileNotFoundException {
529 if (docId.equals(ROOT))
    [all...]
  /developers/samples/android/content/documentsUi/StorageProvider/Application/src/main/java/com/example/android/storageprovider/
MyCloudProvider.java 470 * @param docId the document ID representing the desired file (may be null if given file)
471 * @param file the File object representing the desired file (may be null if given docID)
474 private void includeFile(MatrixCursor result, String docId, File file)
476 if (docId == null) {
477 docId = getDocIdForFile(file);
479 file = getFileForDocId(docId);
509 row.add(Document.COLUMN_DOCUMENT_ID, docId);
523 * @param docId the document ID representing the desired file
527 private File getFileForDocId(String docId) throws FileNotFoundException {
529 if (docId.equals(ROOT))
    [all...]
  /development/samples/browseable/StorageProvider/src/com.example.android.storageprovider/
MyCloudProvider.java 470 * @param docId the document ID representing the desired file (may be null if given file)
471 * @param file the File object representing the desired file (may be null if given docID)
474 private void includeFile(MatrixCursor result, String docId, File file)
476 if (docId == null) {
477 docId = getDocIdForFile(file);
479 file = getFileForDocId(docId);
509 row.add(Document.COLUMN_DOCUMENT_ID, docId);
523 * @param docId the document ID representing the desired file
527 private File getFileForDocId(String docId) throws FileNotFoundException {
529 if (docId.equals(ROOT))
    [all...]
  /frameworks/base/packages/DocumentsUI/perf-tests/src/com/android/documentsui/
StressProvider.java 164 public AssetFileDescriptor openDocumentThumbnail(String docId, Point sizeHint,
167 final StubDocument document = mDocuments.get(docId);
172 public ParcelFileDescriptor openDocument(String docId, String mode,
  /frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/
StubProvider.java 178 public boolean isChildDocument(String parentDocId, String docId) {
180 final StubDocument childDocument = mStorage.get(docId);
317 public ParcelFileDescriptor openDocument(String docId, String mode, CancellationSignal signal)
320 final StubDocument document = mStorage.get(docId);
329 if (mSimulateReadErrorIds.contains(docId)) {
354 String docId, Point sizeHint, CancellationSignal signal) throws FileNotFoundException {
360 String docId, String mimeTypeFilter, Bundle opts, CancellationSignal signal)
362 final StubDocument document = mStorage.get(docId);
372 if (mSimulateReadErrorIds.contains(docId)) {
    [all...]
  /frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
IconUtils.java 217 Context context, String mimeType, String authority, String docId, int mode) {
221 && docId.startsWith("album")) {
OpenExternalDirectoryActivity.java 313 final String docId = bundle == null ? null : bundle.getString("DOC_ID");
314 if (docId == null) {
319 if (DEBUG) Log.d(TAG, "doc id for " + file + ": " + docId);
321 final Uri uri = DocumentsContract.buildTreeDocumentUri(EXTERNAL_STORAGE_AUTH, docId);
323 Log.e(TAG, "Could not get URI for doc id " + docId);
  /frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
GridDocumentHolder.java 122 final String docId = getCursorString(cursor, Document.COLUMN_DOCUMENT_ID);
137 final Uri uri = DocumentsContract.buildDocumentUri(docAuthority, docId);
ListDocumentHolder.java 118 final String docId = getCursorString(cursor, Document.COLUMN_DOCUMENT_ID);
135 final Uri uri = DocumentsContract.buildDocumentUri(docAuthority, docId);
  /frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/
ModelTest.java 153 String docId = DocumentInfo.getCursorString(cOut, Document.COLUMN_DOCUMENT_ID);
157 b0.set(Integer.parseInt(docId));
160 b1.set(Integer.parseInt(docId));
  /packages/apps/Settings/src/com/android/settings/search/
Index.java     [all...]

Completed in 374 milliseconds