Merge "Add @UnsupportedAppUsage annotations"
am: d08509363c Change-Id: I380a6ba241998dbc694716986521dfcbf66fa7d2
This commit is contained in:
@@ -21,6 +21,7 @@ import static com.android.internal.util.Preconditions.checkNotNull;
|
|||||||
import android.annotation.Nullable;
|
import android.annotation.Nullable;
|
||||||
import android.annotation.SystemService;
|
import android.annotation.SystemService;
|
||||||
import android.annotation.TestApi;
|
import android.annotation.TestApi;
|
||||||
|
import android.annotation.UnsupportedAppUsage;
|
||||||
import android.app.usage.NetworkStats.Bucket;
|
import android.app.usage.NetworkStats.Bucket;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.net.ConnectivityManager;
|
import android.net.ConnectivityManager;
|
||||||
@@ -121,6 +122,7 @@ public class NetworkStatsManager {
|
|||||||
/**
|
/**
|
||||||
* {@hide}
|
* {@hide}
|
||||||
*/
|
*/
|
||||||
|
@UnsupportedAppUsage
|
||||||
public NetworkStatsManager(Context context) throws ServiceNotFoundException {
|
public NetworkStatsManager(Context context) throws ServiceNotFoundException {
|
||||||
this(context, INetworkStatsService.Stub.asInterface(
|
this(context, INetworkStatsService.Stub.asInterface(
|
||||||
ServiceManager.getServiceOrThrow(Context.NETWORK_STATS_SERVICE)));
|
ServiceManager.getServiceOrThrow(Context.NETWORK_STATS_SERVICE)));
|
||||||
|
|||||||
Reference in New Issue
Block a user