Merge "Moved 5G+ PCO related code to data modules" am: 917356891f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2032904 Change-Id: Ia968bf8070695f8b53a1c14960784cc7bc78c832
This commit is contained in:
@@ -19,6 +19,9 @@ package android.telephony;
|
|||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Contains Carrier-specific (and opaque) Protocol configuration Option
|
* Contains Carrier-specific (and opaque) Protocol configuration Option
|
||||||
* Data. In general this is only passed on to carrier-specific applications
|
* Data. In general this is only passed on to carrier-specific applications
|
||||||
@@ -84,4 +87,22 @@ public class PcoData implements Parcelable {
|
|||||||
return "PcoData(" + cid + ", " + bearerProto + ", " + pcoId + ", contents[" +
|
return "PcoData(" + cid + ", " + bearerProto + ", " + pcoId + ", contents[" +
|
||||||
contents.length + "])";
|
contents.length + "])";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) return true;
|
||||||
|
if (o == null || getClass() != o.getClass()) return false;
|
||||||
|
PcoData pcoData = (PcoData) o;
|
||||||
|
return cid == pcoData.cid
|
||||||
|
&& pcoId == pcoData.pcoId
|
||||||
|
&& Objects.equals(bearerProto, pcoData.bearerProto)
|
||||||
|
&& Arrays.equals(contents, pcoData.contents);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int result = Objects.hash(cid, bearerProto, pcoId);
|
||||||
|
result = 31 * result + Arrays.hashCode(contents);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -253,8 +253,10 @@ public class DataServiceCallback {
|
|||||||
return "RESULT_ERROR_BUSY";
|
return "RESULT_ERROR_BUSY";
|
||||||
case RESULT_ERROR_ILLEGAL_STATE:
|
case RESULT_ERROR_ILLEGAL_STATE:
|
||||||
return "RESULT_ERROR_ILLEGAL_STATE";
|
return "RESULT_ERROR_ILLEGAL_STATE";
|
||||||
|
case RESULT_ERROR_TEMPORARILY_UNAVAILABLE:
|
||||||
|
return "RESULT_ERROR_TEMPORARILY_UNAVAILABLE";
|
||||||
default:
|
default:
|
||||||
return "Missing case for result code=" + resultCode;
|
return "Unknown(" + resultCode + ")";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user