Loading src/java/com/android/internal/telephony/RadioResponse.java +216 −244 Original line number Diff line number Diff line Loading @@ -1107,11 +1107,9 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { RadioCapability ret = null; if (responseInfo.error == RadioError.NONE) { ret = RIL.convertHalRadioCapability(rc, mRil); } else if (responseInfo.error == RadioError.REQUEST_NOT_SUPPORTED || responseInfo.error == RadioError.GENERIC_FAILURE) { RadioCapability ret = RIL.convertHalRadioCapability(rc, mRil); if (responseInfo.error == RadioError.REQUEST_NOT_SUPPORTED || responseInfo.error == RadioError.GENERIC_FAILURE) { // we should construct the RAF bitmask the radio // supports based on preferred network bitmasks ret = mRil.makeStaticRadioCapability(); Loading Loading @@ -1239,8 +1237,6 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { Object ret = null; if (responseInfo.error == RadioError.NONE) { IccCardStatus iccCardStatus = new IccCardStatus(); iccCardStatus.setCardState(cardStatus.cardState); iccCardStatus.setUniversalPinState(cardStatus.universalPinState); Loading Loading @@ -1271,10 +1267,10 @@ public class RadioResponse extends IRadioResponse.Stub { iccCardStatus.mApplications[i] = appStatus; } mRil.riljLog("responseIccCardStatus: from HIDL: " + iccCardStatus); ret = iccCardStatus; sendMessageResponse(rr.mResult, ret); if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, iccCardStatus); } mRil.processResponseDone(rr, responseInfo, ret); mRil.processResponseDone(rr, responseInfo, iccCardStatus); } } Loading @@ -1290,13 +1286,11 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { Object ret = null; if (responseInfo.error == RadioError.NONE) { int[] response = new int[var.size()]; int[] ret = new int[var.size()]; for (int i = 0; i < var.size(); i++) { response[i] = var.get(i); ret[i] = var.get(i); } ret = response; if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1308,15 +1302,10 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { Object ret = null; if (responseInfo.error == RadioError.NONE) { int num; ArrayList<DriverCall> dcCalls; int num = calls.size(); ArrayList<DriverCall> dcCalls = new ArrayList<DriverCall>(num); DriverCall dc; num = calls.size(); dcCalls = new ArrayList<DriverCall>(num); for (int i = 0; i < num; i++) { dc = new DriverCall(); // TODO: change name of function stateFromCLCC() in DriverCall.java to name Loading Loading @@ -1380,10 +1369,10 @@ public class RadioResponse extends IRadioResponse.Stub { } } ret = dcCalls; sendMessageResponse(rr.mResult, ret); if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, dcCalls); } mRil.processResponseDone(rr, responseInfo, ret); mRil.processResponseDone(rr, responseInfo, dcCalls); } } Loading @@ -1403,12 +1392,10 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { String ret = null; if (responseInfo.error == RadioError.NONE) { ret = str; sendMessageResponse(rr.mResult, ret); sendMessageResponse(rr.mResult, str); } mRil.processResponseDone(rr, responseInfo, ret); mRil.processResponseDone(rr, responseInfo, str); } } Loading @@ -1425,12 +1412,11 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = ril.processResponse(responseInfo); if (rr != null) { String[] ret = null; if (responseInfo.error == RadioError.NONE) { ret = new String[strings.size()]; String[] ret = new String[strings.size()]; for (int i = 0; i < strings.size(); i++) { ret[i] = strings.get(i); } if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, ret); } ril.processResponseDone(rr, responseInfo, ret); Loading @@ -1442,11 +1428,10 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { LastCallFailCause ret = null; if (responseInfo.error == RadioError.NONE) { ret = new LastCallFailCause(); LastCallFailCause ret = new LastCallFailCause(); ret.causeCode = fcInfo.causeCode; ret.vendorCause = fcInfo.vendorCause; if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1458,9 +1443,8 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { SignalStrength ret = null; SignalStrength ret = RIL.convertHalSignalStrength(sigStrength); if (responseInfo.error == RadioError.NONE) { ret = RIL.convertHalSignalStrength(sigStrength); sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1471,9 +1455,8 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { SmsResponse ret = null; SmsResponse ret = new SmsResponse(sms.messageRef, sms.ackPDU, sms.errorCode); if (responseInfo.error == RadioError.NONE) { ret = new SmsResponse(sms.messageRef, sms.ackPDU, sms.errorCode); sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1498,9 +1481,8 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { IccIoResult ret = null; IccIoResult ret = new IccIoResult(result.sw1, result.sw2, result.simResponse); if (responseInfo.error == RadioError.NONE) { ret = new IccIoResult(result.sw1, result.sw2, result.simResponse); sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1512,9 +1494,7 @@ public class RadioResponse extends IRadioResponse.Stub { callForwardInfos) { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { CallForwardInfo[] ret = null; if (responseInfo.error == RadioError.NONE) { ret = new CallForwardInfo[callForwardInfos.size()]; CallForwardInfo[] ret = new CallForwardInfo[callForwardInfos.size()]; for (int i = 0; i < callForwardInfos.size(); i++) { ret[i] = new CallForwardInfo(); ret[i].status = callForwardInfos.get(i).status; Loading @@ -1524,6 +1504,7 @@ public class RadioResponse extends IRadioResponse.Stub { ret[i].number = callForwardInfos.get(i).number; ret[i].timeSeconds = callForwardInfos.get(i).timeSeconds; } if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1550,14 +1531,13 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { ArrayList<OperatorInfo> ret = null; if (responseInfo.error == RadioError.NONE) { ret = new ArrayList<OperatorInfo>(); ArrayList<OperatorInfo> ret = new ArrayList<OperatorInfo>(); for (int i = 0; i < networkInfos.size(); i++) { ret.add(new OperatorInfo(networkInfos.get(i).alphaLong, networkInfos.get(i).alphaShort, networkInfos.get(i).operatorNumeric, convertOpertatorInfoToString(networkInfos.get(i).status))); } if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1583,12 +1563,11 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { ArrayList<DataCallResponse> dcResponseList = null; if (responseInfo.error == RadioError.NONE) { dcResponseList = new ArrayList<>(); ArrayList<DataCallResponse> dcResponseList = new ArrayList<>(); for (SetupDataCallResult dcResult : dataCallResultList) { dcResponseList.add(RIL.convertDataCallResult(dcResult)); } if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, dcResponseList); } mRil.processResponseDone(rr, responseInfo, dcResponseList); Loading @@ -1602,12 +1581,9 @@ public class RadioResponse extends IRadioResponse.Stub { if (rr != null) { int rssi; String location; ArrayList<NeighboringCellInfo> ret = null; ArrayList<NeighboringCellInfo> ret = new ArrayList<NeighboringCellInfo>(); NeighboringCellInfo cell; if (responseInfo.error == RadioError.NONE) { ret = new ArrayList<NeighboringCellInfo>(); int[] subId = SubscriptionManager.getSubId(mRil.mPhoneId); int radioType = ((TelephonyManager) mRil.mContext.getSystemService( Loading @@ -1621,6 +1597,7 @@ public class RadioResponse extends IRadioResponse.Stub { ret.add(cell); } } if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1632,14 +1609,13 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { ArrayList<SmsBroadcastConfigInfo> ret = null; if (responseInfo.error == RadioError.NONE) { ret = new ArrayList<SmsBroadcastConfigInfo>(); ArrayList<SmsBroadcastConfigInfo> ret = new ArrayList<SmsBroadcastConfigInfo>(); for (int i = 0; i < configs.size(); i++) { ret.add(new SmsBroadcastConfigInfo(configs.get(i).fromServiceId, configs.get(i).toServiceId, configs.get(i).fromCodeScheme, configs.get(i).toCodeScheme, configs.get(i).selected)); } if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1653,7 +1629,6 @@ public class RadioResponse extends IRadioResponse.Stub { if (rr != null) { int[] ret = null; if (responseInfo.error == RadioError.NONE) { int numServiceCategories = configs.size(); if (numServiceCategories == 0) { Loading Loading @@ -1688,6 +1663,7 @@ public class RadioResponse extends IRadioResponse.Stub { ret[i + 2] = configs.get(j).selected ? 1 : 0; } } if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1699,9 +1675,8 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { ArrayList<CellInfo> ret = null; ArrayList<CellInfo> ret = RIL.convertHalCellInfoList(cellInfo); if (responseInfo.error == RadioError.NONE) { ret = RIL.convertHalCellInfoList(cellInfo); sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading Loading @@ -1740,9 +1715,8 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { ArrayList<HardwareConfig> ret = null; ArrayList<HardwareConfig> ret = RIL.convertHalHwConfigList(config, mRil); if (responseInfo.error == RadioError.NONE) { ret = RIL.convertHalHwConfigList(config, mRil); sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1754,11 +1728,13 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { IccIoResult ret = null; if (responseInfo.error == RadioError.NONE) { ret = new IccIoResult(result.sw1, result.sw2, (!(result.simResponse).equals("")) IccIoResult ret = new IccIoResult( result.sw1, result.sw2, (!(result.simResponse).equals("")) ? android.util.Base64.decode(result.simResponse, android.util.Base64.DEFAULT) : (byte[]) null); if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1770,9 +1746,8 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { RadioCapability ret = null; RadioCapability ret = RIL.convertHalRadioCapability(rc, mRil); if (responseInfo.error == RadioError.NONE) { ret = RIL.convertHalRadioCapability(rc, mRil); sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1783,11 +1758,10 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { ArrayList<Integer> ret = null; if (responseInfo.error == RadioError.NONE) { ret = new ArrayList<Integer>(); ArrayList<Integer> ret = new ArrayList<Integer>(); ret.add(statusInfo.lceStatus); ret.add((int) statusInfo.actualIntervalMs); if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1798,9 +1772,8 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { ArrayList<Integer> ret = null; ArrayList<Integer> ret = RIL.convertHalLceData(lceInfo, mRil); if (responseInfo.error == RadioError.NONE) { ret = RIL.convertHalLceData(lceInfo, mRil); sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1812,9 +1785,7 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { List<CarrierIdentifier> ret = null; if (responseInfo.error == RadioError.NONE) { ret = new ArrayList<CarrierIdentifier>(); List<CarrierIdentifier> ret = new ArrayList<CarrierIdentifier>(); for (int i = 0; i < carriers.allowedCarriers.size(); i++) { String mcc = carriers.allowedCarriers.get(i).mcc; String mnc = carriers.allowedCarriers.get(i).mnc; Loading @@ -1832,6 +1803,7 @@ public class RadioResponse extends IRadioResponse.Stub { } ret.add(new CarrierIdentifier(mcc, mnc, spn, imsi, gid1, gid2)); } if (responseInfo.error == RadioError.NONE) { /* TODO: Handle excluded carriers */ sendMessageResponse(rr.mResult, ret); } Loading Loading
src/java/com/android/internal/telephony/RadioResponse.java +216 −244 Original line number Diff line number Diff line Loading @@ -1107,11 +1107,9 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { RadioCapability ret = null; if (responseInfo.error == RadioError.NONE) { ret = RIL.convertHalRadioCapability(rc, mRil); } else if (responseInfo.error == RadioError.REQUEST_NOT_SUPPORTED || responseInfo.error == RadioError.GENERIC_FAILURE) { RadioCapability ret = RIL.convertHalRadioCapability(rc, mRil); if (responseInfo.error == RadioError.REQUEST_NOT_SUPPORTED || responseInfo.error == RadioError.GENERIC_FAILURE) { // we should construct the RAF bitmask the radio // supports based on preferred network bitmasks ret = mRil.makeStaticRadioCapability(); Loading Loading @@ -1239,8 +1237,6 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { Object ret = null; if (responseInfo.error == RadioError.NONE) { IccCardStatus iccCardStatus = new IccCardStatus(); iccCardStatus.setCardState(cardStatus.cardState); iccCardStatus.setUniversalPinState(cardStatus.universalPinState); Loading Loading @@ -1271,10 +1267,10 @@ public class RadioResponse extends IRadioResponse.Stub { iccCardStatus.mApplications[i] = appStatus; } mRil.riljLog("responseIccCardStatus: from HIDL: " + iccCardStatus); ret = iccCardStatus; sendMessageResponse(rr.mResult, ret); if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, iccCardStatus); } mRil.processResponseDone(rr, responseInfo, ret); mRil.processResponseDone(rr, responseInfo, iccCardStatus); } } Loading @@ -1290,13 +1286,11 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { Object ret = null; if (responseInfo.error == RadioError.NONE) { int[] response = new int[var.size()]; int[] ret = new int[var.size()]; for (int i = 0; i < var.size(); i++) { response[i] = var.get(i); ret[i] = var.get(i); } ret = response; if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1308,15 +1302,10 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { Object ret = null; if (responseInfo.error == RadioError.NONE) { int num; ArrayList<DriverCall> dcCalls; int num = calls.size(); ArrayList<DriverCall> dcCalls = new ArrayList<DriverCall>(num); DriverCall dc; num = calls.size(); dcCalls = new ArrayList<DriverCall>(num); for (int i = 0; i < num; i++) { dc = new DriverCall(); // TODO: change name of function stateFromCLCC() in DriverCall.java to name Loading Loading @@ -1380,10 +1369,10 @@ public class RadioResponse extends IRadioResponse.Stub { } } ret = dcCalls; sendMessageResponse(rr.mResult, ret); if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, dcCalls); } mRil.processResponseDone(rr, responseInfo, ret); mRil.processResponseDone(rr, responseInfo, dcCalls); } } Loading @@ -1403,12 +1392,10 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { String ret = null; if (responseInfo.error == RadioError.NONE) { ret = str; sendMessageResponse(rr.mResult, ret); sendMessageResponse(rr.mResult, str); } mRil.processResponseDone(rr, responseInfo, ret); mRil.processResponseDone(rr, responseInfo, str); } } Loading @@ -1425,12 +1412,11 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = ril.processResponse(responseInfo); if (rr != null) { String[] ret = null; if (responseInfo.error == RadioError.NONE) { ret = new String[strings.size()]; String[] ret = new String[strings.size()]; for (int i = 0; i < strings.size(); i++) { ret[i] = strings.get(i); } if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, ret); } ril.processResponseDone(rr, responseInfo, ret); Loading @@ -1442,11 +1428,10 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { LastCallFailCause ret = null; if (responseInfo.error == RadioError.NONE) { ret = new LastCallFailCause(); LastCallFailCause ret = new LastCallFailCause(); ret.causeCode = fcInfo.causeCode; ret.vendorCause = fcInfo.vendorCause; if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1458,9 +1443,8 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { SignalStrength ret = null; SignalStrength ret = RIL.convertHalSignalStrength(sigStrength); if (responseInfo.error == RadioError.NONE) { ret = RIL.convertHalSignalStrength(sigStrength); sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1471,9 +1455,8 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { SmsResponse ret = null; SmsResponse ret = new SmsResponse(sms.messageRef, sms.ackPDU, sms.errorCode); if (responseInfo.error == RadioError.NONE) { ret = new SmsResponse(sms.messageRef, sms.ackPDU, sms.errorCode); sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1498,9 +1481,8 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { IccIoResult ret = null; IccIoResult ret = new IccIoResult(result.sw1, result.sw2, result.simResponse); if (responseInfo.error == RadioError.NONE) { ret = new IccIoResult(result.sw1, result.sw2, result.simResponse); sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1512,9 +1494,7 @@ public class RadioResponse extends IRadioResponse.Stub { callForwardInfos) { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { CallForwardInfo[] ret = null; if (responseInfo.error == RadioError.NONE) { ret = new CallForwardInfo[callForwardInfos.size()]; CallForwardInfo[] ret = new CallForwardInfo[callForwardInfos.size()]; for (int i = 0; i < callForwardInfos.size(); i++) { ret[i] = new CallForwardInfo(); ret[i].status = callForwardInfos.get(i).status; Loading @@ -1524,6 +1504,7 @@ public class RadioResponse extends IRadioResponse.Stub { ret[i].number = callForwardInfos.get(i).number; ret[i].timeSeconds = callForwardInfos.get(i).timeSeconds; } if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1550,14 +1531,13 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { ArrayList<OperatorInfo> ret = null; if (responseInfo.error == RadioError.NONE) { ret = new ArrayList<OperatorInfo>(); ArrayList<OperatorInfo> ret = new ArrayList<OperatorInfo>(); for (int i = 0; i < networkInfos.size(); i++) { ret.add(new OperatorInfo(networkInfos.get(i).alphaLong, networkInfos.get(i).alphaShort, networkInfos.get(i).operatorNumeric, convertOpertatorInfoToString(networkInfos.get(i).status))); } if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1583,12 +1563,11 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { ArrayList<DataCallResponse> dcResponseList = null; if (responseInfo.error == RadioError.NONE) { dcResponseList = new ArrayList<>(); ArrayList<DataCallResponse> dcResponseList = new ArrayList<>(); for (SetupDataCallResult dcResult : dataCallResultList) { dcResponseList.add(RIL.convertDataCallResult(dcResult)); } if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, dcResponseList); } mRil.processResponseDone(rr, responseInfo, dcResponseList); Loading @@ -1602,12 +1581,9 @@ public class RadioResponse extends IRadioResponse.Stub { if (rr != null) { int rssi; String location; ArrayList<NeighboringCellInfo> ret = null; ArrayList<NeighboringCellInfo> ret = new ArrayList<NeighboringCellInfo>(); NeighboringCellInfo cell; if (responseInfo.error == RadioError.NONE) { ret = new ArrayList<NeighboringCellInfo>(); int[] subId = SubscriptionManager.getSubId(mRil.mPhoneId); int radioType = ((TelephonyManager) mRil.mContext.getSystemService( Loading @@ -1621,6 +1597,7 @@ public class RadioResponse extends IRadioResponse.Stub { ret.add(cell); } } if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1632,14 +1609,13 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { ArrayList<SmsBroadcastConfigInfo> ret = null; if (responseInfo.error == RadioError.NONE) { ret = new ArrayList<SmsBroadcastConfigInfo>(); ArrayList<SmsBroadcastConfigInfo> ret = new ArrayList<SmsBroadcastConfigInfo>(); for (int i = 0; i < configs.size(); i++) { ret.add(new SmsBroadcastConfigInfo(configs.get(i).fromServiceId, configs.get(i).toServiceId, configs.get(i).fromCodeScheme, configs.get(i).toCodeScheme, configs.get(i).selected)); } if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1653,7 +1629,6 @@ public class RadioResponse extends IRadioResponse.Stub { if (rr != null) { int[] ret = null; if (responseInfo.error == RadioError.NONE) { int numServiceCategories = configs.size(); if (numServiceCategories == 0) { Loading Loading @@ -1688,6 +1663,7 @@ public class RadioResponse extends IRadioResponse.Stub { ret[i + 2] = configs.get(j).selected ? 1 : 0; } } if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1699,9 +1675,8 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { ArrayList<CellInfo> ret = null; ArrayList<CellInfo> ret = RIL.convertHalCellInfoList(cellInfo); if (responseInfo.error == RadioError.NONE) { ret = RIL.convertHalCellInfoList(cellInfo); sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading Loading @@ -1740,9 +1715,8 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { ArrayList<HardwareConfig> ret = null; ArrayList<HardwareConfig> ret = RIL.convertHalHwConfigList(config, mRil); if (responseInfo.error == RadioError.NONE) { ret = RIL.convertHalHwConfigList(config, mRil); sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1754,11 +1728,13 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { IccIoResult ret = null; if (responseInfo.error == RadioError.NONE) { ret = new IccIoResult(result.sw1, result.sw2, (!(result.simResponse).equals("")) IccIoResult ret = new IccIoResult( result.sw1, result.sw2, (!(result.simResponse).equals("")) ? android.util.Base64.decode(result.simResponse, android.util.Base64.DEFAULT) : (byte[]) null); if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1770,9 +1746,8 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { RadioCapability ret = null; RadioCapability ret = RIL.convertHalRadioCapability(rc, mRil); if (responseInfo.error == RadioError.NONE) { ret = RIL.convertHalRadioCapability(rc, mRil); sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1783,11 +1758,10 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { ArrayList<Integer> ret = null; if (responseInfo.error == RadioError.NONE) { ret = new ArrayList<Integer>(); ArrayList<Integer> ret = new ArrayList<Integer>(); ret.add(statusInfo.lceStatus); ret.add((int) statusInfo.actualIntervalMs); if (responseInfo.error == RadioError.NONE) { sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1798,9 +1772,8 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { ArrayList<Integer> ret = null; ArrayList<Integer> ret = RIL.convertHalLceData(lceInfo, mRil); if (responseInfo.error == RadioError.NONE) { ret = RIL.convertHalLceData(lceInfo, mRil); sendMessageResponse(rr.mResult, ret); } mRil.processResponseDone(rr, responseInfo, ret); Loading @@ -1812,9 +1785,7 @@ public class RadioResponse extends IRadioResponse.Stub { RILRequest rr = mRil.processResponse(responseInfo); if (rr != null) { List<CarrierIdentifier> ret = null; if (responseInfo.error == RadioError.NONE) { ret = new ArrayList<CarrierIdentifier>(); List<CarrierIdentifier> ret = new ArrayList<CarrierIdentifier>(); for (int i = 0; i < carriers.allowedCarriers.size(); i++) { String mcc = carriers.allowedCarriers.get(i).mcc; String mnc = carriers.allowedCarriers.get(i).mnc; Loading @@ -1832,6 +1803,7 @@ public class RadioResponse extends IRadioResponse.Stub { } ret.add(new CarrierIdentifier(mcc, mnc, spn, imsi, gid1, gid2)); } if (responseInfo.error == RadioError.NONE) { /* TODO: Handle excluded carriers */ sendMessageResponse(rr.mResult, ret); } Loading