Home
last modified time | relevance | path

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

12

/packages/modules/NetworkStack/src/com/android/server/
DNetworkObserverRegistry.java123 public void onQuotaLimitReached(String alertName, String ifName) { in onQuotaLimitReached() argument
124 invokeForAllObservers(o -> o.onQuotaLimitReached(alertName, ifName)); in onQuotaLimitReached()
128 public void onInterfaceDnsServerInfo(String ifName, long lifetime, String[] servers) { in onInterfaceDnsServerInfo() argument
129 invokeForAllObservers(o -> o.onInterfaceDnsServerInfo(ifName, lifetime, servers)); in onInterfaceDnsServerInfo()
133 public void onInterfaceAddressUpdated(String addr, String ifName, int flags, int scope) { in onInterfaceAddressUpdated() argument
135 invokeForAllObservers(o -> o.onInterfaceAddressUpdated(address, ifName)); in onInterfaceAddressUpdated()
140 String ifName, int flags, int scope) { in onInterfaceAddressRemoved() argument
142 invokeForAllObservers(o -> o.onInterfaceAddressRemoved(address, ifName)); in onInterfaceAddressRemoved()
146 public void onInterfaceAdded(String ifName) { in onInterfaceAdded() argument
147 invokeForAllObservers(o -> o.onInterfaceAdded(ifName)); in onInterfaceAdded()
[all …]
DNetworkObserver.java30 default void onInterfaceChanged(String ifName, boolean up) {} in onInterfaceChanged() argument
35 default void onInterfaceRemoved(String ifName) {} in onInterfaceRemoved() argument
41 default void onInterfaceAddressUpdated(LinkAddress address, String ifName) {} in onInterfaceAddressUpdated() argument
47 default void onInterfaceAddressRemoved(LinkAddress address, String ifName) {} in onInterfaceAddressRemoved() argument
52 default void onInterfaceLinkStateChanged(String ifName, boolean up) {} in onInterfaceLinkStateChanged() argument
57 default void onInterfaceAdded(String ifName) {} in onInterfaceAdded() argument
69 default void onQuotaLimitReached(String alertName, String ifName) {} in onQuotaLimitReached() argument
75 default void onInterfaceDnsServerInfo(String ifName, long lifetime, String[] servers) {} in onInterfaceDnsServerInfo() argument
DNetworkStackService.java158 public DhcpServer makeDhcpServer(@NonNull Context context, @NonNull String ifName, in makeDhcpServer() argument
160 return new DhcpServer(context, ifName, params, log); in makeDhcpServer()
173 public IpClient makeIpClient(@NonNull Context context, @NonNull String ifName, in makeIpClient() argument
176 return new IpClient(context, ifName, cb, observerRegistry, nsServiceManager); in makeIpClient()
342 public void makeDhcpServer(@NonNull String ifName, @NonNull DhcpServingParamsParcel params, in makeDhcpServer() argument
350 ifName, in makeDhcpServer()
352 mLog.forSubComponent(ifName + ".DHCP")); in makeDhcpServer()
376 public void makeIpClient(String ifName, IIpClientCallbacks cb) throws RemoteException { in makeIpClient() argument
380 mContext, ifName, cb, mObserverRegistry, this); in makeIpClient()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DNetdWrapper.java85 public void onQuotaLimitReached(String alertName, String ifName) in onQuotaLimitReached() argument
91 public void onInterfaceDnsServerInfo(String ifName, in onInterfaceDnsServerInfo() argument
98 String ifName, int flags, int scope) throws RemoteException { in onInterfaceAddressUpdated() argument
104 String ifName, int flags, int scope) throws RemoteException { in onInterfaceAddressRemoved() argument
109 public void onInterfaceAdded(String ifName) throws RemoteException { in onInterfaceAdded() argument
114 public void onInterfaceRemoved(String ifName) throws RemoteException { in onInterfaceRemoved() argument
119 public void onInterfaceChanged(String ifName, boolean up) in onInterfaceChanged() argument
121 mHandler.post(() -> notifyInterfaceStatusChanged(ifName, up)); in onInterfaceChanged()
125 public void onInterfaceLinkStateChanged(String ifName, boolean up) in onInterfaceLinkStateChanged() argument
127 mHandler.post(() -> notifyInterfaceLinkStateChanged(ifName, up)); in onInterfaceLinkStateChanged()
[all …]
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/networkstack/
DNetworkStackClientBase.java53 public void makeDhcpServer(final String ifName, final DhcpServingParamsParcel params, in makeDhcpServer() argument
57 connector.makeDhcpServer(ifName, params, cb); in makeDhcpServer()
69 public void makeIpClient(String ifName, IIpClientCallbacks cb) { in makeIpClient() argument
72 connector.makeIpClient(ifName, cb); in makeIpClient()
/packages/modules/NetworkStack/common/moduleutils/src/android/net/shared/
DRouteUtils.java95 final String ifName = route.getInterface(); in modifyRoute() local
102 netd.networkAddRoute(netId, ifName, dst, nextHop); in modifyRoute()
105 netd.networkRemoveRoute(netId, ifName, dst, nextHop); in modifyRoute()
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/
DCtsTetheringUtils.java238 public void onError(String ifName, int error) { in onError() argument
239 mErrorIface = ifName; in onError()
244 public void onError(TetheringInterface ifName, int error) { in onError() argument
245 TetheringEventCallback.super.onError(ifName, error); in onError()
246 assertEquals(ifName.getInterface(), mErrorIface); in onError()
248 mHistory.add(new CallbackValue(CallbackType.ON_ERROR, ifName, error)); in onError()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DOffloadHardwareInterfaceTest.java210 final String ifName = "wlan1"; in testUpdateDownstreamPrefix() local
212 mOffloadHw.addDownstreamPrefix(ifName, prefix); in testUpdateDownstreamPrefix()
213 verify(mIOffloadControl).addDownstream(eq(ifName), eq(prefix), any()); in testUpdateDownstreamPrefix()
215 mOffloadHw.removeDownstreamPrefix(ifName, prefix); in testUpdateDownstreamPrefix()
216 verify(mIOffloadControl).removeDownstream(eq(ifName), eq(prefix), any()); in testUpdateDownstreamPrefix()
DTetheringTest.java354 public InterfaceParams getInterfaceParams(String ifName) { in getInterfaceParams() argument
355 assertTrue("Non-mocked interface " + ifName, in getInterfaceParams()
356 ifName.equals(TEST_RNDIS_IFNAME) in getInterfaceParams()
357 || ifName.equals(TEST_WLAN_IFNAME) in getInterfaceParams()
358 || ifName.equals(TEST_WIFI_IFNAME) in getInterfaceParams()
359 || ifName.equals(TEST_MOBILE_IFNAME) in getInterfaceParams()
360 || ifName.equals(TEST_DUN_IFNAME) in getInterfaceParams()
361 || ifName.equals(TEST_P2P_IFNAME) in getInterfaceParams()
362 || ifName.equals(TEST_NCM_IFNAME) in getInterfaceParams()
363 || ifName.equals(TEST_ETH_IFNAME) in getInterfaceParams()
[all …]
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/5/android/net/
DINetworkStackConnector.aidl21 …oneway void makeDhcpServer(in String ifName, in android.net.dhcp.DhcpServingParamsParcel params, i… in makeDhcpServer() argument
23 oneway void makeIpClient(in String ifName, in android.net.ip.IIpClientCallbacks callbacks); in makeIpClient() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/2/android/net/
DINetworkStackConnector.aidl3 …oneway void makeDhcpServer(in String ifName, in android.net.dhcp.DhcpServingParamsParcel params, i… in makeDhcpServer() argument
5 oneway void makeIpClient(in String ifName, in android.net.ip.IIpClientCallbacks callbacks); in makeIpClient() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/7/android/net/
DINetworkStackConnector.aidl21 …oneway void makeDhcpServer(in String ifName, in android.net.dhcp.DhcpServingParamsParcel params, i… in makeDhcpServer() argument
23 oneway void makeIpClient(in String ifName, in android.net.ip.IIpClientCallbacks callbacks); in makeIpClient() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/1/android/net/
DINetworkStackConnector.aidl3 …oneway void makeDhcpServer(in String ifName, in android.net.dhcp.DhcpServingParamsParcel params, i… in makeDhcpServer() argument
5 oneway void makeIpClient(in String ifName, in android.net.ip.IIpClientCallbacks callbacks); in makeIpClient() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/6/android/net/
DINetworkStackConnector.aidl21 …oneway void makeDhcpServer(in String ifName, in android.net.dhcp.DhcpServingParamsParcel params, i… in makeDhcpServer() argument
23 oneway void makeIpClient(in String ifName, in android.net.ip.IIpClientCallbacks callbacks); in makeIpClient() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/3/android/net/
DINetworkStackConnector.aidl20 …oneway void makeDhcpServer(in String ifName, in android.net.dhcp.DhcpServingParamsParcel params, i… in makeDhcpServer() argument
22 oneway void makeIpClient(in String ifName, in android.net.ip.IIpClientCallbacks callbacks); in makeIpClient() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/4/android/net/
DINetworkStackConnector.aidl3 …oneway void makeDhcpServer(in String ifName, in android.net.dhcp.DhcpServingParamsParcel params, i… in makeDhcpServer() argument
5 oneway void makeIpClient(in String ifName, in android.net.ip.IIpClientCallbacks callbacks); in makeIpClient() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/8/android/net/
DINetworkStackConnector.aidl21 …oneway void makeDhcpServer(in String ifName, in android.net.dhcp.DhcpServingParamsParcel params, i… in makeDhcpServer() argument
23 oneway void makeIpClient(in String ifName, in android.net.ip.IIpClientCallbacks callbacks); in makeIpClient() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/9/android/net/
DINetworkStackConnector.aidl21 …oneway void makeDhcpServer(in String ifName, in android.net.dhcp.DhcpServingParamsParcel params, i… in makeDhcpServer() argument
23 oneway void makeIpClient(in String ifName, in android.net.ip.IIpClientCallbacks callbacks); in makeIpClient() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/10/android/net/
DINetworkStackConnector.aidl22 …oneway void makeDhcpServer(in String ifName, in android.net.dhcp.DhcpServingParamsParcel params, i… in makeDhcpServer() argument
24 oneway void makeIpClient(in String ifName, in android.net.ip.IIpClientCallbacks callbacks); in makeIpClient() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/current/android/net/
DINetworkStackConnector.aidl22 …oneway void makeDhcpServer(in String ifName, in android.net.dhcp.DhcpServingParamsParcel params, i… in makeDhcpServer() argument
24 oneway void makeIpClient(in String ifName, in android.net.ip.IIpClientCallbacks callbacks); in makeIpClient() argument
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/
DINetworkStackConnector.aidl28 void makeDhcpServer(in String ifName, in DhcpServingParamsParcel params, in makeDhcpServer() argument
31 void makeIpClient(in String ifName, in IIpClientCallbacks callbacks); in makeIpClient() argument
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DInterfaceControllerTest.java73 assertEquals(TEST_IFACE, parcel.ifName); in testSetIPv4Address()
85 assertEquals(TEST_IFACE, parcel.ifName); in testClearIPv4Address()
/packages/modules/NetworkStack/common/networkstackclient/src/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()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpServer.java245 public DhcpServer(@NonNull Context context, @NonNull String ifName, in DhcpServer() argument
247 this(context, ifName, params, log, null); in DhcpServer()
251 DhcpServer(@NonNull Context context, @NonNull String ifName, @NonNull DhcpServingParams params, in DhcpServer() argument
253 super(DhcpServer.class.getSimpleName() + "." + ifName); in DhcpServer()
259 mIfName = ifName; in DhcpServer()
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java429 inOrder.verify(mNetd).interfaceSetCfg(argThat(cfg -> IFACE_NAME.equals(cfg.ifName))); in canUnrequestTethering()
446 IFACE_NAME.equals(cfg.ifName) && assertContainsFlag(cfg.flags, IF_STATE_UP))); in canBeTetheredAsUsb()
467 IFACE_NAME.equals(cfg.ifName) && assertNotContainsFlag(cfg.flags, IF_STATE_UP))); in canBeTetheredAsWifiP2p()
590 inOrder.verify(mNetd).interfaceSetCfg(argThat(cfg -> IFACE_NAME.equals(cfg.ifName))); in canUnrequestTetheringWithUpstream()
614 argThat(cfg -> IFACE_NAME.equals(cfg.ifName))); in interfaceDownLeadsToUnavailable()
631 argThat(cfg -> IFACE_NAME.equals(cfg.ifName))); in usbShouldBeTornDownOnTetherError()
635 argThat(cfg -> IFACE_NAME.equals(cfg.ifName))); in usbShouldBeTornDownOnTetherError()
653 argThat(cfg -> IFACE_NAME.equals(cfg.ifName))); in shouldTearDownUsbOnUpstreamError()

12