Lines Matching refs:iface

232     private void notifyInterfaceStatusChanged(String iface, boolean up) {
236 mObservers.getBroadcastItem(i).interfaceStatusChanged(iface, up);
247 private void notifyInterfaceLinkStateChanged(String iface, boolean up) {
251 mObservers.getBroadcastItem(i).interfaceLinkStateChanged(iface, up);
261 private void notifyInterfaceAdded(String iface) {
265 mObservers.getBroadcastItem(i).interfaceAdded(iface);
275 private void notifyInterfaceRemoved(String iface) {
278 mActiveAlerts.remove(iface);
279 mActiveQuotas.remove(iface);
284 mObservers.getBroadcastItem(i).interfaceRemoved(iface);
294 private void notifyLimitReached(String limitName, String iface) {
298 mObservers.getBroadcastItem(i).limitReached(limitName, iface);
484 public InterfaceConfiguration getInterfaceConfig(String iface) {
489 event = mConnector.execute("interface", "getcfg", iface);
528 public void setInterfaceConfig(String iface, InterfaceConfiguration cfg) {
535 final Command cmd = new Command("interface", "setcfg", iface,
550 public void setInterfaceDown(String iface) {
552 final InterfaceConfiguration ifcg = getInterfaceConfig(iface);
554 setInterfaceConfig(iface, ifcg);
558 public void setInterfaceUp(String iface) {
560 final InterfaceConfiguration ifcg = getInterfaceConfig(iface);
562 setInterfaceConfig(iface, ifcg);
566 public void setInterfaceIpv6PrivacyExtensions(String iface, boolean enable) {
570 "interface", "ipv6privacyextensions", iface, enable ? "enable" : "disable");
579 public void clearInterfaceAddresses(String iface) {
582 mConnector.execute("interface", "clearaddrs", iface);
589 public void enableIpv6(String iface) {
592 mConnector.execute("interface", "ipv6", iface, "enable");
599 public void disableIpv6(String iface) {
602 mConnector.execute("interface", "ipv6", iface, "disable");
691 // iface dest-addr gateway-addr flags refcnt use metric netmask mtu window IRTT
696 String iface = fields[0];
698 if (interfaceName.equals(iface)) {
727 // dest-addr prefixlength ?? ?? gateway-addr ?? ?? ?? ?? iface
731 String iface = fields[9].trim();
732 if (interfaceName.equals(iface)) {
839 public void startReverseTethering(String iface)
846 cmd += " " + iface;
853 BluetoothTetheringDataTracker.getInstance().startReverseTether(iface);
869 public void tetherInterface(String iface) {
872 mConnector.execute("tether", "interface", "add", iface);
879 public void untetherInterface(String iface) {
882 mConnector.execute("tether", "interface", "remove", iface);
1076 public void addIdleTimer(String iface, int timeout, String label) {
1082 IdleTimerParams params = mActiveIdleTimers.get(iface);
1090 mConnector.execute("idletimer", "add", iface, Integer.toString(timeout), label);
1094 mActiveIdleTimers.put(iface, new IdleTimerParams(timeout, label));
1099 public void removeIdleTimer(String iface) {
1105 IdleTimerParams params = mActiveIdleTimers.get(iface);
1111 mConnector.execute("idletimer", "remove", iface,
1116 mActiveIdleTimers.remove(iface);
1139 public void setInterfaceQuota(String iface, long quotaBytes) {
1147 if (mActiveQuotas.containsKey(iface)) {
1148 throw new IllegalStateException("iface " + iface + " already has quota");
1153 mConnector.execute("bandwidth", "setiquota", iface, quotaBytes);
1154 mActiveQuotas.put(iface, quotaBytes);
1162 public void removeInterfaceQuota(String iface) {
1170 if (!mActiveQuotas.containsKey(iface)) {
1175 mActiveQuotas.remove(iface);
1176 mActiveAlerts.remove(iface);
1180 mConnector.execute("bandwidth", "removeiquota", iface);
1188 public void setInterfaceAlert(String iface, long alertBytes) {
1196 if (!mActiveQuotas.containsKey(iface)) {
1197 throw new IllegalStateException("setting alert requires existing quota on iface");
1201 if (mActiveAlerts.containsKey(iface)) {
1202 throw new IllegalStateException("iface " + iface + " already has alert");
1207 mConnector.execute("bandwidth", "setinterfacealert", iface, alertBytes);
1208 mActiveAlerts.put(iface, alertBytes);
1216 public void removeInterfaceAlert(String iface) {
1224 if (!mActiveAlerts.containsKey(iface)) {
1231 mConnector.execute("bandwidth", "removeinterfacealert", iface);
1232 mActiveAlerts.remove(iface);
1332 entry.iface = ifaceIn;
1348 public void setInterfaceThrottle(String iface, int rxKbps, int txKbps) {
1351 mConnector.execute("interface", "setthrottle", iface, rxKbps, txKbps);
1357 private int getInterfaceThrottle(String iface, boolean rx) {
1360 event = mConnector.execute("interface", "getthrottle", iface, rx ? "rx" : "tx");
1379 public int getInterfaceRxThrottle(String iface) {
1381 return getInterfaceThrottle(iface, true);
1385 public int getInterfaceTxThrottle(String iface) {
1387 return getInterfaceThrottle(iface, false);
1391 public void setDefaultInterfaceForDns(String iface) {
1394 mConnector.execute("resolver", "setdefaultif", iface);
1401 public void setDnsServersForInterface(String iface, String[] servers) {
1404 final Command cmd = new Command("resolver", "setifdns", iface);
1430 public void flushInterfaceDnsCache(String iface) {
1433 mConnector.execute("resolver", "flushif", iface);
1457 public void setFirewallInterfaceRule(String iface, boolean allow) {
1462 mConnector.execute("firewall", "set_interface_rule", iface, rule);