Merge "[SP15] Remove unused getVtDataUsage in TelephonyMananger"
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user