public class NetworkStatsService
extends INetworkStatsService.Stub
Modifier and Type | Class and Description |
---|---|
static interface |
NetworkStatsService.NetworkStatsSettings
Settings that can be changed externally.
|
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_NETWORK_STATS_POLL |
static String |
ACTION_NETWORK_STATS_UPDATED |
static String |
VT_INTERFACE
Virtual network interface for video telephony.
|
Modifier and Type | Method and Description |
---|---|
void |
advisePersistThreshold(long thresholdBytes) |
void |
bindConnectivityManager(IConnectivityManager connManager) |
static NetworkStatsService |
create(Context context,
INetworkManagementService networkManager) |
protected void |
dump(FileDescriptor fd,
PrintWriter rawWriter,
String[] args) |
void |
forceUpdate() |
void |
forceUpdateIfaces() |
NetworkStats |
getDataLayerSnapshotForUid(int uid) |
String[] |
getMobileIfaces() |
long |
getNetworkTotalBytes(NetworkTemplate template,
long start,
long end) |
void |
incrementOperationCount(int uid,
int tag,
int operationCount) |
INetworkStatsSession |
openSession() |
INetworkStatsSession |
openSessionForUsageStats(String callingPackage) |
DataUsageRequest |
registerUsageCallback(String callingPackage,
DataUsageRequest request,
Messenger messenger,
IBinder binder) |
void |
setUidForeground(int uid,
boolean uidForeground) |
void |
systemReady() |
void |
unregisterUsageRequest(DataUsageRequest request) |
public static final String ACTION_NETWORK_STATS_POLL
public static final String ACTION_NETWORK_STATS_UPDATED
public static final String VT_INTERFACE
public static NetworkStatsService create(Context context, INetworkManagementService networkManager)
public void bindConnectivityManager(IConnectivityManager connManager)
public void systemReady()
public INetworkStatsSession openSession()
public INetworkStatsSession openSessionForUsageStats(String callingPackage)
public long getNetworkTotalBytes(NetworkTemplate template, long start, long end)
public NetworkStats getDataLayerSnapshotForUid(int uid) throws RemoteException
RemoteException
public String[] getMobileIfaces()
public void incrementOperationCount(int uid, int tag, int operationCount)
public void setUidForeground(int uid, boolean uidForeground)
public void forceUpdateIfaces()
public void forceUpdate()
public void advisePersistThreshold(long thresholdBytes)
public DataUsageRequest registerUsageCallback(String callingPackage, DataUsageRequest request, Messenger messenger, IBinder binder)
public void unregisterUsageRequest(DataUsageRequest request)
protected void dump(FileDescriptor fd, PrintWriter rawWriter, String[] args)