/tools/external/fat32lib/src/main/java/de/waldheinz/fs/util/ |
D | FileDisk.java | 42 private final RandomAccessFile raf; field in FileDisk 63 this.raf = new RandomAccessFile(file, modeString); in FileDisk() 64 this.fc = raf.getChannel(); in FileDisk() 67 public FileDisk(RandomAccessFile raf, FileChannel fc, boolean readOnly) { in FileDisk() argument 69 this.raf = raf; in FileDisk() 74 private FileDisk(RandomAccessFile raf, boolean readOnly) { in FileDisk() argument 76 this.raf = raf; in FileDisk() 77 this.fc = raf.getChannel(); in FileDisk() 92 final RandomAccessFile raf = in create() local 94 raf.setLength(size); in create() [all …]
|
/tools/apksig/src/test/java/com/android/apksig/internal/util/ |
D | FileChannelDataSourceTest.java | 40 RandomAccessFile raf = createRaf(fullFileContent); in testFeedsCorrectData_whenFilePartiallyReadFromBeginning() local 41 DataSource rafDataSource = new FileChannelDataSource(raf.getChannel()); in testFeedsCorrectData_whenFilePartiallyReadFromBeginning() 58 RandomAccessFile raf = createRaf(fullFileContent); in testFeedsCorrectData_whenFilePartiallyReadWithOffset() local 59 DataSource rafDataSource = new FileChannelDataSource(raf.getChannel()); in testFeedsCorrectData_whenFilePartiallyReadWithOffset() 77 RandomAccessFile raf = createRaf(fullFileContent); in testFeedsCorrectData_whenSeveralMbRead() local 78 DataSource rafDataSource = new FileChannelDataSource(raf.getChannel()); in testFeedsCorrectData_whenSeveralMbRead()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
D | ZFile.java | 261 private RandomAccessFile raf; field in ZFile 489 raf = null; in ZFile() 505 long rafSize = raf.length(); in ZFile() 595 Preconditions.checkState(raf != null, "raf == null"); in readData() 710 Preconditions.checkState(raf != null, "raf == null"); in readEocd() 717 if (lastToRead > raf.length()) { in readEocd() 718 lastToRead = Ints.checkedCast(raf.length()); in readEocd() 722 directFullyRead(raf.length() - lastToRead, last); in readEocd() 759 eocdStart = Ints.checkedCast(raf.length() - lastToRead + foundEocdSignature); in readEocd() 765 if (eocdStart + eocd.getEocdSize() != raf.length()) { in readEocd() [all …]
|
/tools/apksig/src/test/java/com/android/apksig/util/ |
D | DataSourceFromRAFChunkTest.java | 58 try (RandomAccessFile raf = new RandomAccessFile(f, "rw")) { in testFileSizeChangesNotVisible() argument 59 raf.seek(raf.length()); in testFileSizeChangesNotVisible() 60 raf.write("hijkl".getBytes(StandardCharsets.UTF_8)); in testFileSizeChangesNotVisible()
|
D | DataSourceFromRAFTest.java | 60 try (RandomAccessFile raf = new RandomAccessFile(f, "rw")) { in testFileSizeChangesVisible() argument 61 raf.seek(7); in testFileSizeChangesVisible() 62 raf.write("hijkl".getBytes(StandardCharsets.UTF_8)); in testFileSizeChangesVisible()
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/utils/ |
D | ApkZFileTestUtils.java | 53 try (RandomAccessFile raf = new RandomAccessFile(file, "r")) { in readSegment() argument 54 raf.seek(start); in readSegment() 59 int r = raf.read(data, tot, length - tot); in readSegment()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/utils/ |
D | RandomAccessFileUtils.java | 38 public static void fullyRead(@Nonnull RandomAccessFile raf, @Nonnull byte[] data) in fullyRead() argument 43 while ((r = raf.read(data, p, data.length - p)) > 0) { in fullyRead()
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | ZipUtilFuncTest.java | 139 RandomAccessFile raf = new RandomAccessFile(localLargeFile, "rw"); in createLargeZipFile() local 140 raf.setLength(largeSize); in createLargeZipFile() 141 raf.close(); in createLargeZipFile()
|
/tools/apksig/src/test/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtilsTest.java | 52 RandomAccessFile raf = new RandomAccessFile(dataFile, "r"); in setUp() local 63 DataSources.asDataSource(raf), in setUp()
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/ |
D | ZFileTest.java | 1036 try (RandomAccessFile raf = new RandomAccessFile(zipFile, "rw")) { in unusedZipAreasAreClearedOnWrite() argument 1038 raf.seek(500); in unusedZipAreasAreClearedOnWrite() 1040 raf.write(dummyData); in unusedZipAreasAreClearedOnWrite() 1047 try (RandomAccessFile raf = new RandomAccessFile(zipFile, "r")) { in unusedZipAreasAreClearedOnWrite() argument 1053 RandomAccessFileUtils.fullyRead(raf, data); in unusedZipAreasAreClearedOnWrite() 1431 try (RandomAccessFile raf = new RandomAccessFile(zipFile, "rw")) { in detectIncorrectCRC32InLocalHeader() argument 1432 raf.seek(crcOffset); in detectIncorrectCRC32InLocalHeader() 1433 raf.write(crc); in detectIncorrectCRC32InLocalHeader()
|