Home
last modified time | relevance | path

Searched refs:Document (Results 1 – 25 of 96) sorted by relevance

1234

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
DReadableArchiveTest.java28 import android.provider.DocumentsContract.Document;
108 cursor.getColumnIndexOrThrow(Document.COLUMN_DOCUMENT_ID)))) { in assertRowExist()
126 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_DISPLAY_NAME))); in testQueryChildDocument()
128 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_MIME_TYPE))); in testQueryChildDocument()
130 cursor.getInt(cursor.getColumnIndexOrThrow(Document.COLUMN_SIZE))); in testQueryChildDocument()
134 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_DISPLAY_NAME))); in testQueryChildDocument()
135 assertEquals(Document.MIME_TYPE_DIR, in testQueryChildDocument()
136 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_MIME_TYPE))); in testQueryChildDocument()
138 cursor.getInt(cursor.getColumnIndexOrThrow(Document.COLUMN_SIZE))); in testQueryChildDocument()
142 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_DISPLAY_NAME))); in testQueryChildDocument()
[all …]
DWriteableArchiveTest.java22 import android.provider.DocumentsContract.Document;
86 Document.MIME_TYPE_DIR, "dir"); in testCreateDocument()
110 Document.MIME_TYPE_DIR, "test/"); in testCreateDocument()
118 Document.MIME_TYPE_DIR, ".."); in testCreateDocument()
126 Document.MIME_TYPE_DIR, "."); in testCreateDocument()
134 Document.MIME_TYPE_DIR, ""); in testCreateDocument()
151 Document.MIME_TYPE_DIR, "dir"); in testAddDirectory()
157 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_DOCUMENT_ID))); in testAddDirectory()
159 cursor.getString(cursor.getColumnIndexOrThrow(Document.COLUMN_DISPLAY_NAME))); in testAddDirectory()
160 assertEquals(Document.MIME_TYPE_DIR, in testAddDirectory()
[all …]
DResourcesProvider.java30 import android.provider.DocumentsContract.Document;
52 Document.COLUMN_DOCUMENT_ID, Document.COLUMN_MIME_TYPE, Document.COLUMN_DISPLAY_NAME,
53 Document.COLUMN_LAST_MODIFIED, Document.COLUMN_FLAGS, Document.COLUMN_SIZE,
99 row.add(Document.COLUMN_DOCUMENT_ID, "root-document-id"); in queryDocument()
100 row.add(Document.COLUMN_FLAGS, 0); in queryDocument()
101 row.add(Document.COLUMN_DISPLAY_NAME, "ResourcesProvider"); in queryDocument()
102 row.add(Document.COLUMN_SIZE, 0); in queryDocument()
103 row.add(Document.COLUMN_MIME_TYPE, Document.MIME_TYPE_DIR); in queryDocument()
147 row.add(Document.COLUMN_DOCUMENT_ID, documentId); in includeDocument()
148 row.add(Document.COLUMN_FLAGS, 0); in includeDocument()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Ddocumenttest.cpp91 TEST(Document, Parse) { in TEST() argument
116 TEST(Document, ParseStream_EncodedInputStream) { in TEST() argument
157 TEST(Document, ParseStream_AutoUTFInputStream) { in TEST() argument
164 Document d; in TEST()
196 TEST(Document, Swap) { in TEST() argument
197 Document d1; in TEST()
198 Document::AllocatorType& a = d1.GetAllocator(); in TEST()
212 Document d2; in TEST()
224 Document().Swap(d2); in TEST()
251 TEST(Document, AcceptWriter) { in TEST() argument
[all …]
Dpointertest.cpp568 Document d; in TEST()
608 Document d; in TEST()
631 Document d; in TEST()
635 Document::AllocatorType& a = d.GetAllocator(); in TEST()
684 Document d; in TEST()
736 Document d; in TEST()
738 Document::AllocatorType& a = d.GetAllocator(); in TEST()
796 Document d; in TEST()
855 Document d; in TEST()
857 Document::AllocatorType& a = d.GetAllocator(); in TEST()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sorting/
DSortingCursorWrapperTest.java29 import android.provider.DocumentsContract.Document;
60 Document.COLUMN_DOCUMENT_ID,
61 Document.COLUMN_FLAGS,
62 Document.COLUMN_DISPLAY_NAME,
63 Document.COLUMN_SIZE,
64 Document.COLUMN_LAST_MODIFIED,
65 Document.COLUMN_MIME_TYPE
121 row.add(Document.COLUMN_DOCUMENT_ID, Integer.toString(i)); in setUp()
122 row.add(Document.COLUMN_FLAGS, Document.FLAG_SUPPORTS_DELETE); in setUp()
125 row.add(Document.COLUMN_DISPLAY_NAME, NAMES[i]); in setUp()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DTestRootProvider.java25 import android.provider.DocumentsContract.Document;
46 Document.COLUMN_DOCUMENT_ID,
47 Document.COLUMN_MIME_TYPE,
48 Document.COLUMN_DISPLAY_NAME,
49 Document.COLUMN_LAST_MODIFIED,
50 Document.COLUMN_FLAGS,
51 Document.COLUMN_SIZE,
85 row.add(Document.COLUMN_DOCUMENT_ID, id); in addFile()
86 row.add(Document.COLUMN_DISPLAY_NAME, id); in addFile()
87 row.add(Document.COLUMN_SIZE, 0); in addFile()
[all …]
DStubProvider.java31 import android.provider.DocumentsContract.Document;
84 Document.COLUMN_DOCUMENT_ID, Document.COLUMN_MIME_TYPE, Document.COLUMN_DISPLAY_NAME,
85 Document.COLUMN_LAST_MODIFIED, Document.COLUMN_FLAGS, Document.COLUMN_SIZE,
345 if ((document.flags & Document.FLAG_VIRTUAL_DOCUMENT) != 0) { in openDocument()
535 extras.getString(Document.COLUMN_MIME_TYPE), in createVirtualFileFromBundle()
541 result.putString(Document.COLUMN_DOCUMENT_ID, documentId); in createVirtualFileFromBundle()
552 String mimeType = extras.getString(Document.COLUMN_MIME_TYPE); in dispatchCreateDocumentWithFlags()
553 String name = extras.getString(Document.COLUMN_DISPLAY_NAME); in dispatchCreateDocumentWithFlags()
621 if (mimeType.equals(Document.MIME_TYPE_DIR)) { in createFile()
662 row.add(Document.COLUMN_DOCUMENT_ID, document.documentId); in includeDocument()
[all …]
DInspectorProvider.java18 import static android.provider.DocumentsContract.Document.FLAG_SUPPORTS_METADATA;
19 import static android.provider.DocumentsContract.Document.FLAG_SUPPORTS_SETTINGS;
28 import android.provider.DocumentsContract.Document;
136 row.add(Document.COLUMN_DOCUMENT_ID, id); in addFileWithSize()
137 row.add(Document.COLUMN_DISPLAY_NAME, id); in addFileWithSize()
138 row.add(Document.COLUMN_SIZE, size); in addFileWithSize()
139 row.add(Document.COLUMN_MIME_TYPE, "text/plain"); in addFileWithSize()
140 row.add(Document.COLUMN_FLAGS, 0); in addFileWithSize()
141 row.add(Document.COLUMN_LAST_MODIFIED, System.currentTimeMillis()); in addFileWithSize()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestModel.java22 import android.provider.DocumentsContract.Document;
38 Document.COLUMN_DOCUMENT_ID,
39 Document.COLUMN_FLAGS,
40 Document.COLUMN_DISPLAY_NAME,
41 Document.COLUMN_SIZE,
42 Document.COLUMN_MIME_TYPE
75 Document.FLAG_SUPPORTS_WRITE in createFile()
76 | Document.FLAG_SUPPORTS_DELETE in createFile()
77 | Document.FLAG_SUPPORTS_RENAME); in createFile()
90 Document.FLAG_SUPPORTS_WRITE in createFolder()
[all …]
DTestDocumentsProvider.java27 import android.provider.DocumentsContract.Document;
41 Document.COLUMN_DOCUMENT_ID,
42 Document.COLUMN_MIME_TYPE,
43 Document.COLUMN_DISPLAY_NAME,
44 Document.COLUMN_LAST_MODIFIED,
45 Document.COLUMN_FLAGS,
46 Document.COLUMN_SUMMARY,
47 Document.COLUMN_SIZE,
48 Document.COLUMN_ICON
123 .add(Document.COLUMN_DOCUMENT_ID, doc.documentId) in createDocumentsCursor()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java45 import android.provider.DocumentsContract.Document;
103 Document.COLUMN_DOCUMENT_ID, Document.COLUMN_MIME_TYPE, Document.COLUMN_DISPLAY_NAME,
104 Document.COLUMN_LAST_MODIFIED, Document.COLUMN_FLAGS, Document.COLUMN_SIZE,
996 row.add(Document.COLUMN_DOCUMENT_ID, TYPE_IMAGES_ROOT); in includeImagesRootDocument()
997 row.add(Document.COLUMN_DISPLAY_NAME, getContext().getString(R.string.root_images)); in includeImagesRootDocument()
998 row.add(Document.COLUMN_FLAGS, in includeImagesRootDocument()
999 Document.FLAG_DIR_PREFERS_GRID | Document.FLAG_DIR_PREFERS_LAST_MODIFIED); in includeImagesRootDocument()
1000 row.add(Document.COLUMN_MIME_TYPE, Document.MIME_TYPE_DIR); in includeImagesRootDocument()
1005 row.add(Document.COLUMN_DOCUMENT_ID, TYPE_VIDEOS_ROOT); in includeVideosRootDocument()
1006 row.add(Document.COLUMN_DISPLAY_NAME, getContext().getString(R.string.root_videos)); in includeVideosRootDocument()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DDocumentInfo.java29 import android.provider.DocumentsContract.Document;
165 this.documentId = getCursorString(cursor, Document.COLUMN_DOCUMENT_ID); in updateFromCursor()
166 this.mimeType = getCursorString(cursor, Document.COLUMN_MIME_TYPE); in updateFromCursor()
167 this.displayName = getCursorString(cursor, Document.COLUMN_DISPLAY_NAME); in updateFromCursor()
168 this.lastModified = getCursorLong(cursor, Document.COLUMN_LAST_MODIFIED); in updateFromCursor()
169 this.flags = getCursorInt(cursor, Document.COLUMN_FLAGS); in updateFromCursor()
170 this.summary = getCursorString(cursor, Document.COLUMN_SUMMARY); in updateFromCursor()
171 this.size = getCursorLong(cursor, Document.COLUMN_SIZE); in updateFromCursor()
172 this.icon = getCursorInt(cursor, Document.COLUMN_ICON); in updateFromCursor()
237 return (flags & Document.FLAG_DIR_SUPPORTS_CREATE) != 0; in isCreateSupported()
[all …]
DDocumentFilters.java22 import android.provider.DocumentsContract.Document;
35 private static int MOVABLE_MASK = Document.FLAG_SUPPORTS_REMOVE
36 | Document.FLAG_SUPPORTS_DELETE
37 | Document.FLAG_SUPPORTS_MOVE;
52 int flags = getCursorInt(c, Document.COLUMN_FLAGS); in isSharableInO()
55 return (flags & Document.FLAG_PARTIAL) == 0 in isSharableInO()
63 int flags = getCursorInt(c, Document.COLUMN_FLAGS); in isSharablePreO()
66 return (flags & Document.FLAG_PARTIAL) == 0 in isSharablePreO()
67 && (flags & Document.FLAG_VIRTUAL_DOCUMENT) == 0 in isSharablePreO()
75 int flags = getCursorInt(c, Document.COLUMN_FLAGS); in isVirtual()
[all …]
/packages/apps/Traceur/src/com/google/android/traceur/
DStorageProvider.java27 import android.provider.DocumentsContract.Document;
60 Document.COLUMN_DOCUMENT_ID,
61 Document.COLUMN_DISPLAY_NAME,
62 Document.COLUMN_MIME_TYPE,
63 Document.COLUMN_FLAGS,
64 Document.COLUMN_SIZE,
65 Document.COLUMN_LAST_MODIFIED,
109 mimeType = Document.MIME_TYPE_DIR; in queryDocument()
115 row.add(Document.COLUMN_DOCUMENT_ID, documentId); in queryDocument()
116 row.add(Document.COLUMN_MIME_TYPE, mimeType); in queryDocument()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DModelTest.java25 import android.provider.DocumentsContract.Document;
51 Document.COLUMN_DOCUMENT_ID,
52 Document.COLUMN_FLAGS,
53 Document.COLUMN_DISPLAY_NAME,
54 Document.COLUMN_SIZE,
55 Document.COLUMN_LAST_MODIFIED,
56 Document.COLUMN_MIME_TYPE
86 row.add(Document.COLUMN_DOCUMENT_ID, Integer.toString(i)); in setUp()
87 row.add(Document.COLUMN_FLAGS, Document.FLAG_SUPPORTS_DELETE); in setUp()
90 row.add(Document.COLUMN_DISPLAY_NAME, NAMES[i]); in setUp()
[all …]
DGlobalSearchLoaderTest.java25 import android.provider.DocumentsContract.Document;
50 private static int FILE_FLAG = Document.FLAG_SUPPORTS_MOVE | Document.FLAG_SUPPORTS_DELETE
51 | Document.FLAG_SUPPORTS_REMOVE;
155 final String mimeType = c.getString(c.getColumnIndex(Document.COLUMN_MIME_TYPE)); in testSearchResult_includeDirectory()
156 assertEquals(Document.MIME_TYPE_DIR, mimeType); in testSearchResult_includeDirectory()
167 final int flags = c.getInt(c.getColumnIndex(Document.COLUMN_FLAGS)); in testSearchResult_isNotMovable()
168 assertEquals(0, flags & Document.FLAG_SUPPORTS_DELETE); in testSearchResult_isNotMovable()
169 assertEquals(0, flags & Document.FLAG_SUPPORTS_REMOVE); in testSearchResult_isNotMovable()
170 assertEquals(0, flags & Document.FLAG_SUPPORTS_MOVE); in testSearchResult_isNotMovable()
196 String displayName = c.getString(c.getColumnIndex(Document.COLUMN_DISPLAY_NAME)); in testSearchResult_includeSearchString()
[all …]
DRecentsLoaderTests.java24 import android.provider.DocumentsContract.Document;
89 Document.FLAG_SUPPORTS_MOVE in testDocumentsNotMovable()
90 | Document.FLAG_SUPPORTS_DELETE in testDocumentsNotMovable()
91 | Document.FLAG_SUPPORTS_REMOVE); in testDocumentsNotMovable()
102 final int flags = c.getInt(c.getColumnIndex(Document.COLUMN_FLAGS)); in testDocumentsNotMovable()
103 assertEquals(0, flags & Document.FLAG_SUPPORTS_DELETE); in testDocumentsNotMovable()
104 assertEquals(0, flags & Document.FLAG_SUPPORTS_REMOVE); in testDocumentsNotMovable()
105 assertEquals(0, flags & Document.FLAG_SUPPORTS_MOVE); in testDocumentsNotMovable()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadStorageProvider.java47 import android.provider.DocumentsContract.Document;
92 Document.COLUMN_DOCUMENT_ID, Document.COLUMN_MIME_TYPE, Document.COLUMN_DISPLAY_NAME,
93 Document.COLUMN_SUMMARY, Document.COLUMN_LAST_MODIFIED, Document.COLUMN_FLAGS,
94 Document.COLUMN_SIZE,
206 if (!Document.MIME_TYPE_DIR.equals(mimeType) in createDocument()
486 rawFilesCursor.getColumnIndexOrThrow(Document.COLUMN_MIME_TYPE)); in includeSearchFilesFromSharedStorage()
492 rawFilesCursor.getColumnIndexOrThrow(Document.COLUMN_DOCUMENT_ID)); in includeSearchFilesFromSharedStorage()
598 row.add(Document.COLUMN_DOCUMENT_ID, DOC_ID_ROOT); in includeDefaultDocument()
600 row.add(Document.COLUMN_DISPLAY_NAME, in includeDefaultDocument()
602 row.add(Document.COLUMN_MIME_TYPE, Document.MIME_TYPE_DIR); in includeDefaultDocument()
[all …]
/packages/apps/DocumentsUI/perf-tests/src/com/android/documentsui/
DStressProvider.java29 import android.provider.DocumentsContract.Document;
75 Document.COLUMN_DOCUMENT_ID, Document.COLUMN_MIME_TYPE, Document.COLUMN_DISPLAY_NAME,
76 Document.COLUMN_LAST_MODIFIED, Document.COLUMN_FLAGS, Document.COLUMN_SIZE,
188 row.add(Document.COLUMN_DOCUMENT_ID, document.id); in includeDocument()
189 row.add(Document.COLUMN_DISPLAY_NAME, document.id); in includeDocument()
190 row.add(Document.COLUMN_SIZE, document.size); in includeDocument()
191 row.add(Document.COLUMN_MIME_TYPE, document.mimeType); in includeDocument()
192 row.add(Document.COLUMN_FLAGS, in includeDocument()
193 document.thumbnail != -1 ? Document.FLAG_SUPPORTS_THUMBNAIL : 0); in includeDocument()
194 row.add(Document.COLUMN_LAST_MODIFIED, document.lastModified); in includeDocument()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DArchive.java27 import android.provider.DocumentsContract.Document;
59 Document.COLUMN_DOCUMENT_ID,
60 Document.COLUMN_DISPLAY_NAME,
61 Document.COLUMN_MIME_TYPE,
62 Document.COLUMN_SIZE,
63 Document.COLUMN_FLAGS
281 row.add(Document.COLUMN_DOCUMENT_ID, parsedId.toDocumentId()); in addCursorRow()
284 row.add(Document.COLUMN_DISPLAY_NAME, file.getName()); in addCursorRow()
285 row.add(Document.COLUMN_SIZE, entry.getSize()); in addCursorRow()
288 row.add(Document.COLUMN_MIME_TYPE, mimeType); in addCursorRow()
[all …]
DArchivesProvider.java30 import android.provider.DocumentsContract.Document;
136 return Document.MIME_TYPE_DIR; in getDocumentType()
182 new String[] { Document.COLUMN_DISPLAY_NAME }, in queryDocument()
189 archiveCursor.getColumnIndex(Document.COLUMN_DISPLAY_NAME)); in queryDocument()
194 row.add(Document.COLUMN_DOCUMENT_ID, documentId); in queryDocument()
195 row.add(Document.COLUMN_DISPLAY_NAME, displayName); in queryDocument()
196 row.add(Document.COLUMN_SIZE, 0); in queryDocument()
197 row.add(Document.COLUMN_MIME_TYPE, Document.MIME_TYPE_DIR); in queryDocument()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DSelectionMetadata.java23 import android.provider.DocumentsContract.Document;
47 Document.FLAG_SUPPORTS_REMOVE | Document.FLAG_SUPPORTS_DELETE;
77 final String mimeType = getCursorString(cursor, Document.COLUMN_MIME_TYPE); in onItemStateChanged()
84 final int docFlags = getCursorInt(cursor, Document.COLUMN_FLAGS); in onItemStateChanged()
85 if ((docFlags & Document.FLAG_PARTIAL) != 0) { in onItemStateChanged()
88 if ((docFlags & Document.FLAG_DIR_SUPPORTS_CREATE) != 0) { in onItemStateChanged()
94 if ((docFlags & Document.FLAG_SUPPORTS_RENAME) == 0) { in onItemStateChanged()
97 if ((docFlags & Document.FLAG_PARTIAL) != 0) { in onItemStateChanged()
100 mSupportsSettings = (docFlags & Document.FLAG_SUPPORTS_SETTINGS) != 0 && in onItemStateChanged()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
DMenuManagerTest.java27 import android.provider.DocumentsContract.Document;
499 Document.COLUMN_DOCUMENT_ID, in getTestModel()
500 Document.COLUMN_FLAGS, in getTestModel()
501 Document.COLUMN_DISPLAY_NAME, in getTestModel()
502 Document.COLUMN_SIZE, in getTestModel()
503 Document.COLUMN_LAST_MODIFIED, in getTestModel()
504 Document.COLUMN_MIME_TYPE in getTestModel()
509 row.add(Document.COLUMN_DOCUMENT_ID, Integer.toString(i)); in getTestModel()
510 row.add(Document.COLUMN_MIME_TYPE, Document.MIME_TYPE_DIR); in getTestModel()
515 row.add(Document.COLUMN_DOCUMENT_ID, "4"); in getTestModel()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DCopyJob.java57 import android.provider.DocumentsContract.Document;
328 if ((src.flags & Document.FLAG_SUPPORTS_COPY) != 0) { in processDocument()
428 if (Document.MIME_TYPE_DIR.equals(src.mimeType)) { in byteCopyDocument()
448 Document.COLUMN_DISPLAY_NAME, in copyDirectoryHelper()
449 Document.COLUMN_DOCUMENT_ID, in copyDirectoryHelper()
450 Document.COLUMN_MIME_TYPE, in copyDirectoryHelper()
451 Document.COLUMN_SIZE, in copyDirectoryHelper()
452 Document.COLUMN_FLAGS in copyDirectoryHelper()
695 Document.COLUMN_DOCUMENT_ID, in calculateFileSizesRecursively()
696 Document.COLUMN_MIME_TYPE, in calculateFileSizesRecursively()
[all …]

1234