Project CASUAL
API for CASUAL
 All Classes Namespaces Functions Variables
Public Member Functions | List of all members
CASUAL.communicationstools.adb.ADBTools Class Reference
Inheritance diagram for CASUAL.communicationstools.adb.ADBTools:
CASUAL.communicationstools.AbstractDeviceCommunicationsProtocol CASUAL.communicationstools.AbstractDeviceCommunicationsProtocol

Public Member Functions

 ADBTools ()
 
int numberOfDevicesConnected ()
 
void restartConnection ()
 
boolean checkErrorMessage (String[] commandRun, String returnValue) throws HeadlessException
 
boolean isConnected ()
 
void reset ()
 
boolean installDriver ()
 
synchronized String deployBinary (String tempFolder)
 
void shutdown ()
 
String[] getIndividualDevices ()
 
String getDevices ()
 
String startServer ()
 
void elevateADBserver ()
 
synchronized String getBinaryLocation ()
 
String getConnectionMethodName ()
 
 ADBTools ()
 
int numberOfDevicesConnected ()
 
void restartConnection ()
 
boolean checkErrorMessage (String[] commandRun, String returnValue) throws HeadlessException
 
boolean isConnected ()
 
void reset ()
 
boolean installDriver ()
 
synchronized String deployBinary (String tempFolder)
 
void shutdown ()
 
String[] getIndividualDevices ()
 
String getDevices ()
 
String startServer ()
 
void elevateADBserver ()
 
synchronized String getBinaryLocation ()
 
String getConnectionMethodName ()
 
- Public Member Functions inherited from CASUAL.communicationstools.AbstractDeviceCommunicationsProtocol
abstract int numberOfDevicesConnected ()
 
abstract boolean checkErrorMessage (String[] commandRun, String returnValue)
 
abstract boolean installDriver ()
 
abstract String deployBinary (String tempFolder)
 
abstract void restartConnection ()
 
abstract void reset ()
 
abstract void shutdown ()
 
abstract String getBinaryLocation ()
 
boolean isConnected ()
 
void waitForDevice ()
 
String run (String[] parameters, int timeout, boolean silent)
 
boolean fileIsDeployedProperly (String binaryLocation)
 
abstract String getConnectionMethodName ()
 
String toString ()
 
abstract int numberOfDevicesConnected ()
 
abstract boolean checkErrorMessage (String[] commandRun, String returnValue)
 
abstract boolean installDriver ()
 
abstract String deployBinary (String tempFolder)
 
abstract void restartConnection ()
 
abstract void reset ()
 
abstract void shutdown ()
 
abstract String getBinaryLocation ()
 
boolean isConnected ()
 
void waitForDevice ()
 
String run (String[] parameters, int timeout, boolean silent)
 
boolean fileIsDeployedProperly (String binaryLocation)
 
abstract String getConnectionMethodName ()
 
String toString ()
 

Detailed Description

Provides a set of tools for using ADB in CASUAL

Author
Adam Outler adamo.nosp@m.utle.nosp@m.r@gma.nosp@m.il.c.nosp@m.om

Constructor & Destructor Documentation

CASUAL.communicationstools.adb.ADBTools.ADBTools ( )

ADBTools default constructor.

CASUAL.communicationstools.adb.ADBTools.ADBTools ( )

ADBTools default constructor.

Member Function Documentation

boolean CASUAL.communicationstools.adb.ADBTools.checkErrorMessage ( String[]  commandRun,
String  returnValue 
) throws HeadlessException
Returns

This error was received on Linux when permissions elevation was required. daemon not running. starting it now on port 5037 * cannot bind 'local:5037' ADB server didn't ACK failed to start daemon * error: cannot connect to daemon

boolean CASUAL.communicationstools.adb.ADBTools.checkErrorMessage ( String[]  commandRun,
String  returnValue 
) throws HeadlessException
Returns

This error was received on Linux when permissions elevation was required. daemon not running. starting it now on port 5037 * cannot bind 'local:5037' ADB server didn't ACK failed to start daemon * error: cannot connect to daemon

synchronized String CASUAL.communicationstools.adb.ADBTools.deployBinary ( String  tempFolder)
Returns
synchronized String CASUAL.communicationstools.adb.ADBTools.deployBinary ( String  tempFolder)
Returns
void CASUAL.communicationstools.adb.ADBTools.elevateADBserver ( )

starts an elevated ADB server.

void CASUAL.communicationstools.adb.ADBTools.elevateADBserver ( )

starts an elevated ADB server.

String CASUAL.communicationstools.adb.ADBTools.getDevices ( )

executes the getDevices command

Returns
value from adb getDevices
String CASUAL.communicationstools.adb.ADBTools.getDevices ( )

executes the getDevices command

Returns
value from adb getDevices
String [] CASUAL.communicationstools.adb.ADBTools.getIndividualDevices ( )

executes the getDevices command

Returns
individual devices listed as strings
String [] CASUAL.communicationstools.adb.ADBTools.getIndividualDevices ( )

executes the getDevices command

Returns
individual devices listed as strings
boolean CASUAL.communicationstools.adb.ADBTools.installDriver ( )
Returns
boolean CASUAL.communicationstools.adb.ADBTools.installDriver ( )
Returns
boolean CASUAL.communicationstools.adb.ADBTools.isConnected ( )
Returns
boolean CASUAL.communicationstools.adb.ADBTools.isConnected ( )
Returns
int CASUAL.communicationstools.adb.ADBTools.numberOfDevicesConnected ( )
Returns
int CASUAL.communicationstools.adb.ADBTools.numberOfDevicesConnected ( )
Returns
void CASUAL.communicationstools.adb.ADBTools.reset ( )
void CASUAL.communicationstools.adb.ADBTools.reset ( )
void CASUAL.communicationstools.adb.ADBTools.restartConnection ( )
void CASUAL.communicationstools.adb.ADBTools.restartConnection ( )
void CASUAL.communicationstools.adb.ADBTools.shutdown ( )
void CASUAL.communicationstools.adb.ADBTools.shutdown ( )
String CASUAL.communicationstools.adb.ADBTools.startServer ( )

executes the start server command

Returns
value from adb start server
String CASUAL.communicationstools.adb.ADBTools.startServer ( )

executes the start server command

Returns
value from adb start server

The documentation for this class was generated from the following file: