com.android.ide.common.resources.configuration
Class DeviceConfigHelper

java.lang.Object
  extended by com.android.ide.common.resources.configuration.DeviceConfigHelper

public class DeviceConfigHelper
extends java.lang.Object


Constructor Summary
DeviceConfigHelper()
           
 
Method Summary
static FolderConfiguration getFolderConfig(com.android.sdklib.devices.Device d)
          Returns a FolderConfiguration based on the default State for the given Device.
static FolderConfiguration getFolderConfig(com.android.sdklib.devices.Device d, java.lang.String stateName)
          Returns a FolderConfiguration based on the State given by the Device and the state name.
static FolderConfiguration getFolderConfig(com.android.sdklib.devices.State state)
          Returns a FolderConfiguration based on the given state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceConfigHelper

public DeviceConfigHelper()
Method Detail

getFolderConfig

@Nullable
public static FolderConfiguration getFolderConfig(@Nullable
                                                           com.android.sdklib.devices.State state)
Returns a FolderConfiguration based on the given state

Parameters:
state - The State of the Device to base the FolderConfiguration on. Can be null.
Returns:
A FolderConfiguration based on the given State. If the given State is null, the result is also null;

getFolderConfig

@Nullable
public static FolderConfiguration getFolderConfig(com.android.sdklib.devices.Device d,
                                                           java.lang.String stateName)
Returns a FolderConfiguration based on the State given by the Device and the state name.

Parameters:
d - The Device to base the FolderConfiguration on.
stateName - The name of the state to base the FolderConfiguration on.
Returns:
The FolderConfiguration based on the determined State. If there is no State with the given state name for the given device, null is returned.

getFolderConfig

public static FolderConfiguration getFolderConfig(com.android.sdklib.devices.Device d)
Returns a FolderConfiguration based on the default State for the given Device.

Parameters:
d - The Device to generate the FolderConfiguration from.
Returns:
A FolderConfiguration based on the default State for the given Device