Home
last modified time | relevance | path

Searched refs:StoredEntry (Results 1 – 21 of 21) sorted by relevance

/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DExtraFieldTest.java53 public Function<StoredEntry, ExtraField> mExtraFieldGetter;
56 public BiConsumer<StoredEntry, ExtraField> mExtraFieldSetter;
66 Function<StoredEntry, ExtraField> localGet = StoredEntry::getLocalExtra; in getParameters()
67 BiConsumer<StoredEntry, ExtraField> localSet = (se, ef) -> { in getParameters()
75 Function<StoredEntry, ExtraField> centralGet = in getParameters()
77 BiConsumer<StoredEntry, ExtraField> centralSet = (se, ef) -> { in getParameters()
98 StoredEntry foo = zf.get("foo"); in readEntryWithNoExtraField()
126 StoredEntry foo = zf.get("foo"); in readSingleExtraField()
173 StoredEntry foo = zf.get("foo"); in readMultipleExtraFields()
206 StoredEntry ex = zf.get("extra"); in addExtraFieldToExistingEntry()
[all …]
DZFileTest.java106 StoredEntry z = azf.get("z/"); in readAlmostEmptyZip()
119 StoredEntry e0 = azf.get("dir/"); in readZipWithTwoFilesOneDirectory()
123 StoredEntry e1 = azf.get("dir/inside"); in readZipWithTwoFilesOneDirectory()
132 StoredEntry e2 = azf.get("file.txt"); in readZipWithTwoFilesOneDirectory()
232 for (StoredEntry e : zf.entries()) {
325 StoredEntry file2 = zf.get("file2");
342 StoredEntry file2 = zf2.get("file2");
365 StoredEntry file3 = zf.get("file3");
383 StoredEntry file3 = zf2.get("file3");
408 StoredEntry file1 = zf.get("file1");
[all …]
DAlignmentTest.java94 StoredEntry se0 = zf.get("file0.txt");
98 StoredEntry se1 = zf.get("file1.txt");
107 StoredEntry se1 = zf.get("file1.txt");
112 StoredEntry se0 = zf.get("file0.txt");
146 StoredEntry se0 = zf.get("file0.txt");
150 StoredEntry se1 = zf.get("file1.txt");
185 StoredEntry entry = zf.get("test.txt");
211 StoredEntry se0 = zf.get("file0.txt");
214 StoredEntry se1 = zf.get("file1.txt");
268 StoredEntry entry = zf.get("foo");
[all …]
DZFileNotificationTest.java44 public List<ApkZLibPair<StoredEntry, StoredEntry>> added;
45 public List<StoredEntry> removed;
78 public IOExceptionRunnable added(@Nonnull StoredEntry entry, in added()
79 @Nullable StoredEntry replaced) { in added()
86 public IOExceptionRunnable removed(@Nonnull StoredEntry entry) { in removed()
124 StoredEntry addedSe = kl.added.get(0).v1; in notifyAddFile()
129 StoredEntry foo = zf.get("foo"); in notifyAddFile()
148 StoredEntry foo = zf.get("foo"); in notifyRemoveFile()
169 StoredEntry foo1 = zf.get("foo"); in notifyUpdateFile()
174 StoredEntry foo2 = zf.get("foo"); in notifyUpdateFile()
[all …]
DZipMergeTest.java56 StoredEntry e0 = mergedZf.get("dir/"); in mergeZip()
60 StoredEntry e1 = mergedZf.get("dir/inside"); in mergeZip()
69 StoredEntry e2 = mergedZf.get("file.txt"); in mergeZip()
105 StoredEntry wStored = fooZf.get("w"); in mergeZipWithDeferredCrc()
115 StoredEntry wmStored = merged.get("w"); in mergeZipWithDeferredCrc()
143 StoredEntry wStored = fooZf.get("w"); in mergeZipKeepsDeflatedAndStored()
147 StoredEntry lStored = fooZf.get("l"); in mergeZipKeepsDeflatedAndStored()
156 StoredEntry wmStored = merged.get("w"); in mergeZipKeepsDeflatedAndStored()
163 StoredEntry lmStored = merged.get("l"); in mergeZipKeepsDeflatedAndStored()
196 StoredEntry wmStored = merged.get("w"); in mergeZipWithSorting()
[all …]
DZFileSortTest.java38 private StoredEntry mMaryEntry;
40 private StoredEntry mAndrewEntry;
42 private StoredEntry mBethEntry;
44 private StoredEntry mPeterEntry;
DZFileReadOnlyTest.java107 StoredEntry bar = zf.get("bar"); in cannotDeleteFilesInRoMode()
219 StoredEntry bar = zf.get("bar"); in canOpenAndReadFilesInRoMode()
DOldApkReadTest.java34 StoredEntry classesDex = zf.get("classes.dex"); in testReadOldApk()
DZipToolsTest.java108 StoredEntry root = zfile.get(name); in assertFileInZip()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DZFile.java293 private final Map<String, FileUseMapEntry<StoredEntry>> entries;
310 private final List<StoredEntry> uncompressedEntries;
541 public Set<StoredEntry> entries() { in entries()
542 Map<String, StoredEntry> entries = Maps.newHashMap(); in entries()
544 for (FileUseMapEntry<StoredEntry> mapEntry : this.entries.values()) { in entries()
545 StoredEntry entry = mapEntry.getStore(); in entries()
554 for (StoredEntry uncompressed : uncompressedEntries) { in entries()
568 public StoredEntry get(@Nonnull String path) { in get()
573 for (StoredEntry stillUncompressed : Lists.reverse(uncompressedEntries)) { in get()
579 FileUseMapEntry<StoredEntry> found = entries.get(path); in get()
[all …]
DCentralDirectory.java178 private final Map<String, StoredEntry> entries;
258 @Nonnull Set<StoredEntry> entries, in makeFromEntries()
261 for (StoredEntry entry : entries) { in makeFromEntries()
378 StoredEntry entry; in readEntry()
381 entry = new StoredEntry(centralDirectoryHeader, file, null); in readEntry()
399 Map<String, StoredEntry> getEntries() { in getEntries()
421 List<StoredEntry> sorted = Lists.newArrayList(entries.values()); in computeByteRepresentation()
422 sorted.sort(StoredEntry.COMPARE_BY_NAME); in computeByteRepresentation()
437 for (StoredEntry entry : sorted) { in computeByteRepresentation()
DZFileExtension.java129 public IOExceptionRunnable added(@Nonnull StoredEntry entry, @Nullable StoredEntry replaced) { in added()
143 public IOExceptionRunnable removed(@Nonnull StoredEntry entry) { in removed()
DStoredEntry.java51 public class StoredEntry { class
56 static final Comparator<StoredEntry> COMPARE_BY_NAME =
212 StoredEntry( in StoredEntry() method in StoredEntry
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/
DJarSigningTest.java25 import com.android.tools.build.apkzlib.zip.StoredEntry;
63 StoredEntry manifestEntry = verifyZFile.get("META-INF/MANIFEST.MF"); in signEmptyJar()
92 StoredEntry manifestEntry = zf3.get("META-INF/MANIFEST.MF"); in signJarWithPrexistingSimpleTextFilePre18()
106 StoredEntry signatureEntry = zf3.get("META-INF/CERT.SF"); in signJarWithPrexistingSimpleTextFilePre18()
126 StoredEntry rsaEntry = zf3.get("META-INF/CERT.RSA"); in signJarWithPrexistingSimpleTextFilePre18()
149 StoredEntry manifestEntry = zf3.get("META-INF/MANIFEST.MF"); in signJarWithPrexistingSimpleTextFilePos18()
164 StoredEntry signatureEntry = zf3.get("META-INF/CERT.SF"); in signJarWithPrexistingSimpleTextFilePos18()
185 StoredEntry ecdsaEntry = zf3.get("META-INF/CERT.EC"); in signJarWithPrexistingSimpleTextFilePos18()
235 StoredEntry manifestEntry = zf1.get("META-INF/MANIFEST.MF"); in v1ReSignOnFileChange()
290 StoredEntry manifestEntry = zf2.get("META-INF/MANIFEST.MF"); in v1ReSignOnFileChange()
DManifestGenerationTest.java24 import com.android.tools.build.apkzlib.zip.StoredEntry;
59 StoredEntry se = zf.get("META-INF/MANIFEST.MF"); in elementaryManifestGeneration()
95 StoredEntry se = zf.get("META-INF/MANIFEST.MF"); in manifestGenerationOnHalfWrittenFile()
133 StoredEntry se = zf.get("META-INF/MANIFEST.MF"); in manifestGenerationOnExistingFile()
DFullApkSignTest.java26 import com.android.tools.build.apkzlib.zip.StoredEntry;
94 StoredEntry se1 = zf2.get(f1Name); in testSignature()
98 StoredEntry se2 = zf2.get(f2Name); in testSignature()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zfile/
DApkAlignmentTest.java25 import com.android.tools.build.apkzlib.zip.StoredEntry;
65 StoredEntry soEntry = zf.get("/doesnt_work.so"); in soFilesUncompressedAndAligned()
86 StoredEntry zeroSo = zf.get("/zero.so"); in soFilesMergedFromZipsCanBeUncompressedAndAligned()
118 StoredEntry soEntry = zf.get("/zero.so"); in soFilesMergedFromZipsCanBeUncompressedAndAligned()
162 StoredEntry soEntry = zf.get("/doesnt_work.so"); in soFilesUncompressedAndNotAligned()
183 StoredEntry zeroSo = zf.get("/zero.so"); in soFilesMergedFromZipsCanBeUncompressedAndNotAligned()
215 StoredEntry soEntry = zf.get("/zero.so"); in soFilesMergedFromZipsCanBeUncompressedAndNotAligned()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/
DSigningExtension.java25 import com.android.tools.build.apkzlib.zip.StoredEntry;
163 @Nonnull StoredEntry entry, @Nullable StoredEntry replaced) { in register()
168 public IOExceptionRunnable removed(@Nonnull StoredEntry entry) { in register()
244 private void onZipEntryOutput(@Nonnull StoredEntry entry) throws IOException { in onZipEntryOutput()
277 for (StoredEntry entry : zFile.entries()) { in onOutputZipReadyForUpdate()
DManifestGenerationExtension.java22 import com.android.tools.build.apkzlib.zip.StoredEntry;
181 StoredEntry manifestEntry = zFile.get(MANIFEST_NAME); in rebuildManifest()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zfile/
DApkZFileCreator.java21 import com.android.tools.build.apkzlib.zip.StoredEntry;
132 for (StoredEntry toMergeEntry : toMerge.entries()) { in writeZip()
172 StoredEntry entry = zip.get(apkPath); in deleteFile()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/compress/
DMultiCompressorTest.java26 import com.android.tools.build.apkzlib.zip.StoredEntry;
66 StoredEntry entry = zf.get("file"); in storeIsBest()
85 StoredEntry entry = zf.get("file"); in sameCompressionResultButBetterThanStore()