StubDevice

public class StubDevice
extends Object implements IDevice

java.lang.Object
   ↳ com.android.tradefed.device.StubDevice


IDevice के स्टब प्लेसहोल्डर को लागू करना.

खास जानकारी

सार्वजनिक कंस्ट्रक्टर

StubDevice(String serial)
StubDevice(String serial, boolean isEmulator)

सार्वजनिक तरीके

boolean arePropertiesSet()

void createForward(int localPort, String remoteSocketName, IDevice.DeviceUnixSocketNamespace namespace)

void createForward(int localPort, int remotePort)

void createReverse(int remotePort, int localPort)

void executeShellCommand(String command, IShellOutputReceiver receiver, long maxTimeToOutputResponse, TimeUnit maxTimeUnits)

void executeShellCommand(String command, IShellOutputReceiver receiver)

void executeShellCommand(String command, IShellOutputReceiver receiver, int maxTimeToOutputResponse)

इस तरीके का इस्तेमाल नहीं किया जा सकता. executeShellCommand(String, com.android.ddmlib.IShellOutputReceiver, long, TimeUnit) का इस्तेमाल करें.

void executeShellCommand(String command, IShellOutputReceiver receiver, long maxTimeout, long maxTimeToOutputResponse, TimeUnit maxTimeUnits)

getAbis()

String getAvdName()

String getAvdPath()

getBattery(long freshnessTime, TimeUnit timeUnit)

getBattery()

Integer getBatteryLevel(long freshnessMs)

इस तरीके का इस्तेमाल नहीं किया जा सकता. इसके बजाय, getBattery(long, TimeUnit) का इस्तेमाल करें.

Integer getBatteryLevel()

इस तरीके का इस्तेमाल नहीं किया जा सकता. इसके बजाय, getBattery() का इस्तेमाल करें.

Client getClient(String applicationName)

String getClientName(int pid)

Client[] getClients()

int getDensity()

FileListingService getFileListingService()

String getLanguage()

String getMountPoint(String name)

String getName()

getProperties()

इस तरीके का इस्तेमाल नहीं किया जा सकता. इसके बजाय, getSystemProperty(String) का इस्तेमाल करें.

String getProperty(String name)

String getPropertyCacheOrSync(String name)

इस तरीके का इस्तेमाल नहीं किया जा सकता. इसके बजाय, getProperty(String) का इस्तेमाल करें.

int getPropertyCount()

इस तरीके का इस्तेमाल नहीं किया जा सकता. ddmlib में, "लागू करने की जानकारी" के तौर पर वजह बताकर इसे बंद कर दिया गया है.

String getPropertySync(String name)

इस तरीके का इस्तेमाल नहीं किया जा सकता. इसके बजाय, getProperty(String) का इस्तेमाल करें.

String getRegion()

RawImage getScreenshot()

RawImage getScreenshot(long timeout, TimeUnit unit)
String getSerialNumber()

IDevice.DeviceState getState()

SyncService getSyncService()

ListenableFuture<String> getSystemProperty(String name)

AndroidVersion getVersion()

boolean hasClients()

void installPackage(String packageFilePath, boolean reinstall, InstallReceiver receiver, long maxTimeout, long maxTimeToOutputResponse, TimeUnit maxTimeUnits, String... extraArgs)

void installPackage(String packageFilePath, boolean reinstall, InstallReceiver receiver, String... extraArgs)

void installPackage(String packageFilePath, boolean reinstall, String... extraArgs)

void installPackages( apkFilePaths, boolean reinstall, extraArgs, long timeOutInMs, TimeUnit timeunit)

void installRemotePackage(String remoteFilePath, boolean reinstall, InstallReceiver receiver, String... extraArgs)

void installRemotePackage(String remoteFilePath, boolean reinstall, String... extraArgs)

void installRemotePackage(String remoteFilePath, boolean reinstall, InstallReceiver receiver, long maxTimeout, long maxTimeToOutputResponse, TimeUnit maxTimeUnits, String... extraArgs)

boolean isBootLoader()

boolean isEmulator()

boolean isOffline()

boolean isOnline()

boolean isRoot()

void pullFile(String remote, String local)

void pushFile(String local, String remote)

void reboot(String into)

