OxygenClient
public class OxygenClient
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.cloud.OxygenClient |
מחלקה המנהלת את השימוש בבינארי של Oxygen Client כדי להחכיר או לשחרר מכשיר Oxygen.
סיכום
שדות | |
---|---|
public static final | sGceDeviceParamsToOxygenMap
|
בנאים ציבוריים | |
---|---|
OxygenClient (File clientBinary, IRunUtil runUtil) | |
OxygenClient (File clientBinary) הבנאי של מחלקת OxygenClient. |
שיטות ציבוריות | |
---|---|
String | getOverrideFetchCvdPath ( TestDeviceOptions deviceOptions) מחזירה את הערך של הארגומנט 'override_fetch_cvd_path' ב-TestDeviceOptions הנתונות. |
CommandResult | leaseDevice ( IBuildInfo b, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes) נסה לשכור מכשיר על ידי קריאת Oxygen client binary. |
CommandResult | leaseMultipleDevices ( buildInfos, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes) leaseMultipleDevices ( buildInfos, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes) נסה לשכור מכשירים מרובים על ידי קריאת Oxygen client binary. |
Boolean | noWaitForBootSpecified ( TestDeviceOptions deviceOptions) בדוק אם no_wait_for_boot מצוין בבקשת חכירת חמצן |
boolean | release ( GceAvdInfo gceAvdInfo, TestDeviceOptions deviceOptions) נסה לשחרר מכשיר באמצעות Oxygen Client בינארי. |
שדות
sGceDeviceParamsToOxygenMap
public static finalsGceDeviceParamsToOxygenMap
בנאים ציבוריים
OxygenClient
public OxygenClient (File clientBinary, IRunUtil runUtil)
פרמטרים | |
---|---|
clientBinary | File |
runUtil | IRunUtil |
OxygenClient
public OxygenClient (File clientBinary)
הבנאי של מחלקת OxygenClient.
פרמטרים | |
---|---|
clientBinary | File : הקובץ הבינארי של Oxygen Client הניתן להפעלה. |
שיטות ציבוריות
getOverrideFetchCvdPath
public String getOverrideFetchCvdPath (TestDeviceOptions deviceOptions)
מחזירה את הערך של הארגומנט 'override_fetch_cvd_path' ב-TestDeviceOptions הנתונות.
פרמטרים | |
---|---|
deviceOptions | TestDeviceOptions : TestDeviceOptions |
החזרות | |
---|---|
String | הערך של 'override_fetch_cvd_path', או null אם הוא אינו קיים |
leaseDevice
public CommandResult leaseDevice (IBuildInfo b, TestDeviceOptions deviceOptions, MultiMap<String, String> attributes)
נסה לשכור מכשיר על ידי קריאת Oxygen client binary.
פרמטרים | |
---|---|
b | IBuildInfo : IBuildInfo |
deviceOptions | TestDeviceOptions : TestDeviceOptions |
attributes | MultiMap : תכונות המשויכות להזמנה נוכחית |
החזרות | |
---|---|
CommandResult | CommandResult שהחמצן הבינארי החזיר. |
leaseMultipleDevices
public CommandResult leaseMultipleDevices (buildInfos, TestDeviceOptions deviceOptions, MultiMap<String, String> attributes)
נסה לשכור מכשירים מרובים על ידי קריאת Oxygen client binary.
פרמטרים | |
---|---|
buildInfos | ERROR(/List ) ERROR(/List ) |
deviceOptions | TestDeviceOptions : TestDeviceOptions |
attributes | MultiMap : תכונות המשויכות להזמנה נוכחית |
החזרות | |
---|---|
CommandResult | CommandResult שהחמצן הבינארי החזיר. |
noWaitForBootSpecified
public Boolean noWaitForBootSpecified (TestDeviceOptions deviceOptions)
בדוק אם no_wait_for_boot מצוין בבקשת חכירת חמצן
פרמטרים | |
---|---|
deviceOptions | TestDeviceOptions : TestDeviceOptions |
החזרות | |
---|---|
Boolean | true אם צוין no_wait_for_boot |
לְשַׁחְרֵר
public boolean release (GceAvdInfo gceAvdInfo, TestDeviceOptions deviceOptions)
נסה לשחרר מכשיר באמצעות Oxygen Client בינארי.
פרמטרים | |
---|---|
gceAvdInfo | GceAvdInfo : GceAvdInfo |
deviceOptions | TestDeviceOptions : TestDeviceOptions |
החזרות | |
---|---|
boolean | ערך בוליאני המציין אם שחרור המכשיר הצליח. |