测试资源

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 ()

公共方法

来自Json

public static TestResource fromJson (JSONObject json)

参数
json JSONObject

退货
TestResource

来自JsonArray

public static  fromJsonArray (JSONArray jsonArray)

参数
jsonArray JSONArray

退货

投掷
JSONException

获取解压

public boolean getDecompress ()

退货
boolean

获取解压目录

public String getDecompressDir ()

退货
String

获取解压目录

public File getDecompressDir (File parentDir)

参数
parentDir File

退货
File

获取解压缩文件

public  getDecompressFiles ()

退货

获取文件

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 ()

公共方法

来自Json

public static TestResource fromJson (JSONObject json)

参数
json JSONObject

退货
TestResource

来自JsonArray

public static  fromJsonArray (JSONArray jsonArray)

参数
jsonArray JSONArray

退货

投掷
JSONException

获取解压

public boolean getDecompress ()

退货
boolean

获取解压目录

public String getDecompressDir ()

退货
String

获取解压目录

public File getDecompressDir (File parentDir)

参数
parentDir File

退货
File

获取解压缩文件

public  getDecompressFiles ()

退货

获取文件

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