class

StubDevice

extends Object
implements IDevice
java.lang.Object
   ↳ com.android.tradefed.device.StubDevice
Known Direct Subclasses

Class Overview

Stub placeholder implementation of a IDevice.

Summary

[Expand]
Inherited Constants
From interface com.android.ddmlib.IDevice
Public Methods
boolean arePropertiesSet()
void createForward(int localPort, String remoteSocketName, IDevice.DeviceUnixSocketNamespace namespace)
void createForward(int localPort, int remotePort)
void executeShellCommand(String command, IShellOutputReceiver receiver, int maxTimeToOutputResponse)
void executeShellCommand(String command, IShellOutputReceiver receiver)
String getAvdName()
Integer getBatteryLevel()
Integer getBatteryLevel(long freshnessMs)
Client getClient(String applicationName)
String getClientName(int pid)
Client[] getClients()
FileListingService getFileListingService()
String getMountPoint(String name)
String getName()
Map<String, String> getProperties()
String getProperty(String name)
String getPropertyCacheOrSync(String name)
int getPropertyCount()
String getPropertySync(String name)
RawImage getScreenshot()
String getSerialNumber()
IDevice.DeviceState getState()
SyncService getSyncService()
boolean hasClients()
String installPackage(String packageFilePath, boolean reinstall, String... extraArgs)
String installRemotePackage(String remoteFilePath, boolean reinstall, String... extraArgs)
boolean isBootLoader()
boolean isEmulator()
boolean isOffline()
boolean isOnline()
void pullFile(String remote, String local)
void pushFile(String local, String remote)
void reboot(String into)
void removeForward(int localPort, int remotePort)
void removeForward(int localPort, String remoteSocketName, IDevice.DeviceUnixSocketNamespace namespace)
void removeRemotePackage(String remoteFilePath)
void runEventLogService(LogReceiver receiver)
void runLogService(String logname, LogReceiver receiver)
String syncPackageToDevice(String localFilePath)
String uninstallPackage(String packageName)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.android.ddmlib.IDevice

Public Methods

public boolean arePropertiesSet ()

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

Throws
TimeoutException
AdbCommandRejectedException
IOException

public void createForward (int localPort, int remotePort)

Throws
TimeoutException
AdbCommandRejectedException
IOException

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

Throws
TimeoutException
AdbCommandRejectedException
ShellCommandUnresponsiveException
IOException

public void executeShellCommand (String command, IShellOutputReceiver receiver)

Throws
TimeoutException
AdbCommandRejectedException
ShellCommandUnresponsiveException
IOException

public String getAvdName ()

public Integer getBatteryLevel ()

Throws
TimeoutException
AdbCommandRejectedException
IOException
ShellCommandUnresponsiveException

public Integer getBatteryLevel (long freshnessMs)

Throws
TimeoutException
AdbCommandRejectedException
IOException
ShellCommandUnresponsiveException

public Client getClient (String applicationName)

public String getClientName (int pid)

public Client[] getClients ()

public FileListingService getFileListingService ()

public String getMountPoint (String name)

public String getName ()

public Map<String, String> getProperties ()

public String getProperty (String name)

public String getPropertyCacheOrSync (String name)

Throws
TimeoutException
AdbCommandRejectedException
ShellCommandUnresponsiveException
IOException

public int getPropertyCount ()

public String getPropertySync (String name)

Throws
TimeoutException
AdbCommandRejectedException
ShellCommandUnresponsiveException
IOException

public RawImage getScreenshot ()

Throws
TimeoutException
AdbCommandRejectedException
IOException

public String getSerialNumber ()

public IDevice.DeviceState getState ()

public SyncService getSyncService ()

Throws
TimeoutException
AdbCommandRejectedException
IOException

public boolean hasClients ()

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

Throws
InstallException

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

Throws
InstallException

public boolean isBootLoader ()

public boolean isEmulator ()

public boolean isOffline ()

public boolean isOnline ()

public void pullFile (String remote, String local)

Throws
IOException
AdbCommandRejectedException
TimeoutException
SyncException

public void pushFile (String local, String remote)

Throws
IOException
AdbCommandRejectedException
TimeoutException
SyncException

public void reboot (String into)

Throws
TimeoutException
AdbCommandRejectedException
IOException

public void removeForward (int localPort, int remotePort)

Throws
TimeoutException
AdbCommandRejectedException
IOException

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

Throws
TimeoutException
AdbCommandRejectedException
IOException

public void removeRemotePackage (String remoteFilePath)

Throws
InstallException

public void runEventLogService (LogReceiver receiver)

Throws
TimeoutException
AdbCommandRejectedException
IOException

public void runLogService (String logname, LogReceiver receiver)

Throws
TimeoutException
AdbCommandRejectedException
IOException

public String syncPackageToDevice (String localFilePath)

Throws
TimeoutException
AdbCommandRejectedException
IOException
SyncException

public String uninstallPackage (String packageName)

Throws
InstallException