स्टबडिवाइस

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)

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

स्टबडिवाइस

public StubDevice (String serial)

पैरामीटर
serial String

स्टबडिवाइस

public StubDevice (String serial, 
                boolean isEmulator)

पैरामीटर
serial String

isEmulator boolean

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

प्रॉपर्टीसेट

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

जैबिस

public  getAbis ()

रिटर्न

गेटAvdनाम

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

getक्लाइंट

public Client[] getClients ()

रिटर्न
Client[]

गेटडेंसिटी

public int getDensity ()

रिटर्न
int

getFileListingService

public FileListingService getFileListingService ()

रिटर्न
FileListingService

getLanguage

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

getप्रॉपर्टीकैशओआरसिंक

public String getPropertyCacheOrSync (String name)

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

पैरामीटर
name String

रिटर्न
String

थ्रो
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

getप्रॉपर्टीकाउंट

public int getPropertyCount ()

यह तरीका अब काम नहीं करता.
ddmlib में काम नहीं करता है जिसमें "लागू करने की जानकारी" को वजह के तौर पर शामिल किया गया है.

रिटर्न
int

getप्रॉपर्टीसिंक

public String getPropertySync (String name)

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

पैरामीटर
name String

रिटर्न
String

थ्रो
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

getRegion

public String getRegion ()

रिटर्न
String

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

public RawImage getScreenshot ()

रिटर्न
RawImage

थ्रो
AdbCommandRejectedException
TimeoutException

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

public RawImage getScreenshot (long timeout, 
                TimeUnit unit)

पैरामीटर
timeout long

unit TimeUnit

रिटर्न
RawImage

थ्रो
AdbCommandRejectedException
TimeoutException

getSerialNumber

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>

getVersion

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

इंस्टॉल रिमोटपैकेज

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

पैरामीटर
remoteFilePath String

reinstall boolean

receiver InstallReceiver

extraArgs String

थ्रो
InstallException

इंस्टॉल रिमोटपैकेज

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

पैरामीटर
remoteFilePath String

reinstall boolean

extraArgs String

थ्रो
InstallException

इंस्टॉल रिमोटपैकेज

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

ऑफ़लाइन है

public boolean isOffline ()

रिटर्न
boolean

हैऑनलाइन

public boolean isOnline ()

रिटर्न
boolean

isRoot

public boolean isRoot ()

रिटर्न
boolean

थ्रो
AdbCommandRejectedException
ShellCommandUnresponsiveException
TimeoutException

पुलफ़ाइल

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

फ़ॉरवर्ड हटाएं

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