Home
last modified time | relevance | path

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

/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DOptionCopierTest.java110 OptionDest dest = new OptionDest(); in testCopyOptions_string() local
111 OptionCopier.copyOptions(source, dest); in testCopyOptions_string()
112 assertEquals(source.mMyOption, dest.mDestOption); in testCopyOptions_string()
120 OptionDest dest = new OptionDest(); in testCopyOptions_int() local
121 OptionCopier.copyOptions(source, dest); in testCopyOptions_int()
122 assertEquals(source.mMyIntOption, dest.mDestIntOption); in testCopyOptions_int()
131 OptionDest dest = new OptionDest(); in testCopyOptions_collection() local
132 dest.mStringDestCollection.add("bar"); in testCopyOptions_collection()
133 OptionCopier.copyOptions(source, dest); in testCopyOptions_collection()
134 assertEquals(2, dest.mStringDestCollection.size()); in testCopyOptions_collection()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/build/
DFolderBuildInfo.java87 static void linkOrCopy(File orig, File dest) throws IOException { in linkOrCopy() argument
89 FileUtil.recursiveHardlink(orig, dest); in linkOrCopy()
94 dest.getAbsolutePath()); in linkOrCopy()
96 FileUtil.recursiveDelete(dest); in linkOrCopy()
98 FileUtil.recursiveCopy(orig, dest); in linkOrCopy()
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DRandomAccessFileDataSource.java116 public void copyTo(long offset, int size, ByteBuffer dest) throws IOException { in copyTo() argument
122 if (size > dest.remaining()) { in copyTo()
128 int prevLimit = dest.limit(); in copyTo()
132 dest.limit(dest.position() + size); in copyTo()
138 chunkSize = fileChannel.read(dest); in copyTo()
144 dest.limit(prevLimit); in copyTo()
DByteArrayDataSink.java132 public void copyTo(long offset, int size, ByteBuffer dest) throws IOException { in copyTo() argument
136 dest.put(mArray, (int) offset, size); in copyTo()
202 public void copyTo(long offset, int size, ByteBuffer dest) throws IOException { in copyTo() argument
206 dest.put(mArray, (int) (mSliceOffset + offset), size); in copyTo()
DByteBufferDataSource.java78 public void copyTo(long offset, int size, ByteBuffer dest) { in copyTo() argument
79 dest.put(getByteBuffer(offset, size)); in copyTo()
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DClusterChain.java197 public void readData(long offset, ByteBuffer dest) in readData() argument
200 int len = dest.remaining(); in readData()
212 dest.limit(dest.position() + size); in readData()
214 dev.read(getDevOffset(chain[chainIdx], clusOfs), dest); in readData() local
223 dest.limit(dest.position() + size); in readData()
225 dev.read(getDevOffset(chain[chainIdx], 0), dest); in readData() local
DShortName.java105 final byte[] dest = new byte[11]; in checkSum()
107 dest[i] = (byte) name[i]; in checkSum()
109 int sum = dest[0]; in checkSum()
111 sum = dest[i] + (((sum & 1) << 7) + ((sum & 0xfe) >> 1)); in checkSum()
167 public void write(byte[] dest) { in write() argument
169 dest[i] = (byte) name[i]; in write()
DFatFile.java111 public void read(long offset, ByteBuffer dest) throws IOException { in read() argument
114 final int len = dest.remaining(); in read()
126 chain.readData(offset, dest); in read()
DFatLfnDirectory.java282 ArrayList<FatDirectoryEntry> dest = in updateLFN() local
287 dest.addAll(Arrays.asList(encoded)); in updateLFN()
290 final int size = dest.size(); in updateLFN()
293 dir.setEntries(dest); in updateLFN()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DJackCodeCoverageTest.java154 File dest = FileUtil.createTempDir("coverage"); in generateCoverageReport() local
167 cmd.add(dest.getAbsolutePath()); in generateCoverageReport()
174 FileUtil.recursiveDelete(dest); in generateCoverageReport()
184 return copyFile(new File(dest, String.format("report.%s", ext))); in generateCoverageReport()
186 FileUtil.recursiveDelete(dest); in generateCoverageReport()
189 return dest; in generateCoverageReport()
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/util/
DFileDisk.java110 public void read(long devOffset, ByteBuffer dest) throws IOException { in read() argument
113 int toRead = dest.remaining(); in read()
118 final int read = fc.read(dest, devOffset); in read()
DRamDisk.java116 public void read(long devOffset, ByteBuffer dest) throws IOException { in read() argument
127 data.limit((int) (devOffset + dest.remaining())); in read()
130 dest.put(data); in read()
/tools/tradefederation/core/src/com/android/tradefed/config/
DOptionCopier.java58 public static void copyOptionsNoThrow(Object source, Object dest) { in copyOptionsNoThrow() argument
60 copyOptions(source, dest); in copyOptionsNoThrow()
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/
DFsFile.java62 public void read(long offset, ByteBuffer dest) throws IOException; in read() argument
DBlockDevice.java48 public abstract void read(long devOffset, ByteBuffer dest) in read() argument
/tools/apksig/src/main/java/com/android/apksig/util/
DDataSource.java97 void copyTo(long offset, int size, ByteBuffer dest) throws IOException; in copyTo() argument
/tools/tradefederation/core/src/com/android/tradefed/log/
DTerribleFailureEmailHandler.java91 public void addDestination(String dest) { in addDestination() argument
92 mDestinations.add(dest); in addDestination()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DJackCodeCoverageTestTest.java133 File dest = FileUtil.createTempFile(Files.getNameWithoutExtension(resourcePath), in extractResource() local
135 FileUtil.writeToFile(getClass().getResourceAsStream(resourcePath), dest); in extractResource() local
136 return dest; in extractResource()
/tools/tradefederation/core/src/com/android/tradefed/result/
DEmailResultReporter.java99 public void addDestination(String dest) { in addDestination() argument
100 mDestinations.add(dest); in addDestination()
/tools/test/connectivity/acts/tests/google/wifi/
DWifiPowerTest.py141 dest = os.path.join(self.iperf_server.log_path, "iperf.txt")
142 self.dut.adb.pull(pmc_iperf_json_file, " ", dest)
143 result = ip_server.IPerfResult(dest)
/tools/tradefederation/core/src/com/android/tradefed/util/
DRunUtil.java730 private static Thread inheritIO(final InputStream src, final OutputStream dest, String name) { in inheritIO() argument
735 StreamUtil.copyStreams(src, dest); in inheritIO()