Previous fail cause returns integer array. New fail cuase returns integer and
string. RIL framework uses just integer as causeCode.
To support backward compatibility, returns integer instead of integer array
as causeCode.
Bug:
22204818
Change-Id: I77ca55d99a44d129cf401743c34c03754f38dde2
}
if (responselen == sizeof(int)) {
- return responseInts(p, response, responselen);
+ startResponse;
+ int *p_int = (int *) response;
+ appendPrintBuf("%s%d,", printBuf, p_int[0]);
+ p.writeInt32(p_int[0]);
+ removeLastChar;
+ closeResponse;
} else if (responselen == sizeof(RIL_LastCallFailCauseInfo)) {
startResponse;
RIL_LastCallFailCauseInfo *p_fail_cause_info = (RIL_LastCallFailCauseInfo *) response;