FileDocCategorySizeDatePackage
CellIdentityLte.javaAPI DocAndroid 5.1 API5423Thu Mar 12 22:22:42 GMT 2015android.telephony

CellIdentityLte

public final class CellIdentityLte extends Object implements android.os.Parcelable
CellIdentity is to represent a unique LTE cell

Fields Summary
private static final String
LOG_TAG
private static final boolean
DBG
private final int
mMcc
private final int
mMnc
private final int
mCi
private final int
mPci
private final int
mTac
public static final Creator
CREATOR
Implement the Parcelable interface
Constructors Summary
public CellIdentityLte()

hide


          
      
        mMcc = Integer.MAX_VALUE;
        mMnc = Integer.MAX_VALUE;
        mCi = Integer.MAX_VALUE;
        mPci = Integer.MAX_VALUE;
        mTac = Integer.MAX_VALUE;
    
private CellIdentityLte(android.os.Parcel in)
Construct from Parcel, type has already been processed

        mMcc = in.readInt();
        mMnc = in.readInt();
        mCi = in.readInt();
        mPci = in.readInt();
        mTac = in.readInt();
        if (DBG) log("CellIdentityLte(Parcel): " + toString());
    
public CellIdentityLte(int mcc, int mnc, int ci, int pci, int tac)

param
mcc 3-digit Mobile Country Code, 0..999
param
mnc 2 or 3-digit Mobile Network Code, 0..999
param
ci 28-bit Cell Identity
param
pci Physical Cell Id 0..503
param
tac 16-bit Tracking Area Code
hide

        mMcc = mcc;
        mMnc = mnc;
        mCi = ci;
        mPci = pci;
        mTac = tac;
    
private CellIdentityLte(CellIdentityLte cid)

        mMcc = cid.mMcc;
        mMnc = cid.mMnc;
        mCi = cid.mCi;
        mPci = cid.mPci;
        mTac = cid.mTac;
    
Methods Summary
android.telephony.CellIdentityLtecopy()

        return new CellIdentityLte(this);
    
public intdescribeContents()
Implement the Parcelable interface

        return 0;
    
public booleanequals(java.lang.Object other)

        if (super.equals(other)) {
            try {
                CellIdentityLte o = (CellIdentityLte)other;
                return mMcc == o.mMcc &&
                        mMnc == o.mMnc &&
                        mCi == o.mCi &&
                        mPci == o.mPci &&
                        mTac == o.mTac;
            } catch (ClassCastException e) {
                return false;
            }
        } else {
            return false;
        }
    
public intgetCi()

return
28-bit Cell Identity, Integer.MAX_VALUE if unknown

        return mCi;
    
public intgetMcc()

return
3-digit Mobile Country Code, 0..999, Integer.MAX_VALUE if unknown

        return mMcc;
    
public intgetMnc()

return
2 or 3-digit Mobile Network Code, 0..999, Integer.MAX_VALUE if unknown

        return mMnc;
    
public intgetPci()

return
Physical Cell Id 0..503, Integer.MAX_VALUE if unknown

        return mPci;
    
public intgetTac()

return
16-bit Tracking Area Code, Integer.MAX_VALUE if unknown

        return mTac;
    
public inthashCode()

        int primeNum = 31;
        return (mMcc * primeNum) + (mMnc * primeNum) + (mCi * primeNum) + (mPci * primeNum) +
                (mTac * primeNum);
    
private static voidlog(java.lang.String s)
log


          
         
        Rlog.w(LOG_TAG, s);
    
public java.lang.StringtoString()

        StringBuilder sb = new StringBuilder("CellIdentityLte:{");
        sb.append(" mMcc="); sb.append(mMcc);
        sb.append(" mMnc="); sb.append(mMnc);
        sb.append(" mCi="); sb.append(mCi);
        sb.append(" mPci="); sb.append(mPci);
        sb.append(" mTac="); sb.append(mTac);
        sb.append("}");

        return sb.toString();
    
public voidwriteToParcel(android.os.Parcel dest, int flags)
Implement the Parcelable interface

        if (DBG) log("writeToParcel(Parcel, int): " + toString());
        dest.writeInt(mMcc);
        dest.writeInt(mMnc);
        dest.writeInt(mCi);
        dest.writeInt(mPci);
        dest.writeInt(mTac);