DeviceImageTracker
public
class
DeviceImageTracker
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.image.DeviceImageTracker |
For some of the incremental device update, we need the baseline files to compute diffs. This utility helps keeping track of them.
Summary
Nested classes | |
---|---|
class |
DeviceImageTracker.FileCacheTracker
Track information of the device image cached and its metadata |
Protected constructors | |
---|---|
DeviceImageTracker()
|
Public methods | |
---|---|
DeviceImageTracker.FileCacheTracker
|
getBaselineDeviceImage(String serial)
Returns the device image that was tracked for the device. |
static
DeviceImageTracker
|
getDefaultCache()
|
void
|
invalidateTracking(String serial)
|
void
|
trackUpdatedDeviceImage(String serial, File deviceImage, File bootloader, File baseband, String buildId, String branch, String flavor)
Tracks a given device image to the device serial that was flashed with it |
Protected methods | |
---|---|
void
|
cleanUp()
|
Protected constructors
DeviceImageTracker
protected DeviceImageTracker ()
Public methods
getBaselineDeviceImage
public DeviceImageTracker.FileCacheTracker getBaselineDeviceImage (String serial)
Returns the device image that was tracked for the device. Null if none was tracked.
Parameters | |
---|---|
serial |
String |
Returns | |
---|---|
DeviceImageTracker.FileCacheTracker |
invalidateTracking
public void invalidateTracking (String serial)
Parameters | |
---|---|
serial |
String |
trackUpdatedDeviceImage
public void trackUpdatedDeviceImage (String serial, File deviceImage, File bootloader, File baseband, String buildId, String branch, String flavor)
Tracks a given device image to the device serial that was flashed with it
Parameters | |
---|---|
serial |
String : The device that was flashed with the image. |
deviceImage |
File : The image flashed onto the device. |
bootloader |
File |
baseband |
File |
buildId |
String : The build id associated with the device image. |
branch |
String : The branch associated with the device image. |
flavor |
String : The build flavor associated with the device image. |
Protected methods
cleanUp
protected void cleanUp ()
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-10-14 UTC.