Home
last modified time | relevance | path

Searched refs:ipServer (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DIPv6TetheringCoordinator.java54 public final IpServer ipServer; field in IPv6TetheringCoordinator.Downstream
59 Downstream(IpServer ipServer, int mode, short subnetId) { in Downstream() argument
60 this.ipServer = ipServer; in Downstream()
143 for (IpServer ipServer : mNotifyList) { in stopIPv6TetheringOnAllInterfaces()
144 stopIPv6TetheringOn(ipServer); in stopIPv6TetheringOnAllInterfaces()
163 for (IpServer ipServer : mNotifyList) { in updateIPv6TetheringInterfaces()
164 final LinkProperties lp = getInterfaceIPv6LinkProperties(ipServer); in updateIPv6TetheringInterfaces()
165 ipServer.sendMessage(IpServer.CMD_IPV6_TETHER_UPDATE, getTtlAdjustment(), 0, lp); in updateIPv6TetheringInterfaces()
187 private LinkProperties getInterfaceIPv6LinkProperties(IpServer ipServer) { in getInterfaceIPv6LinkProperties() argument
188 final Downstream ds = findDownstream(ipServer); in getInterfaceIPv6LinkProperties()
[all …]
DBpfCoordinator.java590 public void startMonitoring(@NonNull final IpServer ipServer) { in startMonitoring() argument
594 if (mMonitoringIpServers.contains(ipServer)) { in startMonitoring()
595 Log.wtf(TAG, "The same downstream " + ipServer.interfaceName() in startMonitoring()
605 mMonitoringIpServers.add(ipServer); in startMonitoring()
612 public void stopMonitoring(@NonNull final IpServer ipServer) { in stopMonitoring() argument
617 if (!mMonitoringIpServers.contains(ipServer)) { in stopMonitoring()
619 + ipServer.interfaceName()); in stopMonitoring()
623 mMonitoringIpServers.remove(ipServer); in stopMonitoring()
636 @NonNull final IpServer ipServer, @NonNull final Ipv6UpstreamRule rule) { in addIpv6UpstreamRule()
652 ipServer, k -> new ArraySet<Ipv6UpstreamRule>()); in addIpv6UpstreamRule()
[all …]
DPrivateAddressCoordinator.java174 public LinkAddress requestDownstreamAddress(final IpServer ipServer, final int scope, in requestDownstreamAddress() argument
177 && ipServer.interfaceType() == TETHERING_WIFI_P2P) { in requestDownstreamAddress()
181 final AddressKey addrKey = new AddressKey(ipServer.interfaceType(), scope); in requestDownstreamAddress()
188 mDownstreams.add(ipServer); in requestDownstreamAddress()
198 mDownstreams.add(ipServer); in requestDownstreamAddress()
363 public void releaseDownstream(final IpServer ipServer) { in releaseDownstream() argument
364 mDownstreams.remove(ipServer); in releaseDownstream()
465 for (IpServer ipServer : mDownstreams) { in dump()
466 pw.println(ipServer.interfaceType() + " - " + ipServer.getAddress()); in dump()
DTethering.java191 public final IpServer ipServer; field in Tethering.TetherState
198 TetherState(IpServer ipServer, boolean isNcm) { in TetherState() argument
199 this.ipServer = ipServer; in TetherState()
1000 final int type = tetherState.ipServer.interfaceType(); in tether()
1005 tetherState.ipServer.enable(requestedState, request); in tether()
1029 tetherState.ipServer.unwanted(); in untether()
1093 final int type = tetherState.ipServer.interfaceType(); in sendTetherStateChangedBroadcast()
1271 final int type = mTetherStates.valueAt(i).ipServer.interfaceType(); in maybeStopUsbProvisioning()
1439 mTetherStates.get(ifname).ipServer.unwanted(); in disableWifiIpServingCommon()
1454 final IpServer ipServer = mTetherStates.valueAt(i).ipServer; in disableWifiIpServingCommon() local
[all …]
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java623 final IpServer ipServer = new IpServer( in makeAndStartIpServer() local
627 ipServer.start(); in makeAndStartIpServer()
628 ipServer.sendMessage(IpServer.CMD_TETHER_REQUESTED, STATE_TETHERED); in makeAndStartIpServer()
634 dispatchTetherConnectionChanged(ipServer, UPSTREAM_IFACE, lp, 0); in makeAndStartIpServer()
637 return ipServer; in makeAndStartIpServer()
640 private void dispatchTetherConnectionChanged(IpServer ipServer, String upstreamIface, in dispatchTetherConnectionChanged() argument
642 dispatchTetherConnectionChanged(ipServer, upstreamIface); in dispatchTetherConnectionChanged()
643 ipServer.sendMessage(IpServer.CMD_IPV6_TETHER_UPDATE, ttlAdjustment, 0, v6lp); in dispatchTetherConnectionChanged()
647 private void dispatchTetherConnectionChanged(IpServer ipServer, String upstreamIface) { in dispatchTetherConnectionChanged() argument
649 ipServer.sendMessage(IpServer.CMD_TETHER_CONNECTION_CHANGED, ifs); in dispatchTetherConnectionChanged()
[all …]
DPrivateAddressCoordinatorTest.java113 private LinkAddress requestDownstreamAddress(final IpServer ipServer, int scope, in requestDownstreamAddress() argument
116 ipServer, scope, useLastAddress); in requestDownstreamAddress()
117 when(ipServer.getAddress()).thenReturn(address); in requestDownstreamAddress()
522 private void verifyNotifyConflictAndRelease(final IpServer ipServer) throws Exception { in verifyNotifyConflictAndRelease() argument
523 verify(ipServer).sendMessage(IpServer.CMD_NOTIFY_PREFIX_CONFLICT); in verifyNotifyConflictAndRelease()
524 mPrivateAddressCoordinator.releaseDownstream(ipServer); in verifyNotifyConflictAndRelease()
525 reset(ipServer); in verifyNotifyConflictAndRelease()