DefaultConnection
public
class
DefaultConnection
extends AbstractConnection
| java.lang.Object | ||
| ↳ | com.android.tradefed.device.connection.AbstractConnection | |
| ↳ | com.android.tradefed.device.connection.DefaultConnection | |
设备的默认连接表示,假定为设备的标准 adb 连接。
摘要
嵌套类 | |
|---|---|
class |
DefaultConnection.ConnectionBuilder
用于描述连接的构建器。 |
受保护的构造函数 | |
|---|---|
DefaultConnection(DefaultConnection.ConnectionBuilder builder)
构造函数 |
|
公共方法 | |
|---|---|
static
DefaultConnection
|
createConnection(DefaultConnection.ConnectionBuilder builder)
创建请求的连接。 |
static
DefaultConnection
|
createInopConnection(DefaultConnection.ConnectionBuilder builder)
|
final
MultiMap<String, String>
|
getAttributes()
|
final
IBuildInfo
|
getBuildInfo()
|
final
ITestDevice
|
getDevice()
|
Integer
|
getInitialDeviceNumOffset()
返回已知的设备编号偏移量(如果有)。 |
String
|
getInitialIp()
返回与设备关联的初始 IP(如果有)。 |
String
|
getInitialSerial()
返回设备的初始序列名称。 |
String
|
getInitialUser()
返回初始已知用户(如果有)。 |
ITestLogger
|
getLogger()
将 |
boolean
|
wasPreExisting()
|
boolean
|
wasTemporaryHolder()
|
受保护的方法 | |
|---|---|
IRunUtil
|
getRunUtil()
返回 |
受保护的构造函数
DefaultConnection
protected DefaultConnection (DefaultConnection.ConnectionBuilder builder)
构造函数
| 参数 | |
|---|---|
builder |
DefaultConnection.ConnectionBuilder |
公共方法
createConnection
public static DefaultConnection createConnection (DefaultConnection.ConnectionBuilder builder)
创建请求的连接。
| 参数 | |
|---|---|
builder |
DefaultConnection.ConnectionBuilder |
| 返回 | |
|---|---|
DefaultConnection |
|
createInopConnection
public static DefaultConnection createInopConnection (DefaultConnection.ConnectionBuilder builder)
| 参数 | |
|---|---|
builder |
DefaultConnection.ConnectionBuilder |
| 返回 | |
|---|---|
DefaultConnection |
|
getInitialDeviceNumOffset
public Integer getInitialDeviceNumOffset ()
返回已知的设备 num 偏移量(如果有)。如果不可用,则返回 null。
| 返回 | |
|---|---|
Integer |
|
getInitialIp
public String getInitialIp ()
返回与设备关联的初始 IP(如果有)。如果没有已知的初始 IP,则返回 null。
| 返回 | |
|---|---|
String |
|
getInitialSerial
public String getInitialSerial ()
返回设备的初始序列名称。
| 返回 | |
|---|---|
String |
|
getInitialUser
public String getInitialUser ()
返回初始已知用户(如果有)。如果没有初始已知用户,则返回 null。
| 返回 | |
|---|---|
String |
|
wasPreExisting
public boolean wasPreExisting ()
| 返回 | |
|---|---|
boolean |
|
wasTemporaryHolder
public boolean wasTemporaryHolder ()
| 返回 | |
|---|---|
boolean |
|