नेटिव डिवाइस
public
class
NativeDevice
extends Object
implements
IManagedTestDevice,
IConfigurationReceiver
java.lang.Object | |
↳ | com.android.tradefed.device.NativeDevice |
ITestDevice
ऐसे Android डिवाइसों को डिफ़ॉल्ट तौर पर लागू किया गया है जो फ़ुल स्टैक नहीं हैं.
खास जानकारी
नेस्ट की गई क्लास | |
---|---|
class |
NativeDevice.AdbAction
OS 'adb ....' चलाने के लिए |
class |
NativeDevice.AdbShellAction
|
class |
NativeDevice.RebootDeviceAction
डिवाइस को फिर से चालू करने के लिए |
enum |
NativeDevice.RebootMode
फिर से चालू होने का मोड. |
स्थिरांक | |
---|---|
int |
INVALID_USER_ID
किसी अमान्य/नहीं मिलने वाले यूज़र आईडी की वजह से लौटाया गया मान: UserHandle ने -10000 मान तय किया |
long |
MAX_HOST_DEVICE_TIME_OFFSET
|
int |
MAX_RETRY_ATTEMPTS
निर्देशों की डिफ़ॉल्ट संख्या, फिर से कोशिश करने की कोशिश करती है |
फ़ील्ड्स की फ़िल्में | |
---|---|
protected
static
final
String |
SD_CARD
|
protected
static
final
String |
STORAGE_EMULATED
|
protected
TestDeviceOptions |
mOptions
|
protected
final
IDeviceStateMonitor |
mStateMonitor
|
सार्वजनिक कंस्ट्रक्टर | |
---|---|
NativeDevice(IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)
यह |
सार्वजनिक तरीके | |
---|---|
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()
वह लॉग जिसमें |
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)
गैर-रूट पाथ से |
|
getFoldableStates()
|
IDevice
|
getIDevice()
|
|
getInstalledPackageNames()
|
long
|
getIntProperty(String name, long defaultValue)
|
String
|
getIpAddress()
|
KeyguardControllerState
|
getKeyguardState()
|
long
|
getLastExpectedRebootTimeMillis()
|
int
|
getLaunchApiLevel()
|
InputStreamSource
|
getLogcat()
|
InputStreamSource
|
getLogcat(int maxBytes)
|
InputStreamSource
|
getLogcatDump()
|
InputStreamSource
|
getLogcatSince(long date)
|
String
|
getMacAddress()
|
|
getMainlineModuleInfo()
|
int
|
getMaxNumberOfRunningUsersSupported()
|
int
|
getMaxNumberOfUsersSupported()
|
IDeviceStateMonitor
|
getMonitor()
|
String
|
getMountPoint(String mountName)
|
ITestDevice.MountPointInfo
|
getMountPointInfo(String mountpoint)
|
|
getMountPointInfo()
|
TestDeviceOptions
|
getOptions()
|
long
|
getPartitionFreeSpace(String partition)
|
Integer
|
getPrimaryUserId()
|
ProcessInfo
|
getProcessByName(String processName)
|
String
|
getProcessPid(String process)
|
String
|
getProductType()
|
String
|
getProductVariant()
|
String
|
getProperty(String name)
|
ITestDevice.RecoveryMode
|
getRecoveryMode()
|
InputStreamSource
|
getScreenshot(String format)
|
InputStreamSource
|
getScreenshot(long displayId)
|
InputStreamSource
|
getScreenshot(String format, boolean rescale)
|
InputStreamSource
|
getScreenshot()
|
String
|
getSerialNumber()
|
String
|
getSetting(int userId, String namespace, String key)
|
String
|
getSetting(String namespace, String key)
|
String
|
getSimOperator()
|
String
|
getSimState()
|
|
getTombstones()
|
long
|
getTotalMemory()
|
|
getUninstallablePackageNames()
|
boolean
|
getUseFastbootErase()
|
int
|
getUserFlags(int userId)
|
|
getUserInfos()
|
int
|
getUserSerialNumber(int userId)
|
IManagedTestDevice.DeviceEventResponse
|
handleAllocationEvent(DeviceEvent event)
DeviceEvent को प्रोसेस करें. ऐसा हो सकता है कि इस डिवाइस को नए असाइन करते समय लागू किया जाए और नहीं भी राज्य. |
boolean
|
hasFeature(String feature)
|
String
|
installPackage(File packageFile, boolean reinstall, String... extraArgs)
|
String
|
installPackage(File packageFile, boolean reinstall, boolean grantPermissions, String... extraArgs)
|
String
|
installPackageForUser(File packageFile, boolean reinstall, int userId, String... extraArgs)
|
String
|
installPackageForUser(File packageFile, boolean reinstall, boolean grantPermissions, int userId, String... extraArgs)
|
boolean
|
isAdbRoot()
|
boolean
|
isAdbTcp()
|
boolean
|
isAppEnumerationSupported()
|
boolean
|
isDeviceEncrypted()
|
boolean
|
isDirectory(String path)
|
boolean
|
isEnableAdbRoot()
|
boolean
|
isEncryptionSupported()
|
boolean
|
isExecutable(String fullPath)
|
boolean
|
isFastbootEnabled()
|
boolean
|
isHeadless()
|
boolean
|
isMultiUserSupported()
|
boolean
|
isPackageInstalled(String packageName, String userId)
|
boolean
|
isPackageInstalled(String packageName)
|
boolean
|
isRuntimePermissionSupported()
|
boolean
|
isStateBootloaderOrFastbootd()
|
boolean
|
isUserRunning(int userId)
|
boolean
|
isUserSecondary(int userId)
|
boolean
|
isWifiEnabled()
|
|
listDisplayIds()
|
|
listUsers()
|
boolean
|
logBugreport(String dataName, ITestLogger listener)
|
void
|
logOnDevice(String tag, Log.LogLevel level, String format, Object... args)
|
void
|
nonBlockingReboot()
|
void
|
postAdbRootAction()
अगर डिवाइस को adb रूट के बाद और डिवाइस फिर से ऑनलाइन हो गया है. |
void
|
postAdbUnrootAction()
अगर डिवाइस को adb अनरूट के बाद और उससे पहले कुछ खास कार्रवाइयां करने की ज़रूरत हो तो ओवरराइड करें डिवाइस फिर से ऑनलाइन हो गया है. |
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()
डिवाइस का कम्यूनिकेशन वापस पाने की कोशिश की जाती है. |
void
|
remountSystemWritable()
|
void
|
remountVendorWritable()
|
boolean
|
removeAdmin(String componentName, int userId)
|
void
|
removeOwners()
|
boolean
|
removeUser(int userId)
|
void
|
resetContentProviderSetup()
कॉन्टेंट देने वाले सेट अप के लिए फ़्लैग को रीसेट करें, ताकि इसे फिर से ट्रिगर किया जा सके. |
boolean
|
runInstrumentationTests(IRemoteAndroidTestRunner runner, ITestLifeCycleReceiver... listeners)
|
boolean
|
runInstrumentationTests(IRemoteAndroidTestRunner runner,
|
boolean
|
runInstrumentationTestsAsUser(IRemoteAndroidTestRunner runner, int userId, ITestLifeCycleReceiver... listeners)
|
boolean
|
runInstrumentationTestsAsUser(IRemoteAndroidTestRunner runner, int userId,
|
void
|
setConfiguration(IConfiguration configuration)
|
void
|
setDate(Date date)
|
boolean
|
setDeviceOwner(String componentName, int userId)
|
void
|
setDeviceState(TestDeviceState deviceState)
|
void
|
setEmulatorOutputStream(SizeLimitedOutputStream output)
एम्युलेटर के लिए, आउटपुट लॉग करने के लिए |
void
|
setEmulatorProcess(Process p)
|
void
|
setFastbootEnabled(boolean fastbootEnabled)
|
void
|
setFastbootPath(String fastbootPath)
|
void
|
setIDevice(IDevice newDevice)
|
void
|
setOptions(TestDeviceOptions options)
|
boolean
|
setProperty(String propKey, String propValue)
|
void
|
setRecovery(IDeviceRecovery recovery)
|
void
|
setRecoveryMode(ITestDevice.RecoveryMode mode)
|
void
|
setSetting(String namespace, String key, String value)
|
void
|
setSetting(int userId, String namespace, String key, String value)
|
void
|
setUseFastbootErase(boolean useFastbootErase)
|
void
|
startLogcat()
|
boolean
|
startUser(int userId)
|
boolean
|
startUser(int userId, boolean waitFlag)
|
void
|
stopEmulatorOutput()
|
void
|
stopLogcat()
|
boolean
|
stopUser(int userId)
|
boolean
|
stopUser(int userId, boolean waitFlag, boolean forceFlag)
|
String
|
switchToAdbTcp()
|
boolean
|
switchToAdbUsb()
|
boolean
|
switchUser(int userId)
|
boolean
|
switchUser(int userId, long timeout)
|
boolean
|
syncFiles(File localFileDir, String deviceFilePath)
|
Bugreport
|
takeBugreport()
|
boolean
|
unencryptDevice()
|
String
|
uninstallPackage(String packageName)
|
String
|
uninstallPackageForUser(String packageName, int userId)
|
boolean
|
unlockDevice()
|
boolean
|
waitForBootComplete(long timeOut)
|
void
|
waitForDeviceAvailable()
|
void
|
waitForDeviceAvailable(long waitTime)
|
boolean
|
waitForDeviceInRecovery(long waitTime)
|
boolean
|
waitForDeviceInSideload(long waitTime)
|
boolean
|
waitForDeviceNotAvailable(long waitTime)
|
void
|
waitForDeviceOnline()
|
void
|
waitForDeviceOnline(long waitTime)
|
boolean
|
waitForDeviceShell(long waitTime)
|
सुरक्षित तरीके | |
---|---|
void
|
checkApiLevelAgainst(String feature, int strictMinLevel)
|
NativeDevice.RebootDeviceAction
|
createRebootDeviceAction(NativeDevice.RebootMode rebootMode, String reason)
फिर से चालू करने की कार्रवाई करते समय इस्तेमाल करने के लिए |
void
|
doAdbReboot(NativeDevice.RebootMode rebootMode, String reason)
adb को फिर से चालू करें. |
void
|
ensureRuntimePermissionSupported()
अगर रनटाइम की अनुमति नहीं मिलती है, तो अपवाद जोड़ने के लिए हेल्पर तरीका |
InputStreamSource
|
getBugreportInternal()
|
File
|
getBugreportzInternal()
Bugreportz ZIP फ़ाइल को |
IRunUtil
|
getRunUtil()
इस्तेमाल करने के लिए |
String
|
internalGetProperty(String propName, String fastbootVar, String description)
डिफ़ॉल्ट रूप से, ddmlib कैश मेमोरी से डिवाइस की किसी प्रॉपर्टी को फ़ेच करें और वापस `adb" पर जाएं डिवाइस में फ़ास्टबूट किया गया है या नहीं, इसके आधार पर शेल गेटप्रॉप` या `फ़ास्टबूट गेटवर` तय किया जाता है. |
boolean
|
isNewer(File localFile, IFileEntry entry)
अगर लोकल फ़ाइल, रिमोट फ़ाइल से नई है, तो |
boolean
|
performDeviceAction(String actionDescription, com.android.tradefed.device.NativeDevice.DeviceAction action, int retryAttempts)
इस डिवाइस पर कोई कार्रवाई करता है. |
void
|
postAdbReboot()
डिवाइस को फिर से चालू करने के बाद की जा सकने वाली अन्य कार्रवाइयां. |
void
|
prePostBootSetup()
हर डिवाइस टाइप (AndroidNativeDevice, TestDevice) को विशिष्ट पोस्ट बूट सेटअप. |
void
|
setClock(Clock clock)
इस्तेमाल करने के लिए Clock इंस्टेंस सेट करें. |
void
|
setLogStartDelay(int delay)
किसी ऑनलाइन डिवाइस के लिए Logcat कैप्चर शुरू करने से पहले, इंतज़ार का समय मि॰से॰ में सेट करता है. |
void
|
waitForDeviceNotAvailable(String operationDesc, long time)
|
स्थिरांक
अमान्य_USER_आईडी
public static final int INVALID_USER_ID
किसी अमान्य/नहीं मिलने वाले यूज़र आईडी की वजह से लौटाया गया मान: UserHandle ने -10000 मान तय किया
कॉन्स्टेंट वैल्यू: -10,000 (0xffffd8f0)
MAX_Host_DEVICE_TIME_OFFSET
protected static final long MAX_HOST_DEVICE_TIME_OFFSET
कॉन्स्टेंट वैल्यू: 5,000 (0x0000000000001388)
MAX_RETRY_डिवाइस
protected static final int MAX_RETRY_ATTEMPTS
निर्देशों की डिफ़ॉल्ट संख्या, फिर से कोशिश करने की कोशिश करती है
कॉन्स्टेंट वैल्यू: 2 (0x00000002)
फ़ील्ड्स की फ़िल्में
एसडी_कार्ड
protected static final String SD_CARD
स्टोरेज_ईएमयूलेट किया गया
protected static final String STORAGE_EMULATED
विकल्प
protected TestDeviceOptions mOptions
एमस्टेटमॉनिटर
protected final IDeviceStateMonitor mStateMonitor
सार्वजनिक कंस्ट्रक्टर
नेटिव डिवाइस
public NativeDevice (IDevice device, IDeviceStateMonitor stateMonitor, IDeviceMonitor allocationMonitor)
यह TestDevice
बनाता है.
पैरामीटर | |
---|---|
device |
IDevice : संबंधित IDevice |
stateMonitor |
IDeviceStateMonitor : इस्तेमाल करने के लिए IDeviceStateMonitor तरीका |
allocationMonitor |
IDeviceMonitor : आवंटन की स्थिति के बदलावों के बारे में बताने के लिए, IDeviceMonitor .
शून्य हो सकता है
|
सार्वजनिक तरीके
CheckApilevelAgainstNextRelease
public boolean checkApiLevelAgainstNextRelease (int strictMinLevel)
पैरामीटर | |
---|---|
strictMinLevel |
int |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
कनेक्टिविटी की जांच करें
public boolean checkConnectivity ()
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
क्लीयर एरर डायलॉग
public boolean clearErrorDialogs ()
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
clearLastConnectWifiNetwork
public void clearLastConnectedWifiNetwork ()
क्लियरलॉगकैट
public void clearLogcat ()
वाई-फ़ाई नेटवर्क से कनेक्ट करें
public boolean connectToWifiNetwork (String wifiSsid, String wifiPsk)
पैरामीटर | |
---|---|
wifiSsid |
String |
wifiPsk |
String |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
वाई-फ़ाई नेटवर्क से कनेक्ट करें
public boolean connectToWifiNetwork (String wifiSsid, String wifiPsk, boolean scanSsid)
पैरामीटर | |
---|---|
wifiSsid |
String |
wifiPsk |
String |
scanSsid |
boolean |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
ConnectToWifiNetworkIf की ज़रूरत है
public boolean connectToWifiNetworkIfNeeded (String wifiSsid, String wifiPsk, boolean scanSsid)
पैरामीटर | |
---|---|
wifiSsid |
String |
wifiPsk |
String |
scanSsid |
boolean |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
ConnectToWifiNetworkIf की ज़रूरत है
public boolean connectToWifiNetworkIfNeeded (String wifiSsid, String wifiPsk)
पैरामीटर | |
---|---|
wifiSsid |
String |
wifiPsk |
String |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
उपयोगकर्ता बनाएं
public int createUser (String name, boolean guest, boolean ephemeral)
पैरामीटर | |
---|---|
name |
String |
guest |
boolean |
ephemeral |
boolean |
रिटर्न | |
---|---|
int |
थ्रो | |
---|---|
DeviceNotAvailableException |
उपयोगकर्ता बनाएं
public int createUser (String name)
पैरामीटर | |
---|---|
name |
String |
रिटर्न | |
---|---|
int |
थ्रो | |
---|---|
DeviceNotAvailableException |
CreateUserNoThrow
public int createUserNoThrow (String name)
पैरामीटर | |
---|---|
name |
String |
रिटर्न | |
---|---|
int |
थ्रो | |
---|---|
DeviceNotAvailableException |
फ़ाइल मिटाएं
public void deleteFile (String deviceFilePath)
पैरामीटर | |
---|---|
deviceFilePath |
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
डिवाइससॉफ़्ट रीस्टार्ट किया गया
public boolean deviceSoftRestarted (ProcessInfo prevSystemServerProcess)
पैरामीटर | |
---|---|
prevSystemServerProcess |
ProcessInfo |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
deviceSoftStarted Since
public boolean deviceSoftRestartedSince (long utcEpochTime, TimeUnit timeUnit)
पैरामीटर | |
---|---|
utcEpochTime |
long |
timeUnit |
TimeUnit |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
discountAdbRoot
public boolean disableAdbRoot ()
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
बंद करेंकीगार्ड
public void disableKeyguard ()
थ्रो | |
---|---|
DeviceNotAvailableException |
बंद नेटवर्क मॉनिटर
public boolean disableNetworkMonitor ()
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
फ़्रॉमवाई-फ़ाई डिसकनेक्ट करें
public boolean disconnectFromWifi ()
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
doFileExist
public boolean doesFileExist (String deviceFilePath)
पैरामीटर | |
---|---|
deviceFilePath |
String |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
डंपहीप
public File dumpHeap (String process, String devicePath)
पैरामीटर | |
---|---|
process |
String |
devicePath |
String |
रिटर्न | |
---|---|
File |
थ्रो | |
---|---|
DeviceNotAvailableException |
सक्षम करेंAdbRoot
public boolean enableAdbRoot ()
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
enabledNetworkMonitor चालू करें
public boolean enableNetworkMonitor ()
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
एन्क्रिप्ट डिवाइस
public boolean encryptDevice (boolean inplace)
पैरामीटर | |
---|---|
inplace |
boolean |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
एक्ज़ीक्यूट करने के लिए AdbCommand
public String executeAdbCommand (long timeout, String... cmdArgs)
पैरामीटर | |
---|---|
timeout |
long |
cmdArgs |
String |
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
एक्ज़ीक्यूट करने के लिए AdbCommand
public String executeAdbCommand (String... cmdArgs)
पैरामीटर | |
---|---|
cmdArgs |
String |
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
FastbootCommand को एक्ज़ीक्यूट करें
public CommandResult executeFastbootCommand (String... cmdArgs)
पैरामीटर | |
---|---|
cmdArgs |
String |
रिटर्न | |
---|---|
CommandResult |
थ्रो | |
---|---|
DeviceNotAvailableException |
FastbootCommand को एक्ज़ीक्यूट करें
public CommandResult executeFastbootCommand (long timeout, String... cmdArgs)
पैरामीटर | |
---|---|
timeout |
long |
cmdArgs |
String |
रिटर्न | |
---|---|
CommandResult |
थ्रो | |
---|---|
DeviceNotAvailableException |
एक्ज़ीक्यूटलफ़ास्टबूट कमांड
public CommandResult executeLongFastbootCommand (String... cmdArgs)
पैरामीटर | |
---|---|
cmdArgs |
String |
रिटर्न | |
---|---|
CommandResult |
थ्रो | |
---|---|
DeviceNotAvailableException |
एक्ज़िक्यूट शेल कमांड
public String executeShellCommand (String command)
पैरामीटर | |
---|---|
command |
String |
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
एक्ज़िक्यूट शेल कमांड
public void executeShellCommand (String command, IShellOutputReceiver receiver, long maxTimeToOutputShellResponse, TimeUnit timeUnit, int retryAttempts)
पैरामीटर | |
---|---|
command |
String |
receiver |
IShellOutputReceiver |
maxTimeToOutputShellResponse |
long |
timeUnit |
TimeUnit |
retryAttempts |
int |
थ्रो | |
---|---|
DeviceNotAvailableException |
एक्ज़िक्यूट शेल कमांड
public void executeShellCommand (String command, IShellOutputReceiver receiver, long maxTimeoutForCommand, long maxTimeToOutputShellResponse, TimeUnit timeUnit, int retryAttempts)
पैरामीटर | |
---|---|
command |
String |
receiver |
IShellOutputReceiver |
maxTimeoutForCommand |
long |
maxTimeToOutputShellResponse |
long |
timeUnit |
TimeUnit |
retryAttempts |
int |
थ्रो | |
---|---|
DeviceNotAvailableException |
एक्ज़िक्यूट शेल कमांड
public void executeShellCommand (String command, IShellOutputReceiver receiver)
पैरामीटर | |
---|---|
command |
String |
receiver |
IShellOutputReceiver |
थ्रो | |
---|---|
DeviceNotAvailableException |
InsertShellV2Command
public CommandResult executeShellV2Command (String cmd)
पैरामीटर | |
---|---|
cmd |
String |
रिटर्न | |
---|---|
CommandResult |
थ्रो | |
---|---|
DeviceNotAvailableException |
InsertShellV2Command
public CommandResult executeShellV2Command (String cmd, OutputStream pipeToOutput)
पैरामीटर | |
---|---|
cmd |
String |
pipeToOutput |
OutputStream |
रिटर्न | |
---|---|
CommandResult |
थ्रो | |
---|---|
DeviceNotAvailableException |
InsertShellV2Command
public CommandResult executeShellV2Command (String cmd, File pipeAsInput)
पैरामीटर | |
---|---|
cmd |
String |
pipeAsInput |
File |
रिटर्न | |
---|---|
CommandResult |
थ्रो | |
---|---|
DeviceNotAvailableException |
InsertShellV2Command
public CommandResult executeShellV2Command (String cmd, long maxTimeoutForCommand, TimeUnit timeUnit, int retryAttempts)
पैरामीटर | |
---|---|
cmd |
String |
maxTimeoutForCommand |
long |
timeUnit |
TimeUnit |
retryAttempts |
int |
रिटर्न | |
---|---|
CommandResult |
थ्रो | |
---|---|
DeviceNotAvailableException |
InsertShellV2Command
public CommandResult executeShellV2Command (String cmd, long maxTimeoutForCommand, TimeUnit timeUnit)
पैरामीटर | |
---|---|
cmd |
String |
maxTimeoutForCommand |
long |
timeUnit |
TimeUnit |
रिटर्न | |
---|---|
CommandResult |
थ्रो | |
---|---|
DeviceNotAvailableException |
InsertShellV2Command
public CommandResult executeShellV2Command (String cmd, File pipeAsInput, OutputStream pipeToOutput, long maxTimeoutForCommand, TimeUnit timeUnit, int retryAttempts)
पैरामीटर | |
---|---|
cmd |
String |
pipeAsInput |
File |
pipeToOutput |
OutputStream |
maxTimeoutForCommand |
long |
timeUnit |
TimeUnit |
retryAttempts |
int |
रिटर्न | |
---|---|
CommandResult |
थ्रो | |
---|---|
DeviceNotAvailableException |
InsertShellV2Command
public CommandResult executeShellV2Command (String cmd, File pipeAsInput, OutputStream pipeToOutput, OutputStream pipeToError, long maxTimeoutForCommand, TimeUnit timeUnit, int retryAttempts)
पैरामीटर | |
---|---|
cmd |
String |
pipeAsInput |
File |
pipeToOutput |
OutputStream |
pipeToError |
OutputStream |
maxTimeoutForCommand |
long |
timeUnit |
TimeUnit |
retryAttempts |
int |
रिटर्न | |
---|---|
CommandResult |
थ्रो | |
---|---|
DeviceNotAvailableException |
फ़ास्टबूटवाइपपार्टिशन
public CommandResult fastbootWipePartition (String partition)
पैरामीटर | |
---|---|
partition |
String |
रिटर्न | |
---|---|
CommandResult |
थ्रो | |
---|---|
DeviceNotAvailableException |
गेटऐक्टिव एपेक्स
publicgetActiveApexes ()
रिटर्न | |
---|---|
|
थ्रो | |
---|---|
DeviceNotAvailableException |
सभी सेटिंग पाएं
publicgetAllSettings (String namespace)
पैरामीटर | |
---|---|
namespace |
String |
रिटर्न | |
---|---|
|
थ्रो | |
---|---|
DeviceNotAvailableException |
getAllocationState
public DeviceAllocationState getAllocationState ()
रिटर्न | |
---|---|
DeviceAllocationState |
'Android आईडी'
public String getAndroidId (int userId)
पैरामीटर | |
---|---|
userId |
int |
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
getAndroidIds
publicgetAndroidIds ()
रिटर्न | |
---|---|
|
थ्रो | |
---|---|
DeviceNotAvailableException |
गेट एपीआई लेवल
public int getApiLevel ()
रिटर्न | |
---|---|
int |
थ्रो | |
---|---|
DeviceNotAvailableException |
getAppपैकेजInfo
public PackageInfo getAppPackageInfo (String packageName)
पैरामीटर | |
---|---|
packageName |
String |
रिटर्न | |
---|---|
PackageInfo |
थ्रो | |
---|---|
DeviceNotAvailableException |
getAppपैकेजInfos
publicgetAppPackageInfos ()
रिटर्न | |
---|---|
|
थ्रो | |
---|---|
DeviceNotAvailableException |
getBase BandVersion
public String getBasebandVersion ()
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
बैटरी पाएं
public Integer getBattery ()
रिटर्न | |
---|---|
Integer |
गेटबूलियनप्रॉपर्टी
public boolean getBooleanProperty (String name, boolean defaultValue)
पैरामीटर | |
---|---|
name |
String |
defaultValue |
boolean |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
बूट इतिहास पाएं
publicgetBootHistory ()
रिटर्न | |
---|---|
|
थ्रो | |
---|---|
DeviceNotAvailableException |
गेटबूटइतिहासइसके बाद से
publicgetBootHistorySince (long utcEpochTime, TimeUnit timeUnit)
पैरामीटर | |
---|---|
utcEpochTime |
long |
timeUnit |
TimeUnit |
रिटर्न | |
---|---|
|
थ्रो | |
---|---|
DeviceNotAvailableException |
getBootloaderVersion
public String getBootloaderVersion ()
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
'गड़बड़ी की रिपोर्ट' डाउनलोड करें
public InputStreamSource getBugreport ()
रिटर्न | |
---|---|
InputStreamSource |
गेटBugreportz
public InputStreamSource getBugreportz ()
रिटर्न | |
---|---|
InputStreamSource |
getBuildAlias
public String getBuildAlias ()
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
गेटबिल्डफ़्लेवर
public String getBuildFlavor ()
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
getBuildId
public String getBuildId ()
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
getBuildSignKeys
public String getBuildSigningKeys ()
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
getcachedDeviceDescriptor
public DeviceDescriptor getCachedDeviceDescriptor ()
रिटर्न | |
---|---|
DeviceDescriptor |
बच्चों के लिए
public String[] getChildren (String path)
पैरामीटर | |
---|---|
path |
String |
रिटर्न | |
---|---|
String[] |
थ्रो | |
---|---|
DeviceNotAvailableException |
getCurrentFoldableState
public DeviceFoldableState getCurrentFoldableState ()
रिटर्न | |
---|---|
DeviceFoldableState |
थ्रो | |
---|---|
DeviceNotAvailableException |
'मौजूदा उपयोगकर्ता' पाएं
public int getCurrentUser ()
रिटर्न | |
---|---|
int |
थ्रो | |
---|---|
DeviceNotAvailableException |
'डिवाइस क्लास' पाएं
public String getDeviceClass ()
रिटर्न | |
---|---|
String |
DeviceDate पाएं
public long getDeviceDate ()
रिटर्न | |
---|---|
long |
थ्रो | |
---|---|
DeviceNotAvailableException |
'डिवाइस डिस्क्रिप्टर' पाएं
public DeviceDescriptor getDeviceDescriptor ()
रिटर्न | |
---|---|
DeviceDescriptor |
getDeviceState
public TestDeviceState getDeviceState ()
रिटर्न | |
---|---|
TestDeviceState |
DeviceTimeOffset पाएं
public long getDeviceTimeOffset (Date date)
पैरामीटर | |
---|---|
date |
Date |
रिटर्न | |
---|---|
long |
थ्रो | |
---|---|
DeviceNotAvailableException |
getEmulator आउटपुट
public InputStreamSource getEmulatorOutput ()
रिटर्न | |
---|---|
InputStreamSource |
getEmulatorप्रोसेस
public Process getEmulatorProcess ()
रिटर्न | |
---|---|
Process |
get एक्ज़ीक्यूटशेल कमांडलॉग
public final File getExecuteShellCommandLog ()
वह लॉग जिसमें executeShellCommand(String)
के सभी लॉग होते हैं.
रिटर्न | |
---|---|
File |
पाएंExternalStoreFreeSpace
public long getExternalStoreFreeSpace ()
रिटर्न | |
---|---|
long |
थ्रो | |
---|---|
DeviceNotAvailableException |
'फ़ास्टबूटपाथ'
public String getFastbootPath ()
रिटर्न | |
---|---|
String |
'फ़ास्टबूट'प्रॉडक्ट टाइप
public String getFastbootProductType ()
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
'फ़ास्टबूट'प्रॉडक्ट वैरिएंट
public String getFastbootProductVariant ()
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
पाएंफ़ास्टबूटSerialNumber
public String getFastbootSerialNumber ()
रिटर्न | |
---|---|
String |
getफ़ास्टबूट वैरिएबल
public String getFastbootVariable (String variableName)
पैरामीटर | |
---|---|
variableName |
String |
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
getFastbootVersion
public String getFastbootVersion ()
रिटर्न | |
---|---|
String |
'फ़ाइल एंट्री' का अनुरोध करें
public IFileEntry getFileEntry (String path)
पैरामीटर | |
---|---|
path |
String |
रिटर्न | |
---|---|
IFileEntry |
थ्रो | |
---|---|
DeviceNotAvailableException |
'फ़ाइल एंट्री' का अनुरोध करें
public IFileEntry getFileEntry (FileListingService.FileEntry entry)
गैर-रूट पाथ से FileEntry
पाने के लिए गैर-आधिकारिक सहायक. FIXME: Google Analytics 4 पर
FileEntry सिस्टम को किसी भी पाथ से उपलब्ध कराना. (गैर रूट का भी).
पैरामीटर | |
---|---|
entry |
FileListingService.FileEntry : ज़रूरी नहीं है कि Ddmlib की ज़रूरत के मुताबिक FileEntry रूट हो. |
रिटर्न | |
---|---|
IFileEntry |
FileEntry को दिखाने वाला FileEntryWrapper . |
थ्रो | |
---|---|
DeviceNotAvailableException |
getFoldableStates
publicgetFoldableStates ()
रिटर्न | |
---|---|
|
थ्रो | |
---|---|
DeviceNotAvailableException |
CANNOT TRANSLATE
public IDevice getIDevice ()
रिटर्न | |
---|---|
IDevice |
getInstalledPackageNames
publicgetInstalledPackageNames ()
रिटर्न | |
---|---|
|
थ्रो | |
---|---|
DeviceNotAvailableException |
गेटइनटप्रॉपर्टी
public long getIntProperty (String name, long defaultValue)
पैरामीटर | |
---|---|
name |
String |
defaultValue |
long |
रिटर्न | |
---|---|
long |
थ्रो | |
---|---|
DeviceNotAvailableException |
getIpAddress
public String getIpAddress ()
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
getKeyGuardState
public KeyguardControllerState getKeyguardState ()
रिटर्न | |
---|---|
KeyguardControllerState |
थ्रो | |
---|---|
DeviceNotAvailableException |
getLastExpected पाएगा रीबूटTimeMillis
public long getLastExpectedRebootTimeMillis ()
रिटर्न | |
---|---|
long |
गेटलॉन्चएपीआईलेवल
public int getLaunchApiLevel ()
रिटर्न | |
---|---|
int |
थ्रो | |
---|---|
DeviceNotAvailableException |
गेटलॉगकैट
public InputStreamSource getLogcat ()
रिटर्न | |
---|---|
InputStreamSource |
गेटलॉगकैट
public InputStreamSource getLogcat (int maxBytes)
पैरामीटर | |
---|---|
maxBytes |
int |
रिटर्न | |
---|---|
InputStreamSource |
getLogcatDump
public InputStreamSource getLogcatDump ()
रिटर्न | |
---|---|
InputStreamSource |
getLogcatSince
public InputStreamSource getLogcatSince (long date)
पैरामीटर | |
---|---|
date |
long |
रिटर्न | |
---|---|
InputStreamSource |
getMacAddress
public String getMacAddress ()
रिटर्न | |
---|---|
String |
getMainlineModuleInfo
publicgetMainlineModuleInfo ()
रिटर्न | |
---|---|
|
थ्रो | |
---|---|
DeviceNotAvailableException |
getMaxNumberOfRunउपयोगकर्ताओं के साथ काम करने वाली सेटिंग
public int getMaxNumberOfRunningUsersSupported ()
रिटर्न | |
---|---|
int |
थ्रो | |
---|---|
DeviceNotAvailableException |
getMaxNumberOfUsersHelp
public int getMaxNumberOfUsersSupported ()
रिटर्न | |
---|---|
int |
थ्रो | |
---|---|
DeviceNotAvailableException |
गेटमॉनिटर
public IDeviceStateMonitor getMonitor ()
रिटर्न | |
---|---|
IDeviceStateMonitor |
getMountPoint
public String getMountPoint (String mountName)
पैरामीटर | |
---|---|
mountName |
String |
रिटर्न | |
---|---|
String |
getMountPointInfo
public ITestDevice.MountPointInfo getMountPointInfo (String mountpoint)
पैरामीटर | |
---|---|
mountpoint |
String |
रिटर्न | |
---|---|
ITestDevice.MountPointInfo |
थ्रो | |
---|---|
DeviceNotAvailableException |
getMountPointInfo
publicgetMountPointInfo ()
रिटर्न | |
---|---|
|
थ्रो | |
---|---|
DeviceNotAvailableException |
विकल्प
public TestDeviceOptions getOptions ()
रिटर्न | |
---|---|
TestDeviceOptions |
getPartitionFreeSpace
public long getPartitionFreeSpace (String partition)
पैरामीटर | |
---|---|
partition |
String |
रिटर्न | |
---|---|
long |
थ्रो | |
---|---|
DeviceNotAvailableException |
प्राथमिक उपयोगकर्ता आईडी
public Integer getPrimaryUserId ()
रिटर्न | |
---|---|
Integer |
थ्रो | |
---|---|
DeviceNotAvailableException |
getप्रोसेसByName
public ProcessInfo getProcessByName (String processName)
पैरामीटर | |
---|---|
processName |
String |
रिटर्न | |
---|---|
ProcessInfo |
थ्रो | |
---|---|
DeviceNotAvailableException |
getप्रोसेसPid
public String getProcessPid (String process)
पैरामीटर | |
---|---|
process |
String |
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
getProductType
public String getProductType ()
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
GetProductवैरिएंट
public String getProductVariant ()
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
गेटप्रॉपर्टी
public String getProperty (String name)
पैरामीटर | |
---|---|
name |
String |
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
getRecoveryMode
public ITestDevice.RecoveryMode getRecoveryMode ()
रिटर्न | |
---|---|
ITestDevice.RecoveryMode |
स्क्रीनशॉट पाएं
public InputStreamSource getScreenshot (String format)
पैरामीटर | |
---|---|
format |
String |
रिटर्न | |
---|---|
InputStreamSource |
थ्रो | |
---|---|
DeviceNotAvailableException |
स्क्रीनशॉट पाएं
public InputStreamSource getScreenshot (long displayId)
पैरामीटर | |
---|---|
displayId |
long |
रिटर्न | |
---|---|
InputStreamSource |
थ्रो | |
---|---|
DeviceNotAvailableException |
स्क्रीनशॉट पाएं
public InputStreamSource getScreenshot (String format, boolean rescale)
पैरामीटर | |
---|---|
format |
String |
rescale |
boolean |
रिटर्न | |
---|---|
InputStreamSource |
थ्रो | |
---|---|
DeviceNotAvailableException |
स्क्रीनशॉट पाएं
public InputStreamSource getScreenshot ()
रिटर्न | |
---|---|
InputStreamSource |
थ्रो | |
---|---|
DeviceNotAvailableException |
getSerialNumber
public String getSerialNumber ()
रिटर्न | |
---|---|
String |
'सेटिंग' चुनें
public String getSetting (int userId, String namespace, String key)
पैरामीटर | |
---|---|
userId |
int |
namespace |
String |
key |
String |
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
'सेटिंग' चुनें
public String getSetting (String namespace, String key)
पैरामीटर | |
---|---|
namespace |
String |
key |
String |
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
गेटसिमऑपरेटर
public String getSimOperator ()
रिटर्न | |
---|---|
String |
गेटSimState
public String getSimState ()
रिटर्न | |
---|---|
String |
टूंबस्टोन
publicgetTombstones ()
रिटर्न | |
---|---|
|
थ्रो | |
---|---|
DeviceNotAvailableException |
getTotalMemory
public long getTotalMemory ()
रिटर्न | |
---|---|
long |
getUninstallablePackageNames
publicgetUninstallablePackageNames ()
रिटर्न | |
---|---|
|
थ्रो | |
---|---|
DeviceNotAvailableException |
'फ़ास्टबूट मिटाएं' सुविधा का इस्तेमाल करें
public boolean getUseFastbootErase ()
रिटर्न | |
---|---|
boolean |
'GetUserFlags'
public int getUserFlags (int userId)
पैरामीटर | |
---|---|
userId |
int |
रिटर्न | |
---|---|
int |
थ्रो | |
---|---|
DeviceNotAvailableException |
'उपयोगकर्ता के बारे में जानकारी'
publicgetUserInfos ()
रिटर्न | |
---|---|
|
थ्रो | |
---|---|
DeviceNotAvailableException |
getUserSerialNumber
public int getUserSerialNumber (int userId)
पैरामीटर | |
---|---|
userId |
int |
रिटर्न | |
---|---|
int |
थ्रो | |
---|---|
DeviceNotAvailableException |
हैंडल-AllocationEvent
public IManagedTestDevice.DeviceEventResponse handleAllocationEvent (DeviceEvent event)
DeviceEvent को प्रोसेस करें. ऐसा हो सकता है कि इस डिवाइस को नए असाइन करते समय लागू किया जाए और नहीं भी राज्य.
पैरामीटर | |
---|---|
event |
DeviceEvent |
रिटर्न | |
---|---|
IManagedTestDevice.DeviceEventResponse |
इसमें फ़ीचर है
public boolean hasFeature (String feature)
पैरामीटर | |
---|---|
feature |
String |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
इंस्टॉल पैकेज
public String installPackage (File packageFile, boolean reinstall, String... extraArgs)
पैरामीटर | |
---|---|
packageFile |
File |
reinstall |
boolean |
extraArgs |
String |
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
इंस्टॉल पैकेज
public String installPackage (File packageFile, boolean reinstall, boolean grantPermissions, String... extraArgs)
पैरामीटर | |
---|---|
packageFile |
File |
reinstall |
boolean |
grantPermissions |
boolean |
extraArgs |
String |
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
इंस्टॉल के लिए पैकेज forUser
public String installPackageForUser (File packageFile, boolean reinstall, int userId, String... extraArgs)
पैरामीटर | |
---|---|
packageFile |
File |
reinstall |
boolean |
userId |
int |
extraArgs |
String |
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
इंस्टॉल के लिए पैकेज forUser
public String installPackageForUser (File packageFile, boolean reinstall, boolean grantPermissions, int userId, String... extraArgs)
पैरामीटर | |
---|---|
packageFile |
File |
reinstall |
boolean |
grantPermissions |
boolean |
userId |
int |
extraArgs |
String |
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
isAdbRoot
public boolean isAdbRoot ()
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
आईएसएडीबीटीसीपी
public boolean isAdbTcp ()
रिटर्न | |
---|---|
boolean |
isAppEnumeration supported
public boolean isAppEnumerationSupported ()
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
क्या डिवाइस एन्क्रिप्ट (सुरक्षित) किया गया है
public boolean isDeviceEncrypted ()
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
isDirectory
public boolean isDirectory (String path)
पैरामीटर | |
---|---|
path |
String |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
isचालूAdbRoot
public boolean isEnableAdbRoot ()
रिटर्न | |
---|---|
boolean |
true अगर डिवाइस पर adb रूट चालू होना चाहिए
|
isएन्क्रिप्ट (सुरक्षित) करने की सुविधा
public boolean isEncryptionSupported ()
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
एक्ज़ीक्यूट किया जा सकता है
public boolean isExecutable (String fullPath)
पैरामीटर | |
---|---|
fullPath |
String |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
क्या फ़ास्टबूट चालू है
public boolean isFastbootEnabled ()
रिटर्न | |
---|---|
boolean |
हेडलेस
public boolean isHeadless ()
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
isमल्टीपैक के साथ काम करने वाली सेटिंग
public boolean isMultiUserSupported ()
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
isपैकेज इंस्टॉल किया गया
public boolean isPackageInstalled (String packageName, String userId)
पैरामीटर | |
---|---|
packageName |
String |
userId |
String |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
isपैकेज इंस्टॉल किया गया
public boolean isPackageInstalled (String packageName)
पैरामीटर | |
---|---|
packageName |
String |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
isRuntimePermissionEnabled
public boolean isRuntimePermissionSupported ()
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
isStateBootloaderOrFastbootd
public boolean isStateBootloaderOrFastbootd ()
रिटर्न | |
---|---|
boolean |
isUser चल रहा है
public boolean isUserRunning (int userId)
पैरामीटर | |
---|---|
userId |
int |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
isUserसेकंडरी
public boolean isUserSecondary (int userId)
पैरामीटर | |
---|---|
userId |
int |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
वाई-फ़ाई सक्षम है
public boolean isWifiEnabled ()
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
सूचीडिसप्ले आईडी
publiclistDisplayIds ()
रिटर्न | |
---|---|
|
थ्रो | |
---|---|
DeviceNotAvailableException |
उपयोगकर्ताओं की सूची
publiclistUsers ()
रिटर्न | |
---|---|
|
थ्रो | |
---|---|
DeviceNotAvailableException |
लॉगबग रिपोर्ट
public boolean logBugreport (String dataName, ITestLogger listener)
पैरामीटर | |
---|---|
dataName |
String |
listener |
ITestLogger |
रिटर्न | |
---|---|
boolean |
लॉगऑन डिवाइस
public void logOnDevice (String tag, Log.LogLevel level, String format, Object... args)
पैरामीटर | |
---|---|
tag |
String |
level |
Log.LogLevel |
format |
String |
args |
Object |
ब्लॉक नहीं करने की सुविधा फिर से चालू करें
public void nonBlockingReboot ()
थ्रो | |
---|---|
DeviceNotAvailableException |
postAdbRootAction
public void postAdbRootAction ()
अगर डिवाइस को adb रूट के बाद और डिवाइस फिर से ऑनलाइन हो गया है. डिफ़ॉल्ट रूप से लागू होने वाली प्रोसेस में, जोड़ने से जुड़ी कोई कार्रवाई शामिल नहीं होती. इस चरण में adb रूट के चालू होने की कोई गारंटी नहीं है.
थ्रो | |
---|---|
DeviceNotAvailableException |
postAdbUnrootAction
public void postAdbUnrootAction ()
अगर डिवाइस को adb अनरूट के बाद और उससे पहले कुछ खास कार्रवाइयां करने की ज़रूरत हो तो ओवरराइड करें डिवाइस फिर से ऑनलाइन हो गया है. डिफ़ॉल्ट रूप से लागू करने में, कोई और कार्रवाई शामिल नहीं होती. इस स्थिति में adb रूट के बंद होने की कोई गारंटी नहीं है.
थ्रो | |
---|---|
DeviceNotAvailableException |
पोस्टबूटसेटअप
public void postBootSetup ()
थ्रो | |
---|---|
DeviceNotAvailableException |
पोस्टइनवोकेशनटीयरडाउन
public void postInvocationTearDown (Throwable exception)
पैरामीटर | |
---|---|
exception |
Throwable |
प्रीवोकेशन सेटअप
public void preInvocationSetup (IBuildInfo info, MultiMap<String, String> attributes)
पैरामीटर | |
---|---|
info |
IBuildInfo |
attributes |
MultiMap |
थ्रो | |
---|---|
DeviceNotAvailableException |
|
TargetSetupError |
पुलडिर
public boolean pullDir (String deviceFilePath, File localDir)
पैरामीटर | |
---|---|
deviceFilePath |
String |
localDir |
File |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
पुलफ़ाइल
public boolean pullFile (String remoteFilePath, File localFile)
पैरामीटर | |
---|---|
remoteFilePath |
String |
localFile |
File |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
पुलफ़ाइल
public File pullFile (String remoteFilePath)
पैरामीटर | |
---|---|
remoteFilePath |
String |
रिटर्न | |
---|---|
File |
थ्रो | |
---|---|
DeviceNotAvailableException |
पुलफ़ाइल कॉन्टेंट
public String pullFileContents (String remoteFilePath)
पैरामीटर | |
---|---|
remoteFilePath |
String |
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
पुलफ़ाइल फ़्रॉमएक्सटर्नल
public File pullFileFromExternal (String remoteFilePath)
पैरामीटर | |
---|---|
remoteFilePath |
String |
रिटर्न | |
---|---|
File |
थ्रो | |
---|---|
DeviceNotAvailableException |
पुशडिर
public boolean pushDir (File localFileDir, String deviceFilePath,excludedDirectories)
पैरामीटर | |
---|---|
localFileDir |
File |
deviceFilePath |
String |
excludedDirectories |
|
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
पुशडिर
public boolean pushDir (File localFileDir, String deviceFilePath)
पैरामीटर | |
---|---|
localFileDir |
File |
deviceFilePath |
String |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
pushFile
public boolean pushFile (File localFile, String remoteFilePath)
पैरामीटर | |
---|---|
localFile |
File |
remoteFilePath |
String |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
pushString
public boolean pushString (String contents, String remoteFilePath)
पैरामीटर | |
---|---|
contents |
String |
remoteFilePath |
String |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
फिर से चालू करो
public void reboot (String reason)
पैरामीटर | |
---|---|
reason |
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
फिर से चालू करो
public void reboot ()
थ्रो | |
---|---|
DeviceNotAvailableException |
रीबूट इनटूबूटलोडर
public void rebootIntoBootloader ()
थ्रो | |
---|---|
DeviceNotAvailableException |
रीबूटइन्टूफ़ास्टबूट
public void rebootIntoFastbootd ()
थ्रो | |
---|---|
DeviceNotAvailableException |
फिर से चालू करें
public void rebootIntoRecovery ()
थ्रो | |
---|---|
DeviceNotAvailableException |
रीबूटइन्टूसाइडलोड
public void rebootIntoSideload ()
थ्रो | |
---|---|
DeviceNotAvailableException |
रीबूटइन्टूसाइडलोड
public void rebootIntoSideload (boolean autoReboot)
पैरामीटर | |
---|---|
autoReboot |
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
रीबूट जबलऑनलाइन
public void rebootUntilOnline ()
थ्रो | |
---|---|
DeviceNotAvailableException |
रीबूट जबलऑनलाइन
public void rebootUntilOnline (String reason)
पैरामीटर | |
---|---|
reason |
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
रीबूट यूज़रस्पेस
public void rebootUserspace ()
थ्रो | |
---|---|
DeviceNotAvailableException |
रीबूट उपयोगकर्ता समय के बाद आनुपातिक ऑनलाइन
public void rebootUserspaceUntilOnline ()
थ्रो | |
---|---|
DeviceNotAvailableException |
डिवाइस वापस पाएं
public void recoverDevice ()
डिवाइस का कम्यूनिकेशन वापस पाने की कोशिश की जाती है.
थ्रो | |
---|---|
DeviceNotAvailableException |
अगर डिवाइस अब मौजूद नहीं है |
reमाउंटSystemWritable
public void remountSystemWritable ()
थ्रो | |
---|---|
DeviceNotAvailableException |
रीमाउंटवेंडरWritable
public void remountVendorWritable ()
थ्रो | |
---|---|
DeviceNotAvailableException |
एडमिन हटाएं
public boolean removeAdmin (String componentName, int userId)
पैरामीटर | |
---|---|
componentName |
String |
userId |
int |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
मालिक हटाएं
public void removeOwners ()
थ्रो | |
---|---|
DeviceNotAvailableException |
उपयोगकर्ता को हटाएं
public boolean removeUser (int userId)
पैरामीटर | |
---|---|
userId |
int |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
रीसेट ContentProvider सेटअप
public void resetContentProviderSetup ()
कॉन्टेंट देने वाले सेट अप के लिए फ़्लैग को रीसेट करें, ताकि इसे फिर से ट्रिगर किया जा सके.
रन इंस्ट्रुमेंटेशनटेस्ट
public boolean runInstrumentationTests (IRemoteAndroidTestRunner runner, ITestLifeCycleReceiver... listeners)
पैरामीटर | |
---|---|
runner |
IRemoteAndroidTestRunner |
listeners |
ITestLifeCycleReceiver |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
रन इंस्ट्रुमेंटेशनटेस्ट
public boolean runInstrumentationTests (IRemoteAndroidTestRunner runner,listeners)
पैरामीटर | |
---|---|
runner |
IRemoteAndroidTestRunner |
listeners |
|
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
रन इंस्ट्रुमेंटेशनTestsAsUser
public boolean runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner, int userId, ITestLifeCycleReceiver... listeners)
पैरामीटर | |
---|---|
runner |
IRemoteAndroidTestRunner |
userId |
int |
listeners |
ITestLifeCycleReceiver |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
रन इंस्ट्रुमेंटेशनTestsAsUser
public boolean runInstrumentationTestsAsUser (IRemoteAndroidTestRunner runner, int userId,listeners)
पैरामीटर | |
---|---|
runner |
IRemoteAndroidTestRunner |
userId |
int |
listeners |
|
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
सेट कॉन्फ़िगरेशन
public void setConfiguration (IConfiguration configuration)
IConfiguration
को इंजेक्ट करता है.
पैरामीटर | |
---|---|
configuration |
IConfiguration |
सेट तारीख
public void setDate (Date date)
पैरामीटर | |
---|---|
date |
Date |
थ्रो | |
---|---|
DeviceNotAvailableException |
डिवाइस का मालिक सेट करें
public boolean setDeviceOwner (String componentName, int userId)
पैरामीटर | |
---|---|
componentName |
String |
userId |
int |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
डिवाइस स्थिति सेट करें
public void setDeviceState (TestDeviceState deviceState)
पैरामीटर | |
---|---|
deviceState |
TestDeviceState |
setEmulatorOutputStream
public void setEmulatorOutputStream (SizeLimitedOutputStream output)
एम्युलेटर के लिए, आउटपुट लॉग करने के लिए SizeLimitedOutputStream
को सेट करें
पैरामीटर | |
---|---|
output |
SizeLimitedOutputStream : आउटपुट को लॉग करने के लिए
|
setEmulatorप्रोसेस
public void setEmulatorProcess (Process p)
पैरामीटर | |
---|---|
p |
Process |
फ़ास्टबूट सेट करें
public void setFastbootEnabled (boolean fastbootEnabled)
पैरामीटर | |
---|---|
fastbootEnabled |
boolean |
सेट फ़ास्टबूटपाथ
public void setFastbootPath (String fastbootPath)
पैरामीटर | |
---|---|
fastbootPath |
String |
सेटआईडिवाइस
public void setIDevice (IDevice newDevice)
पैरामीटर | |
---|---|
newDevice |
IDevice |
विकल्प सेट करें
public void setOptions (TestDeviceOptions options)
पैरामीटर | |
---|---|
options |
TestDeviceOptions |
सेट प्रॉपर्टी
public boolean setProperty (String propKey, String propValue)
पैरामीटर | |
---|---|
propKey |
String |
propValue |
String |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
सेटरिकवरी
public void setRecovery (IDeviceRecovery recovery)
पैरामीटर | |
---|---|
recovery |
IDeviceRecovery |
सेटरिकवरीमोड
public void setRecoveryMode (ITestDevice.RecoveryMode mode)
पैरामीटर | |
---|---|
mode |
ITestDevice.RecoveryMode |
सेट करना
public void setSetting (String namespace, String key, String value)
पैरामीटर | |
---|---|
namespace |
String |
key |
String |
value |
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
सेट करना
public void setSetting (int userId, String namespace, String key, String value)
पैरामीटर | |
---|---|
userId |
int |
namespace |
String |
key |
String |
value |
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
सेट करेंफ़ास्टबूटइरेज़
public void setUseFastbootErase (boolean useFastbootErase)
पैरामीटर | |
---|---|
useFastbootErase |
boolean |
स्टार्टलॉगकैट
public void startLogcat ()
उपयोगकर्ता
public boolean startUser (int userId)
पैरामीटर | |
---|---|
userId |
int |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
उपयोगकर्ता
public boolean startUser (int userId, boolean waitFlag)
पैरामीटर | |
---|---|
userId |
int |
waitFlag |
boolean |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
स्टॉपएम्युलेटर आउटपुट
public void stopEmulatorOutput ()
स्टॉपलॉगकैट
public void stopLogcat ()
उपयोगकर्ता
public boolean stopUser (int userId)
पैरामीटर | |
---|---|
userId |
int |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
उपयोगकर्ता
public boolean stopUser (int userId, boolean waitFlag, boolean forceFlag)
पैरामीटर | |
---|---|
userId |
int |
waitFlag |
boolean |
forceFlag |
boolean |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
SwitchToAdbTcp
public String switchToAdbTcp ()
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
SwitchToAdbUsb
public boolean switchToAdbUsb ()
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
उपयोगकर्ता बदलें
public boolean switchUser (int userId)
पैरामीटर | |
---|---|
userId |
int |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
उपयोगकर्ता बदलें
public boolean switchUser (int userId, long timeout)
पैरामीटर | |
---|---|
userId |
int |
timeout |
long |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
सिंक की गई फ़ाइलें
public boolean syncFiles (File localFileDir, String deviceFilePath)
पैरामीटर | |
---|---|
localFileDir |
File |
deviceFilePath |
String |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
गड़बड़ी की रिपोर्ट लें
public Bugreport takeBugreport ()
रिटर्न | |
---|---|
Bugreport |
डिवाइस अनएन्क्रिप्ट करें
public boolean unencryptDevice ()
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
पैकेज अनइंस्टॉल करें
public String uninstallPackage (String packageName)
पैरामीटर | |
---|---|
packageName |
String |
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
अनइंस्टॉल किए गए पैकेज के लिए उपयोगकर्ता
public String uninstallPackageForUser (String packageName, int userId)
पैरामीटर | |
---|---|
packageName |
String |
userId |
int |
रिटर्न | |
---|---|
String |
थ्रो | |
---|---|
DeviceNotAvailableException |
डिवाइस अनलॉक करें
public boolean unlockDevice ()
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
बूट के लिए इंतज़ार करें
public boolean waitForBootComplete (long timeOut)
पैरामीटर | |
---|---|
timeOut |
long |
रिटर्न | |
---|---|
boolean |
थ्रो | |
---|---|
DeviceNotAvailableException |
इंतज़ार करें डिवाइस के लिए उपलब्ध
public void waitForDeviceAvailable ()
थ्रो | |
---|---|
DeviceNotAvailableException |
इंतज़ार करें डिवाइस के लिए उपलब्ध
public void waitForDeviceAvailable (long waitTime)
पैरामीटर | |
---|---|
waitTime |
long |
थ्रो | |
---|---|
DeviceNotAvailableException |
प्रतीक्षा करेंForDeviceInRecovery
public boolean waitForDeviceInRecovery (long waitTime)
पैरामीटर | |
---|---|
waitTime |
long |
रिटर्न | |
---|---|
boolean |
प्रतीक्षा करेंForDeviceInSideload
public boolean waitForDeviceInSideload (long waitTime)
पैरामीटर | |
---|---|
waitTime |
long |
रिटर्न | |
---|---|
boolean |
इंतज़ार करें डिवाइस के लिए उपलब्ध नहीं है
public boolean waitForDeviceNotAvailable (long waitTime)
पैरामीटर | |
---|---|
waitTime |
long |
रिटर्न | |
---|---|
boolean |
डिवाइस के लिए इंतज़ार करें
public void waitForDeviceOnline ()
थ्रो | |
---|---|
DeviceNotAvailableException |
डिवाइस के लिए इंतज़ार करें
public void waitForDeviceOnline (long waitTime)
पैरामीटर | |
---|---|
waitTime |
long |
थ्रो | |
---|---|
DeviceNotAvailableException |
DeviceForDeviceShell
public boolean waitForDeviceShell (long waitTime)
पैरामीटर | |
---|---|
waitTime |
long |
रिटर्न | |
---|---|
boolean |
सुरक्षित तरीके
चेकअपीलेवलAgainst
protected void checkApiLevelAgainst (String feature, int strictMinLevel)
पैरामीटर | |
---|---|
feature |
String |
strictMinLevel |
int |
reCAPTCHADeviceAction बनाएं
protected NativeDevice.RebootDeviceAction createRebootDeviceAction (NativeDevice.RebootMode rebootMode, String reason)
फिर से चालू करने की कार्रवाई करते समय इस्तेमाल करने के लिए RebootDeviceAction
बनाएं.
पैरामीटर | |
---|---|
rebootMode |
NativeDevice.RebootMode : इस मोड के फिर से चालू होने का मोड. |
reason |
String : इस बार फिर से चालू करने के लिए. |
रिटर्न | |
---|---|
NativeDevice.RebootDeviceAction |
RebootDeviceAction को बनाया गया.
|
DoAdb रीबूट
protected void doAdbReboot (NativeDevice.RebootMode rebootMode, String reason)
adb को फिर से चालू करें.
पैरामीटर | |
---|---|
rebootMode |
NativeDevice.RebootMode : इस मोड के फिर से चालू होने का मोड. |
reason |
String : इस बार फिर से चालू करने के लिए. |
थ्रो | |
---|---|
DeviceNotAvailableException |
पक्का करें कि रनटाइम में अनुमतियों के साथ काम करने की सुविधा मिलती है
protected void ensureRuntimePermissionSupported ()
अगर रनटाइम की अनुमति नहीं मिलती है, तो अपवाद जोड़ने के लिए हेल्पर तरीका
थ्रो | |
---|---|
DeviceNotAvailableException |
getBugreportआंतरिक
protected InputStreamSource getBugreportInternal ()
रिटर्न | |
---|---|
InputStreamSource |
getBugreportzआंतरिक
protected File getBugreportzInternal ()
Bugreportz ZIP फ़ाइल को ERROR(/File)
के तौर पर पाने के लिए, इंटरनल हेल्पर तरीका.
रिटर्न | |
---|---|
File |
getRunUtil
protected IRunUtil getRunUtil ()
इस्तेमाल करने के लिए RunUtil
इंस्टेंस पाएं.
रिटर्न | |
---|---|
IRunUtil |
अंदरूनी गेटप्रॉपर्टी
protected String internalGetProperty (String propName, String fastbootVar, String description)
डिफ़ॉल्ट रूप से, ddmlib कैश मेमोरी से डिवाइस की किसी प्रॉपर्टी को फ़ेच करें और वापस `adb" पर जाएं डिवाइस में फ़ास्टबूट किया गया है या नहीं, इसके आधार पर शेल गेटप्रॉप` या `फ़ास्टबूट गेटवर` तय किया जाता है.
पैरामीटर | |
---|---|
propName |
String : `adb Shell getprop` से नतीजे के तौर पर मिली डिवाइस प्रॉपर्टी का नाम |
fastbootVar |
String : क्वेरी के लिए मिलते-जुलते फ़ास्टबूट वैरिएबल का नाम. अगर null ,
फ़ास्टबूट क्वेरी पर कार्रवाई नहीं की जाएगी |
description |
String : वैरिएबल की सामान्य जानकारी. पहला अक्षर कैपिटल लेटर में होना चाहिए. |
रिटर्न | |
---|---|
String |
ऐसी स्ट्रिंग जो null या खाली हो सकती है. इसमें दी गई प्रॉपर्टी की वैल्यू शामिल होती है
|
थ्रो | |
---|---|
DeviceNotAvailableException |
नया है
protected boolean isNewer (File localFile, IFileEntry entry)
अगर लोकल फ़ाइल, रिमोट फ़ाइल से नई है, तो true
लौटाएं. IFileEntry
मिनट के हिसाब से सटीक होना चाहिए, तो बराबर समय होने पर, फ़ाइल को नई माना जाएगा.
पैरामीटर | |
---|---|
localFile |
File |
entry |
IFileEntry |
रिटर्न | |
---|---|
boolean |
डिवाइस की कार्रवाई करें
protected boolean performDeviceAction (String actionDescription, com.android.tradefed.device.NativeDevice.DeviceAction action, int retryAttempts)
इस डिवाइस पर कोई कार्रवाई करता है. डिवाइस को वापस पाने की कोशिश करता है और वैकल्पिक रूप से, निर्देश देने की कोशिश करता है अगर यह कार्रवाई पूरी नहीं होती है.
पैरामीटर | |
---|---|
actionDescription |
String : की जाने वाली कार्रवाई के बारे में कम शब्दों में जानकारी. इसका इस्तेमाल लॉगिंग के लिए किया जाता है
का इस्तेमाल नहीं किया जा सकता. |
action |
com.android.tradefed.device.NativeDevice.DeviceAction : की जाने वाली कार्रवाई |
retryAttempts |
int : अगर यह कार्रवाई पूरी नहीं हो पाती है, तो फिर से कार्रवाई करने की कोशिश की जाती है
रिकवरी हो गई |
रिटर्न | |
---|---|
boolean |
कार्रवाई पूरी होने पर true |
थ्रो | |
---|---|
DeviceNotAvailableException |
अगर खाता वापस पाने की कोशिश असफल रही या बिना कोशिश किए ज़्यादा से ज़्यादा बार कोशिश की गई हो गया |
postAdbफिर से चालू करें
protected void postAdbReboot ()
डिवाइस को फिर से चालू करने के बाद की जा सकने वाली अन्य कार्रवाइयां.
थ्रो | |
---|---|
DeviceNotAvailableException |
प्रीपोस्टबूटसेटअप
protected void prePostBootSetup ()
हर डिवाइस टाइप (AndroidNativeDevice, TestDevice) को विशिष्ट पोस्ट बूट सेटअप.
थ्रो | |
---|---|
DeviceNotAvailableException |
सेटक्लॉक
protected void setClock (Clock clock)
इस्तेमाल करने के लिए Clock इंस्टेंस सेट करें.
पैरामीटर | |
---|---|
clock |
Clock |
सेटलॉगस्टार्ट डिले
protected void setLogStartDelay (int delay)
किसी ऑनलाइन डिवाइस के लिए Logcat कैप्चर शुरू करने से पहले, इंतज़ार का समय मि॰से॰ में सेट करता है.
पैरामीटर | |
---|---|
delay |
int : मिनट में देरी
|
इंतज़ार करें डिवाइस के लिए उपलब्ध नहीं है
protected void waitForDeviceNotAvailable (String operationDesc, long time)
पैरामीटर | |
---|---|
operationDesc |
String |
time |
long |