TestResource

public class TestResource
extends Object

java.lang.Object
   ↳ com.android.tradefed.cluster.TestResource


這個類別會建立 TFC API 傳回的 TestResource 訊息模型。

摘要

公用方法

static TestResource fromJson(JSONObject json)
static List<TestResource> fromJsonArray(JSONArray jsonArray)
boolean getDecompress()
String getDecompressDir()
File getDecompressDir(File parentDir)
List<String> getDecompressFiles()
File getFile(File parentDir)
String getName()
String getUrl()
boolean mountZip()
JSONObject toJson()

公用方法

fromJson

public static TestResource fromJson (JSONObject json)

參數
json JSONObject

傳回
TestResource

fromJsonArray

public static List<TestResource> fromJsonArray (JSONArray jsonArray)

參數
jsonArray JSONArray

傳回
List<TestResource>

擲回
JSONException

getDecompress

public boolean getDecompress ()

傳回
boolean

getDecompressDir

public String getDecompressDir ()

傳回
String

getDecompressDir

public File getDecompressDir (File parentDir)

參數
parentDir File

傳回
File

getDecompressFiles

public List<String> getDecompressFiles ()

傳回
List<String>

getFile

public File getFile (File parentDir)

參數
parentDir File

傳回
File

getName

public String getName ()

傳回
String

getUrl

public String getUrl ()

傳回
String

mountZip

public boolean mountZip ()

傳回
boolean

toJson

public JSONObject toJson ()

傳回
JSONObject

擲回
JSONException