Yerel Cihaz

public class NativeDevice
extends Object implements IManagedTestDevice, IConfigurationReceiver

java.lang.Nesne
com.android.tradefed.device.NativeDevice


Bir varsayılan uygulama ITestDevice Olmayan tam yığını cihazları android.

Özet

iç içe sınıflar

class NativeDevice.AdbAction

Bir DeviceAction bir işletim sistemi 'adb ....' komutunu çalıştırmak için.

class NativeDevice.AdbShellAction

class NativeDevice.RebootDeviceAction

DeviceAction bir cihaz yeniden için.

enum NativeDevice.RebootMode

Yeniden başlatma modu.

sabitler

int INVALID_USER_ID

Geçersiz/bulunamayan herhangi bir kullanıcı kimliği için döndürülen değer: UserHandle -10000 değerini tanımladı

long MAX_HOST_DEVICE_TIME_OFFSET

int MAX_RETRY_ATTEMPTS

gerçekleştirmek için varsayılan komut yeniden deneme sayısı

Alanlar

protected static final String SD_CARD

protected static final String STORAGE_EMULATED

protected TestDeviceOptions mOptions

protected final IDeviceStateMonitor mStateMonitor

Kamu inşaatçıları

NativeDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)

Bir oluşturur TestDevice .

Genel yöntemler

boolean checkApiLevelAgainstNextRelease (int strictMinLevel)

boolean checkConnectivity ()

boolean clearErrorDialogs ()

void clearLastConnectedWifiNetwork ()

void clearLogcat ()

boolean connectToWifiNetwork (String wifiSsid, String wifiPsk)

boolean connectToWifiNetwork (String wifiSsid, String wifiPsk, boolean scanSsid)

boolean connectToWifiNetworkIfNeeded (String wifiSsid, String wifiPsk, boolean scanSsid)

boolean connectToWifiNetworkIfNeeded (String wifiSsid, String wifiPsk)

int createUser (String name, boolean guest, boolean ephemeral)

int createUser (String name)

int createUserNoThrow (String name)

void deleteFile (String deviceFilePath)

boolean deviceSoftRestarted (ProcessInfo prevSystemServerProcess)

boolean deviceSoftRestartedSince (long utcEpochTime, TimeUnit timeUnit)

boolean disableAdbRoot ()

void disableKeyguard ()

boolean disableNetworkMonitor ()

boolean disconnectFromWifi ()

boolean doesFileExist (String deviceFilePath)

File dumpHeap (String process, String devicePath)

boolean enableAdbRoot ()

boolean enableNetworkMonitor ()

boolean encryptDevice (boolean inplace)

String executeAdbCommand (long timeout, String... cmdArgs)

String executeAdbCommand (String... cmdArgs)

CommandResult executeFastbootCommand (String... cmdArgs)

CommandResult executeFastbootCommand (long timeout, String... cmdArgs)

CommandResult executeLongFastbootCommand (String... cmdArgs)

String executeShellCommand (String command)

void executeShellCommand (String command, IShellOutputReceiver receiver, long maxTimeToOutputShellResponse, TimeUnit timeUnit, int retryAttempts)

void executeShellCommand (String command, IShellOutputReceiver receiver, long maxTimeoutForCommand, long maxTimeToOutputShellResponse, TimeUnit timeUnit, int retryAttempts)

void executeShellCommand (String command, IShellOutputReceiver receiver)

CommandResult executeShellV2Command (String cmd)

CommandResult executeShellV2Command (String cmd, OutputStream pipeToOutput)

CommandResult executeShellV2Command (String cmd, File pipeAsInput)

CommandResult executeShellV2Command (String cmd, long maxTimeoutForCommand, TimeUnit timeUnit, int retryAttempts)

CommandResult executeShellV2Command (String cmd, long maxTimeoutForCommand, TimeUnit timeUnit)

CommandResult executeShellV2Command (String cmd, File pipeAsInput, OutputStream pipeToOutput, long maxTimeoutForCommand, TimeUnit timeUnit, int retryAttempts)

CommandResult executeShellV2Command (String cmd, File pipeAsInput, OutputStream pipeToOutput, OutputStream pipeToError, long maxTimeoutForCommand, TimeUnit timeUnit, int retryAttempts)

CommandResult fastbootWipePartition (String partition)

getActiveApexes ()

getAllSettings (String namespace)

DeviceAllocationState getAllocationState ()
String getAndroidId (int userId)

getAndroidIds ()

int getApiLevel ()

PackageInfo getAppPackageInfo (String packageName)

getAppPackageInfos ()

String getBasebandVersion ()
Integer getBattery ()

boolean getBooleanProperty (String name, boolean defaultValue)

getBootHistory ()

getBootHistorySince (long utcEpochTime, TimeUnit timeUnit)

String getBootloaderVersion ()

InputStreamSource getBugreport ()

InputStreamSource getBugreportz ()

String getBuildAlias ()

String getBuildFlavor ()

String getBuildId ()

String getBuildSigningKeys ()

DeviceDescriptor getCachedDeviceDescriptor ()

String[] getChildren (String path)

DeviceFoldableState getCurrentFoldableState ()
int getCurrentUser ()

String getDeviceClass ()

long getDeviceDate ()

DeviceDescriptor getDeviceDescriptor ()

TestDeviceState getDeviceState ()

long getDeviceTimeOffset (Date date)

InputStreamSource getEmulatorOutput ()

Process getEmulatorProcess ()

final File getExecuteShellCommandLog ()

Tümünü içeren günlük executeShellCommand(String) günlükleri.

long getExternalStoreFreeSpace ()

String getFastbootPath ()

String getFastbootProductType ()

String getFastbootProductVariant ()

String getFastbootSerialNumber ()

String getFastbootVariable (String variableName)

String getFastbootVersion ()

IFileEntry getFileEntry (String path)

IFileEntry getFileEntry (FileListingService.FileEntry entry)

Resmi olmayan yardımcı bir olsun FileEntry kök olmayan yoldan.

getFoldableStates ()
IDevice getIDevice ()

getInstalledPackageNames ()

long getIntProperty (String name, long defaultValue)

String getIpAddress ()

KeyguardControllerState getKeyguardState ()

long getLastExpectedRebootTimeMillis ()

int getLaunchApiLevel ()

InputStreamSource getLogcat ()

InputStreamSource getLogcat (int maxBytes)

InputStreamSource getLogcatDump ()

InputStreamSource getLogcatSince (long date)

String getMacAddress ()

getMainlineModuleInfo ()

int getMaxNumberOfRunningUsersSupported ()
int getMaxNumberOfUsersSupported ()

IDeviceStateMonitor getMonitor ()
String getMountPoint (String mountName)

ITestDevice.MountPointInfo getMountPointInfo (String mountpoint)

getMountPointInfo ()

TestDeviceOptions getOptions ()

long getPartitionFreeSpace (String partition)

Integer getPrimaryUserId ()

ProcessInfo getProcessByName (String processName)

String getProcessPid (String process)

String getProductType ()

String getProductVariant ()

String getProperty (String name)

ITestDevice.RecoveryMode getRecoveryMode ()

InputStreamSource getScreenshot (String format)

InputStreamSource getScreenshot (long displayId)

InputStreamSource getScreenshot (String format, boolean rescale)

InputStreamSource getScreenshot ()

