Home
last modified time | relevance | path

Searched refs:ifName (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/packages/Tethering/src/android/net/util/
DBaseNetdUnsolicitedEventListener.java33 public void onQuotaLimitReached(@NonNull String alertName, @NonNull String ifName) { } in onQuotaLimitReached() argument
36 public void onInterfaceDnsServerInfo(@NonNull String ifName, long lifetimeS, in onInterfaceDnsServerInfo() argument
40 public void onInterfaceAddressUpdated(@NonNull String addr, String ifName, int flags, in onInterfaceAddressUpdated() argument
44 public void onInterfaceAddressRemoved(@NonNull String addr, @NonNull String ifName, int flags, in onInterfaceAddressRemoved() argument
48 public void onInterfaceAdded(@NonNull String ifName) { } in onInterfaceAdded() argument
51 public void onInterfaceRemoved(@NonNull String ifName) { } in onInterfaceRemoved() argument
54 public void onInterfaceChanged(@NonNull String ifName, boolean up) { } in onInterfaceChanged() argument
57 public void onInterfaceLinkStateChanged(@NonNull String ifName, boolean up) { } in onInterfaceLinkStateChanged() argument
61 @NonNull String ifName) { } in onRouteChanged() argument
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DOffloadHardwareInterfaceTest.java168 final String ifName = "wlan1"; in testUpdateDownstreamPrefix() local
170 mOffloadHw.addDownstreamPrefix(ifName, prefix); in testUpdateDownstreamPrefix()
171 verify(mIOffloadControl).addDownstream(eq(ifName), eq(prefix), any()); in testUpdateDownstreamPrefix()
173 mOffloadHw.removeDownstreamPrefix(ifName, prefix); in testUpdateDownstreamPrefix()
174 verify(mIOffloadControl).removeDownstream(eq(ifName), eq(prefix), any()); in testUpdateDownstreamPrefix()
DTetheringTest.java289 public InterfaceParams getInterfaceParams(String ifName) { in getInterfaceParams() argument
290 assertTrue("Non-mocked interface " + ifName, in getInterfaceParams()
291 ifName.equals(TEST_USB_IFNAME) in getInterfaceParams()
292 || ifName.equals(TEST_WLAN_IFNAME) in getInterfaceParams()
293 || ifName.equals(TEST_MOBILE_IFNAME) in getInterfaceParams()
294 || ifName.equals(TEST_P2P_IFNAME) in getInterfaceParams()
295 || ifName.equals(TEST_NCM_IFNAME) in getInterfaceParams()
296 || ifName.equals(TEST_ETH_IFNAME)); in getInterfaceParams()
300 return new InterfaceParams(ifName, ArrayUtils.indexOf(ifaces, ifName) + IFINDEX_OFFSET, in getInterfaceParams()
305 public void makeDhcpServer(String ifName, DhcpServingParamsParcel params, in makeDhcpServer() argument
[all …]
/frameworks/base/services/net/java/android/net/
DNetworkStackClient.java133 public void makeDhcpServer(final String ifName, final DhcpServingParamsParcel params, in makeDhcpServer() argument
137 connector.makeDhcpServer(ifName, params, cb); in makeDhcpServer()
149 public void makeIpClient(String ifName, IIpClientCallbacks cb) { in makeIpClient() argument
152 connector.makeIpClient(ifName, cb); in makeIpClient()
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java670 public void onQuotaLimitReached(String alertName, String ifName) in onQuotaLimitReached() argument
672 mDaemonHandler.post(() -> notifyLimitReached(alertName, ifName)); in onQuotaLimitReached()
676 public void onInterfaceDnsServerInfo(String ifName, in onInterfaceDnsServerInfo() argument
678 mDaemonHandler.post(() -> notifyInterfaceDnsServerInfo(ifName, lifetime, servers)); in onInterfaceDnsServerInfo()
683 String ifName, int flags, int scope) throws RemoteException { in onInterfaceAddressUpdated() argument
685 mDaemonHandler.post(() -> notifyAddressUpdated(ifName, address)); in onInterfaceAddressUpdated()
690 String ifName, int flags, int scope) throws RemoteException { in onInterfaceAddressRemoved() argument
692 mDaemonHandler.post(() -> notifyAddressRemoved(ifName, address)); in onInterfaceAddressRemoved()
696 public void onInterfaceAdded(String ifName) throws RemoteException { in onInterfaceAdded() argument
697 mDaemonHandler.post(() -> notifyInterfaceAdded(ifName)); in onInterfaceAdded()
[all …]
DConnectivityService.java6098 rip.ifName = route.getInterface(); in convertRouteInfo()
/frameworks/base/services/net/java/android/net/ip/
DIpClientUtil.java78 public static void makeIpClient(Context context, String ifName, IpClientCallbacks callback) { in makeIpClient() argument
80 .makeIpClient(ifName, new IpClientCallbacksProxy(callback)); in makeIpClient()
/frameworks/native/cmds/service/
Dservice.cpp137 String16 ifName = get_interface_name(service); in main() local
139 if (service != nullptr && ifName.size() > 0) { in main()
143 data.writeInterfaceToken(ifName); in main()
/frameworks/base/services/core/java/com/android/server/connectivity/
DIpConnectivityEventBuilder.java163 ev.ifName = ifname; in buildEvent()
348 } else if (ev.ifName != null) { in inferLinkLayer()
349 linkLayer = ifnameToLinkLayer(ev.ifName); in inferLinkLayer()
355 ev.ifName = ""; in inferLinkLayer()
/frameworks/base/packages/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java342 inOrder.verify(mNetd).interfaceSetCfg(argThat(cfg -> IFACE_NAME.equals(cfg.ifName))); in canUnrequestTethering()
359 IFACE_NAME.equals(cfg.ifName) && assertContainsFlag(cfg.flags, IF_STATE_UP))); in canBeTetheredAsUsb()
380 IFACE_NAME.equals(cfg.ifName) && assertNotContainsFlag(cfg.flags, IF_STATE_UP))); in canBeTetheredAsWifiP2p()
462 inOrder.verify(mNetd).interfaceSetCfg(argThat(cfg -> IFACE_NAME.equals(cfg.ifName))); in canUnrequestTetheringWithUpstream()
484 argThat(cfg -> IFACE_NAME.equals(cfg.ifName))); in interfaceDownLeadsToUnavailable()
501 argThat(cfg -> IFACE_NAME.equals(cfg.ifName))); in usbShouldBeTornDownOnTetherError()
505 argThat(cfg -> IFACE_NAME.equals(cfg.ifName))); in usbShouldBeTornDownOnTetherError()
523 argThat(cfg -> IFACE_NAME.equals(cfg.ifName))); in shouldTearDownUsbOnUpstreamError()
/frameworks/base/packages/Tethering/src/android/net/ip/
DIpServer.java174 public InterfaceParams getInterfaceParams(String ifName) { in getInterfaceParams() argument
175 return InterfaceParams.getByName(ifName); in getInterfaceParams()
179 public int getIfindex(String ifName) { in getIfindex() argument
181 return NetworkInterface.getByName(ifName).getIndex(); in getIfindex()
183 Log.e(TAG, "Can't determine interface index for interface " + ifName); in getIfindex()
189 public abstract void makeDhcpServer(String ifName, DhcpServingParamsParcel params, in makeDhcpServer() argument
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DTetheringService.java345 public void makeDhcpServer(String ifName, DhcpServingParamsParcel params, in makeTetheringDependencies()
351 service.makeDhcpServer(ifName, params, cb); in makeTetheringDependencies()
DTethering.java455 public void onInterfaceChanged(String ifName, boolean up) { in onInterfaceChanged() argument
456 mHandler.post(() -> interfaceStatusChanged(ifName, up)); in onInterfaceChanged()
460 public void onInterfaceLinkStateChanged(String ifName, boolean up) { in onInterfaceLinkStateChanged() argument
461 mHandler.post(() -> interfaceLinkStateChanged(ifName, up)); in onInterfaceLinkStateChanged()
465 public void onInterfaceAdded(String ifName) { in onInterfaceAdded() argument
466 mHandler.post(() -> interfaceAdded(ifName)); in onInterfaceAdded()
470 public void onInterfaceRemoved(String ifName) { in onInterfaceRemoved() argument
471 mHandler.post(() -> interfaceRemoved(ifName)); in onInterfaceRemoved()
DBpfCoordinator.java590 private int getInterfaceIndexFromRules(@NonNull String ifName) { in getInterfaceIndexFromRules() argument
595 if (TextUtils.equals(ifName, mInterfaceNames.get(upstreamIfindex))) { in getInterfaceIndexFromRules()
/frameworks/base/packages/Tethering/tests/integration/src/android/net/
DEthernetTetheringTest.java311 public void onError(String ifName, int error) { in onError() argument
315 fail("TetheringEventCallback got error:" + error + " on iface " + ifName); in onError()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java1130 for (String ifName: potential) { in selectInterfaceForRequest()
1131 if (!used.contains(ifName)) { in selectInterfaceForRequest()
1132 return ifName; in selectInterfaceForRequest()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHalTest.java2214 public void answer(String ifName, byte[] bssid, in testStartWpsPinDisplay_success()
2236 public void answer(String ifName, byte[] bssid, in testStartWpsPinDisplay_invalidArguments()
2259 public void answer(String ifName, byte[] bssid, in testStartWpsPinDisplay_failure()
/frameworks/base/packages/Tethering/common/TetheringLib/src/android/net/
DTetheringManager.java952 default void onError(@NonNull String ifName, @TetheringIfaceError int error) {}
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java7052 assertEquals(route.getInterface(), parcel.ifName); in assertRouteInfoParcelMatches()