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

Commit b8f708b0 authored by Sarah Chin's avatar Sarah Chin Committed by android-build-merger
Browse files

Merge "Added extra fields in LinkAddress"

am: b3a6e91f

Change-Id: I2b92cb1e9fffe1bcf7d78244ba0e897432dc7f48
parents 7044f192 b3a6e91f
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -1583,7 +1583,8 @@ public class RIL extends BaseCommands implements CommandsInterface {
                                    new android.hardware.radio.V1_5.LinkAddress();
                            linkAddress.address = la.getAddress().getHostAddress();
                            linkAddress.properties = la.getFlags();
                            // TODO: Add deprecated time and expired time support here.
                            linkAddress.deprecationTime = la.getDeprecationTime();
                            linkAddress.expirationTime = la.getExpirationTime();
                            addresses15.add(linkAddress);
                        }
                    }
@@ -6394,10 +6395,10 @@ public class RIL extends BaseCommands implements CommandsInterface {
            active = result.active;
            protocolType = result.type;
            ifname = result.ifname;
            //addresses = result.addresses.stream().toArray(String[]::new);
            laList = result.addresses.stream().map(a -> new LinkAddress(
                    InetAddresses.parseNumericAddress(a.address), 0, a.properties, 0))
                    .collect(Collectors.toList());
                    InetAddresses.parseNumericAddress(a.address), 0, a.properties, 0,
                    a.deprecationTime, a.expirationTime)).collect(Collectors.toList());

            dnses = result.dnses.stream().toArray(String[]::new);
            gateways = result.gateways.stream().toArray(String[]::new);
            pcscfs = result.pcscf.stream().toArray(String[]::new);