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

Commit ff9fa74b authored by Amit Mahajan's avatar Amit Mahajan
Browse files

Remove usage of NetworkStatsService from telephony-common.

Test: basic sanity
Bug: 145018114
Change-Id: I69b3ad97d79d6f120e464746fb99d22bae3598eb
parent 101dcaa8
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -96,7 +96,6 @@ java_library {
        "android.hardware.radio-V1.5-java",
        "voip-common",
        "ims-common",
        "services",
        "unsupportedappusage",
        "telephony-resources",
    ],
+2 −3
Original line number Diff line number Diff line
@@ -108,7 +108,6 @@ import com.android.internal.telephony.nano.TelephonyProto.TelephonyCallSession;
import com.android.internal.telephony.nano.TelephonyProto.TelephonyCallSession.Event.ImsCommand;
import com.android.internal.telephony.util.TelephonyResourceUtils;
import com.android.internal.util.IndentingPrintWriter;
import com.android.server.net.NetworkStatsService;
import com.android.telephony.Rlog;

import java.io.FileDescriptor;
@@ -3661,7 +3660,7 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
        // the only thing we can do here is splitting the usage into half rx and half tx.
        // Uid -1 indicates this is for the overall device data usage.
        vtDataUsageSnapshot.combineValues(new NetworkStats.Entry(
                NetworkStatsService.VT_INTERFACE, -1, NetworkStats.SET_FOREGROUND,
                NetworkStats.IFACE_VT, -1, NetworkStats.SET_FOREGROUND,
                NetworkStats.TAG_NONE, NetworkStats.METERED_YES, isRoaming,
                NetworkStats.DEFAULT_NETWORK_YES, delta / 2, 0, delta / 2, 0, 0));
        mVtDataUsageSnapshot = vtDataUsageSnapshot;
@@ -3684,7 +3683,7 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
        // Since the modem only reports the total vt data usage rather than rx/tx separately,
        // the only thing we can do here is splitting the usage into half rx and half tx.
        vtDataUsageUidSnapshot.combineValues(new NetworkStats.Entry(
                NetworkStatsService.VT_INTERFACE, mDefaultDialerUid.get(),
                NetworkStats.IFACE_VT, mDefaultDialerUid.get(),
                NetworkStats.SET_FOREGROUND, NetworkStats.TAG_NONE, NetworkStats.METERED_YES,
                isRoaming, NetworkStats.DEFAULT_NETWORK_YES, delta / 2, 0, delta / 2, 0, 0));
        mVtDataUsageUidSnapshot = vtDataUsageUidSnapshot;