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

Commit 4616e52a authored by Malcolm Chen's avatar Malcolm Chen
Browse files

Connect IRadioConfig 1.1 HAL interfaces with RadioConfig.java

IRadioConfig 1.1 getPhoneCapability and setPreferredDataModem
are defined. Here we hook the calls into RadioConfig.

Bug: 121354686
Test: sanity
Change-Id: I2a198d446962510ef9a3019d3aa30b40e796ebe0
Merged-In: I2a198d446962510ef9a3019d3aa30b40e796ebe0
parent 28eeb3ac
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -32,6 +32,11 @@ public class ModemInfo implements Parcelable {
    public final boolean isVoiceSupported;
    public final boolean isDataSupported;

    // TODO b/121394331: Clean up this class after V1_1.PhoneCapability cleanup.
    public ModemInfo(int modemId) {
        this(modemId, 0, true, true);
    }

    public ModemInfo(int modemId, int rat, boolean isVoiceSupported, boolean isDataSupported) {
        this.modemId = modemId;
        this.rat = rat;
+1 −0
Original line number Diff line number Diff line
@@ -422,6 +422,7 @@ public interface RILConstants {
    int RIL_REQUEST_SET_LINK_CAPACITY_REPORTING_CRITERIA = 203;
    int RIL_REQUEST_SET_PREFERRED_DATA_MODEM = 204;
    int RIL_REQUEST_EMERGENCY_DIAL = 205;
    int RIL_REQUEST_GET_PHONE_CAPABILITY = 206;

    /* Responses begin */
    int RIL_RESPONSE_ACKNOWLEDGEMENT = 800;