Searched refs:readSegment (Results 1 – 4 of 4) sorted by relevance
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/ |
D | AlignmentTest.java | 19 import static com.android.tools.build.apkzlib.utils.ApkZFileTestUtils.readSegment; 62 byte found[] = readSegment(newZFile, 1024, testBytes.length); in addAlignedFile() 120 assertArrayEquals(testBytes1, readSegment(newZFile, 1024, testBytes1.length)); 163 assertArrayEquals(testBytes0, readSegment(newZFile, off0, testBytes0.length)); 164 assertArrayEquals(testBytes1, readSegment(newZFile, off1, testBytes1.length)); 180 assertArrayEquals(testBytes, readSegment(newZFile, 1024, testBytes.length)); 191 assertArrayEquals(testBytes, readSegment(newZFile, 1024, testBytes.length)); 216 assertArrayEquals(testBytes1, readSegment(newZFile, 1024, testBytes1.length)); 262 assertArrayEquals(recognizable, readSegment(zipFile, 1024, recognizable.length)); 290 assertArrayEquals(recognizable, readSegment(zipFile, 1024, recognizable.length)); [all …]
|
D | ZFileTest.java | 19 import static com.android.tools.build.apkzlib.utils.ApkZFileTestUtils.readSegment; 738 byte[] noOffsetData1 = readSegment(zipNoOffsetFile, p1Start, p1Size); in extraDirectoryOffsetEmptyFile() 739 byte[] noOffsetData2 = readSegment(zipNoOffsetFile, p2Start, p2Size); in extraDirectoryOffsetEmptyFile() 740 byte[] withOffsetData1 = readSegment(zipWithOffsetFile, offset, p1Size); in extraDirectoryOffsetEmptyFile() 741 byte[] withOffsetData2 = readSegment(zipWithOffsetFile, offset + p2Start, p2Size); in extraDirectoryOffsetEmptyFile() 810 byte[] noOffsetData1 = readSegment(zipNoOffsetFile, p1Start, p1Size); in extraDirectoryOffsetNonEmptyFile() 811 byte[] noOffsetData2 = readSegment(zipNoOffsetFile, p2Start, p2Size); in extraDirectoryOffsetNonEmptyFile() 812 byte[] noOffsetData3 = readSegment(zipNoOffsetFile, p3Start, p3Size); in extraDirectoryOffsetNonEmptyFile() 813 byte[] withOffsetData1 = readSegment(zipWithOffsetFile, p1Start, p1Size); in extraDirectoryOffsetNonEmptyFile() 814 byte[] withOffsetData2 = readSegment(zipWithOffsetFile, 37 + p2Start, p2Size); in extraDirectoryOffsetNonEmptyFile() [all …]
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/ |
D | FullApkSignTest.java | 84 byte[] read1 = ApkZFileTestUtils.readSegment(out, f1DataStart, f1Data.length); in testSignature() 86 byte[] read2 = ApkZFileTestUtils.readSegment(out, f2DataStart, f2Data.length); in testSignature()
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/utils/ |
D | ApkZFileTestUtils.java | 48 public static byte[] readSegment(@Nonnull File file, long start, int length) throws Exception { in readSegment() method in ApkZFileTestUtils
|