Methods Summary |
---|
public int | describeContents()Implement the Parcelable interface.
return 0;
|
public int | getPhoneId()Get phone ID.
return mPhoneId;
|
public int | getRadioAccessFamily()get radio access family.
return mRadioAccessFamily;
|
public static int | getRafFromNetworkType(int type)
final int GSM = RAF_GSM | RAF_GPRS | RAF_EDGE;
final int HS = RAF_HSUPA | RAF_HSDPA | RAF_HSPA | RAF_HSPAP;
final int CDMA = RAF_IS95A | RAF_IS95B | RAF_1xRTT;
final int EVDO = RAF_EVDO_0 | RAF_EVDO_A | RAF_EVDO_B;
final int WCDMA = HS | RAF_UMTS;
int raf;
switch (type) {
case RILConstants.NETWORK_MODE_WCDMA_PREF:
raf = GSM | WCDMA;
break;
case RILConstants.NETWORK_MODE_GSM_ONLY:
raf = GSM;
break;
case RILConstants.NETWORK_MODE_WCDMA_ONLY:
raf = WCDMA;
break;
case RILConstants.NETWORK_MODE_GSM_UMTS:
raf = GSM | WCDMA;
break;
case RILConstants.NETWORK_MODE_CDMA:
raf = CDMA;
break;
case RILConstants.NETWORK_MODE_LTE_CDMA_EVDO:
raf = RAF_LTE | CDMA | EVDO;
break;
case RILConstants.NETWORK_MODE_LTE_GSM_WCDMA:
raf = RAF_LTE | GSM | WCDMA;
break;
case RILConstants.NETWORK_MODE_LTE_CDMA_EVDO_GSM_WCDMA:
raf = RAF_LTE | CDMA | EVDO | GSM | WCDMA;
break;
case RILConstants.NETWORK_MODE_LTE_ONLY:
raf = RAF_LTE;
break;
case RILConstants.NETWORK_MODE_LTE_WCDMA:
raf = RAF_LTE | WCDMA;
break;
case RILConstants.NETWORK_MODE_CDMA_NO_EVDO:
raf = CDMA;
break;
case RILConstants.NETWORK_MODE_EVDO_NO_CDMA:
raf = EVDO;
break;
case RILConstants.NETWORK_MODE_GLOBAL:
raf = GSM | WCDMA | CDMA | EVDO;
break;
default:
raf = RAF_UNKNOWN;
break;
}
return raf;
|
public java.lang.String | toString()
String ret = "{ mPhoneId = " + mPhoneId
+ ", mRadioAccessFamily = " + mRadioAccessFamily
+ "}";
return ret;
|
public void | writeToParcel(android.os.Parcel outParcel, int flags)Implement the Parcelable interface.
outParcel.writeInt(mPhoneId);
outParcel.writeInt(mRadioAccessFamily);
|