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 ()
既知のデバイス番号のオフセットを返します(存在する場合)。使用できない場合は 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 |
|