|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdanger.system.Hardware
public class Hardware
Hardware is a class that represents system peripherals
| Field Summary | |
|---|---|
static int |
DEFAULT_TRACKBALL_SPEED
Default trackball speed. |
static int |
MAX_TRACKBALL_SPEED
Maximum trackball speed. |
static int |
MIN_TRACKBALL_SPEED
Minimum trackball speed. |
| Method Summary | |
|---|---|
static int |
getAbsoluteTime()
Return the number of seconds since boot. |
static int |
getBatteryLevel()
Deprecated. use danger.system.BatteryMonitor |
static int |
getBatteryState()
Deprecated. use danger.system.BatteryMonitor |
static int |
getDate()
Get the date, in seconds since January 1, 2000 12:00am GMT |
static String |
getDeviceID()
Get the device ID. |
static String |
getDeviceIDType()
Get the device ID type. |
static int |
getFlashSize()
XXX: javadoc |
static int |
getHingeRotationCount()
XXX: javadoc |
static int |
getKeyRepeatDelay()
XXX: javadoc |
static int |
getKeyRepeatRate()
XXX: javadoc |
static int |
getLightLevel()
XXX: javadoc |
static int |
getRAMSize()
XXX: javadoc |
static int |
getSystemTime()
return system time in milliseconds -- this may not be directly related to the Date maintained by the realtime clock. |
static boolean |
getTrackballClicksAllowed()
Get whether trackball clicks are allowed |
static int |
getTrackballHorizontalSpeed()
Get the trackball horizontal speed. |
static int |
getTrackballVerticalSpeed()
Get the trackball vertical speed. |
static boolean |
isBacklightOn()
XXX: javadoc |
static boolean |
isBatteryDoorAttached()
Get the state of the battery door |
static boolean |
isHingeOpen()
Determine if the display hinge is open. |
static boolean |
isSIMPresent()
XXX: javadoc |
static boolean |
isUSBOnline()
XXX: javadoc |
static void |
setKeyRepeatDelay(int inDelay)
XXX: javadoc |
static void |
setKeyRepeatRate(int inRate)
XXX: javadoc |
static void |
setLEDHSV(int hue,
int purity,
int brightness)
Set the LED light to the specified color. |
static void |
setLEDRGB(int red,
int green,
int blue)
Set the LED light to the specified color. |
static void |
setTrackballClicksAllowed(boolean allow)
Set whether trackball clicks are allowed |
static void |
setTrackballHorizontalSpeed(int speed)
Set the trackball vertical speed. |
static void |
setTrackballVerticalSpeed(int speed)
Set the trackball vertical speed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MIN_TRACKBALL_SPEED
Minimum trackball speed.
For use with setTrackballHorizontalSpeed(int) and
setTrackballVerticalSpeed(int).
public static final int MAX_TRACKBALL_SPEED
Maximum trackball speed.
For use with setTrackballHorizontalSpeed(int) and
setTrackballVerticalSpeed(int).
public static final int DEFAULT_TRACKBALL_SPEED
Default trackball speed.
For use with setTrackballHorizontalSpeed(int) and
setTrackballVerticalSpeed(int).
| Method Detail |
|---|
public static boolean isBacklightOn()
public static void setLEDHSV(int hue,
int purity,
int brightness)
public static void setLEDRGB(int red,
int green,
int blue)
public static int getDate()
public static int getSystemTime()
public static int getAbsoluteTime()
public static boolean isHingeOpen()
public static int getHingeRotationCount()
public static int getBatteryLevel()
public static int getBatteryState()
public static boolean isBatteryDoorAttached()
public static int getLightLevel()
public static void setTrackballVerticalSpeed(int speed)
speed - a value from MIN_TRACKBALL_SPEED to
MAX_TRACKBALL_SPEED. The default is
DEFAULT_TRACKBALL_SPEED.public static void setTrackballHorizontalSpeed(int speed)
speed - a value from MIN_TRACKBALL_SPEED to
MAX_TRACKBALL_SPEED. The default is
DEFAULT_TRACKBALL_SPEED.public static void setTrackballClicksAllowed(boolean allow)
public static int getTrackballHorizontalSpeed()
public static int getTrackballVerticalSpeed()
public static boolean getTrackballClicksAllowed()
public static String getDeviceID()
public static String getDeviceIDType()
public static boolean isSIMPresent()
public static void setKeyRepeatRate(int inRate)
public static int getKeyRepeatRate()
public static void setKeyRepeatDelay(int inDelay)
public static int getKeyRepeatDelay()
public static boolean isUSBOnline()
public static int getFlashSize()
public static int getRAMSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||