Searched refs:meta (Results 1 – 2 of 2) sorted by relevance
/development/samples/Vault/src/com/example/android/vault/ |
D | VaultProvider.java | 235 final JSONObject meta = doc.readMetadata(); in includeDocument() local 239 final String mimeType = meta.optString(Document.COLUMN_MIME_TYPE); in includeDocument() 248 row.add(Document.COLUMN_DOCUMENT_ID, meta.optLong(Document.COLUMN_DOCUMENT_ID)); in includeDocument() 249 row.add(Document.COLUMN_DISPLAY_NAME, meta.optString(Document.COLUMN_DISPLAY_NAME)); in includeDocument() 250 row.add(Document.COLUMN_SIZE, meta.optLong(Document.COLUMN_SIZE)); in includeDocument() 253 row.add(Document.COLUMN_LAST_MODIFIED, meta.optLong(Document.COLUMN_LAST_MODIFIED)); in includeDocument() 302 final JSONObject meta = new JSONObject(); in initDocument() local 303 meta.put(Document.COLUMN_DOCUMENT_ID, docId); in initDocument() 304 meta.put(Document.COLUMN_MIME_TYPE, mimeType); in initDocument() 305 meta.put(Document.COLUMN_DISPLAY_NAME, displayName); in initDocument() [all …]
|
D | EncryptedDocument.java | 149 final JSONObject meta = new JSONObject(rawMeta); in readMetadata() local 152 if (meta.getLong(Document.COLUMN_DOCUMENT_ID) != mDocId) { in readMetadata() 156 return meta; in readMetadata() 210 public void writeMetadataAndContent(JSONObject meta, ParcelFileDescriptor contentIn) in writeMetadataAndContent() argument 227 meta.put(Document.COLUMN_SIZE, plainLength); in writeMetadataAndContent() 235 meta.put(Document.COLUMN_DOCUMENT_ID, mDocId); in writeMetadataAndContent() 236 meta.put(Document.COLUMN_LAST_MODIFIED, System.currentTimeMillis()); in writeMetadataAndContent() 243 meta.toString().getBytes(StandardCharsets.UTF_8)); in writeMetadataAndContent()
|