Restrict app data on metered networks.

This separates the definition of "metered network" and "network with
limit."  For now, all mobile networks are considered metered.

Bug: 5571454
Change-Id: I394cd385bd33add75e53bfc9cf2fefd06a00208a
This commit is contained in:
Jeff Sharkey
2011-11-30 15:28:02 -08:00
parent 691bc744b0
commit bcd1e340c6

View File

@@ -802,6 +802,8 @@ public class NetworkStatsServiceTest extends AndroidTestCase {
mNetManager.setGlobalAlert(anyLong()); mNetManager.setGlobalAlert(anyLong());
expectLastCall().atLeastOnce(); expectLastCall().atLeastOnce();
expect(mNetManager.isBandwidthControlEnabled()).andReturn(true).atLeastOnce();
} }
private void expectNetworkState(NetworkState... state) throws Exception { private void expectNetworkState(NetworkState... state) throws Exception {