diff options
author | Wink Saville <wink@google.com> | 2012-09-21 13:54:05 -0700 |
---|---|---|
committer | Wink Saville <wink@google.com> | 2012-09-21 13:54:05 -0700 |
commit | c6e4917adda19beb780386bcc26b652748b8ab13 (patch) | |
tree | 6f3b20d4ab05afd07392c8ad3d3cb9838b54ecec /telephony/java/android/telephony/CellIdentityGsm.java | |
parent | 4046e012887fff1f36dfd3eddc6f354d4c2497fc (diff) | |
download | frameworks_base-c6e4917adda19beb780386bcc26b652748b8ab13.zip frameworks_base-c6e4917adda19beb780386bcc26b652748b8ab13.tar.gz frameworks_base-c6e4917adda19beb780386bcc26b652748b8ab13.tar.bz2 |
Refactor Cell Location public API.
Bug: 7189651
Change-Id: I173412095a5f7ae6116ee65b5315782f1c0c7688
Diffstat (limited to 'telephony/java/android/telephony/CellIdentityGsm.java')
-rw-r--r-- | telephony/java/android/telephony/CellIdentityGsm.java | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/telephony/java/android/telephony/CellIdentityGsm.java b/telephony/java/android/telephony/CellIdentityGsm.java index dead049..21cb790 100644 --- a/telephony/java/android/telephony/CellIdentityGsm.java +++ b/telephony/java/android/telephony/CellIdentityGsm.java @@ -23,7 +23,7 @@ import android.util.Log; /** * CellIdentity to represent a unique GSM or UMTS cell */ -public final class CellIdentityGsm extends CellIdentity implements Parcelable { +public final class CellIdentityGsm implements Parcelable { private static final String LOG_TAG = "CellIdentityGsm"; private static final boolean DBG = false; @@ -69,7 +69,6 @@ public final class CellIdentityGsm extends CellIdentity implements Parcelable { } private CellIdentityGsm(CellIdentityGsm cid) { - super(cid); mMcc = cid.mMcc; mMnc = cid.mMnc; mLac = cid.mLac; @@ -77,7 +76,6 @@ public final class CellIdentityGsm extends CellIdentity implements Parcelable { mPsc = cid.mPsc; } - @Override CellIdentityGsm copy() { return new CellIdentityGsm(this); } @@ -170,8 +168,6 @@ public final class CellIdentityGsm extends CellIdentity implements Parcelable { @Override public void writeToParcel(Parcel dest, int flags) { if (DBG) log("writeToParcel(Parcel, int): " + toString()); - dest.writeInt(TYPE_GSM); - super.writeToParcel(dest, flags); dest.writeInt(mMcc); dest.writeInt(mMnc); dest.writeInt(mLac); @@ -181,7 +177,6 @@ public final class CellIdentityGsm extends CellIdentity implements Parcelable { /** Construct from Parcel, type has already been processed */ private CellIdentityGsm(Parcel in) { - super(in); mMcc = in.readInt(); mMnc = in.readInt(); mLac = in.readInt(); @@ -196,8 +191,7 @@ public final class CellIdentityGsm extends CellIdentity implements Parcelable { new Creator<CellIdentityGsm>() { @Override public CellIdentityGsm createFromParcel(Parcel in) { - in.readInt(); // Skip past token, we know what it is - return createFromParcelBody(in); + return new CellIdentityGsm(in); } @Override @@ -206,11 +200,6 @@ public final class CellIdentityGsm extends CellIdentity implements Parcelable { } }; - /** @hide */ - static CellIdentityGsm createFromParcelBody(Parcel in) { - return new CellIdentityGsm(in); - } - /** * log */ |