Searched refs:docId (Results 1 – 3 of 3) sorted by relevance
/development/samples/Vault/src/com/example/android/vault/ |
D | VaultProvider.java | 222 private EncryptedDocument getDocument(long docId) throws GeneralSecurityException { in getDocument() argument 223 final File file = new File(mDocumentsDir, String.valueOf(docId)); in getDocument() 224 return new EncryptedDocument(docId, file, mDataKey, mMacKey); in getDocument() 230 private void includeDocument(MatrixCursor result, long docId) in includeDocument() argument 232 final EncryptedDocument doc = getDocument(docId); in includeDocument() 234 throw new FileNotFoundException("Missing document " + docId); in includeDocument() 332 private void initDocument(long docId, String mimeType, String displayName) in initDocument() argument 334 final EncryptedDocument doc = getDocument(docId); in initDocument() 339 meta.put(Document.COLUMN_DOCUMENT_ID, docId); in initDocument() 355 final long docId = Long.parseLong(documentId); in renameDocument() local [all …]
|
D | EncryptedDocument.java | 100 public EncryptedDocument(long docId, File file, SecretKey dataKey, SecretKey macKey) in EncryptedDocument() argument 113 mDocId = docId; in EncryptedDocument()
|
/development/samples/browseable/StorageProvider/src/com.example.android.storageprovider/ |
D | MyCloudProvider.java | 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); 527 private File getFileForDocId(String docId) throws FileNotFoundException { 529 if (docId.equals(ROOT)) { 532 final int splitIndex = docId.indexOf(':', 1); 534 throw new FileNotFoundException("Missing root for " + docId); 536 final String path = docId.substring(splitIndex + 1); [all …]
|