String getSerialNumber ()

String getSetting (int userId, String namespace, String key)

String getSetting (String namespace, String key)

String getSimOperator ()

String getSimState ()

getTombstones ()

long getTotalMemory ()

getUninstallablePackageNames ()

boolean getUseFastbootErase ()

int getUserFlags (int userId)

getUserInfos ()

int getUserSerialNumber (int userId)

IManagedTestDevice.DeviceEventResponse handleAllocationEvent (DeviceEvent event)

Bu cihazı yeni bir tahsis durumuna geçirebilecek veya geçirmeyebilecek DeviceEvent'i işleyin.

boolean hasFeature (String feature)

String installPackage (File packageFile, boolean reinstall, String... extraArgs)

String installPackage (File packageFile, boolean reinstall, boolean grantPermissions, String... extraArgs)

String installPackageForUser (File packageFile, boolean reinstall, int userId, String... extraArgs)

String installPackageForUser (File packageFile, boolean reinstall, boolean grantPermissions, int userId, String... extraArgs)

boolean isAdbRoot ()

boolean isAdbTcp ()
boolean isAppEnumerationSupported ()

boolean isDeviceEncrypted ()

boolean isDirectory (String path)

boolean isEnableAdbRoot ()
boolean isEncryptionSupported ()

boolean isExecutable (String fullPath)

boolean isFastbootEnabled ()

boolean isHeadless ()

boolean isMultiUserSupported ()

boolean isPackageInstalled (String packageName, String userId)

boolean isPackageInstalled (String packageName)

boolean isRuntimePermissionSupported ()

boolean isStateBootloaderOrFastbootd ()

boolean isUserRunning (int userId)

boolean isUserSecondary (int userId)

boolean isWifiEnabled ()

listDisplayIds ()

listUsers ()

boolean logBugreport (String dataName, ITestLogger listener)

void logOnDevice (String tag, Log.LogLevel level, String format, Object... args)

void nonBlockingReboot ()

void postAdbRootAction ()

Aygıtın adb kökünden sonra ve aygıt tekrar çevrimiçi olmadan önce yapılması gereken bazı özel işlemler gerekiyorsa geçersiz kılın.

void postAdbUnrootAction ()

Adb unroot işleminden sonra ve cihaz tekrar çevrimiçi olmadan önce cihazın bazı özel işlemlere ihtiyacı varsa geçersiz kılın.

void postBootSetup ()

void postInvocationTearDown (Throwable exception)

void preInvocationSetup (IBuildInfo info, MultiMap<String, String> attributes)

boolean pullDir (String deviceFilePath, File localDir)

boolean pullFile (String remoteFilePath, File localFile)

File pullFile (String remoteFilePath)

String pullFileContents (String remoteFilePath)

File pullFileFromExternal (String remoteFilePath)

boolean pushDir (File localFileDir, String deviceFilePath, excludedDirectories) pushDir (File localFileDir, String deviceFilePath, excludedDirectories)

boolean pushDir (File localFileDir, String deviceFilePath)

boolean pushFile (File localFile, String remoteFilePath)

boolean pushString (String contents, String remoteFilePath)

void reboot (String reason)

void reboot ()

void rebootIntoBootloader ()

void rebootIntoFastbootd ()

void rebootIntoRecovery ()

void rebootIntoSideload ()

void rebootIntoSideload (boolean autoReboot)

void rebootUntilOnline ()
void rebootUntilOnline (String reason)

void rebootUserspace ()
void rebootUserspaceUntilOnline ()
void recoverDevice ()

Cihaz iletişimini kurtarmaya çalışır.

void remountSystemWritable ()

void remountVendorWritable ()

boolean removeAdmin (String componentName, int userId)

void removeOwners ()

boolean removeUser (int userId)

void resetContentProviderSetup ()

Yeniden tetiklemek için içerik sağlayıcı kurulumu bayrağını sıfırlayın.

boolean runInstrumentationTests (IRemoteAndroidTestRunner runner, ITestLifeCycleReceiver... listeners)

boolean runInstrumentationTests (IRemoteAndroidTestRunner runner, listeners) runInstrumentationTests (IRemoteAndroidTestRunner runner, listeners)

boolean runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner, int userId, ITestLifeCycleReceiver... listeners)

boolean runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner, int userId, listeners) runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner, int userId, listeners)

void setConfiguration ( IConfiguration configuration)

Enjekte eder IConfiguration kullanımda.

void setDate (Date date)

boolean setDeviceOwner (String componentName, int userId)

void setDeviceState (TestDeviceState deviceState)

void setEmulatorOutputStream ( SizeLimitedOutputStream output)

Emülatörü için set SizeLimitedOutputStream çıkışı günlüğe

void setEmulatorProcess (Process p)

void setFastbootEnabled (boolean fastbootEnabled)

void setFastbootPath (String fastbootPath)

void setIDevice (IDevice newDevice)

void setOptions (TestDeviceOptions options)

boolean setProperty (String propKey, String propValue)

void setRecovery (IDeviceRecovery recovery)

void setRecoveryMode (ITestDevice.RecoveryMode mode)

void setSetting (String namespace, String key, String value)

void setSetting (int userId, String namespace, String key, String value)

void setUseFastbootErase (boolean useFastbootErase)

void startLogcat ()

boolean startUser (int userId)

boolean startUser (int userId, boolean waitFlag)

void stopEmulatorOutput ()

void stopLogcat ()

boolean stopUser (int userId)

boolean stopUser (int userId, boolean waitFlag, boolean forceFlag)

String switchToAdbTcp ()

boolean switchToAdbUsb ()

boolean switchUser (int userId)

boolean switchUser (int userId, long timeout)

boolean syncFiles (File localFileDir, String deviceFilePath)

Bugreport takeBugreport ()

boolean unencryptDevice ()

String uninstallPackage (String packageName)

String uninstallPackageForUser (String packageName, int userId)

boolean unlockDevice ()

boolean waitForBootComplete (long timeOut)

void waitForDeviceAvailable ()

void waitForDeviceAvailable (long waitTime)

boolean waitForDeviceInRecovery (long waitTime)

boolean waitForDeviceInSideload (long waitTime)

boolean waitForDeviceNotAvailable (long waitTime)

void waitForDeviceOnline ()

void waitForDeviceOnline (long waitTime)

boolean waitForDeviceShell (long waitTime)

Korumalı yöntemler

void checkApiLevelAgainst (String feature, int strictMinLevel)
NativeDevice.RebootDeviceAction createRebootDeviceAction ( NativeDevice.RebootMode rebootMode, String reason)

Bir oluşturma RebootDeviceAction yeniden başlatma eylemi gerçekleştirirken kullanılacak.

void doAdbReboot ( NativeDevice.RebootMode rebootMode, String reason)

Bir adb yeniden başlatma gerçekleştirin.

void ensureRuntimePermissionSupported ()

çalışma zamanı izni desteklenmiyorsa istisna atmak için yardımcı yöntem

InputStreamSource getBugreportInternal ()
File getBugreportzInternal ()

İç Yardımcısı yöntem olarak bugreportz zip dosyasını almak için ERROR(/File) .

IRunUtil getRunUtil ()

Get RunUtil kullanımına örneği.

String internalGetProperty (String propName, String fastbootVar, String description)

