Yerel Cihaz

public class NativeDevice
extends Object implements IManagedTestDevice, IConfigurationReceiver

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


ITestDevice Tam yığın olmayan android cihazların varsayılan uygulaması.

Özet

İç içe geçmiş sınıflar

class NativeDevice.AdbAction

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

class NativeDevice.AdbShellAction

class NativeDevice.RebootDeviceAction

Bir cihazı yeniden başlatmak için DeviceAction .

enum NativeDevice.RebootMode

Bir 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ştirmeye yönelik 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 TestDevice oluşturur.

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 executeShellCommand(String) günlüklerini içeren günlük.

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)

Root dışı bir yoldan FileEntry almak için resmi olmayan yardımcı.

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

Cihaz, adb root'tan sonra ve cihaz tekrar çevrimiçi olmadan önce bazı belirli eylemlerin gerçekleştirilmesi gerekiyorsa geçersiz kılın.

void postAdbUnrootAction ()

Adb unroot işleminden sonra ve cihaz tekrar çevrimiçi olmadan önce cihazın bazı belirli eylemlere 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 kurtarma girişimleri.

void remountSystemWritable ()

void remountVendorWritable ()

boolean removeAdmin (String componentName, int userId)

void removeOwners ()

boolean removeUser (int userId)

void resetContentProviderSetup ()

Tekrar tetiklemek için içerik sağlayıcı kurulumunun 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)

Kullanımdaki IConfiguration enjekte eder.

void setDate (Date date)

boolean setDeviceOwner (String componentName, int userId)

void setDeviceState (TestDeviceState deviceState)

void setEmulatorOutputStream ( SizeLimitedOutputStream output)

Emülatör için SizeLimitedOutputStream çıktıyı günlüğe kaydedecek şekilde ayarlayın

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)

Yeniden başlatma eylemi gerçekleştirirken kullanılacak bir RebootDeviceAction oluşturun.

void doAdbReboot ( NativeDevice.RebootMode rebootMode, String reason)

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

void ensureRuntimePermissionSupported ()

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

InputStreamSource getBugreportInternal ()
File getBugreportzInternal ()

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

IRunUtil getRunUtil ()

Kullanılacak RunUtil örneğini edinin.

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 olmadığına bağlı olarak "adb kabuk getprop" veya "fastboot getvar"a geri dönün.

boolean isNewer (File localFile, IFileEntry entry)

Yerel dosya uzak dosyadan daha yeniyse true değerini döndürün.

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

Bu cihazda bir eylem 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ı kurulumu 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ştirmeye yönelik 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 TestDevice oluşturur.

Parametreler
device IDevice : ilişkili IDevice

stateMonitor IDeviceStateMonitor : kullanılacak IDeviceStateMonitor mekanizması

allocationMonitor IDeviceMonitor : Tahsis durumu değişiklikleri hakkında bilgi veren IDeviceMonitor . 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

clearLastConnectedWifiNetwork

public void clearLastConnectedWifiNetwork ()

clearLogcat

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

CreateUserNoThrow

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

Tuş korumasını devre dışı bırak

public void disableKeyguard ()

Atar
DeviceNotAvailableException

NetworkMonitor'u devre dışı bırak

public boolean disableNetworkMonitor ()

İadeler
boolean

Atar
DeviceNotAvailableException

Wifi'den bağlantıyı kes

public boolean disconnectFromWifi ()

İadeler
boolean

Atar
DeviceNotAvailableException

Dosya Var mı

public boolean doesFileExist (String deviceFilePath)

Parametreler
deviceFilePath String

İadeler
boolean

Atar
DeviceNotAvailableException

döküm yığını

public File dumpHeap (String process, 
                String devicePath)

Parametreler
process String

devicePath String

İadeler
File

Atar
DeviceNotAvailableException

AdbRoot'u etkinleştir

public boolean enableAdbRoot ()

İadeler
boolean

Atar
DeviceNotAvailableException

NetworkMonitor'u etkinleştir

public boolean enableNetworkMonitor ()

İadeler
boolean

Atar
DeviceNotAvailableException

şifrelemeCihaz

public boolean encryptDevice (boolean inplace)

