/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/ |
D | MdnsServiceInfoTest.java | 162 assertEquals(info.getInterfaceIndex(), INTERFACE_INDEX_UNSPECIFIED); in getInterfaceIndex_constructorWithDefaultValues_returnsMinusOne() 180 assertEquals(info.getInterfaceIndex(), 20); in getInterfaceIndex_constructorWithInterfaceIndex_returnsProvidedIndex() 254 assertEquals(beforeParcel.getInterfaceIndex(), afterParcel.getInterfaceIndex()); in parcelable_canBeParceledAndUnparceled()
|
D | MdnsResponseTests.java | 190 public void getInterfaceIndex() { in getInterfaceIndex() method in MdnsResponseTests 193 assertEquals(INTERFACE_INDEX, response1.getInterfaceIndex()); in getInterfaceIndex() 197 assertEquals(1234, response2.getInterfaceIndex()); in getInterfaceIndex() 223 assertEquals(response.getInterfaceIndex(), copy.getInterfaceIndex()); in copyConstructor()
|
D | MdnsSocketClientTests.java | 536 when(mockMulticastSocket.getInterfaceIndex()).thenReturn(21); in startDiscovery_andPropagateInterfaceIndex_includesInterfaceIndex() 550 .onResponseReceived(any(), argThat(key -> key.getInterfaceIndex() == 21)); in startDiscovery_andPropagateInterfaceIndex_includesInterfaceIndex() 559 when(mockMulticastSocket.getInterfaceIndex()).thenReturn(21); in startDiscovery_andDoNotPropagateInterfaceIndex_doesNotIncludeInterfaceIndex() 572 verify(mockMulticastSocket, never()).getInterfaceIndex(); in startDiscovery_andDoNotPropagateInterfaceIndex_doesNotIncludeInterfaceIndex() 574 .onResponseReceived(any(), argThat(key -> key.getInterfaceIndex() == -1)); in startDiscovery_andDoNotPropagateInterfaceIndex_doesNotIncludeInterfaceIndex()
|
D | MdnsServiceTypeClientTests.java | 779 assertEquals(socketKey.getInterfaceIndex(), serviceInfo.getInterfaceIndex()); in verifyServiceInfo() 845 assertEquals(socketKey.getInterfaceIndex(), initialServiceInfo.getInterfaceIndex()); in processIPv4Response_completeResponseForNewServiceInstance() 857 assertEquals(socketKey.getInterfaceIndex(), updatedServiceInfo.getInterfaceIndex()); in processIPv4Response_completeResponseForNewServiceInstance() 899 assertEquals(socketKey.getInterfaceIndex(), initialServiceInfo.getInterfaceIndex()); in processIPv6Response_getCorrectServiceInfo() 911 assertEquals(socketKey.getInterfaceIndex(), updatedServiceInfo.getInterfaceIndex()); in processIPv6Response_getCorrectServiceInfo() 925 && info.getInterfaceIndex() == socketKey.getInterfaceIndex() in verifyServiceRemovedCallback() 930 && info.getInterfaceIndex() == socketKey.getInterfaceIndex() in verifyServiceRemovedCallback()
|
D | MdnsResponseDecoderTests.java | 352 assertEquals(responses.valueAt(0).getInterfaceIndex(), 10); in decode_withInterfaceIndex_populatesInterfaceIndex()
|
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/ |
D | MdnsDiscoveryManager.java | 255 final int searchInterfaceIndex = searchOptions.getInterfaceIndex(); in handleRegisterListener() 262 || socketKey.getInterfaceIndex() != searchInterfaceIndex)) { in handleRegisterListener() 376 + "/" + socketKey.getInterfaceIndex(); in createServiceTypeClient()
|
D | SocketKey.java | 51 public int getInterfaceIndex() { in getInterfaceIndex() method in SocketKey
|
D | MdnsSocket.java | 128 public int getInterfaceIndex() { in getInterfaceIndex() method in MdnsSocket
|
D | MdnsSocketClient.java | 234 socketCreationCallback.onSocketCreated(new SocketKey(multicastSocket.getInterfaceIndex())); in notifyNetworkRequested() 451 : socket.getInterfaceIndex(), in receiveThreadMain()
|
D | MdnsServiceTypeClient.java | 352 response.getInterfaceIndex(), in buildMdnsServiceInfoFromResponse() 514 socketKey.getInterfaceIndex(), socketKey.getNetwork()); in processResponse() 673 socketKey.getInterfaceIndex(), socketKey.getNetwork()); in makeResponsesForResolve()
|
D | MdnsSearchOptions.java | 173 public int getInterfaceIndex() { in getInterfaceIndex() method in MdnsSearchOptions
|
D | MdnsResponse.java | 257 public int getInterfaceIndex() { in getInterfaceIndex() method in MdnsResponse
|
D | MdnsServiceInfo.java | 263 public int getInterfaceIndex() { in getInterfaceIndex() method in MdnsServiceInfo
|
/packages/modules/Connectivity/tests/common/java/android/net/nsd/ |
D | NsdServiceInfoTest.java | 198 assertEquals(original.getInterfaceIndex(), result.getInterfaceIndex()); in checkParcelable()
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | MulticastRoutingCoordinatorService.java | 154 private Integer getInterfaceIndex(String ifName) { in getInterfaceIndex() method in MulticastRoutingCoordinatorService 193 Integer iifIndex = getInterfaceIndex(iifName); in applyMulticastRoutingConfig() 315 int ifIndex = mDependencies.getInterfaceIndex(ifName); in maybeAddAndTrackInterface() 826 public int getInterfaceIndex(String ifName) { in getInterfaceIndex() method in MulticastRoutingCoordinatorService.Dependencies
|
D | ClatCoordinator.java | 165 public int getInterfaceIndex(String ifName) { in getInterfaceIndex() method in ClatCoordinator.Dependencies 622 final int ifIndex = mDeps.getInterfaceIndex(iface); in clatStart() 640 final int tunIfIndex = mDeps.getInterfaceIndex(tunIface); in clatStart()
|
D | NetworkDiagnostics.java | 200 mInterfaceIndex = getInterfaceIndex(mLinkProperties.getInterfaceName()); in NetworkDiagnostics() 259 private static Integer getInterfaceIndex(String ifname) { in getInterfaceIndex() method in NetworkDiagnostics
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | MulticastRoutingCoordinatorServiceTest.kt | 135 doReturn(mIfPhysicalIndex1).`when`(mDeps).getInterfaceIndex(mIfName1) in setUp() 136 doReturn(mIfPhysicalIndex2).`when`(mDeps).getInterfaceIndex(mIfName2) in setUp() 137 doReturn(mIfPhysicalIndex3).`when`(mDeps).getInterfaceIndex(mIfName3) in setUp()
|
D | ClatCoordinatorTest.java | 184 public int getInterfaceIndex(String ifName) { in getInterfaceIndex() method in ClatCoordinatorTest.TestDependencies 427 inOrder.verify(mDeps).getInterfaceIndex(eq(BASE_IFACE)); in testStartStopClatd() 441 inOrder.verify(mDeps).getInterfaceIndex(eq(STACKED_IFACE)); in testStartStopClatd()
|
/packages/modules/Connectivity/framework-t/src/android/net/nsd/ |
D | NsdServiceInfo.java | 112 mInterfaceIndex = other.getInterfaceIndex(); in NsdServiceInfo() 498 public int getInterfaceIndex() { in getInterfaceIndex() method in NsdServiceInfo
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/ |
D | RtNetlinkRouteMessage.java | 124 public int getInterfaceIndex() { in getInterfaceIndex() method in RtNetlinkRouteMessage
|
/packages/modules/Connectivity/service-t/src/com/android/server/ |
D | NsdService.java | 1152 ? 0 : info.getInterfaceIndex(); in processMessage() 1255 ? 0 : info.getInterfaceIndex(); in processMessage() 1599 serviceInfo.getInterfaceIndex()); in buildNsdServiceInfoFromMdnsEvent() 1737 addresses.add(InetAddressUtils.withScopeId(addr, serviceInfo.getInterfaceIndex())); in getInetAddresses() 2532 if (serviceInfo.getInterfaceIndex() != 0) { in getNetworkInterfaceIndex() 2533 return serviceInfo.getInterfaceIndex(); in getNetworkInterfaceIndex()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/ |
D | RtNetlinkRouteMessageTest.java | 91 assertEquals(735, routeMsg.getInterfaceIndex()); in assertRtmRouteMessage()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | NsdServiceTest.java | 465 assertEquals(interfaceIdx, foundInfo.getInterfaceIndex()); in testDiscoverOnTetheringDownstream() 522 assertEquals(interfaceIdx, resolvedService.getInterfaceIndex()); in testDiscoverOnTetheringDownstream() 563 assertEquals(interfaceIdx, foundInfo.getInterfaceIndex()); in testDiscoverOnTetheringDownstream_DiscoveryManager() 572 o -> o.getNetwork() == null && o.getInterfaceIndex() == interfaceIdx)); in testDiscoverOnTetheringDownstream_DiscoveryManager() 994 assertEquals(interfaceIndex, info.getInterfaceIndex()); in verifyUpdatedServiceInfo()
|
/packages/modules/NetworkStack/src/android/net/ip/ |
D | IpClientLinkObserver.java | 603 if (msg.getInterfaceIndex() != mIfindex) return; in processRtNetlinkRouteMessage()
|