Varsayılan olarak ddmlib önbelleğinden bir aygıt özelliği getirin ve aygıtın Fastboot'ta olup olmamasına bağlı olarak "adb shell getprop" veya "fastboot getvar"a geri dönün.

boolean isNewer (File localFile, IFileEntry entry)

Dönüş true yerel dosya uzak dosyadan daha yeniyse.

boolean performDeviceAction (String actionDescription, com.android.tradefed.device.NativeDevice.DeviceAction action, int retryAttempts)

Bu cihazda bir işlem gerçekleştirir.

void postAdbReboot ()

Yeniden başlatmanın ardından gerçekleştirilebilecek olası ekstra eylemler.

void prePostBootSetup ()

Her cihaz türünün (AndroidNativeDevice, TestDevice) belirli önyükleme sonrası kurulum için bu yöntemi geçersiz kılmasına izin verir.

void setClock (Clock clock)

Kullanılacak Saat örneğini ayarlayın.

void setLogStartDelay (int delay)

Çevrimiçi bir cihaz için logcat yakalamaya başlamadan önce beklenecek süreyi ms cinsinden ayarlar.

void waitForDeviceNotAvailable (String operationDesc, long time)

sabitler

GEÇERSİZ KULLANICI KİMLİĞİ

public static final int INVALID_USER_ID

Geçersiz/bulunamayan herhangi bir kullanıcı kimliği için döndürülen değer: UserHandle -10000 değerini tanımladı

Sabit Değer: -10000 (0xffffd8f0)

MAX_HOST_DEVICE_TIME_OFFSET

protected static final long MAX_HOST_DEVICE_TIME_OFFSET

Sabit Değer: 5000 (0x0000000000001388)

MAX_RETRY_ATTEMPTS

protected static final int MAX_RETRY_ATTEMPTS

gerçekleştirmek için varsayılan komut yeniden deneme sayısı

Sabit Değer: 2 (0x00000002)

Alanlar

HAFIZA KARTI

protected static final String SD_CARD

STORAGE_EMULATED

protected static final String STORAGE_EMULATED

mSeçenekler

protected TestDeviceOptions mOptions

mStateMonitor

protected final IDeviceStateMonitor mStateMonitor

Kamu inşaatçıları

Yerel Cihaz

public NativeDevice (IDevice device, 
                IDeviceStateMonitor stateMonitor, 
                IDeviceMonitor allocationMonitor)

Bir oluşturur TestDevice .

parametreler
device IDevice : ilişkili IDevice

stateMonitor IDeviceStateMonitor : IDeviceStateMonitor kullanımına mekanizma

allocationMonitor IDeviceMonitor : IDeviceMonitor tahsis durum değişiklikleri bildirmek. boş olabilir

Genel yöntemler

checkApiLevelAgainstNextRelease

public boolean checkApiLevelAgainstNextRelease (int strictMinLevel)

parametreler
strictMinLevel int

İadeler
boolean

atar
DeviceNotAvailableException

kontrolBağlantı

public boolean checkConnectivity ()

İadeler
boolean

atar
DeviceNotAvailableException

clearErrorDialogs

public boolean clearErrorDialogs ()

İadeler
boolean

atar
DeviceNotAvailableException

clearSonBağlıWifiAğ

public void clearLastConnectedWifiNetwork ()

temizleLogcat

public void clearLogcat ()

connectToWifiNetwork

public boolean connectToWifiNetwork (String wifiSsid, 
                String wifiPsk)

parametreler
wifiSsid String

wifiPsk String

İadeler
boolean

atar
DeviceNotAvailableException

connectToWifiNetwork

public boolean connectToWifiNetwork (String wifiSsid, 
                String wifiPsk, 
                boolean scanSsid)

parametreler
wifiSsid String

wifiPsk String

scanSsid boolean

İadeler
boolean

atar
DeviceNotAvailableException

connectToWifiNetworkIfNeeded

public boolean connectToWifiNetworkIfNeeded (String wifiSsid, 
                String wifiPsk, 
                boolean scanSsid)

parametreler
wifiSsid String

wifiPsk String

scanSsid boolean

İadeler
boolean

atar
DeviceNotAvailableException

connectToWifiNetworkIfNeeded

public boolean connectToWifiNetworkIfNeeded (String wifiSsid, 
                String wifiPsk)

parametreler
wifiSsid String

wifiPsk String

İadeler
boolean

atar
DeviceNotAvailableException

Kullanıcı oluştur

public int createUser (String name, 
                boolean guest, 
                boolean ephemeral)

parametreler
name String

guest boolean

ephemeral boolean

İadeler
int

atar
DeviceNotAvailableException

Kullanıcı oluştur

public int createUser (String name)

parametreler
name String

İadeler
int

atar
DeviceNotAvailableException

oluşturKullanıcıNoThrow

public int createUserNoThrow (String name)

parametreler
name String

İadeler
int

atar
DeviceNotAvailableException

dosyayı sil

public void deleteFile (String deviceFilePath)

parametreler
deviceFilePath String

atar
DeviceNotAvailableException

deviceSoftYeniden başlatıldı

public boolean deviceSoftRestarted (ProcessInfo prevSystemServerProcess)

parametreler
prevSystemServerProcess ProcessInfo

İadeler
boolean

atar
DeviceNotAvailableException

deviceSoftRestartedSince

public boolean deviceSoftRestartedSince (long utcEpochTime, 
                TimeUnit timeUnit)

parametreler
utcEpochTime long

timeUnit TimeUnit

İadeler
boolean

atar
DeviceNotAvailableException

AdbRoot'u devre dışı bırak

public boolean disableAdbRoot ()

İadeler
boolean

atar
DeviceNotAvailableException

devre dışı bırakKeyguard

public void disableKeyguard ()

atar
DeviceNotAvailableException

devre dışı bırakAğMonitor

public boolean disableNetworkMonitor ()

İadeler
boolean

atar
DeviceNotAvailableException

WiFi'den bağlantıyı kes

public boolean disconnectFromWifi ()

İadeler
boolean

atar
DeviceNotAvailableException

doFileExist

public boolean doesFileExist (String deviceFilePath)

parametreler
deviceFilePath String

İadeler
boolean

atar
DeviceNotAvailableException

çöp yığını

public File dumpHeap (String process, 
                String devicePath)

parametreler
process String

devicePath String

İadeler
File

atar
DeviceNotAvailableException

etkinleştirmekAdbRoot

public boolean enableAdbRoot ()

İadeler
boolean

atar
DeviceNotAvailableException

enableNetworkMonitor

public boolean enableNetworkMonitor ()

İadeler
boolean

atar
DeviceNotAvailableException

şifrelemekCihaz

public boolean encryptDevice (boolean inplace)

parametreler
inplace boolean

İadeler
boolean

atar
DeviceNotAvailableException

yürütmekAdbKomut

public String executeAdbCommand (long timeout, 
                String... cmdArgs)

parametreler
timeout long

cmdArgs String

İadeler
String

atar
DeviceNotAvailableException

yürütmekAdbKomut

public String executeAdbCommand (String... cmdArgs)

parametreler
cmdArgs String

İadeler
String

atar
DeviceNotAvailableException

yürütmekFastbootKomut

public CommandResult executeFastbootCommand (String... cmdArgs)

parametreler
cmdArgs String

İadeler
CommandResult