Parametreler
inplace boolean

İadeler
boolean

Atar
DeviceNotAvailableException

yürütmeAdbKomutu

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

Parametreler
timeout long

cmdArgs String

İadeler
String

Atar
DeviceNotAvailableException

yürütmeAdbKomutu

public String executeAdbCommand (String... cmdArgs)

Parametreler
cmdArgs String

İadeler
String

Atar
DeviceNotAvailableException

FastbootKomutunu yürüt

public CommandResult executeFastbootCommand (String... cmdArgs)

Parametreler
cmdArgs String

İadeler
CommandResult

Atar
DeviceNotAvailableException

FastbootKomutunu yürüt

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

Parametreler
timeout long

cmdArgs String

İadeler
CommandResult

Atar
DeviceNotAvailableException

yürütmeLongFastbootKomutu

public CommandResult executeLongFastbootCommand (String... cmdArgs)

Parametreler
cmdArgs String

İadeler
CommandResult

Atar
DeviceNotAvailableException

ShellCommand'ı yürüt

public String executeShellCommand (String command)

Parametreler
command String

İadeler
String

Atar
DeviceNotAvailableException

ShellCommand'ı yürüt

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

ShellCommand'ı yürüt

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

ShellCommand'ı yürüt

public void executeShellCommand (String command, 
                IShellOutputReceiver receiver)

Parametreler
command String

receiver IShellOutputReceiver

Atar
DeviceNotAvailableException

ShellV2Command'ı yürüt

public CommandResult executeShellV2Command (String cmd)

Parametreler
cmd String

İadeler
CommandResult

Atar
DeviceNotAvailableException

ShellV2Command'ı yürüt

public CommandResult executeShellV2Command (String cmd, 
                OutputStream pipeToOutput)

Parametreler
cmd String

pipeToOutput OutputStream

İadeler
CommandResult

Atar
DeviceNotAvailableException

ShellV2Command'ı yürüt

public CommandResult executeShellV2Command (String cmd, 
                File pipeAsInput)

Parametreler
cmd String

pipeAsInput File

İadeler
CommandResult

Atar
DeviceNotAvailableException

ShellV2Command'ı yürüt

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

Parametreler
cmd String

maxTimeoutForCommand long

timeUnit TimeUnit

retryAttempts int

İadeler
CommandResult

Atar
DeviceNotAvailableException

ShellV2Command'ı yürüt

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

Parametreler
cmd String

maxTimeoutForCommand long

timeUnit TimeUnit

İadeler
CommandResult

Atar
DeviceNotAvailableException

ShellV2Command'ı yürüt

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

ShellV2Command'ı yürüt

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

AndroidId'yi al

public String getAndroidId (int userId)

Parametreler
userId int

İadeler
String

Atar
DeviceNotAvailableException

AndroidId'leri al

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 al

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

BootloaderVersion'ı al

public String getBootloaderVersion ()

İadeler
String

Atar
DeviceNotAvailableException

Bugreport'u al

public InputStreamSource getBugreport ()

İadeler
InputStreamSource

getBugreportz

public InputStreamSource getBugreportz ()

İadeler
InputStreamSource

getBuildAlias

public String getBuildAlias ()

İadeler
String

Atar
DeviceNotAvailableException

getBuildFlavour

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

Çocukları Al

public String[] getChildren (String path)

Parametreler
path String

İadeler
String[]

Atar
DeviceNotAvailableException

getCurrentFoldableState

public DeviceFoldableState getCurrentFoldableState ()

İadeler
DeviceFoldableState

Atar
DeviceNotAvailableException

getCurrentUser

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

getExecuteShellCommandLog

public final File getExecuteShellCommandLog ()

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

İadeler
File

getExternalStoreFreeSpace

public long getExternalStoreFreeSpace ()

İadeler
long

Atar
DeviceNotAvailableException

getFastbootPath

public String getFastbootPath ()

İadeler
String

getFastbootProductType

public String getFastbootProductType ()

İadeler
String

Atar
DeviceNotAvailableException

getFastbootProductVariant

public String getFastbootProductVariant ()

İadeler
String

Atar
DeviceNotAvailableException

