測試資源
public class TestResource
extends Object
java.lang.Object | |
↳ | com.android.tradefed.cluster.TestResource |
用於對 TFC API 傳回的 TestResource 訊息進行建模的類別。
概括
公共方法 | |
---|---|
static TestResource | fromJson (JSONObject json) |
static | fromJsonArray (JSONArray jsonArray) |
boolean | getDecompress () |
String | getDecompressDir () |
File | getDecompressDir (File parentDir) |
getDecompressFiles () | |
File | getFile (File parentDir) |
String | getName () |
String | getUrl () |
boolean | mountZip () |
JSONObject | toJson () |
公共方法
來自JsonArray
public staticfromJsonArray (JSONArray jsonArray)
參數 | |
---|---|
jsonArray | JSONArray |
退貨 | |
---|---|
投擲 | |
---|---|
JSONException |
獲取解壓縮
public boolean getDecompress ()
退貨 | |
---|---|
boolean |
取得解壓縮目錄
public String getDecompressDir ()
退貨 | |
---|---|
String |
取得解壓縮目錄
public File getDecompressDir (File parentDir)
參數 | |
---|---|
parentDir | File |
退貨 | |
---|---|
File |
取得解壓縮文件
publicgetDecompressFiles ()
退貨 | |
---|---|
取得文件
public File getFile (File parentDir)
參數 | |
---|---|
parentDir | File |
退貨 | |
---|---|
File |
取得名稱
public String getName ()
退貨 | |
---|---|
String |
取得網址
public String getUrl ()
退貨 | |
---|---|
String |
安裝Zip
public boolean mountZip ()
退貨 | |
---|---|
boolean |
托森
public JSONObject toJson ()
退貨 | |
---|---|
JSONObject |
投擲 | |
---|---|
JSONException |
測試資源
public class TestResource
extends Object
java.lang.Object | |
↳ | com.android.tradefed.cluster.TestResource |
用於對 TFC API 傳回的 TestResource 訊息進行建模的類別。
概括
公共方法 | |
---|---|
static TestResource | fromJson (JSONObject json) |
static | fromJsonArray (JSONArray jsonArray) |
boolean | getDecompress () |
String | getDecompressDir () |
File | getDecompressDir (File parentDir) |
getDecompressFiles () | |
File | getFile (File parentDir) |
String | getName () |
String | getUrl () |
boolean | mountZip () |
JSONObject | toJson () |
公共方法
來自JsonArray
public staticfromJsonArray (JSONArray jsonArray)
參數 | |
---|---|
jsonArray | JSONArray |
退貨 | |
---|---|
投擲 | |
---|---|
JSONException |
獲取解壓縮
public boolean getDecompress ()
退貨 | |
---|---|
boolean |
取得解壓縮目錄
public String getDecompressDir ()
退貨 | |
---|---|
String |
取得解壓縮目錄
public File getDecompressDir (File parentDir)
參數 | |
---|---|
parentDir | File |
退貨 | |
---|---|
File |
取得解壓縮文件
publicgetDecompressFiles ()
退貨 | |
---|---|
取得文件
public File getFile (File parentDir)
參數 | |
---|---|
parentDir | File |
退貨 | |
---|---|
File |
取得名稱
public String getName ()
退貨 | |
---|---|
String |
取得網址
public String getUrl ()
退貨 | |
---|---|
String |
安裝Zip
public boolean mountZip ()
退貨 | |
---|---|
boolean |
托森
public JSONObject toJson ()
退貨 | |
---|---|
JSONObject |
投擲 | |
---|---|
JSONException |