Home
last modified time | relevance | path

Searched refs:metered (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/app.usage/src/android/app/usage/cts/
DNetworkUsageStatsTest.java69 void setMetered(boolean metered); in setMetered() argument
77 private boolean metered = false;
91 return metered;
95 public void setMetered(boolean metered) {
96 this.metered = metered;
110 private boolean metered = false;
123 return metered;
127 public void setMetered(boolean metered) {
128 this.metered = metered;
268 public boolean metered; field in NetworkUsageStatsTest.NetworkCallback
[all …]
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java529 final boolean metered = mCm.isActiveNetworkMetered(); in setMeteredNetwork()
530 if (metered) { in setMeteredNetwork()
580 private String setWifiMeteredStatus(boolean metered) throws Exception { in setWifiMeteredStatus() argument
588 return setWifiMeteredStatus(ssid, metered); in setWifiMeteredStatus()
591 private String setWifiMeteredStatus(String ssid, boolean metered) throws Exception { in setWifiMeteredStatus() argument
596 Log.i(TAG, "Setting wi-fi network " + netId + " metered status to " + metered); in setWifiMeteredStatus()
597 final String setCommand = "cmd netpolicy set metered-network " + netId + " " + metered; in setWifiMeteredStatus()