Home
last modified time | relevance | path

Searched refs:startOffset (Results 1 – 14 of 14) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/util/zip/
DMergedZipEntryCollectionTest.java37 long startOffset = 10; in testMergeZipEntries_smallGap() local
38 CentralDirectoryInfo info = createZipEntry(startOffset); in testMergeZipEntries_smallGap()
40 startOffset += info.getCompressedSize() + MergedZipEntryCollection.HEADER_SIZE; in testMergeZipEntries_smallGap()
43 startOffset += MergedZipEntryCollection.MAX_GAP / 2; in testMergeZipEntries_smallGap()
44 info = createZipEntry(startOffset); in testMergeZipEntries_smallGap()
46 startOffset += info.getCompressedSize() + MergedZipEntryCollection.HEADER_SIZE; in testMergeZipEntries_smallGap()
60 long startOffset = 10; in testMergeZipEntries_largeGap() local
61 CentralDirectoryInfo info = createZipEntry(startOffset); in testMergeZipEntries_largeGap()
63 startOffset += info.getCompressedSize() + MergedZipEntryCollection.HEADER_SIZE; in testMergeZipEntries_largeGap()
66 startOffset += MergedZipEntryCollection.MAX_GAP * 2; in testMergeZipEntries_largeGap()
[all …]
/tools/tradefederation/core/common_util/com/android/tradefed/util/zip/
DCentralDirectoryInfo.java183 public CentralDirectoryInfo(byte[] data, int startOffset) throws IOException { in CentralDirectoryInfo() argument
184 this(data, startOffset, false); in CentralDirectoryInfo()
195 public CentralDirectoryInfo(byte[] data, int startOffset, boolean useZip64) throws IOException { in CentralDirectoryInfo() argument
222 Arrays.copyOfRange(data, startOffset, startOffset + 4))) { in CentralDirectoryInfo()
225 mCompressionMethod = ByteArrayUtil.getInt(data, startOffset + 10, 2); in CentralDirectoryInfo()
226 mCrc = ByteArrayUtil.getLong(data, startOffset + 16, 4); in CentralDirectoryInfo()
227 mCompressedSize = ByteArrayUtil.getLong(data, startOffset + 20, 4); in CentralDirectoryInfo()
228 mUncompressedSize = ByteArrayUtil.getLong(data, startOffset + 24, 4); in CentralDirectoryInfo()
229 mInternalFileAttributes = ByteArrayUtil.getInt(data, startOffset + 36, 2); in CentralDirectoryInfo()
230 mExternalFileAttributes = ByteArrayUtil.getLong(data, startOffset + 38, 4); in CentralDirectoryInfo()
[all …]
DLocalFileHeader.java86 public LocalFileHeader(File partialZipFile, int startOffset) throws IOException { in LocalFileHeader() argument
105 stream.skip(startOffset); in LocalFileHeader()
/tools/apksig/src/main/java/com/android/apksig/internal/jar/
DManifestParser.java222 int startOffset = mOffset; in readLine() local
225 for (int i = startOffset; i < mEndOffset; i++) { in readLine()
248 if (newlineStartOffset == startOffset) { in readLine()
251 return Arrays.copyOfRange(mManifest, startOffset, newlineStartOffset); in readLine()
301 public Section(int startOffset, int sizeBytes, List<Attribute> attrs) { in Section() argument
302 mStartOffset = startOffset; in Section()
/tools/test/connectivity/acts/tests/google/ble/gatt/
DGattReadTest.py127 startOffset = i * (self.mtu - 1)
132 self.assertEqual(startOffset, event['data']['offset'],
140 char_value[startOffset:startOffset + self.mtu - 1])
/tools/tradefederation/core/src/com/android/tradefed/util/
DRemoteZip.java107 long startOffset = mFileSize - size; in getZipEntries() local
108 if (startOffset < 0) { in getZipEntries()
111 startOffset = 0; in getZipEntries()
115 mDownloader.downloadFile(mRemoteFilePath, partialZipFile, startOffset, size); in getZipEntries()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DRemoteZipTest.java51 private void saveTestDataFile(File destFile, long startOffset, long size) { in saveTestDataFile() argument
55 FileUtil.writeToFile(inputStream, destFile, false, startOffset, size); in saveTestDataFile()
69 long startOffset = (long) invocation.getArgument(2); in setUp() local
71 saveTestDataFile(destFile, startOffset, size); in setUp()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DZipUtil.java449 int startOffset = 0; in getZipCentralDirectoryInfos() local
451 CentralDirectoryInfo info = new CentralDirectoryInfo(data, startOffset, useZip64); in getZipCentralDirectoryInfos()
453 startOffset += info.getInfoSize(); in getZipCentralDirectoryInfos()
520 long startOffset) in unzipPartialZipFile() argument
549 startOffset + localFileHeader.getHeaderSize(), in unzipPartialZipFile()
DFileUtil.java578 public static String readStringFromFile(File sourceFile, long startOffset, long length) in readStringFromFile() argument
581 if (startOffset < 0) { in readStringFromFile()
582 startOffset = 0; in readStringFromFile()
585 is.skip(startOffset); in readStringFromFile()
586 if (length <= 0 || fileLength <= startOffset + length) { in readStringFromFile()
649 InputStream input, File destFile, boolean append, long startOffset, long size) in writeToFile() argument
656 StreamUtil.copyStreams(origStream, destStream, startOffset, size); in writeToFile()
/tools/tradefederation/core/src/com/android/tradefed/build/
DIFileDownloader.java61 String remoteFilePath, File destFile, long startOffset, long size) in downloadFile() argument
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiCompilationUnit.kt39 import org.jetbrains.kotlin.psi.psiUtil.startOffset
50 return file.text.substring(0, pkg.startOffset) in getHeaderComments()
/tools/metalava/src/main/java/com/android/tools/metalava/
DReporter.kt271 getLineNumber(psiFile.text, range.startOffset) + 1 in elementToLocation()
/tools/tradefederation/core/res/jacoco/
Djacocoagent.jarMETA-INF/MANIFEST.MF META-INF/ org/ org/jacoco/ org/ ...
Djacocoant.jarMETA-INF/MANIFEST.MF META-INF/ org/ org/jacoco/ org/ ...