Searched refs:metered (Results 1 – 4 of 4) sorted by relevance
181 private String setWifiMeteredStatus(boolean metered) throws Exception { in setWifiMeteredStatus() argument186 setWifiMeteredStatus(netId, metered); in setWifiMeteredStatus()190 private void setWifiMeteredStatus(String netId, boolean metered) throws Exception { in setWifiMeteredStatus() argument191 Log.i(TAG, "Setting wi-fi network " + netId + " metered status to " + metered); in setWifiMeteredStatus()192 executeCmd("cmd netpolicy set metered-network " + netId + " " + metered); in setWifiMeteredStatus()195 private void assertWifiMeteredStatus(String netId, boolean metered) throws Exception { in assertWifiMeteredStatus() argument197 final String expectedResult = netId + ";" + metered; in assertWifiMeteredStatus()210 private void assertActiveNetworkMetered(boolean metered) { in assertActiveNetworkMetered() argument211 boolean actualMeteredStatus = !metered; in assertActiveNetworkMetered()214 if (actualMeteredStatus == metered) { in assertActiveNetworkMetered()[all …]
644 final boolean metered = mCm.isActiveNetworkMetered(); in setMeteredNetwork()645 if (metered) { in setMeteredNetwork()699 private String setWifiMeteredStatus(boolean metered) throws Exception { in setWifiMeteredStatus() argument707 return setWifiMeteredStatus(ssid, metered); in setWifiMeteredStatus()710 private String setWifiMeteredStatus(String ssid, boolean metered) throws Exception { in setWifiMeteredStatus() argument715 Log.i(TAG, "Setting wi-fi network " + netId + " metered status to " + metered); in setWifiMeteredStatus()716 final String setCommand = "cmd netpolicy set metered-network " + netId + " " + metered; in setWifiMeteredStatus()
93 public void setMetered(boolean metered) { in setMetered() argument94 this.mMetered = metered; in setMetered()273 public boolean metered; field in NetworkUsageStatsTest.NetworkCallback280 metered = false; in NetworkCallback()292 metered = !mCm.getNetworkCapabilities(network) in onAvailable()323 mNetworkInterfacesToTest[networkTypeIndex].setMetered(callback.metered); in shouldTestThisNetworkType()
614 private void setWifiMeteredStatus(String ssid, String metered) throws Exception { in setWifiMeteredStatus() argument615 final String setCommand = "cmd netpolicy set metered-network " + ssid + " " + metered; in setWifiMeteredStatus()617 assertEquals(getWifiMeteredStatus(ssid), metered); in setWifiMeteredStatus() local635 final boolean metered = !nc.hasCapability(NET_CAPABILITY_NOT_METERED); in waitForActiveNetworkMetered()636 if (metered == requestedMeteredness) { in waitForActiveNetworkMetered()