TestDevice.MicrodroidBuilder

public static class TestDevice.MicrodroidBuilder
extends Object

java.lang.Object
com.android.tradefed.device.TestDevice.MicrodroidBuilder


Microdroid TestDevice oluşturmak için kullanılan bir oluşturucu.

Özet

Genel yöntemler

TestDevice.MicrodroidBuilder addAssignableDevice (String sysfsNode)

Mikrodroid'e atanacak bir cihaz ekler.

TestDevice.MicrodroidBuilder addBootFile (File localFile, String remoteFileName)

Önyükleme için ERROR(/#TEST_ROOT) konumuna gönderilecek bir dosya ekler.

TestDevice.MicrodroidBuilder addExtraIdsigPath (String extraIdsigPath)

Listeye ekstra idsig dosyası ekler.

TestDevice.MicrodroidBuilder addTestDeviceOption (String optionName, String valueText)

Mikrodroid TestDevice için bir TestDeviceOptions ayarlar.

ITestDevice build ( TestDevice device)

Verilen TestDevice üzerinde bir Micrdroid TestDevice başlatır.

TestDevice.MicrodroidBuilder cpuAffinity (String affinity)

vCPU'ların hangi ana bilgisayar CPU'larında çalışabileceğini ayarlar.

TestDevice.MicrodroidBuilder cpuTopology (String cpuTopology)

CPU topolojisi yapılandırmasını ayarlar.

TestDevice.MicrodroidBuilder debugLevel (String debugLevel)

Hata ayıklama düzeyini ayarlar.

static TestDevice.MicrodroidBuilder fromDevicePath (String apkPath, String configPath)

Verilen apkPath ve APK'daki yük yapılandırma dosyası için bir Microdroid oluşturucu oluşturur.

static TestDevice.MicrodroidBuilder fromFile (File apkFile, String configPath)

Verilen APK ve APK'daki yük yapılandırma dosyası için bir Microdroid oluşturucu oluşturur.

TestDevice.MicrodroidBuilder gki (String version)

Mikrodroid çekirdeği yerine GKI çekirdeğini kullanır

TestDevice.MicrodroidBuilder memoryMib (int memoryMib)

VM'ye verilecek RAM miktarını ayarlar.

TestDevice.MicrodroidBuilder numCpus (int num)

VM'deki vCPU sayısını ayarlar.

TestDevice.MicrodroidBuilder protectedVm (boolean isProtectedVm)

VM'nin korunup korunmayacağını ayarlar.

TestDevice.MicrodroidBuilder setAdbConnectTimeoutMs (long timeoutMs)

Mikrodroid TestDevice'e adb connect için zaman aşımını milisaniye olarak ayarlar.

Genel yöntemler

addAssignableDevice

public TestDevice.MicrodroidBuilder addAssignableDevice (String sysfsNode)

Mikrodroid'e atanacak bir cihaz ekler.

Parametreler
sysfsNode String : Atanacak sysfs düğümünün yolu

İadeler
TestDevice.MicrodroidBuilder mikrodroid oluşturucu.

addBootFile

public TestDevice.MicrodroidBuilder addBootFile (File localFile, 
                String remoteFileName)

Önyükleme için ERROR(/#TEST_ROOT) konumuna gönderilecek bir dosya ekler.

Mikrodroid'i başlatmak için bir dosya gerekiyorsa bu yöntemi kullanın. Aksi halde NativeDevice.pushFile(File, String) kullanın.

Parametreler
localFile File : Ana bilgisayardaki yerel dosya

remoteFileName String : Cihazdaki uzak dosya adı

İadeler
TestDevice.MicrodroidBuilder mikrodroid oluşturucu.

addExtraIdsigPath

public TestDevice.MicrodroidBuilder addExtraIdsigPath (String extraIdsigPath)

Listeye ekstra idsig dosyası ekler.

Parametreler
extraIdsigPath String

İadeler
TestDevice.MicrodroidBuilder

addTestDeviceOption

public TestDevice.MicrodroidBuilder addTestDeviceOption (String optionName, 
                String valueText)

Mikrodroid TestDevice için bir TestDeviceOptions ayarlar.

Parametreler
optionName String : Ayarlanacak TestDeviceOption'ın adı

valueText String : Değer

İadeler
TestDevice.MicrodroidBuilder mikrodroid oluşturucu.

inşa etmek

public ITestDevice build (TestDevice device)

Verilen TestDevice üzerinde bir Micrdroid TestDevice başlatır.

Parametreler
device TestDevice

İadeler
ITestDevice

Atar
DeviceNotAvailableException

CPUAffinity

public TestDevice.MicrodroidBuilder cpuAffinity (String affinity)

vCPU'ların hangi ana bilgisayar CPU'larında çalışabileceğini ayarlar. Biçim, vCPU'ların çalıştırılacağı CPU'ların veya CPU aralıklarının virgülle ayrılmış bir listesidir. örneğin, 0, 1, 2, 3 ve 5 numaralı ana bilgisayar CPU'larını seçmek için "0,1-3,5". Veya bu, ana bilgisayar CPU atamalarına yönelik vCPU atamalarının iki nokta üst üste ayrılmış bir listesi olabilir. örneğin, vCPU 0'ı ana CPU 0'a eşlemek için "0=0:1=1:2=2" vb.

Yalnızca Android T'de desteklenir.

Parametreler
affinity String

İadeler
TestDevice.MicrodroidBuilder

CPUTopolojisi

public TestDevice.MicrodroidBuilder cpuTopology (String cpuTopology)

CPU topolojisi yapılandırmasını ayarlar. Desteklenen değerler: "one_cpu" ve "match_host".

Parametreler
cpuTopology String

İadeler
TestDevice.MicrodroidBuilder

hata ayıklama düzeyi

public TestDevice.MicrodroidBuilder debugLevel (String debugLevel)

Hata ayıklama düzeyini ayarlar.

Desteklenen değerler: "yok" ve "tam". Android T ayrıca "app_only" uygulamasını da destekler.

Parametreler
debugLevel String

İadeler
TestDevice.MicrodroidBuilder

fromDevicePath

public static TestDevice.MicrodroidBuilder fromDevicePath (String apkPath, 
                String configPath)

Verilen apkPath ve APK'daki yük yapılandırma dosyası için bir Microdroid oluşturucu oluşturur.

Parametreler
apkPath String

configPath String

İadeler
TestDevice.MicrodroidBuilder

dosyadan

public static TestDevice.MicrodroidBuilder fromFile (File apkFile, 
                String configPath)

Verilen APK ve APK'daki yük yapılandırma dosyası için bir Microdroid oluşturucu oluşturur.

Parametreler
apkFile File

configPath String

İadeler
TestDevice.MicrodroidBuilder

gki

public TestDevice.MicrodroidBuilder gki (String version)

Mikrodroid çekirdeği yerine GKI çekirdeğini kullanır

Parametreler
version String : Kullanılacak GKI sürümü

İadeler
TestDevice.MicrodroidBuilder

bellekMib

public TestDevice.MicrodroidBuilder memoryMib (int memoryMib)

VM'ye verilecek RAM miktarını ayarlar. Bu sıfır veya negatifse varsayılan değer kullanılacaktır.

Parametreler
memoryMib int

İadeler
TestDevice.MicrodroidBuilder

numCpus

public TestDevice.MicrodroidBuilder numCpus (int num)

VM'deki vCPU sayısını ayarlar. Varsayılan 1'dir.

Yalnızca Android T'de desteklenir.

Parametreler
num int

İadeler
TestDevice.MicrodroidBuilder

korumalıVm

public TestDevice.MicrodroidBuilder protectedVm (boolean isProtectedVm)

VM'nin korunup korunmayacağını ayarlar.

Parametreler
isProtectedVm boolean

İadeler
TestDevice.MicrodroidBuilder

setAdbConnectTimeoutMs

public TestDevice.MicrodroidBuilder setAdbConnectTimeoutMs (long timeoutMs)

Mikrodroid TestDevice'e adb connect için zaman aşımını milisaniye olarak ayarlar.

Parametreler
timeoutMs long : Milisaniye cinsinden zaman aşımı

İadeler
TestDevice.MicrodroidBuilder