Home
last modified time | relevance | path

Searched refs:entryPath (Results 1 – 2 of 2) sorted by relevance

/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DWriteableArchive.java83 final String entryPath = getEntryPath(entry); in addEntry() local
86 if (!mTree.containsKey(entryPath)) { in addEntry()
87 mTree.put(entryPath, new ArrayList<>()); in addEntry()
90 mEntries.put(entryPath, entry); in addEntry()
143 String entryPath; in createDocument() local
168 entryPath = getEntryPath(entry); in createDocument()
171 if (mEntries.get(entryPath) != null) { in createDocument()
172 throw new IllegalStateException("The document already exist: " + entryPath); in createDocument()
183 mPendingEntries.add(entryPath); in createDocument()
193 "Failed to create a file in the archive: " + entryPath, e); in createDocument()
[all …]
DReadableArchive.java96 String entryPath; in ReadableArchive() local
107 entryPath = getEntryPath(entry); in ReadableArchive()
108 if (mEntries.containsKey(entryPath)) { in ReadableArchive()
111 mEntries.put(entryPath, entry); in ReadableArchive()
113 mTree.put(entryPath, new ArrayList<ArchiveEntry>()); in ReadableArchive()
115 if (!"/".equals(entryPath)) { // Skip root, as it doesn't have a parent. in ReadableArchive()
129 entryPath = getEntryPath(entry); in ReadableArchive()
130 delimiterIndex = entryPath.lastIndexOf('/', entry.isDirectory() in ReadableArchive()
131 ? entryPath.length() - 2 : entryPath.length() - 1); in ReadableArchive()
132 parentPath = entryPath.substring(0, delimiterIndex) + "/"; in ReadableArchive()