OSDN Git Service

Connect IRadioConfig 1.1 HAL interfaces with RadioConfig.java
authorMalcolm Chen <refuhoo@google.com>
Fri, 21 Dec 2018 23:43:57 +0000 (15:43 -0800)
committerMalcolm Chen <refuhoo@google.com>
Mon, 21 Jan 2019 21:07:41 +0000 (13:07 -0800)
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

telephony/java/android/telephony/ModemInfo.java
telephony/java/com/android/internal/telephony/RILConstants.java

index 564effe..27a5121 100644 (file)
@@ -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;
index 2ebe870..8e58b02 100644 (file)
@@ -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;