स्टबडिवाइस

public class StubDevice
extends Object implements IDevice

java.lang.ऑब्जेक्ट
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) installPackages ( apkFilePaths, boolean reinstall, extraArgs, long timeOutInMs, TimeUnit timeunit) 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)

सार्वजनिक निर्माणकर्ता

स्टबडिवाइस

public StubDevice (String serial)

पैरामीटर
serial String

स्टबडिवाइस

public StubDevice (String serial, 
                boolean isEmulator)

पैरामीटर
serial String

isEmulator boolean

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

arePropertiesSet

public boolean arePropertiesSet ()

रिटर्न
boolean

आगे बनाएँ

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

पैरामीटर
localPort int

remoteSocketName String

namespace IDevice.DeviceUnixSocketNamespace

फेंकता
AdbCommandRejectedException
TimeoutException

आगे बनाएँ

public void createForward (int localPort, 
                int remotePort)

पैरामीटर
localPort int

remotePort int

फेंकता
AdbCommandRejectedException
TimeoutException

क्रिएटरिवर्स

public void createReverse (int remotePort, 
                int localPort)

पैरामीटर
remotePort int

localPort int

फेंकता
AdbCommandRejectedException
TimeoutException

एक्जीक्यूटशेलकमांड

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

पैरामीटर
command String

receiver IShellOutputReceiver

maxTimeToOutputResponse long

maxTimeUnits TimeUnit

फेंकता
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

एक्जीक्यूटशेलकमांड

public void executeShellCommand (String command, 
                IShellOutputReceiver receiver)

पैरामीटर
command String

receiver IShellOutputReceiver

फेंकता
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

एक्जीक्यूटशेलकमांड

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

एक्जीक्यूटशेलकमांड

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

बैटरी प्राप्त करें

public  getBattery (long freshnessTime, 
                TimeUnit timeUnit)

पैरामीटर
freshnessTime long

timeUnit TimeUnit

रिटर्न

बैटरी प्राप्त करें

public  getBattery ()

रिटर्न

बैटरीलेवल प्राप्त करें

public Integer getBatteryLevel (long freshnessMs)

यह विधि अस्वीकृत है.
इसके बजाय getBattery(long, TimeUnit) उपयोग करें।

पैरामीटर
freshnessMs long

रिटर्न
Integer

फेंकता
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

बैटरीलेवल प्राप्त करें

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

ग्राहक प्राप्त करें

public Client[] getClients ()

रिटर्न
Client[]

घनत्व प्राप्त करें

public int getDensity ()

रिटर्न
int

फ़ाइललिस्टिंग सेवा प्राप्त करें

public FileListingService getFileListingService ()

रिटर्न
FileListingService

भाषा प्राप्त करें

public String getLanguage ()

रिटर्न
String

getMountPoint

public String getMountPoint (String name)

पैरामीटर
name String

रिटर्न
String

नाम प्राप्त करें

public String getName ()

रिटर्न
String

गुण प्राप्त करें

public  getProperties ()

यह विधि अस्वीकृत है.
इसके बजाय getSystemProperty(String) उपयोग करें।

रिटर्न

संपत्ति प्राप्त करें

public String getProperty (String name)

पैरामीटर
name String

रिटर्न
String

getPropertyCacheOrSync

public String getPropertyCacheOrSync (String name)

यह विधि अस्वीकृत है.
इसके बजाय getProperty(String) उपयोग करें।

पैरामीटर
name String

रिटर्न
String

फेंकता
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

संपत्तिगणना प्राप्त करें

public int getPropertyCount ()

यह विधि अस्वीकृत है.
कारण के रूप में "कार्यान्वयन विवरण" के साथ ddmlib में बहिष्कृत किया गया।

रिटर्न
int

getPropertySync

public String getPropertySync (String name)

यह विधि अस्वीकृत है.
इसके बजाय getProperty(String) उपयोग करें।

पैरामीटर
name String

रिटर्न
String

फेंकता
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

क्षेत्र प्राप्त करें

public String getRegion ()

रिटर्न
String

स्क्रीनशॉट प्राप्त करें

public RawImage getScreenshot ()

रिटर्न
RawImage

फेंकता
AdbCommandRejectedException
TimeoutException

स्क्रीनशॉट प्राप्त करें

