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) 構成ホルダーが追跡できる許可されたオブジェクトの1つを渡します。 |
void | addSpecificConfig (Object config) 構成ホルダーが追跡できる許可されたオブジェクトの1つを渡します。 |
IDeviceConfiguration | clone (String newName) このの浅いコピーを返し |
IDeviceConfiguration | clone () |
getAllObjectOfType (String configType) 戻り値は、すべての設定オブジェクトのリストは、インスタンスの開催 | |
getAllObjects () インスタンス保持されているすべての構成オブジェクトのリストを返します | |
IBuildProvider | getBuildProvider () 戻り |
String | getDeviceName () 戻り値構成の「名前」フィールドで指定されたデバイスの名前。 |
TestDeviceOptions | getDeviceOptions () 戻り |
IDeviceRecovery | getDeviceRecovery () 戻り |
IDeviceSelection | getDeviceRequirements () 戻り |
Integer | getFrequency (Object config) オブジェクトの頻度を返します。 |
getLabPreparers () リストを返します | |
getTargetPreparers () リストを返します | |
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)
構成ホルダーが追跡できる許可されたオブジェクトの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 ()
戻り値構成の「名前」フィールドで指定されたデバイスの名前。
戻り値 | |
---|---|
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 |
getTargetPreparers
publicgetTargetPreparers ()
リストを返しますITargetPreparer
デバイス・コンフィギュレーション・ホルダーがあります。
戻り値 | |
---|---|
isFake
public boolean isFake ()
コンテナがテスト対象デバイス用であるかどうかを返します。
戻り値 | |
---|---|
boolean |
removeObjectType
public void removeObjectType (String type)
指定したオブジェクトタイプをデバイス構成ホルダーから削除します。
パラメーター | |
---|---|
type | String :削除するには、オブジェクトのタイプ。 |
投げる | |
---|---|
ConfigurationException |