RefakatçiTaşıyıcı
public abstract class CompanionAllocator
extends BaseTargetPreparer
java.lang.Nesne | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.companion.CompanionAllocator |
Tamamlayıcı aygıtın tahsis edilmesi ve serbest bırakılmasıyla ilgilenen temel sınıf
eşlik eden cihazı tahsis etmek için gereken kriterleri tanımlamak için getCompanionDeviceSelectionOptions()
uygulanmalıdır.
Özet
Kamu inşaatçıları | |
---|---|
CompanionAllocator () |
Genel yöntemler | |
---|---|
void | setUp ( ITestDevice device, IBuildInfo buildInfo) Cihazı ayarlar. |
void | tearDown ( ITestDevice device, IBuildInfo buildInfo, Throwable e) |
Korumalı yöntemler | |
---|---|
abstract DeviceSelectionOptions | getCompanionDeviceSelectionOptions () Yardımcı cihaz için |
Kamu inşaatçıları
RefakatçiTaşıyıcı
public CompanionAllocator ()
Genel yöntemler
kurmak
public void setUp (ITestDevice device, IBuildInfo buildInfo)
Cihazı ayarlar.
Bu yöntemin dahili uygulaması, eşlik eden bir cihaz isteyecek ve onu tahsis edecektir.
parametreler | |
---|---|
device | ITestDevice |
buildInfo | IBuildInfo |
atar | |
---|---|
BuildError | |
DeviceNotAvailableException | |
TargetSetupError |
sökmek
public void tearDown (ITestDevice device, IBuildInfo buildInfo, Throwable e)
parametreler | |
---|---|
device | ITestDevice |
buildInfo | IBuildInfo |
e | Throwable |
atar | |
---|---|
DeviceNotAvailableException |
Korumalı yöntemler
getCompanionDeviceSelectionOptions
protected abstract DeviceSelectionOptions getCompanionDeviceSelectionOptions ()
Yardımcı cihaz için DeviceSelectionOptions
İadeler | |
---|---|
DeviceSelectionOptions |