デバイス構成ホルダー

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オブジェクトの浅いコピーを新しい名前で返します。

IDeviceConfiguration clone ()

getAllObjectOfType (String configType)

戻り値 要求された構成タイプに一致するIDeviceConfigurationのインスタンスを保持するすべての構成オブジェクトのリスト。

getAllObjects ()

Return IDeviceConfigurationのインスタンスを保持するすべての構成オブジェクトのリスト

IBuildProvider getBuildProvider ()

デバイス構成ホルダーが参照しているIBuildProviderを返します。

String getDeviceName ()

戻り値 構成のフィールド「name」で指定されたデバイスの名前。

TestDeviceOptions getDeviceOptions ()

デバイス構成ホルダーが持つTestDeviceOptionsを返します。

IDeviceRecovery getDeviceRecovery ()

デバイス構成ホルダーが持つIDeviceRecoveryを返します。

IDeviceSelection getDeviceRequirements ()

デバイス構成ホルダーが持つIDeviceSelectionを返します。

Integer getFrequency (Object config)

オブジェクトの周波数を返します。

getLabPreparers ()

デバイス構成ホルダーが持つITargetPreparerのリストを返します。

getTargetPreparers ()

デバイス構成ホルダーが持つITargetPreparerのリストを返します。

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 つを渡します。

許可されているオブジェクトの完全なリスト: IBuildProviderITargetPreparerIDeviceRecoveryIDeviceSelectionTestDeviceOptions

パラメーター
config Object : 上記のタイプのオブジェクト。

type String : 渡される構成オブジェクトのタイプ。

スロー
ConfigurationException

addSpecificConfig

public void addSpecificConfig (Object config)

構成ホルダーが追跡できる許可されたオブジェクトの 1 つを渡します。

許可されているオブジェクトの完全なリスト: IBuildProviderITargetPreparerIDeviceRecoveryIDeviceSelectionTestDeviceOptions

パラメーター
config Object : 上記のタイプのオブジェクト。

スロー
ConfigurationException

クローン

public IDeviceConfiguration clone (String newName)

このIDeviceConfigurationオブジェクトの浅いコピーを新しい名前で返します。

パラメーター
newName String

戻り値
IDeviceConfiguration

クローン

public IDeviceConfiguration clone ()

戻り値
IDeviceConfiguration

getAllObjectOfType

public  getAllObjectOfType (String configType)

戻り値 要求された構成タイプに一致するIDeviceConfigurationのインスタンスを保持するすべての構成オブジェクトのリスト。

パラメーター
configType String

戻り値

getAllObjects

public  getAllObjects ()

Return IDeviceConfigurationのインスタンスを保持するすべての構成オブジェクトのリスト

戻り値

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

getLabPreparers

public  getLabPreparers ()

デバイス構成ホルダーが持つITargetPreparerのリストを返します。

戻り値

getTargetPreparers

public  getTargetPreparers ()

デバイス構成ホルダーが持つITargetPreparerのリストを返します。

戻り値

偽物です

public boolean isFake ()

コンテナがテスト中のデバイス用かどうかを返します。

戻り値
boolean

removeObjectType

public void removeObjectType (String type)

指定されたオブジェクト タイプをデバイス構成ホルダーから削除します。

パラメーター
type String : 削除するオブジェクトのタイプ。

スロー
ConfigurationException