Loading src/java/com/android/internal/telephony/Phone.java +2 −2 Original line number Diff line number Diff line Loading @@ -4383,8 +4383,8 @@ public abstract class Phone extends Handler implements PhoneInternalInterface { * - {@link android.telephony.TelephonyManager#CARD_POWER_UP} * - {@link android.telephony.TelephonyManager#CARD_POWER_UP_PASS_THROUGH} **/ public void setSimPowerState(int state, WorkSource workSource) { mCi.setSimCardPower(state, null, workSource); public void setSimPowerState(int state, Message result, WorkSource workSource) { mCi.setSimCardPower(state, result, workSource); } public void setCarrierTestOverride(String mccmnc, String imsi, String iccid, String gid1, Loading src/java/com/android/internal/telephony/RIL.java +18 −10 Original line number Diff line number Diff line Loading @@ -4216,7 +4216,7 @@ public class RIL extends BaseCommands implements CommandsInterface { @Override public void getCellInfoList(Message result, WorkSource workSource) { workSource = getDeafultWorkSourceIfInvalid(workSource); workSource = getDefaultWorkSourceIfInvalid(workSource); IRadio radioProxy = getRadioProxy(result); if (radioProxy != null) { RILRequest rr = obtainRequest(RIL_REQUEST_GET_CELL_INFO_LIST, result, Loading @@ -4243,7 +4243,7 @@ public class RIL extends BaseCommands implements CommandsInterface { @Override public void setCellInfoListRate(int rateInMillis, Message result, WorkSource workSource) { workSource = getDeafultWorkSourceIfInvalid(workSource); workSource = getDefaultWorkSourceIfInvalid(workSource); IRadio radioProxy = getRadioProxy(result); if (radioProxy != null) { RILRequest rr = obtainRequest(RIL_REQUEST_SET_UNSOL_CELL_INFO_LIST_RATE, result, Loading Loading @@ -4498,7 +4498,7 @@ public class RIL extends BaseCommands implements CommandsInterface { @Override public void nvReadItem(int itemID, Message result, WorkSource workSource) { workSource = getDeafultWorkSourceIfInvalid(workSource); workSource = getDefaultWorkSourceIfInvalid(workSource); IRadio radioProxy = getRadioProxy(result); if (radioProxy != null) { RILRequest rr = obtainRequest(RIL_REQUEST_NV_READ_ITEM, result, Loading @@ -4519,7 +4519,7 @@ public class RIL extends BaseCommands implements CommandsInterface { @Override public void nvWriteItem(int itemId, String itemValue, Message result, WorkSource workSource) { workSource = getDeafultWorkSourceIfInvalid(workSource); workSource = getDefaultWorkSourceIfInvalid(workSource); IRadio radioProxy = getRadioProxy(result); if (radioProxy != null) { RILRequest rr = obtainRequest(RIL_REQUEST_NV_WRITE_ITEM, result, Loading Loading @@ -4955,7 +4955,7 @@ public class RIL extends BaseCommands implements CommandsInterface { @Override public void getModemActivityInfo(Message result, WorkSource workSource) { workSource = getDeafultWorkSourceIfInvalid(workSource); workSource = getDefaultWorkSourceIfInvalid(workSource); IRadio radioProxy = getRadioProxy(result); if (radioProxy != null) { RILRequest rr = obtainRequest(RIL_REQUEST_GET_ACTIVITY_INFO, result, Loading Loading @@ -5021,7 +5021,7 @@ public class RIL extends BaseCommands implements CommandsInterface { riljLog("RIL.java - setAllowedCarriers"); checkNotNull(carrierRestrictionRules, "Carrier restriction cannot be null."); workSource = getDeafultWorkSourceIfInvalid(workSource); workSource = getDefaultWorkSourceIfInvalid(workSource); IRadio radioProxy = getRadioProxy(result); if (radioProxy == null) return; Loading Loading @@ -5101,7 +5101,7 @@ public class RIL extends BaseCommands implements CommandsInterface { @Override public void getAllowedCarriers(Message result, WorkSource workSource) { workSource = getDeafultWorkSourceIfInvalid(workSource); workSource = getDefaultWorkSourceIfInvalid(workSource); IRadio radioProxy = getRadioProxy(result); if (radioProxy == null) return; Loading Loading @@ -5341,7 +5341,7 @@ public class RIL extends BaseCommands implements CommandsInterface { @Override public void setSimCardPower(int state, Message result, WorkSource workSource) { workSource = getDeafultWorkSourceIfInvalid(workSource); workSource = getDefaultWorkSourceIfInvalid(workSource); IRadio radioProxy = getRadioProxy(result); if (radioProxy != null) { RILRequest rr = obtainRequest(RIL_REQUEST_SET_SIM_CARD_POWER, result, Loading @@ -5351,7 +5351,15 @@ public class RIL extends BaseCommands implements CommandsInterface { riljLog(rr.serialString() + "> " + requestToString(rr.mRequest) + " " + state); } if (mRadioVersion.greaterOrEqual(RADIO_HAL_VERSION_1_1)) { if (mRadioVersion.greaterOrEqual(RADIO_HAL_VERSION_1_6)) { try { android.hardware.radio.V1_6.IRadio radioProxy16 = (android.hardware.radio.V1_6.IRadio) radioProxy; radioProxy16.setSimCardPower_1_6(rr.mSerial, state); } catch (RemoteException | RuntimeException e) { handleRadioProxyExceptionForRR(rr, "setSimCardPower", e); } } else if (mRadioVersion.greaterOrEqual(RADIO_HAL_VERSION_1_1)) { try { android.hardware.radio.V1_1.IRadio radioProxy11 = (android.hardware.radio.V1_1.IRadio) radioProxy; Loading Loading @@ -6053,7 +6061,7 @@ public class RIL extends BaseCommands implements CommandsInterface { rr.release(); } private WorkSource getDeafultWorkSourceIfInvalid(WorkSource workSource) { private WorkSource getDefaultWorkSourceIfInvalid(WorkSource workSource) { if (workSource == null) { workSource = mRILDefaultWorkSource; } Loading Loading
src/java/com/android/internal/telephony/Phone.java +2 −2 Original line number Diff line number Diff line Loading @@ -4383,8 +4383,8 @@ public abstract class Phone extends Handler implements PhoneInternalInterface { * - {@link android.telephony.TelephonyManager#CARD_POWER_UP} * - {@link android.telephony.TelephonyManager#CARD_POWER_UP_PASS_THROUGH} **/ public void setSimPowerState(int state, WorkSource workSource) { mCi.setSimCardPower(state, null, workSource); public void setSimPowerState(int state, Message result, WorkSource workSource) { mCi.setSimCardPower(state, result, workSource); } public void setCarrierTestOverride(String mccmnc, String imsi, String iccid, String gid1, Loading
src/java/com/android/internal/telephony/RIL.java +18 −10 Original line number Diff line number Diff line Loading @@ -4216,7 +4216,7 @@ public class RIL extends BaseCommands implements CommandsInterface { @Override public void getCellInfoList(Message result, WorkSource workSource) { workSource = getDeafultWorkSourceIfInvalid(workSource); workSource = getDefaultWorkSourceIfInvalid(workSource); IRadio radioProxy = getRadioProxy(result); if (radioProxy != null) { RILRequest rr = obtainRequest(RIL_REQUEST_GET_CELL_INFO_LIST, result, Loading @@ -4243,7 +4243,7 @@ public class RIL extends BaseCommands implements CommandsInterface { @Override public void setCellInfoListRate(int rateInMillis, Message result, WorkSource workSource) { workSource = getDeafultWorkSourceIfInvalid(workSource); workSource = getDefaultWorkSourceIfInvalid(workSource); IRadio radioProxy = getRadioProxy(result); if (radioProxy != null) { RILRequest rr = obtainRequest(RIL_REQUEST_SET_UNSOL_CELL_INFO_LIST_RATE, result, Loading Loading @@ -4498,7 +4498,7 @@ public class RIL extends BaseCommands implements CommandsInterface { @Override public void nvReadItem(int itemID, Message result, WorkSource workSource) { workSource = getDeafultWorkSourceIfInvalid(workSource); workSource = getDefaultWorkSourceIfInvalid(workSource); IRadio radioProxy = getRadioProxy(result); if (radioProxy != null) { RILRequest rr = obtainRequest(RIL_REQUEST_NV_READ_ITEM, result, Loading @@ -4519,7 +4519,7 @@ public class RIL extends BaseCommands implements CommandsInterface { @Override public void nvWriteItem(int itemId, String itemValue, Message result, WorkSource workSource) { workSource = getDeafultWorkSourceIfInvalid(workSource); workSource = getDefaultWorkSourceIfInvalid(workSource); IRadio radioProxy = getRadioProxy(result); if (radioProxy != null) { RILRequest rr = obtainRequest(RIL_REQUEST_NV_WRITE_ITEM, result, Loading Loading @@ -4955,7 +4955,7 @@ public class RIL extends BaseCommands implements CommandsInterface { @Override public void getModemActivityInfo(Message result, WorkSource workSource) { workSource = getDeafultWorkSourceIfInvalid(workSource); workSource = getDefaultWorkSourceIfInvalid(workSource); IRadio radioProxy = getRadioProxy(result); if (radioProxy != null) { RILRequest rr = obtainRequest(RIL_REQUEST_GET_ACTIVITY_INFO, result, Loading Loading @@ -5021,7 +5021,7 @@ public class RIL extends BaseCommands implements CommandsInterface { riljLog("RIL.java - setAllowedCarriers"); checkNotNull(carrierRestrictionRules, "Carrier restriction cannot be null."); workSource = getDeafultWorkSourceIfInvalid(workSource); workSource = getDefaultWorkSourceIfInvalid(workSource); IRadio radioProxy = getRadioProxy(result); if (radioProxy == null) return; Loading Loading @@ -5101,7 +5101,7 @@ public class RIL extends BaseCommands implements CommandsInterface { @Override public void getAllowedCarriers(Message result, WorkSource workSource) { workSource = getDeafultWorkSourceIfInvalid(workSource); workSource = getDefaultWorkSourceIfInvalid(workSource); IRadio radioProxy = getRadioProxy(result); if (radioProxy == null) return; Loading Loading @@ -5341,7 +5341,7 @@ public class RIL extends BaseCommands implements CommandsInterface { @Override public void setSimCardPower(int state, Message result, WorkSource workSource) { workSource = getDeafultWorkSourceIfInvalid(workSource); workSource = getDefaultWorkSourceIfInvalid(workSource); IRadio radioProxy = getRadioProxy(result); if (radioProxy != null) { RILRequest rr = obtainRequest(RIL_REQUEST_SET_SIM_CARD_POWER, result, Loading @@ -5351,7 +5351,15 @@ public class RIL extends BaseCommands implements CommandsInterface { riljLog(rr.serialString() + "> " + requestToString(rr.mRequest) + " " + state); } if (mRadioVersion.greaterOrEqual(RADIO_HAL_VERSION_1_1)) { if (mRadioVersion.greaterOrEqual(RADIO_HAL_VERSION_1_6)) { try { android.hardware.radio.V1_6.IRadio radioProxy16 = (android.hardware.radio.V1_6.IRadio) radioProxy; radioProxy16.setSimCardPower_1_6(rr.mSerial, state); } catch (RemoteException | RuntimeException e) { handleRadioProxyExceptionForRR(rr, "setSimCardPower", e); } } else if (mRadioVersion.greaterOrEqual(RADIO_HAL_VERSION_1_1)) { try { android.hardware.radio.V1_1.IRadio radioProxy11 = (android.hardware.radio.V1_1.IRadio) radioProxy; Loading Loading @@ -6053,7 +6061,7 @@ public class RIL extends BaseCommands implements CommandsInterface { rr.release(); } private WorkSource getDeafultWorkSourceIfInvalid(WorkSource workSource) { private WorkSource getDefaultWorkSourceIfInvalid(WorkSource workSource) { if (workSource == null) { workSource = mRILDefaultWorkSource; } Loading