デバイス構成ホルダー
public class DeviceConfigurationHolder
extends Object
implements IDeviceConfiguration
java.lang.オブジェクト | |
↳ | com.android.tradefed.config.DeviceConfigurationHolder |
ロードされたデバイス構成オブジェクトをその属性に格納する具体的なIDeviceConfiguration
実装。
まとめ
パブリックコンストラクター | |
---|---|
DeviceConfigurationHolder () | |
DeviceConfigurationHolder (String deviceName) | |
DeviceConfigurationHolder (String deviceName, boolean isFake) |
パブリックメソッド | |
---|---|
void | addFrequency (Object config, Integer frequency) オブジェクトに対するオプションを適切に挿入できるように、オブジェクトの周波数を追跡します。 |
void | addSpecificConfig (Object config, String type) 構成保持者が追跡できる、許可されたオブジェクトの 1 つを渡します。 |
void | addSpecificConfig (Object config) 構成保持者が追跡できる、許可されたオブジェクトの 1 つを渡します。 |
IDeviceConfiguration | clone (String newName) この |
IDeviceConfiguration | clone () |
getAllObjectOfType (String configType) 戻り値 要求された構成タイプに一致する | |
getAllObjects () 戻り値 | |
IBuildProvider | getBuildProvider () デバイス構成ホルダーが参照している |
String | getDeviceName () 戻り値 構成のフィールド「name」で指定されたデバイスの名前。 |
TestDeviceOptions | getDeviceOptions () デバイス構成ホルダーが持つ |
IDeviceRecovery | getDeviceRecovery () デバイス構成ホルダーが持つ |
IDeviceSelection | getDeviceRequirements () デバイス構成ホルダーが持つ |
Integer | getFrequency (Object config) オブジェクトの周波数を返します。 |
getLabPreparers () デバイス構成保持者が持つ | |
getTargetPreparers () デバイス構成保持者が持つ | |
boolean | isFake () コンテナがテスト対象デバイス用かどうかを返します。 |
void | removeObjectType (String type) 指定されたオブジェクト タイプをデバイス構成ホルダーから削除します。 |
パブリックコンストラクター
デバイス構成ホルダー
public DeviceConfigurationHolder ()
デバイス構成ホルダー
public DeviceConfigurationHolder (String deviceName)
パラメーター | |
---|---|
deviceName | String |
デバイス構成ホルダー
public DeviceConfigurationHolder (String deviceName, boolean isFake)
パラメーター | |
---|---|
deviceName | String |
isFake | boolean |
パブリックメソッド
周波数の追加
public void addFrequency (Object config, Integer frequency)
オブジェクトに対するオプションを適切に挿入できるように、オブジェクトの周波数を追跡します。
パラメーター | |
---|---|
config | Object : 周波数を追跡しているオブジェクト。 |
frequency | Integer : オブジェクトに関連付けられた周波数。 |
addSpecificConfig
public void addSpecificConfig (Object config, String type)
構成保持者が追跡できる、許可されたオブジェクトの 1 つを渡します。
許可されるオブジェクトの完全なリストは次のとおりです: IBuildProvider
、 ITargetPreparer
、 IDeviceRecovery
、 IDeviceSelection
、 TestDeviceOptions
パラメーター | |
---|---|
config | Object : 上記の型のオブジェクト。 |
type | String : 渡される構成オブジェクトのタイプ。 |
投げる | |
---|---|
ConfigurationException |
addSpecificConfig
public void addSpecificConfig (Object config)
構成保持者が追跡できる、許可されたオブジェクトの 1 つを渡します。
許可されるオブジェクトの完全なリストは次のとおりです: IBuildProvider
、 ITargetPreparer
、 IDeviceRecovery
、 IDeviceSelection
、 TestDeviceOptions
パラメーター | |
---|---|
config | Object : 上記の型のオブジェクト。 |
投げる | |
---|---|
ConfigurationException |
クローン
public IDeviceConfiguration clone (String newName)
このIDeviceConfiguration
オブジェクトの浅いコピーを新しい名前で返します。
パラメーター | |
---|---|
newName | String |
戻り値 | |
---|---|
IDeviceConfiguration |
getAllObjectOfType
publicgetAllObjectOfType (String configType)
戻り値 要求された構成タイプに一致するIDeviceConfiguration
のインスタンスを保持するすべての構成オブジェクトのリスト。
パラメーター | |
---|---|
configType | String |
戻り値 | |
---|---|
getBuildProvider
public IBuildProvider getBuildProvider ()
デバイス構成ホルダーが参照しているIBuildProvider
を返します。
戻り値 | |
---|---|
IBuildProvider |
getデバイス名
public String getDeviceName ()
戻り値 構成のフィールド「name」で指定されたデバイスの名前。
戻り値 | |
---|---|
String |
getDeviceOptions
public TestDeviceOptions getDeviceOptions ()
デバイス構成ホルダーが持つTestDeviceOptions
を返します。
戻り値 | |
---|---|
TestDeviceOptions |
getDeviceRecovery
public IDeviceRecovery getDeviceRecovery ()
デバイス構成ホルダーが持つIDeviceRecovery
を返します。
戻り値 | |
---|---|
IDeviceRecovery |
getDeviceRequirements
public IDeviceSelection getDeviceRequirements ()
デバイス構成ホルダーが持つIDeviceSelection
を返します。
戻り値 | |
---|---|
IDeviceSelection |
周波数を取得する
public Integer getFrequency (Object config)
オブジェクトの周波数を返します。
パラメーター | |
---|---|
config | Object |
戻り値 | |
---|---|
Integer |
偽物です
public boolean isFake ()
コンテナがテスト対象デバイス用かどうかを返します。
戻り値 | |
---|---|
boolean |
削除オブジェクトタイプ
public void removeObjectType (String type)
指定されたオブジェクト タイプをデバイス構成ホルダーから削除します。
パラメーター | |
---|---|
type | String : 削除するオブジェクトのタイプ。 |
投げる | |
---|---|
ConfigurationException |