Home
last modified time | relevance | path

Searched refs:imgFile (Results 1 – 5 of 5) sorted by relevance

/tools/tradefederation/core/common_util/com/android/tradefed/util/
DSparseImageUtil.java43 public static boolean isSparse(File imgFile) { in isSparse() argument
44 if (!imgFile.isFile()) { in isSparse()
47 try (FileInputStream in = new FileInputStream(imgFile)) { in isSparse()
63 public static void unsparse(File imgFile, File destFile) throws IOException { in unsparse() argument
64 try (FileInputStream in = new FileInputStream(imgFile)) { in unsparse()
66 new SparseInputStream(new BufferedInputStream(in), imgFile.length()); in unsparse()
68 throw new IOException("Not a sparse image: " + imgFile); in unsparse()
/tools/tradefederation/core/javatests/com/android/tradefed/build/
DLocalDeviceBuildProviderTest.java86 File imgFile = new File(mBuildDir, "img.zip"); in testGetBuild() local
90 buildInfo.setDeviceImageFile(imgFile, buildInfo.getBuildId()); in testGetBuild()
99 assertEquals(imgFile, info.getDeviceImageFile()); in testGetBuild()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DCdmaDeviceFlasher.java133 File imgFile = new File(dir, partition + ".img"); in flashNamedPartition() local
134 flashPartition(device, imgFile, partition); in flashNamedPartition()
/tools/tradefederation/contrib/src/com/android/media/tests/
DAudioLoopbackImageAnalyzer.java79 public static Pair<Result, String> analyzeImage(String imgFile) { in analyzeImage() argument
84 final File f = new File(imgFile); in analyzeImage()
88 throw new RuntimeException("Error loading image file '" + imgFile + "'"); in analyzeImage()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DFastbootDeviceFlasher.java274 protected void flashPartition(ITestDevice device, File imgFile, String partition) in flashPartition() argument
278 partition, imgFile.getAbsolutePath(), imgFile.length()); in flashPartition()
282 "flash", mShouldFlashRamdisk, partition, imgFile.getAbsolutePath())); in flashPartition()