FileDocCategorySizeDatePackage
INetworkStatsService.javaAPI DocAndroid 5.1 API11182Sat Mar 14 05:48:02 GMT 2015android.net

INetworkStatsService

public interface INetworkStatsService implements android.os.IInterface
{@hide}

Fields Summary
Constructors Summary
Methods Summary
public voidadvisePersistThreshold(long thresholdBytes)
Advise persistance threshold; may be overridden internally.

public voidforceUpdate()
Force update of statistics.

public voidforceUpdateIfaces()
Force update of ifaces.

public android.net.NetworkStatsgetDataLayerSnapshotForUid(int uid)
Return data layer snapshot of UID network usage.

public java.lang.String[]getMobileIfaces()
Return set of any ifaces associated with mobile networks since boot.

public longgetNetworkTotalBytes(android.net.NetworkTemplate template, long start, long end)
Return network layer usage total for traffic that matches template.

public voidincrementOperationCount(int uid, int tag, int operationCount)
Increment data layer count of operations performed for UID and tag.

public android.net.INetworkStatsSessionopenSession()
Start a statistics query session.

public voidsetUidForeground(int uid, boolean uidForeground)
Mark given UID as being in foreground for stats purposes.