İç içe geçmiş sınıflar |
---|
class | NativeDevice.AdbAction Bir işletim sistemi 'adb ....' komutunu çalıştırmak için bir DeviceAction . |
class | NativeDevice.AdbShellAction |
class | NativeDevice.RebootDeviceAction Bir cihazı yeniden başlatmak için DeviceAction . |
enum | NativeDevice.RebootMode Bir yeniden başlatma modu. |
Genel yöntemler |
---|
boolean | checkApiLevelAgainstNextRelease (int strictMinLevel) |
boolean | checkConnectivity () |
boolean | clearErrorDialogs () |
void | clearLastConnectedWifiNetwork () |
void | clearLogcat () |
boolean | connectToWifiNetwork (String wifiSsid, String wifiPsk) |
boolean | connectToWifiNetwork (String wifiSsid, String wifiPsk, boolean scanSsid) |
boolean | connectToWifiNetworkIfNeeded (String wifiSsid, String wifiPsk, boolean scanSsid) |
boolean | connectToWifiNetworkIfNeeded (String wifiSsid, String wifiPsk) |
int | createUser (String name, boolean guest, boolean ephemeral) |
int | createUser (String name) |
int | createUserNoThrow (String name) |
void | deleteFile (String deviceFilePath) |
boolean | deviceSoftRestarted (ProcessInfo prevSystemServerProcess) |
boolean | deviceSoftRestartedSince (long utcEpochTime, TimeUnit timeUnit) |
boolean | disableAdbRoot () |
void | disableKeyguard () |
boolean | disableNetworkMonitor () |
boolean | disconnectFromWifi () |
boolean | doesFileExist (String deviceFilePath) |
File | dumpHeap (String process, String devicePath) |
boolean | enableAdbRoot () |
boolean | enableNetworkMonitor () |
boolean | encryptDevice (boolean inplace) |
String | executeAdbCommand (long timeout, String... cmdArgs) |
String | executeAdbCommand (String... cmdArgs) |
CommandResult | executeFastbootCommand (String... cmdArgs) |
CommandResult | executeFastbootCommand (long timeout, String... cmdArgs) |
CommandResult | executeLongFastbootCommand (String... cmdArgs) |
String | executeShellCommand (String command) |
void | executeShellCommand (String command, IShellOutputReceiver receiver, long maxTimeToOutputShellResponse, TimeUnit timeUnit, int retryAttempts) |
void | executeShellCommand (String command, IShellOutputReceiver receiver, long maxTimeoutForCommand, long maxTimeToOutputShellResponse, TimeUnit timeUnit, int retryAttempts) |
void | executeShellCommand (String command, IShellOutputReceiver receiver) |
CommandResult | executeShellV2Command (String cmd) |
CommandResult | executeShellV2Command (String cmd, OutputStream pipeToOutput) |
CommandResult | executeShellV2Command (String cmd, File pipeAsInput) |
CommandResult | executeShellV2Command (String cmd, long maxTimeoutForCommand, TimeUnit timeUnit, int retryAttempts) |
CommandResult | executeShellV2Command (String cmd, long maxTimeoutForCommand, TimeUnit timeUnit) |
CommandResult | executeShellV2Command (String cmd, File pipeAsInput, OutputStream pipeToOutput, long maxTimeoutForCommand, TimeUnit timeUnit, int retryAttempts) |
CommandResult | executeShellV2Command (String cmd, File pipeAsInput, OutputStream pipeToOutput, OutputStream pipeToError, long maxTimeoutForCommand, TimeUnit timeUnit, int retryAttempts) |
CommandResult | fastbootWipePartition (String partition) |
| getActiveApexes () |
| getAllSettings (String namespace) |
DeviceAllocationState | getAllocationState () |
String | getAndroidId (int userId) |
| getAndroidIds () |
int | getApiLevel () |
PackageInfo | getAppPackageInfo (String packageName) |
| getAppPackageInfos () |
String | getBasebandVersion () |
Integer | getBattery () |
boolean | getBooleanProperty (String name, boolean defaultValue) |
| getBootHistory () |
| getBootHistorySince (long utcEpochTime, TimeUnit timeUnit) |
String | getBootloaderVersion () |
InputStreamSource | getBugreport () |
InputStreamSource | getBugreportz () |
String | getBuildAlias () |
String | getBuildFlavor () |
String | getBuildId () |
String | getBuildSigningKeys () |
DeviceDescriptor | getCachedDeviceDescriptor () |
String[] | getChildren (String path) |
DeviceFoldableState | getCurrentFoldableState () |
int | getCurrentUser () |
String | getDeviceClass () |
long | getDeviceDate () |
DeviceDescriptor | getDeviceDescriptor () |
TestDeviceState | getDeviceState () |
long | getDeviceTimeOffset (Date date) |
InputStreamSource | getEmulatorOutput () |
Process | getEmulatorProcess () |
final File | getExecuteShellCommandLog () Tüm executeShellCommand(String) günlüklerini içeren günlük. |
long | getExternalStoreFreeSpace () |
String | getFastbootPath () |
String | getFastbootProductType () |
String | getFastbootProductVariant () |
String | getFastbootSerialNumber () |
String | getFastbootVariable (String variableName) |
String | getFastbootVersion () |
IFileEntry | getFileEntry (String path) |
IFileEntry | getFileEntry (FileListingService.FileEntry entry) Root dışı bir yoldan FileEntry almak için resmi olmayan yardımcı. |
| getFoldableStates () |
IDevice | getIDevice () |
| getInstalledPackageNames () |
long | getIntProperty (String name, long defaultValue) |
String | getIpAddress () |
KeyguardControllerState | getKeyguardState () |
long | getLastExpectedRebootTimeMillis () |
int | getLaunchApiLevel () |
InputStreamSource | getLogcat () |
InputStreamSource | getLogcat (int maxBytes) |
InputStreamSource | getLogcatDump () |
InputStreamSource | getLogcatSince (long date) |
String | getMacAddress () |
| getMainlineModuleInfo () |
int | getMaxNumberOfRunningUsersSupported () |
int | getMaxNumberOfUsersSupported () |
IDeviceStateMonitor | getMonitor () |
String | getMountPoint (String mountName) |
ITestDevice.MountPointInfo | getMountPointInfo (String mountpoint) |
| getMountPointInfo () |
TestDeviceOptions | getOptions () |
long | getPartitionFreeSpace (String partition) |
Integer | getPrimaryUserId () |
ProcessInfo | getProcessByName (String processName) |
String | getProcessPid (String process) |
String | getProductType () |
String | getProductVariant () |
String | getProperty (String name) |
ITestDevice.RecoveryMode | getRecoveryMode () |
InputStreamSource | getScreenshot (String format) |
InputStreamSource | getScreenshot (long displayId) |
InputStreamSource | getScreenshot (String format, boolean rescale) |
InputStreamSource | getScreenshot () |
String | getSerialNumber () |
String | getSetting (int userId, String namespace, String key) |
String | getSetting (String namespace, String key) |
String | getSimOperator () |
String | getSimState () |
| getTombstones () |
long | getTotalMemory () |
| getUninstallablePackageNames () |
boolean | getUseFastbootErase () |
int | getUserFlags (int userId) |
| getUserInfos () |
int | getUserSerialNumber (int userId) |
IManagedTestDevice.DeviceEventResponse | handleAllocationEvent (DeviceEvent event) Bu cihazı yeni bir tahsis durumuna geçirebilecek veya geçirmeyebilecek DeviceEvent'i işleyin. |
boolean | hasFeature (String feature) |
String | installPackage (File packageFile, boolean reinstall, String... extraArgs) |
String | installPackage (File packageFile, boolean reinstall, boolean grantPermissions, String... extraArgs) |
String | installPackageForUser (File packageFile, boolean reinstall, int userId, String... extraArgs) |
String | installPackageForUser (File packageFile, boolean reinstall, boolean grantPermissions, int userId, String... extraArgs) |
boolean | isAdbRoot () |
boolean | isAdbTcp () |
boolean | isAppEnumerationSupported () |
boolean | isDeviceEncrypted () |
boolean | isDirectory (String path) |
boolean | isEnableAdbRoot () |
boolean | isEncryptionSupported () |
boolean | isExecutable (String fullPath) |
boolean | isFastbootEnabled () |
boolean | isHeadless () |
boolean | isMultiUserSupported () |
boolean | isPackageInstalled (String packageName, String userId) |
boolean | isPackageInstalled (String packageName) |
boolean | isRuntimePermissionSupported () |
boolean | isStateBootloaderOrFastbootd () |
boolean | isUserRunning (int userId) |
boolean | isUserSecondary (int userId) |
boolean | isWifiEnabled () |
| listDisplayIds () |
| listUsers () |
boolean | logBugreport (String dataName, ITestLogger listener) |
void | logOnDevice (String tag, Log.LogLevel level, String format, Object... args) |
void | nonBlockingReboot () |
void | postAdbRootAction () Cihaz, adb root'tan sonra ve cihaz tekrar çevrimiçi olmadan önce bazı belirli eylemlerin gerçekleştirilmesi gerekiyorsa geçersiz kılın. |
void | postAdbUnrootAction () Adb unroot işleminden sonra ve cihaz tekrar çevrimiçi olmadan önce cihazın bazı belirli eylemlere ihtiyacı varsa geçersiz kılın. |
void | postBootSetup () |
void | postInvocationTearDown (Throwable exception) |
void | preInvocationSetup (IBuildInfo info, MultiMap<String, String> attributes) |
boolean | pullDir (String deviceFilePath, File localDir) |
boolean | pullFile (String remoteFilePath, File localFile) |
File | pullFile (String remoteFilePath) |
String | pullFileContents (String remoteFilePath) |
File | pullFileFromExternal (String remoteFilePath) |
boolean | pushDir (File localFileDir, String deviceFilePath, excludedDirectories) pushDir (File localFileDir, String deviceFilePath, excludedDirectories) |
boolean | pushDir (File localFileDir, String deviceFilePath) |
boolean | pushFile (File localFile, String remoteFilePath) |
boolean | pushString (String contents, String remoteFilePath) |
void | reboot (String reason) |
void | reboot () |
void | rebootIntoBootloader () |
void | rebootIntoFastbootd () |
void | rebootIntoRecovery () |
void | rebootIntoSideload () |
void | rebootIntoSideload (boolean autoReboot) |
void | rebootUntilOnline () |
void | rebootUntilOnline (String reason) |
void | rebootUserspace () |
void | rebootUserspaceUntilOnline () |
void | recoverDevice () Cihaz iletişimini kurtarma girişimleri. |
void | remountSystemWritable () |
void | remountVendorWritable () |
boolean | removeAdmin (String componentName, int userId) |
void | removeOwners () |
boolean | removeUser (int userId) |
void | resetContentProviderSetup () Tekrar tetiklemek için içerik sağlayıcı kurulumunun bayrağını sıfırlayın. |
boolean | runInstrumentationTests (IRemoteAndroidTestRunner runner, ITestLifeCycleReceiver... listeners) |
boolean | runInstrumentationTests (IRemoteAndroidTestRunner runner, listeners) runInstrumentationTests (IRemoteAndroidTestRunner runner, listeners) |
boolean | runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner, int userId, ITestLifeCycleReceiver... listeners) |
boolean | runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner, int userId, listeners) runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner, int userId, listeners) |
void | setConfiguration ( IConfiguration configuration) Kullanımdaki IConfiguration enjekte eder. |
void | setDate (Date date) |
boolean | setDeviceOwner (String componentName, int userId) |
void | setDeviceState (TestDeviceState deviceState) |
void | setEmulatorOutputStream ( SizeLimitedOutputStream output) Emülatör için SizeLimitedOutputStream çıktıyı günlüğe kaydedecek şekilde ayarlayın |
void | setEmulatorProcess (Process p) |
void | setFastbootEnabled (boolean fastbootEnabled) |
void | setFastbootPath (String fastbootPath) |
void | setIDevice (IDevice newDevice) |
void | setOptions (TestDeviceOptions options) |
boolean | setProperty (String propKey, String propValue) |
void | setRecovery (IDeviceRecovery recovery) |
void | setRecoveryMode (ITestDevice.RecoveryMode mode) |
void | setSetting (String namespace, String key, String value) |
void | setSetting (int userId, String namespace, String key, String value) |
void | setUseFastbootErase (boolean useFastbootErase) |
void | startLogcat () |
boolean | startUser (int userId) |
boolean | startUser (int userId, boolean waitFlag) |
void | stopEmulatorOutput () |
void | stopLogcat () |
boolean | stopUser (int userId) |
boolean | stopUser (int userId, boolean waitFlag, boolean forceFlag) |
String | switchToAdbTcp () |
boolean | switchToAdbUsb () |
boolean | switchUser (int userId) |
boolean | switchUser (int userId, long timeout) |
boolean | syncFiles (File localFileDir, String deviceFilePath) |
Bugreport | takeBugreport () |
boolean | unencryptDevice () |
String | uninstallPackage (String packageName) |
String | uninstallPackageForUser (String packageName, int userId) |
boolean | unlockDevice () |
boolean | waitForBootComplete (long timeOut) |
void | waitForDeviceAvailable () |
void | waitForDeviceAvailable (long waitTime) |
boolean | waitForDeviceInRecovery (long waitTime) |
boolean | waitForDeviceInSideload (long waitTime) |
boolean | waitForDeviceNotAvailable (long waitTime) |
void | waitForDeviceOnline () |
void | waitForDeviceOnline (long waitTime) |
boolean | waitForDeviceShell (long waitTime) |
Korumalı yöntemler |
---|
void | checkApiLevelAgainst (String feature, int strictMinLevel) |
NativeDevice.RebootDeviceAction | createRebootDeviceAction ( NativeDevice.RebootMode rebootMode, String reason) Yeniden başlatma eylemi gerçekleştirirken kullanılacak bir RebootDeviceAction oluşturun. |
void | doAdbReboot ( NativeDevice.RebootMode rebootMode, String reason) Bir adb yeniden başlatma işlemi gerçekleştirin. |
void | ensureRuntimePermissionSupported () çalışma zamanı izni desteklenmiyorsa istisna atmak için yardımcı yöntem |
InputStreamSource | getBugreportInternal () |
File | getBugreportzInternal () Bugreportz zip dosyasını ERROR(/File) olarak almak için Dahili Yardımcı yöntem. |
IRunUtil | getRunUtil () Kullanılacak RunUtil örneğini edinin. |
String | internalGetProperty (String propName, String fastbootVar, String description) Varsayılan olarak ddmlib önbelleğinden bir aygıt özelliği getirin ve aygıtın Fastboot'ta olup olmadığına bağlı olarak "adb kabuk getprop" veya "fastboot getvar"a geri dönün. |
boolean | isNewer (File localFile, IFileEntry entry) Yerel dosya uzak dosyadan daha yeniyse true değerini döndürün. |
boolean | performDeviceAction (String actionDescription, com.android.tradefed.device.NativeDevice.DeviceAction action, int retryAttempts) Bu cihazda bir eylem gerçekleştirir. |
void | postAdbReboot () Yeniden başlatmanın ardından gerçekleştirilebilecek olası ekstra eylemler. |
void | prePostBootSetup () Her cihaz türünün (AndroidNativeDevice, TestDevice) belirli önyükleme sonrası kurulumu için bu yöntemi geçersiz kılmasına izin verir. |
void | setClock (Clock clock) Kullanılacak Saat örneğini ayarlayın. |
void | setLogStartDelay (int delay) Çevrimiçi bir cihaz için logcat yakalamaya başlamadan önce beklenecek süreyi ms cinsinden ayarlar. |
void | waitForDeviceNotAvailable (String operationDesc, long time) |
Sabitler
GEÇERSİZ KULLANICI KİMLİĞİ
public static final int INVALID_USER_ID
Geçersiz/bulunamayan herhangi bir kullanıcı kimliği için döndürülen değer: UserHandle -10000 değerini tanımladı
Sabit Değer: -10000 (0xffffd8f0)
MAX_HOST_DEVICE_TIME_OFFSET
protected static final long MAX_HOST_DEVICE_TIME_OFFSET
Sabit Değer: 5000 (0x0000000000001388)
MAX_RETRY_ATTEMPTS
protected static final int MAX_RETRY_ATTEMPTS
gerçekleştirmeye yönelik varsayılan komut yeniden deneme sayısı
Sabit Değer: 2 (0x00000002)
Alanlar
HAFIZA KARTI
protected static final String SD_CARD
STORAGE_EMULATED
protected static final String STORAGE_EMULATED
mSeçenekler
protected TestDeviceOptions mOptions
mStateMonitor
protected final IDeviceStateMonitor mStateMonitor
Kamu inşaatçıları
Yerel Cihaz
public NativeDevice (IDevice device,
IDeviceStateMonitor stateMonitor,
IDeviceMonitor allocationMonitor)
Bir TestDevice
oluşturur.
Parametreler |
---|
device | IDevice : ilişkili IDevice |
stateMonitor | IDeviceStateMonitor : kullanılacak IDeviceStateMonitor mekanizması |
allocationMonitor | IDeviceMonitor : Tahsis durumu değişiklikleri hakkında bilgi veren IDeviceMonitor . Boş olabilir |
Genel yöntemler
checkApiLevelAgainstNextRelease
public boolean checkApiLevelAgainstNextRelease (int strictMinLevel)
Parametreler |
---|
strictMinLevel | int |
Atar |
---|
DeviceNotAvailableException | |
kontrolBağlantı
public boolean checkConnectivity ()
Atar |
---|
DeviceNotAvailableException | |
clearErrorDialogs
public boolean clearErrorDialogs ()
Atar |
---|
DeviceNotAvailableException | |
clearLastConnectedWifiNetwork
public void clearLastConnectedWifiNetwork ()
clearLogcat
public void clearLogcat ()
ConnectToWifiNetwork
public boolean connectToWifiNetwork (String wifiSsid,
String wifiPsk)
Parametreler |
---|
wifiSsid | String |
wifiPsk | String |
Atar |
---|
DeviceNotAvailableException | |
ConnectToWifiNetwork
public boolean connectToWifiNetwork (String wifiSsid,
String wifiPsk,
boolean scanSsid)
Parametreler |
---|
wifiSsid | String |
wifiPsk | String |
scanSsid | boolean |
Atar |
---|
DeviceNotAvailableException | |
ConnectToWifiNetworkIfNeeded
public boolean connectToWifiNetworkIfNeeded (String wifiSsid,
String wifiPsk,
boolean scanSsid)
Parametreler |
---|
wifiSsid | String |
wifiPsk | String |
scanSsid | boolean |
Atar |
---|
DeviceNotAvailableException | |
ConnectToWifiNetworkIfNeeded
public boolean connectToWifiNetworkIfNeeded (String wifiSsid,
String wifiPsk)
Parametreler |
---|
wifiSsid | String |
wifiPsk | String |
Atar |
---|
DeviceNotAvailableException | |
Kullanıcı oluştur
public int createUser (String name,
boolean guest,
boolean ephemeral)
Parametreler |
---|
name | String |
guest | boolean |
ephemeral | boolean |
Atar |
---|
DeviceNotAvailableException | |
Kullanıcı oluştur
public int createUser (String name)
Atar |
---|
DeviceNotAvailableException | |
CreateUserNoThrow
public int createUserNoThrow (String name)
Atar |
---|
DeviceNotAvailableException | |
dosyayı sil
public void deleteFile (String deviceFilePath)
Parametreler |
---|
deviceFilePath | String |
Atar |
---|
DeviceNotAvailableException | |
DeviceSoftYeniden Başlatıldı
public boolean deviceSoftRestarted (ProcessInfo prevSystemServerProcess)
Parametreler |
---|
prevSystemServerProcess | ProcessInfo |
Atar |
---|
DeviceNotAvailableException | |
DeviceSoftRestartedSince
public boolean deviceSoftRestartedSince (long utcEpochTime,
TimeUnit timeUnit)
Parametreler |
---|
utcEpochTime | long |
timeUnit | TimeUnit |
Atar |
---|
DeviceNotAvailableException | |
AdbRoot'u devre dışı bırak
public boolean disableAdbRoot ()
Atar |
---|
DeviceNotAvailableException | |
Tuş korumasını devre dışı bırak
public void disableKeyguard ()
Atar |
---|
DeviceNotAvailableException | |
NetworkMonitor'u devre dışı bırak
public boolean disableNetworkMonitor ()
Atar |
---|
DeviceNotAvailableException | |
Wifi'den bağlantıyı kes
public boolean disconnectFromWifi ()
Atar |
---|
DeviceNotAvailableException | |
Dosya Var mı
public boolean doesFileExist (String deviceFilePath)
Parametreler |
---|
deviceFilePath | String |
Atar |
---|
DeviceNotAvailableException | |
döküm yığını
public File dumpHeap (String process,
String devicePath)
Parametreler |
---|
process | String |
devicePath | String |
Atar |
---|
DeviceNotAvailableException | |
AdbRoot'u etkinleştir
public boolean enableAdbRoot ()
Atar |
---|
DeviceNotAvailableException | |
NetworkMonitor'u etkinleştir
public boolean enableNetworkMonitor ()
Atar |
---|
DeviceNotAvailableException | |
şifrelemeCihaz
public boolean encryptDevice (boolean inplace)
Parametreler |
---|
inplace | boolean |
Atar |
---|
DeviceNotAvailableException | |
yürütmeAdbKomutu
public String executeAdbCommand (long timeout,
String... cmdArgs)
Parametreler |
---|
timeout | long |
cmdArgs | String |
Atar |
---|
DeviceNotAvailableException | |
yürütmeAdbKomutu
public String executeAdbCommand (String... cmdArgs)
Parametreler |
---|
cmdArgs | String |
Atar |
---|
DeviceNotAvailableException | |
FastbootKomutunu yürüt
public CommandResult executeFastbootCommand (String... cmdArgs)
Parametreler |
---|
cmdArgs | String |
Atar |
---|
DeviceNotAvailableException | |
FastbootKomutunu yürüt
public CommandResult executeFastbootCommand (long timeout,
String... cmdArgs)
Parametreler |
---|
timeout | long |
cmdArgs | String |
Atar |
---|
DeviceNotAvailableException | |
yürütmeLongFastbootKomutu
public CommandResult executeLongFastbootCommand (String... cmdArgs)
Parametreler |
---|
cmdArgs | String |
Atar |
---|
DeviceNotAvailableException | |
ShellCommand'ı yürüt
public String executeShellCommand (String command)
Parametreler |
---|
command | String |
Atar |
---|
DeviceNotAvailableException | |
ShellCommand'ı yürüt
public void executeShellCommand (String command,
IShellOutputReceiver receiver,
long maxTimeToOutputShellResponse,
TimeUnit timeUnit,
int retryAttempts)
Parametreler |
---|
command | String |
receiver | IShellOutputReceiver |
maxTimeToOutputShellResponse | long |
timeUnit | TimeUnit |
retryAttempts | int |
Atar |
---|
DeviceNotAvailableException | |
ShellCommand'ı yürüt
public void executeShellCommand (String command,
IShellOutputReceiver receiver,
long maxTimeoutForCommand,
long maxTimeToOutputShellResponse,
TimeUnit timeUnit,
int retryAttempts)
Parametreler |
---|
command | String |
receiver | IShellOutputReceiver |
maxTimeoutForCommand | long |
maxTimeToOutputShellResponse | long |
timeUnit | TimeUnit |
retryAttempts | int |
Atar |
---|
DeviceNotAvailableException | |
ShellCommand'ı yürüt
public void executeShellCommand (String command,
IShellOutputReceiver receiver)
Parametreler |
---|
command | String |
receiver | IShellOutputReceiver |
Atar |
---|
DeviceNotAvailableException | |
ShellV2Command'ı yürüt
public CommandResult executeShellV2Command (String cmd)
Atar |
---|
DeviceNotAvailableException | |
ShellV2Command'ı yürüt
public CommandResult executeShellV2Command (String cmd,
OutputStream pipeToOutput)
Parametreler |
---|
cmd | String |
pipeToOutput | OutputStream |
Atar |
---|
DeviceNotAvailableException | |
ShellV2Command'ı yürüt
public CommandResult executeShellV2Command (String cmd,
File pipeAsInput)
Parametreler |
---|
cmd | String |
pipeAsInput | File |
Atar |
---|
DeviceNotAvailableException | |
ShellV2Command'ı yürüt
public CommandResult executeShellV2Command (String cmd,
long maxTimeoutForCommand,
TimeUnit timeUnit,
int retryAttempts)
Parametreler |
---|
cmd | String |
maxTimeoutForCommand | long |
timeUnit | TimeUnit |
retryAttempts | int |
Atar |
---|
DeviceNotAvailableException | |
ShellV2Command'ı yürüt
public CommandResult executeShellV2Command (String cmd,
long maxTimeoutForCommand,
TimeUnit timeUnit)
Parametreler |
---|
cmd | String |
maxTimeoutForCommand | long |
timeUnit | TimeUnit |
Atar |
---|
DeviceNotAvailableException | |
ShellV2Command'ı yürüt
public CommandResult executeShellV2Command (String cmd,
File pipeAsInput,
OutputStream pipeToOutput,
long maxTimeoutForCommand,
TimeUnit timeUnit,
int retryAttempts)
Parametreler |
---|
cmd | String |
pipeAsInput | File |
pipeToOutput | OutputStream |
maxTimeoutForCommand | long |
timeUnit | TimeUnit |
retryAttempts | int |
Atar |
---|
DeviceNotAvailableException | |
ShellV2Command'ı yürüt
public CommandResult executeShellV2Command (String cmd,
File pipeAsInput,
OutputStream pipeToOutput,
OutputStream pipeToError,
long maxTimeoutForCommand,
TimeUnit timeUnit,
int retryAttempts)
Parametreler |
---|
cmd | String |
pipeAsInput | File |
pipeToOutput | OutputStream |
pipeToError | OutputStream |
maxTimeoutForCommand | long |
timeUnit | TimeUnit |
retryAttempts | int |
Atar |
---|
DeviceNotAvailableException | |
fastbootWipePartition
public CommandResult fastbootWipePartition (String partition)
Parametreler |
---|
partition | String |
Atar |
---|
DeviceNotAvailableException | |
getActiveApex'ler
public getActiveApexes ()
Atar |
---|
DeviceNotAvailableException | |
getAllSettings
public getAllSettings (String namespace)
Parametreler |
---|
namespace | String |
Atar |
---|
DeviceNotAvailableException | |
getAllocationState
public DeviceAllocationState getAllocationState ()
İadeler |
---|
DeviceAllocationState | |
AndroidId'yi al
public String getAndroidId (int userId)
Atar |
---|
DeviceNotAvailableException | |
AndroidId'leri al
public getAndroidIds ()
Atar |
---|
DeviceNotAvailableException | |
getApiLevel
public int getApiLevel ()
Atar |
---|
DeviceNotAvailableException | |
getAppPackageInfo
public PackageInfo getAppPackageInfo (String packageName)
Parametreler |
---|
packageName | String |
Atar |
---|
DeviceNotAvailableException | |
getAppPackageInfos
public getAppPackageInfos ()
Atar |
---|
DeviceNotAvailableException | |
getBasebandVersion
public String getBasebandVersion ()
Atar |
---|
DeviceNotAvailableException | |
pil al
public Integer getBattery ()
getBooleanProperty
public boolean getBooleanProperty (String name,
boolean defaultValue)
Parametreler |
---|
name | String |
defaultValue | boolean |
Atar |
---|
DeviceNotAvailableException | |
getBootHistory
public getBootHistory ()
Atar |
---|
DeviceNotAvailableException | |
getBootHistorySince
public getBootHistorySince (long utcEpochTime,
TimeUnit timeUnit)
Parametreler |
---|
utcEpochTime | long |
timeUnit | TimeUnit |
Atar |
---|
DeviceNotAvailableException | |
BootloaderVersion'ı al
public String getBootloaderVersion ()
Atar |
---|
DeviceNotAvailableException | |
Bugreport'u al
public InputStreamSource getBugreport ()
İadeler |
---|
InputStreamSource | |
getBugreportz
public InputStreamSource getBugreportz ()
İadeler |
---|
InputStreamSource | |
getBuildAlias
public String getBuildAlias ()
Atar |
---|
DeviceNotAvailableException | |
getBuildFlavour
public String getBuildFlavor ()
Atar |
---|
DeviceNotAvailableException | |
getBuildId
public String getBuildId ()
Atar |
---|
DeviceNotAvailableException | |
getBuildSigningKeys
public String getBuildSigningKeys ()
Atar |
---|
DeviceNotAvailableException | |
getCachedDeviceDescriptor
public DeviceDescriptor getCachedDeviceDescriptor ()
Çocukları Al
public String[] getChildren (String path)
Atar |
---|
DeviceNotAvailableException | |
getCurrentFoldableState
public DeviceFoldableState getCurrentFoldableState ()
İadeler |
---|
DeviceFoldableState | |
Atar |
---|
DeviceNotAvailableException | |
getCurrentUser
public int getCurrentUser ()
Atar |
---|
DeviceNotAvailableException | |
getDeviceClass
public String getDeviceClass ()
getDeviceDate
public long getDeviceDate ()
Atar |
---|
DeviceNotAvailableException | |
getDeviceDescriptor
public DeviceDescriptor getDeviceDescriptor ()
getDeviceState
public TestDeviceState getDeviceState ()
getDeviceTimeOffset
public long getDeviceTimeOffset (Date date)
Atar |
---|
DeviceNotAvailableException | |
getEmulatorOutput
public InputStreamSource getEmulatorOutput ()
İadeler |
---|
InputStreamSource | |
getEmulatorProcess
public Process getEmulatorProcess ()
getExternalStoreFreeSpace
public long getExternalStoreFreeSpace ()
Atar |
---|
DeviceNotAvailableException | |
getFastbootPath
public String getFastbootPath ()
getFastbootProductType
public String getFastbootProductType ()
Atar |
---|
DeviceNotAvailableException | |
getFastbootProductVariant
public String getFastbootProductVariant ()
Atar |
---|
DeviceNotAvailableException | |
FastbootSerialNumber'ı al
public String getFastbootSerialNumber ()
getFastbootVariable
public String getFastbootVariable (String variableName)
Parametreler |
---|
variableName | String |
Atar |
---|
DeviceNotAvailableException | |
getFastbootVersion
public String getFastbootVersion ()
getFileEntry
public IFileEntry getFileEntry (String path)
Atar |
---|
DeviceNotAvailableException | |
getFileEntry
public IFileEntry getFileEntry (FileListingService.FileEntry entry)
Root dışı bir yoldan FileEntry
almak için resmi olmayan yardımcı. FIXME: FileEntry sistemini herhangi bir yoldan kullanılabilir hale getirecek şekilde yeniden düzenleyin. (kök olmasa bile).
Parametreler |
---|
entry | FileListingService.FileEntry : FileEntry Ddmlib'in gerektirdiği şekilde root olması gerekmez. |
Atar |
---|
DeviceNotAvailableException | |
getFoldableStates
public getFoldableStates ()
Atar |
---|
DeviceNotAvailableException | |
getIDevice
public IDevice getIDevice ()
getInstalledPackageNames
public getInstalledPackageNames ()
Atar |
---|
DeviceNotAvailableException | |
getIntProperty
public long getIntProperty (String name,
long defaultValue)
Parametreler |
---|
name | String |
defaultValue | long |
Atar |
---|
DeviceNotAvailableException | |
getIpAddress
public String getIpAddress ()
Atar |
---|
DeviceNotAvailableException | |
getKeyguardState
public KeyguardControllerState getKeyguardState ()
İadeler |
---|
KeyguardControllerState | |
Atar |
---|
DeviceNotAvailableException | |
getLastExpectedRebootTimeMillis
public long getLastExpectedRebootTimeMillis ()
getLaunchApiLevel
public int getLaunchApiLevel ()
Atar |
---|
DeviceNotAvailableException | |
getLogcat
public InputStreamSource getLogcat ()
İadeler |
---|
InputStreamSource | |
getLogcat
public InputStreamSource getLogcat (int maxBytes)
Parametreler |
---|
maxBytes | int |
İadeler |
---|
InputStreamSource | |
getLogcatDump
public InputStreamSource getLogcatDump ()
İadeler |
---|
InputStreamSource | |
getLogcatSince
public InputStreamSource getLogcatSince (long date)
İadeler |
---|
InputStreamSource | |
getMacAddress
public String getMacAddress ()
getMainlineModuleInfo
public getMainlineModuleInfo ()
Atar |
---|
DeviceNotAvailableException | |
public int getMaxNumberOfRunningUsersSupported ()
Atar |
---|
DeviceNotAvailableException | |
public int getMaxNumberOfUsersSupported ()
Atar |
---|
DeviceNotAvailableException | |
getMonitor
public IDeviceStateMonitor getMonitor ()
İadeler |
---|
IDeviceStateMonitor | |
getMountPoint
public String getMountPoint (String mountName)
Parametreler |
---|
mountName | String |
getMountPointInfo
public ITestDevice.MountPointInfo getMountPointInfo (String mountpoint)
Parametreler |
---|
mountpoint | String |
İadeler |
---|
ITestDevice.MountPointInfo | |
Atar |
---|
DeviceNotAvailableException | |
getMountPointInfo
public getMountPointInfo ()
Atar |
---|
DeviceNotAvailableException | |
getOptions
public TestDeviceOptions getOptions ()
İadeler |
---|
TestDeviceOptions | |
getPartitionFreeSpace
public long getPartitionFreeSpace (String partition)
Parametreler |
---|
partition | String |
Atar |
---|
DeviceNotAvailableException | |
getPrimaryUserId
public Integer getPrimaryUserId ()
Atar |
---|
DeviceNotAvailableException | |
getProcessByName
public ProcessInfo getProcessByName (String processName)
Parametreler |
---|
processName | String |
Atar |
---|
DeviceNotAvailableException | |
getProcessPid
public String getProcessPid (String process)
Parametreler |
---|
process | String |
Atar |
---|
DeviceNotAvailableException | |
getProductType
public String getProductType ()
Atar |
---|
DeviceNotAvailableException | |
getProductVariant
public String getProductVariant ()
Atar |
---|
DeviceNotAvailableException | |
getProperty
public String getProperty (String name)
Atar |
---|
DeviceNotAvailableException | |
GetRecoveryMode
public ITestDevice.RecoveryMode getRecoveryMode ()
İadeler |
---|
ITestDevice.RecoveryMode | |
ekran görüntüsü al
public InputStreamSource getScreenshot (String format)
Parametreler |
---|
format | String |
İadeler |
---|
InputStreamSource | |
Atar |
---|
DeviceNotAvailableException | |
ekran görüntüsü al
public InputStreamSource getScreenshot (long displayId)
Parametreler |
---|
displayId | long |
İadeler |
---|
InputStreamSource | |
Atar |
---|
DeviceNotAvailableException | |
ekran görüntüsü al
public InputStreamSource getScreenshot (String format,
boolean rescale)
Parametreler |
---|
format | String |
rescale | boolean |
İadeler |
---|
InputStreamSource | |
Atar |
---|
DeviceNotAvailableException | |
ekran görüntüsü al
public InputStreamSource getScreenshot ()
İadeler |
---|
InputStreamSource | |
Atar |
---|
DeviceNotAvailableException | |
Seri Numarasını al
public String getSerialNumber ()
getSetting
public String getSetting (int userId,
String namespace,
String key)
Parametreler |
---|
userId | int |
namespace | String |
key | String |
Atar |
---|
DeviceNotAvailableException | |
getSetting
public String getSetting (String namespace,
String key)
Parametreler |
---|
namespace | String |
key | String |
Atar |
---|
DeviceNotAvailableException | |
getSimOperatörü
public String getSimOperator ()
getSimState
public String getSimState ()
Mezar Taşlarını Al
public getTombstones ()
Atar |
---|
DeviceNotAvailableException | |
getTotalMemory
public long getTotalMemory ()
getUninstallablePackageNames
public getUninstallablePackageNames ()
Atar |
---|
DeviceNotAvailableException | |
getUseFastbootErase
public boolean getUseFastbootErase ()
getUserFlags
public int getUserFlags (int userId)
Atar |
---|
DeviceNotAvailableException | |
getUserInfos
public getUserInfos ()
Atar |
---|
DeviceNotAvailableException | |
getUserSerialNumber
public int getUserSerialNumber (int userId)
Atar |
---|
DeviceNotAvailableException | |
tanıtıcıAllocationEvent
public IManagedTestDevice.DeviceEventResponse handleAllocationEvent (DeviceEvent event)
Bu cihazı yeni bir tahsis durumuna geçirebilecek veya geçirmeyebilecek DeviceEvent'i işleyin.
Parametreler |
---|
event | DeviceEvent |
İadeler |
---|
IManagedTestDevice.DeviceEventResponse | |
Özelliği var
public boolean hasFeature (String feature)
Parametreler |
---|
feature | String |
Atar |
---|
DeviceNotAvailableException | |
kurulum paketi
public String installPackage (File packageFile,
boolean reinstall,
String... extraArgs)
Parametreler |
---|
packageFile | File |
reinstall | boolean |
extraArgs | String |
Atar |
---|
DeviceNotAvailableException | |
kurulum paketi
public String installPackage (File packageFile,
boolean reinstall,
boolean grantPermissions,
String... extraArgs)
Parametreler |
---|
packageFile | File |
reinstall | boolean |
grantPermissions | boolean |
extraArgs | String |
Atar |
---|
DeviceNotAvailableException | |
installPackageForUser
public String installPackageForUser (File packageFile,
boolean reinstall,
int userId,
String... extraArgs)
Parametreler |
---|
packageFile | File |
reinstall | boolean |
userId | int |
extraArgs | String |
Atar |
---|
DeviceNotAvailableException | |
installPackageForUser
public String installPackageForUser (File packageFile,
boolean reinstall,
boolean grantPermissions,
int userId,
String... extraArgs)
Parametreler |
---|
packageFile | File |
reinstall | boolean |
grantPermissions | boolean |
userId | int |
extraArgs | String |
Atar |
---|
DeviceNotAvailableException | |
isAdbRoot
public boolean isAdbRoot ()
Atar |
---|
DeviceNotAvailableException | |
isAdbTcp
public boolean isAdbTcp ()
isAppEnumerationDesteklenir
public boolean isAppEnumerationSupported ()
Atar |
---|
DeviceNotAvailableException | |
isDeviceEncrypted
public boolean isDeviceEncrypted ()
Atar |
---|
DeviceNotAvailableException | |
isDizin
public boolean isDirectory (String path)
Atar |
---|
DeviceNotAvailableException | |
isEnableAdbRoot
public boolean isEnableAdbRoot ()
İadeler |
---|
boolean | cihazda adb root'un etkinleştirilmesi gerekiyorsa true |
ŞifrelemeDestekleniyor
public boolean isEncryptionSupported ()
Atar |
---|
DeviceNotAvailableException | |
Çalıştırılabilir
public boolean isExecutable (String fullPath)
Parametreler |
---|
fullPath | String |
Atar |
---|
DeviceNotAvailableException | |
Fastboot Etkin
public boolean isFastbootEnabled ()
Başsızdır
public boolean isHeadless ()
Atar |
---|
DeviceNotAvailableException | |
Çoklu Kullanıcı Desteklidir
public boolean isMultiUserSupported ()
Atar |
---|
DeviceNotAvailableException | |
Paket Yüklendi
public boolean isPackageInstalled (String packageName,
String userId)
Parametreler |
---|
packageName | String |
userId | String |
Atar |
---|
DeviceNotAvailableException | |
Paket Yüklendi
public boolean isPackageInstalled (String packageName)
Parametreler |
---|
packageName | String |
Atar |
---|
DeviceNotAvailableException | |
isRuntimePermissionSupported
public boolean isRuntimePermissionSupported ()
Atar |
---|
DeviceNotAvailableException | |
isStateBootloaderOrFastbootd
public boolean isStateBootloaderOrFastbootd ()
isUserRunning
public boolean isUserRunning (int userId)
Atar |
---|
DeviceNotAvailableException | |
Kullanıcıİkincil
public boolean isUserSecondary (int userId)
Atar |
---|
DeviceNotAvailableException | |
WiFiEnabled
public boolean isWifiEnabled ()
Atar |
---|
DeviceNotAvailableException | |
listDisplayIds
public listDisplayIds ()
Atar |
---|
DeviceNotAvailableException | |
listeKullanıcılar
public listUsers ()
Atar |
---|
DeviceNotAvailableException | |
günlükBugreport
public boolean logBugreport (String dataName,
ITestLogger listener)
Parametreler |
---|
dataName | String |
listener | ITestLogger |
LogOnDevice
public void logOnDevice (String tag,
Log.LogLevel level,
String format,
Object... args)
Parametreler |
---|
tag | String |
level | Log.LogLevel |
format | String |
args | Object |
EngellemeyenYeniden Başlat
public void nonBlockingReboot ()
Atar |
---|
DeviceNotAvailableException | |
postAdbRootAction
public void postAdbRootAction ()
Cihaz, adb root'tan sonra ve cihaz tekrar çevrimiçi olmadan önce bazı belirli eylemlerin gerçekleştirilmesi gerekiyorsa geçersiz kılın. Varsayılan uygulama herhangi bir ekleme eylemi içermez. adb root'un bu aşamada etkinleştirilmesi garanti edilmez.
Atar |
---|
DeviceNotAvailableException | |
postAdbUnrootAction
public void postAdbUnrootAction ()
Adb unroot işleminden sonra ve cihaz tekrar çevrimiçi olmadan önce cihazın bazı belirli eylemlere ihtiyacı varsa geçersiz kılın. Varsayılan uygulama herhangi bir ek eylem içermez. adb root'un bu aşamada devre dışı bırakılması garanti edilmez.
Atar |
---|
DeviceNotAvailableException | |
postBootSetup
public void postBootSetup ()
Atar |
---|
DeviceNotAvailableException | |
postInvokasyonTearDown
public void postInvocationTearDown (Throwable exception)
Parametreler |
---|
exception | Throwable |
preInvokasyon Kurulumu
public void preInvocationSetup (IBuildInfo info,
MultiMap<String, String> attributes)
Parametreler |
---|
info | IBuildInfo |
attributes | MultiMap |
Atar |
---|
DeviceNotAvailableException | |
TargetSetupError | |
çekmeDir
public boolean pullDir (String deviceFilePath,
File localDir)
Parametreler |
---|
deviceFilePath | String |
localDir | File |
Atar |
---|
DeviceNotAvailableException | |
çekmeDosyası
public boolean pullFile (String remoteFilePath,
File localFile)
Parametreler |
---|
remoteFilePath | String |
localFile | File |
Atar |
---|
DeviceNotAvailableException | |
çekmeDosyası
public File pullFile (String remoteFilePath)
Parametreler |
---|
remoteFilePath | String |
Atar |
---|
DeviceNotAvailableException | |
pullFileContents
public String pullFileContents (String remoteFilePath)
Parametreler |
---|
remoteFilePath | String |
Atar |
---|
DeviceNotAvailableException | |
pullFileFromExternal
public File pullFileFromExternal (String remoteFilePath)
Parametreler |
---|
remoteFilePath | String |
Atar |
---|
DeviceNotAvailableException | |
pushDir
public boolean pushDir (File localFileDir,
String deviceFilePath,
excludedDirectories)
Parametreler |
---|
localFileDir | File |
deviceFilePath | String |
excludedDirectories | |
Atar |
---|
DeviceNotAvailableException | |
pushDir
public boolean pushDir (File localFileDir,
String deviceFilePath)
Parametreler |
---|
localFileDir | File |
deviceFilePath | String |
Atar |
---|
DeviceNotAvailableException | |
itmeDosyası
public boolean pushFile (File localFile,
String remoteFilePath)
Parametreler |
---|
localFile | File |
remoteFilePath | String |
Atar |
---|
DeviceNotAvailableException | |
pushString
public boolean pushString (String contents,
String remoteFilePath)
Parametreler |
---|
contents | String |
remoteFilePath | String |
Atar |
---|
DeviceNotAvailableException | |
yeniden başlat
public void reboot (String reason)
Parametreler |
---|
reason | String |
Atar |
---|
DeviceNotAvailableException | |
yeniden başlat
public void reboot ()
Atar |
---|
DeviceNotAvailableException | |
Bootloader'a yeniden başlat
public void rebootIntoBootloader ()
Atar |
---|
DeviceNotAvailableException | |
Fastbootd'a yeniden başlat
public void rebootIntoFastbootd ()
Atar |
---|
DeviceNotAvailableException | |
RecoveryIntoRecovery'yi yeniden başlat
public void rebootIntoRecovery ()
Atar |
---|
DeviceNotAvailableException | |
yeniden başlatIntoSideload
public void rebootIntoSideload ()
Atar |
---|
DeviceNotAvailableException | |
yeniden başlatIntoSideload
public void rebootIntoSideload (boolean autoReboot)
Parametreler |
---|
autoReboot | boolean |
Atar |
---|
DeviceNotAvailableException | |
Çevrimiçi olana kadar yeniden başlat
public void rebootUntilOnline ()
Atar |
---|
DeviceNotAvailableException | |
Çevrimiçi olana kadar yeniden başlat
public void rebootUntilOnline (String reason)
Parametreler |
---|
reason | String |
Atar |
---|
DeviceNotAvailableException | |
yeniden başlatKullanıcı alanı
public void rebootUserspace ()
Atar |
---|
DeviceNotAvailableException | |
yeniden başlatUserspaceUntilOnline
public void rebootUserspaceUntilOnline ()
Atar |
---|
DeviceNotAvailableException | |
kurtarmaCihaz
public void recoverDevice ()
Cihaz iletişimini kurtarma girişimleri.
Atar |
---|
DeviceNotAvailableException | cihaz artık mevcut değilse |
remountSystemWritable
public void remountSystemWritable ()
Atar |
---|
DeviceNotAvailableException | |
remountVendorYazılabilir
public void remountVendorWritable ()
Atar |
---|
DeviceNotAvailableException | |
kaldırYönetici
public boolean removeAdmin (String componentName,
int userId)
Parametreler |
---|
componentName | String |
userId | int |
Atar |
---|
DeviceNotAvailableException | |
Sahipleri kaldır
public void removeOwners ()
Atar |
---|
DeviceNotAvailableException | |
Kullanıcıyı kaldır
public boolean removeUser (int userId)
Atar |
---|
DeviceNotAvailableException | |
resetContentProviderSetup
public void resetContentProviderSetup ()
Tekrar tetiklemek için içerik sağlayıcı kurulumunun bayrağını sıfırlayın.
EnstrümantasyonTestlerini Çalıştır
public boolean runInstrumentationTests (IRemoteAndroidTestRunner runner,
ITestLifeCycleReceiver... listeners)
Parametreler |
---|
runner | IRemoteAndroidTestRunner |
listeners | ITestLifeCycleReceiver |
Atar |
---|
DeviceNotAvailableException | |
EnstrümantasyonTestlerini Çalıştır
public boolean runInstrumentationTests (IRemoteAndroidTestRunner runner,
listeners)
Parametreler |
---|
runner | IRemoteAndroidTestRunner |
listeners | |
Atar |
---|
DeviceNotAvailableException | |
RunInstrumentationTestsAsUser
public boolean runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner,
int userId,
ITestLifeCycleReceiver... listeners)
Parametreler |
---|
runner | IRemoteAndroidTestRunner |
userId | int |
listeners | ITestLifeCycleReceiver |
Atar |
---|
DeviceNotAvailableException | |
RunInstrumentationTestsAsUser
public boolean runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner,
int userId,
listeners)
Parametreler |
---|
runner | IRemoteAndroidTestRunner |
userId | int |
listeners | |
Atar |
---|
DeviceNotAvailableException | |
setYapılandırma
public void setConfiguration (IConfiguration configuration)
Kullanımdaki IConfiguration
enjekte eder.
Parametreler |
---|
configuration | IConfiguration |
tarih ayarla
public void setDate (Date date)
Atar |
---|
DeviceNotAvailableException | |
setCihazSahibi
public boolean setDeviceOwner (String componentName,
int userId)
Parametreler |
---|
componentName | String |
userId | int |
Atar |
---|
DeviceNotAvailableException | |
setDeviceState
public void setDeviceState (TestDeviceState deviceState)
Parametreler |
---|
deviceState | TestDeviceState |
setEmulatorOutputStream
public void setEmulatorOutputStream (SizeLimitedOutputStream output)
Emülatör için SizeLimitedOutputStream
çıktıyı günlüğe kaydedecek şekilde ayarlayın
Parametreler |
---|
output | SizeLimitedOutputStream : çıktıyı günlüğe kaydetmek için |
setEmulatorProcess
public void setEmulatorProcess (Process p)
setFastbootEtkin
public void setFastbootEnabled (boolean fastbootEnabled)
Parametreler |
---|
fastbootEnabled | boolean |
setFastbootPath
public void setFastbootPath (String fastbootPath)
Parametreler |
---|
fastbootPath | String |
setIDevice
public void setIDevice (IDevice newDevice)
Parametreler |
---|
newDevice | IDevice |
SetSeçenekler
public void setOptions (TestDeviceOptions options)
Parametreler |
---|
options | TestDeviceOptions |
setÖzellik
public boolean setProperty (String propKey,
String propValue)
Parametreler |
---|
propKey | String |
propValue | String |
Atar |
---|
DeviceNotAvailableException | |
setKurtarma
public void setRecovery (IDeviceRecovery recovery)
Parametreler |
---|
recovery | IDeviceRecovery |
setRecoveryMode
public void setRecoveryMode (ITestDevice.RecoveryMode mode)
Parametreler |
---|
mode | ITestDevice.RecoveryMode |
setAyar
public void setSetting (String namespace,
String key,
String value)
Parametreler |
---|
namespace | String |
key | String |
value | String |
Atar |
---|
DeviceNotAvailableException | |
setAyar
public void setSetting (int userId,
String namespace,
String key,
String value)
Parametreler |
---|
userId | int |
namespace | String |
key | String |
value | String |
Atar |
---|
DeviceNotAvailableException | |
setUseFastbootErase
public void setUseFastbootErase (boolean useFastbootErase)
Parametreler |
---|
useFastbootErase | boolean |
startLogcat
public void startLogcat ()
başlatKullanıcı
public boolean startUser (int userId)
Atar |
---|
DeviceNotAvailableException | |
başlatKullanıcı
public boolean startUser (int userId,
boolean waitFlag)
Parametreler |
---|
userId | int |
waitFlag | boolean |
Atar |
---|
DeviceNotAvailableException | |
stopEmulatorOutput
public void stopEmulatorOutput ()
stopLogcat
public void stopLogcat ()
kullanıcıyı durdur
public boolean stopUser (int userId)
Atar |
---|
DeviceNotAvailableException | |
kullanıcıyı durdur
public boolean stopUser (int userId,
boolean waitFlag,
boolean forceFlag)
Parametreler |
---|
userId | int |
waitFlag | boolean |
forceFlag | boolean |
Atar |
---|
DeviceNotAvailableException | |
switchToAdbTcp
public String switchToAdbTcp ()
Atar |
---|
DeviceNotAvailableException | |
switchToAdbUsb
public boolean switchToAdbUsb ()
Atar |
---|
DeviceNotAvailableException | |
Kullanıcı değiştir
public boolean switchUser (int userId)
Atar |
---|
DeviceNotAvailableException | |
Kullanıcı değiştir
public boolean switchUser (int userId,
long timeout)
Parametreler |
---|
userId | int |
timeout | long |
Atar |
---|
DeviceNotAvailableException | |
senkronizasyonDosyaları
public boolean syncFiles (File localFileDir,
String deviceFilePath)
Parametreler |
---|
localFileDir | File |
deviceFilePath | String |
Atar |
---|
DeviceNotAvailableException | |
Hata raporunu al
public Bugreport takeBugreport ()
şifrelemeyi kaldırCihaz
public boolean unencryptDevice ()
Atar |
---|
DeviceNotAvailableException | |
Paketi kaldır
public String uninstallPackage (String packageName)
Parametreler |
---|
packageName | String |
Atar |
---|
DeviceNotAvailableException | |
PackageForUser'ı kaldır
public String uninstallPackageForUser (String packageName,
int userId)
Parametreler |
---|
packageName | String |
userId | int |
Atar |
---|
DeviceNotAvailableException | |
cihazın kilidini aç
public boolean unlockDevice ()
Atar |
---|
DeviceNotAvailableException | |
waitForBootComplete
public boolean waitForBootComplete (long timeOut)
Parametreler |
---|
timeOut | long |
Atar |
---|
DeviceNotAvailableException | |
waitForDeviceKullanılabilir
public void waitForDeviceAvailable ()
Atar |
---|
DeviceNotAvailableException | |
waitForDeviceKullanılabilir
public void waitForDeviceAvailable (long waitTime)
Parametreler |
---|
waitTime | long |
Atar |
---|
DeviceNotAvailableException | |
waitForDeviceInRecovery
public boolean waitForDeviceInRecovery (long waitTime)
Parametreler |
---|
waitTime | long |
waitForDeviceInSideload
public boolean waitForDeviceInSideload (long waitTime)
Parametreler |
---|
waitTime | long |
waitForDeviceKullanılamaz
public boolean waitForDeviceNotAvailable (long waitTime)
Parametreler |
---|
waitTime | long |
waitForDeviceOnline
public void waitForDeviceOnline ()
Atar |
---|
DeviceNotAvailableException | |
waitForDeviceOnline
public void waitForDeviceOnline (long waitTime)
Parametreler |
---|
waitTime | long |
Atar |
---|
DeviceNotAvailableException | |
waitForDeviceShell
public boolean waitForDeviceShell (long waitTime)
Parametreler |
---|
waitTime | long |
Korumalı yöntemler
checkApiLevelAgainst
protected void checkApiLevelAgainst (String feature,
int strictMinLevel)
Parametreler |
---|
feature | String |
strictMinLevel | int |
doAdbYeniden Başlat
protected void doAdbReboot (NativeDevice.RebootMode rebootMode,
String reason)
Bir adb yeniden başlatma işlemi gerçekleştirin.
Parametreler |
---|
rebootMode | NativeDevice.RebootMode : bu yeniden başlatmanın bir modu. |
reason | String : bu yeniden başlatma için. |
Atar |
---|
DeviceNotAvailableException | |
sureRuntimePermissionDesteklendi
protected void ensureRuntimePermissionSupported ()
çalışma zamanı izni desteklenmiyorsa istisna atmak için yardımcı yöntem
Atar |
---|
DeviceNotAvailableException | |
getBugreportInternal
protected InputStreamSource getBugreportInternal ()
İadeler |
---|
InputStreamSource | |
getBugreportzDahili
protected File getBugreportzInternal ()
Bugreportz zip dosyasını ERROR(/File)
olarak almak için Dahili Yardımcı yöntem.
getRunUtil
protected IRunUtil getRunUtil ()
Kullanılacak RunUtil
örneğini edinin.
dahiliGetProperty
protected String internalGetProperty (String propName,
String fastbootVar,
String description)
Varsayılan olarak ddmlib önbelleğinden bir aygıt özelliği getirin ve aygıtın Fastboot'ta olup olmadığına bağlı olarak "adb kabuk getprop" veya "fastboot getvar"a geri dönün.
Parametreler |
---|
propName | String : 'adb Shell getprop' tarafından döndürülen aygıt özelliğinin adı |
fastbootVar | String : Sorgulanacak eşdeğer fastboot değişkeninin adı. null ise fastboot sorgusu yapılmayacaktır |
description | String : Değişkenin basit bir açıklaması. İlk harf büyük yazılmalıdır. |
İadeler |
---|
String | Verilen özelliğin değerini içeren, muhtemelen null veya boş bir dize |
Atar |
---|
DeviceNotAvailableException | |
daha yeni
protected boolean isNewer (File localFile,
IFileEntry entry)
Yerel dosya uzak dosyadan daha yeniyse true
değerini döndürün. IFileEntry
dakikasına kadar doğru olduğundan, eşit süreler olması durumunda dosya daha yeni kabul edilecektir.
Parametreler |
---|
localFile | File |
entry | IFileEntry |
protected boolean performDeviceAction (String actionDescription,
com.android.tradefed.device.NativeDevice.DeviceAction action,
int retryAttempts)
Bu cihazda bir eylem gerçekleştirir. Eylem başarısız olursa cihazı kurtarmayı ve isteğe bağlı olarak komutu yeniden denemeyi dener.
Parametreler |
---|
actionDescription | String : Gerçekleştirilecek eylemin kısa bir açıklaması. Yalnızca günlük kaydı amacıyla kullanılır. |
action | com.android.tradefed.device.NativeDevice.DeviceAction : gerçekleştirilecek eylem |
retryAttempts | int : yeniden deneme, başarısız olursa ancak kurtarma başarılı olursa eylem gerçekleştirmeye çalışır |
İadeler |
---|
boolean | eylem başarıyla gerçekleştirildiyse true |
Atar |
---|
DeviceNotAvailableException | kurtarma girişimi başarısız olursa veya maksimum deneme başarısız olursa |
postAdbYeniden Başlat
protected void postAdbReboot ()
Yeniden başlatmanın ardından gerçekleştirilebilecek olası ekstra eylemler.
Atar |
---|
DeviceNotAvailableException | |
prePostBootSetup
protected void prePostBootSetup ()
Her cihaz türünün (AndroidNativeDevice, TestDevice) belirli önyükleme sonrası kurulumu için bu yöntemi geçersiz kılmasına izin verir.
Atar |
---|
DeviceNotAvailableException | |
saati ayarla
protected void setClock (Clock clock)
Kullanılacak Saat örneğini ayarlayın.
setLogStartDelay
protected void setLogStartDelay (int delay)
Çevrimiçi bir cihaz için logcat yakalamaya başlamadan önce beklenecek süreyi ms cinsinden ayarlar.
Parametreler |
---|
delay | int : ms cinsinden gecikme |
waitForDeviceKullanılamaz
protected void waitForDeviceNotAvailable (String operationDesc,
long time)
Parametreler |
---|
operationDesc | String |
time | long |
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2023-12-01 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"İhtiyacım olan bilgiler yok"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Çok karmaşık / çok fazla adım var"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Güncel değil"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Çeviri sorunu"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Örnek veya kod sorunu"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Diğer"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Anlaması kolay"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Sorunumu çözdü"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Diğer"
}]