summaryrefslogtreecommitdiffstats
path: root/telephony/java/android/telephony/CellIdentityCdma.java
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2012-09-23 15:44:29 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-09-23 15:44:30 -0700
commit8a06969d5be623d4efd3bdf2c3ecddcde557eca7 (patch)
treee48fdf6416a48036a4cd8ab5e528d9af63b564fa /telephony/java/android/telephony/CellIdentityCdma.java
parent335fff3fc99269e656446bbe700cca56079e1379 (diff)
parentc6e4917adda19beb780386bcc26b652748b8ab13 (diff)
downloadframeworks_base-8a06969d5be623d4efd3bdf2c3ecddcde557eca7.zip
frameworks_base-8a06969d5be623d4efd3bdf2c3ecddcde557eca7.tar.gz
frameworks_base-8a06969d5be623d4efd3bdf2c3ecddcde557eca7.tar.bz2
Merge "Refactor Cell Location public API." into jb-mr1-dev
Diffstat (limited to 'telephony/java/android/telephony/CellIdentityCdma.java')
-rw-r--r--telephony/java/android/telephony/CellIdentityCdma.java15
1 files changed, 2 insertions, 13 deletions
diff --git a/telephony/java/android/telephony/CellIdentityCdma.java b/telephony/java/android/telephony/CellIdentityCdma.java
index fccf98c..9579b91 100644
--- a/telephony/java/android/telephony/CellIdentityCdma.java
+++ b/telephony/java/android/telephony/CellIdentityCdma.java
@@ -23,7 +23,7 @@ import android.util.Log;
/**
* CellIdentity is to represent a unique CDMA cell
*/
-public final class CellIdentityCdma extends CellIdentity implements Parcelable {
+public final class CellIdentityCdma implements Parcelable {
private static final String LOG_TAG = "CellSignalStrengthCdma";
private static final boolean DBG = false;
@@ -81,7 +81,6 @@ public final class CellIdentityCdma extends CellIdentity implements Parcelable {
}
private CellIdentityCdma(CellIdentityCdma cid) {
- super(cid);
mNetworkId = cid.mNetworkId;
mSystemId = cid.mSystemId;
mBasestationId = cid.mBasestationId;
@@ -89,7 +88,6 @@ public final class CellIdentityCdma extends CellIdentity implements Parcelable {
mLatitude = cid.mLatitude;
}
- @Override
CellIdentityCdma copy() {
return new CellIdentityCdma(this);
}
@@ -185,8 +183,6 @@ public final class CellIdentityCdma extends CellIdentity implements Parcelable {
@Override
public void writeToParcel(Parcel dest, int flags) {
if (DBG) log("writeToParcel(Parcel, int): " + toString());
- dest.writeInt(TYPE_CDMA);
- super.writeToParcel(dest, flags);
dest.writeInt(mNetworkId);
dest.writeInt(mSystemId);
dest.writeInt(mBasestationId);
@@ -196,7 +192,6 @@ public final class CellIdentityCdma extends CellIdentity implements Parcelable {
/** Construct from Parcel, type has already been processed */
private CellIdentityCdma(Parcel in) {
- super(in);
mNetworkId = in.readInt();
mSystemId = in.readInt();
mBasestationId = in.readInt();
@@ -211,8 +206,7 @@ public final class CellIdentityCdma extends CellIdentity implements Parcelable {
new Creator<CellIdentityCdma>() {
@Override
public CellIdentityCdma createFromParcel(Parcel in) {
- in.readInt(); // Skip past token, we know what it is
- return createFromParcelBody(in);
+ return new CellIdentityCdma(in);
}
@Override
@@ -221,11 +215,6 @@ public final class CellIdentityCdma extends CellIdentity implements Parcelable {
}
};
- /** @hide */
- static CellIdentityCdma createFromParcelBody(Parcel in) {
- return new CellIdentityCdma(in);
- }
-
/**
* log
*/