Pass all default networks to NetworkStatsService
This will allow NetworkStatsService to treat traffic on these networks differently from traffic where the app selects a network that is not the default. Bug: 35142602 Test: runtest frameworks-net Change-Id: I5ea9d200d9fb153490c6108bb9390bf152f297da
This commit is contained in:
@@ -18,6 +18,7 @@ package android.net;
|
||||
|
||||
import android.net.DataUsageRequest;
|
||||
import android.net.INetworkStatsSession;
|
||||
import android.net.Network;
|
||||
import android.net.NetworkStats;
|
||||
import android.net.NetworkStatsHistory;
|
||||
import android.net.NetworkTemplate;
|
||||
@@ -53,7 +54,7 @@ interface INetworkStatsService {
|
||||
void setUidForeground(int uid, boolean uidForeground);
|
||||
|
||||
/** Force update of ifaces. */
|
||||
void forceUpdateIfaces();
|
||||
void forceUpdateIfaces(in Network[] defaultNetworks);
|
||||
/** Force update of statistics. */
|
||||
void forceUpdate();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user