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 |
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 null olarak 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 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 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 ö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ı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 Process
döndürün.
İadeler | |
---|---|
Process | 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 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 ö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 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 IDevice, 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 |
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2023-07-19 UTC.