IManagedTestDevice
public interface IManagedTestDevice
implements ITestDevice
com.android.tradefed.device.IManagedTestDevice |
Yaşam döngüsü yönetilen bir ITestDevice.
Özet
İç içe geçmiş 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; null. |
abstract IDeviceStateMonitor | getMonitor () Cihazla ilişkili |
abstract String | getSimOperator () SIM kart operatörünü iade edin veya mevcut değilse ya da cihaz mevcut değilse boş bırakın. |
abstract String | getSimState () SIM kartın durumunu iade edin veya mevcut değilse veya cihaz mevcut değilse boş bırakın. |
abstract IManagedTestDevice.DeviceEventResponse | handleAllocationEvent (DeviceEvent event) Verilen DeviceEvent'i işleyin. |
abstract boolean | isFastbootEnabled () Cihaz için fastboot 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'yi 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 |
getFastbootPath
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()
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 döndürür; null.
İadeler | |
---|---|
String |
getMonitor
public abstract IDeviceStateMonitor getMonitor ()
Cihazla ilişkili IDeviceStateMonitor
döndürün.
İadeler | |
---|---|
IDeviceStateMonitor |
getSimOperatörü
public abstract String getSimOperator ()
SIM kart operatörünü iade edin veya mevcut değilse ya da cihaz mevcut değilse boş bırakın.
İadeler | |
---|---|
String |
getSimState
public abstract String getSimState ()
SIM kartın durumunu iade edin veya mevcut değilse veya cihaz mevcut değilse boş bırakın.
İadeler | |
---|---|
String |
tanıtıcıAllocationEvent
public abstract IManagedTestDevice.DeviceEventResponse handleAllocationEvent (DeviceEvent event)
Verilen DeviceEvent'i işleyin. Cihazı yeni duruma geçirebilir. IDeviceMonitor
herhangi bir durum geçişi hakkında bilgilendirecektir.
Parametreler | |
---|---|
event | DeviceEvent |
İadeler | |
---|---|
IManagedTestDevice.DeviceEventResponse |
Fastboot Etkin
public abstract boolean isFastbootEnabled ()
Cihaz için fastboot mevcutsa geri dönün.
İadeler | |
---|---|
boolean |
kurtarmaCihaz
public abstract boolean recoverDevice ()
Cihazda kurtarmayı çağırın.
İadeler | |
---|---|
boolean | Kurtarma işlemi denendiyse ve başarılıysa True, kurtarma atlanırsa False değerini döndürür |
Atar | |
---|---|
DeviceNotAvailableException | kurtarma başarılı olmazsa |
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 |
setFastbootEtkin
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 : cihazda 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()
doğru olması gerekir.
Parametreler | |
---|---|
fastbootPath | String |
setIDevice
public abstract void setIDevice (IDevice device)
Bu ITestDevice ile ilişkili IDevice'yi güncelleyin.
Yeni IDevice, mevcut referansla aynı fiziksel cihaza başvurmalıdır. DDMS yeni bir IDevice tahsis etmişse bu yöntem ç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-12-01 UTC.