atar
DeviceNotAvailableException

yürütmekFastbootKomut

public CommandResult executeFastbootCommand (long timeout, 
                String... cmdArgs)

parametreler
timeout long

cmdArgs String

İadeler
CommandResult

atar
DeviceNotAvailableException

yürütmekLongFastbootKomut

public CommandResult executeLongFastbootCommand (String... cmdArgs)

parametreler
cmdArgs String

İadeler
CommandResult

atar
DeviceNotAvailableException

yürütmekShellKomut

public String executeShellCommand (String command)

parametreler
command String

İadeler
String

atar
DeviceNotAvailableException

yürütmekShellKomut

public void executeShellCommand (String command, 
                IShellOutputReceiver receiver, 
                long maxTimeToOutputShellResponse, 
                TimeUnit timeUnit, 
                int retryAttempts)

parametreler
command String

receiver IShellOutputReceiver

maxTimeToOutputShellResponse long

timeUnit TimeUnit

retryAttempts int

atar
DeviceNotAvailableException

yürütmekShellKomut

public void executeShellCommand (String command, 
                IShellOutputReceiver receiver, 
                long maxTimeoutForCommand, 
                long maxTimeToOutputShellResponse, 
                TimeUnit timeUnit, 
                int retryAttempts)

parametreler
command String

receiver IShellOutputReceiver

maxTimeoutForCommand long

maxTimeToOutputShellResponse long

timeUnit TimeUnit

retryAttempts int

atar
DeviceNotAvailableException

yürütmekShellKomut

public void executeShellCommand (String command, 
                IShellOutputReceiver receiver)

parametreler
command String

receiver IShellOutputReceiver

atar
DeviceNotAvailableException

yürütmekShellV2Komut

public CommandResult executeShellV2Command (String cmd)

parametreler
cmd String

İadeler
CommandResult

atar
DeviceNotAvailableException

yürütmekShellV2Komut

public CommandResult executeShellV2Command (String cmd, 
                OutputStream pipeToOutput)

parametreler
cmd String

pipeToOutput OutputStream

İadeler
CommandResult

atar
DeviceNotAvailableException

yürütmekShellV2Komut

public CommandResult executeShellV2Command (String cmd, 
                File pipeAsInput)

parametreler
cmd String

pipeAsInput File

İadeler
CommandResult

atar
DeviceNotAvailableException

yürütmekShellV2Komut

public CommandResult executeShellV2Command (String cmd, 
                long maxTimeoutForCommand, 
                TimeUnit timeUnit, 
                int retryAttempts)

parametreler
cmd String

maxTimeoutForCommand long

timeUnit TimeUnit

retryAttempts int

İadeler
CommandResult

atar
DeviceNotAvailableException

yürütmekShellV2Komut

public CommandResult executeShellV2Command (String cmd, 
                long maxTimeoutForCommand, 
                TimeUnit timeUnit)

parametreler
cmd String

maxTimeoutForCommand long

timeUnit TimeUnit

İadeler
CommandResult

atar
DeviceNotAvailableException

yürütmekShellV2Komut

public CommandResult executeShellV2Command (String cmd, 
                File pipeAsInput, 
                OutputStream pipeToOutput, 
                long maxTimeoutForCommand, 
                TimeUnit timeUnit, 
                int retryAttempts)

parametreler
cmd String

pipeAsInput File

pipeToOutput OutputStream

maxTimeoutForCommand long

timeUnit TimeUnit

retryAttempts int

İadeler
CommandResult

atar
DeviceNotAvailableException

yürütmekShellV2Komut

public CommandResult executeShellV2Command (String cmd, 
                File pipeAsInput, 
                OutputStream pipeToOutput, 
                OutputStream pipeToError, 
                long maxTimeoutForCommand, 
                TimeUnit timeUnit, 
                int retryAttempts)

parametreler
cmd String

pipeAsInput File

pipeToOutput OutputStream

pipeToError OutputStream

maxTimeoutForCommand long

timeUnit TimeUnit

retryAttempts int

İadeler
CommandResult

atar
DeviceNotAvailableException

fastbootWipePartition

public CommandResult fastbootWipePartition (String partition)

parametreler
partition String

İadeler
CommandResult

atar
DeviceNotAvailableException

getActiveApex'ler

public  getActiveApexes ()

İadeler

atar
DeviceNotAvailableException

getAllSettings

public  getAllSettings (String namespace)

parametreler
namespace String

İadeler

atar
DeviceNotAvailableException

getAllocationState

public DeviceAllocationState getAllocationState ()

İadeler
DeviceAllocationState

getAndroidId

public String getAndroidId (int userId)

parametreler
userId int

İadeler
String

atar
DeviceNotAvailableException

getAndroidIds

public  getAndroidIds ()

İadeler

atar
DeviceNotAvailableException

getApiLevel

public int getApiLevel ()

İadeler
int

atar
DeviceNotAvailableException

getAppPackageInfo

public PackageInfo getAppPackageInfo (String packageName)

parametreler
packageName String

İadeler
PackageInfo

atar
DeviceNotAvailableException

getAppPackageInfos

public  getAppPackageInfos ()

İadeler

atar
DeviceNotAvailableException

getBasebandVersion

public String getBasebandVersion ()

İadeler
String

atar
DeviceNotAvailableException

pil almak

public Integer getBattery ()

İadeler
Integer

getBooleanProperty

public boolean getBooleanProperty (String name, 
                boolean defaultValue)

parametreler
name String

defaultValue boolean

İadeler
boolean

atar
DeviceNotAvailableException

getBootHistory

public  getBootHistory ()

İadeler

atar
DeviceNotAvailableException

getBootHistorySince

public  getBootHistorySince (long utcEpochTime, 
                TimeUnit timeUnit)

parametreler
utcEpochTime long

timeUnit TimeUnit

İadeler

atar
DeviceNotAvailableException

getBootloaderVersion

public String getBootloaderVersion ()

İadeler
String

atar
DeviceNotAvailableException

getBugreport

public InputStreamSource getBugreport ()

İadeler
InputStreamSource

getBugreportz

public InputStreamSource getBugreportz ()

İadeler
InputStreamSource

getBuildAlias

public String getBuildAlias ()

İadeler
String

atar
DeviceNotAvailableException

getBuildFlavor

public String getBuildFlavor ()

İadeler
String

atar
DeviceNotAvailableException

getBuildId

public String getBuildId ()

İadeler
String

atar
DeviceNotAvailableException

getBuildSigningKeys

public String getBuildSigningKeys ()

İadeler
String

atar
DeviceNotAvailableException

getCachedDeviceDescriptor

public DeviceDescriptor getCachedDeviceDescriptor ()

İadeler
DeviceDescriptor

getChildren

public String[] getChildren (String path)

parametreler
path String

İadeler
String[]

atar
DeviceNotAvailableException

getCurrentFoldableState

public DeviceFoldableState getCurrentFoldableState ()

İadeler
DeviceFoldableState

atar
DeviceNotAvailableException

getCurrentKullanıcı

public int getCurrentUser ()

İadeler
int

atar
DeviceNotAvailableException

getDeviceClass

public String getDeviceClass ()

İadeler
String

getDeviceDate

public long getDeviceDate ()

İadeler
long

atar
DeviceNotAvailableException

getDeviceDescriptor

