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

Commit 485fec00 authored by Jack Yu's avatar Jack Yu
Browse files

Telephony data refactoring API changes

DataProfile is the parameters used for setup data, but DataProfile
is almost identical as ApnSetting. So move ApnSetting into
DataProfile, also add TrafficDescriptor, which is specific to
5G SA network.

Also added a new state for data handover between IWLAN and cellular.

Bug: 196597630
Test: CTS && atest FrameworksTelephonyTests
Change-Id: I0bd1445a1aacec7ac22fcabe04a2110a32ddf2a2
parent 6e7e1c0d
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1824,11 +1824,9 @@ public class DataNetwork extends StateMachine {
            return TelephonyManager.DATA_CONNECTED;
        } else if (isDisconnecting()) {
            return TelephonyManager.DATA_DISCONNECTING;
        } else if (isUnderHandover()) {
            return TelephonyManager.DATA_HANDOVER_IN_PROGRESS;
        }
        // TODO: Support handover
        /* else if (state == mHandoverState) {
            return TelephonyManager.DATA_UNDER_HANDOVER;
        }*/

        return TelephonyManager.DATA_UNKNOWN;
    }