स्टबडिवाइस
public class StubDevice
extends Object
implements IDevice
java.lang.Object |
↳ | 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, 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)
स्टबडिवाइस
public StubDevice (String serial,
boolean isEmulator)
पैरामीटर |
---|
serial | String |
isEmulator | boolean |
सार्वजनिक तरीके
प्रोपर्टीजसेट
public boolean arePropertiesSet ()
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 | |
निष्पादित करें
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 | |
getAbis
public getAbis ()
getAvdName
public String getAvdName ()
getAvdPath
public String getAvdPath ()
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 |
फेंकता |
---|
AdbCommandRejectedException | |
ShellCommandUnresponsiveException | |
TimeoutException | |
getBatteryLevel
public Integer getBatteryLevel ()
यह तरीका बहिष्कृत है।
इसके बजाय getBattery()
उपयोग करें।
फेंकता |
---|
AdbCommandRejectedException | |
ShellCommandUnresponsiveException | |
TimeoutException | |
getClient
public Client getClient (String applicationName)
पैरामीटर |
---|
applicationName | String |
getClientName
public String getClientName (int pid)
getClients
public Client[] getClients ()
getDensity
public int getDensity ()
getFileListingService
public FileListingService getFileListingService ()
रिटर्न |
---|
FileListingService | |
getLanguage
public String getLanguage ()
getMountPoint
public String getMountPoint (String name)
getName
public String getName ()
getProperty
public String getProperty (String name)
getPropertyCacheOrSync
public String getPropertyCacheOrSync (String name)
यह तरीका बहिष्कृत है।
इसके बजाय getProperty(String)
उपयोग करें।
फेंकता |
---|
AdbCommandRejectedException | |
ShellCommandUnresponsiveException | |
TimeoutException | |
getPropertyCount
public int getPropertyCount ()
यह तरीका बहिष्कृत है।
कारण के रूप में "कार्यान्वयन विवरण" के साथ ddmlib में बहिष्कृत।
getPropertySync
public String getPropertySync (String name)
यह तरीका बहिष्कृत है।
इसके बजाय getProperty(String)
उपयोग करें।
फेंकता |
---|
AdbCommandRejectedException | |
ShellCommandUnresponsiveException | |
TimeoutException | |
getRegion
public String getRegion ()
getScreenshot
public RawImage getScreenshot ()
फेंकता |
---|
AdbCommandRejectedException | |
TimeoutException | |
getScreenshot
public RawImage getScreenshot (long timeout,
TimeUnit unit)
पैरामीटर |
---|
timeout | long |
unit | TimeUnit |
फेंकता |
---|
AdbCommandRejectedException | |
TimeoutException | |
getSerialNumber
public String getSerialNumber ()
getState
public IDevice.DeviceState getState ()
रिटर्न |
---|
IDevice.DeviceState | |
getSyncService
public SyncService getSyncService ()
फेंकता |
---|
AdbCommandRejectedException | |
TimeoutException | |
getSystemProperty
public ListenableFuture<String> getSystemProperty (String name)
रिटर्न |
---|
ListenableFuture<String> | |
getVersion
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 |
installPackages
public void installPackages ( apkFilePaths,
boolean reinstall,
extraArgs,
long timeOutInMs,
TimeUnit timeunit)
पैरामीटर |
---|
apkFilePaths | |
reinstall | boolean |
extraArgs | |
timeOutInMs | long |
timeunit | TimeUnit |
installRemotePackage
public void installRemotePackage (String remoteFilePath,
boolean reinstall,
InstallReceiver receiver,
String... extraArgs)
पैरामीटर |
---|
remoteFilePath | String |
reinstall | boolean |
receiver | InstallReceiver |
extraArgs | String |
installRemotePackage
public void installRemotePackage (String remoteFilePath,
boolean reinstall,
String... extraArgs)
पैरामीटर |
---|
remoteFilePath | String |
reinstall | boolean |
extraArgs | String |
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 |
बूटलोडर है
public boolean isBootLoader ()
isEmulator
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 | |
pushFile
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 | |
runLogService
public void runLogService (String logname,
LogReceiver receiver)
पैरामीटर |
---|
logname | String |
receiver | LogReceiver |
फेंकता |
---|
AdbCommandRejectedException | |
TimeoutException | |
setSerial
public void setSerial (String serial)
startScreenRecorder
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 |
SyncPackageToDevice
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 |