IManagedTestDevice

public interface IManagedTestDevice
implements ITestDevice

com.android.tradefed.device.IManagedTestDevice


Yaşam döngüsü yönetilen bir ITestDevice.

Özet

İç içe sınıflar

class IManagedTestDevice.DeviceEventResponse

Bir IManagedTestDevice#handleAllocationEvent(DeviceEvent) çağrısına yanıt için kapsayıcı

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 ERROR(/Process) döndürün.

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 null olarak döndürür.

abstract IDeviceStateMonitor getMonitor ()

Cihazla ilişkili IDeviceStateMonitor döndürün.

abstract String getSimOperator ()

SIM kart operatörünü iade edin veya mevcut değilse veya cihaz mevcut değilse boş bırakı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 DeviceEvent işleyin.

abstract boolean isFastbootEnabled ()

Cihaz için fastboot varsa 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 emülatör olduğunda ERROR(/Process) değerini ayarlar.

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ına giden yolu ayarlar.

abstract void setIDevice (IDevice device)

Bu ITestDevice ile ilişkili IDevice'i güncelleyin.

Genel yöntemler

getAllocationState

public abstract DeviceAllocationState getAllocationState ()

Cihazın mevcut tahsis durumunu döndür

İadeler
DeviceAllocationState

getEmulatorİşlemi

public abstract Process getEmulatorProcess ()

Bu öykünücüye karşılık gelen ERROR(/Process) döndürün.

İadeler
Process ERROR(/Process) veya null

getFastbootPath

public abstract String getFastbootPath ()

Kullanılan fastboot ikili dosyasının yolunu döndürür. Yine de, fastboot işlevlerinin etkinleştirilmesi için isFastbootEnabled() doğru olması gerekir.

İ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

getMacAddress

public abstract String getMacAddress ()

Aygıttan sorgulama başarısız olursa, aygıtın MAC adresini null olarak döndürür.

İadeler
String

getMonitor

public abstract IDeviceStateMonitor getMonitor ()

Cihazla ilişkili IDeviceStateMonitor döndürün.

İadeler
IDeviceStateMonitor

getSim Operatörü

public abstract String getSimOperator ()

SIM kart operatörünü iade edin veya mevcut değilse veya cihaz mevcut değilse boş bırakı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 işleyin. Cihazı yeni duruma geçirebilir. Herhangi bir durum geçişini IDeviceMonitor bildirir.

parametreler
event DeviceEvent

İadeler
IManagedTestDevice.DeviceEventResponse

isFastbootEnabled

public abstract boolean isFastbootEnabled ()

Cihaz için fastboot varsa geri dönün.

İadeler
boolean

cihazı kurtar

public abstract boolean recoverDevice ()

Cihazda kurtarmayı çağırın.

İadeler
boolean Kurtarma girişiminde bulunulur ve başarılı olursa True, kurtarma atlanırsa False değerini 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 emülatör olduğunda ERROR(/Process) değerini 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 olup olmadığı

setFastbootPath

public abstract void setFastbootPath (String fastbootPath)

Kullanılması gereken fastboot ikili dosyasına giden yolu ayarlar. Yine de, fastboot işlevlerinin etkinleştirilmesi için isFastbootEnabled() doğru olması gerekir.

parametreler
fastbootPath String

setIDevice

public abstract void setIDevice (IDevice device)

Bu ITestDevice ile ilişkili IDevice'i güncelleyin.

Yeni IDvice, geçerli referansla aynı fiziksel cihaza atıfta bulunmalıdır. Bu yöntem, DDMS yeni bir IDevice tahsis ettiyse çağrılacaktır.

parametreler
device IDevice : IDevice