स्टबडिवाइस
public class StubDevice
extends Object
implements IDevice
विस्तार करता है
java.lang.ऑब्जेक्ट |
मैं | com.android.tradefed.device.StubDevice |
एक IDevice
का स्टब प्लेसहोल्डर कार्यान्वयन।
सारांश
सार्वजनिक तरीके |
---|
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, long maxTimeout, long maxTimeToOutputResponse, TimeUnit maxTimeUnits, String... extraArgs) |
void | installRemotePackage (String remoteFilePath, boolean reinstall, InstallReceiver receiver, String... extraArgs) |
void | installRemotePackage (String remoteFilePath, boolean reinstall, 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)
स्टबडिवाइस
public StubDevice (String serial,
boolean isEmulator)
मापदंडों |
---|
serial | String |
isEmulator | boolean |
सार्वजनिक तरीके
हैंप्रॉपर्टीजसेट
public boolean arePropertiesSet ()
क्रिएटफॉरवर्ड
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,
long maxTimeout,
long maxTimeToOutputResponse,
TimeUnit maxTimeUnits)
मापदंडों |
---|
command | String |
receiver | IShellOutputReceiver |
maxTimeout | long |
maxTimeToOutputResponse | long |
maxTimeUnits | TimeUnit |
फेंकता |
---|
AdbCommandRejectedException | |
ShellCommandUnresponsiveException | |
TimeoutException | |
गेटएबिस
public getAbis ()
getAvdName
public String getAvdName ()
getAvdPath
public String getAvdPath ()
बैटरी प्राप्त करें
public getBattery (long freshnessTime,
TimeUnit timeUnit)
मापदंडों |
---|
freshnessTime | long |
timeUnit | TimeUnit |
बैटरी प्राप्त करें
public getBattery ()
बैटरी स्तर प्राप्त करें
public Integer getBatteryLevel (long freshnessMs)
यह विधि बहिष्कृत है।
इसके बजाय getBattery(long, TimeUnit)
का उपयोग करें।
मापदंडों |
---|
freshnessMs | long |
फेंकता |
---|
AdbCommandRejectedException | |
ShellCommandUnresponsiveException | |
TimeoutException | |
बैटरी स्तर प्राप्त करें
public Integer getBatteryLevel ()
यह विधि बहिष्कृत है।
इसके बजाय getBattery()
का उपयोग करें।
फेंकता |
---|
AdbCommandRejectedException | |
ShellCommandUnresponsiveException | |
TimeoutException | |
ग्राहक प्राप्त करें
public Client getClient (String applicationName)
मापदंडों |
---|
applicationName | String |
getClientName
public String getClientName (int pid)
ग्राहक प्राप्त करें
public Client[] getClients ()
घनत्व प्राप्त करें
public int getDensity ()
getFileListingService
public FileListingService getFileListingService ()
रिटर्न |
---|
FileListingService | |
भाषा प्राप्त करें
public String getLanguage ()
माउंटपॉइंट प्राप्त करें
public String getMountPoint (String name)
getName
public String getName ()
संपत्ति प्राप्त करें
public String getProperty (String name)
getPropertyCacheOrSync
public String getPropertyCacheOrSync (String name)
यह विधि बहिष्कृत है।
इसके बजाय getProperty(String)
का उपयोग करें।
फेंकता |
---|
AdbCommandRejectedException | |
ShellCommandUnresponsiveException | |
TimeoutException | |
संपत्ति गणना प्राप्त करें
public int getPropertyCount ()
यह विधि बहिष्कृत है।
कारण के रूप में "कार्यान्वयन विवरण" के साथ ddmlib में पदावनत।
getPropertySync
public String getPropertySync (String name)
यह विधि बहिष्कृत है।
इसके बजाय getProperty(String)
का उपयोग करें।
फेंकता |
---|
AdbCommandRejectedException | |
ShellCommandUnresponsiveException | |
TimeoutException | |
प्राप्त क्षेत्र
public String getRegion ()
स्क्रीनशॉट प्राप्त करें
public RawImage getScreenshot ()
फेंकता |
---|
AdbCommandRejectedException | |
TimeoutException | |
स्क्रीनशॉट प्राप्त करें
public RawImage getScreenshot (long timeout,
TimeUnit unit)
मापदंडों |
---|
timeout | long |
unit | TimeUnit |
फेंकता |
---|
AdbCommandRejectedException | |
TimeoutException | |
सीरियल नंबर प्राप्त करें
public String getSerialNumber ()
गेटस्टेट
public IDevice.DeviceState getState ()
रिटर्न |
---|
IDevice.DeviceState | |
getSyncService
public SyncService getSyncService ()
फेंकता |
---|
AdbCommandRejectedException | |
TimeoutException | |
सिस्टम प्रॉपर्टी प्राप्त करें
public ListenableFuture<String> getSystemProperty (String name)
रिटर्न |
---|
ListenableFuture<String> | |
संस्करण प्राप्त करें
public AndroidVersion getVersion ()
ग्राहक हैं
public boolean hasClients ()
पैकेज स्थापित करे
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 |
पैकेज स्थापित करे
public void installPackage (String packageFilePath,
boolean reinstall,
InstallReceiver receiver,
String... extraArgs)
मापदंडों |
---|
packageFilePath | String |
reinstall | boolean |
receiver | InstallReceiver |
extraArgs | String |
पैकेज स्थापित करे
public void installPackage (String packageFilePath,
boolean reinstall,
String... extraArgs)
मापदंडों |
---|
packageFilePath | String |
reinstall | boolean |
extraArgs | String |
पैकेज स्थापित करें
public void installPackages ( apkFilePaths,
boolean reinstall,
extraArgs,
long timeOutInMs,
TimeUnit timeunit)
मापदंडों |
---|
apkFilePaths | |
reinstall | boolean |
extraArgs | |
timeOutInMs | long |
timeunit | TimeUnit |
रिमोट पैकेज स्थापित करें
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 |
रिमोट पैकेज स्थापित करें
public void installRemotePackage (String remoteFilePath,
boolean reinstall,
InstallReceiver receiver,
String... extraArgs)
मापदंडों |
---|
remoteFilePath | String |
reinstall | boolean |
receiver | InstallReceiver |
extraArgs | String |
रिमोट पैकेज स्थापित करें
public void installRemotePackage (String remoteFilePath,
boolean reinstall,
String... extraArgs)
मापदंडों |
---|
remoteFilePath | String |
reinstall | boolean |
extraArgs | String |
isबूटलोडर
public boolean isBootLoader ()
एमुलेटर है
public boolean isEmulator ()
ऑफलाइन है
public boolean isOffline ()
ऑनलाइन है
public boolean isOnline ()
isroot
public boolean isRoot ()
फेंकता |
---|
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)
फेंकता |
---|
AdbCommandRejectedException | |
TimeoutException | |
हटाएं फॉरवर्ड
public void removeForward (int localPort)
फेंकता |
---|
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 |
रिमूव रिवर्स
public void removeReverse (int remotePort)
फेंकता |
---|
AdbCommandRejectedException | |
TimeoutException | |
जड़
public boolean root ()
फेंकता |
---|
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)
स्टार्टस्क्रीन रिकॉर्डर
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 |
सुविधा का समर्थन करता है
public boolean supportsFeature (IDevice.Feature feature)
मापदंडों |
---|
feature | IDevice.Feature |
सिंकपैकेजटूडिवाइस
public String syncPackageToDevice (String localFilePath)
मापदंडों |
---|
localFilePath | String |
फेंकता |
---|
AdbCommandRejectedException | |
SyncException | |
TimeoutException | |
अनइंस्टॉल ऐप
public String uninstallApp (String applicationID,
String... extraArgs)
मापदंडों |
---|
applicationID | String |
extraArgs | String |
अनइंस्टॉल पैकेज
public String uninstallPackage (String packageName)
मापदंडों |
---|
packageName | String |