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

Herkese açık yöntemler

TestDevice.MicrodroidBuilder addAssignableDevice(String sysfsNode)

Microdroid'e atanacak bir cihaz ekler.

TestDevice.MicrodroidBuilder addBootFile(File localFile, String remoteFileName)

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

TestDevice.MicrodroidBuilder addExtraIdsigPath(String extraIdsigPath)

Listeye ek idsig dosyası ekler.

TestDevice.MicrodroidBuilder addTestDeviceOption(String optionName, String valueText)

Microdroid TestDevice için TestDeviceOptions ayarlar.

ITestDevice build(TestDevice device)

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

TestDevice.MicrodroidBuilder cpuAffinity(String affinity)

Sanal CPU'ların hangi ana makine 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.

TestDevice.MicrodroidBuilder dumpDt(String dumpDt)

Cihaz ağacı blob'unun döküleceği yolu ayarlar.

TestDevice.MicrodroidBuilder enableEarlycon(boolean enableEarlycon)

Bu sanal makine için earlycon günlüklerini etkinleştirir.

TestDevice.MicrodroidBuilder forceStartAdbd(boolean forceStartAdbd)

`vm run` ve `adb forward` arasında `vm start-adbd` komutunu zorunlu olarak çağırır.

NOT: Bu işlev, eski API düzeylerinde (SDK 36'dan önce) işlem yapmaz.

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

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

static TestDevice.MicrodroidBuilder fromDevicePathWithPayloadBinaryName(String apkPath, String payloadBinaryName)

Belirtilen apkPath ve APK'daki yük ikili program adı için bir Microdroid derleyici oluşturur.

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

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

TestDevice.MicrodroidBuilder gki(String version)

Bu yöntem kullanımdan kaldırılmıştır. os(String) özelliğini kullanın.

TestDevice.MicrodroidBuilder hugePages(boolean hintHugePages)

Çekirdeğe şeffaf büyük sayfalar için ipucu verilip verilmeyeceğini ayarlar.

TestDevice.MicrodroidBuilder instanceIdFile(String instanceIdPath)

instance_id yolunu ayarlar.

TestDevice.MicrodroidBuilder instanceImgFile(String instanceImgPath)

instance.img dosya yolunu ayarlar.

TestDevice.MicrodroidBuilder memoryMib(int memoryMib)

Sanal makineye verilecek RAM miktarını ayarlar.

TestDevice.MicrodroidBuilder name(String name)

Bu sanal makine için adı ayarlar.

TestDevice.MicrodroidBuilder numCpus(int num)

Sanal makinedeki vCPU sayısını ayarlar.

TestDevice.MicrodroidBuilder os(String os)

Microdroid OS'in varsayılan olmayan bir varyantını kullanıyorsa.

TestDevice.MicrodroidBuilder protectedVm(boolean isProtectedVm)

VM'nin korunup korunmayacağını ayarlar.

TestDevice.MicrodroidBuilder ramdump(boolean useRamdump)

RAM dökümleri için kilitlenme çekirdeğinin kapatılıp kapatılmayacağını belirler.

TestDevice.MicrodroidBuilder setAdbConnectTimeoutMs(long timeoutMs)

adb connect'in microdroid TestDevice ile bağlantı zaman aşımını milisaniye cinsinden ayarlar.

Herkese açık yöntemler

addAssignableDevice

public TestDevice.MicrodroidBuilder addAssignableDevice (String sysfsNode)

Microdroid'e atanacak bir cihaz ekler.

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

İadeler
TestDevice.MicrodroidBuilder microdroid oluşturucu.

addBootFile

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

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

Microdroid'in başlatılması için bir dosya gerekiyorsa bu yöntemi kullanın. Aksi takdirde TestDevice.pushFile kullanın.

Parametreler
localFile File: Ana makinedeki yerel dosya

remoteFileName String: Cihazdaki uzak dosya adı

İadeler
TestDevice.MicrodroidBuilder microdroid oluşturucu.

addExtraIdsigPath

public TestDevice.MicrodroidBuilder addExtraIdsigPath (String extraIdsigPath)

Listeye ek idsig dosyası ekler.

Parametreler
extraIdsigPath String

İadeler
TestDevice.MicrodroidBuilder

addTestDeviceOption

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

Microdroid TestDevice için TestDeviceOptions ayarlar.

Parametreler
optionName String: Ayarlanacak TestDeviceOption'ın adı

valueText String: Değer

İadeler
TestDevice.MicrodroidBuilder microdroid oluşturucu.

yapı

public ITestDevice build (TestDevice device)

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

Parametreler
device TestDevice

Döndürülenler
ITestDevice

Verdiği hatalar
DeviceNotAvailableException

cpuAffinity

public TestDevice.MicrodroidBuilder cpuAffinity (String affinity)

Sanal CPU'ların hangi ana makine 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, ana makine CPU'ları 0, 1, 2, 3 ve 5'i seçmek için "0,1-3,5". Alternatif olarak, bu, vCPU'nun ana makine CPU'suna atamalarının iki nokta üst üste ile ayrılmış bir listesi olabilir. Örneğin, vCPU 0'ı ana makine CPU 0'a eşlemek için "0=0:1=1:2=2" kullanılır.

Yalnızca Android T'de desteklenir.

Parametreler
affinity String

İadeler
TestDevice.MicrodroidBuilder

cpuTopology

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

debugLevel

public TestDevice.MicrodroidBuilder debugLevel (String debugLevel)

Hata ayıklama düzeyini ayarlar.

Desteklenen değerler: "none" ve "full". Android T, "app_only"yi de destekler.

Parametreler
debugLevel String

İadeler
TestDevice.MicrodroidBuilder

dumpDt

public TestDevice.MicrodroidBuilder dumpDt (String dumpDt)

Cihaz ağacı blob'unun döküleceği yolu ayarlar.

Desteklenen değerler: null ve "path".

Parametreler
dumpDt String

İadeler
TestDevice.MicrodroidBuilder

enableEarlycon

public TestDevice.MicrodroidBuilder enableEarlycon (boolean enableEarlycon)

Bu sanal makine için earlycon günlüklerini etkinleştirir.

NOT: Bu işlev, eski API düzeylerinde (SDK 36'dan önce) işlem yapmaz.

Parametreler
enableEarlycon boolean

İadeler
TestDevice.MicrodroidBuilder microdroid oluşturucu.

forceStartAdbd

public TestDevice.MicrodroidBuilder forceStartAdbd (boolean forceStartAdbd)

`vm run` ve `adb forward` arasında `vm start-adbd` komutunu zorunlu olarak çağırır.

NOT: Bu işlev, eski API düzeylerinde (SDK 36'dan önce) işlem yapmaz.

Parametreler
forceStartAdbd boolean

İadeler
TestDevice.MicrodroidBuilder microdroid oluşturucu.

fromDevicePath

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

Belirtilen 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

fromDevicePathWithPayloadBinaryName

public static TestDevice.MicrodroidBuilder fromDevicePathWithPayloadBinaryName (String apkPath, 
                String payloadBinaryName)

Belirtilen apkPath ve APK'daki yük ikili program adı için bir Microdroid derleyici oluşturur.

Parametreler
apkPath String

payloadBinaryName String

İadeler
TestDevice.MicrodroidBuilder

fromFile

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

Belirtilen 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)

Bu yöntem kullanımdan kaldırılmıştır.
os(String) kullanın.

Microdroid çekirdeği yerine GKI çekirdeği kullanır.

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

İadeler
TestDevice.MicrodroidBuilder

hugePages

public TestDevice.MicrodroidBuilder hugePages (boolean hintHugePages)

Çekirdeğe şeffaf büyük sayfalar için ipucu verilip verilmeyeceğini ayarlar.

Parametreler
hintHugePages boolean

İadeler
TestDevice.MicrodroidBuilder microdroid oluşturucu.

instanceIdFile

public TestDevice.MicrodroidBuilder instanceIdFile (String instanceIdPath)

instance_id yolunu ayarlar.

Parametreler
instanceIdPath String: : instanceId'nin yolu

İadeler
TestDevice.MicrodroidBuilder

instanceImgFile

public TestDevice.MicrodroidBuilder instanceImgFile (String instanceImgPath)

instance.img dosya yolunu ayarlar.

Parametreler
instanceImgPath String

İadeler
TestDevice.MicrodroidBuilder

memoryMib

public TestDevice.MicrodroidBuilder memoryMib (int memoryMib)

Sanal makineye verilecek RAM miktarını ayarlar. Bu değer sıfır veya negatifse varsayılan değer kullanılır.

Parametreler
memoryMib int

İadeler
TestDevice.MicrodroidBuilder

ad

public TestDevice.MicrodroidBuilder name (String name)

Bu sanal makine için adı ayarlar.

Parametreler
name String

İadeler
TestDevice.MicrodroidBuilder microdroid oluşturucu.

numCpus

public TestDevice.MicrodroidBuilder numCpus (int num)

Sanal makinedeki vCPU sayısını ayarlar. Varsayılan olarak 1 değerine ayarlanır.

Yalnızca Android T'de desteklenir.

Parametreler
num int

İadeler
TestDevice.MicrodroidBuilder

os

public TestDevice.MicrodroidBuilder os (String os)

Microdroid OS'in varsayılan olmayan bir varyantını kullanıyorsa.

Parametreler
os String: Kullanılacak Microdroid OS sürümü

İadeler
TestDevice.MicrodroidBuilder

protectedVm

public TestDevice.MicrodroidBuilder protectedVm (boolean isProtectedVm)

VM'nin korunup korunmayacağını ayarlar.

Parametreler
isProtectedVm boolean

İadeler
TestDevice.MicrodroidBuilder

ramdump

public TestDevice.MicrodroidBuilder ramdump (boolean useRamdump)

RAM dökümleri için kilitlenme çekirdeğinin kapatılıp kapatılmayacağını belirler.

Parametreler
useRamdump boolean

İadeler
TestDevice.MicrodroidBuilder microdroid oluşturucu.

setAdbConnectTimeoutMs

public TestDevice.MicrodroidBuilder setAdbConnectTimeoutMs (long timeoutMs)

adb connect'in microdroid TestDevice ile bağlantı zaman aşımını milisaniye cinsinden ayarlar.

Testin takılmasını önlemek için bu değer pozitif olmalıdır.

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

İadeler
TestDevice.MicrodroidBuilder