デバイス構成ホルダー
public class DeviceConfigurationHolder
extends Object
implements IDeviceConfiguration
java.lang.Object | |
↳ | 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 () Return | |
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 |
公開メソッド
addFrequency
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 |
getDeviceName
public String getDeviceName ()
戻り値 構成のフィールド「name」で指定されたデバイスの名前。
戻り値 | |
---|---|
String |
getDeviceOptions
public TestDeviceOptions getDeviceOptions ()
デバイス構成ホルダーが持つTestDeviceOptions
を返します。
戻り値 | |
---|---|
TestDeviceOptions |
getDeviceRecovery
public IDeviceRecovery getDeviceRecovery ()
デバイス構成ホルダーが持つIDeviceRecovery
を返します。
戻り値 | |
---|---|
IDeviceRecovery |
getDeviceRequirements
public IDeviceSelection getDeviceRequirements ()
デバイス構成ホルダーが持つIDeviceSelection
を返します。
戻り値 | |
---|---|
IDeviceSelection |
getFrequency
public Integer getFrequency (Object config)
オブジェクトの周波数を返します。
パラメーター | |
---|---|
config | Object |
戻り値 | |
---|---|
Integer |
偽物です
public boolean isFake ()
コンテナがテスト中のデバイス用かどうかを返します。
戻り値 | |
---|---|
boolean |
removeObjectType
public void removeObjectType (String type)
指定されたオブジェクト タイプをデバイス構成ホルダーから削除します。
パラメーター | |
---|---|
type | String : 削除するオブジェクトのタイプ。 |
スロー | |
---|---|
ConfigurationException |