Home | History | Annotate | Download | only in targetprep

Lines Matching defs:partition

181      * Handle flashing of userdata/cache partition
201 * Flash an individual partition of a device
205 * @param partition the name of the partition to be flashed
207 protected void flashPartition(ITestDevice device, File imgFile, String partition)
209 CLog.d("fastboot flash %s %s", partition, imgFile.getAbsolutePath());
211 device, buildFastbootCommand("flash", partition, imgFile.getAbsolutePath()));
215 * Wipe the specified partition with `fastboot erase <name>`
218 * @param partition the name of the partition to be wiped
220 protected void wipePartition(ITestDevice device, String partition)
223 CLog.d("fastboot %s %s", wipeMethod, partition);
224 CommandResult result = device.fastbootWipePartition(partition);
225 handleFastbootResult(device, result, wipeMethod, partition);
229 * Checks with the bootloader if the specified partition exists or not
232 * @param partition the name of the partition to be checked
234 protected boolean hasPartition(ITestDevice device, String partition)
236 String partitionType = String.format("partition-type:%s", partition);
398 * Get the boot partition name for this device flasher.
470 * Wipe the cache partition on device.
481 String partition = "cache";
482 if (hasPartition(device, partition)) {
483 wipePartition(device, partition);
491 * Flash userdata partition on device.