Merge "Added debug message for GetEuiccProfileInfoListResult"
This commit is contained in:
@@ -729,6 +729,25 @@ public abstract class EuiccService extends Service {
|
|||||||
printWriter.println("The connected LPA does not implement EuiccService#dump()");
|
printWriter.println("The connected LPA does not implement EuiccService#dump()");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Result code to string
|
||||||
|
*
|
||||||
|
* @param result The result code.
|
||||||
|
* @return The result code in string format.
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
|
*/
|
||||||
|
public static String resultToString(@Result int result) {
|
||||||
|
switch (result) {
|
||||||
|
case RESULT_OK: return "OK";
|
||||||
|
case RESULT_MUST_DEACTIVATE_SIM : return "MUST_DEACTIVATE_SIM";
|
||||||
|
case RESULT_RESOLVABLE_ERRORS: return "RESOLVABLE_ERRORS";
|
||||||
|
case RESULT_FIRST_USER: return "FIRST_USER";
|
||||||
|
default:
|
||||||
|
return "UNKNOWN(" + result + ")";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wrapper around IEuiccService that forwards calls to implementations of {@link EuiccService}.
|
* Wrapper around IEuiccService that forwards calls to implementations of {@link EuiccService}.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -123,4 +123,16 @@ public final class GetEuiccProfileInfoListResult implements Parcelable {
|
|||||||
public int describeContents() {
|
public int describeContents() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @hide
|
||||||
|
*
|
||||||
|
* @return String representation of {@link GetEuiccProfileInfoListResult}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "[GetEuiccProfileInfoListResult: result=" + EuiccService.resultToString(result)
|
||||||
|
+ ", isRemovable=" + mIsRemovable + ", mProfiles=" + Arrays.toString(mProfiles)
|
||||||
|
+ "]";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user