/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | IPv6TetheringCoordinatorTest.java | 21 import static android.net.ip.IpServer.STATE_LOCAL_ONLY; 22 import static android.net.ip.IpServer.STATE_TETHERED; 43 import android.net.ip.IpServer; 69 private ArrayList<IpServer> mNotifyList; 77 mNotifyList = new ArrayList<IpServer>(); in setUp() 109 final IpServer firstServer = mock(IpServer.class); in testUpdateIpv6Upstream() 112 verify(firstServer).sendMessage(IpServer.CMD_IPV6_TETHER_UPDATE, 0, 0, null); in testUpdateIpv6Upstream() 116 final IpServer secondServer = mock(IpServer.class); in testUpdateIpv6Upstream() 124 verify(secondServer).sendMessage(IpServer.CMD_IPV6_TETHER_UPDATE, 0, 0, null); in testUpdateIpv6Upstream() 131 verify(firstServer).sendMessage(eq(IpServer.CMD_IPV6_TETHER_UPDATE), eq(-1), eq(0), in testUpdateIpv6Upstream() [all …]
|
D | PrivateAddressCoordinatorTest.java | 33 import android.net.ip.IpServer; 54 @Mock private IpServer mHotspotIpServer; 55 @Mock private IpServer mUsbIpServer; 56 @Mock private IpServer mEthernetIpServer; 216 verify(mHotspotIpServer, never()).sendMessage(IpServer.CMD_NOTIFY_PREFIX_CONFLICT); in testNoConflictUpstreamPrefix() 221 verify(mHotspotIpServer, never()).sendMessage(IpServer.CMD_NOTIFY_PREFIX_CONFLICT); in testNoConflictUpstreamPrefix() 225 verify(mHotspotIpServer, never()).sendMessage(IpServer.CMD_NOTIFY_PREFIX_CONFLICT); in testNoConflictUpstreamPrefix() 229 verify(mHotspotIpServer, never()).sendMessage(IpServer.CMD_NOTIFY_PREFIX_CONFLICT); in testNoConflictUpstreamPrefix() 234 verify(mHotspotIpServer).sendMessage(IpServer.CMD_NOTIFY_PREFIX_CONFLICT); in testNoConflictUpstreamPrefix() 244 verify(mHotspotIpServer, never()).sendMessage(IpServer.CMD_NOTIFY_PREFIX_CONFLICT); in testNoConflictUpstreamPrefix()
|
D | ConnectedClientsTrackerTest.kt | 25 import android.net.ip.IpServer 41 private val server1 = mock(IpServer::class.java) 42 private val server2 = mock(IpServer::class.java) 139 ipServers: Iterable<IpServer>, in assertNewClients()
|
D | TetheringTest.java | 114 import android.net.ip.IpServer; 281 public class MockIpServerDependencies extends IpServer.Dependencies { 341 ArrayList<IpServer> mIpv6CoordinatorNotifyList; 377 ArrayList<IpServer> notifyList, SharedLog log) { in getIPv6TetheringCoordinator() 383 public IpServer.Dependencies getIpServerDependencies() { in getIpServerDependencies() 808 eq(IpServer.STATE_TETHERED)); in sendIPv6TetherUpdates() 810 for (IpServer ipSrv : mTetheringDependencies.mIpv6CoordinatorNotifyList) { in sendIPv6TetherUpdates() 812 ipSrv.sendMessage(IpServer.CMD_IPV6_TETHER_UPDATE, 0, 0, in sendIPv6TetherUpdates()
|
D | BpfCoordinatorTest.java | 55 import android.net.ip.IpServer; 95 @Mock private IpServer mIpServer;
|
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | IPv6TetheringCoordinator.java | 25 import android.net.ip.IpServer; 53 public final IpServer ipServer; 58 Downstream(IpServer ipServer, int mode, short subnetId) { in Downstream() 65 private final ArrayList<IpServer> mNotifyList; 77 public IPv6TetheringCoordinator(ArrayList<IpServer> notifyList, SharedLog log) { in IPv6TetheringCoordinator() 86 public void addActiveDownstream(IpServer downstream, int mode) { in addActiveDownstream() 102 public void removeActiveDownstream(IpServer downstream) { in removeActiveDownstream() 142 for (IpServer ipServer : mNotifyList) { in stopIPv6TetheringOnAllInterfaces() 162 for (IpServer ipServer : mNotifyList) { in updateIPv6TetheringInterfaces() 164 ipServer.sendMessage(IpServer.CMD_IPV6_TETHER_UPDATE, getTtlAdjustment(), 0, lp); in updateIPv6TetheringInterfaces() [all …]
|
D | Tethering.java | 94 import android.net.ip.IpServer; 162 Tethering.class, TetherMainSM.class, IpServer.class 170 public final IpServer ipServer; 174 TetherState(IpServer ipServer) { in TetherState() 177 lastState = IpServer.STATE_AVAILABLE; in TetherState() 183 case IpServer.STATE_TETHERED: in isCurrentlyServing() 184 case IpServer.STATE_LOCAL_ONLY: in isCurrentlyServing() 225 private final LinkedHashSet<IpServer> mForwardedDownstreams; 731 changeInterfaceState(iface, IpServer.STATE_TETHERED); in onAvailable() 749 return tether(iface, IpServer.STATE_TETHERED); in tether() [all …]
|
D | PrivateAddressCoordinator.java | 26 import android.net.ip.IpServer; 69 private final ArraySet<IpServer> mDownstreams; 112 for (IpServer downstream : mDownstreams) { in handleMaybePrefixConflict() 118 downstream.sendMessage(IpServer.CMD_NOTIFY_PREFIX_CONFLICT); in handleMaybePrefixConflict() 149 public LinkAddress requestDownstreamAddress(final IpServer ipServer) { in requestDownstreamAddress() 197 public void releaseDownstream(final IpServer ipServer) { in releaseDownstream() 227 for (IpServer downstream : mDownstreams) { in isDownstreamPrefixInUse() 234 private IpPrefix getDownstreamPrefix(final IpServer downstream) { in getDownstreamPrefix() 250 for (IpServer ipServer : mDownstreams) { in dump()
|
D | TetheringDependencies.java | 24 import android.net.ip.IpServer; 85 ArrayList<IpServer> notifyList, SharedLog log) { in getIPv6TetheringCoordinator() 92 public abstract IpServer.Dependencies getIpServerDependencies(); in getIpServerDependencies()
|
D | BpfCoordinator.java | 37 import android.net.ip.IpServer; 146 private final HashMap<IpServer, LinkedHashMap<Inet6Address, Ipv6ForwardingRule>> 240 @NonNull final IpServer ipServer, @NonNull final Ipv6ForwardingRule rule) { in tetherOffloadRuleAdd() 281 @NonNull final IpServer ipServer, @NonNull final Ipv6ForwardingRule rule) { in tetherOffloadRuleRemove() 326 public void tetherOffloadRuleClear(@NonNull final IpServer ipServer) { in tetherOffloadRuleClear() 343 public void tetherOffloadRuleUpdate(@NonNull final IpServer ipServer, int newUpstreamIfindex) { in tetherOffloadRuleUpdate() 435 for (Map.Entry<IpServer, LinkedHashMap<Inet6Address, Ipv6ForwardingRule>> entry : in dumpIpv6ForwardingRules() 437 IpServer ipServer = entry.getKey(); in dumpIpv6ForwardingRules() 766 final HashMap<IpServer, LinkedHashMap<Inet6Address, Ipv6ForwardingRule>>
|
D | ConnectedClientsTracker.java | 24 import android.net.ip.IpServer; 80 Iterable<IpServer> ipServers, @Nullable List<WifiClient> wifiClients) { in updateConnectedClients() 90 for (IpServer server : ipServers) { in updateConnectedClients()
|
D | TetheringService.java | 44 import android.net.ip.IpServer; 342 public IpServer.Dependencies getIpServerDependencies() { in makeTetheringDependencies() 343 return new IpServer.Dependencies() { in makeTetheringDependencies()
|
/frameworks/base/packages/Tethering/tests/unit/src/android/net/ip/ |
D | IpServerTest.java | 30 import static android.net.ip.IpServer.STATE_AVAILABLE; 31 import static android.net.ip.IpServer.STATE_LOCAL_ONLY; 32 import static android.net.ip.IpServer.STATE_TETHERED; 33 import static android.net.ip.IpServer.STATE_UNAVAILABLE; 141 @Mock private IpServer.Callback mCallback; 146 @Mock private IpServer.Dependencies mDependencies; 156 private IpServer mIpServer; 185 mIpServer = new IpServer( in initStateMachine() 208 dispatchCommand(IpServer.CMD_TETHER_REQUESTED, STATE_TETHERED); in initTetheredStateMachine() 273 mIpServer = new IpServer(IFACE_NAME, mLooper.getLooper(), TETHERING_BLUETOOTH, mSharedLog, in startsOutAvailable() [all …]
|
/frameworks/base/packages/Tethering/ |
D | proguard.flags | 7 -keepclassmembers class android.net.ip.IpServer {
|
/frameworks/base/packages/Tethering/src/android/net/ip/ |
D | IpServer.java | 91 public class IpServer extends StateMachine { class 122 IpServer.class 136 public void updateInterfaceState(IpServer who, int state, int lastError) { } in updateInterfaceState() 144 public void updateLinkProperties(IpServer who, LinkProperties newLp) { } in updateLinkProperties() 284 public IpServer( in IpServer() method in IpServer
|
/frameworks/base/services/ |
D | art-profile | 199 HSPLandroid/net/ip/IpServer$Dependencies;->getNetdService()Landroid/net/INetd; 200 HSPLandroid/net/ip/IpServer$InitialState;->enter()V 201 HSPLandroid/net/ip/IpServer$InitialState;->processMessage(Landroid/os/Message;)Z 202 …IpServer;-><init>(Ljava/lang/String;Landroid/os/Looper;ILandroid/net/util/SharedLog;Landroid/os/IN… 203 HSPLandroid/net/ip/IpServer;->getStateString(I)Ljava/lang/String; 204 HSPLandroid/net/ip/IpServer;->interfaceName()Ljava/lang/String; 205 HSPLandroid/net/ip/IpServer;->interfaceType()I 206 HSPLandroid/net/ip/IpServer;->lastError()I 207 HSPLandroid/net/ip/IpServer;->logMessage(Lcom/android/internal/util/State;I)V 208 HSPLandroid/net/ip/IpServer;->updateUpstreamIPv6LinkProperties(Landroid/net/LinkProperties;)V [all …]
|