DeviceConfigurationHolder

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)

Configuration Holder が追跡できる許可されたオブジェクトのいずれかを渡します。

void addSpecificConfig(Object config)

Configuration Holder が追跡できる許可されたオブジェクトのいずれかを渡します。

IDeviceConfiguration clone(String newName)

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

IDeviceConfiguration clone()

List<Object> getAllObjectOfType(String configType)

リクエストされた構成タイプに一致する IDeviceConfiguration のインスタンスを保持するすべての構成オブジェクトのリストを返します。

List<Object> getAllObjects()

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

IBuildProvider getBuildProvider()

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

String getDeviceName()

構成の「name」フィールドで指定されたデバイスの名前を返します。

TestDeviceOptions getDeviceOptions()

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

IDeviceRecovery getDeviceRecovery()

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

IDeviceSelection getDeviceRequirements()

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

Integer getFrequency(Object config)

オブジェクトの頻度を返します。

List<ITargetPreparer> getLabPreparers()

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

List<ITargetPreparer> getTargetPreparers()

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

boolean isFake()

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

void removeObjectType(String type)

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

パブリック コンストラクタ

DeviceConfigurationHolder

public DeviceConfigurationHolder ()

DeviceConfigurationHolder

public DeviceConfigurationHolder (String deviceName)

パラメータ
deviceName String

DeviceConfigurationHolder

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)

Configuration Holder が追跡できる許可されたオブジェクトのいずれかを渡します。

使用できるオブジェクトの完全なリストは、IBuildProviderITargetPreparerIDeviceRecoveryIDeviceSelectionTestDeviceOptions です。

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

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

例外
ConfigurationException

addSpecificConfig

public void addSpecificConfig (Object config)

Configuration Holder が追跡できる許可されたオブジェクトのいずれかを渡します。

使用できるオブジェクトの完全なリストは、IBuildProviderITargetPreparerIDeviceRecoveryIDeviceSelectionTestDeviceOptions です。

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

例外
ConfigurationException

clone

public IDeviceConfiguration clone (String newName)

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

パラメータ
newName String

戻り値
IDeviceConfiguration

clone

public IDeviceConfiguration clone ()

戻り値
IDeviceConfiguration

getAllObjectOfType

public List<Object> getAllObjectOfType (String configType)

リクエストされた構成タイプに一致する IDeviceConfiguration のインスタンスを保持するすべての構成オブジェクトのリストを返します。

パラメータ
configType String

戻り値
List<Object>

getAllObjects

public List<Object> getAllObjects ()

IDeviceConfiguration のインスタンスを保持しているすべての構成オブジェクトのリストを返します。

戻り値
List<Object>

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 List<ITargetPreparer> getLabPreparers ()

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

戻り値
List<ITargetPreparer>

getTargetPreparers

public List<ITargetPreparer> getTargetPreparers ()

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

戻り値
List<ITargetPreparer>

isFake

public boolean isFake ()

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

戻り値
boolean

removeObjectType

public void removeObjectType (String type)

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

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

例外
ConfigurationException