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

Commit 9cd0ea17 authored by junyulai's avatar junyulai
Browse files

[SP15] Remove unused getVtDataUsage in TelephonyMananger

Test: atest FrameworkTelephonyTests
Bug: 143923500
Change-Id: I31b7041dc2591b354200da5637496f071fc4aa9f
parent 5bbd6262
Loading
Loading
Loading
Loading
+0 −24
Original line number Original line Diff line number Diff line
@@ -45,10 +45,8 @@ import android.compat.annotation.UnsupportedAppUsage;
import android.content.ComponentName;
import android.content.ComponentName;
import android.content.Context;
import android.content.Context;
import android.content.Intent;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.database.Cursor;
import android.net.ConnectivityManager;
import android.net.ConnectivityManager;
import android.net.NetworkStats;
import android.net.Uri;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.AsyncTask;
import android.os.BatteryStats;
import android.os.BatteryStats;
@@ -10786,28 +10784,6 @@ public class TelephonyManager {
        }
        }
    }
    }


    /**
     * Get aggregated video call data usage since boot.
     * Permissions android.Manifest.permission.READ_NETWORK_USAGE_HISTORY is required.
     *
     * @param how one of the NetworkStats.STATS_PER_* constants depending on whether the request is
     * for data usage per uid or overall usage.
     * @return Snapshot of video call data usage
     * @hide
     */
    public NetworkStats getVtDataUsage(int how) {
        boolean perUidStats = (how == NetworkStats.STATS_PER_UID);
        try {
            ITelephony service = getITelephony();
            if (service != null) {
                return service.getVtDataUsage(getSubId(), perUidStats);
            }
        } catch (RemoteException e) {
            Log.e(TAG, "Error calling ITelephony#getVtDataUsage", e);
        }
        return null;
    }

    /**
    /**
     * Policy control of data connection. Usually used when data limit is passed.
     * Policy control of data connection. Usually used when data limit is passed.
     * @param enabled True if enabling the data, otherwise disabling.
     * @param enabled True if enabling the data, otherwise disabling.
+0 −10
Original line number Original line Diff line number Diff line
@@ -1621,16 +1621,6 @@ interface ITelephony {
     */
     */
    void carrierActionResetAll(int subId);
    void carrierActionResetAll(int subId);


    /**
     * Get aggregated video call data usage since boot.
     * Permissions android.Manifest.permission.READ_NETWORK_USAGE_HISTORY is required.
     *
     * @param perUidStats True if requesting data usage per uid, otherwise overall usage.
     * @return Snapshot of video call data usage
     * @hide
     */
    NetworkStats getVtDataUsage(int subId, boolean perUidStats);

    /**
    /**
     * Gets the voice call forwarding info {@link CallForwardingInfo}, given the call forward
     * Gets the voice call forwarding info {@link CallForwardingInfo}, given the call forward
     * reason.
     * reason.