Searched refs:metered (Results 1 – 4 of 4) sorted by relevance
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | MeteredDataRestrictionTest.java | 197 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/ |
D | ConnectivityConstraintTest.java | 918 private void setWifiMeteredState(boolean metered) throws Exception { in setWifiMeteredState() argument 919 if (metered) { in setWifiMeteredState() 925 setWifiMeteredState(ssid, metered ? "true" : "false"); in setWifiMeteredState() 929 private void setWifiMeteredState(String ssid, String metered) { in setWifiMeteredState() argument 930 if (metered.equals(getWifiMeteredStatus(ssid))) { in setWifiMeteredState() 933 SystemUtil.runShellCommand("cmd netpolicy set metered-network " + ssid + " " + metered); in setWifiMeteredState() 934 assertEquals(getWifiMeteredStatus(ssid), metered); in setWifiMeteredState() local
|
D | JobThrottlingTest.java | 1228 private void setWifiMeteredState(boolean metered) throws Exception { in setWifiMeteredState() argument 1229 if (metered) { in setWifiMeteredState() 1235 setWifiMeteredState(ssid, metered ? "true" : "false"); in setWifiMeteredState() 1239 private void setWifiMeteredState(String ssid, String metered) { in setWifiMeteredState() argument 1240 if (metered.equals(getWifiMeteredStatus(ssid))) { in setWifiMeteredState() 1243 SystemUtil.runShellCommand("cmd netpolicy set metered-network " + ssid + " " + metered); in setWifiMeteredState() 1244 assertEquals(getWifiMeteredStatus(ssid), metered); in setWifiMeteredState() local
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | NetworkUsageStatsTest.java | 96 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()
|