C# 클래스 SharpAdbClient.AdbCommandLineClient

Provides methods for interacting with the adb.exe command line client.
상속: IAdbCommandLineClient
파일 보기 프로젝트 열기: ArduPilot/MissionPlanner

공개 메소드들

메소드 설명
AdbCommandLineClient ( string adbPath ) : SharpAdbClient.Exceptions

Initializes a new instance of the AdbCommandLineClient class.

GetVersion ( ) : System.Version

Queries adb for its version number and checks it against AdbServer.RequiredAdbVersion.

IsValidAdbFile ( string adbPath ) : bool
StartServer ( ) : void

Starts the adb server by running the adb start-server command.

보호된 메소드들

메소드 설명
RunAdbProcess ( string command, List errorOutput, List standardOutput ) : void

Runs the adb.exe process, invoking a specific command, and reads the standard output and standard error output.

Use this command only for adb commands that return immediately, such as adb version. This operation times out after 5 seconds.

RunAdbProcessInner ( string command, List errorOutput, List standardOutput ) : int

Runs the adb.exe process, invoking a specific command, and reads the standard output and standard error output.

Use this command only for adb commands that return immediately, such as adb version. This operation times out after 5 seconds.

비공개 메소드들

메소드 설명
GetVersionFromOutput ( List output ) : System.Version

Parses the output of the adb.exe version command and determines the adb version.

메소드 상세

AdbCommandLineClient() 공개 메소드

Initializes a new instance of the AdbCommandLineClient class.
public AdbCommandLineClient ( string adbPath ) : SharpAdbClient.Exceptions
adbPath string /// The path to the adb.exe executable. ///
리턴 SharpAdbClient.Exceptions

GetVersion() 공개 메소드

Queries adb for its version number and checks it against AdbServer.RequiredAdbVersion.
public GetVersion ( ) : System.Version
리턴 System.Version

IsValidAdbFile() 공개 메소드

public IsValidAdbFile ( string adbPath ) : bool
adbPath string
리턴 bool

RunAdbProcess() 보호된 메소드

Runs the adb.exe process, invoking a specific command, and reads the standard output and standard error output.

Use this command only for adb commands that return immediately, such as adb version. This operation times out after 5 seconds.

/// The process exited with an exit code other than 0. ///
protected RunAdbProcess ( string command, List errorOutput, List standardOutput ) : void
command string /// The adb.exe command to invoke, such as version or start-server. ///
errorOutput List /// A list in which to store the standard error output. Each line is added as a new entry. /// This value can be if you are not interested in the standard /// error. ///
standardOutput List /// A list in which to store the standard output. Each line is added as a new entry. /// This value can be if you are not interested in the standard /// output. ///
리턴 void

RunAdbProcessInner() 보호된 메소드

Runs the adb.exe process, invoking a specific command, and reads the standard output and standard error output.

Use this command only for adb commands that return immediately, such as adb version. This operation times out after 5 seconds.

protected RunAdbProcessInner ( string command, List errorOutput, List standardOutput ) : int
command string /// The adb.exe command to invoke, such as version or start-server. ///
errorOutput List /// A list in which to store the standard error output. Each line is added as a new entry. /// This value can be if you are not interested in the standard /// error. ///
standardOutput List /// A list in which to store the standard output. Each line is added as a new entry. /// This value can be if you are not interested in the standard /// output. ///
리턴 int

StartServer() 공개 메소드

Starts the adb server by running the adb start-server command.
public StartServer ( ) : void
리턴 void