裝置影像追蹤器
public class DeviceImageTracker
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.image.DeviceImageTracker |
對於一些增量設備更新,我們需要基線檔案來計算差異。該實用程式有助於追蹤它們。
概括
嵌套類 | |
---|---|
class | DeviceImageTracker.FileCacheTracker 快取的設備鏡像及其元資料的追蹤訊息 |
受保護的構造函數 | |
---|---|
DeviceImageTracker () |
公共方法 | |
---|---|
DeviceImageTracker.FileCacheTracker | getBaselineDeviceImage (String serial) 返回為裝置追蹤的裝置影像。 |
static DeviceImageTracker | getDefaultCache () |
void | invalidateTracking (String serial) |
void | trackUpdatedDeviceImage (String serial, File deviceImage, File bootloader, File baseband, String buildId, String branch, String flavor) 追蹤給定的設備映像到與其一起刷新的設備序號 |
受保護的方法 | |
---|---|
void | cleanUp () |
受保護的構造函數
裝置影像追蹤器
protected DeviceImageTracker ()
公共方法
取得基線設備影像
public DeviceImageTracker.FileCacheTracker getBaselineDeviceImage (String serial)
返回為裝置追蹤的裝置影像。如果沒有被追蹤則為空。
參數 | |
---|---|
serial | String |
退貨 | |
---|---|
DeviceImageTracker.FileCacheTracker |
無效追蹤
public void invalidateTracking (String serial)
參數 | |
---|---|
serial | String |
追蹤更新設備影像
public void trackUpdatedDeviceImage (String serial, File deviceImage, File bootloader, File baseband, String buildId, String branch, String flavor)
追蹤給定的設備映像到與其一起刷新的設備序號
參數 | |
---|---|
serial | String : 閃爍影像的裝置。 |
deviceImage | File :影像閃現到裝置上。 |
bootloader | File |
baseband | File |
buildId | String :與裝置映像相關的建置 ID。 |
branch | String :與裝置映像相關的分支。 |
flavor | String :與裝置映像相關的建置風格。 |
受保護的方法
清理
protected void cleanUp ()
裝置影像追蹤器
public class DeviceImageTracker
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.image.DeviceImageTracker |
對於一些增量設備更新,我們需要基線檔案來計算差異。該實用程式有助於追蹤它們。
概括
嵌套類 | |
---|---|
class | DeviceImageTracker.FileCacheTracker 快取的設備鏡像及其元資料的追蹤訊息 |
受保護的構造函數 | |
---|---|
DeviceImageTracker () |
公共方法 | |
---|---|
DeviceImageTracker.FileCacheTracker | getBaselineDeviceImage (String serial) 返回為裝置追蹤的裝置影像。 |
static DeviceImageTracker | getDefaultCache () |
void | invalidateTracking (String serial) |
void | trackUpdatedDeviceImage (String serial, File deviceImage, File bootloader, File baseband, String buildId, String branch, String flavor) 追蹤給定的設備映像到與其一起刷新的設備序號 |
受保護的方法 | |
---|---|
void | cleanUp () |
受保護的構造函數
裝置影像追蹤器
protected DeviceImageTracker ()
公共方法
取得基線設備影像
public DeviceImageTracker.FileCacheTracker getBaselineDeviceImage (String serial)
返回為裝置追蹤的裝置影像。如果沒有被追蹤則為空。
參數 | |
---|---|
serial | String |
退貨 | |
---|---|
DeviceImageTracker.FileCacheTracker |
無效追蹤
public void invalidateTracking (String serial)
參數 | |
---|---|
serial | String |
追蹤更新設備影像
public void trackUpdatedDeviceImage (String serial, File deviceImage, File bootloader, File baseband, String buildId, String branch, String flavor)
追蹤給定的設備映像到與其一起刷新的設備序號
參數 | |
---|---|
serial | String : 閃爍影像的裝置。 |
deviceImage | File :影像閃現到裝置上。 |
bootloader | File |
baseband | File |
buildId | String :與裝置映像相關的建置 ID。 |
branch | String :與裝置映像相關的分支。 |
flavor | String :與裝置映像相關的建置風格。 |
受保護的方法
清理
protected void cleanUp ()
裝置影像追蹤器
public class DeviceImageTracker
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.image.DeviceImageTracker |
對於一些增量設備更新,我們需要基線檔案來計算差異。該實用程式有助於追蹤它們。
概括
嵌套類 | |
---|---|
class | DeviceImageTracker.FileCacheTracker 快取的設備鏡像及其元資料的追蹤訊息 |
受保護的構造函數 | |
---|---|
DeviceImageTracker () |
公共方法 | |
---|---|
DeviceImageTracker.FileCacheTracker | getBaselineDeviceImage (String serial) 返回為裝置追蹤的裝置影像。 |
static DeviceImageTracker | getDefaultCache () |
void | invalidateTracking (String serial) |
void | trackUpdatedDeviceImage (String serial, File deviceImage, File bootloader, File baseband, String buildId, String branch, String flavor) 追蹤給定的設備映像到與其一起刷新的設備序號 |
受保護的方法 | |
---|---|
void | cleanUp () |
受保護的構造函數
裝置影像追蹤器
protected DeviceImageTracker ()
公共方法
取得基線設備影像
public DeviceImageTracker.FileCacheTracker getBaselineDeviceImage (String serial)
返回為裝置追蹤的裝置影像。如果沒有被追蹤則為空。
參數 | |
---|---|
serial | String |
退貨 | |
---|---|
DeviceImageTracker.FileCacheTracker |
無效追蹤
public void invalidateTracking (String serial)
參數 | |
---|---|
serial | String |
追蹤更新設備影像
public void trackUpdatedDeviceImage (String serial, File deviceImage, File bootloader, File baseband, String buildId, String branch, String flavor)
追蹤給定的設備映像到與其一起刷新的設備序號
參數 | |
---|---|
serial | String : 閃爍影像的裝置。 |
deviceImage | File :影像閃現到裝置上。 |
bootloader | File |
baseband | File |
buildId | String :與裝置映像相關的建置 ID。 |
branch | String :與裝置映像相關的分支。 |
flavor | String :與裝置映像相關的建置風格。 |
受保護的方法
清理
protected void cleanUp ()
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2023-12-01 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]