void removeForward(int localPort)

void removeForward(int localPort, int remotePort)

void removeForward(int localPort, String remoteSocketName, IDevice.DeviceUnixSocketNamespace namespace)

void removeRemotePackage(String remoteFilePath)

void removeReverse(int remotePort)

boolean root()

void runEventLogService(LogReceiver receiver)

void runLogService(String logname, LogReceiver receiver)

void setSerial(String serial)
void startScreenRecorder(String remoteFilePath, ScreenRecorderOptions options, IShellOutputReceiver receiver)

boolean supportsFeature(IDevice.HardwareFeature arg0)
boolean supportsFeature(IDevice.Feature feature)

String syncPackageToDevice(String localFilePath)

String uninstallApp(String applicationID, String... extraArgs)

String uninstallPackage(String packageName)

सार्वजनिक कंस्ट्रक्टर

StubDevice

public StubDevice (String serial)

पैरामीटर
serial String

StubDevice

public StubDevice (String serial, 
                boolean isEmulator)

पैरामीटर
serial String

isEmulator boolean

सार्वजनिक तरीके

arePropertiesSet

public boolean arePropertiesSet ()

रिटर्न
boolean

createForward

public void createForward (int localPort, 
                String remoteSocketName, 
                IDevice.DeviceUnixSocketNamespace namespace)

पैरामीटर
localPort int

remoteSocketName String

namespace IDevice.DeviceUnixSocketNamespace

थ्रो
AdbCommandRejectedException
TimeoutException

createForward

public void createForward (int localPort, 
                int remotePort)

पैरामीटर
localPort int

remotePort int

थ्रो
AdbCommandRejectedException
TimeoutException

createReverse

public void createReverse (int remotePort, 
                int localPort)

पैरामीटर
remotePort int

localPort int

थ्रो
AdbCommandRejectedException
TimeoutException

executeShellCommand

public void executeShellCommand (String command, 
                IShellOutputReceiver receiver, 
                long maxTimeToOutputResponse, 
                TimeUnit maxTimeUnits)

पैरामीटर
command String

receiver IShellOutputReceiver

maxTimeToOutputResponse long

maxTimeUnits TimeUnit

थ्रो
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

executeShellCommand

public void executeShellCommand (String command, 
                IShellOutputReceiver receiver)

पैरामीटर
command String

receiver IShellOutputReceiver

थ्रो
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

executeShellCommand

public void executeShellCommand (String command, 
                IShellOutputReceiver receiver, 
                int maxTimeToOutputResponse)

यह तरीका अब काम नहीं करता.
executeShellCommand(String, com.android.ddmlib.IShellOutputReceiver, long, TimeUnit) का इस्तेमाल करें.

पैरामीटर
command String

receiver IShellOutputReceiver

maxTimeToOutputResponse int

थ्रो
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

executeShellCommand

public void executeShellCommand (String command, 
                IShellOutputReceiver receiver, 
                long maxTimeout, 
                long maxTimeToOutputResponse, 
                TimeUnit maxTimeUnits)

पैरामीटर
command String

receiver IShellOutputReceiver

maxTimeout long

maxTimeToOutputResponse long

maxTimeUnits TimeUnit

थ्रो
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

getAbis

public  getAbis ()

रिटर्न

getAvdName

public String getAvdName ()

रिटर्न
String

getAvdPath

public String getAvdPath ()

रिटर्न
String

getBattery

public  getBattery (long freshnessTime, 
                TimeUnit timeUnit)

पैरामीटर
freshnessTime long

timeUnit TimeUnit

रिटर्न

getBattery

public  getBattery ()

रिटर्न

getBatteryLevel

public Integer getBatteryLevel (long freshnessMs)

यह तरीका अब काम नहीं करता.
इसके बजाय, getBattery(long, TimeUnit) का इस्तेमाल करें.

पैरामीटर
freshnessMs long

रिटर्न
Integer

थ्रो
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

getBatteryLevel

public Integer getBatteryLevel ()

यह तरीका अब काम नहीं करता.
इसके बजाय, getBattery() का इस्तेमाल करें.

रिटर्न
Integer

थ्रो
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

getClient

public Client getClient (String applicationName)

पैरामीटर
applicationName String

