Searched refs:bs (Results 1 – 8 of 8) sorted by relevance
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
D | FatUtils.java | 41 public static long getFatOffset(BootSector bs, int fatNr) { in getFatOffset() argument 42 long sectSize = bs.getBytesPerSector(); in getFatOffset() 43 long sectsPerFat = bs.getSectorsPerFat(); in getFatOffset() 44 long resSects = bs.getNrReservedSectors(); in getFatOffset() 61 public static long getRootDirOffset(BootSector bs) { in getRootDirOffset() argument 62 long sectSize = bs.getBytesPerSector(); in getRootDirOffset() 63 long sectsPerFat = bs.getSectorsPerFat(); in getRootDirOffset() 64 int fats = bs.getNrFats(); in getRootDirOffset() 66 long offset = getFatOffset(bs, 0); in getRootDirOffset() 80 public static long getFilesOffset(BootSector bs) { in getFilesOffset() argument [all …]
|
D | FatFileSystem.java | 44 private final BootSector bs; field in FatFileSystem 69 this.bs = BootSector.read(device); in FatFileSystem() 71 if (bs.getNrFats() <= 0) throw new IOException( in FatFileSystem() 74 this.filesOffset = FatUtils.getFilesOffset(bs); in FatFileSystem() 75 this.fatType = bs.getFatType(); in FatFileSystem() 76 this.fat = Fat.read(bs, 0); in FatFileSystem() 79 for (int i=1; i < bs.getNrFats(); i++) { in FatFileSystem() 80 final Fat tmpFat = Fat.read(bs, i); in FatFileSystem() 88 final Fat32BootSector f32bs = (Fat32BootSector) bs; in FatFileSystem() 101 Fat16RootDirectory.read((Fat16BootSector) bs,readOnly); in FatFileSystem() [all …]
|
D | Fat16RootDirectory.java | 34 private Fat16RootDirectory(Fat16BootSector bs, boolean readOnly) { in Fat16RootDirectory() argument 35 super(bs.getRootDirEntryCount(), readOnly, true); in Fat16RootDirectory() 37 if (bs.getRootDirEntryCount() <= 0) throw new IllegalArgumentException( in Fat16RootDirectory() 38 "root directory size is " + bs.getRootDirEntryCount()); in Fat16RootDirectory() 40 this.deviceOffset = FatUtils.getRootDirOffset(bs); in Fat16RootDirectory() 41 this.device = bs.getDevice(); in Fat16RootDirectory() 54 Fat16BootSector bs, boolean readOnly) throws IOException { in read() argument 56 final Fat16RootDirectory result = new Fat16RootDirectory(bs, readOnly); in read() 71 Fat16BootSector bs) throws IOException { in create() argument 73 final Fat16RootDirectory result = new Fat16RootDirectory(bs, false); in create()
|
D | Fat.java | 45 private final BootSector bs; field in Fat 61 public static Fat read(BootSector bs, int fatNr) in read() argument 64 if (fatNr > bs.getNrFats()) { in read() 66 "boot sector says there are only " + bs.getNrFats() + in read() 70 final long fatOffset = FatUtils.getFatOffset(bs, fatNr); in read() 71 final Fat result = new Fat(bs, fatOffset); in read() 86 public static Fat create(BootSector bs, int fatNr) in create() argument 89 if (fatNr > bs.getNrFats()) { in create() 91 "boot sector says there are only " + bs.getNrFats() + in create() 95 final long fatOffset = FatUtils.getFatOffset(bs, fatNr); in create() [all …]
|
D | SuperFloppyFormatter.java | 167 private void initBootSector(BootSector bs) in initBootSector() argument 170 bs.init(); in initBootSector() 171 bs.setFileSystemTypeLabel(fatType.getLabel()); in initBootSector() 172 bs.setNrReservedSectors(reservedSectors); in initBootSector() 173 bs.setNrFats(fatCount); in initBootSector() 174 bs.setSectorsPerCluster(sectorsPerCluster); in initBootSector() 175 bs.setMediumDescriptor(MEDIUM_DESCRIPTOR_HD); in initBootSector() 176 bs.setSectorsPerTrack(DEFAULT_SECTORS_PER_TRACK); in initBootSector() 177 bs.setNrHeads(DEFAULT_HEADS); in initBootSector() 178 bs.setOemName(oemName); in initBootSector() [all …]
|
D | FsInfoSector.java | 61 public static FsInfoSector read(Fat32BootSector bs) throws IOException { in read() argument 63 new FsInfoSector(bs.getDevice(), offset(bs)); in read() 79 public static FsInfoSector create(Fat32BootSector bs) throws IOException { in create() argument 80 final int offset = offset(bs); in create() 86 new FsInfoSector(bs.getDevice(), offset(bs)); in create() 93 private static int offset(Fat32BootSector bs) { in offset() argument 94 return bs.getFsInfoSectorNr() * bs.getBytesPerSector(); in offset()
|
D | ClusterChainDirectory.java | 73 final Fat32BootSector bs = (Fat32BootSector) fat.getBootSector(); in createRoot() local 77 bs.setRootDirFirstCluster(cc.getStartCluster()); in createRoot()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/proto/ |
D | PlatformProtosFuncTest.java | 73 BatteryStatsProto bs = bssdp.getBatterystats(); in testDumpAndReadBatteryStatsProto() local 74 assertTrue(bs.hasSystem()); in testDumpAndReadBatteryStatsProto() 75 assertFalse(bs.getUidsList().isEmpty()); in testDumpAndReadBatteryStatsProto() 76 assertTrue(bs.getUids(0).hasCpu()); in testDumpAndReadBatteryStatsProto()
|