Merge "[SP15] Remove unused getVtDataUsage in TelephonyMananger" am: 7e0dbc53e3

Change-Id: I0fe3fadb78a1fc92463c498ce1cf01d9fbffb362
This commit is contained in:
Automerger Merge Worker
2020-02-19 01:21:49 +00:00
2 changed files with 0 additions and 34 deletions

View File

@@ -45,10 +45,8 @@ import android.compat.annotation.UnsupportedAppUsage;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.net.ConnectivityManager;
import android.net.NetworkStats;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Binder;
@@ -10839,28 +10837,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.
* @param enabled True if enabling the data, otherwise disabling.

View File

@@ -1621,16 +1621,6 @@ interface ITelephony {
*/
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
* reason.