ネストされたクラス |
---|
class | NativeDevice.AdbAction DeviceAction OS「ADB ....」コマンドを実行します。 |
class | NativeDevice.AdbShellAction |
class | NativeDevice.RebootDeviceAction DeviceAction デバイスを再起動するため。 |
enum | NativeDevice.RebootMode 再起動のモード。 |
パブリックメソッド |
---|
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 () すべて含むログexecuteShellCommand(String) のログを。 |
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) 取得するための非公式ヘルパーFileEntry 非ルート・パスから。 |
| 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) DeviceEventを処理します。これにより、このデバイスが新しい割り当て状態に移行する場合と移行しない場合があります。 |
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 () デバイスがadbrootの後、デバイスがオンラインに戻る前に特定のアクションを実行する必要がある場合はオーバーライドします。 |
void | postAdbUnrootAction () adb unrootの後、デバイスがオンラインに戻る前に、デバイスで特定のアクションを実行する必要がある場合はオーバーライドします。 |
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 () デバイス通信の回復を試みます。 |
void | remountSystemWritable () |
void | remountVendorWritable () |
boolean | removeAdmin (String componentName, int userId) |
void | removeOwners () |
boolean | removeUser (int userId) |
void | resetContentProviderSetup () コンテンツプロバイダー設定のフラグをリセットして、再度トリガーします。 |
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) 注入IConfiguration 使用中。 |
void | setDate (Date date) |
boolean | setDeviceOwner (String componentName, int userId) |
void | setDeviceState (TestDeviceState deviceState) |
void | setEmulatorOutputStream ( SizeLimitedOutputStream output) エミュレータの設定SizeLimitedOutputStream 出力をログに記録します |
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) |
定数
INVALID_USER_ID
public static final int INVALID_USER_ID
無効な/見つからないユーザーIDに対して返される値:UserHandleは-10000値を定義しました
定数値:-10000(0xffffd8f0)
MAX_HOST_DEVICE_TIME_OFFSET
protected static final long MAX_HOST_DEVICE_TIME_OFFSET
定数値:5000(0x0000000000001388)
MAX_RETRY_ATTEMPTS
protected static final int MAX_RETRY_ATTEMPTS
コマンドの再試行のデフォルトの実行回数
定数値:2(0x00000002)
田畑
SDカード
protected static final String SD_CARD
STORAGE_EMULATED
protected static final String STORAGE_EMULATED
mOptions
protected TestDeviceOptions mOptions
mStateMonitor
protected final IDeviceStateMonitor mStateMonitor
パブリックコンストラクター
NativeDevice
public NativeDevice (IDevice device,
IDeviceStateMonitor stateMonitor,
IDeviceMonitor allocationMonitor)
作成TestDevice
。
パブリックメソッド
checkApiLevelAgainstNextRelease
public boolean checkApiLevelAgainstNextRelease (int strictMinLevel)
投げる |
---|
DeviceNotAvailableException | |
checkConnectivity
public boolean checkConnectivity ()
投げる |
---|
DeviceNotAvailableException | |
clearErrorDialogs
public boolean clearErrorDialogs ()
投げる |
---|
DeviceNotAvailableException | |
clearLastConnectedWifiNetwork
public void clearLastConnectedWifiNetwork ()
clearLogcat
public void clearLogcat ()
connectToWifiNetwork
public boolean connectToWifiNetwork (String wifiSsid,
String wifiPsk)
パラメーター |
---|
wifiSsid | String |
wifiPsk | String |
投げる |
---|
DeviceNotAvailableException | |
connectToWifiNetwork
public boolean connectToWifiNetwork (String wifiSsid,
String wifiPsk,
boolean scanSsid)
パラメーター |
---|
wifiSsid | String |
wifiPsk | String |
scanSsid | boolean |
投げる |
---|
DeviceNotAvailableException | |
connectToWifiNetworkIfNeeded
public boolean connectToWifiNetworkIfNeeded (String wifiSsid,
String wifiPsk,
boolean scanSsid)
パラメーター |
---|
wifiSsid | String |
wifiPsk | String |
scanSsid | boolean |
投げる |
---|
DeviceNotAvailableException | |
connectToWifiNetworkIfNeeded
public boolean connectToWifiNetworkIfNeeded (String wifiSsid,
String wifiPsk)
パラメーター |
---|
wifiSsid | String |
wifiPsk | String |
投げる |
---|
DeviceNotAvailableException | |
ユーザーを作成
public int createUser (String name,
boolean guest,
boolean ephemeral)
パラメーター |
---|
name | String |
guest | boolean |
ephemeral | boolean |
投げる |
---|
DeviceNotAvailableException | |
ユーザーを作成
public int createUser (String name)
投げる |
---|
DeviceNotAvailableException | |
createUserNoThrow
public int createUserNoThrow (String name)
投げる |
---|
DeviceNotAvailableException | |
ファイルを削除する
public void deleteFile (String deviceFilePath)
パラメーター |
---|
deviceFilePath | String |
投げる |
---|
DeviceNotAvailableException | |
deviceSoftRestarted
public boolean deviceSoftRestarted (ProcessInfo prevSystemServerProcess)
パラメーター |
---|
prevSystemServerProcess | ProcessInfo |
投げる |
---|
DeviceNotAvailableException | |
deviceSoftRestartedSince
public boolean deviceSoftRestartedSince (long utcEpochTime,
TimeUnit timeUnit)
パラメーター |
---|
utcEpochTime | long |
timeUnit | TimeUnit |
投げる |
---|
DeviceNotAvailableException | |
disableAdbRoot
public boolean disableAdbRoot ()
投げる |
---|
DeviceNotAvailableException | |
disableKeyguard
public void disableKeyguard ()
投げる |
---|
DeviceNotAvailableException | |
disableNetworkMonitor
public boolean disableNetworkMonitor ()
投げる |
---|
DeviceNotAvailableException | |
切断からWifi
public boolean disconnectFromWifi ()
投げる |
---|
DeviceNotAvailableException | |
doesFileExist
public boolean doesFileExist (String deviceFilePath)
パラメーター |
---|
deviceFilePath | String |
投げる |
---|
DeviceNotAvailableException | |
dumpHeap
public File dumpHeap (String process,
String devicePath)
パラメーター |
---|
process | String |
devicePath | String |
投げる |
---|
DeviceNotAvailableException | |
enableAdbRoot
public boolean enableAdbRoot ()
投げる |
---|
DeviceNotAvailableException | |
enableNetworkMonitor
public boolean enableNetworkMonitor ()
投げる |
---|
DeviceNotAvailableException | |
暗号化デバイス
public boolean encryptDevice (boolean inplace)
投げる |
---|
DeviceNotAvailableException | |
executeAdbCommand
public String executeAdbCommand (long timeout,
String... cmdArgs)
パラメーター |
---|
timeout | long |
cmdArgs | String |
投げる |
---|
DeviceNotAvailableException | |
executeAdbCommand
public String executeAdbCommand (String... cmdArgs)
投げる |
---|
DeviceNotAvailableException | |
executeFastbootCommand
public CommandResult executeFastbootCommand (String... cmdArgs)
投げる |
---|
DeviceNotAvailableException | |
executeFastbootCommand
public CommandResult executeFastbootCommand (long timeout,
String... cmdArgs)
パラメーター |
---|
timeout | long |
cmdArgs | String |
投げる |
---|
DeviceNotAvailableException | |
executeLongFastbootCommand
public CommandResult executeLongFastbootCommand (String... cmdArgs)
投げる |
---|
DeviceNotAvailableException | |
executeShellCommand
public String executeShellCommand (String command)
投げる |
---|
DeviceNotAvailableException | |
executeShellCommand
public void executeShellCommand (String command,
IShellOutputReceiver receiver,
long maxTimeToOutputShellResponse,
TimeUnit timeUnit,
int retryAttempts)
パラメーター |
---|
command | String |
receiver | IShellOutputReceiver |
maxTimeToOutputShellResponse | long |
timeUnit | TimeUnit |
retryAttempts | int |
投げる |
---|
DeviceNotAvailableException | |
executeShellCommand
public void executeShellCommand (String command,
IShellOutputReceiver receiver,
long maxTimeoutForCommand,
long maxTimeToOutputShellResponse,
TimeUnit timeUnit,
int retryAttempts)
パラメーター |
---|
command | String |
receiver | IShellOutputReceiver |
maxTimeoutForCommand | long |
maxTimeToOutputShellResponse | long |
timeUnit | TimeUnit |
retryAttempts | int |
投げる |
---|
DeviceNotAvailableException | |
executeShellCommand
public void executeShellCommand (String command,
IShellOutputReceiver receiver)
パラメーター |
---|
command | String |
receiver | IShellOutputReceiver |
投げる |
---|
DeviceNotAvailableException | |
executeShellV2Command
public CommandResult executeShellV2Command (String cmd)
投げる |
---|
DeviceNotAvailableException | |
executeShellV2Command
public CommandResult executeShellV2Command (String cmd,
OutputStream pipeToOutput)
パラメーター |
---|
cmd | String |
pipeToOutput | OutputStream |
投げる |
---|
DeviceNotAvailableException | |
executeShellV2Command
public CommandResult executeShellV2Command (String cmd,
File pipeAsInput)
パラメーター |
---|
cmd | String |
pipeAsInput | File |
投げる |
---|
DeviceNotAvailableException | |
executeShellV2Command
public CommandResult executeShellV2Command (String cmd,
long maxTimeoutForCommand,
TimeUnit timeUnit,
int retryAttempts)
パラメーター |
---|
cmd | String |
maxTimeoutForCommand | long |
timeUnit | TimeUnit |
retryAttempts | int |
投げる |
---|
DeviceNotAvailableException | |
executeShellV2Command
public CommandResult executeShellV2Command (String cmd,
long maxTimeoutForCommand,
TimeUnit timeUnit)
パラメーター |
---|
cmd | String |
maxTimeoutForCommand | long |
timeUnit | TimeUnit |
投げる |
---|
DeviceNotAvailableException | |
executeShellV2Command
public CommandResult executeShellV2Command (String cmd,
File pipeAsInput,
OutputStream pipeToOutput,
long maxTimeoutForCommand,
TimeUnit timeUnit,
int retryAttempts)
パラメーター |
---|
cmd | String |
pipeAsInput | File |
pipeToOutput | OutputStream |
maxTimeoutForCommand | long |
timeUnit | TimeUnit |
retryAttempts | int |
投げる |
---|
DeviceNotAvailableException | |
executeShellV2Command
public CommandResult executeShellV2Command (String cmd,
File pipeAsInput,
OutputStream pipeToOutput,
OutputStream pipeToError,
long maxTimeoutForCommand,
TimeUnit timeUnit,
int retryAttempts)
パラメーター |
---|
cmd | String |
pipeAsInput | File |
pipeToOutput | OutputStream |
pipeToError | OutputStream |
maxTimeoutForCommand | long |
timeUnit | TimeUnit |
retryAttempts | int |
投げる |
---|
DeviceNotAvailableException | |
fastbootWipePartition
public CommandResult fastbootWipePartition (String partition)
投げる |
---|
DeviceNotAvailableException | |
getActiveApexes
public getActiveApexes ()
投げる |
---|
DeviceNotAvailableException | |
getAllSettings
public getAllSettings (String namespace)
投げる |
---|
DeviceNotAvailableException | |
getAllocationState
public DeviceAllocationState getAllocationState ()
getAndroidId
public String getAndroidId (int userId)
投げる |
---|
DeviceNotAvailableException | |
getAndroidIds
public getAndroidIds ()
投げる |
---|
DeviceNotAvailableException | |
getApiLevel
public int getApiLevel ()
投げる |
---|
DeviceNotAvailableException | |
getAppPackageInfo
public PackageInfo getAppPackageInfo (String packageName)
投げる |
---|
DeviceNotAvailableException | |
getAppPackageInfos
public getAppPackageInfos ()
投げる |
---|
DeviceNotAvailableException | |
getBasebandVersion
public String getBasebandVersion ()
投げる |
---|
DeviceNotAvailableException | |
getBattery
public Integer getBattery ()
getBooleanProperty
public boolean getBooleanProperty (String name,
boolean defaultValue)
パラメーター |
---|
name | String |
defaultValue | boolean |
投げる |
---|
DeviceNotAvailableException | |
getBootHistory
public getBootHistory ()
投げる |
---|
DeviceNotAvailableException | |
getBootHistorySince
public getBootHistorySince (long utcEpochTime,
TimeUnit timeUnit)
パラメーター |
---|
utcEpochTime | long |
timeUnit | TimeUnit |
投げる |
---|
DeviceNotAvailableException | |
getBootloaderVersion
public String getBootloaderVersion ()
投げる |
---|
DeviceNotAvailableException | |
getBugreport
public InputStreamSource getBugreport ()
getBugreportz
public InputStreamSource getBugreportz ()
getBuildAlias
public String getBuildAlias ()
投げる |
---|
DeviceNotAvailableException | |
getBuildFlavor
public String getBuildFlavor ()
投げる |
---|
DeviceNotAvailableException | |
getBuildId
public String getBuildId ()
投げる |
---|
DeviceNotAvailableException | |
getBuildSigningKeys
public String getBuildSigningKeys ()
投げる |
---|
DeviceNotAvailableException | |
getCachedDeviceDescriptor
public DeviceDescriptor getCachedDeviceDescriptor ()
getChildren
public String[] getChildren (String path)
投げる |
---|
DeviceNotAvailableException | |
getCurrentFoldableState
public DeviceFoldableState getCurrentFoldableState ()
投げる |
---|
DeviceNotAvailableException | |
getCurrentUser
public int getCurrentUser ()
投げる |
---|
DeviceNotAvailableException | |
getDeviceClass
public String getDeviceClass ()
getDeviceDate
public long getDeviceDate ()
投げる |
---|
DeviceNotAvailableException | |
getDeviceDescriptor
public DeviceDescriptor getDeviceDescriptor ()
getDeviceState
public TestDeviceState getDeviceState ()
getDeviceTimeOffset
public long getDeviceTimeOffset (Date date)
投げる |
---|
DeviceNotAvailableException | |
getEmulatorOutput
public InputStreamSource getEmulatorOutput ()
getEmulatorProcess
public Process getEmulatorProcess ()
getExternalStoreFreeSpace
public long getExternalStoreFreeSpace ()
投げる |
---|
DeviceNotAvailableException | |
getFastbootPath
public String getFastbootPath ()
getFastbootProductType
public String getFastbootProductType ()
投げる |
---|
DeviceNotAvailableException | |
getFastbootProductVariant
public String getFastbootProductVariant ()
投げる |
---|
DeviceNotAvailableException | |
getFastbootSerialNumber
public String getFastbootSerialNumber ()
getFastbootVariable
public String getFastbootVariable (String variableName)
パラメーター |
---|
variableName | String |
投げる |
---|
DeviceNotAvailableException | |
getFastbootVersion
public String getFastbootVersion ()
getFileEntry
public IFileEntry getFileEntry (String path)
投げる |
---|
DeviceNotAvailableException | |
getFileEntry
public IFileEntry getFileEntry (FileListingService.FileEntry entry)
取得するための非公式ヘルパーFileEntry
非ルート・パスから。 FIXME:FileEntryシステムをリファクタリングして、任意のパスから使用できるようにします。 (ルート以外でも)。
パラメーター |
---|
entry | FileListingService.FileEntry : FileEntry Ddmlibが必要とは限らないルート。 |
投げる |
---|
DeviceNotAvailableException | |
getFoldableStates
public getFoldableStates ()
投げる |
---|
DeviceNotAvailableException | |
getIDevice
public IDevice getIDevice ()
getInstalledPackageNames
public getInstalledPackageNames ()
投げる |
---|
DeviceNotAvailableException | |
getIntProperty
public long getIntProperty (String name,
long defaultValue)
パラメーター |
---|
name | String |
defaultValue | long |
投げる |
---|
DeviceNotAvailableException | |
getIpAddress
public String getIpAddress ()
投げる |
---|
DeviceNotAvailableException | |
getKeyguardState
public KeyguardControllerState getKeyguardState ()
戻り値 |
---|
KeyguardControllerState | |
投げる |
---|
DeviceNotAvailableException | |
getLastExpectedRebootTimeMillis
public long getLastExpectedRebootTimeMillis ()
getLaunchApiLevel
public int getLaunchApiLevel ()
投げる |
---|
DeviceNotAvailableException | |
getLogcat
public InputStreamSource getLogcat ()
getLogcat
public InputStreamSource getLogcat (int maxBytes)
getLogcatDump
public InputStreamSource getLogcatDump ()
getLogcatSince
public InputStreamSource getLogcatSince (long date)
getMacAddress
public String getMacAddress ()
getMainlineModuleInfo
public getMainlineModuleInfo ()
投げる |
---|
DeviceNotAvailableException | |
public int getMaxNumberOfRunningUsersSupported ()
投げる |
---|
DeviceNotAvailableException | |
public int getMaxNumberOfUsersSupported ()
投げる |
---|
DeviceNotAvailableException | |
getMonitor
public IDeviceStateMonitor getMonitor ()
getMountPoint
public String getMountPoint (String mountName)
getMountPointInfo
public ITestDevice.MountPointInfo getMountPointInfo (String mountpoint)
戻り値 |
---|
ITestDevice.MountPointInfo | |
投げる |
---|
DeviceNotAvailableException | |
getMountPointInfo
public getMountPointInfo ()
投げる |
---|
DeviceNotAvailableException | |
getOptions
public TestDeviceOptions getOptions ()
getPartitionFreeSpace
public long getPartitionFreeSpace (String partition)
投げる |
---|
DeviceNotAvailableException | |
getPrimaryUserId
public Integer getPrimaryUserId ()
投げる |
---|
DeviceNotAvailableException | |
getProcessByName
public ProcessInfo getProcessByName (String processName)
投げる |
---|
DeviceNotAvailableException | |
getProcessPid
public String getProcessPid (String process)
投げる |
---|
DeviceNotAvailableException | |
getProductType
public String getProductType ()
投げる |
---|
DeviceNotAvailableException | |
getProductVariant
public String getProductVariant ()
投げる |
---|
DeviceNotAvailableException | |
getProperty
public String getProperty (String name)
投げる |
---|
DeviceNotAvailableException | |
getRecoveryMode
public ITestDevice.RecoveryMode getRecoveryMode ()
戻り値 |
---|
ITestDevice.RecoveryMode | |
getScreenshot
public InputStreamSource getScreenshot (String format)
投げる |
---|
DeviceNotAvailableException | |
getScreenshot
public InputStreamSource getScreenshot (long displayId)
投げる |
---|
DeviceNotAvailableException | |
getScreenshot
public InputStreamSource getScreenshot (String format,
boolean rescale)
パラメーター |
---|
format | String |
rescale | boolean |
投げる |
---|
DeviceNotAvailableException | |
getScreenshot
public InputStreamSource getScreenshot ()
投げる |
---|
DeviceNotAvailableException | |
getSerialNumber
public String getSerialNumber ()
getSetting
public String getSetting (int userId,
String namespace,
String key)
パラメーター |
---|
userId | int |
namespace | String |
key | String |
投げる |
---|
DeviceNotAvailableException | |
getSetting
public String getSetting (String namespace,
String key)
パラメーター |
---|
namespace | String |
key | String |
投げる |
---|
DeviceNotAvailableException | |
getSimOperator
public String getSimOperator ()
getSimState
public String getSimState ()
getTombstones
public getTombstones ()
投げる |
---|
DeviceNotAvailableException | |
getTotalMemory
public long getTotalMemory ()
getUninstallablePackageNames
public getUninstallablePackageNames ()
投げる |
---|
DeviceNotAvailableException | |
getUseFastbootErase
public boolean getUseFastbootErase ()
getUserFlags
public int getUserFlags (int userId)
投げる |
---|
DeviceNotAvailableException | |
getUserInfos
public getUserInfos ()
投げる |
---|
DeviceNotAvailableException | |
getUserSerialNumber
public int getUserSerialNumber (int userId)
投げる |
---|
DeviceNotAvailableException | |
handleAllocationEvent
public IManagedTestDevice.DeviceEventResponse handleAllocationEvent (DeviceEvent event)
DeviceEventを処理します。これにより、このデバイスが新しい割り当て状態に移行する場合と移行しない場合があります。
戻り値 |
---|
IManagedTestDevice.DeviceEventResponse | |
hasFeature
public boolean hasFeature (String feature)
投げる |
---|
DeviceNotAvailableException | |
installPackage
public String installPackage (File packageFile,
boolean reinstall,
String... extraArgs)
パラメーター |
---|
packageFile | File |
reinstall | boolean |
extraArgs | String |
投げる |
---|
DeviceNotAvailableException | |
installPackage
public String installPackage (File packageFile,
boolean reinstall,
boolean grantPermissions,
String... extraArgs)
パラメーター |
---|
packageFile | File |
reinstall | boolean |
grantPermissions | boolean |
extraArgs | String |
投げる |
---|
DeviceNotAvailableException | |
installPackageForUser
public String installPackageForUser (File packageFile,
boolean reinstall,
int userId,
String... extraArgs)
パラメーター |
---|
packageFile | File |
reinstall | boolean |
userId | int |
extraArgs | String |
投げる |
---|
DeviceNotAvailableException | |
installPackageForUser
public String installPackageForUser (File packageFile,
boolean reinstall,
boolean grantPermissions,
int userId,
String... extraArgs)
パラメーター |
---|
packageFile | File |
reinstall | boolean |
grantPermissions | boolean |
userId | int |
extraArgs | String |
投げる |
---|
DeviceNotAvailableException | |
isAdbRoot
public boolean isAdbRoot ()
投げる |
---|
DeviceNotAvailableException | |
isAdbTcp
public boolean isAdbTcp ()
isAppEnumerationSupported
public boolean isAppEnumerationSupported ()
投げる |
---|
DeviceNotAvailableException | |
isDeviceEncrypted
public boolean isDeviceEncrypted ()
投げる |
---|
DeviceNotAvailableException | |
isDirectory
public boolean isDirectory (String path)
投げる |
---|
DeviceNotAvailableException | |
isEnableAdbRoot
public boolean isEnableAdbRoot ()
戻り値 |
---|
boolean | true ADBのルートは、デバイス上で有効にする必要がある場合 |
isEncryptionSupported
public boolean isEncryptionSupported ()
投げる |
---|
DeviceNotAvailableException | |
isExecutable
public boolean isExecutable (String fullPath)
投げる |
---|
DeviceNotAvailableException | |
isFastbootEnabled
public boolean isFastbootEnabled ()
isHeadless
public boolean isHeadless ()
投げる |
---|
DeviceNotAvailableException | |
isMultiUserSupported
public boolean isMultiUserSupported ()
投げる |
---|
DeviceNotAvailableException | |
isPackageInstalled
public boolean isPackageInstalled (String packageName,
String userId)
パラメーター |
---|
packageName | String |
userId | String |
投げる |
---|
DeviceNotAvailableException | |
isPackageInstalled
public boolean isPackageInstalled (String packageName)
投げる |
---|
DeviceNotAvailableException | |
isRuntimePermissionSupported
public boolean isRuntimePermissionSupported ()
投げる |
---|
DeviceNotAvailableException | |
isStateBootloaderOrFastbootd
public boolean isStateBootloaderOrFastbootd ()
isUserRunning
public boolean isUserRunning (int userId)
投げる |
---|
DeviceNotAvailableException | |
isUserSecondary
public boolean isUserSecondary (int userId)
投げる |
---|
DeviceNotAvailableException | |
isWifiEnabled
public boolean isWifiEnabled ()
投げる |
---|
DeviceNotAvailableException | |
listDisplayIds
public listDisplayIds ()
投げる |
---|
DeviceNotAvailableException | |
listUsers
public listUsers ()
投げる |
---|
DeviceNotAvailableException | |
logBugreport
public boolean logBugreport (String dataName,
ITestLogger listener)
パラメーター |
---|
dataName | String |
listener | ITestLogger |
logOnDevice
public void logOnDevice (String tag,
Log.LogLevel level,
String format,
Object... args)
パラメーター |
---|
tag | String |
level | Log.LogLevel |
format | String |
args | Object |
nonBlockingReboot
public void nonBlockingReboot ()
投げる |
---|
DeviceNotAvailableException | |
postAdbRootAction
public void postAdbRootAction ()
デバイスがadbrootの後、デバイスがオンラインに戻る前に特定のアクションを実行する必要がある場合はオーバーライドします。デフォルトの実装には、追加アクションは含まれていません。 adb rootは、この段階で有効になるとは限りません。
投げる |
---|
DeviceNotAvailableException | |
postAdbUnrootAction
public void postAdbUnrootAction ()
adb unrootの後、デバイスがオンラインに戻る前に、デバイスで特定のアクションを実行する必要がある場合はオーバーライドします。デフォルトの実装には、追加のアクションは含まれていません。 adb rootは、この段階で無効になるとは限りません。
投げる |
---|
DeviceNotAvailableException | |
postBootSetup
public void postBootSetup ()
投げる |
---|
DeviceNotAvailableException | |
postInvocationTearDown
public void postInvocationTearDown (Throwable exception)
パラメーター |
---|
exception | Throwable |
preInvocationSetup
public void preInvocationSetup (IBuildInfo info,
MultiMap<String, String> attributes)
パラメーター |
---|
info | IBuildInfo |
attributes | MultiMap |
投げる |
---|
DeviceNotAvailableException | |
TargetSetupError | |
pullDir
public boolean pullDir (String deviceFilePath,
File localDir)
パラメーター |
---|
deviceFilePath | String |
localDir | File |
投げる |
---|
DeviceNotAvailableException | |
pullFile
public boolean pullFile (String remoteFilePath,
File localFile)
パラメーター |
---|
remoteFilePath | String |
localFile | File |
投げる |
---|
DeviceNotAvailableException | |
pullFile
public File pullFile (String remoteFilePath)
パラメーター |
---|
remoteFilePath | String |
投げる |
---|
DeviceNotAvailableException | |
pullFileContents
public String pullFileContents (String remoteFilePath)
パラメーター |
---|
remoteFilePath | String |
投げる |
---|
DeviceNotAvailableException | |
pullFileFromExternal
public File pullFileFromExternal (String remoteFilePath)
パラメーター |
---|
remoteFilePath | String |
投げる |
---|
DeviceNotAvailableException | |
pushDir
public boolean pushDir (File localFileDir,
String deviceFilePath,
excludedDirectories)
パラメーター |
---|
localFileDir | File |
deviceFilePath | String |
excludedDirectories | |
投げる |
---|
DeviceNotAvailableException | |
pushDir
public boolean pushDir (File localFileDir,
String deviceFilePath)
パラメーター |
---|
localFileDir | File |
deviceFilePath | String |
投げる |
---|
DeviceNotAvailableException | |
pushFile
public boolean pushFile (File localFile,
String remoteFilePath)
パラメーター |
---|
localFile | File |
remoteFilePath | String |
投げる |
---|
DeviceNotAvailableException | |
pushString
public boolean pushString (String contents,
String remoteFilePath)
パラメーター |
---|
contents | String |
remoteFilePath | String |
投げる |
---|
DeviceNotAvailableException | |
リブート
public void reboot (String reason)
投げる |
---|
DeviceNotAvailableException | |
リブート
public void reboot ()
投げる |
---|
DeviceNotAvailableException | |
restartIntoBootloader
public void rebootIntoBootloader ()
投げる |
---|
DeviceNotAvailableException | |
restartIntoFastbootd
public void rebootIntoFastbootd ()
投げる |
---|
DeviceNotAvailableException | |
restartIntoRecovery
public void rebootIntoRecovery ()
投げる |
---|
DeviceNotAvailableException | |
restartIntoSideload
public void rebootIntoSideload ()
投げる |
---|
DeviceNotAvailableException | |
restartIntoSideload
public void rebootIntoSideload (boolean autoReboot)
投げる |
---|
DeviceNotAvailableException | |
restartUntilOnline
public void rebootUntilOnline ()
投げる |
---|
DeviceNotAvailableException | |
restartUntilOnline
public void rebootUntilOnline (String reason)
投げる |
---|
DeviceNotAvailableException | |
restartUserspace
public void rebootUserspace ()
投げる |
---|
DeviceNotAvailableException | |
restartUserspaceUntilOnline
public void rebootUserspaceUntilOnline ()
投げる |
---|
DeviceNotAvailableException | |
RecoverDevice
public void recoverDevice ()
デバイス通信の回復を試みます。
投げる |
---|
DeviceNotAvailableException | デバイスが利用できなくなった場合 |
remountSystemWritable
public void remountSystemWritable ()
投げる |
---|
DeviceNotAvailableException | |
remountVendorWritable
public void remountVendorWritable ()
投げる |
---|
DeviceNotAvailableException | |
removeAdmin
public boolean removeAdmin (String componentName,
int userId)
パラメーター |
---|
componentName | String |
userId | int |
投げる |
---|
DeviceNotAvailableException | |
removeOwners
public void removeOwners ()
投げる |
---|
DeviceNotAvailableException | |
removeUser
public boolean removeUser (int userId)
投げる |
---|
DeviceNotAvailableException | |
resetContentProviderSetup
public void resetContentProviderSetup ()
コンテンツプロバイダー設定のフラグをリセットして、再度トリガーします。
runInstrumentationTests
public boolean runInstrumentationTests (IRemoteAndroidTestRunner runner,
ITestLifeCycleReceiver... listeners)
パラメーター |
---|
runner | IRemoteAndroidTestRunner |
listeners | ITestLifeCycleReceiver |
投げる |
---|
DeviceNotAvailableException | |
runInstrumentationTests
public boolean runInstrumentationTests (IRemoteAndroidTestRunner runner,
listeners)
パラメーター |
---|
runner | IRemoteAndroidTestRunner |
listeners | |
投げる |
---|
DeviceNotAvailableException | |
runInstrumentationTestsAsUser
public boolean runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner,
int userId,
ITestLifeCycleReceiver... listeners)
パラメーター |
---|
runner | IRemoteAndroidTestRunner |
userId | int |
listeners | ITestLifeCycleReceiver |
投げる |
---|
DeviceNotAvailableException | |
runInstrumentationTestsAsUser
public boolean runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner,
int userId,
listeners)
パラメーター |
---|
runner | IRemoteAndroidTestRunner |
userId | int |
listeners | |
投げる |
---|
DeviceNotAvailableException | |
setDate
public void setDate (Date date)
投げる |
---|
DeviceNotAvailableException | |
setDeviceOwner
public boolean setDeviceOwner (String componentName,
int userId)
パラメーター |
---|
componentName | String |
userId | int |
投げる |
---|
DeviceNotAvailableException | |
setDeviceState
public void setDeviceState (TestDeviceState deviceState)
パラメーター |
---|
deviceState | TestDeviceState |
setEmulatorProcess
public void setEmulatorProcess (Process p)
setFastbootEnabled
public void setFastbootEnabled (boolean fastbootEnabled)
パラメーター |
---|
fastbootEnabled | boolean |
setFastbootPath
public void setFastbootPath (String fastbootPath)
パラメーター |
---|
fastbootPath | String |
setIDevice
public void setIDevice (IDevice newDevice)
setOptions
public void setOptions (TestDeviceOptions options)
パラメーター |
---|
options | TestDeviceOptions |
setProperty
public boolean setProperty (String propKey,
String propValue)
パラメーター |
---|
propKey | String |
propValue | String |
投げる |
---|
DeviceNotAvailableException | |
setRecovery
public void setRecovery (IDeviceRecovery recovery)
パラメーター |
---|
recovery | IDeviceRecovery |
setRecoveryMode
public void setRecoveryMode (ITestDevice.RecoveryMode mode)
パラメーター |
---|
mode | ITestDevice.RecoveryMode |
setSetting
public void setSetting (String namespace,
String key,
String value)
パラメーター |
---|
namespace | String |
key | String |
value | String |
投げる |
---|
DeviceNotAvailableException | |
setSetting
public void setSetting (int userId,
String namespace,
String key,
String value)
パラメーター |
---|
userId | int |
namespace | String |
key | String |
value | String |
投げる |
---|
DeviceNotAvailableException | |
setUseFastbootErase
public void setUseFastbootErase (boolean useFastbootErase)
パラメーター |
---|
useFastbootErase | boolean |
startLogcat
public void startLogcat ()
startUser
public boolean startUser (int userId)
投げる |
---|
DeviceNotAvailableException | |
startUser
public boolean startUser (int userId,
boolean waitFlag)
パラメーター |
---|
userId | int |
waitFlag | boolean |
投げる |
---|
DeviceNotAvailableException | |
stopEmulatorOutput
public void stopEmulatorOutput ()
stopLogcat
public void stopLogcat ()
stopUser
public boolean stopUser (int userId)
投げる |
---|
DeviceNotAvailableException | |
stopUser
public boolean stopUser (int userId,
boolean waitFlag,
boolean forceFlag)
パラメーター |
---|
userId | int |
waitFlag | boolean |
forceFlag | boolean |
投げる |
---|
DeviceNotAvailableException | |
switchToAdbTcp
public String switchToAdbTcp ()
投げる |
---|
DeviceNotAvailableException | |
switchToAdbUsb
public boolean switchToAdbUsb ()
投げる |
---|
DeviceNotAvailableException | |
switchUser
public boolean switchUser (int userId)
投げる |
---|
DeviceNotAvailableException | |
switchUser
public boolean switchUser (int userId,
long timeout)
パラメーター |
---|
userId | int |
timeout | long |
投げる |
---|
DeviceNotAvailableException | |
syncFiles
public boolean syncFiles (File localFileDir,
String deviceFilePath)
パラメーター |
---|
localFileDir | File |
deviceFilePath | String |
投げる |
---|
DeviceNotAvailableException | |
takeBugreport
public Bugreport takeBugreport ()
unencryptDevice
public boolean unencryptDevice ()
投げる |
---|
DeviceNotAvailableException | |
UninstallPackage
public String uninstallPackage (String packageName)
投げる |
---|
DeviceNotAvailableException | |
UninstallPackageForUser
public String uninstallPackageForUser (String packageName,
int userId)
パラメーター |
---|
packageName | String |
userId | int |
投げる |
---|
DeviceNotAvailableException | |
ロック解除デバイス
public boolean unlockDevice ()
投げる |
---|
DeviceNotAvailableException | |
waitForBootComplete
public boolean waitForBootComplete (long timeOut)
投げる |
---|
DeviceNotAvailableException | |
waitForDeviceAvailable
public void waitForDeviceAvailable ()
投げる |
---|
DeviceNotAvailableException | |
waitForDeviceAvailable
public void waitForDeviceAvailable (long waitTime)
投げる |
---|
DeviceNotAvailableException | |
waitForDeviceInRecovery
public boolean waitForDeviceInRecovery (long waitTime)
waitForDeviceInSideload
public boolean waitForDeviceInSideload (long waitTime)
waitForDeviceNotAvailable
public boolean waitForDeviceNotAvailable (long waitTime)
waitForDeviceOnline
public void waitForDeviceOnline ()
投げる |
---|
DeviceNotAvailableException | |
waitForDeviceOnline
public void waitForDeviceOnline (long waitTime)
投げる |
---|
DeviceNotAvailableException | |
waitForDeviceShell
public boolean waitForDeviceShell (long waitTime)
保護されたメソッド
checkApiLevelAgainst
protected void checkApiLevelAgainst (String feature,
int strictMinLevel)
パラメーター |
---|
feature | String |
strictMinLevel | int |
doAdbReboot
protected void doAdbReboot (NativeDevice.RebootMode rebootMode,
String reason)
adbの再起動を実行します。
パラメーター |
---|
rebootMode | NativeDevice.RebootMode :このリブートのモード。 |
reason | String :この再起動のために。 |
投げる |
---|
DeviceNotAvailableException | |
sureRuntimePermissionSupported
protected void ensureRuntimePermissionSupported ()
ランタイム権限がサポートされていない場合に例外をスローするヘルパーメソッド
投げる |
---|
DeviceNotAvailableException | |
getBugreportInternal
protected InputStreamSource getBugreportInternal ()
getBugreportzInternal
protected File getBugreportzInternal ()
bugreportz zipファイルを取得するために、内部のヘルパーメソッドERROR(/File)
。
getRunUtil
protected IRunUtil getRunUtil ()
取得RunUtil
使用にインスタンスを。
internalGetProperty
protected String internalGetProperty (String propName,
String fastbootVar,
String description)
デフォルトでddmlibキャッシュからデバイスプロパティを取得し、デバイスがFastbootにあるかどうかに応じて、 `adb shellgetprop`または` fastbootgetvar`のいずれかにフォールバックします。
パラメーター |
---|
propName | String :adbのシェルgetprop` `で返されるデバイスのプロパティの名前 |
fastbootVar | String :クエリと同等のfastboot変数の名前。場合null 、FASTBOOTクエリが試行されることはありません |
description | String :変数の簡単な説明。最初の文字は大文字にする必要があります。 |
戻り値 |
---|
String | おそらくストリング、 null 指定されたプロパティの値を含むか、空 |
投げる |
---|
DeviceNotAvailableException | |
isNewer
protected boolean isNewer (File localFile,
IFileEntry entry)
戻りtrue
ローカルファイルがリモートファイルよりも新しい場合。 IFileEntry
分に正確で、同じ時間の場合には、ファイルが新しいとみなされます。
パラメーター |
---|
localFile | File |
entry | IFileEntry |
protected boolean performDeviceAction (String actionDescription,
com.android.tradefed.device.NativeDevice.DeviceAction action,
int retryAttempts)
このデバイスでアクションを実行します。デバイスの回復を試み、アクションが失敗した場合はオプションでコマンドを再試行します。
パラメーター |
---|
actionDescription | String :実行されるアクションの短い説明。ロギングの目的でのみ使用されます。 |
action | com.android.tradefed.device.NativeDevice.DeviceAction :アクションが実行されます |
retryAttempts | int :それが失敗したが、回復が成功した場合、アクションのために作るために再試行 |
戻り値 |
---|
boolean | true アクションが正常に実行された場合 |
投げる |
---|
DeviceNotAvailableException | 回復の試みが失敗した場合、または最大の試みが成功せずに行われた場合 |
postAdbReboot
protected void postAdbReboot ()
再起動後に実行できる追加のアクション。
投げる |
---|
DeviceNotAvailableException | |
prePostBootSetup
protected void prePostBootSetup ()
各デバイスタイプ(AndroidNativeDevice、TestDevice)が、特定の起動後のセットアップでこのメソッドをオーバーライドできるようにします。
投げる |
---|
DeviceNotAvailableException | |
setClock
protected void setClock (Clock clock)
使用するClockインスタンスを設定します。
setLogStartDelay
protected void setLogStartDelay (int delay)
オンラインデバイスのlogcatキャプチャを開始する前に待機する時間をミリ秒単位で設定します。
waitForDeviceNotAvailable
protected void waitForDeviceNotAvailable (String operationDesc,
long time)
パラメーター |
---|
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":"必要な情報がない"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"複雑すぎる / 手順が多すぎる"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"最新ではない"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻訳に関する問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"サンプル / コードに問題がある"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"その他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"わかりやすい"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"問題の解決に役立った"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"その他"
}]