Home
last modified time | relevance | path

Searched refs:getInterfaceIndex (Results 1 – 25 of 25) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsServiceInfoTest.java162 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()
DMdnsResponseTests.java190 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()
DMdnsSocketClientTests.java536 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()
DMdnsServiceTypeClientTests.java779 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()
DMdnsResponseDecoderTests.java352 assertEquals(responses.valueAt(0).getInterfaceIndex(), 10); in decode_withInterfaceIndex_populatesInterfaceIndex()
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsDiscoveryManager.java255 final int searchInterfaceIndex = searchOptions.getInterfaceIndex(); in handleRegisterListener()
262 || socketKey.getInterfaceIndex() != searchInterfaceIndex)) { in handleRegisterListener()
376 + "/" + socketKey.getInterfaceIndex(); in createServiceTypeClient()
DSocketKey.java51 public int getInterfaceIndex() { in getInterfaceIndex() method in SocketKey
DMdnsSocket.java128 public int getInterfaceIndex() { in getInterfaceIndex() method in MdnsSocket
DMdnsSocketClient.java234 socketCreationCallback.onSocketCreated(new SocketKey(multicastSocket.getInterfaceIndex())); in notifyNetworkRequested()
451 : socket.getInterfaceIndex(), in receiveThreadMain()
DMdnsServiceTypeClient.java352 response.getInterfaceIndex(), in buildMdnsServiceInfoFromResponse()
514 socketKey.getInterfaceIndex(), socketKey.getNetwork()); in processResponse()
673 socketKey.getInterfaceIndex(), socketKey.getNetwork()); in makeResponsesForResolve()
DMdnsSearchOptions.java173 public int getInterfaceIndex() { in getInterfaceIndex() method in MdnsSearchOptions
DMdnsResponse.java257 public int getInterfaceIndex() { in getInterfaceIndex() method in MdnsResponse
DMdnsServiceInfo.java263 public int getInterfaceIndex() { in getInterfaceIndex() method in MdnsServiceInfo
/packages/modules/Connectivity/tests/common/java/android/net/nsd/
DNsdServiceInfoTest.java198 assertEquals(original.getInterfaceIndex(), result.getInterfaceIndex()); in checkParcelable()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DMulticastRoutingCoordinatorService.java154 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
DClatCoordinator.java165 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()
DNetworkDiagnostics.java200 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/
DMulticastRoutingCoordinatorServiceTest.kt135 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()
DClatCoordinatorTest.java184 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/
DNsdServiceInfo.java112 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/
DRtNetlinkRouteMessage.java124 public int getInterfaceIndex() { in getInterfaceIndex() method in RtNetlinkRouteMessage
/packages/modules/Connectivity/service-t/src/com/android/server/
DNsdService.java1152 ? 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/
DRtNetlinkRouteMessageTest.java91 assertEquals(735, routeMsg.getInterfaceIndex()); in assertRtmRouteMessage()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DNsdServiceTest.java465 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/
DIpClientLinkObserver.java603 if (msg.getInterfaceIndex() != mIfindex) return; in processRtNetlinkRouteMessage()