public DeviceDescriptor getDeviceDescriptor ()

İadeler
DeviceDescriptor

getDeviceState

public TestDeviceState getDeviceState ()

İadeler
TestDeviceState

getDeviceTimeOffset

public long getDeviceTimeOffset (Date date)

parametreler
date Date

İadeler
long

atar
DeviceNotAvailableException

getEmulatorOutput

public InputStreamSource getEmulatorOutput ()

İadeler
InputStreamSource

getEmulatorProcess

public Process getEmulatorProcess ()

İadeler
Process

getExecuteShellKomut Günlüğü

public final File getExecuteShellCommandLog ()

Tümünü içeren günlük executeShellCommand(String) günlükleri.

İadeler
File

getExternalStoreFreeSpace

public long getExternalStoreFreeSpace ()

İadeler
long

atar
DeviceNotAvailableException

getFastbootYol

public String getFastbootPath ()

İadeler
String

getFastbootÜrün Türü

public String getFastbootProductType ()

İadeler
String

atar
DeviceNotAvailableException

getFastbootProductVaryant

public String getFastbootProductVariant ()

İadeler
String

atar
DeviceNotAvailableException

getFastbootSeri Numarası

public String getFastbootSerialNumber ()

İadeler
String

getFastbootDeğişken

public String getFastbootVariable (String variableName)

parametreler
variableName String

İadeler
String

atar
DeviceNotAvailableException

getFastbootVersion

public String getFastbootVersion ()

İadeler
String

getFileEntry

public IFileEntry getFileEntry (String path)

parametreler
path String

İadeler
IFileEntry

atar
DeviceNotAvailableException

getFileEntry

public IFileEntry getFileEntry (FileListingService.FileEntry entry)

Resmi olmayan yardımcı bir olsun FileEntry kök olmayan yoldan. DÜZELTME: Herhangi bir yoldan kullanılabilir olması için FileEntry sistemini yeniden düzenleyin. (hatta kök olmayan).

parametreler
entry FileListingService.FileEntry : Bir FileEntry mutlaka kök Ddmlib gereğine göre.

İadeler
IFileEntry Bir FileEntryWrapper FileEntry temsil etmektedir.

atar
DeviceNotAvailableException

getFoldableStates

public  getFoldableStates ()

İadeler

atar
DeviceNotAvailableException

getIDevice

public IDevice getIDevice ()

İadeler
IDevice

getInstalledPackageNames

public  getInstalledPackageNames ()

İadeler

atar
DeviceNotAvailableException

getIntProperty

public long getIntProperty (String name, 
                long defaultValue)

parametreler
name String

defaultValue long

İadeler
long

atar
DeviceNotAvailableException

getIpAdresi

public String getIpAddress ()

İadeler
String

atar
DeviceNotAvailableException

getKeyguardState

public KeyguardControllerState getKeyguardState ()

İadeler
KeyguardControllerState

atar
DeviceNotAvailableException

getLastExpectedRebootTimeMillis

public long getLastExpectedRebootTimeMillis ()

İadeler
long

getLaunchApiLevel

public int getLaunchApiLevel ()

İadeler
int

atar
DeviceNotAvailableException

getLogcat

public InputStreamSource getLogcat ()

İadeler
InputStreamSource

getLogcat

public InputStreamSource getLogcat (int maxBytes)

parametreler
maxBytes int

İadeler
InputStreamSource

getLogcatDump

public InputStreamSource getLogcatDump ()

İadeler
InputStreamSource

getLogcatSince

public InputStreamSource getLogcatSince (long date)

parametreler
date long

İadeler
InputStreamSource

getMacAdresi

public String getMacAddress ()

İadeler
String

getMainlineModuleInfo

public  getMainlineModuleInfo ()

İadeler

atar
DeviceNotAvailableException

getMaxNumberOfRunningUsersDesteklenen

public int getMaxNumberOfRunningUsersSupported ()

İadeler
int

atar
DeviceNotAvailableException

getMaxNumberOfUsersDesteklenen

public int getMaxNumberOfUsersSupported ()

İadeler
int

atar
DeviceNotAvailableException

getMonitor

public IDeviceStateMonitor getMonitor ()

İadeler
IDeviceStateMonitor

getMountPoint

public String getMountPoint (String mountName)

parametreler
mountName String

İadeler
String

getMountPointInfo

public ITestDevice.MountPointInfo getMountPointInfo (String mountpoint)

parametreler
mountpoint String

İadeler
ITestDevice.MountPointInfo

atar
DeviceNotAvailableException

getMountPointInfo

public  getMountPointInfo ()

İadeler

atar
DeviceNotAvailableException

getOptions

public TestDeviceOptions getOptions ()

İadeler
TestDeviceOptions

getPartitionFreeSpace

public long getPartitionFreeSpace (String partition)

parametreler
partition String

İadeler
long

atar
DeviceNotAvailableException

getPrimaryUserId

public Integer getPrimaryUserId ()

İadeler
Integer

atar
DeviceNotAvailableException

getProcessByName

public ProcessInfo getProcessByName (String processName)

parametreler
processName String

İadeler
ProcessInfo

atar
DeviceNotAvailableException

getProcessPid

public String getProcessPid (String process)

parametreler
process String

İadeler
String

atar
DeviceNotAvailableException

getProductType

public String getProductType ()

İadeler
String

atar
DeviceNotAvailableException

getProductVaryant

public String getProductVariant ()

İadeler
String

atar
DeviceNotAvailableException

getProperty

public String getProperty (String name)

parametreler
name String

İadeler
String

atar
DeviceNotAvailableException

GetRecoveryMode

public ITestDevice.RecoveryMode getRecoveryMode ()

İadeler
ITestDevice.RecoveryMode

Ekran görüntüsü al

public InputStreamSource getScreenshot (String format)

parametreler
format String

İadeler
InputStreamSource

atar
DeviceNotAvailableException

Ekran görüntüsü al

public InputStreamSource getScreenshot (long displayId)

parametreler
displayId long

İadeler
InputStreamSource

atar
DeviceNotAvailableException

Ekran görüntüsü al

public InputStreamSource getScreenshot (String format, 
                boolean rescale)

parametreler
format String

rescale boolean

İadeler
InputStreamSource

atar
DeviceNotAvailableException

Ekran görüntüsü al

public InputStreamSource getScreenshot ()

İadeler
InputStreamSource

atar
DeviceNotAvailableException

getSeri Numarası

public String getSerialNumber ()

İadeler
String

getAyar

public String getSetting (int userId, 
                String namespace, 
                String key)

parametreler
userId int

namespace String

key String

İadeler
String

atar
DeviceNotAvailableException

getAyar

public String getSetting (String namespace, 
                String key)

parametreler
namespace String

key String

İadeler
String

atar
DeviceNotAvailableException

getSimOperator

public String getSimOperator ()

İadeler
String

getSimState

public String getSimState ()

İadeler
String

mezar taşlarını al

public  getTombstones ()

İadeler

atar
DeviceNotAvailableException

getTotalMemory

public long getTotalMemory ()

İadeler
long

getUninstallablePackageNames

public  getUninstallablePackageNames ()

İadeler

atar
DeviceNotAvailableException

getUseFastbootSil

public boolean getUseFastbootErase ()

İadeler
boolean

getUserFlags

