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)
Rufen Sie eine Geräteeigenschaft standardmäßig aus dem ddmlib-Cache ab und greifen Sie entweder auf `adb shell getprop` oder `fastboot getvar` zurück, je nachdem, ob sich das Gerät im Fastboot befindet oder nicht.
IDeviceMonitor : die IDeviceMonitor Zuteilungszustandsänderungen zu informieren. Kann null sein
Öffentliche Methoden
checkApiLevelAgainstNextRelease
public boolean checkApiLevelAgainstNextRelease (int strictMinLevel)
Parameter
strictMinLevel
int
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
checkKonnektivität
public boolean checkConnectivity ()
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
clearErrorDialogs
public boolean clearErrorDialogs ()
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
clearLastConnectedWifiNetwork
public void clearLastConnectedWifiNetwork ()
clearLogcat
public void clearLogcat ()
connectToWifiNetwork
public boolean connectToWifiNetwork (String wifiSsid,
String wifiPsk)
Parameter
wifiSsid
String
wifiPsk
String
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
connectToWifiNetwork
public boolean connectToWifiNetwork (String wifiSsid,
String wifiPsk,
boolean scanSsid)
Parameter
wifiSsid
String
wifiPsk
String
scanSsid
boolean
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
connectToWifiNetworkIfNeeded
public boolean connectToWifiNetworkIfNeeded (String wifiSsid,
String wifiPsk,
boolean scanSsid)
Parameter
wifiSsid
String
wifiPsk
String
scanSsid
boolean
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
connectToWifiNetworkIfNeeded
public boolean connectToWifiNetworkIfNeeded (String wifiSsid,
String wifiPsk)
Parameter
wifiSsid
String
wifiPsk
String
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
Benutzer erstellen
public int createUser (String name,
boolean guest,
boolean ephemeral)
Parameter
name
String
guest
boolean
ephemeral
boolean
Kehrt zurück
int
Würfe
DeviceNotAvailableException
Benutzer erstellen
public int createUser (String name)
Parameter
name
String
Kehrt zurück
int
Würfe
DeviceNotAvailableException
createUserNoThrow
public int createUserNoThrow (String name)
Parameter
name
String
Kehrt zurück
int
Würfe
DeviceNotAvailableException
Datei löschen
public void deleteFile (String deviceFilePath)
Parameter
deviceFilePath
String
Würfe
DeviceNotAvailableException
deviceSoftRestarted
public boolean deviceSoftRestarted (ProcessInfo prevSystemServerProcess)
Parameter
prevSystemServerProcess
ProcessInfo
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
deviceSoftRestartedSeit
public boolean deviceSoftRestartedSince (long utcEpochTime,
TimeUnit timeUnit)
Parameter
utcEpochTime
long
timeUnit
TimeUnit
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
deaktivierenAdbRoot
public boolean disableAdbRoot ()
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
deaktivierenKeyguard
public void disableKeyguard ()
Würfe
DeviceNotAvailableException
Netzwerkmonitor deaktivieren
public boolean disableNetworkMonitor ()
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
vom WLAN trennen
public boolean disconnectFromWifi ()
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
doFileExist
public boolean doesFileExist (String deviceFilePath)
Parameter
deviceFilePath
String
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
dumpHeap
public File dumpHeap (String process,
String devicePath)
Parameter
process
String
devicePath
String
Kehrt zurück
File
Würfe
DeviceNotAvailableException
enableAdbRoot
public boolean enableAdbRoot ()
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
enableNetworkMonitor
public boolean enableNetworkMonitor ()
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
encryptGerät
public boolean encryptDevice (boolean inplace)
Parameter
inplace
boolean
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
executeAdbCommand
public String executeAdbCommand (long timeout,
String... cmdArgs)
Parameter
timeout
long
cmdArgs
String
Kehrt zurück
String
Würfe
DeviceNotAvailableException
executeAdbCommand
public String executeAdbCommand (String... cmdArgs)
Parameter
cmdArgs
String
Kehrt zurück
String
Würfe
DeviceNotAvailableException
AusführenFastbootCommand
public CommandResult executeFastbootCommand (String... cmdArgs)
Parameter
cmdArgs
String
Kehrt zurück
CommandResult
Würfe
DeviceNotAvailableException
AusführenFastbootCommand
public CommandResult executeFastbootCommand (long timeout,
String... cmdArgs)
Parameter
timeout
long
cmdArgs
String
Kehrt zurück
CommandResult
Würfe
DeviceNotAvailableException
executeLongFastbootCommand
public CommandResult executeLongFastbootCommand (String... cmdArgs)
Parameter
cmdArgs
String
Kehrt zurück
CommandResult
Würfe
DeviceNotAvailableException
executeShellCommand
public String executeShellCommand (String command)
Parameter
command
String
Kehrt zurück
String
Würfe
DeviceNotAvailableException
executeShellCommand
public void executeShellCommand (String command,
IShellOutputReceiver receiver,
long maxTimeToOutputShellResponse,
TimeUnit timeUnit,
int retryAttempts)
Parameter
command
String
receiver
IShellOutputReceiver
maxTimeToOutputShellResponse
long
timeUnit
TimeUnit
retryAttempts
int
Würfe
DeviceNotAvailableException
executeShellCommand
public void executeShellCommand (String command,
IShellOutputReceiver receiver,
long maxTimeoutForCommand,
long maxTimeToOutputShellResponse,
TimeUnit timeUnit,
int retryAttempts)
Parameter
command
String
receiver
IShellOutputReceiver
maxTimeoutForCommand
long
maxTimeToOutputShellResponse
long
timeUnit
TimeUnit
retryAttempts
int
Würfe
DeviceNotAvailableException
executeShellCommand
public void executeShellCommand (String command,
IShellOutputReceiver receiver)
Parameter
command
String
receiver
IShellOutputReceiver
Würfe
DeviceNotAvailableException
executeShellV2Command
public CommandResult executeShellV2Command (String cmd)
Parameter
cmd
String
Kehrt zurück
CommandResult
Würfe
DeviceNotAvailableException
executeShellV2Command
public CommandResult executeShellV2Command (String cmd,
OutputStream pipeToOutput)
Parameter
cmd
String
pipeToOutput
OutputStream
Kehrt zurück
CommandResult
Würfe
DeviceNotAvailableException
executeShellV2Command
public CommandResult executeShellV2Command (String cmd,
File pipeAsInput)
Parameter
cmd
String
pipeAsInput
File
Kehrt zurück
CommandResult
Würfe
DeviceNotAvailableException
executeShellV2Command
public CommandResult executeShellV2Command (String cmd,
long maxTimeoutForCommand,
TimeUnit timeUnit,
int retryAttempts)
Parameter
cmd
String
maxTimeoutForCommand
long
timeUnit
TimeUnit
retryAttempts
int
Kehrt zurück
CommandResult
Würfe
DeviceNotAvailableException
executeShellV2Command
public CommandResult executeShellV2Command (String cmd,
long maxTimeoutForCommand,
TimeUnit timeUnit)
Parameter
cmd
String
maxTimeoutForCommand
long
timeUnit
TimeUnit
Kehrt zurück
CommandResult
Würfe
DeviceNotAvailableException
executeShellV2Command
public CommandResult executeShellV2Command (String cmd,
File pipeAsInput,
OutputStream pipeToOutput,
long maxTimeoutForCommand,
TimeUnit timeUnit,
int retryAttempts)
Parameter
cmd
String
pipeAsInput
File
pipeToOutput
OutputStream
maxTimeoutForCommand
long
timeUnit
TimeUnit
retryAttempts
int
Kehrt zurück
CommandResult
Würfe
DeviceNotAvailableException
executeShellV2Command
public CommandResult executeShellV2Command (String cmd,
File pipeAsInput,
OutputStream pipeToOutput,
OutputStream pipeToError,
long maxTimeoutForCommand,
TimeUnit timeUnit,
int retryAttempts)
Parameter
cmd
String
pipeAsInput
File
pipeToOutput
OutputStream
pipeToError
OutputStream
maxTimeoutForCommand
long
timeUnit
TimeUnit
retryAttempts
int
Kehrt zurück
CommandResult
Würfe
DeviceNotAvailableException
fastbootWipePartition
public CommandResult fastbootWipePartition (String partition)
Parameter
partition
String
Kehrt zurück
CommandResult
Würfe
DeviceNotAvailableException
getActiveApexes
public getActiveApexes ()
Kehrt zurück
Würfe
DeviceNotAvailableException
GetAllSettings
public getAllSettings (String namespace)
Parameter
namespace
String
Kehrt zurück
Würfe
DeviceNotAvailableException
getAllocationState
public DeviceAllocationState getAllocationState ()
Kehrt zurück
DeviceAllocationState
getAndroidId
public String getAndroidId (int userId)
Parameter
userId
int
Kehrt zurück
String
Würfe
DeviceNotAvailableException
GetAndroidIds
public getAndroidIds ()
Kehrt zurück
Würfe
DeviceNotAvailableException
getApiLevel
public int getApiLevel ()
Kehrt zurück
int
Würfe
DeviceNotAvailableException
GetAppPackageInfo
public PackageInfo getAppPackageInfo (String packageName)
Parameter
packageName
String
Kehrt zurück
PackageInfo
Würfe
DeviceNotAvailableException
getAppPackageInfos
public getAppPackageInfos ()
Kehrt zurück
Würfe
DeviceNotAvailableException
getBasebandVersion
public String getBasebandVersion ()
Kehrt zurück
String
Würfe
DeviceNotAvailableException
getBatterie
public Integer getBattery ()
Kehrt zurück
Integer
getBooleanProperty
public boolean getBooleanProperty (String name,
boolean defaultValue)
Parameter
name
String
defaultValue
boolean
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
getBootHistory
public getBootHistory ()
Kehrt zurück
Würfe
DeviceNotAvailableException
getBootHistorySince
public getBootHistorySince (long utcEpochTime,
TimeUnit timeUnit)
Parameter
utcEpochTime
long
timeUnit
TimeUnit
Kehrt zurück
Würfe
DeviceNotAvailableException
getBootloaderVersion
public String getBootloaderVersion ()
Kehrt zurück
String
Würfe
DeviceNotAvailableException
getBugreport
public InputStreamSource getBugreport ()
Kehrt zurück
InputStreamSource
getBugreportz
public InputStreamSource getBugreportz ()
Kehrt zurück
InputStreamSource
getBuildAlias
public String getBuildAlias ()
Kehrt zurück
String
Würfe
DeviceNotAvailableException
getBuildFlavour
public String getBuildFlavor ()
Kehrt zurück
String
Würfe
DeviceNotAvailableException
getBuildId
public String getBuildId ()
Kehrt zurück
String
Würfe
DeviceNotAvailableException
getBuildSigningKeys
public String getBuildSigningKeys ()
Kehrt zurück
String
Würfe
DeviceNotAvailableException
getCachedDeviceDescriptor
public DeviceDescriptor getCachedDeviceDescriptor ()
Kehrt zurück
DeviceDescriptor
getKinder
public String[] getChildren (String path)
Parameter
path
String
Kehrt zurück
String[]
Würfe
DeviceNotAvailableException
getCurrentFoldableState
public DeviceFoldableState getCurrentFoldableState ()
public String getFastbootVariable (String variableName)
Parameter
variableName
String
Kehrt zurück
String
Würfe
DeviceNotAvailableException
getFastbootVersion
public String getFastbootVersion ()
Kehrt zurück
String
getFileEntry
public IFileEntry getFileEntry (String path)
Parameter
path
String
Kehrt zurück
IFileEntry
Würfe
DeviceNotAvailableException
getFileEntry
public IFileEntry getFileEntry (FileListingService.FileEntry entry)
Inoffizielle Helfer einen bekommen FileEntry von einem Nicht-Root - Pfad. FIXME: Refaktorieren Sie das FileEntry-System, damit es von jedem Pfad aus verfügbar ist. (auch ohne Root).
Parameter
entry
FileListingService.FileEntry : ein FileEntry nicht unbedingt root als Ddmlib erfordert.
public String installPackageForUser (File packageFile,
boolean reinstall,
int userId,
String... extraArgs)
Parameter
packageFile
File
reinstall
boolean
userId
int
extraArgs
String
Kehrt zurück
String
Würfe
DeviceNotAvailableException
installPackageForUser
public String installPackageForUser (File packageFile,
boolean reinstall,
boolean grantPermissions,
int userId,
String... extraArgs)
Parameter
packageFile
File
reinstall
boolean
grantPermissions
boolean
userId
int
extraArgs
String
Kehrt zurück
String
Würfe
DeviceNotAvailableException
isAdbRoot
public boolean isAdbRoot ()
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
isAdbTcp
public boolean isAdbTcp ()
Kehrt zurück
boolean
isAppEnumerationSupported
public boolean isAppEnumerationSupported ()
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
isDeviceEncrypted
public boolean isDeviceEncrypted ()
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
isVerzeichnis
public boolean isDirectory (String path)
Parameter
path
String
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
isEnableAdbRoot
public boolean isEnableAdbRoot ()
Kehrt zurück
boolean
true , wenn adb root sollte auf dem Gerät aktiviert sein ,
isEncryptionSupported
public boolean isEncryptionSupported ()
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
ist ausführbar
public boolean isExecutable (String fullPath)
Parameter
fullPath
String
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
isFastbootEnabled
public boolean isFastbootEnabled ()
Kehrt zurück
boolean
istKopflos
public boolean isHeadless ()
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
wird für mehrere Benutzer unterstützt
public boolean isMultiUserSupported ()
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
isPackageInstalled
public boolean isPackageInstalled (String packageName,
String userId)
Parameter
packageName
String
userId
String
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
isPackageInstalled
public boolean isPackageInstalled (String packageName)
Parameter
packageName
String
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
isRuntimePermissionSupported
public boolean isRuntimePermissionSupported ()
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
isStateBootloaderOrFastbootd
public boolean isStateBootloaderOrFastbootd ()
Kehrt zurück
boolean
isUserRunning
public boolean isUserRunning (int userId)
Parameter
userId
int
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
isUserSecondary
public boolean isUserSecondary (int userId)
Parameter
userId
int
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
isWifiaktiviert
public boolean isWifiEnabled ()
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
listDisplayIds
public listDisplayIds ()
Kehrt zurück
Würfe
DeviceNotAvailableException
listBenutzer
public listUsers ()
Kehrt zurück
Würfe
DeviceNotAvailableException
logBugreport
public boolean logBugreport (String dataName,
ITestLogger listener)
Parameter
dataName
String
listener
ITestLogger
Kehrt zurück
boolean
logOnDevice
public void logOnDevice (String tag,
Log.LogLevel level,
String format,
Object... args)
Parameter
tag
String
level
Log.LogLevel
format
String
args
Object
nonBlockingReboot
public void nonBlockingReboot ()
Würfe
DeviceNotAvailableException
postAdbRootAction
public void postAdbRootAction ()
Überschreiben, wenn das Gerät nach dem Rooten von adb und bevor das Gerät wieder online ist, bestimmte Aktionen ausführen müssen. Die Standardimplementierung enthält keine zusätzlichen Aktionen. Es kann nicht garantiert werden, dass adb root zu diesem Zeitpunkt aktiviert ist.
Würfe
DeviceNotAvailableException
postAdbUnrootAction
public void postAdbUnrootAction ()
Überschreiben, wenn das Gerät nach dem Unroot von adb und bevor das Gerät wieder online ist, bestimmte Aktionen ausführen müssen. Die Standardimplementierung enthält keine zusätzlichen Aktionen. Es kann nicht garantiert werden, dass adb root zu diesem Zeitpunkt deaktiviert ist.
Würfe
DeviceNotAvailableException
postBootSetup
public void postBootSetup ()
Würfe
DeviceNotAvailableException
postInvocationTearDown
public void postInvocationTearDown (Throwable exception)
Parameter
exception
Throwable
preInvocationSetup
public void preInvocationSetup (IBuildInfo info,
MultiMap<String, String> attributes)
Parameter
info
IBuildInfo
attributes
MultiMap
Würfe
DeviceNotAvailableException
TargetSetupError
PullDir
public boolean pullDir (String deviceFilePath,
File localDir)
Parameter
deviceFilePath
String
localDir
File
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
PullFile
public boolean pullFile (String remoteFilePath,
File localFile)
Parameter
remoteFilePath
String
localFile
File
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
PullFile
public File pullFile (String remoteFilePath)
Parameter
remoteFilePath
String
Kehrt zurück
File
Würfe
DeviceNotAvailableException
pullFileInhalt
public String pullFileContents (String remoteFilePath)
Parameter
remoteFilePath
String
Kehrt zurück
String
Würfe
DeviceNotAvailableException
pullFileFromExternal
public File pullFileFromExternal (String remoteFilePath)
Parameter
remoteFilePath
String
Kehrt zurück
File
Würfe
DeviceNotAvailableException
pushDir
public boolean pushDir (File localFileDir,
String deviceFilePath,
excludedDirectories)
Parameter
localFileDir
File
deviceFilePath
String
excludedDirectories
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
pushDir
public boolean pushDir (File localFileDir,
String deviceFilePath)
Parameter
localFileDir
File
deviceFilePath
String
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
pushDatei
public boolean pushFile (File localFile,
String remoteFilePath)
Parameter
localFile
File
remoteFilePath
String
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
pushString
public boolean pushString (String contents,
String remoteFilePath)
Parameter
contents
String
remoteFilePath
String
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
neustarten
public void reboot (String reason)
Parameter
reason
String
Würfe
DeviceNotAvailableException
neustarten
public void reboot ()
Würfe
DeviceNotAvailableException
rebootIntoBootloader
public void rebootIntoBootloader ()
Würfe
DeviceNotAvailableException
rebootIntoFastbootd
public void rebootIntoFastbootd ()
Würfe
DeviceNotAvailableException
rebootIntoRecovery
public void rebootIntoRecovery ()
Würfe
DeviceNotAvailableException
rebootIntoSideload
public void rebootIntoSideload ()
Würfe
DeviceNotAvailableException
rebootIntoSideload
public void rebootIntoSideload (boolean autoReboot)
Parameter
autoReboot
boolean
Würfe
DeviceNotAvailableException
rebootBisOnline
public void rebootUntilOnline ()
Würfe
DeviceNotAvailableException
rebootBisOnline
public void rebootUntilOnline (String reason)
Parameter
reason
String
Würfe
DeviceNotAvailableException
rebootUserspace
public void rebootUserspace ()
Würfe
DeviceNotAvailableException
rebootUserspaceUntilOnline
public void rebootUserspaceUntilOnline ()
Würfe
DeviceNotAvailableException
Gerät wiederherstellen
public void recoverDevice ()
Versucht, die Gerätekommunikation wiederherzustellen.
Würfe
DeviceNotAvailableException
wenn das Gerät nicht mehr verfügbar ist
remountSystemWritable
public void remountSystemWritable ()
Würfe
DeviceNotAvailableException
remountVendorWritable
public void remountVendorWritable ()
Würfe
DeviceNotAvailableException
entfernenAdmin
public boolean removeAdmin (String componentName,
int userId)
Parameter
componentName
String
userId
int
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
entfernenEigentümer
public void removeOwners ()
Würfe
DeviceNotAvailableException
Benutzer entfernen
public boolean removeUser (int userId)
Parameter
userId
int
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
resetContentProviderSetup
public void resetContentProviderSetup ()
Setzen Sie das Flag für die Einrichtung des Inhaltsanbieters zurück, um es erneut auszulösen.
runInstrumentationTests
public boolean runInstrumentationTests (IRemoteAndroidTestRunner runner,
ITestLifeCycleReceiver... listeners)
Parameter
runner
IRemoteAndroidTestRunner
listeners
ITestLifeCycleReceiver
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
runInstrumentationTests
public boolean runInstrumentationTests (IRemoteAndroidTestRunner runner,
listeners)
Parameter
runner
IRemoteAndroidTestRunner
listeners
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
runInstrumentationTestsAsUser
public boolean runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner,
int userId,
ITestLifeCycleReceiver... listeners)
Parameter
runner
IRemoteAndroidTestRunner
userId
int
listeners
ITestLifeCycleReceiver
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
runInstrumentationTestsAsUser
public boolean runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner,
int userId,
listeners)
Parameter
runner
IRemoteAndroidTestRunner
userId
int
listeners
Kehrt zurück
boolean
Würfe
DeviceNotAvailableException
setKonfiguration
public void setConfiguration (IConfiguration configuration)
Rufen Sie eine Geräteeigenschaft standardmäßig aus dem ddmlib-Cache ab und greifen Sie entweder auf `adb shell getprop` oder `fastboot getvar` zurück, je nachdem, ob sich das Gerät im Fastboot befindet oder nicht.
Parameter
propName
String : Der Name des Geräts Eigenschaft als von `adb shell getprop` zurück
fastbootVar
String : Der Name des äquivalenten Fast Boot Variable Abfrage. Wenn null , wird Fast Boot Abfrage nicht versucht werden
description
String : Eine einfache Beschreibung der Variablen. Der erste Buchstabe sollte groß geschrieben werden.
Kehrt zurück
String
Ein String, möglicherweise null oder leer ist , den Wert der gegebenen Eigenschaft enthält ,
Rückkehr true , wenn die lokale Datei neuer als Remote - Datei ist. IFileEntry auf die Minute genau zu sein, bei gleichen Zeiten, wird die Datei neuer betrachtet werden.
Parameter
localFile
File
entry
IFileEntry
Kehrt zurück
boolean
performDeviceAction
protected boolean performDeviceAction (String actionDescription,
com.android.tradefed.device.NativeDevice.DeviceAction action,
int retryAttempts)
Führt eine Aktion auf diesem Gerät aus. Versucht, das Gerät wiederherzustellen und optional den Befehl zu wiederholen, wenn die Aktion fehlschlägt.
Parameter
actionDescription
String : eine kurze Beschreibung der Aktion ausgeführt werden. Wird nur für Protokollierungszwecke verwendet.
action
com.android.tradefed.device.NativeDevice.DeviceAction : die auszuführende Aktion
retryAttempts
int : Die Wiederholungsversuche für Maßnahmen zu treffen , wenn es scheitert aber Erholung gelingt
Kehrt zurück
boolean
true , wenn Aktion erfolgreich durchgeführt wurde
Würfe
DeviceNotAvailableException
wenn Wiederherstellungsversuch fehlschlägt oder maximale Versuche ohne Erfolg durchgeführt wurden
postAdbReboot
protected void postAdbReboot ()
Mögliche zusätzliche Aktionen, die nach einem Neustart ausgeführt werden können.
Würfe
DeviceNotAvailableException
prePostBootSetup
protected void prePostBootSetup ()
Ermöglicht jedem Gerätetyp (AndroidNativeDevice, TestDevice), diese Methode für ein bestimmtes Post-Boot-Setup zu überschreiben.
Würfe
DeviceNotAvailableException
Uhr einstellen
protected void setClock (Clock clock)
Legen Sie die zu verwendende Clock-Instanz fest.
Parameter
clock
Clock
setLogStartDelay
protected void setLogStartDelay (int delay)
Legt die Wartezeit in ms fest, bevor die Logcat-Erfassung für ein Online-Gerät gestartet wird.
Parameter
delay
int : die Verzögerung in ms
waitForDeviceNotAvailable
protected void waitForDeviceNotAvailable (String operationDesc,
long time)
Parameter
operationDesc
String
time
long
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2021-10-04 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Benötigte Informationen nicht gefunden"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Zu umständlich/zu viele Schritte"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Nicht mehr aktuell"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Problem mit der Übersetzung"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Problem mit Beispielen/Code"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Sonstiges"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Leicht verständlich"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Mein Problem wurde gelöst"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Sonstiges"
}]