TestResource
public
class
TestResource
extends Object
java.lang.Object | |
↳ | com.android.tradefed.cluster.TestResource |
A class to model a TestResource message returned by TFC API.
Summary
Public methods | |
---|---|
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 methods
fromJson
public static TestResource fromJson (JSONObject json)
Parameters | |
---|---|
json |
JSONObject |
Returns | |
---|---|
TestResource |
fromJsonArray
public staticfromJsonArray (JSONArray jsonArray)
Parameters | |
---|---|
jsonArray |
JSONArray |
Returns | |
---|---|
|
Throws | |
---|---|
JSONException |
getDecompress
public boolean getDecompress ()
Returns | |
---|---|
boolean |
getDecompressDir
public String getDecompressDir ()
Returns | |
---|---|
String |
getDecompressDir
public File getDecompressDir (File parentDir)
Parameters | |
---|---|
parentDir |
File |
Returns | |
---|---|
File |
getDecompressFiles
publicgetDecompressFiles ()
Returns | |
---|---|
|
getFile
public File getFile (File parentDir)
Parameters | |
---|---|
parentDir |
File |
Returns | |
---|---|
File |
getName
public String getName ()
Returns | |
---|---|
String |
getUrl
public String getUrl ()
Returns | |
---|---|
String |
mountZip
public boolean mountZip ()
Returns | |
---|---|
boolean |
toJson
public JSONObject toJson ()
Returns | |
---|---|
JSONObject |
Throws | |
---|---|
JSONException |