public int getUserFlags (int userId)

parametreler
userId int

İadeler
int

atar
DeviceNotAvailableException

getUserInfos

public  getUserInfos ()

İadeler

atar
DeviceNotAvailableException

getKullanıcıSeriSayısı

public int getUserSerialNumber (int userId)

parametreler
userId int

İadeler
int

atar
DeviceNotAvailableException

handleAllocationEvent

public IManagedTestDevice.DeviceEventResponse handleAllocationEvent (DeviceEvent event)

Bu cihazı yeni bir tahsis durumuna geçirebilecek veya geçirmeyebilecek DeviceEvent'i işleyin.

parametreler
event DeviceEvent

İadeler
IManagedTestDevice.DeviceEventResponse

hasFeature

public boolean hasFeature (String feature)

parametreler
feature String

İadeler
boolean

atar
DeviceNotAvailableException

kurulum paketi

public String installPackage (File packageFile, 
                boolean reinstall, 
                String... extraArgs)

parametreler
packageFile File

reinstall boolean

extraArgs String

İadeler
String

atar
DeviceNotAvailableException

kurulum paketi

public String installPackage (File packageFile, 
                boolean reinstall, 
                boolean grantPermissions, 
                String... extraArgs)

parametreler
packageFile File

reinstall boolean

grantPermissions boolean

extraArgs String

İadeler
String

atar
DeviceNotAvailableException

Kullanıcı İçin Paket Yükle

public String installPackageForUser (File packageFile, 
                boolean reinstall, 
                int userId, 
                String... extraArgs)

parametreler
packageFile File

reinstall boolean

userId int

extraArgs String

İadeler
String

atar
DeviceNotAvailableException

Kullanıcı İçin Paket Yükle

public String installPackageForUser (File packageFile, 
                boolean reinstall, 
                boolean grantPermissions, 
                int userId, 
                String... extraArgs)

parametreler
packageFile File

reinstall boolean

grantPermissions boolean

userId int

extraArgs String

İadeler
String

atar
DeviceNotAvailableException

isAdbRoot

public boolean isAdbRoot ()

İadeler
boolean

atar
DeviceNotAvailableException

isAdbTcp

public boolean isAdbTcp ()

İadeler
boolean

isAppEnumerationSupported

public boolean isAppEnumerationSupported ()

İadeler
boolean

atar
DeviceNotAvailableException

isDeviceŞifreli

public boolean isDeviceEncrypted ()

İadeler
boolean

atar
DeviceNotAvailableException

isDirectory

public boolean isDirectory (String path)

parametreler
path String

İadeler
boolean

atar
DeviceNotAvailableException

isEnableAdbRoot

public boolean isEnableAdbRoot ()

İadeler
boolean true adb kök cihazda etkinleştirilmiş olmalıdır eğer

ŞifrelemeSupported

public boolean isEncryptionSupported ()

İadeler
boolean

atar
DeviceNotAvailableException

Yürütülebilir

public boolean isExecutable (String fullPath)

parametreler
fullPath String

İadeler
boolean

atar
DeviceNotAvailableException

isFastbootEnabled

public boolean isFastbootEnabled ()

İadeler
boolean

Başsız

public boolean isHeadless ()

İadeler
boolean

atar
DeviceNotAvailableException

isMultiUserSupported

public boolean isMultiUserSupported ()

İadeler
boolean

atar
DeviceNotAvailableException

Paket Yüklendi

public boolean isPackageInstalled (String packageName, 
                String userId)

parametreler
packageName String

userId String

İadeler
boolean

atar
DeviceNotAvailableException

Paket Yüklendi

public boolean isPackageInstalled (String packageName)

parametreler
packageName String

İadeler
boolean

atar
DeviceNotAvailableException

isRuntimePermissionSupported

public boolean isRuntimePermissionSupported ()

İadeler
boolean

atar
DeviceNotAvailableException

isStateBootloaderOrFastbootd

public boolean isStateBootloaderOrFastbootd ()

İadeler
boolean

isKullanıcıRunning

public boolean isUserRunning (int userId)

parametreler
userId int

İadeler
boolean

atar
DeviceNotAvailableException

isKullanıcıİkincil

public boolean isUserSecondary (int userId)

parametreler
userId int

İadeler
boolean

atar
DeviceNotAvailableException

isWifiEnabled

public boolean isWifiEnabled ()

İadeler
boolean

atar
DeviceNotAvailableException

listeGörüntüleme Kimlikleri

public  listDisplayIds ()

İadeler

atar
DeviceNotAvailableException

listeKullanıcılar

public  listUsers ()

İadeler

atar
DeviceNotAvailableException

günlükHata raporu

public boolean logBugreport (String dataName, 
                ITestLogger listener)

parametreler
dataName String

listener ITestLogger

İadeler
boolean

logOnDevice

public void logOnDevice (String tag, 
                Log.LogLevel level, 
                String format, 
                Object... args)

parametreler
tag String

level Log.LogLevel

format String

args Object

EngellemeyenYeniden Başlatma

public void nonBlockingReboot ()

atar
DeviceNotAvailableException

postAdbRootAction

public void postAdbRootAction ()

Aygıtın adb kökünden sonra ve aygıt tekrar çevrimiçi olmadan önce yapılması gereken bazı özel eylemler gerekiyorsa geçersiz kılın. Varsayılan uygulama, herhangi bir ek eylemi içermez. adb root'un bu aşamada etkinleştirilmesi garanti edilmez.

atar
DeviceNotAvailableException

postAdbUnrootAction

public void postAdbUnrootAction ()

Adb unroot işleminden sonra ve cihaz tekrar çevrimiçi olmadan önce cihazın bazı özel işlemlere ihtiyacı varsa geçersiz kılın. Varsayılan uygulama, herhangi bir ek eylem içermez. adb root'un bu aşamada devre dışı bırakılması garanti edilmez.

atar
DeviceNotAvailableException

postBootSetup

public void postBootSetup ()

atar
DeviceNotAvailableException

postInceptionTearDown

public void postInvocationTearDown (Throwable exception)

parametreler
exception Throwable

ön Çağırma Kurulumu

public void preInvocationSetup (IBuildInfo info, 
                MultiMap<String, String> attributes)

parametreler
info IBuildInfo

attributes MultiMap

atar
DeviceNotAvailableException
TargetSetupError

pullDir

public boolean pullDir (String deviceFilePath, 
                File localDir)

parametreler
deviceFilePath String

localDir File

İadeler
boolean

atar
DeviceNotAvailableException

çekme dosyası

public boolean pullFile (String remoteFilePath, 
                File localFile)

parametreler
remoteFilePath String

localFile File

İadeler
boolean

atar
DeviceNotAvailableException

çekme dosyası

public File pullFile (String remoteFilePath)

parametreler
remoteFilePath String

İadeler
File

atar
DeviceNotAvailableException

pullFileContents

public String pullFileContents (String remoteFilePath)

parametreler
remoteFilePath String

İadeler
String

atar
DeviceNotAvailableException

pullFileFromExternal

public File pullFileFromExternal (String remoteFilePath)

parametreler
remoteFilePath String

İadeler
File

atar
DeviceNotAvailableException

pushDir

public boolean pushDir (File localFileDir, 
                String deviceFilePath, 
                 excludedDirectories)

parametreler
localFileDir File

