Merge "[MS03] Remove ServiceNotFoundException hidden API usage" am: a9f47b7aaa am: 8cd72998e1 am: 5b1d25ce3f am: c8aa26e71b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1878043 Change-Id: Ie5bd0130a07d015e464090d546fc625589272def
This commit is contained in:
@@ -45,8 +45,6 @@ import android.os.Looper;
|
||||
import android.os.Message;
|
||||
import android.os.Messenger;
|
||||
import android.os.RemoteException;
|
||||
import android.os.ServiceManager;
|
||||
import android.os.ServiceManager.ServiceNotFoundException;
|
||||
import android.telephony.TelephonyManager;
|
||||
import android.text.TextUtils;
|
||||
import android.util.DataUnit;
|
||||
@@ -135,15 +133,6 @@ public class NetworkStatsManager {
|
||||
|
||||
private int mFlags;
|
||||
|
||||
/**
|
||||
* {@hide}
|
||||
*/
|
||||
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
|
||||
public NetworkStatsManager(Context context) throws ServiceNotFoundException {
|
||||
this(context, INetworkStatsService.Stub.asInterface(
|
||||
ServiceManager.getServiceOrThrow(Context.NETWORK_STATS_SERVICE)));
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@VisibleForTesting
|
||||
public NetworkStatsManager(Context context, INetworkStatsService service) {
|
||||
|
||||
Reference in New Issue
Block a user