com.android.sdklib.internal.avd
Class HardwareProperties

java.lang.Object
  extended by com.android.sdklib.internal.avd.HardwareProperties

public class HardwareProperties
extends java.lang.Object


Nested Class Summary
static class HardwareProperties.HardwareProperty
           
static class HardwareProperties.HardwarePropertyType
          Represents the type of a hardware property value.
 
Field Summary
static java.lang.String BOOLEAN_NO
           
static java.lang.String[] BOOLEAN_VALUES
           
static java.lang.String BOOLEAN_YES
           
static java.util.regex.Pattern DISKSIZE_PATTERN
           
static java.lang.String HW_ACCELEROMETER
          AVD/config.ini key indicating whether accelerometer is present.
static java.lang.String HW_AUDIO_INPUT
          AVD/config.ini key indicating whether h/w mic is present.
static java.lang.String HW_BATTERY
          AVD/config.ini key indicating whether the device is running on battery.
static java.lang.String HW_DPAD
          AVD/config.ini key indicating whether dpad is present.
static java.lang.String HW_GPS
          AVD/config.ini key indicating whether gps is present.
static java.lang.String HW_KEYBOARD
          AVD/config.ini key indicating whether qwerty keyboard is present.
static java.lang.String HW_LCD_DENSITY
          AVD/config.ini key for LCD density.
static java.lang.String HW_MAINKEYS
          AVD/config.ini key for whether hardware buttons are present.
static java.lang.String HW_ORIENTATION_SENSOR
          AVD/config.ini key indicating whether gyroscope is present.
static java.lang.String HW_PROXIMITY_SENSOR
          AVD/config.ini key indicating whether proximity sensor present.
static java.lang.String HW_SDCARD
          AVD/config.ini key indicating whether sdcard is present.
static java.lang.String HW_TRACKBALL
          AVD/config.ini key indicating whether trackball is present.
 
Constructor Summary
HardwareProperties()
           
 
Method Summary
static int getBooleanValueIndex(java.lang.String value)
          Returns the index of value in BOOLEAN_VALUES.
static java.util.Map<java.lang.String,HardwareProperties.HardwareProperty> parseHardwareDefinitions(java.io.File file, com.android.utils.ILogger log)
          Parses the hardware definition file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HW_MAINKEYS

public static final java.lang.String HW_MAINKEYS
AVD/config.ini key for whether hardware buttons are present.

See Also:
Constant Field Values

HW_TRACKBALL

public static final java.lang.String HW_TRACKBALL
AVD/config.ini key indicating whether trackball is present.

See Also:
Constant Field Values

HW_KEYBOARD

public static final java.lang.String HW_KEYBOARD
AVD/config.ini key indicating whether qwerty keyboard is present.

See Also:
Constant Field Values

HW_DPAD

public static final java.lang.String HW_DPAD
AVD/config.ini key indicating whether dpad is present.

See Also:
Constant Field Values

HW_GPS

public static final java.lang.String HW_GPS
AVD/config.ini key indicating whether gps is present.

See Also:
Constant Field Values

HW_BATTERY

public static final java.lang.String HW_BATTERY
AVD/config.ini key indicating whether the device is running on battery.

See Also:
Constant Field Values

HW_ACCELEROMETER

public static final java.lang.String HW_ACCELEROMETER
AVD/config.ini key indicating whether accelerometer is present.

See Also:
Constant Field Values

HW_ORIENTATION_SENSOR

public static final java.lang.String HW_ORIENTATION_SENSOR
AVD/config.ini key indicating whether gyroscope is present.

See Also:
Constant Field Values

HW_AUDIO_INPUT

public static final java.lang.String HW_AUDIO_INPUT
AVD/config.ini key indicating whether h/w mic is present.

See Also:
Constant Field Values

HW_SDCARD

public static final java.lang.String HW_SDCARD
AVD/config.ini key indicating whether sdcard is present.

See Also:
Constant Field Values

HW_LCD_DENSITY

public static final java.lang.String HW_LCD_DENSITY
AVD/config.ini key for LCD density.

See Also:
Constant Field Values

HW_PROXIMITY_SENSOR

public static final java.lang.String HW_PROXIMITY_SENSOR
AVD/config.ini key indicating whether proximity sensor present.

See Also:
Constant Field Values

BOOLEAN_YES

public static final java.lang.String BOOLEAN_YES
See Also:
Constant Field Values

BOOLEAN_NO

public static final java.lang.String BOOLEAN_NO
See Also:
Constant Field Values

BOOLEAN_VALUES

public static final java.lang.String[] BOOLEAN_VALUES

DISKSIZE_PATTERN

public static final java.util.regex.Pattern DISKSIZE_PATTERN
Constructor Detail

HardwareProperties

public HardwareProperties()
Method Detail

parseHardwareDefinitions

public static java.util.Map<java.lang.String,HardwareProperties.HardwareProperty> parseHardwareDefinitions(java.io.File file,
                                                                                                           com.android.utils.ILogger log)
Parses the hardware definition file.

Parameters:
file - the property file to parse
log - the ILogger object receiving warning/error from the parsing. Cannot be null.
Returns:
the map of (key,value) pairs, or null if the parsing failed.

getBooleanValueIndex

public static int getBooleanValueIndex(java.lang.String value)
Returns the index of value in BOOLEAN_VALUES.