Searched refs:archiveEntry (Results 1 – 4 of 4) sorted by relevance
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/ |
D | ArchiveEntryInputStream.java | 40 private ArchiveEntryInputStream(ReadSource readSource, @NonNull ArchiveEntry archiveEntry) { in ArchiveEntryInputStream() argument 42 mSize = archiveEntry.getSize(); in ArchiveEntryInputStream() 79 NextEntryIterator nextEntryIterator, ArchiveEntry archiveEntry) throws IOException { in moveToArchiveEntry() argument 82 if (TextUtils.equals(entry.getName(), archiveEntry.getName())) { in moveToArchiveEntry() 91 ArchiveEntry archiveEntry, NextEntryIterator iterator) throws IOException { in WrapArchiveInputStream() argument 92 super(readSource, archiveEntry); in WrapArchiveInputStream() 94 moveToArchiveEntry(iterator, archiveEntry); in WrapArchiveInputStream() 102 ReadSource readSource, @NonNull ArchiveEntry archiveEntry, Closeable closeable) in WrapZipFileInputStream() argument 104 super(readSource, archiveEntry); in WrapZipFileInputStream() 118 @NonNull ArchiveEntry archiveEntry) throws IOException { in create() argument [all …]
|
D | ArchiveHandle.java | 142 protected InputStream getInputStream(@NonNull ArchiveEntry archiveEntry) in getInputStream() argument 157 return ArchiveEntryInputStream.create(this, archiveEntry); in getInputStream()
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/ |
D | ArchiveHandleTest.java | 78 private ArchiveEntryRecord(ArchiveEntry archiveEntry) { in ArchiveEntryRecord() argument 79 this(archiveEntry.getName(), archiveEntry.getSize(), archiveEntry.isDirectory()); in ArchiveEntryRecord() 386 ArchiveEntry archiveEntry = mock(ArchiveEntry.class); in getInputStream_zipFileNotExistEntry_shouldFail() local 387 when(archiveEntry.getName()).thenReturn("/not_exist_entry"); in getInputStream_zipFileNotExistEntry_shouldFail() 390 archiveHandle.getInputStream(archiveEntry); in getInputStream_zipFileNotExistEntry_shouldFail() 402 ArchiveEntry archiveEntry = mock(ArchiveEntry.class); in getInputStream_directoryEntry_shouldFail() local 403 when(archiveEntry.isDirectory()).thenReturn(true); in getInputStream_directoryEntry_shouldFail() 406 archiveHandle.getInputStream(archiveEntry); in getInputStream_directoryEntry_shouldFail() 418 ArchiveEntry archiveEntry = mock(ArchiveEntry.class); in getInputStream_negativeSizeEntry_shouldFail() local 419 when(archiveEntry.isDirectory()).thenReturn(false); in getInputStream_negativeSizeEntry_shouldFail() [all …]
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
D | FileCopyUiTest.java | 309 ZipEntry archiveEntry = null; in loadImageFromResources() local 310 while ((archiveEntry = in.getNextEntry()) != null && (count++ < TARGET_COUNT)) { in loadImageFromResources() 311 String fileName = archiveEntry.getName(); in loadImageFromResources()
|