ทดสอบทรัพยากร

public class TestResource
extends Object

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


คลาสสำหรับสร้างโมเดลข้อความ TestResource ที่ส่งคืนโดย TFC API

สรุป

วิธีการสาธารณะ

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

วิธีการสาธารณะ

จากเจสัน

public static TestResource fromJson (JSONObject json)

พารามิเตอร์
json JSONObject

การส่งคืน
TestResource

จาก JsonArray

public static  fromJsonArray (JSONArray jsonArray)

พารามิเตอร์
jsonArray JSONArray

การส่งคืน

ขว้าง
JSONException

รับการบีบอัด

public boolean getDecompress ()

การส่งคืน
boolean

รับDecompressDir

public String getDecompressDir ()

การส่งคืน
String

รับDecompressDir

public File getDecompressDir (File parentDir)

พารามิเตอร์
parentDir File

การส่งคืน
File

getDecompressFiles

public  getDecompressFiles ()

การส่งคืน

getFile.getFile

public File getFile (File parentDir)

พารามิเตอร์
parentDir File

การส่งคืน
File

รับชื่อ

public String getName ()

การส่งคืน
String

getUrl

public String getUrl ()

การส่งคืน
String

mountZip

public boolean mountZip ()

การส่งคืน
boolean

ถึงเจสัน

public JSONObject toJson ()

การส่งคืน
JSONObject

ขว้าง
JSONException