NativeDevice
public
class
NativeDevice
extends Object
implements
IManagedTestDevice,
IConfigurationReceiver
java.lang.Object | |
↳ | com.android.tradefed.device.NativeDevice |
ITestDevice
Tam yığın olmayan Android cihazlarda varsayılan uygulama.
Özet
İç içe yerleştirilmiş sınıflar | |
---|---|
class |
NativeDevice.AdbAction
OS "adb ...." komutunu çalıştırmak için |
class |
NativeDevice.AdbShellAction
|
class |
NativeDevice.RebootDeviceAction
|
enum |
NativeDevice.RebootMode
Yeniden başlatma modu. |
Sabitler | |
---|---|
int |
INVALID_USER_ID
Geçersiz/bulunmayan kullanıcı kimlikleri için döndürülen değer: UserHandle, -10000 değerini tanımladı |
long |
MAX_HOST_DEVICE_TIME_OFFSET
|
int |
MAX_RETRY_ATTEMPTS
Komut yeniden deneme denemelerinin varsayılan sayısı |
Fields'ın oynadığı filmler | |
---|---|
protected
static
final
String |
SD_CARD
|
protected
static
final
String |
STORAGE_EMULATED
|
protected
TestDeviceOptions |
mOptions
|
protected
final
IDeviceStateMonitor |
mStateMonitor
|
Herkese açık kurucular | |
---|---|
NativeDevice(IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)
Bir |
Herkese açık 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 |
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)
Kök olmayan bir yoldan |
|
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çirip geçirmeyebilecek DeviceEvent öğesini 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ın, adb root'tan sonra ve tekrar çevrimiçi olmadan önce belirli işlemlerin yapılmasını gerektirmesi durumunda geçersiz kılın. |
void
|
postAdbUnrootAction()
Cihazın, adb'nin kök erişimini kaldırmasından sonra ve tekrar internete bağlanmadan önce belirli işlemlerin yapılması gerekiyorsa geçersiz kıl. |
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,
|
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()
Cihazla iletişimi kurtarmaya çalışır. |
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 işaretini sıfırlayın. |
boolean
|
runInstrumentationTests(IRemoteAndroidTestRunner runner, ITestLifeCycleReceiver... listeners)
|
boolean
|
runInstrumentationTests(IRemoteAndroidTestRunner runner,
|
boolean
|
runInstrumentationTestsAsUser(IRemoteAndroidTestRunner runner, int userId, ITestLifeCycleReceiver... listeners)
|
boolean
|
runInstrumentationTestsAsUser(IRemoteAndroidTestRunner runner, int userId,
|
void
|
setConfiguration(IConfiguration configuration)
Kullanımdaki |
void
|
setDate(Date date)
|
boolean
|
setDeviceOwner(String componentName, int userId)
|
void
|
setDeviceState(TestDeviceState deviceState)
|
void
|
setEmulatorOutputStream(SizeLimitedOutputStream output)
Emülatör için çıkışı günlüğe kaydetmek üzere |
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)
|
Korunan yöntemler | |
---|---|
void
|
checkApiLevelAgainst(String feature, int strictMinLevel)
|
NativeDevice.RebootDeviceAction
|
createRebootDeviceAction(NativeDevice.RebootMode rebootMode, String reason)
Yeniden başlatma işlemi gerçekleştirirken kullanılacak bir |
void
|
doAdbReboot(NativeDevice.RebootMode rebootMode, String reason)
adb reboot komutunu çalıştırın. |
void
|
ensureRuntimePermissionSupported()
Çalışma zamanı izni desteklenmiyorsa istisna atanması için yardımcı yöntem |
InputStreamSource
|
getBugreportInternal()
|
File
|
getBugreportzInternal()
bugreportz zip dosyasını |
IRunUtil
|
getRunUtil()
Kullanılacak |
String
|
internalGetProperty(String propName, String fastbootVar, String description)
Varsayılan olarak ddmlib önbelleğinden bir cihaz özelliğini getirir ve cihazın Fastboot'ta olup olmadığına bağlı olarak "adb shell getprop" veya "fastboot getvar" komutuna geçer. |
boolean
|
isNewer(File localFile, IFileEntry entry)
Yerel dosya uzak dosyadan daha yeniyse |
boolean
|
performDeviceAction(String actionDescription, com.android.tradefed.device.NativeDevice.DeviceAction action, int retryAttempts)
Bu cihazda bir işlem gerçekleştirir. |
void
|
postAdbReboot()
Yeniden başlatma işleminden sonra yapılabilecek ek işlemler. |
void
|
prePostBootSetup()
Her cihaz türünün (AndroidNativeDevice, TestDevice), belirli bir önyükleme sonrası kurulum için bu yöntemi geçersiz kılmasına olanak tanır. |
void
|
setClock(Clock clock)
Kullanılacak Saat örneğini ayarlayın. |
void
|
setLogStartDelay(int delay)
Çevrimiçi bir cihaz için logcat yakalama işlemini başlatmadan önce bekleyilecek süreyi milisaniye cinsinden ayarlar. |
void
|
waitForDeviceNotAvailable(String operationDesc, long time)
|
Sabitler
INVALID_USER_ID
public static final int INVALID_USER_ID
Geçersiz/bulunmayan kullanıcı kimlikleri 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
Komut yeniden deneme denemelerinin varsayılan sayısı
Sabit Değer: 2 (0x00000002)
Fields'ın oynadığı filmler
SD_CARD
protected static final String SD_CARD
STORAGE_EMULATED
protected static final String STORAGE_EMULATED
mOptions
protected TestDeviceOptions mOptions
mStateMonitor
protected final IDeviceStateMonitor mStateMonitor
Herkese açık kurucular
NativeDevice
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 : IDeviceMonitor , tahsis durumu değişikliklerini bildirmek için.
Boş olabilir
|
Herkese açık yöntemler
checkApiLevelAgainstNextRelease
public boolean checkApiLevelAgainstNextRelease (int strictMinLevel)
Parametreler | |
---|---|
strictMinLevel |
int |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
checkConnectivity
public boolean checkConnectivity ()
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
clearErrorDialogs
public boolean clearErrorDialogs ()
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
clearLastConnectedWifiNetwork
public void clearLastConnectedWifiNetwork ()
clearLogcat
public void clearLogcat ()
connectToWifiNetwork
public boolean connectToWifiNetwork (String wifiSsid, String wifiPsk)
Parametreler | |
---|---|
wifiSsid |
String |
wifiPsk |
String |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
connectToWifiNetwork
public boolean connectToWifiNetwork (String wifiSsid, String wifiPsk, boolean scanSsid)
Parametreler | |
---|---|
wifiSsid |
String |
wifiPsk |
String |
scanSsid |
boolean |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
connectToWifiNetworkIfNeeded
public boolean connectToWifiNetworkIfNeeded (String wifiSsid, String wifiPsk, boolean scanSsid)
Parametreler | |
---|---|
wifiSsid |
String |
wifiPsk |
String |
scanSsid |
boolean |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
connectToWifiNetworkIfNeeded
public boolean connectToWifiNetworkIfNeeded (String wifiSsid, String wifiPsk)
Parametreler | |
---|---|
wifiSsid |
String |
wifiPsk |
String |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
createUser
public int createUser (String name, boolean guest, boolean ephemeral)
Parametreler | |
---|---|
name |
String |
guest |
boolean |
ephemeral |
boolean |
İlerlemeler | |
---|---|
int |
Atışlar | |
---|---|
DeviceNotAvailableException |
createUser
public int createUser (String name)
Parametreler | |
---|---|
name |
String |
İlerlemeler | |
---|---|
int |
Atışlar | |
---|---|
DeviceNotAvailableException |
createUserNoThrow
public int createUserNoThrow (String name)
Parametreler | |
---|---|
name |
String |
İlerlemeler | |
---|---|
int |
Atışlar | |
---|---|
DeviceNotAvailableException |
deleteFile
public void deleteFile (String deviceFilePath)
Parametreler | |
---|---|
deviceFilePath |
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
deviceSoftRestarted
public boolean deviceSoftRestarted (ProcessInfo prevSystemServerProcess)
Parametreler | |
---|---|
prevSystemServerProcess |
ProcessInfo |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
deviceSoftRestartedSince
public boolean deviceSoftRestartedSince (long utcEpochTime, TimeUnit timeUnit)
Parametreler | |
---|---|
utcEpochTime |
long |
timeUnit |
TimeUnit |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
disableAdbRoot
public boolean disableAdbRoot ()
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
disableKeyguard
public void disableKeyguard ()
Atışlar | |
---|---|
DeviceNotAvailableException |
disableNetworkMonitor
public boolean disableNetworkMonitor ()
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
disconnectFromWifi
public boolean disconnectFromWifi ()
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
doesFileExist
public boolean doesFileExist (String deviceFilePath)
Parametreler | |
---|---|
deviceFilePath |
String |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
dumpHeap
public File dumpHeap (String process, String devicePath)
Parametreler | |
---|---|
process |
String |
devicePath |
String |
İlerlemeler | |
---|---|
File |
Atışlar | |
---|---|
DeviceNotAvailableException |
enableAdbRoot
public boolean enableAdbRoot ()
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
enableNetworkMonitor
public boolean enableNetworkMonitor ()
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
encryptDevice
public boolean encryptDevice (boolean inplace)
Parametreler | |
---|---|
inplace |
boolean |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
executeAdbCommand
public String executeAdbCommand (long timeout, String... cmdArgs)
Parametreler | |
---|---|
timeout |
long |
cmdArgs |
String |
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
executeAdbCommand
public String executeAdbCommand (String... cmdArgs)
Parametreler | |
---|---|
cmdArgs |
String |
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
executeFastbootCommand
public CommandResult executeFastbootCommand (String... cmdArgs)
Parametreler | |
---|---|
cmdArgs |
String |
İlerlemeler | |
---|---|
CommandResult |
Atışlar | |
---|---|
DeviceNotAvailableException |
executeFastbootCommand
public CommandResult executeFastbootCommand (long timeout, String... cmdArgs)
Parametreler | |
---|---|
timeout |
long |
cmdArgs |
String |
İlerlemeler | |
---|---|
CommandResult |
Atışlar | |
---|---|
DeviceNotAvailableException |
executeLongFastbootCommand
public CommandResult executeLongFastbootCommand (String... cmdArgs)
Parametreler | |
---|---|
cmdArgs |
String |
İlerlemeler | |
---|---|
CommandResult |
Atışlar | |
---|---|
DeviceNotAvailableException |
executeShellCommand
public String executeShellCommand (String command)
Parametreler | |
---|---|
command |
String |
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
executeShellCommand
public void executeShellCommand (String command, IShellOutputReceiver receiver, long maxTimeToOutputShellResponse, TimeUnit timeUnit, int retryAttempts)
Parametreler | |
---|---|
command |
String |
receiver |
IShellOutputReceiver |
maxTimeToOutputShellResponse |
long |
timeUnit |
TimeUnit |
retryAttempts |
int |
Atışlar | |
---|---|
DeviceNotAvailableException |
executeShellCommand
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 |
Atışlar | |
---|---|
DeviceNotAvailableException |
executeShellCommand
public void executeShellCommand (String command, IShellOutputReceiver receiver)
Parametreler | |
---|---|
command |
String |
receiver |
IShellOutputReceiver |
Atışlar | |
---|---|
DeviceNotAvailableException |
executeShellV2Command
public CommandResult executeShellV2Command (String cmd)
Parametreler | |
---|---|
cmd |
String |
İlerlemeler | |
---|---|
CommandResult |
Atışlar | |
---|---|
DeviceNotAvailableException |
executeShellV2Command
public CommandResult executeShellV2Command (String cmd, OutputStream pipeToOutput)
Parametreler | |
---|---|
cmd |
String |
pipeToOutput |
OutputStream |
İlerlemeler | |
---|---|
CommandResult |
Atışlar | |
---|---|
DeviceNotAvailableException |
executeShellV2Command
public CommandResult executeShellV2Command (String cmd, File pipeAsInput)
Parametreler | |
---|---|
cmd |
String |
pipeAsInput |
File |
İlerlemeler | |
---|---|
CommandResult |
Atışlar | |
---|---|
DeviceNotAvailableException |
executeShellV2Command
public CommandResult executeShellV2Command (String cmd, long maxTimeoutForCommand, TimeUnit timeUnit, int retryAttempts)
Parametreler | |
---|---|
cmd |
String |
maxTimeoutForCommand |
long |
timeUnit |
TimeUnit |
retryAttempts |
int |
İlerlemeler | |
---|---|
CommandResult |
Atışlar | |
---|---|
DeviceNotAvailableException |
executeShellV2Command
public CommandResult executeShellV2Command (String cmd, long maxTimeoutForCommand, TimeUnit timeUnit)
Parametreler | |
---|---|
cmd |
String |
maxTimeoutForCommand |
long |
timeUnit |
TimeUnit |
İlerlemeler | |
---|---|
CommandResult |
Atışlar | |
---|---|
DeviceNotAvailableException |
executeShellV2Command
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 |
İlerlemeler | |
---|---|
CommandResult |
Atışlar | |
---|---|
DeviceNotAvailableException |
executeShellV2Command
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 |
İlerlemeler | |
---|---|
CommandResult |
Atışlar | |
---|---|
DeviceNotAvailableException |
fastbootWipePartition
public CommandResult fastbootWipePartition (String partition)
Parametreler | |
---|---|
partition |
String |
İlerlemeler | |
---|---|
CommandResult |
Atışlar | |
---|---|
DeviceNotAvailableException |
getActiveApexes
publicgetActiveApexes ()
İlerlemeler | |
---|---|
|
Atışlar | |
---|---|
DeviceNotAvailableException |
getAllSettings
publicgetAllSettings (String namespace)
Parametreler | |
---|---|
namespace |
String |
İlerlemeler | |
---|---|
|
Atışlar | |
---|---|
DeviceNotAvailableException |
getAllocationState
public DeviceAllocationState getAllocationState ()
İlerlemeler | |
---|---|
DeviceAllocationState |
getAndroidId
public String getAndroidId (int userId)
Parametreler | |
---|---|
userId |
int |
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
getAndroidIds
publicgetAndroidIds ()
İlerlemeler | |
---|---|
|
Atışlar | |
---|---|
DeviceNotAvailableException |
getApiLevel
public int getApiLevel ()
İlerlemeler | |
---|---|
int |
Atışlar | |
---|---|
DeviceNotAvailableException |
getAppPackageInfo
public PackageInfo getAppPackageInfo (String packageName)
Parametreler | |
---|---|
packageName |
String |
İlerlemeler | |
---|---|
PackageInfo |
Atışlar | |
---|---|
DeviceNotAvailableException |
getAppPackageInfos
publicgetAppPackageInfos ()
İlerlemeler | |
---|---|
|
Atışlar | |
---|---|
DeviceNotAvailableException |
getBasebandVersion
public String getBasebandVersion ()
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
getBattery
public Integer getBattery ()
İlerlemeler | |
---|---|
Integer |
getBooleanProperty
public boolean getBooleanProperty (String name, boolean defaultValue)
Parametreler | |
---|---|
name |
String |
defaultValue |
boolean |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
getBootHistory
publicgetBootHistory ()
İlerlemeler | |
---|---|
|
Atışlar | |
---|---|
DeviceNotAvailableException |
getBootHistorySince
publicgetBootHistorySince (long utcEpochTime, TimeUnit timeUnit)
Parametreler | |
---|---|
utcEpochTime |
long |
timeUnit |
TimeUnit |
İlerlemeler | |
---|---|
|
Atışlar | |
---|---|
DeviceNotAvailableException |
getBootloaderVersion
public String getBootloaderVersion ()
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
getBugreport
public InputStreamSource getBugreport ()
İlerlemeler | |
---|---|
InputStreamSource |
getBugreportz
public InputStreamSource getBugreportz ()
İlerlemeler | |
---|---|
InputStreamSource |
getBuildAlias
public String getBuildAlias ()
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
getBuildFlavor
public String getBuildFlavor ()
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
getBuildId
public String getBuildId ()
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
getBuildSigningKeys
public String getBuildSigningKeys ()
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
getCachedDeviceDescriptor
public DeviceDescriptor getCachedDeviceDescriptor ()
İlerlemeler | |
---|---|
DeviceDescriptor |
getChildren
public String[] getChildren (String path)
Parametreler | |
---|---|
path |
String |
İlerlemeler | |
---|---|
String[] |
Atışlar | |
---|---|
DeviceNotAvailableException |
getCurrentFoldableState
public DeviceFoldableState getCurrentFoldableState ()
İlerlemeler | |
---|---|
DeviceFoldableState |
Atışlar | |
---|---|
DeviceNotAvailableException |
getCurrentUser
public int getCurrentUser ()
İlerlemeler | |
---|---|
int |
Atışlar | |
---|---|
DeviceNotAvailableException |
getDeviceClass
public String getDeviceClass ()
İlerlemeler | |
---|---|
String |
getDeviceDate
public long getDeviceDate ()
İlerlemeler | |
---|---|
long |
Atışlar | |
---|---|
DeviceNotAvailableException |
getDeviceDescriptor
public DeviceDescriptor getDeviceDescriptor ()
İlerlemeler | |
---|---|
DeviceDescriptor |
getDeviceState
public TestDeviceState getDeviceState ()
İlerlemeler | |
---|---|
TestDeviceState |
getDeviceTimeOffset
public long getDeviceTimeOffset (Date date)
Parametreler | |
---|---|
date |
Date |
İlerlemeler | |
---|---|
long |
Atışlar | |
---|---|
DeviceNotAvailableException |
getEmulatorOutput
public InputStreamSource getEmulatorOutput ()
İlerlemeler | |
---|---|
InputStreamSource |
getEmulatorProcess
public Process getEmulatorProcess ()
İlerlemeler | |
---|---|
Process |
getExecuteShellCommandLog
public final File getExecuteShellCommandLog ()
Tüm executeShellCommand(String)
günlüklerini içeren günlük.
İlerlemeler | |
---|---|
File |
getExternalStoreFreeSpace
public long getExternalStoreFreeSpace ()
İlerlemeler | |
---|---|
long |
Atışlar | |
---|---|
DeviceNotAvailableException |
getFastbootPath
public String getFastbootPath ()
İlerlemeler | |
---|---|
String |
getFastbootProductType
public String getFastbootProductType ()
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
getFastbootProductVariant
public String getFastbootProductVariant ()
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
getFastbootSerialNumber
public String getFastbootSerialNumber ()
İlerlemeler | |
---|---|
String |
getFastbootVariable
public String getFastbootVariable (String variableName)
Parametreler | |
---|---|
variableName |
String |
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
getFastbootVersion
public String getFastbootVersion ()
İlerlemeler | |
---|---|
String |
getFileEntry
public IFileEntry getFileEntry (String path)
Parametreler | |
---|---|
path |
String |
İlerlemeler | |
---|---|
IFileEntry |
Atışlar | |
---|---|
DeviceNotAvailableException |
getFileEntry
public IFileEntry getFileEntry (FileListingService.FileEntry entry)
Kök olmayan bir yoldan FileEntry
almak için resmi olmayan yardımcı. FIXME: FileEntry sistemini, herhangi bir yoldan kullanılabilecek şekilde yeniden yapılandırın. (root olmayanlar da dahil).
Parametreler | |
---|---|
entry |
FileListingService.FileEntry : Ddmlib'in gerektirdiği gibi kök olma zorunluluğu olmayan bir FileEntry . |
İlerlemeler | |
---|---|
IFileEntry |
FileEntry'yi temsil eden bir FileEntryWrapper . |
Atışlar | |
---|---|
DeviceNotAvailableException |
getFoldableStates
publicgetFoldableStates ()
İlerlemeler | |
---|---|
|
Atışlar | |
---|---|
DeviceNotAvailableException |
getIDevice
public IDevice getIDevice ()
İlerlemeler | |
---|---|
IDevice |
getInstalledPackageNames
publicgetInstalledPackageNames ()
İlerlemeler | |
---|---|
|
Atışlar | |
---|---|
DeviceNotAvailableException |
getIntProperty
public long getIntProperty (String name, long defaultValue)
Parametreler | |
---|---|
name |
String |
defaultValue |
long |
İlerlemeler | |
---|---|
long |
Atışlar | |
---|---|
DeviceNotAvailableException |
getIpAddress
public String getIpAddress ()
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
getKeyguardState
public KeyguardControllerState getKeyguardState ()
İlerlemeler | |
---|---|
KeyguardControllerState |
Atışlar | |
---|---|
DeviceNotAvailableException |
getLastExpectedRebootTimeMillis
public long getLastExpectedRebootTimeMillis ()
İlerlemeler | |
---|---|
long |
getLaunchApiLevel
public int getLaunchApiLevel ()
İlerlemeler | |
---|---|
int |
Atışlar | |
---|---|
DeviceNotAvailableException |
getLogcat
public InputStreamSource getLogcat ()
İlerlemeler | |
---|---|
InputStreamSource |
getLogcat
public InputStreamSource getLogcat (int maxBytes)
Parametreler | |
---|---|
maxBytes |
int |
İlerlemeler | |
---|---|
InputStreamSource |
getLogcatDump
public InputStreamSource getLogcatDump ()
İlerlemeler | |
---|---|
InputStreamSource |
getLogcatSince
public InputStreamSource getLogcatSince (long date)
Parametreler | |
---|---|
date |
long |
İlerlemeler | |
---|---|
InputStreamSource |
getMacAddress
public String getMacAddress ()
İlerlemeler | |
---|---|
String |
getMainlineModuleInfo
publicgetMainlineModuleInfo ()
İlerlemeler | |
---|---|
|
Atışlar | |
---|---|
DeviceNotAvailableException |
getMaxNumberOfRunningUsersSupported
public int getMaxNumberOfRunningUsersSupported ()
İlerlemeler | |
---|---|
int |
Atışlar | |
---|---|
DeviceNotAvailableException |
getMaxNumberOfUsersSupported
public int getMaxNumberOfUsersSupported ()
İlerlemeler | |
---|---|
int |
Atışlar | |
---|---|
DeviceNotAvailableException |
getMonitor
public IDeviceStateMonitor getMonitor ()
İlerlemeler | |
---|---|
IDeviceStateMonitor |
getMountPoint
public String getMountPoint (String mountName)
Parametreler | |
---|---|
mountName |
String |
İlerlemeler | |
---|---|
String |
getMountPointInfo
public ITestDevice.MountPointInfo getMountPointInfo (String mountpoint)
Parametreler | |
---|---|
mountpoint |
String |
İlerlemeler | |
---|---|
ITestDevice.MountPointInfo |
Atışlar | |
---|---|
DeviceNotAvailableException |
getMountPointInfo
publicgetMountPointInfo ()
İlerlemeler | |
---|---|
|
Atışlar | |
---|---|
DeviceNotAvailableException |
getOptions
public TestDeviceOptions getOptions ()
İlerlemeler | |
---|---|
TestDeviceOptions |
getPartitionFreeSpace
public long getPartitionFreeSpace (String partition)
Parametreler | |
---|---|
partition |
String |
İlerlemeler | |
---|---|
long |
Atışlar | |
---|---|
DeviceNotAvailableException |
getPrimaryUserId
public Integer getPrimaryUserId ()
İlerlemeler | |
---|---|
Integer |
Atışlar | |
---|---|
DeviceNotAvailableException |
getProcessByName
public ProcessInfo getProcessByName (String processName)
Parametreler | |
---|---|
processName |
String |
İlerlemeler | |
---|---|
ProcessInfo |
Atışlar | |
---|---|
DeviceNotAvailableException |
getProcessPid
public String getProcessPid (String process)
Parametreler | |
---|---|
process |
String |
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
getProductType
public String getProductType ()
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
getProductVariant
public String getProductVariant ()
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
getProperty
public String getProperty (String name)
Parametreler | |
---|---|
name |
String |
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
getRecoveryMode
public ITestDevice.RecoveryMode getRecoveryMode ()
İlerlemeler | |
---|---|
ITestDevice.RecoveryMode |
getScreenshot
public InputStreamSource getScreenshot (String format)
Parametreler | |
---|---|
format |
String |
İlerlemeler | |
---|---|
InputStreamSource |
Atışlar | |
---|---|
DeviceNotAvailableException |
getScreenshot
public InputStreamSource getScreenshot (long displayId)
Parametreler | |
---|---|
displayId |
long |
İlerlemeler | |
---|---|
InputStreamSource |
Atışlar | |
---|---|
DeviceNotAvailableException |
getScreenshot
public InputStreamSource getScreenshot (String format, boolean rescale)
Parametreler | |
---|---|
format |
String |
rescale |
boolean |
İlerlemeler | |
---|---|
InputStreamSource |
Atışlar | |
---|---|
DeviceNotAvailableException |
getScreenshot
public InputStreamSource getScreenshot ()
İlerlemeler | |
---|---|
InputStreamSource |
Atışlar | |
---|---|
DeviceNotAvailableException |
getSerialNumber
public String getSerialNumber ()
İlerlemeler | |
---|---|
String |
getSetting
public String getSetting (int userId, String namespace, String key)
Parametreler | |
---|---|
userId |
int |
namespace |
String |
key |
String |
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
getSetting
public String getSetting (String namespace, String key)
Parametreler | |
---|---|
namespace |
String |
key |
String |
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
getSimOperator
public String getSimOperator ()
İlerlemeler | |
---|---|
String |
getSimState
public String getSimState ()
İlerlemeler | |
---|---|
String |
getTombstones
publicgetTombstones ()
İlerlemeler | |
---|---|
|
Atışlar | |
---|---|
DeviceNotAvailableException |
getTotalMemory
public long getTotalMemory ()
İlerlemeler | |
---|---|
long |
getUninstallablePackageNames
publicgetUninstallablePackageNames ()
İlerlemeler | |
---|---|
|
Atışlar | |
---|---|
DeviceNotAvailableException |
getUseFastbootErase
public boolean getUseFastbootErase ()
İlerlemeler | |
---|---|
boolean |
getUserFlags
public int getUserFlags (int userId)
Parametreler | |
---|---|
userId |
int |
İlerlemeler | |
---|---|
int |
Atışlar | |
---|---|
DeviceNotAvailableException |
getUserInfos
publicgetUserInfos ()
İlerlemeler | |
---|---|
|
Atışlar | |
---|---|
DeviceNotAvailableException |
getUserSerialNumber
public int getUserSerialNumber (int userId)
Parametreler | |
---|---|
userId |
int |
İlerlemeler | |
---|---|
int |
Atışlar | |
---|---|
DeviceNotAvailableException |
handleAllocationEvent
public IManagedTestDevice.DeviceEventResponse handleAllocationEvent (DeviceEvent event)
Bu cihazı yeni bir tahsis durumuna geçirip geçirmeyebilecek DeviceEvent öğesini işleyin.
Parametreler | |
---|---|
event |
DeviceEvent |
İlerlemeler | |
---|---|
IManagedTestDevice.DeviceEventResponse |
hasFeature
public boolean hasFeature (String feature)
Parametreler | |
---|---|
feature |
String |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
installPackage
public String installPackage (File packageFile, boolean reinstall, String... extraArgs)
Parametreler | |
---|---|
packageFile |
File |
reinstall |
boolean |
extraArgs |
String |
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
installPackage
public String installPackage (File packageFile, boolean reinstall, boolean grantPermissions, String... extraArgs)
Parametreler | |
---|---|
packageFile |
File |
reinstall |
boolean |
grantPermissions |
boolean |
extraArgs |
String |
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
installPackageForUser
public String installPackageForUser (File packageFile, boolean reinstall, int userId, String... extraArgs)
Parametreler | |
---|---|
packageFile |
File |
reinstall |
boolean |
userId |
int |
extraArgs |
String |
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
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 |
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
isAdbRoot
public boolean isAdbRoot ()
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
isAdbTcp
public boolean isAdbTcp ()
İlerlemeler | |
---|---|
boolean |
isAppEnumerationSupported
public boolean isAppEnumerationSupported ()
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
isDeviceEncrypted
public boolean isDeviceEncrypted ()
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
isDirectory
public boolean isDirectory (String path)
Parametreler | |
---|---|
path |
String |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
isEnableAdbRoot
public boolean isEnableAdbRoot ()
İlerlemeler | |
---|---|
boolean |
true cihazda adb root'un etkinleştirilip etkinleştirilmeyeceği
|
isEncryptionSupported
public boolean isEncryptionSupported ()
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
isExecutable
public boolean isExecutable (String fullPath)
Parametreler | |
---|---|
fullPath |
String |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
isFastbootEnabled
public boolean isFastbootEnabled ()
İlerlemeler | |
---|---|
boolean |
isHeadless
public boolean isHeadless ()
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
isMultiUserSupported
public boolean isMultiUserSupported ()
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
isPackageInstalled
public boolean isPackageInstalled (String packageName, String userId)
Parametreler | |
---|---|
packageName |
String |
userId |
String |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
isPackageInstalled
public boolean isPackageInstalled (String packageName)
Parametreler | |
---|---|
packageName |
String |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
isRuntimePermissionSupported
public boolean isRuntimePermissionSupported ()
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
isStateBootloaderOrFastbootd
public boolean isStateBootloaderOrFastbootd ()
İlerlemeler | |
---|---|
boolean |
isUserRunning
public boolean isUserRunning (int userId)
Parametreler | |
---|---|
userId |
int |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
isUserSecondary
public boolean isUserSecondary (int userId)
Parametreler | |
---|---|
userId |
int |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
isWifiEnabled
public boolean isWifiEnabled ()
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
listDisplayIds
publiclistDisplayIds ()
İlerlemeler | |
---|---|
|
Atışlar | |
---|---|
DeviceNotAvailableException |
listUsers
publiclistUsers ()
İlerlemeler | |
---|---|
|
Atışlar | |
---|---|
DeviceNotAvailableException |
logBugreport
public boolean logBugreport (String dataName, ITestLogger listener)
Parametreler | |
---|---|
dataName |
String |
listener |
ITestLogger |
İlerlemeler | |
---|---|
boolean |
logOnDevice
public void logOnDevice (String tag, Log.LogLevel level, String format, Object... args)
Parametreler | |
---|---|
tag |
String |
level |
Log.LogLevel |
format |
String |
args |
Object |
nonBlockingReboot
public void nonBlockingReboot ()
Atışlar | |
---|---|
DeviceNotAvailableException |
postAdbRootAction
public void postAdbRootAction ()
Cihazın, adb root'tan sonra ve tekrar çevrimiçi olmadan önce belirli işlemlerin yapılmasını gerektirmesi durumunda geçersiz kılın. Varsayılan uygulama, ek işlemler içermez. adb root'un bu aşamada etkinleştirileceği garanti edilmez.
Atışlar | |
---|---|
DeviceNotAvailableException |
postAdbUnrootAction
public void postAdbUnrootAction ()
Cihazın, adb'nin kök erişimini kaldırmasından sonra ve tekrar internete bağlanmadan önce belirli işlemlerin yapılması gerekiyorsa geçersiz kıl. Varsayılan uygulama, ek işlem içermez. adb root'un bu aşamada devre dışı bırakılacağı garanti edilmez.
Atışlar | |
---|---|
DeviceNotAvailableException |
postBootSetup
public void postBootSetup ()
Atışlar | |
---|---|
DeviceNotAvailableException |
postInvocationTearDown
public void postInvocationTearDown (Throwable exception)
Parametreler | |
---|---|
exception |
Throwable |
preInvocationSetup
public void preInvocationSetup (IBuildInfo info, MultiMap<String, String> attributes)
Parametreler | |
---|---|
info |
IBuildInfo |
attributes |
MultiMap |
Atışlar | |
---|---|
DeviceNotAvailableException |
|
TargetSetupError |
pullDir
public boolean pullDir (String deviceFilePath, File localDir)
Parametreler | |
---|---|
deviceFilePath |
String |
localDir |
File |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
pullFile
public boolean pullFile (String remoteFilePath, File localFile)
Parametreler | |
---|---|
remoteFilePath |
String |
localFile |
File |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
pullFile
public File pullFile (String remoteFilePath)
Parametreler | |
---|---|
remoteFilePath |
String |
İlerlemeler | |
---|---|
File |
Atışlar | |
---|---|
DeviceNotAvailableException |
pullFileContents
public String pullFileContents (String remoteFilePath)
Parametreler | |
---|---|
remoteFilePath |
String |
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
pullFileFromExternal
public File pullFileFromExternal (String remoteFilePath)
Parametreler | |
---|---|
remoteFilePath |
String |
İlerlemeler | |
---|---|
File |
Atışlar | |
---|---|
DeviceNotAvailableException |
pushDir
public boolean pushDir (File localFileDir, String deviceFilePath,excludedDirectories)
Parametreler | |
---|---|
localFileDir |
File |
deviceFilePath |
String |
excludedDirectories |
|
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
pushDir
public boolean pushDir (File localFileDir, String deviceFilePath)
Parametreler | |
---|---|
localFileDir |
File |
deviceFilePath |
String |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
pushFile
public boolean pushFile (File localFile, String remoteFilePath)
Parametreler | |
---|---|
localFile |
File |
remoteFilePath |
String |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
pushString
public boolean pushString (String contents, String remoteFilePath)
Parametreler | |
---|---|
contents |
String |
remoteFilePath |
String |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
tekrar başlat
public void reboot (String reason)
Parametreler | |
---|---|
reason |
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
tekrar başlat
public void reboot ()
Atışlar | |
---|---|
DeviceNotAvailableException |
rebootIntoBootloader
public void rebootIntoBootloader ()
Atışlar | |
---|---|
DeviceNotAvailableException |
rebootIntoFastbootd
public void rebootIntoFastbootd ()
Atışlar | |
---|---|
DeviceNotAvailableException |
rebootIntoRecovery
public void rebootIntoRecovery ()
Atışlar | |
---|---|
DeviceNotAvailableException |
rebootIntoSideload
public void rebootIntoSideload ()
Atışlar | |
---|---|
DeviceNotAvailableException |
rebootIntoSideload
public void rebootIntoSideload (boolean autoReboot)
Parametreler | |
---|---|
autoReboot |
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
rebootUntilOnline
public void rebootUntilOnline ()
Atışlar | |
---|---|
DeviceNotAvailableException |
rebootUntilOnline
public void rebootUntilOnline (String reason)
Parametreler | |
---|---|
reason |
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
rebootUserspace
public void rebootUserspace ()
Atışlar | |
---|---|
DeviceNotAvailableException |
rebootUserspaceUntilOnline
public void rebootUserspaceUntilOnline ()
Atışlar | |
---|---|
DeviceNotAvailableException |
recoverDevice
public void recoverDevice ()
Cihazla iletişimi kurtarmaya çalışır.
Atışlar | |
---|---|
DeviceNotAvailableException |
Cihaz artık kullanılamıyorsa |
remountSystemWritable
public void remountSystemWritable ()
Atışlar | |
---|---|
DeviceNotAvailableException |
remountVendorWritable
public void remountVendorWritable ()
Atışlar | |
---|---|
DeviceNotAvailableException |
removeAdmin
public boolean removeAdmin (String componentName, int userId)
Parametreler | |
---|---|
componentName |
String |
userId |
int |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
removeOwners
public void removeOwners ()
Atışlar | |
---|---|
DeviceNotAvailableException |
removeUser
public boolean removeUser (int userId)
Parametreler | |
---|---|
userId |
int |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
resetContentProviderSetup
public void resetContentProviderSetup ()
Tekrar tetiklemek için içerik sağlayıcı kurulumunun işaretini sıfırlayın.
runInstrumentationTests
public boolean runInstrumentationTests (IRemoteAndroidTestRunner runner, ITestLifeCycleReceiver... listeners)
Parametreler | |
---|---|
runner |
IRemoteAndroidTestRunner |
listeners |
ITestLifeCycleReceiver |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
runInstrumentationTests
public boolean runInstrumentationTests (IRemoteAndroidTestRunner runner,listeners)
Parametreler | |
---|---|
runner |
IRemoteAndroidTestRunner |
listeners |
|
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
runInstrumentationTestsAsUser
public boolean runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner, int userId, ITestLifeCycleReceiver... listeners)
Parametreler | |
---|---|
runner |
IRemoteAndroidTestRunner |
userId |
int |
listeners |
ITestLifeCycleReceiver |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
runInstrumentationTestsAsUser
public boolean runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner, int userId,listeners)
Parametreler | |
---|---|
runner |
IRemoteAndroidTestRunner |
userId |
int |
listeners |
|
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
setConfiguration
public void setConfiguration (IConfiguration configuration)
Kullanımdaki IConfiguration
'ü enjekte eder.
Parametreler | |
---|---|
configuration |
IConfiguration |
setDate
public void setDate (Date date)
Parametreler | |
---|---|
date |
Date |
Atışlar | |
---|---|
DeviceNotAvailableException |
setDeviceOwner
public boolean setDeviceOwner (String componentName, int userId)
Parametreler | |
---|---|
componentName |
String |
userId |
int |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
setDeviceState
public void setDeviceState (TestDeviceState deviceState)
Parametreler | |
---|---|
deviceState |
TestDeviceState |
setEmulatorOutputStream
public void setEmulatorOutputStream (SizeLimitedOutputStream output)
Emülatör için çıkışı günlüğe kaydetmek üzere SizeLimitedOutputStream
ayarını yapın
Parametreler | |
---|---|
output |
SizeLimitedOutputStream : Çıktıyı günlüğe kaydetmek için
|
setEmulatorProcess
public void setEmulatorProcess (Process p)
Parametreler | |
---|---|
p |
Process |
setFastbootEnabled
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 |
setOptions
public void setOptions (TestDeviceOptions options)
Parametreler | |
---|---|
options |
TestDeviceOptions |
setProperty
public boolean setProperty (String propKey, String propValue)
Parametreler | |
---|---|
propKey |
String |
propValue |
String |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
setRecovery
public void setRecovery (IDeviceRecovery recovery)
Parametreler | |
---|---|
recovery |
IDeviceRecovery |
setRecoveryMode
public void setRecoveryMode (ITestDevice.RecoveryMode mode)
Parametreler | |
---|---|
mode |
ITestDevice.RecoveryMode |
setSetting
public void setSetting (String namespace, String key, String value)
Parametreler | |
---|---|
namespace |
String |
key |
String |
value |
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
setSetting
public void setSetting (int userId, String namespace, String key, String value)
Parametreler | |
---|---|
userId |
int |
namespace |
String |
key |
String |
value |
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
setUseFastbootErase
public void setUseFastbootErase (boolean useFastbootErase)
Parametreler | |
---|---|
useFastbootErase |
boolean |
startLogcat
public void startLogcat ()
startUser
public boolean startUser (int userId)
Parametreler | |
---|---|
userId |
int |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
startUser
public boolean startUser (int userId, boolean waitFlag)
Parametreler | |
---|---|
userId |
int |
waitFlag |
boolean |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
stopEmulatorOutput
public void stopEmulatorOutput ()
stopLogcat
public void stopLogcat ()
stopUser
public boolean stopUser (int userId)
Parametreler | |
---|---|
userId |
int |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
stopUser
public boolean stopUser (int userId, boolean waitFlag, boolean forceFlag)
Parametreler | |
---|---|
userId |
int |
waitFlag |
boolean |
forceFlag |
boolean |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
switchToAdbTcp
public String switchToAdbTcp ()
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
switchToAdbUsb
public boolean switchToAdbUsb ()
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
switchUser
public boolean switchUser (int userId)
Parametreler | |
---|---|
userId |
int |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
switchUser
public boolean switchUser (int userId, long timeout)
Parametreler | |
---|---|
userId |
int |
timeout |
long |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
syncFiles
public boolean syncFiles (File localFileDir, String deviceFilePath)
Parametreler | |
---|---|
localFileDir |
File |
deviceFilePath |
String |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
takeBugreport
public Bugreport takeBugreport ()
İlerlemeler | |
---|---|
Bugreport |
unencryptDevice
public boolean unencryptDevice ()
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
uninstallPackage
public String uninstallPackage (String packageName)
Parametreler | |
---|---|
packageName |
String |
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
uninstallPackageForUser
public String uninstallPackageForUser (String packageName, int userId)
Parametreler | |
---|---|
packageName |
String |
userId |
int |
İlerlemeler | |
---|---|
String |
Atışlar | |
---|---|
DeviceNotAvailableException |
unlockDevice
public boolean unlockDevice ()
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
waitForBootComplete
public boolean waitForBootComplete (long timeOut)
Parametreler | |
---|---|
timeOut |
long |
İlerlemeler | |
---|---|
boolean |
Atışlar | |
---|---|
DeviceNotAvailableException |
waitForDeviceAvailable
public void waitForDeviceAvailable ()
Atışlar | |
---|---|
DeviceNotAvailableException |
waitForDeviceAvailable
public void waitForDeviceAvailable (long waitTime)
Parametreler | |
---|---|
waitTime |
long |
Atışlar | |
---|---|
DeviceNotAvailableException |
waitForDeviceInRecovery
public boolean waitForDeviceInRecovery (long waitTime)
Parametreler | |
---|---|
waitTime |
long |
İlerlemeler | |
---|---|
boolean |
waitForDeviceInSideload
public boolean waitForDeviceInSideload (long waitTime)
Parametreler | |
---|---|
waitTime |
long |
İlerlemeler | |
---|---|
boolean |
waitForDeviceNotAvailable
public boolean waitForDeviceNotAvailable (long waitTime)
Parametreler | |
---|---|
waitTime |
long |
İlerlemeler | |
---|---|
boolean |
waitForDeviceOnline
public void waitForDeviceOnline ()
Atışlar | |
---|---|
DeviceNotAvailableException |
waitForDeviceOnline
public void waitForDeviceOnline (long waitTime)
Parametreler | |
---|---|
waitTime |
long |
Atışlar | |
---|---|
DeviceNotAvailableException |
waitForDeviceShell
public boolean waitForDeviceShell (long waitTime)
Parametreler | |
---|---|
waitTime |
long |
İlerlemeler | |
---|---|
boolean |
Korunan yöntemler
checkApiLevelAgainst
protected void checkApiLevelAgainst (String feature, int strictMinLevel)
Parametreler | |
---|---|
feature |
String |
strictMinLevel |
int |
createRebootDeviceAction
protected NativeDevice.RebootDeviceAction createRebootDeviceAction (NativeDevice.RebootMode rebootMode, String reason)
Yeniden başlatma işlemi gerçekleştirirken kullanılacak bir RebootDeviceAction
oluşturun.
Parametreler | |
---|---|
rebootMode |
NativeDevice.RebootMode : Bu yeniden başlatma modu. |
reason |
String : için bu yeniden başlatma işlemini gerçekleştirin. |
İlerlemeler | |
---|---|
NativeDevice.RebootDeviceAction |
oluşturulan RebootDeviceAction .
|
doAdbReboot
protected void doAdbReboot (NativeDevice.RebootMode rebootMode, String reason)
adb reboot komutunu çalıştırın.
Parametreler | |
---|---|
rebootMode |
NativeDevice.RebootMode : Bu yeniden başlatma modu. |
reason |
String : için bu yeniden başlatma işlemini gerçekleştirin. |
Atışlar | |
---|---|
DeviceNotAvailableException |
ensureRuntimePermissionSupported
protected void ensureRuntimePermissionSupported ()
Çalışma zamanı izni desteklenmiyorsa istisna atanması için yardımcı yöntem
Atışlar | |
---|---|
DeviceNotAvailableException |
getBugreportInternal
protected InputStreamSource getBugreportInternal ()
İlerlemeler | |
---|---|
InputStreamSource |
getBugreportzInternal
protected File getBugreportzInternal ()
bugreportz zip dosyasını ERROR(/File)
olarak almak için kullanılan dahili yardımcı yöntem.
İlerlemeler | |
---|---|
File |
getRunUtil
protected IRunUtil getRunUtil ()
Kullanılacak RunUtil
örneğini alın.
İlerlemeler | |
---|---|
IRunUtil |
internalGetProperty
protected String internalGetProperty (String propName, String fastbootVar, String description)
Varsayılan olarak ddmlib önbelleğinden bir cihaz özelliğini getirir ve cihazın Fastboot'ta olup olmadığına bağlı olarak "adb shell getprop" veya "fastboot getvar" komutuna geçer.
Parametreler | |
---|---|
propName |
String : "adb shell getprop" tarafından döndürülen cihaz özelliğinin adı |
fastbootVar |
String : Sorgulanacak eşdeğer fastboot değişkeninin adı. null ise fastboot sorgusu denenmez |
description |
String : Değişkenin basit bir açıklamasıdır. İlk harf büyük olmalıdır. |
İlerlemeler | |
---|---|
String |
Belirtilen mülkün değerini içeren bir dize (muhtemelen null veya boş)
|
Atışlar | |
---|---|
DeviceNotAvailableException |
isNewer
protected boolean isNewer (File localFile, IFileEntry entry)
Yerel dosya uzak dosyadan daha yeniyse true
döndürülür. IFileEntry
dakikaya kadar doğruysa, aynı saatler söz konusu olduğunda dosya daha yeni kabul edilir.
Parametreler | |
---|---|
localFile |
File |
entry |
IFileEntry |
İlerlemeler | |
---|---|
boolean |
performDeviceAction
protected boolean performDeviceAction (String actionDescription, com.android.tradefed.device.NativeDevice.DeviceAction action, int retryAttempts)
Bu cihazda bir işlem gerçekleştirir. Cihazın kurtarılmasını dener ve işlem başarısız olursa isteğe bağlı olarak komutu yeniden dener.
Parametreler | |
---|---|
actionDescription |
String : Yapılacak işlemin kısa açıklaması. Yalnızca günlük kaydı amacıyla kullanılır. |
action |
com.android.tradefed.device.NativeDevice.DeviceAction : yapılacak işlem |
retryAttempts |
int : İşlem başarısız olursa ancak kurtarma işlemi başarılı olursa işlemi yeniden deneme girişimleri |
İlerlemeler | |
---|---|
boolean |
true (işlem başarıyla gerçekleştirildiyse) |
Atışlar | |
---|---|
DeviceNotAvailableException |
Kurtarma girişimi başarısız olursa veya maksimum deneme sayısına ulaşılırsa |
postAdbReboot
protected void postAdbReboot ()
Yeniden başlatma işleminden sonra yapılabilecek ek işlemler.
Atışlar | |
---|---|
DeviceNotAvailableException |
prePostBootSetup
protected void prePostBootSetup ()
Her cihaz türünün (AndroidNativeDevice, TestDevice), belirli bir önyükleme sonrası kurulum için bu yöntemi geçersiz kılmasına olanak tanır.
Atışlar | |
---|---|
DeviceNotAvailableException |
setClock
protected void setClock (Clock clock)
Kullanılacak Saat örneğini ayarlayın.
Parametreler | |
---|---|
clock |
Clock |
setLogStartDelay
protected void setLogStartDelay (int delay)
Çevrimiçi bir cihaz için logcat yakalama işlemini başlatmadan önce bekleyilecek süreyi milisaniye cinsinden ayarlar.
Parametreler | |
---|---|
delay |
int : ms cinsinden gecikme
|
waitForDeviceNotAvailable
protected void waitForDeviceNotAvailable (String operationDesc, long time)
Parametreler | |
---|---|
operationDesc |
String |
time |
long |