deviceFilePath String

excludedDirectories

İadeler
boolean

atar
DeviceNotAvailableException

pushDir

public boolean pushDir (File localFileDir, 
                String deviceFilePath)

parametreler
localFileDir File

deviceFilePath String

İadeler
boolean

atar
DeviceNotAvailableException

pushFile

public boolean pushFile (File localFile, 
                String remoteFilePath)

parametreler
localFile File

remoteFilePath String

İadeler
boolean

atar
DeviceNotAvailableException

pushString

public boolean pushString (String contents, 
                String remoteFilePath)

parametreler
contents String

remoteFilePath String

İadeler
boolean

atar
DeviceNotAvailableException

yeniden başlat

public void reboot (String reason)

parametreler
reason String

atar
DeviceNotAvailableException

yeniden başlat

public void reboot ()

atar
DeviceNotAvailableException

yeniden başlatIntoBootloader

public void rebootIntoBootloader ()

atar
DeviceNotAvailableException

yeniden başlatIntoFastbootd

public void rebootIntoFastbootd ()

atar
DeviceNotAvailableException

yeniden başlatmaIntoRecovery

public void rebootIntoRecovery ()

atar
DeviceNotAvailableException

yeniden başlatIntoSideload

public void rebootIntoSideload ()

atar
DeviceNotAvailableException

yeniden başlatIntoSideload

public void rebootIntoSideload (boolean autoReboot)

parametreler
autoReboot boolean

atar
DeviceNotAvailableException

yeniden başlatUntilOnline

public void rebootUntilOnline ()

atar
DeviceNotAvailableException

yeniden başlatUntilOnline

public void rebootUntilOnline (String reason)

parametreler
reason String

atar
DeviceNotAvailableException

yeniden başlatmaKullanıcı alanı

public void rebootUserspace ()

atar
DeviceNotAvailableException

yeniden başlatmaKullanıcı AlanıUntilOnline

public void rebootUserspaceUntilOnline ()

atar
DeviceNotAvailableException

kurtarma cihazı

public void recoverDevice ()

Cihaz iletişimini kurtarmaya çalışır.

atar
DeviceNotAvailableException cihaz artık mevcut değilse

remountSystemWritable

public void remountSystemWritable ()

atar
DeviceNotAvailableException

remountSatıcıWritable

public void remountVendorWritable ()

atar
DeviceNotAvailableException

kaldırYönetici

public boolean removeAdmin (String componentName, 
                int userId)

parametreler
componentName String

userId int

İadeler
boolean

atar
DeviceNotAvailableException

Sahipleri kaldır

public void removeOwners ()

atar
DeviceNotAvailableException

Kullanıcıyı kaldır

public boolean removeUser (int userId)

parametreler
userId int

İadeler
boolean

atar
DeviceNotAvailableException

resetContentProviderKurulum

public void resetContentProviderSetup ()

Yeniden tetiklemek için içerik sağlayıcı kurulumu bayrağını sıfırlayın.

runEnstrümantasyonTestleri

public boolean runInstrumentationTests (IRemoteAndroidTestRunner runner, 
                ITestLifeCycleReceiver... listeners)

parametreler
runner IRemoteAndroidTestRunner

listeners ITestLifeCycleReceiver

İadeler
boolean

atar
DeviceNotAvailableException

runEnstrümantasyonTestleri

public boolean runInstrumentationTests (IRemoteAndroidTestRunner runner, 
                 listeners)

parametreler
runner IRemoteAndroidTestRunner

listeners

İadeler
boolean

atar
DeviceNotAvailableException

runInstrumentationTestsAsUser

public boolean runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner, 
                int userId, 
                ITestLifeCycleReceiver... listeners)

parametreler
runner IRemoteAndroidTestRunner

userId int

listeners ITestLifeCycleReceiver

İadeler
boolean

atar
DeviceNotAvailableException

runInstrumentationTestsAsUser

public boolean runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner, 
                int userId, 
                 listeners)

parametreler
runner IRemoteAndroidTestRunner

userId int

listeners

İadeler
boolean

atar
DeviceNotAvailableException

setYapılandırma

public void setConfiguration (IConfiguration configuration)

Enjekte eder IConfiguration kullanımda.

parametreler
configuration IConfiguration

tarih ayarla

public void setDate (Date date)

parametreler
date Date

atar
DeviceNotAvailableException

setCihaz Sahibi

public boolean setDeviceOwner (String componentName, 
                int userId)

parametreler
componentName String

userId int

İadeler
boolean

atar
DeviceNotAvailableException

setDeviceState

public void setDeviceState (TestDeviceState deviceState)

parametreler
deviceState TestDeviceState

setEmulatorOutputStream

public void setEmulatorOutputStream (SizeLimitedOutputStream output)

Emülatörü için set SizeLimitedOutputStream çıkışı günlüğe

parametreler
output SizeLimitedOutputStream : çıkışını günlüğe

setEmulatorProcess

public void setEmulatorProcess (Process p)

parametreler
p Process

setFastbootEnabled

public void setFastbootEnabled (boolean fastbootEnabled)

parametreler
fastbootEnabled boolean

setFastbootPath

public void setFastbootPath (String fastbootPath)

parametreler
fastbootPath String

setIDevice

public void setIDevice (IDevice newDevice)

parametreler
newDevice IDevice

setOptions

public void setOptions (TestDeviceOptions options)

parametreler
options TestDeviceOptions

setÖzellik

public boolean setProperty (String propKey, 
                String propValue)

parametreler
propKey String

propValue String

İadeler
boolean

atar
DeviceNotAvailableException

setKurtarma

public void setRecovery (IDeviceRecovery recovery)

parametreler
recovery IDeviceRecovery

setRecoveryMode

public void setRecoveryMode (ITestDevice.RecoveryMode mode)

parametreler
mode ITestDevice.RecoveryMode

setAyar

public void setSetting (String namespace, 
                String key, 
                String value)

parametreler
namespace String

key String

value String

atar
DeviceNotAvailableException

setAyar

public void setSetting (int userId, 
                String namespace, 
                String key, 
                String value)

parametreler
userId int

namespace String

key String

value String

atar
DeviceNotAvailableException

setUseFastbootSil

public void setUseFastbootErase (boolean useFastbootErase)

parametreler
useFastbootErase boolean

startLogcat

public void startLogcat ()

startUser

public boolean startUser (int userId)

parametreler
userId int

İadeler
boolean

atar
DeviceNotAvailableException

startUser

public boolean startUser (int userId, 
                boolean waitFlag)

parametreler
userId int

waitFlag boolean

İadeler
boolean

atar
DeviceNotAvailableException

stopEmulatorOutput

public void stopEmulatorOutput ()

stopLogcat

public void stopLogcat ()

durdurKullanıcı

public boolean stopUser (int userId)

parametreler
userId int

İadeler
boolean

atar
DeviceNotAvailableException

durdurKullanıcı

public boolean stopUser (int userId, 
                boolean waitFlag, 
                boolean forceFlag)

parametreler
userId int

waitFlag boolean

forceFlag boolean

İadeler
boolean

atar
DeviceNotAvailableException

switchToAdbTcp

public String switchToAdbTcp ()

İadeler
String

atar
DeviceNotAvailableException

SwitchToAdbUsb

public boolean switchToAdbUsb ()

