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

Commit f3383707 authored by Sarah Chin's avatar Sarah Chin Committed by Automerger Merge Worker
Browse files

Merge "IRadio AIDL conversions don't allow null for arrays" am: 2c423a88 am:...

Merge "IRadio AIDL conversions don't allow null for arrays" am: 2c423a88 am: 2cfeff80 am: 090d533c

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/1934668

Change-Id: I9eebbbdb65c60d00b3809a9347c88402f22b43dd
parents 0690fc4d 090d533c
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -961,8 +961,7 @@ public class RILUtils {
        dpi.persistent = dp.isPersistent();
        dpi.preferred = dp.isPreferred();
        dpi.alwaysOn = dp.getApnSetting().isAlwaysOn();
        dpi.trafficDescriptor = RILUtils.convertToHalTrafficDescriptorAidl(
                dp.getTrafficDescriptor());
        dpi.trafficDescriptor = convertToHalTrafficDescriptorAidl(dp.getTrafficDescriptor());

        // profile id is only meaningful when it's persistent on the modem.
        dpi.profileId = (dpi.persistent) ? dp.getProfileId()
@@ -1174,7 +1173,7 @@ public class RILUtils {
    public static android.hardware.radio.data.LinkAddress[] convertToHalLinkProperties(
            LinkProperties linkProperties) {
        if (linkProperties == null) {
            return null;
            return new android.hardware.radio.data.LinkAddress[0];
        }
        android.hardware.radio.data.LinkAddress[] addresses =
                new android.hardware.radio.data.LinkAddress[
@@ -1353,6 +1352,8 @@ public class RILUtils {
            for (int i = 0; i < ras.getBands().length; i++) {
                bands[i] = ras.getBands()[i];
            }
        } else {
            bands = new int[0];
        }
        switch (ras.getRadioAccessNetwork()) {
            case AccessNetworkConstants.AccessNetworkType.GERAN:
@@ -2517,8 +2518,8 @@ public class RILUtils {
    }

    /**
     * Convert a CellInfo defined in radio/1.0, 1.2, 1.4, 1.5, 1.6/types.hal to CellInfo
     * @param cellInfo CellInfo defined in radio/1.0, 1.2, 1.4, 1.5, 1.6/types.hal
     * Convert a CellInfo defined in CellInfo.aidl to CellInfo
     * @param cellInfo CellInfo defined in CellInfo.aidl
     * @param nanotime time the CellInfo was created
     * @return The converted CellInfo
     */
+2 −0
Original line number Diff line number Diff line
@@ -322,6 +322,8 @@ public class RadioDataProxy extends RadioServiceProxy {
                dnses.add(linkProperties.getDnsServers().get(i).getHostAddress());
                dnsesArr[i] = linkProperties.getDnsServers().get(i).getHostAddress();
            }
        } else {
            dnsesArr = new String[0];
        }
        if (isAidl()) {
            // Create a new DataProfile to set the TrafficDescriptor
+1 −1
Original line number Diff line number Diff line
@@ -133,7 +133,7 @@ public class RadioVoiceProxy extends RadioServiceProxy {
                    emergencyNumberInfo.getEmergencyServiceCategoryBitmaskInternalDial(),
                    emergencyNumberInfo.getEmergencyUrns() != null
                            ? emergencyNumberInfo.getEmergencyUrns().stream().toArray(String[]::new)
                            : null,
                            : new String[0],
                    emergencyNumberInfo.getEmergencyCallRouting(),
                    hasKnownUserIntentEmergency,
                    emergencyNumberInfo.getEmergencyNumberSourceBitmask()