रिटर्न
Client

getClientName

public String getClientName (int pid)

पैरामीटर
pid int

रिटर्न
String

getClients

public Client[] getClients ()

रिटर्न
Client[]

getDensity

public int getDensity ()

रिटर्न
int

getFileListingService

public FileListingService getFileListingService ()

रिटर्न
FileListingService

getLanguage

public String getLanguage ()

रिटर्न
String

getMountPoint

public String getMountPoint (String name)

पैरामीटर
name String

रिटर्न
String

getName

public String getName ()

रिटर्न
String

getProperties

public  getProperties ()

यह तरीका अब काम नहीं करता.
इसके बजाय, getSystemProperty(String) का इस्तेमाल करें.

रिटर्न

getProperty

public String getProperty (String name)

पैरामीटर
name String

रिटर्न
String

getPropertyCacheOrSync

public String getPropertyCacheOrSync (String name)

यह तरीका अब काम नहीं करता.
इसके बजाय, getProperty(String) का इस्तेमाल करें.

पैरामीटर
name String

रिटर्न
String

थ्रो
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

getPropertyCount

public int getPropertyCount ()

यह तरीका अब काम नहीं करता.
ddmlib में, "लागू करने की जानकारी" की वजह से इसे बंद कर दिया गया है.

रिटर्न
int

getPropertySync

public String getPropertySync (String name)

यह तरीका अब काम नहीं करता.
इसके बजाय, getProperty(String) का इस्तेमाल करें.

पैरामीटर
name String

रिटर्न
String

थ्रो
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

getRegion

public String getRegion ()

रिटर्न
String

getScreenshot

public RawImage getScreenshot ()

रिटर्न
RawImage

थ्रो
AdbCommandRejectedException
TimeoutException

getScreenshot

public RawImage getScreenshot (long timeout, 
                TimeUnit unit)

पैरामीटर
timeout long

unit TimeUnit

रिटर्न
RawImage

थ्रो
AdbCommandRejectedException
TimeoutException

getSerialNumber

public String getSerialNumber ()

रिटर्न
String

getState

public IDevice.DeviceState getState ()

रिटर्न
IDevice.DeviceState

getSyncService

public SyncService getSyncService ()

रिटर्न
SyncService

थ्रो
AdbCommandRejectedException
TimeoutException

getSystemProperty

public ListenableFuture<String> getSystemProperty (String name)

पैरामीटर
name String

रिटर्न
ListenableFuture<String>

getVersion

public AndroidVersion getVersion ()

रिटर्न
AndroidVersion

hasClients

public boolean hasClients ()

रिटर्न
boolean

installPackage

public void installPackage (String packageFilePath, 
                boolean reinstall, 
                InstallReceiver receiver, 
                long maxTimeout, 
                long maxTimeToOutputResponse, 
                TimeUnit maxTimeUnits, 
                String... extraArgs)

पैरामीटर
packageFilePath String

reinstall boolean

receiver InstallReceiver

maxTimeout long

maxTimeToOutputResponse long

maxTimeUnits TimeUnit

extraArgs String

थ्रो
InstallException

installPackage

public void installPackage (String packageFilePath, 
                boolean reinstall, 
                InstallReceiver receiver, 
                String... extraArgs)

पैरामीटर
packageFilePath String

reinstall boolean

receiver InstallReceiver

extraArgs String

थ्रो
InstallException

installPackage

public void installPackage (String packageFilePath, 
                boolean reinstall, 
                String... extraArgs)

पैरामीटर
packageFilePath String

reinstall boolean

extraArgs String

थ्रो
InstallException

installPackages

public void installPackages ( apkFilePaths, 
                boolean reinstall, 
                 extraArgs, 
                long timeOutInMs, 
                TimeUnit timeunit)

पैरामीटर
apkFilePaths

reinstall boolean

extraArgs

timeOutInMs long

timeunit TimeUnit

थ्रो
InstallException

installRemotePackage

public void installRemotePackage (String remoteFilePath, 
                boolean reinstall, 
                InstallReceiver receiver, 
                String... extraArgs)

पैरामीटर
remoteFilePath String

reinstall boolean

receiver InstallReceiver

extraArgs String

थ्रो
InstallException

