summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorjunyulai <junyulai@google.com>2021-03-03 21:31:00 +0800
committerjunyulai <junyulai@google.com>2021-03-04 18:41:09 +0800
commit52facd7e3ab4a923f11245cedc80dc8d5e3f949c (patch)
tree660cba43066a7961a04655fc012b296a2889c3d1 /core/java/android
parent6c280634c725c5a5832c78a5bdbbed4d75632471 (diff)
[FUI23] Remove getNetworkQuotaInfo
Currently, getNetworkQuotaInfo in NetworkPolicyManagerService uses NetworkState class, which will not be available after ConnectivityService moved to mainline module. Thus, to remove the usage of NetworkState, remove this function since: 1. There is no internal usage and the function only prints debug log. 2. It is non-SDK API which annotated with maxTargetSdk = 30, callers should not expect it will continoue to work in next Android release. 3. go/nonsdk-dash shows zero usage statistics. Test: TH Bug: 174123988 Change-Id: I450964a692b85f3ba89bf9f847e8089ee2445bda
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/net/INetworkPolicyManager.aidl5
1 files changed, 0 insertions, 5 deletions
diff --git a/core/java/android/net/INetworkPolicyManager.aidl b/core/java/android/net/INetworkPolicyManager.aidl
index b016ed67c4d9..9bf791ba33e0 100644
--- a/core/java/android/net/INetworkPolicyManager.aidl
+++ b/core/java/android/net/INetworkPolicyManager.aidl
@@ -19,8 +19,6 @@ package android.net;
import android.net.INetworkPolicyListener;
import android.net.Network;
import android.net.NetworkPolicy;
-import android.net.NetworkQuotaInfo;
-import android.net.NetworkState;
import android.net.NetworkTemplate;
import android.telephony.SubscriptionPlan;
@@ -70,9 +68,6 @@ interface INetworkPolicyManager {
int getMultipathPreference(in Network network);
- @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
- NetworkQuotaInfo getNetworkQuotaInfo(in NetworkState state);
-
SubscriptionPlan[] getSubscriptionPlans(int subId, String callingPackage);
void setSubscriptionPlans(int subId, in SubscriptionPlan[] plans, String callingPackage);
String getSubscriptionPlansOwner(int subId);