|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.sdklib.devices.Device
public final class Device
Instances of this class contain the specifications for a device. Use the
Device.Builder
class to construct a Device object, or the
DeviceParser
if constructing device objects from XML conforming to
the DeviceSchema
standards.
Nested Class Summary | |
---|---|
static class |
Device.Builder
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.util.List<Software> |
getAllSoftware()
Returns all of the Software configurations of the Device . |
java.util.List<State> |
getAllStates()
Returns all of the State s the Device can be in. |
java.util.Map<java.lang.String,java.lang.String> |
getBootProps()
Returns the optional boot.props of the device. |
Hardware |
getDefaultHardware()
Returns the default Hardware configuration for the device. |
State |
getDefaultState()
Returns the default State of the Device . |
static java.util.Comparator<Device> |
getDisplayComparator()
Returns a comparator suitable to sort a device list using a sort-aware display name. |
java.lang.String |
getDisplayName()
Returns the user visible name of the Device . |
java.lang.String |
getId()
Returns the id of the Device . |
java.lang.String |
getManufacturer()
Returns the manufacturer of the Device . |
Meta |
getMeta()
Returns the Meta object for the device, which contains meta
information about the device, such as the location of icons. |
java.lang.String |
getName()
Deprecated. Use getId() or getDisplayName() instead based on whether
a stable identifier or a user visible name is needed |
java.awt.Dimension |
getScreenSize(com.android.resources.ScreenOrientation orientation)
|
Software |
getSoftware(int apiVersion)
Returns the software configuration for the given API version. |
State |
getState(java.lang.String name)
Returns the state of the device with the given name. |
java.lang.String |
getTagId()
Returns the optional tag-id of the device. |
int |
hashCode()
For *internal* usage only. |
java.lang.String |
toString()
toString value suitable for debugging only. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
@NonNull @Deprecated public java.lang.String getName()
getId()
or getDisplayName()
instead based on whether
a stable identifier or a user visible name is needed
Device
. This is intended to be displayed by the user and
can vary over time. For a stable internal name of the device, use getId()
instead.
Device
.@NonNull public java.lang.String getDisplayName()
Device
. This is intended to be displayed by the
user and can vary over time. For a stable internal name of the device, use getId()
instead.
Device
.@NonNull public java.lang.String getId()
Device
.
Device
.@NonNull public java.lang.String getManufacturer()
Device
.
Device
.@NonNull public java.util.List<Software> getAllSoftware()
Software
configurations of the Device
.
Software
configurations.@NonNull public java.util.List<State> getAllStates()
State
s the Device
can be in.
State
s.@NonNull public Hardware getDefaultHardware()
Hardware
configuration for the device. This
is really just a shortcut for getting the Hardware
on the default
State
Hardware
for the device.@NonNull public Meta getMeta()
Meta
object for the device, which contains meta
information about the device, such as the location of icons.
Meta
object for the Device
.@NonNull public State getDefaultState()
State
of the Device
.
State
of the Device
.@Nullable public Software getSoftware(int apiVersion)
apiVersion
- The API version requested.
@Nullable public State getState(java.lang.String name)
name
- The name of the state requested.
@Nullable public java.awt.Dimension getScreenSize(@NonNull com.android.resources.ScreenOrientation orientation)
@Nullable public java.lang.String getTagId()
public java.util.Map<java.lang.String,java.lang.String> getBootProps()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static java.util.Comparator<Device> getDisplayComparator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |