to top
public 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 Constructors
StubDevice(String serial)
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, long maxTimeToOutputResponse, TimeUnit maxTimeUnits)
void executeShellCommand(String command, IShellOutputReceiver receiver)
List<String> getAbis()
String getAvdName()
Future<Integer> getBattery()
Future<Integer> getBattery(long freshnessTime, TimeUnit timeUnit)
Integer getBatteryLevel()
Integer getBatteryLevel(long freshnessMs)
Client getClient(String applicationName)
String getClientName(int pid)
Client[] getClients()
int getDensity()
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()
Future<String> getSystemProperty(String name)
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)
void startScreenRecorder(String remoteFilePath, ScreenRecorderOptions options, IShellOutputReceiver receiver)
boolean supportsFeature(IDevice.HardwareFeature arg0)
boolean supportsFeature(IDevice.Feature feature)
String syncPackageToDevice(String localFilePath)
String uninstallPackage(String packageName)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.android.ddmlib.IDevice
From interface com.android.ddmlib.IShellEnabledDevice

Public Constructors

public StubDevice (String serial)

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, long maxTimeToOutputResponse, TimeUnit maxTimeUnits)

Throws
TimeoutException
AdbCommandRejectedException
ShellCommandUnresponsiveException
IOException

public void executeShellCommand (String command, IShellOutputReceiver receiver)

Throws
TimeoutException
AdbCommandRejectedException
ShellCommandUnresponsiveException
IOException

public List<String> getAbis ()

public String getAvdName ()

public Future<Integer> getBattery ()

public Future<Integer> getBattery (long freshnessTime, TimeUnit timeUnit)

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 int getDensity ()

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 Future<String> getSystemProperty (String name)

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 void startScreenRecorder (String remoteFilePath, ScreenRecorderOptions options, IShellOutputReceiver receiver)

Throws
TimeoutException
AdbCommandRejectedException
IOException
ShellCommandUnresponsiveException

public boolean supportsFeature (IDevice.HardwareFeature arg0)

public boolean supportsFeature (IDevice.Feature feature)

public String syncPackageToDevice (String localFilePath)

Throws
TimeoutException
AdbCommandRejectedException
IOException
SyncException

public String uninstallPackage (String packageName)

Throws
InstallException