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

Commit 389920f0 authored by Hongbo Zeng's avatar Hongbo Zeng
Browse files

Update framework for 5G Slicing

- add the parameters trafficDescriptor16 and matchAllRuleAllowed
  for setupDataCall_1_6()

Bug: 178075054
Test: full build pass
Change-Id: I578cf6e1e46f385f9bacf4d51aa8fce4cfe6fffb
Merged-In: I578cf6e1e46f385f9bacf4d51aa8fce4cfe6fffb
parent 88a3bba7
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -57,6 +57,7 @@ import android.hardware.radio.V1_5.IndicationFilter;
import android.hardware.radio.V1_5.PersoSubstate;
import android.hardware.radio.V1_5.RadioAccessNetworks;
import android.hardware.radio.V1_6.OptionalSliceInfo;
import android.hardware.radio.V1_6.OptionalTrafficDescriptor;
import android.hardware.radio.deprecated.V1_0.IOemHook;
import android.net.InetAddresses;
import android.net.KeepalivePacketData;
@@ -2031,6 +2032,10 @@ public class RIL extends BaseCommands implements CommandsInterface {
                    ArrayList<android.hardware.radio.V1_5.LinkAddress> addresses15 =
                            convertToHalLinkProperties15(linkProperties);

                    OptionalTrafficDescriptor trafficDescriptor16 =
                            new OptionalTrafficDescriptor();
                    boolean matchAllRuleAllowed = true;

                    if (RILJ_LOGD) {
                        riljLog(rr.serialString() + "> " + requestToString(rr.mRequest)
                                + ",accessNetworkType="
@@ -2041,7 +2046,8 @@ public class RIL extends BaseCommands implements CommandsInterface {
                    }

                    radioProxy16.setupDataCall_1_6(rr.mSerial, accessNetworkType, dpi, allowRoaming,
                            reason, addresses15, dnses, pduSessionId, sliceInfo16);
                            reason, addresses15, dnses, pduSessionId, sliceInfo16,
                            trafficDescriptor16, matchAllRuleAllowed);
                } else if (mRadioVersion.greaterOrEqual(RADIO_HAL_VERSION_1_5)) {
                    // IRadio V1.5
                    android.hardware.radio.V1_5.IRadio radioProxy15 =