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)

Microdroid'e atamak için 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 fazladan idsig dosyası ekler.

TestDevice.MicrodroidBuilder addTestDeviceOption (String optionName, String valueText)

Microdroid TestDevice için bir TestDeviceOptions ayarlar.

ITestDevice build ( TestDevice device)

Verilen TestDevice üzerinde bir Microroid 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 seviyesini 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 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)

Adb connect to microdroid TestDevice için zaman aşımını milisaniye cinsinden ayarlar.

Genel yöntemler

AddAssignableDevice

public TestDevice.MicrodroidBuilder addAssignableDevice (String sysfsNode)

Microdroid'e atamak için bir cihaz ekler.

parametreler
sysfsNode String : Atanacak sysfs düğümüne giden yol

İadeler
TestDevice.MicrodroidBuilder mikrodroid oluşturucu.

önyükleme dosyası ekle

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 takdirde 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 fazladan idsig dosyası ekler.

parametreler
extraIdsigPath String

İadeler
TestDevice.MicrodroidBuilder

addTestDeviceOption

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

Microdroid 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 Microroid 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ı çalıştırmak için virgülle ayrılmış CPU veya CPU aralıkları listesidir. örneğin, ana bilgisayar CPU'ları 0, 1, 2, 3 ve 5'i seçmek için "0,1-3,5". Veya bu, CPU atamalarını barındırmak için vCPU'nun iki nokta üst üste ayrılmış bir atama listesi olabilir. örneğin vCPU 0'ı ana bilgisayar 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

işlemci Topolojisi

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 seviyesini ayarlar.

Desteklenen değerler: "yok" ve "dolu". Android T ayrıca "app_only" özelliğini de destekler.

parametreler
debugLevel String

İadeler
TestDevice.MicrodroidBuilder

Aygıt Yolundan

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

bellekMib

public TestDevice.MicrodroidBuilder memoryMib (int memoryMib)

VM'ye verilecek RAM miktarını ayarlar. Bu sıfır veya negatif ise varsayılan kullanılacaktır.

parametreler
memoryMib int

İadeler
TestDevice.MicrodroidBuilder

sayıCpus

public TestDevice.MicrodroidBuilder numCpus (int num)

VM'deki vCPU sayısını ayarlar. Varsayılanlar 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)

Adb connect to microdroid TestDevice için zaman aşımını milisaniye cinsinden ayarlar.

parametreler
timeoutMs long : Mil olarak zaman aşımı

İadeler
TestDevice.MicrodroidBuilder

,

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)

Microdroid'e atamak için 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 fazladan idsig dosyası ekler.

TestDevice.MicrodroidBuilder addTestDeviceOption (String optionName, String valueText)

Microdroid TestDevice için bir TestDeviceOptions ayarlar.

ITestDevice build ( TestDevice device)

Verilen TestDevice üzerinde bir Microroid 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 seviyesini 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 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)

Adb connect to microdroid TestDevice için zaman aşımını milisaniye cinsinden ayarlar.

Genel yöntemler

AddAssignableDevice

public TestDevice.MicrodroidBuilder addAssignableDevice (String sysfsNode)

Microdroid'e atamak için bir cihaz ekler.

parametreler
sysfsNode String : Atanacak sysfs düğümüne giden yol

İadeler
TestDevice.MicrodroidBuilder mikrodroid oluşturucu.

önyükleme dosyası ekle

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 takdirde 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 fazladan idsig dosyası ekler.

parametreler
extraIdsigPath String

İadeler
TestDevice.MicrodroidBuilder

addTestDeviceOption

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

Microdroid 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 Microroid 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ı çalıştırmak için virgülle ayrılmış CPU veya CPU aralıkları listesidir. örneğin, ana bilgisayar CPU'ları 0, 1, 2, 3 ve 5'i seçmek için "0,1-3,5". Veya bu, CPU atamalarını barındırmak için vCPU'nun iki nokta üst üste ayrılmış bir atama listesi olabilir. örneğin vCPU 0'ı ana bilgisayar 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

işlemci Topolojisi

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 seviyesini ayarlar.

Desteklenen değerler: "yok" ve "dolu". Android T ayrıca "app_only" özelliğini de destekler.

parametreler
debugLevel String

İadeler
TestDevice.MicrodroidBuilder

Aygıt Yolundan

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

bellekMib

public TestDevice.MicrodroidBuilder memoryMib (int memoryMib)

VM'ye verilecek RAM miktarını ayarlar. Bu sıfır veya negatif ise varsayılan kullanılacaktır.

parametreler
memoryMib int

İadeler
TestDevice.MicrodroidBuilder

sayıCpus

public TestDevice.MicrodroidBuilder numCpus (int num)

VM'deki vCPU sayısını ayarlar. Varsayılanlar 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)

adb connect to microdroid TestDevice için zaman aşımını milisaniye cinsinden ayarlar.

parametreler
timeoutMs long : Mil olarak zaman aşımı

İadeler
TestDevice.MicrodroidBuilder