İadeler
boolean

atar
DeviceNotAvailableException

Kullanıcı değiştir

public boolean switchUser (int userId)

parametreler
userId int

İadeler
boolean

atar
DeviceNotAvailableException

Kullanıcı değiştir

public boolean switchUser (int userId, 
                long timeout)

parametreler
userId int

timeout long

İadeler
boolean

atar
DeviceNotAvailableException

senkronizasyon Dosyaları

public boolean syncFiles (File localFileDir, 
                String deviceFilePath)

parametreler
localFileDir File

deviceFilePath String

İadeler
boolean

atar
DeviceNotAvailableException

Hata raporu almak

public Bugreport takeBugreport ()

İadeler
Bugreport

şifresini kaldır

public boolean unencryptDevice ()

İadeler
boolean

atar
DeviceNotAvailableException

Kaldırma Paketi

public String uninstallPackage (String packageName)

parametreler
packageName String

İadeler
String

atar
DeviceNotAvailableException

UninstallPackageForUser

public String uninstallPackageForUser (String packageName, 
                int userId)

parametreler
packageName String

userId int

İadeler
String

atar
DeviceNotAvailableException

cihazın kilidini aç

public boolean unlockDevice ()

İadeler
boolean

atar
DeviceNotAvailableException

waitForBootComplete

public boolean waitForBootComplete (long timeOut)

parametreler
timeOut long

İadeler
boolean

atar
DeviceNotAvailableException

waitForDeviceMevcut

public void waitForDeviceAvailable ()

atar
DeviceNotAvailableException

waitForDeviceMevcut

public void waitForDeviceAvailable (long waitTime)

parametreler
waitTime long

atar
DeviceNotAvailableException

bekleForDeviceInRecovery

public boolean waitForDeviceInRecovery (long waitTime)

parametreler
waitTime long

İadeler
boolean

WaitForDeviceInSideload

public boolean waitForDeviceInSideload (long waitTime)

parametreler
waitTime long

İadeler
boolean

waitForDeviceNotAvailable

public boolean waitForDeviceNotAvailable (long waitTime)

parametreler
waitTime long

İadeler
boolean

bekleForDeviceÇevrimiçi

public void waitForDeviceOnline ()

atar
DeviceNotAvailableException

bekleForDeviceÇevrimiçi

public void waitForDeviceOnline (long waitTime)

parametreler
waitTime long

atar
DeviceNotAvailableException

bekleForDeviceShell

public boolean waitForDeviceShell (long waitTime)

parametreler
waitTime long

İadeler
boolean

Korumalı yöntemler

checkApiLevelAgainst

protected void checkApiLevelAgainst (String feature, 
                int strictMinLevel)

parametreler
feature String

strictMinLevel int

createRebootDeviceAction

protected NativeDevice.RebootDeviceAction createRebootDeviceAction (NativeDevice.RebootMode rebootMode, 
                String reason)

Bir oluşturma RebootDeviceAction yeniden başlatma eylemi gerçekleştirirken kullanılacak.

parametreler
rebootMode NativeDevice.RebootMode : Bu yeniden başlatma bir mod.

reason String : Bu yeniden başlatmak için.

İadeler
NativeDevice.RebootDeviceAction oluşturulan RebootDeviceAction .

doAdbReboot

protected void doAdbReboot (NativeDevice.RebootMode rebootMode, 
                String reason)

Bir adb yeniden başlatma gerçekleştirin.

parametreler
rebootMode NativeDevice.RebootMode : Bu yeniden başlatma bir mod.

reason String : Bu yeniden başlatmak için.

atar
DeviceNotAvailableException

garantiRuntimePermissionSupported

protected void ensureRuntimePermissionSupported ()

çalışma zamanı izni desteklenmiyorsa istisna atmak için yardımcı yöntem

atar
DeviceNotAvailableException

getBugreportInternal

protected InputStreamSource getBugreportInternal ()

İadeler
InputStreamSource

getBugreportzInternal

protected File getBugreportzInternal ()

İç Yardımcısı yöntem olarak bugreportz zip dosyasını almak için ERROR(/File) .

İadeler
File

getRunUtil

protected IRunUtil getRunUtil ()

Get RunUtil kullanımına örneği.

İadeler
IRunUtil

dahiliGetProperty

protected String internalGetProperty (String propName, 
                String fastbootVar, 
                String description)

Varsayılan olarak ddmlib önbelleğinden bir aygıt özelliği getirin ve aygıtın Fastboot'ta olup olmamasına bağlı olarak "adb shell getprop" veya "fastboot getvar"a geri dönün.

parametreler
propName String : ADB kabuk getprop` 'tarafından döndürülen gibi cihaz özelliğinin adı

fastbootVar String : sorguya eşdeğer hızlı önyükleme değişkenin adı. eğer null , hızlı önyükleme sorgu teşebbüs edilmeyecektir

description String : değişkenin basit bir açıklaması. İlk harf büyük yazılmalıdır.

İadeler
String Bir dizi, muhtemelen null verilen özelliği değerini ihtiva eden ya da boş,

atar
DeviceNotAvailableException

daha yeni

protected boolean isNewer (File localFile, 
                IFileEntry entry)

Dönüş true yerel dosya uzak dosyadan daha yeniyse. IFileEntry eşit zamanlarda durumunda, dakikaya doğru olma, dosya yeni kabul edilecektir.

parametreler
localFile File

entry IFileEntry

İadeler
boolean

performDeviceAction

protected boolean performDeviceAction (String actionDescription, 
                com.android.tradefed.device.NativeDevice.DeviceAction action, 
                int retryAttempts)

Bu cihazda bir işlem gerçekleştirir. İşlem başarısız olursa cihazı kurtarmayı ve isteğe bağlı olarak komutu yeniden denemeyi dener.

parametreler
actionDescription String : kısa bir etki açıklama yapılması için kullanılır. Yalnızca günlüğe kaydetme amacıyla kullanılır.

action com.android.tradefed.device.NativeDevice.DeviceAction : yapılması gereken hareketleri

retryAttempts int : İşlem başarısız ama kurtarma başarılı olursa yeniden deneme girişimleri eylem için yapmak

İadeler
boolean true ise eylem başarıyla gerçekleştirildi

atar
DeviceNotAvailableException kurtarma girişimi başarısız olursa veya başarı olmadan maksimum deneme yapılırsa

postAdbReboot

protected void postAdbReboot ()

Yeniden başlatmanın ardından gerçekleştirilebilecek olası ekstra eylemler.

atar
DeviceNotAvailableException

PrePostBootKurulumu

protected void prePostBootSetup ()

Her cihaz türünün (AndroidNativeDevice, TestDevice) belirli önyükleme sonrası kurulum için bu yöntemi geçersiz kılmasına izin verir.

atar
DeviceNotAvailableException

saati ayarla

protected void setClock (Clock clock)

Kullanılacak Saat örneğini ayarlayın.

parametreler
clock Clock

setLogStartDelay

protected void setLogStartDelay (int delay)

Çevrimiçi bir cihaz için logcat yakalamaya başlamadan önce beklenecek süreyi ms cinsinden ayarlar.

parametreler
delay int : ms gecikme

waitForDeviceNotAvailable

protected void waitForDeviceNotAvailable (String operationDesc, 
                long time)

parametreler
operationDesc String

time long