Home
last modified time | relevance | path

Searched refs:getNetworkInterfaceByName (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DInterfaceParams.java53 final NetworkInterface netif = getNetworkInterfaceByName(name); in getByName()
90 private static NetworkInterface getNetworkInterfaceByName(String name) { in getNetworkInterfaceByName() method in InterfaceParams
/packages/modules/Connectivity/tests/unit/java/com/android/server/ethernet/
DEthernetNetworkFactoryTest.java321 when(mDeps.getNetworkInterfaceByName(TEST_IFACE)).thenReturn(mInterfaceParams); in testProvisioningLoss()
334 when(mDeps.getNetworkInterfaceByName(eq(TEST_IFACE))).thenReturn(null); in testProvisioningLossForDisappearedInterface()
365 when(mDeps.getNetworkInterfaceByName(TEST_IFACE)).thenReturn(mInterfaceParams); in testNetworkUnwantedWithStaleNetworkAgent()
441 when(mDeps.getNetworkInterfaceByName(TEST_IFACE)).thenReturn(mInterfaceParams); in testIgnoreOnIpLayerStoppedCallbackForStaleCallback()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsSocketProviderTest.java144 doReturn(mTestNetworkIfaceWrapper).when(mDeps).getNetworkInterfaceByName(anyString()); in setUp()
152 .getNetworkInterfaceByName(LOCAL_ONLY_IFACE_NAME); in setUp()
154 .getNetworkInterfaceByName(WIFI_P2P_IFACE_NAME); in setUp()
155 doReturn(mTetheredIfaceWrapper).when(mDeps).getNetworkInterfaceByName(TETHERED_IFACE_NAME); in setUp()
/packages/modules/Connectivity/service-t/src/com/android/server/ethernet/
DEthernetNetworkFactory.java92 public InterfaceParams getNetworkInterfaceByName(String name) { in getNetworkInterfaceByName() method in EthernetNetworkFactory.Dependencies
551 if (null == mDeps.getNetworkInterfaceByName(name)) { in handleOnProvisioningFailure()
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsSocketProvider.java228 public NetworkInterfaceWrapper getNetworkInterfaceByName(@NonNull String interfaceName) in getNetworkInterfaceByName() method in MdnsSocketProvider.Dependencies
507 mDependencies.getNetworkInterfaceByName(interfaceName); in createSocket()