FastbootSerialNumber'ı al

public String getFastbootSerialNumber ()

İadeler
String

getFastbootVariable

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)

Root dışı bir yoldan FileEntry almak için resmi olmayan yardımcı. FIXME: FileEntry sistemini herhangi bir yoldan kullanılabilir hale getirecek şekilde yeniden düzenleyin. (kök olmasa bile).

Parametreler
entry FileListingService.FileEntry : FileEntry Ddmlib'in gerektirdiği şekilde root olması gerekmez.

İadeler
IFileEntry FileEntry'yi temsil eden bir FileEntryWrapper .

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

getIpAddress

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

getMacAddress

public String getMacAddress ()

İadeler
String

getMainlineModuleInfo

public  getMainlineModuleInfo ()

İadeler

Atar
DeviceNotAvailableException

getMaxNumberOfRunningUsersSupported

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

getProductVariant

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

Seri Numarasını al

public String getSerialNumber ()

İadeler
String

getSetting

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

Parametreler
userId int

namespace String

key String

İadeler
String

Atar
DeviceNotAvailableException

getSetting

public String getSetting (String namespace, 
                String key)

Parametreler
namespace String

key String

İadeler
String

Atar
DeviceNotAvailableException

getSimOperatörü

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

getUseFastbootErase

public boolean getUseFastbootErase ()

İadeler
boolean

getUserFlags

public int getUserFlags (int userId)

Parametreler
userId int

İadeler
int

Atar
DeviceNotAvailableException

getUserInfos

public  getUserInfos ()

İadeler

Atar
DeviceNotAvailableException

getUserSerialNumber

public int getUserSerialNumber (int userId)

Parametreler
userId int

İadeler
int

Atar
DeviceNotAvailableException

tanıtıcıAllocationEvent

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

Özelliği var

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

installPackageForUser

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

Parametreler
packageFile File

reinstall boolean

userId int

extraArgs String

İadeler
String

Atar
DeviceNotAvailableException

installPackageForUser

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

isAppEnumerationDesteklenir

public boolean isAppEnumerationSupported ()

İadeler
boolean

Atar
DeviceNotAvailableException

isDeviceEncrypted

public boolean isDeviceEncrypted ()

İadeler
boolean

Atar
DeviceNotAvailableException

isDizin

public boolean isDirectory (String path)

Parametreler
path String

İadeler
boolean

Atar
DeviceNotAvailableException

isEnableAdbRoot

public boolean isEnableAdbRoot ()

İadeler
boolean cihazda adb root'un etkinleştirilmesi gerekiyorsa true

ŞifrelemeDestekleniyor

public boolean isEncryptionSupported ()

İadeler
boolean

Atar
DeviceNotAvailableException

Çalıştırılabilir

public boolean isExecutable (String fullPath)

Parametreler
fullPath String

İadeler
boolean

Atar
DeviceNotAvailableException

Fastboot Etkin

public boolean isFastbootEnabled ()

İadeler
boolean

Başsızdır

public boolean isHeadless ()

İadeler
boolean

Atar
DeviceNotAvailableException

Çoklu Kullanıcı Desteklidir

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

isUserRunning

public boolean isUserRunning (int userId)

Parametreler
userId int

İadeler
boolean

Atar
DeviceNotAvailableException

Kullanıcıİkincil

public boolean isUserSecondary (int userId)

Parametreler
userId int

İadeler
boolean

Atar
DeviceNotAvailableException

WiFiEnabled

public boolean isWifiEnabled ()

İadeler
boolean

Atar
DeviceNotAvailableException

listDisplayIds

public  listDisplayIds ()

İadeler

Atar
DeviceNotAvailableException

listeKullanıcılar

public  listUsers ()

İadeler

Atar
DeviceNotAvailableException

günlükBugreport

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şlat

public void nonBlockingReboot ()

Atar
DeviceNotAvailableException

postAdbRootAction

public void postAdbRootAction ()

Cihaz, adb root'tan sonra ve cihaz tekrar çevrimiçi olmadan önce bazı belirli eylemlerin gerçekleştirilmesi gerekiyorsa geçersiz kılın. Varsayılan uygulama herhangi bir ekleme 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ı belirli eylemlere 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

