public class HardwareConfig extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEV_HARDWARE_STATE_DISABLED |
static int |
DEV_HARDWARE_STATE_ENABLED
hardware state of the resource.
|
static int |
DEV_HARDWARE_STATE_STANDBY |
static int |
DEV_HARDWARE_TYPE_MODEM
hardware configuration kind.
|
static int |
DEV_HARDWARE_TYPE_SIM |
static int |
DEV_MODEM_RIL_MODEL_MULTIPLE |
static int |
DEV_MODEM_RIL_MODEL_SINGLE
ril attachment model.
|
int |
maxActiveDataCall |
int |
maxActiveVoiceCall |
int |
maxStandby |
String |
modemUuid
DEV_HARDWARE_TYPE_SIM.
|
BitSet |
rat |
int |
rilModel
DEV_HARDWARE_TYPE_MODEM.
|
int |
state |
int |
type
common hardware configuration.
|
String |
uuid |
Constructor and Description |
---|
HardwareConfig(int type)
default constructor.
|
HardwareConfig(String res)
create from a resource string format.
|
Modifier and Type | Method and Description |
---|---|
void |
assignModem(String id,
int state,
int model,
int ratBits,
int maxV,
int maxD,
int maxS) |
void |
assignSim(String id,
int state,
String link) |
int |
compareTo(HardwareConfig hw) |
String |
toString()
Returns a string representation of the object.
|
public static final int DEV_HARDWARE_TYPE_MODEM
public static final int DEV_HARDWARE_TYPE_SIM
public static final int DEV_MODEM_RIL_MODEL_SINGLE
public static final int DEV_MODEM_RIL_MODEL_MULTIPLE
public static final int DEV_HARDWARE_STATE_ENABLED
public static final int DEV_HARDWARE_STATE_STANDBY
public static final int DEV_HARDWARE_STATE_DISABLED
public int type
public String uuid
public int state
public int rilModel
public BitSet rat
public int maxActiveVoiceCall
public int maxActiveDataCall
public int maxStandby
public String modemUuid
public HardwareConfig(int type)
public HardwareConfig(String res)
public void assignModem(String id, int state, int model, int ratBits, int maxV, int maxD, int maxS)
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
public int compareTo(HardwareConfig hw)