public class RadioAccessFamily extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<RadioAccessFamily> |
CREATOR
Implement the Parcelable interface.
|
static int |
RAF_1xRTT |
static int |
RAF_EDGE |
static int |
RAF_EHRPD |
static int |
RAF_EVDO_0 |
static int |
RAF_EVDO_A |
static int |
RAF_EVDO_B |
static int |
RAF_GPRS |
static int |
RAF_GSM |
static int |
RAF_HSDPA |
static int |
RAF_HSPA |
static int |
RAF_HSPAP |
static int |
RAF_HSUPA |
static int |
RAF_IS95A |
static int |
RAF_IS95B |
static int |
RAF_LTE |
static int |
RAF_LTE_CA |
static int |
RAF_TD_SCDMA |
static int |
RAF_UMTS |
static int |
RAF_UNKNOWN |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
RadioAccessFamily(int phoneId,
int radioAccessFamily)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Implement the Parcelable interface.
|
static int |
getHighestRafCapability(int raf)
Returns the highest capability of the RadioAccessFamily (4G > 3G > 2G).
|
static int |
getNetworkTypeFromRaf(int raf) |
int |
getPhoneId()
Get phone ID.
|
int |
getRadioAccessFamily()
get radio access family.
|
static int |
getRafFromNetworkType(int type) |
static int |
rafTypeFromString(String rafList) |
static int |
singleRafTypeFromString(String rafString) |
String |
toString()
Returns a string representation of the object.
|
void |
writeToParcel(Parcel outParcel,
int flags)
Implement the Parcelable interface.
|
public static final int RAF_UNKNOWN
public static final int RAF_GSM
public static final int RAF_GPRS
public static final int RAF_EDGE
public static final int RAF_IS95A
public static final int RAF_IS95B
public static final int RAF_1xRTT
public static final int RAF_EVDO_0
public static final int RAF_EVDO_A
public static final int RAF_EVDO_B
public static final int RAF_EHRPD
public static final int RAF_HSUPA
public static final int RAF_HSDPA
public static final int RAF_HSPA
public static final int RAF_HSPAP
public static final int RAF_UMTS
public static final int RAF_TD_SCDMA
public static final int RAF_LTE
public static final int RAF_LTE_CA
public static final Parcelable.Creator<RadioAccessFamily> CREATOR
public RadioAccessFamily(int phoneId, int radioAccessFamily)
phoneId
- the phone IDradioAccessFamily
- the phone radio access family defined
in RadioAccessFamily. It's a bit mask value to represent
the support type.public int getPhoneId()
public int getRadioAccessFamily()
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 describeContents()
describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR
public void writeToParcel(Parcel outParcel, int flags)
writeToParcel
in interface Parcelable
outParcel
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.public static int getRafFromNetworkType(int type)
public static int getHighestRafCapability(int raf)
raf
- The RadioAccessFamily that we wish to filterpublic static int getNetworkTypeFromRaf(int raf)
public static int singleRafTypeFromString(String rafString)
public static int rafTypeFromString(String rafList)