중첩 클래스 |
---|
class | NativeDevice.AdbAction OS 'adb ....' 명령을 실행하기 위한 DeviceAction . |
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 () 기기가 adb 루트 이후 및 기기가 다시 온라인 상태가 되기 전에 특정 작업을 수행해야 하는 경우 재정의합니다. |
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) |
보호된 방법 |
---|
void | checkApiLevelAgainst (String feature, int strictMinLevel) |
NativeDevice.RebootDeviceAction | createRebootDeviceAction ( NativeDevice.RebootMode rebootMode, String reason) 재부팅 작업을 수행할 때 사용할 RebootDeviceAction 을 만듭니다. |
void | doAdbReboot ( NativeDevice.RebootMode rebootMode, String reason) adb 재부팅을 수행합니다. |
void | ensureRuntimePermissionSupported () 런타임 권한이 지원되지 않는 경우 예외를 throw하는 도우미 메서드 |
InputStreamSource | getBugreportInternal () |
File | getBugreportzInternal () bugreportz zip 파일을 ERROR(/File) 로 가져오는 내부 도우미 메서드입니다. |
IRunUtil | getRunUtil () 사용할 RunUtil 인스턴스를 가져옵니다. |
String | internalGetProperty (String propName, String fastbootVar, String description) 기본적으로 ddmlib 캐시에서 장치 속성을 가져오고 장치가 Fastboot에 있는지 여부에 따라 `adb shell getprop` 또는 `fastboot getvar`로 폴백합니다. |
boolean | isNewer (File localFile, IFileEntry entry) 로컬 파일이 원격 파일보다 최신 true 를 반환합니다. |
boolean | performDeviceAction (String actionDescription, com.android.tradefed.device.NativeDevice.DeviceAction action, int retryAttempts) 이 장치에서 작업을 수행합니다. |
void | postAdbReboot () 재부팅 후 수행할 수 있는 가능한 추가 작업입니다. |
void | prePostBootSetup () 각 기기 유형(AndroidNativeDevice, TestDevice)이 특정 사후 부팅 설정에 대해 이 메서드를 재정의할 수 있도록 합니다. |
void | setClock (Clock clock) 사용할 Clock 인스턴스를 설정합니다. |
void | setLogStartDelay (int delay) 온라인 장치에 대한 logcat 캡처를 시작하기 전에 대기할 시간을 ms 단위로 설정합니다. |
void | waitForDeviceNotAvailable (String operationDesc, long time) |
상수
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_CARD
protected static final String SD_CARD
STORAGE_EMULATED
protected static final String STORAGE_EMULATED
m옵션
protected TestDeviceOptions mOptions
mStateMonitor
protected final IDeviceStateMonitor mStateMonitor
공개 생성자
네이티브 디바이스
public NativeDevice (IDevice device,
IDeviceStateMonitor stateMonitor,
IDeviceMonitor allocationMonitor)
TestDevice
를 만듭니다.
공개 메서드
checkApiLevelAgainstNextRelease
public boolean checkApiLevelAgainstNextRelease (int strictMinLevel)
던지다 |
---|
DeviceNotAvailableException | |
연결성 확인
public boolean checkConnectivity ()
던지다 |
---|
DeviceNotAvailableException | |
clearErrorDialogs
public boolean clearErrorDialogs ()
던지다 |
---|
DeviceNotAvailableException | |
clearLastConnectedWifi네트워크
public void clearLastConnectedWifiNetwork ()
클리어로그캣
public void clearLogcat ()
ConnectToWifi네트워크
public boolean connectToWifiNetwork (String wifiSsid,
String wifiPsk)
매개변수 |
---|
wifiSsid | String |
wifiPsk | String |
던지다 |
---|
DeviceNotAvailableException | |
ConnectToWifi네트워크
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 | |
deviceSoftRestarted부터
public boolean deviceSoftRestartedSince (long utcEpochTime,
TimeUnit timeUnit)
매개변수 |
---|
utcEpochTime | long |
timeUnit | TimeUnit |
던지다 |
---|
DeviceNotAvailableException | |
비활성화AdbRoot
public boolean disableAdbRoot ()
던지다 |
---|
DeviceNotAvailableException | |
비활성화 키가드
public void disableKeyguard ()
던지다 |
---|
DeviceNotAvailableException | |
네트워크 모니터 비활성화
public boolean disableNetworkMonitor ()
던지다 |
---|
DeviceNotAvailableException | |
Wi-Fi에서 연결 해제
public boolean disconnectFromWifi ()
던지다 |
---|
DeviceNotAvailableException | |
파일 존재
public boolean doesFileExist (String deviceFilePath)
매개변수 |
---|
deviceFilePath | String |
던지다 |
---|
DeviceNotAvailableException | |
덤프힙
public File dumpHeap (String process,
String devicePath)
매개변수 |
---|
process | String |
devicePath | String |
던지다 |
---|
DeviceNotAvailableException | |
enableAdbRoot
public boolean enableAdbRoot ()
던지다 |
---|
DeviceNotAvailableException | |
네트워크 모니터 활성화
public boolean enableNetworkMonitor ()
던지다 |
---|
DeviceNotAvailableException | |
암호화장치
public boolean encryptDevice (boolean inplace)
던지다 |
---|
DeviceNotAvailableException | |
실행Adb명령
public String executeAdbCommand (long timeout,
String... cmdArgs)
매개변수 |
---|
timeout | long |
cmdArgs | String |
던지다 |
---|
DeviceNotAvailableException | |
실행Adb명령
public String executeAdbCommand (String... cmdArgs)
던지다 |
---|
DeviceNotAvailableException | |
빠른 부팅 명령 실행
public CommandResult executeFastbootCommand (String... cmdArgs)
던지다 |
---|
DeviceNotAvailableException | |
빠른 부팅 명령 실행
public CommandResult executeFastbootCommand (long timeout,
String... cmdArgs)
매개변수 |
---|
timeout | long |
cmdArgs | String |
던지다 |
---|
DeviceNotAvailableException | |
긴빠른부트명령 실행
public CommandResult executeLongFastbootCommand (String... cmdArgs)
던지다 |
---|
DeviceNotAvailableException | |
쉘 명령 실행
public String executeShellCommand (String command)
던지다 |
---|
DeviceNotAvailableException | |
쉘 명령 실행
public void executeShellCommand (String command,
IShellOutputReceiver receiver,
long maxTimeToOutputShellResponse,
TimeUnit timeUnit,
int retryAttempts)
매개변수 |
---|
command | String |
receiver | IShellOutputReceiver |
maxTimeToOutputShellResponse | long |
timeUnit | TimeUnit |
retryAttempts | int |
던지다 |
---|
DeviceNotAvailableException | |
쉘 명령 실행
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 | |
쉘 명령 실행
public void executeShellCommand (String command,
IShellOutputReceiver receiver)
매개변수 |
---|
command | String |
receiver | IShellOutputReceiver |
던지다 |
---|
DeviceNotAvailableException | |
실행ShellV2명령
public CommandResult executeShellV2Command (String cmd)
던지다 |
---|
DeviceNotAvailableException | |
실행ShellV2명령
public CommandResult executeShellV2Command (String cmd,
OutputStream pipeToOutput)
매개변수 |
---|
cmd | String |
pipeToOutput | OutputStream |
던지다 |
---|
DeviceNotAvailableException | |
실행ShellV2명령
public CommandResult executeShellV2Command (String cmd,
File pipeAsInput)
매개변수 |
---|
cmd | String |
pipeAsInput | File |
던지다 |
---|
DeviceNotAvailableException | |
실행ShellV2명령
public CommandResult executeShellV2Command (String cmd,
long maxTimeoutForCommand,
TimeUnit timeUnit,
int retryAttempts)
매개변수 |
---|
cmd | String |
maxTimeoutForCommand | long |
timeUnit | TimeUnit |
retryAttempts | int |
던지다 |
---|
DeviceNotAvailableException | |
실행ShellV2명령
public CommandResult executeShellV2Command (String cmd,
long maxTimeoutForCommand,
TimeUnit timeUnit)
매개변수 |
---|
cmd | String |
maxTimeoutForCommand | long |
timeUnit | TimeUnit |
던지다 |
---|
DeviceNotAvailableException | |
실행ShellV2명령
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 | |
실행ShellV2명령
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 | |
fastbootWipe파티션
public CommandResult fastbootWipePartition (String partition)
던지다 |
---|
DeviceNotAvailableException | |
getActive에이펙스
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 | |
getApp 패키지 정보
public PackageInfo getAppPackageInfo (String packageName)
던지다 |
---|
DeviceNotAvailableException | |
getApp 패키지 정보
public getAppPackageInfos ()
던지다 |
---|
DeviceNotAvailableException | |
getBasebandVersion
public String getBasebandVersion ()
던지다 |
---|
DeviceNotAvailableException | |
배터리 가져오기
public Integer getBattery ()
getBoolean속성
public boolean getBooleanProperty (String name,
boolean defaultValue)
매개변수 |
---|
name | String |
defaultValue | boolean |
던지다 |
---|
DeviceNotAvailableException | |
getBootHistory
public getBootHistory ()
던지다 |
---|
DeviceNotAvailableException | |
getBootHistory 이후
public getBootHistorySince (long utcEpochTime,
TimeUnit timeUnit)
매개변수 |
---|
utcEpochTime | long |
timeUnit | TimeUnit |
던지다 |
---|
DeviceNotAvailableException | |
getBootloader 버전
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 | |
getFastboot경로
public String getFastbootPath ()
getFastboot 제품 유형
public String getFastbootProductType ()
던지다 |
---|
DeviceNotAvailableException | |
getFastbootProductVariant
public String getFastbootProductVariant ()
던지다 |
---|
DeviceNotAvailableException | |
getFastboot일련번호
public String getFastbootSerialNumber ()
getFastboot변수
public String getFastbootVariable (String variableName)
던지다 |
---|
DeviceNotAvailableException | |
getFastboot버전
public String getFastbootVersion ()
getFileEntry
public IFileEntry getFileEntry (String path)
던지다 |
---|
DeviceNotAvailableException | |
getFileEntry
public IFileEntry getFileEntry (FileListingService.FileEntry entry)
루트가 아닌 경로에서 FileEntry
를 가져오는 비공식 도우미입니다. FIXME: 모든 경로에서 사용할 수 있도록 FileEntry 시스템을 리팩터링합니다. (심지어 루트가 아닌 경우에도).
매개변수 |
---|
entry | FileListingService.FileEntry : FileEntry 가 요구하는 것처럼 FileEntry가 반드시 루트일 필요는 없습니다. |
던지다 |
---|
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 ()
getLogcat 이후
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 | |
스크린샷 얻기
public InputStreamSource getScreenshot (String format)
던지다 |
---|
DeviceNotAvailableException | |
스크린샷 얻기
public InputStreamSource getScreenshot (long displayId)
던지다 |
---|
DeviceNotAvailableException | |
스크린샷 얻기
public InputStreamSource getScreenshot (String format,
boolean rescale)
매개변수 |
---|
format | String |
rescale | boolean |
던지다 |
---|
DeviceNotAvailableException | |
스크린샷 얻기
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 | |
getTotal메모리
public long getTotalMemory ()
getUninstallablePackageNames
public getUninstallablePackageNames ()
던지다 |
---|
DeviceNotAvailableException | |
getUse빠른 부팅 지우기
public boolean getUseFastbootErase ()
getUserFlags
public int getUserFlags (int userId)
던지다 |
---|
DeviceNotAvailableException | |
getUserInfos
public getUserInfos ()
던지다 |
---|
DeviceNotAvailableException | |
getUserSerialNumber
public int getUserSerialNumber (int userId)
던지다 |
---|
DeviceNotAvailableException | |
핸들 할당 이벤트
public IManagedTestDevice.DeviceEventResponse handleAllocationEvent (DeviceEvent event)
이 장치를 새 할당 상태로 전환하거나 전환하지 않을 수 있는 DeviceEvent를 처리합니다.
보고 |
---|
IManagedTestDevice.DeviceEventResponse | |
hasFeature
public boolean hasFeature (String feature)
던지다 |
---|
DeviceNotAvailableException | |
설치 패키지
public String installPackage (File packageFile,
boolean reinstall,
String... extraArgs)
매개변수 |
---|
packageFile | File |
reinstall | boolean |
extraArgs | String |
던지다 |
---|
DeviceNotAvailableException | |
설치 패키지
public String installPackage (File packageFile,
boolean reinstall,
boolean grantPermissions,
String... extraArgs)
매개변수 |
---|
packageFile | File |
reinstall | boolean |
grantPermissions | boolean |
extraArgs | String |
던지다 |
---|
DeviceNotAvailableException | |
사용자 설치 패키지
public String installPackageForUser (File packageFile,
boolean reinstall,
int userId,
String... extraArgs)
매개변수 |
---|
packageFile | File |
reinstall | boolean |
userId | int |
extraArgs | String |
던지다 |
---|
DeviceNotAvailableException | |
사용자 설치 패키지
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 ()
isAppEnumeration지원됨
public boolean isAppEnumerationSupported ()
던지다 |
---|
DeviceNotAvailableException | |
isDeviceEncrypted
public boolean isDeviceEncrypted ()
던지다 |
---|
DeviceNotAvailableException | |
isDirectory
public boolean isDirectory (String path)
던지다 |
---|
DeviceNotAvailableException | |
isEnableAdbRoot
public boolean isEnableAdbRoot ()
보고 |
---|
boolean | 장치에서 adb 루트를 활성화해야 하는 경우 true |
isEncryptionSupported
public boolean isEncryptionSupported ()
던지다 |
---|
DeviceNotAvailableException | |
isExecutable
public boolean isExecutable (String fullPath)
던지다 |
---|
DeviceNotAvailableException | |
isFastbootEnabled
public boolean isFastbootEnabled ()
머리 없는
public boolean isHeadless ()
던지다 |
---|
DeviceNotAvailableException | |
isMultiUserSupported
public boolean isMultiUserSupported ()
던지다 |
---|
DeviceNotAvailableException | |
isPackage설치됨
public boolean isPackageInstalled (String packageName,
String userId)
매개변수 |
---|
packageName | String |
userId | String |
던지다 |
---|
DeviceNotAvailableException | |
isPackage설치됨
public boolean isPackageInstalled (String packageName)
던지다 |
---|
DeviceNotAvailableException | |
isRuntimePermission 지원됨
public boolean isRuntimePermissionSupported ()
던지다 |
---|
DeviceNotAvailableException | |
isStateBootloaderOrFastbootd
public boolean isStateBootloaderOrFastbootd ()
isUserRunning
public boolean isUserRunning (int userId)
던지다 |
---|
DeviceNotAvailableException | |
isUserSecondary
public boolean isUserSecondary (int userId)
던지다 |
---|
DeviceNotAvailableException | |
isWifi활성화
public boolean isWifiEnabled ()
던지다 |
---|
DeviceNotAvailableException | |
목록 표시 ID
public listDisplayIds ()
던지다 |
---|
DeviceNotAvailableException | |
목록사용자
public listUsers ()
던지다 |
---|
DeviceNotAvailableException | |
로그버그 보고
public boolean logBugreport (String dataName,
ITestLogger listener)
매개변수 |
---|
dataName | String |
listener | ITestLogger |
로그인 장치
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 ()
기기가 adb 루트 이후 및 기기가 다시 온라인 상태가 되기 전에 특정 작업을 수행해야 하는 경우 재정의합니다. 기본 구현에는 추가 작업이 포함되지 않습니다. adb 루트는 이 단계에서 활성화되지 않을 수 있습니다.
던지다 |
---|
DeviceNotAvailableException | |
postAdbUnroot액션
public void postAdbUnrootAction ()
장치가 adb unroot 후 및 장치가 다시 온라인 상태가 되기 전에 수행할 특정 작업이 필요한 경우 재정의합니다. 기본 구현에는 추가 작업이 포함되지 않습니다. adb root는 이 단계에서 비활성화가 보장되지 않습니다.
던지다 |
---|
DeviceNotAvailableException | |
postBootSetup
public void postBootSetup ()
던지다 |
---|
DeviceNotAvailableException | |
postInvocationTearDown
public void postInvocationTearDown (Throwable exception)
사전 호출 설정
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 | |
풀파일
public boolean pullFile (String remoteFilePath,
File localFile)
매개변수 |
---|
remoteFilePath | String |
localFile | File |
던지다 |
---|
DeviceNotAvailableException | |
풀파일
public File pullFile (String remoteFilePath)
매개변수 |
---|
remoteFilePath | String |
던지다 |
---|
DeviceNotAvailableException | |
pullFile내용
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 | |
푸시파일
public boolean pushFile (File localFile,
String remoteFilePath)
매개변수 |
---|
localFile | File |
remoteFilePath | String |
던지다 |
---|
DeviceNotAvailableException | |
푸시스트링
public boolean pushString (String contents,
String remoteFilePath)
매개변수 |
---|
contents | String |
remoteFilePath | String |
던지다 |
---|
DeviceNotAvailableException | |
재부팅
public void reboot (String reason)
던지다 |
---|
DeviceNotAvailableException | |
재부팅
public void reboot ()
던지다 |
---|
DeviceNotAvailableException | |
부트로더로 재부팅
public void rebootIntoBootloader ()
던지다 |
---|
DeviceNotAvailableException | |
빠른 부팅으로 재부팅
public void rebootIntoFastbootd ()
던지다 |
---|
DeviceNotAvailableException | |
재부팅으로 복구
public void rebootIntoRecovery ()
던지다 |
---|
DeviceNotAvailableException | |
사이드로드로 재부팅
public void rebootIntoSideload ()
던지다 |
---|
DeviceNotAvailableException | |
사이드로드로 재부팅
public void rebootIntoSideload (boolean autoReboot)
던지다 |
---|
DeviceNotAvailableException | |
재부팅까지 온라인
public void rebootUntilOnline ()
던지다 |
---|
DeviceNotAvailableException | |
재부팅까지 온라인
public void rebootUntilOnline (String reason)
던지다 |
---|
DeviceNotAvailableException | |
재부팅 사용자 공간
public void rebootUserspace ()
던지다 |
---|
DeviceNotAvailableException | |
재부팅 사용자 공간까지온라인
public void rebootUserspaceUntilOnline ()
던지다 |
---|
DeviceNotAvailableException | |
복구 장치
public void recoverDevice ()
장치 통신 복구를 시도합니다.
던지다 |
---|
DeviceNotAvailableException | 장치를 더 이상 사용할 수 없는 경우 |
remountSystemWritable
public void remountSystemWritable ()
던지다 |
---|
DeviceNotAvailableException | |
remountVendorWritable
public void remountVendorWritable ()
던지다 |
---|
DeviceNotAvailableException | |
제거관리자
public boolean removeAdmin (String componentName,
int userId)
매개변수 |
---|
componentName | String |
userId | int |
던지다 |
---|
DeviceNotAvailableException | |
소유자 제거
public void removeOwners ()
던지다 |
---|
DeviceNotAvailableException | |
사용자 제거
public boolean removeUser (int userId)
던지다 |
---|
DeviceNotAvailableException | |
재설정 콘텐츠 제공자 설정
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 | |
날짜 설정
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)
setFastboot활성화됨
public void setFastbootEnabled (boolean fastbootEnabled)
매개변수 |
---|
fastbootEnabled | boolean |
setFastboot경로
public void setFastbootPath (String fastbootPath)
세트아이디바이스
public void setIDevice (IDevice newDevice)
세트옵션
public void setOptions (TestDeviceOptions options)
매개변수 |
---|
options | TestDeviceOptions |
setProperty
public boolean setProperty (String propKey,
String propValue)
매개변수 |
---|
propKey | String |
propValue | String |
던지다 |
---|
DeviceNotAvailableException | |
세트복구
public void setRecovery (IDeviceRecovery recovery)
매개변수 |
---|
recovery | IDeviceRecovery |
복구 모드 설정
public void setRecoveryMode (ITestDevice.RecoveryMode mode)
매개변수 |
---|
mode | ITestDevice.RecoveryMode |
set설정
public void setSetting (String namespace,
String key,
String value)
매개변수 |
---|
namespace | String |
key | String |
value | String |
던지다 |
---|
DeviceNotAvailableException | |
set설정
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 |
시작 로그캣
public void startLogcat ()
시작 사용자
public boolean startUser (int userId)
던지다 |
---|
DeviceNotAvailableException | |
시작 사용자
public boolean startUser (int userId,
boolean waitFlag)
매개변수 |
---|
userId | int |
waitFlag | boolean |
던지다 |
---|
DeviceNotAvailableException | |
stopEmulator출력
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 | |
스위치로 AdbUsb
public boolean switchToAdbUsb ()
던지다 |
---|
DeviceNotAvailableException | |
스위치 사용자
public boolean switchUser (int userId)
던지다 |
---|
DeviceNotAvailableException | |
스위치 사용자
public boolean switchUser (int userId,
long timeout)
매개변수 |
---|
userId | int |
timeout | long |
던지다 |
---|
DeviceNotAvailableException | |
동기화 파일
public boolean syncFiles (File localFileDir,
String deviceFilePath)
매개변수 |
---|
localFileDir | File |
deviceFilePath | String |
던지다 |
---|
DeviceNotAvailableException | |
테이크버그 리포트
public Bugreport takeBugreport ()
암호화 해제 장치
public boolean unencryptDevice ()
던지다 |
---|
DeviceNotAvailableException | |
패키지 제거
public String uninstallPackage (String packageName)
던지다 |
---|
DeviceNotAvailableException | |
사용자 제거 패키지
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)
장치 온라인 대기
public void waitForDeviceOnline ()
던지다 |
---|
DeviceNotAvailableException | |
장치 온라인 대기
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 | |
보장 런타임 권한 지원
protected void ensureRuntimePermissionSupported ()
런타임 권한이 지원되지 않는 경우 예외를 throw하는 도우미 메서드
던지다 |
---|
DeviceNotAvailableException | |
getBugreport내부
protected InputStreamSource getBugreportInternal ()
getBugreportz내부
protected File getBugreportzInternal ()
bugreportz zip 파일을 ERROR(/File)
로 가져오는 내부 도우미 메서드입니다.
getRunUtil
protected IRunUtil getRunUtil ()
사용할 RunUtil
인스턴스를 가져옵니다.
내부 GetProperty
protected String internalGetProperty (String propName,
String fastbootVar,
String description)
기본적으로 ddmlib 캐시에서 장치 속성을 가져오고 장치가 Fastboot에 있는지 여부에 따라 `adb shell getprop` 또는 `fastboot getvar`로 폴백합니다.
매개변수 |
---|
propName | String : `adb shell 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 | |
사전 사후 부팅 설정
protected void prePostBootSetup ()
각 기기 유형(AndroidNativeDevice, TestDevice)이 특정 사후 부팅 설정에 대해 이 메서드를 재정의할 수 있도록 합니다.
던지다 |
---|
DeviceNotAvailableException | |
시계 설정
protected void setClock (Clock clock)
사용할 Clock 인스턴스를 설정합니다.
setLogStartDelay
protected void setLogStartDelay (int delay)
온라인 장치에 대한 logcat 캡처를 시작하기 전에 대기할 시간을 ms 단위로 설정합니다.
매개변수 |
---|
delay | int : ms 단위의 지연 |
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 2022-07-06 UTC.
[]
[]