Home
last modified time | relevance | path

Searched refs:createArchiveId (Results 1 – 4 of 4) sorted by relevance

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
DReadableArchiveTest.java80 public static ArchiveId createArchiveId(String path) { in createArchiveId() method in ReadableArchiveTest
122 createArchiveId("/").toDocumentId(), null, null); in testQueryChildDocument()
124 assertRowExist(cursor, createArchiveId("/file1.txt").toDocumentId()); in testQueryChildDocument()
132 assertRowExist(cursor, createArchiveId("/dir1/").toDocumentId()); in testQueryChildDocument()
140 assertRowExist(cursor, createArchiveId("/dir2/").toDocumentId()); in testQueryChildDocument()
151 createArchiveId("/dir1/").toDocumentId(), null, null); in testQueryChildDocument()
155 createArchiveId("/dir1/cherries.txt").toDocumentId(), in testQueryChildDocument()
173 createArchiveId("/").toDocumentId(), null, null); in testQueryChildDocument_NoDirs()
177 createArchiveId("/dir1/").toDocumentId(), in testQueryChildDocument_NoDirs()
188 createArchiveId("/dir1/").toDocumentId(), null, null); in testQueryChildDocument_NoDirs()
[all …]
DWriteableArchiveTest.java80 public static ArchiveId createArchiveId(String path) { in createArchiveId() method in WriteableArchiveTest
85 final String dirDocumentId = mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
87 assertEquals(createArchiveId("/dir/").toDocumentId(), dirDocumentId); in testCreateDocument()
90 assertEquals(createArchiveId("/dir/test.jpeg").toDocumentId(), documentId); in testCreateDocument()
101 mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
109 mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
117 mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
125 mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
133 mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
141 mArchive.createDocument(createArchiveId("/").toDocumentId(), in testCreateDocument()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DArchive.java271 public ArchiveId createArchiveId(String path) { in createArchiveId() method in Archive
280 final ArchiveId parsedId = createArchiveId(getEntryPath(entry)); in addCursorRow()
DWriteableArchive.java197 return createArchiveId(entryPath).toDocumentId(); in createDocument()