IYönetilenTestCihazı
public interface IManagedTestDevice
implements ITestDevice
com.android.tradefed.device.IManagedTestDevice |
Yaşam döngüsü yönetilen bir ITestDevice.
Özet
iç içe sınıflar | |
---|---|
class | IManagedTestDevice.DeviceEventResponse |
Genel yöntemler | |
---|---|
abstract DeviceAllocationState | getAllocationState () Cihazın mevcut tahsis durumunu döndür |
abstract Process | getEmulatorProcess () Bu öykünücüye karşılık gelen |
abstract String | getFastbootPath () Kullanılan fastboot ikili dosyasının yolunu döndürür. |
abstract String | getFastbootVersion () Kullanılan fastboot ikili dosyasının sürüm dizesini döndürür. |
abstract String | getMacAddress () Aygıttan sorgulama başarısız olursa aygıtın MAC adresini döndürür. |
abstract IDeviceStateMonitor | getMonitor () Cihazla ilişkili |
abstract String | getSimOperator () SIM kart operatörünü iade edin veya mevcut değilse veya cihaz mevcut değilse sıfırlayın. |
abstract String | getSimState () Mevcut değilse veya cihaz mevcut değilse SIM kart durumunu veya null değerini döndürün. |
abstract IManagedTestDevice.DeviceEventResponse | handleAllocationEvent (DeviceEvent event) Verilen |
abstract boolean | isFastbootEnabled () Cihaz için hızlı önyükleme mevcutsa geri dönün. |
abstract boolean | recoverDevice () Cihazda kurtarmayı çağırın. |
abstract void | setDeviceState ( TestDeviceState deviceState) Cihazın durumunu güncelleyin. |
abstract void | setEmulatorProcess (Process p) Bu aygıt bir öykünücü olduğunda |
abstract void | setFastbootEnabled (boolean fastbootEnabled) Cihaz için fastboot seçeneğini ayarlayın. |
abstract void | setFastbootPath (String fastbootPath) Kullanılması gereken fastboot ikili dosyasının yolunu ayarlar. |
abstract void | setIDevice (IDevice device) Bu ITestDevice ile ilişkili IDevice'ı güncelleyin. |
Genel yöntemler
getAllocationState
public abstract DeviceAllocationState getAllocationState ()
Cihazın mevcut tahsis durumunu döndür
İadeler | |
---|---|
DeviceAllocationState |
getEmulatorProcess
public abstract Process getEmulatorProcess ()
Bu öykünücüye karşılık gelen Process
döndürün.
İadeler | |
---|---|
Process | Process veya null |
getFastbootYol
public abstract String getFastbootPath ()
Kullanılan fastboot ikili dosyasının yolunu döndürür. Fastboot işlevlerinin etkinleştirilmesi için yine de isFastbootEnabled()
true olmasını gerektirir.
İadeler | |
---|---|
String |
getFastbootVersion
public abstract String getFastbootVersion ()
Kullanılan fastboot ikili dosyasının sürüm dizesini döndürür. Veya bir şeyler ters giderse null.
İadeler | |
---|---|
String |
getMacAdresi
public abstract String getMacAddress ()
Aygıttan sorgulama başarısız olursa aygıtın MAC adresini döndürür.
İadeler | |
---|---|
String |
getMonitor
public abstract IDeviceStateMonitor getMonitor ()
Cihazla ilişkili IDeviceStateMonitor
.
İadeler | |
---|---|
IDeviceStateMonitor |
getSimOperator
public abstract String getSimOperator ()
SIM kart operatörünü iade edin veya mevcut değilse veya cihaz mevcut değilse sıfırlayın.
İadeler | |
---|---|
String |
getSimState
public abstract String getSimState ()
Mevcut değilse veya cihaz mevcut değilse SIM kart durumunu veya null değerini döndürün.
İadeler | |
---|---|
String |
handleAllocationEvent
public abstract IManagedTestDevice.DeviceEventResponse handleAllocationEvent (DeviceEvent event)
Verilen DeviceEvent
. Cihazı yeni duruma geçirebilir. Herhangi bir durum geçişi hakkında IDeviceMonitor
bilgilendirecektir.
parametreler | |
---|---|
event | DeviceEvent |
İadeler | |
---|---|
IManagedTestDevice.DeviceEventResponse |
isFastbootEnabled
public abstract boolean isFastbootEnabled ()
Cihaz için hızlı önyükleme mevcutsa geri dönün.
İadeler | |
---|---|
boolean |
kurtarma cihazı
public abstract boolean recoverDevice ()
Cihazda kurtarmayı çağırın.
İadeler | |
---|---|
boolean | Kurtarma girişiminde bulunulduysa ve başarılıysa true, kurtarma atlanırsa False döndürür |
atar | |
---|---|
DeviceNotAvailableException | kurtarma başarılı olmadıysa |
setDeviceState
public abstract void setDeviceState (TestDeviceState deviceState)
Cihazın durumunu güncelleyin.
parametreler | |
---|---|
deviceState | TestDeviceState : TestDeviceState |
setEmulatorProcess
public abstract void setEmulatorProcess (Process p)
Bu aygıt bir öykünücü olduğunda Process
ayarlar.
parametreler | |
---|---|
p | Process |
setFastbootEnabled
public abstract void setFastbootEnabled (boolean fastbootEnabled)
Cihaz için fastboot seçeneğini ayarlayın. Cihaz ilk tahsis edildiğinde ayarlanmalıdır.
parametreler | |
---|---|
fastbootEnabled | boolean : cihaz için fastboot'un mevcut olup olmadığı |
setFastbootPath
public abstract void setFastbootPath (String fastbootPath)
Kullanılması gereken fastboot ikili dosyasının yolunu ayarlar. Fastboot işlevlerinin etkinleştirilmesi için yine de isFastbootEnabled()
true olmasını gerektirir.
parametreler | |
---|---|
fastbootPath | String |
setIDevice
public abstract void setIDevice (IDevice device)
Bu ITestDevice ile ilişkili IDevice'ı güncelleyin.
Yeni IDevice, mevcut referansla aynı fiziksel cihaza başvurmalıdır. Bu yöntem, DDMS yeni bir IDevice tahsis ettiyse çağrılır.parametreler | |
---|---|
device | IDevice : IDevice |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-11-07 UTC.