postInvokasyonTearDown

public void postInvocationTearDown (Throwable exception)

Parametreler
exception Throwable

preInvokasyon Kurulumu

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

Parametreler
info IBuildInfo

attributes MultiMap

Atar
DeviceNotAvailableException
TargetSetupError

çekmeDir

public boolean pullDir (String deviceFilePath, 
                File localDir)

Parametreler
deviceFilePath String

localDir File

İadeler
boolean

Atar
DeviceNotAvailableException

çekmeDosyası

public boolean pullFile (String remoteFilePath, 
                File localFile)

Parametreler
remoteFilePath String

localFile File

İadeler
boolean

Atar
DeviceNotAvailableException

çekmeDosyası

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

itmeDosyası

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

Bootloader'a yeniden başlat

public void rebootIntoBootloader ()

Atar
DeviceNotAvailableException

Fastbootd'a yeniden başlat

public void rebootIntoFastbootd ()

Atar
DeviceNotAvailableException

RecoveryIntoRecovery'yi yeniden başlat

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

Çevrimiçi olana kadar yeniden başlat

public void rebootUntilOnline ()

Atar
DeviceNotAvailableException

Çevrimiçi olana kadar yeniden başlat

public void rebootUntilOnline (String reason)

Parametreler
reason String

Atar
DeviceNotAvailableException

yeniden başlatKullanıcı alanı

public void rebootUserspace ()

Atar
DeviceNotAvailableException

yeniden başlatUserspaceUntilOnline

public void rebootUserspaceUntilOnline ()

Atar
DeviceNotAvailableException

kurtarmaCihaz

public void recoverDevice ()

Cihaz iletişimini kurtarma girişimleri.

Atar
DeviceNotAvailableException cihaz artık mevcut değilse

remountSystemWritable

public void remountSystemWritable ()

Atar
DeviceNotAvailableException

remountVendorYazılabilir

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

resetContentProviderSetup

public void resetContentProviderSetup ()

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

EnstrümantasyonTestlerini Çalıştır

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

Parametreler
runner IRemoteAndroidTestRunner

listeners ITestLifeCycleReceiver

İadeler
boolean

Atar
DeviceNotAvailableException

EnstrümantasyonTestlerini Çalıştır

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)

Kullanımdaki IConfiguration enjekte eder.

Parametreler
configuration IConfiguration

tarih ayarla

public void setDate (Date date)

Parametreler
date Date

Atar
DeviceNotAvailableException

setCihazSahibi

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 SizeLimitedOutputStream çıktıyı günlüğe kaydedecek şekilde ayarlayın

Parametreler
output SizeLimitedOutputStream : çıktıyı günlüğe kaydetmek için

setEmulatorProcess

public void setEmulatorProcess (Process p)

Parametreler
p Process

setFastbootEtkin

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

SetSeçenekler

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

setUseFastbootErase

public void setUseFastbootErase (boolean useFastbootErase)

Parametreler
useFastbootErase boolean

startLogcat

public void startLogcat ()

başlatKullanıcı

public boolean startUser (int userId)

Parametreler
userId int

İadeler
boolean

Atar
DeviceNotAvailableException

başlatKullanıcı

public boolean startUser (int userId, 
                boolean waitFlag)

Parametreler
userId int

waitFlag boolean

İadeler
boolean

Atar
DeviceNotAvailableException

stopEmulatorOutput

public void stopEmulatorOutput ()

stopLogcat

public void stopLogcat ()

kullanıcıyı durdur

public boolean stopUser (int userId)

Parametreler
userId int

İadeler
boolean

Atar
DeviceNotAvailableException

kullanıcıyı durdur

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

senkronizasyonDosyaları

public boolean syncFiles (File localFileDir, 
                String deviceFilePath)

Parametreler
localFileDir File

deviceFilePath String

İadeler
boolean

Atar
DeviceNotAvailableException

Hata raporunu al

public Bugreport takeBugreport ()

İadeler
Bugreport

şifrelemeyi kaldırCihaz

public boolean unencryptDevice ()

İadeler
boolean

Atar
DeviceNotAvailableException

Paketi kaldır

