IManagedTestDevice

public interface IManagedTestDevice
implements ITestDevice

com.android.tradefed.device.IManagedTestDevice


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

Özet

İç içe yerleştirilmiş sınıflar

class IManagedTestDevice.DeviceEventResponse

IManagedTestDevice.handleAllocationEvent(DeviceEvent) çağrısına verilen yanıtın kapsayıcısı

Herkese açık yöntemler

abstract DeviceAllocationState getAllocationState()

Cihazın mevcut tahsis durumunu döndürme

abstract Process getEmulatorProcess()

Bu emülatöre karşılık gelen Process değerini döndürür.

abstract String getFastbootPath()

Kullanılan fastboot ikili dosyasının yolunu döndürür.

abstract String getFastbootVersion()

Kullanılan fastboot ikilisinin sürüm dizesini döndürür.

abstract String getMacAddress()

Cihazın MAC adresini döndürür. Cihazdan sorgu yapılamazsa null değerini döndürür.

abstract IDeviceStateMonitor getMonitor()

Cihazla ilişkili IDeviceStateMonitor değerini döndürür.

abstract String getSimOperator()

SIM kart operatörünü döndürün veya cihaz yoksa veya kullanılamıyorsa null değerini döndürün.

abstract String getSimState()

SIM kart durumunu veya cihaz mevcut değilse null değerini döndürür.

abstract IManagedTestDevice.DeviceEventResponse handleAllocationEvent(DeviceEvent event)

Belirtilen DeviceEvent'i işleyin.

abstract boolean isFastbootEnabled()

Cihaz için Fastboot kullanılabiliyorsa iade edin.

abstract boolean recoverDevice()

Cihazda kurtarma işlemini başlatın.

abstract void setDeviceState(TestDeviceState deviceState)

Cihazın durumunu güncelleyin.

abstract void setEmulatorProcess(Process p)

Bu cihaz bir emülatör olduğunda Process değerini ayarlar.

abstract void setFastbootEnabled(boolean fastbootEnabled)

Cihaz için hızlı önyükleme 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.

Herkese açık yöntemler

getAllocationState

public abstract DeviceAllocationState getAllocationState ()

Cihazın mevcut tahsis durumunu döndürme

İlerlemeler
DeviceAllocationState

getEmulatorProcess

public abstract Process getEmulatorProcess ()

Bu emülatöre karşılık gelen Process değerini döndürür.

İlerlemeler
Process Process veya null

getFastbootPath

public abstract String getFastbootPath ()

Kullanılan fastboot ikili dosyasının yolunu döndürür. Hızlı önyükleme işlevlerinin etkinleştirilebilmesi için isFastbootEnabled() değerinin doğru olması gerekir.

İlerlemeler
String

getFastbootVersion

public abstract String getFastbootVersion ()

Kullanılan fastboot ikilisinin sürüm dizesini döndürür. Bir sorun oluşursa null değerini alır.

İlerlemeler
String

getMacAddress

public abstract String getMacAddress ()

Cihazın MAC adresini döndürür. Cihazdan sorgu yapılamazsa null değerini döndürür.

İlerlemeler
String

getMonitor

public abstract IDeviceStateMonitor getMonitor ()

Cihazla ilişkili IDeviceStateMonitor değerini döndürür.

İlerlemeler
IDeviceStateMonitor

getSimOperator

public abstract String getSimOperator ()

SIM kart operatörünü döndürün veya cihaz yoksa veya kullanılamıyorsa null değerini döndürün.

İlerlemeler
String

getSimState

public abstract String getSimState ()

SIM kart durumunu veya cihaz mevcut değilse null değerini döndürür.

İlerlemeler
String

handleAllocationEvent

public abstract IManagedTestDevice.DeviceEventResponse handleAllocationEvent (DeviceEvent event)

Belirtilen DeviceEvent'i işleyin. Cihazı yeni duruma geçirebilir. IDeviceMonitor'ü durum geçişleri hakkında bilgilendirir.

Parametreler
event DeviceEvent

İlerlemeler
IManagedTestDevice.DeviceEventResponse

isFastbootEnabled

public abstract boolean isFastbootEnabled ()

Cihaz için Fastboot kullanılabiliyorsa iade edin.

İlerlemeler
boolean

recoverDevice

public abstract boolean recoverDevice ()

Cihazda kurtarma işlemini başlatın.

İlerlemeler
boolean Kurtarma işlemi denenmiş ve başarılıysa doğru, atlanmışsa yanlış değerini döndürür

Atışlar
DeviceNotAvailableException Kurtarma işlemi başarılı değilse

setDeviceState

public abstract void setDeviceState (TestDeviceState deviceState)

Cihazın durumunu güncelleyin.

Parametreler
deviceState TestDeviceState: TestDeviceState

setEmulatorProcess

public abstract void setEmulatorProcess (Process p)

Bu cihaz bir emülatör olduğunda Process değerini ayarlar.

Parametreler
p Process

setFastbootEnabled

public abstract void setFastbootEnabled (boolean fastbootEnabled)

Cihaz için hızlı önyükleme seçeneğini ayarlayın. Cihaz ilk kez atandığında ayarlanmalıdır.

Parametreler
fastbootEnabled boolean: Cihazda hızlı önyüklemenin kullanılıp kullanılamayacağını belirtir.

setFastbootPath

public abstract void setFastbootPath (String fastbootPath)

Kullanılması gereken fastboot ikili dosyasının yolunu ayarlar. Hızlı önyükleme işlevlerinin etkinleştirilebilmesi için isFastbootEnabled() değerinin doğru olması gerekir.

Parametreler
fastbootPath String

setIDevice

public abstract void setIDevice (IDevice device)

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

Yeni IDevice, mevcut referansla aynı fiziksel cihazı referans almalıdır. DDMS yeni bir IDevice atarsa bu yöntem çağrılır.

Parametreler
device IDevice: IDevice