Google cam kết thúc đẩy công bằng chủng tộc cho Cộng đồng người da đen. Xem cách thực hiện.

DeviceConcurrentUtil.ShellCommandCallable

public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object

java.lang.Object
com.android.tradefed.util.DeviceConcurrentUtil.ShellCommandCallable <V>


ERROR(/Callable) bao bọc các chi tiết của việc thực thi lệnh shell trên một ITestDevice .

Phải triển khai processOutput(String) để xử lý đầu ra lệnh và xác định kết quả trả về của Callable

Bản tóm tắt

Các nhà xây dựng công cộng

ShellCommandCallable ()
ShellCommandCallable ( ITestDevice device, String command, long timeout)

Phương pháp công khai

V call ()
abstract V processOutput (String output)
ShellCommandCallable <V> setCommand (String command)
ShellCommandCallable <V> setDevice ( ITestDevice device)
ShellCommandCallable <V> setTimeout (long timeout)

Các nhà xây dựng công cộng

ShellCommandCallable

public ShellCommandCallable ()

ShellCommandCallable

public ShellCommandCallable (ITestDevice device, 
                String command, 
                long timeout)

Thông số
device ITestDevice

command String

timeout long

Phương pháp công khai

cuộc gọi

public V call ()

Lợi nhuận
V

processOutput

public abstract V processOutput (String output)

Thông số
output String

Lợi nhuận
V

setCommand

public ShellCommandCallable<V> setCommand (String command)

Thông số
command String

Lợi nhuận
ShellCommandCallable <V>

setDevice

public ShellCommandCallable<V> setDevice (ITestDevice device)

Thông số
device ITestDevice

Lợi nhuận
ShellCommandCallable <V>

setTimeout

public ShellCommandCallable<V> setTimeout (long timeout)

Thông số
timeout long

Lợi nhuận
ShellCommandCallable <V>