installRemotePackage

public void installRemotePackage (String remoteFilePath, 
                boolean reinstall, 
                String... extraArgs)

पैरामीटर
remoteFilePath String

reinstall boolean

extraArgs String

थ्रो
InstallException

installRemotePackage

public void installRemotePackage (String remoteFilePath, 
                boolean reinstall, 
                InstallReceiver receiver, 
                long maxTimeout, 
                long maxTimeToOutputResponse, 
                TimeUnit maxTimeUnits, 
                String... extraArgs)

पैरामीटर
remoteFilePath String

reinstall boolean

receiver InstallReceiver

maxTimeout long

maxTimeToOutputResponse long

maxTimeUnits TimeUnit

extraArgs String

थ्रो
InstallException

isBootLoader

public boolean isBootLoader ()

रिटर्न
boolean

isEmulator

public boolean isEmulator ()

रिटर्न
boolean

isOffline

public boolean isOffline ()

रिटर्न
boolean

isOnline

public boolean isOnline ()

रिटर्न
boolean

isRoot

public boolean isRoot ()

रिटर्न
boolean

थ्रो
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

pullFile

public void pullFile (String remote, 
                String local)

पैरामीटर
remote String

local String

थ्रो
AdbCommandRejectedException
SyncException
TimeoutException

pushFile

public void pushFile (String local, 
                String remote)

पैरामीटर
local String

remote String

थ्रो
AdbCommandRejectedException
SyncException
TimeoutException

फिर से चालू करो

public void reboot (String into)

पैरामीटर
into String

थ्रो
AdbCommandRejectedException
TimeoutException

removeForward

public void removeForward (int localPort)

पैरामीटर
localPort int

थ्रो
AdbCommandRejectedException
TimeoutException

removeForward

public void removeForward (int localPort, 
                int remotePort)

पैरामीटर
localPort int

remotePort int

थ्रो
AdbCommandRejectedException
TimeoutException

removeForward

public void removeForward (int localPort, 
                String remoteSocketName, 
                IDevice.DeviceUnixSocketNamespace namespace)

पैरामीटर
localPort int

remoteSocketName String

namespace IDevice.DeviceUnixSocketNamespace

थ्रो
AdbCommandRejectedException
TimeoutException

removeRemotePackage

public void removeRemotePackage (String remoteFilePath)

पैरामीटर
remoteFilePath String

थ्रो
InstallException

removeReverse

public void removeReverse (int remotePort)

पैरामीटर
remotePort int

थ्रो
AdbCommandRejectedException
TimeoutException

रूट

public boolean root ()

रिटर्न
boolean

थ्रो
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

runEventLogService

public void runEventLogService (LogReceiver receiver)

पैरामीटर
receiver LogReceiver

थ्रो
AdbCommandRejectedException
TimeoutException

runLogService

public void runLogService (String logname, 
                LogReceiver receiver)

पैरामीटर
logname String

receiver LogReceiver

थ्रो
AdbCommandRejectedException
TimeoutException

setSerial

public void setSerial (String serial)

पैरामीटर
serial String

startScreenRecorder

public void startScreenRecorder (String remoteFilePath, 
                ScreenRecorderOptions options, 
                IShellOutputReceiver receiver)

पैरामीटर
remoteFilePath String

options ScreenRecorderOptions

receiver IShellOutputReceiver

थ्रो
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

supportsFeature

public boolean supportsFeature (IDevice.HardwareFeature arg0)

पैरामीटर
arg0 IDevice.HardwareFeature

रिटर्न
boolean

supportsFeature

public boolean supportsFeature (IDevice.Feature feature)

पैरामीटर
feature IDevice.Feature

रिटर्न
boolean

syncPackageToDevice

public String syncPackageToDevice (String localFilePath)

पैरामीटर
localFilePath String

रिटर्न
String

थ्रो
AdbCommandRejectedException
SyncException
TimeoutException

uninstallApp

public String uninstallApp (String applicationID, 
                String... extraArgs)

पैरामीटर
applicationID String

extraArgs String

रिटर्न
String

थ्रो
InstallException

uninstallPackage

public String uninstallPackage (String packageName)

पैरामीटर
packageName String

रिटर्न
String

थ्रो
InstallException