From 52facd7e3ab4a923f11245cedc80dc8d5e3f949c Mon Sep 17 00:00:00 2001 From: junyulai Date: Wed, 3 Mar 2021 21:31:00 +0800 Subject: [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 --- core/java/android/net/INetworkPolicyManager.aidl | 5 ----- 1 file changed, 5 deletions(-) (limited to 'core/java') 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); -- cgit v1.2.3