Fields Summary |
---|
public static final String | PROP_BUILD_VERSION |
public static final String | PROP_BUILD_VERSION_NUMBER |
public static final String | PROP_DEBUGGABLE |
public static final String | FIRST_EMULATOR_SNSerial number of the first connected emulator. |
public static final int | CHANGE_STATEDevice change bit mask: {@link DeviceState} change. |
public static final int | CHANGE_CLIENT_LISTDevice change bit mask: {@link Client} list change. |
public static final int | CHANGE_BUILD_INFODevice change bit mask: build info change. |
Methods Summary |
---|
public boolean | createForward(int localPort, int remotePort)Creates a port forwarding between a local and a remote port.
|
public void | executeShellCommand(java.lang.String command, IShellOutputReceiver receiver)Executes a shell command on the device, and sends the result to a receiver.
|
public java.lang.String | getAvdName()Returns the name of the AVD the emulator is running.
This is only valid if {@link #isEmulator()} returns true.
If the emulator is not running any AVD (for instance it's running from an Android source
tree build), this method will return "<build> ".
|
public Client | getClient(java.lang.String applicationName)Returns a {@link Client} by its application name.
|
public java.lang.String | getClientName(int pid)Returns the name of the client by pid or null if pid is unknown
|
public Client[] | getClients()Returns the array of clients.
|
public FileListingService | getFileListingService()Returns a {@link FileListingService} for this device.
|
public java.util.Map | getProperties()Returns the device properties. It contains the whole output of 'getprop'
|
public java.lang.String | getProperty(java.lang.String name)Returns a property value.
|
public int | getPropertyCount()Returns the number of property for this device.
|
public RawImage | getScreenshot()Takes a screen shot of the device and returns it as a {@link RawImage}.
|
public java.lang.String | getSerialNumber()Returns the serial number of the device.
|
public com.android.ddmlib.Device.DeviceState | getState()Returns the state of the device.
|
public SyncService | getSyncService()Returns a {@link SyncService} object to push / pull files to and from the device.
|
public boolean | hasClients()Returns whether the {@link Device} has {@link Client}s.
|
public boolean | isBootLoader()Returns if the device is in bootloader mode.
|
public boolean | isEmulator()Returns true if the device is an emulator.
|
public boolean | isOffline()Returns if the device is offline.
|
public boolean | isOnline()Returns if the device is ready.
|
public boolean | removeForward(int localPort, int remotePort)Removes a port forwarding between a local and a remote port.
|
public void | runEventLogService(com.android.ddmlib.log.LogReceiver receiver)Runs the event log service and outputs the event log to the {@link LogReceiver}.
|
public void | runLogService(java.lang.String logname, com.android.ddmlib.log.LogReceiver receiver)Runs the log service for the given log and outputs the log to the {@link LogReceiver}.
|