Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DMeteredDataRestrictionTest.java197 private String setWifiMeteredStatus(Boolean metered) throws Exception { in setWifiMeteredStatus() argument
211 Log.d(TAG, "setWifiMeteredStatus(" + metered + "): setting " + connectionInfo); in setWifiMeteredStatus()
212 setWifiMeteredStatus(netId, metered); in setWifiMeteredStatus()
216 private void setWifiMeteredStatus(String ssid, Boolean metered) throws Exception { in setWifiMeteredStatus() argument
217 Log.i(TAG, "Setting wi-fi network " + ssid + " metered status to " + metered); in setWifiMeteredStatus()
219 (metered != null ? metered.toString() : "undefined")); in setWifiMeteredStatus()
222 private void assertWifiMeteredStatus(String ssid, Boolean metered) throws Exception { in assertWifiMeteredStatus() argument
224 final String expectedResult = ssid + ";" + (metered != null ? metered.toString() : "none"); in assertWifiMeteredStatus()
237 private void assertActiveNetworkMetered(boolean metered) { in assertActiveNetworkMetered() argument
238 boolean actualMeteredStatus = !metered; in assertActiveNetworkMetered()
[all …]
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DConnectivityConstraintTest.java871 private void setWifiMeteredState(boolean metered) throws Exception { in setWifiMeteredState() argument
872 if (metered) { in setWifiMeteredState()
878 setWifiMeteredState(ssid, metered ? "true" : "false"); in setWifiMeteredState()
882 private void setWifiMeteredState(String ssid, String metered) { in setWifiMeteredState() argument
883 if (metered.equals(getWifiMeteredStatus(ssid))) { in setWifiMeteredState()
886 SystemUtil.runShellCommand("cmd netpolicy set metered-network " + ssid + " " + metered); in setWifiMeteredState()
887 assertEquals(getWifiMeteredStatus(ssid), metered); in setWifiMeteredState() local
DJobThrottlingTest.java1224 private void setWifiMeteredState(boolean metered) throws Exception { in setWifiMeteredState() argument
1225 if (metered) { in setWifiMeteredState()
1231 setWifiMeteredState(ssid, metered ? "true" : "false"); in setWifiMeteredState()
1235 private void setWifiMeteredState(String ssid, String metered) { in setWifiMeteredState() argument
1236 if (metered.equals(getWifiMeteredStatus(ssid))) { in setWifiMeteredState()
1239 SystemUtil.runShellCommand("cmd netpolicy set metered-network " + ssid + " " + metered); in setWifiMeteredState()
1240 assertEquals(getWifiMeteredStatus(ssid), metered); in setWifiMeteredState() local
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DNetworkUsageStatsTest.java96 public void setMetered(boolean metered) { in setMetered() argument
97 this.mMetered = metered; in setMetered()
276 public boolean metered; field in NetworkUsageStatsTest.NetworkCallback
283 metered = false; in NetworkCallback()
311 metered = !mCm.getNetworkCapabilities(network) in onAvailable()
342 mNetworkInterfacesToTest[networkTypeIndex].setMetered(callback.metered); in shouldTestThisNetworkType()