public String uninstallPackage (String packageName)

Parametreler
packageName String

İadeler
String

Atar
DeviceNotAvailableException

PackageForUser'ı kaldır

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

waitForDeviceKullanılabilir

public void waitForDeviceAvailable ()

Atar
DeviceNotAvailableException

waitForDeviceKullanılabilir

public void waitForDeviceAvailable (long waitTime)

Parametreler
waitTime long

Atar
DeviceNotAvailableException

waitForDeviceInRecovery

public boolean waitForDeviceInRecovery (long waitTime)

Parametreler
waitTime long

İadeler
boolean

waitForDeviceInSideload

public boolean waitForDeviceInSideload (long waitTime)

Parametreler
waitTime long

İadeler
boolean

waitForDeviceKullanılamaz

public boolean waitForDeviceNotAvailable (long waitTime)

Parametreler
waitTime long

İadeler
boolean

waitForDeviceOnline

public void waitForDeviceOnline ()

Atar
DeviceNotAvailableException

waitForDeviceOnline

public void waitForDeviceOnline (long waitTime)

Parametreler
waitTime long

Atar
DeviceNotAvailableException

waitForDeviceShell

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)

Yeniden başlatma eylemi gerçekleştirirken kullanılacak bir RebootDeviceAction oluşturun.

Parametreler
rebootMode NativeDevice.RebootMode : bu yeniden başlatmanın bir modu.

reason String : bu yeniden başlatma için.

İadeler
NativeDevice.RebootDeviceAction oluşturulan RebootDeviceAction .

doAdbYeniden Başlat

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

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

Parametreler
rebootMode NativeDevice.RebootMode : bu yeniden başlatmanın bir modu.

reason String : bu yeniden başlatma için.

Atar
DeviceNotAvailableException

sureRuntimePermissionDesteklendi

protected void ensureRuntimePermissionSupported ()

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

Atar
DeviceNotAvailableException

getBugreportInternal

protected InputStreamSource getBugreportInternal ()

İadeler
InputStreamSource

getBugreportzDahili

protected File getBugreportzInternal ()

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

İadeler
File

getRunUtil

protected IRunUtil getRunUtil ()

Kullanılacak RunUtil örneğini edinin.

İ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 olmadığına bağlı olarak "adb kabuk getprop" veya "fastboot getvar"a geri dönün.

Parametreler
propName String : 'adb Shell getprop' tarafından döndürülen aygıt özelliğinin adı

fastbootVar String : Sorgulanacak eşdeğer fastboot değişkeninin adı. null ise fastboot sorgusu yapılmayacaktır

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

İadeler
String Verilen özelliğin değerini içeren, muhtemelen null veya boş bir dize

Atar
DeviceNotAvailableException

daha yeni

protected boolean isNewer (File localFile, 
                IFileEntry entry)

Yerel dosya uzak dosyadan daha yeniyse true değerini döndürün. IFileEntry dakikasına kadar doğru olduğundan, eşit süreler olması durumunda dosya daha 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 eylem gerçekleştirir. Eylem başarısız olursa cihazı kurtarmayı ve isteğe bağlı olarak komutu yeniden denemeyi dener.

Parametreler
actionDescription String : Gerçekleştirilecek eylemin kısa bir açıklaması. Yalnızca günlük kaydı amacıyla kullanılır.

action com.android.tradefed.device.NativeDevice.DeviceAction : gerçekleştirilecek eylem

retryAttempts int : yeniden deneme, başarısız olursa ancak kurtarma başarılı olursa eylem gerçekleştirmeye çalışır

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

Atar
DeviceNotAvailableException kurtarma girişimi başarısız olursa veya maksimum deneme başarısız olursa

postAdbYeniden Başlat

protected void postAdbReboot ()

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

Atar
DeviceNotAvailableException

prePostBootSetup

protected void prePostBootSetup ()

Her cihaz türünün (AndroidNativeDevice, TestDevice) belirli önyükleme sonrası kurulumu 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 cinsinden gecikme

waitForDeviceKullanılamaz

protected void waitForDeviceNotAvailable (String operationDesc, 
                long time)

Parametreler
operationDesc String

time long