Remove hidden deprecated getActiveNetworkQuotaInfo

getActiveNetworkQuotaInfo has never been in API surface since it
was introduced. It became essentially functionless since android O,
so there should be no usage dependency upon the hidden method,
In order to support ConnectivityService mainline, remove the
useless function to prevent necessary dependency.

Bug: 172183305
Test: atest FrameworksNetTests
Change-Id: Ia685b3260256d465ef614b2f577d13344074c787
This commit is contained in:
Chiachang Wang 2020-12-14 11:06:02 +08:00
commit 2f81e75ae4

View file

@ -2108,17 +2108,6 @@ public class ConnectivityManager {
// ignored
}
/** {@hide} */
@Deprecated
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
public NetworkQuotaInfo getActiveNetworkQuotaInfo() {
try {
return mService.getActiveNetworkQuotaInfo();
} catch (RemoteException e) {
throw e.rethrowFromSystemServer();
}
}
/**
* @hide
* @deprecated Talk to TelephonyManager directly