Merge "Improved data fail cause debug message" am: 78f46dd41e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2091481 Change-Id: I014c183887231d085a533dddc37772ae02f97ec0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1661,8 +1661,8 @@ public final class DataFailCause {
|
|||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
public static String toString(@DataFailureCause int dataFailCause) {
|
public static String toString(@DataFailureCause int dataFailCause) {
|
||||||
int cause = getFailCause(dataFailCause);
|
return sFailCauseMap.getOrDefault(dataFailCause, "UNKNOWN") + "(0x"
|
||||||
return (cause == UNKNOWN) ? "UNKNOWN(" + dataFailCause + ")" : sFailCauseMap.get(cause);
|
+ Integer.toHexString(dataFailCause) + ")";
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
|
|||||||
@@ -428,7 +428,7 @@ public final class DataCallResponse implements Parcelable {
|
|||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuffer sb = new StringBuffer();
|
StringBuffer sb = new StringBuffer();
|
||||||
sb.append("DataCallResponse: {")
|
sb.append("DataCallResponse: {")
|
||||||
.append(" cause=").append(mCause)
|
.append(" cause=").append(DataFailCause.toString(mCause))
|
||||||
.append(" retry=").append(mSuggestedRetryTime)
|
.append(" retry=").append(mSuggestedRetryTime)
|
||||||
.append(" cid=").append(mId)
|
.append(" cid=").append(mId)
|
||||||
.append(" linkStatus=").append(mLinkStatus)
|
.append(" linkStatus=").append(mLinkStatus)
|
||||||
|
|||||||
Reference in New Issue
Block a user