public RawImage getScreenshot (long timeout, 
                TimeUnit unit)

पैरामीटर
timeout long

unit TimeUnit

रिटर्न
RawImage

फेंकता
AdbCommandRejectedException
TimeoutException

क्रमांक प्राप्त करें

public String getSerialNumber ()

रिटर्न
String

राज्य प्राप्त करें

public IDevice.DeviceState getState ()

रिटर्न
IDevice.DeviceState

getSyncService

public SyncService getSyncService ()

रिटर्न
SyncService

फेंकता
AdbCommandRejectedException
TimeoutException

getSystemProperty

public ListenableFuture<String> getSystemProperty (String name)

पैरामीटर
name String

रिटर्न
ListenableFuture<String>

संस्करण प्राप्त करें

public AndroidVersion getVersion ()

रिटर्न
AndroidVersion

ग्राहक हैं

public boolean hasClients ()

रिटर्न
boolean

पैकेज स्थापित करे

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

पैकेज स्थापित करे

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

पैरामीटर
packageFilePath String

reinstall boolean

receiver InstallReceiver

extraArgs String

फेंकता
InstallException

पैकेज स्थापित करे

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

पैरामीटर
packageFilePath String

reinstall boolean

extraArgs String

फेंकता
InstallException

संकुल स्थापित करें

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

बूटलोडर है

public boolean isBootLoader ()

रिटर्न
boolean

एम्यूलेटर है

public boolean isEmulator ()

रिटर्न
boolean

ऑफलाइन है

public boolean isOffline ()

रिटर्न
boolean

ऑनलाइन है

public boolean isOnline ()

रिटर्न
boolean

जड़ है

public boolean isRoot ()

रिटर्न
boolean

फेंकता
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

पुलफ़ाइल

public void pullFile (String remote, 
                String local)

पैरामीटर
remote String

local String

फेंकता
AdbCommandRejectedException
SyncException
TimeoutException

पुशफ़ाइल

public void pushFile (String local, 
                String remote)

पैरामीटर
local String

remote String

फेंकता
AdbCommandRejectedException
SyncException
TimeoutException

रिबूट

public void reboot (String into)

पैरामीटर
into String

फेंकता
AdbCommandRejectedException
TimeoutException

हटाएँआगे

public void removeForward (int localPort)

पैरामीटर
localPort int

फेंकता
AdbCommandRejectedException
TimeoutException

हटाएँआगे

public void removeForward (int localPort, 
                int remotePort)

पैरामीटर
localPort int

remotePort int

फेंकता
AdbCommandRejectedException
TimeoutException

हटाएँआगे

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

पैरामीटर
localPort int

remoteSocketName String

namespace IDevice.DeviceUnixSocketNamespace

फेंकता
AdbCommandRejectedException
TimeoutException

रिमूवरिमोटपैकेज

public void removeRemotePackage (String remoteFilePath)

पैरामीटर
remoteFilePath String

फेंकता
InstallException

हटाएंरिवर्स

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

रनलॉगसेवा

public void runLogService (String logname, 
                LogReceiver receiver)

पैरामीटर
logname String

receiver LogReceiver

फेंकता
AdbCommandRejectedException
TimeoutException

सेट सीरियल

public void setSerial (String serial)

पैरामीटर
serial String

स्टार्टस्क्रीनरिकॉर्डर

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

पैरामीटर
remoteFilePath String

options ScreenRecorderOptions

receiver IShellOutputReceiver

फेंकता
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

फ़ीचर का समर्थन करता है

public boolean supportsFeature (IDevice.HardwareFeature arg0)

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

रिटर्न
boolean

फ़ीचर का समर्थन करता है

public boolean supportsFeature (IDevice.Feature feature)

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

रिटर्न
boolean

सिंकपैकेजटूडिवाइस

public String syncPackageToDevice (String localFilePath)

पैरामीटर
localFilePath String

रिटर्न
String

फेंकता
AdbCommandRejectedException
SyncException
TimeoutException

ऐप अनइंस्टॉल करें

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

पैरामीटर
applicationID String

extraArgs String

रिटर्न
String

फेंकता
InstallException

अनइंस्टॉलपैकेज

public String uninstallPackage (String packageName)

पैरामीटर
packageName String

रिटर्न
String

फेंकता
InstallException