Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cced60d3 authored by Amit Mahajan's avatar Amit Mahajan
Browse files

Populate the correct format in ImsSmsMessage.

Test: atest RILTest
Bug: 160646256
Merged-in: I34c7de58736901e2e9d1d1815f9e5b617f0e2c94
Change-Id: I34c7de58736901e2e9d1d1815f9e5b617f0e2c94
(cherry picked from commit 8f5c2e85)
parent eeaf7fe4
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@ import android.hardware.radio.V1_0.RadioError;
import android.hardware.radio.V1_0.RadioIndicationType;
import android.hardware.radio.V1_0.RadioResponseInfo;
import android.hardware.radio.V1_0.RadioResponseType;
import android.hardware.radio.V1_0.RadioTechnologyFamily;
import android.hardware.radio.V1_0.ResetNvType;
import android.hardware.radio.V1_0.SelectUiccSub;
import android.hardware.radio.V1_0.SimApdu;
@@ -4069,7 +4070,7 @@ public class RIL extends BaseCommands implements CommandsInterface {
            if (RILJ_LOGD) riljLog(rr.serialString() + "> " + requestToString(rr.mRequest));

            ImsSmsMessage msg = new ImsSmsMessage();
            msg.tech = RILConstants.GSM_PHONE;
            msg.tech = RadioTechnologyFamily.THREE_GPP;
            msg.retry = (byte) retry >= 1 ? true : false;
            msg.messageRef = messageRef;

@@ -4096,7 +4097,7 @@ public class RIL extends BaseCommands implements CommandsInterface {
            if (RILJ_LOGD) riljLog(rr.serialString() + "> " + requestToString(rr.mRequest));

            ImsSmsMessage msg = new ImsSmsMessage();
            msg.tech = RILConstants.CDMA_PHONE;
            msg.tech = RadioTechnologyFamily.THREE_GPP2;
            msg.retry = (byte) retry >= 1 ? true : false;
            msg.messageRef = messageRef;

+5 −4
Original line number Diff line number Diff line
@@ -110,6 +110,7 @@ import android.hardware.radio.V1_0.NvWriteItem;
import android.hardware.radio.V1_0.RadioError;
import android.hardware.radio.V1_0.RadioResponseInfo;
import android.hardware.radio.V1_0.RadioResponseType;
import android.hardware.radio.V1_0.RadioTechnologyFamily;
import android.hardware.radio.V1_0.SmsWriteArgs;
import android.hardware.radio.V1_5.IRadio;
import android.hardware.radio.deprecated.V1_0.IOemHook;
@@ -927,13 +928,13 @@ public class RILTest extends TelephonyTest {
        gsmMsg.pdu = pdu;

        ImsSmsMessage firstMsg = new ImsSmsMessage();
        firstMsg.tech = RILConstants.GSM_PHONE;
        firstMsg.tech = RadioTechnologyFamily.THREE_GPP;
        firstMsg.retry = false;
        firstMsg.messageRef = 0;
        firstMsg.gsmMessage.add(gsmMsg);

        ImsSmsMessage retryMsg = new ImsSmsMessage();
        retryMsg.tech = RILConstants.GSM_PHONE;
        retryMsg.tech = RadioTechnologyFamily.THREE_GPP;
        retryMsg.retry = true;
        retryMsg.messageRef = 0;
        retryMsg.gsmMessage.add(gsmMsg);
@@ -962,13 +963,13 @@ public class RILTest extends TelephonyTest {
        CdmaSmsMessage cdmaMsg = new CdmaSmsMessage();

        ImsSmsMessage firstMsg = new ImsSmsMessage();
        firstMsg.tech = RILConstants.CDMA_PHONE;
        firstMsg.tech = RadioTechnologyFamily.THREE_GPP2;
        firstMsg.retry = false;
        firstMsg.messageRef = 0;
        firstMsg.cdmaMessage.add(cdmaMsg);

        ImsSmsMessage retryMsg = new ImsSmsMessage();
        retryMsg.tech = RILConstants.CDMA_PHONE;
        retryMsg.tech = RadioTechnologyFamily.THREE_GPP2;
        retryMsg.retry = true;
        retryMsg.messageRef = 0;
        retryMsg.cdmaMessage.add(cdmaMsg);