Home
last modified time | relevance | path

Searched refs:iface (Results 1 – 14 of 14) sorted by relevance

/packages/modules/NetworkStack/common/moduleutils/src/android/net/shared/
DNetdUtils.java51 public static void tetherInterface(final INetd netd, final String iface, final IpPrefix dest) in tetherInterface() argument
53 tetherInterface(netd, iface, dest, 20 /* maxAttempts */, 50 /* pollingIntervalMs */); in tetherInterface()
57 public static void tetherInterface(final INetd netd, final String iface, final IpPrefix dest, in tetherInterface() argument
60 netd.tetherInterfaceAdd(iface); in tetherInterface()
61 networkAddInterface(netd, iface, maxAttempts, pollingIntervalMs); in tetherInterface()
63 routes.add(new RouteInfo(dest, null, iface, RTN_UNICAST)); in tetherInterface()
64 RouteUtils.addRoutesToLocalNetwork(netd, iface, routes); in tetherInterface()
74 private static void networkAddInterface(final INetd netd, final String iface, in networkAddInterface() argument
79 netd.networkAddInterface(INetd.LOCAL_NET_ID, iface); in networkAddInterface()
94 public static void untetherInterface(final INetd netd, String iface) in untetherInterface() argument
[all …]
DRouteUtils.java63 public static void addRoutesToLocalNetwork(final INetd netd, final String iface, in addRoutesToLocalNetwork() argument
74 new RouteInfo(new IpPrefix("fe80::/64"), null, iface, RTN_UNICAST)); in addRoutesToLocalNetwork()
/packages/modules/NetworkStack/src/android/net/ip/
DIpClientLinkObserver.java123 public IpClientLinkObserver(Context context, Handler h, String iface, Callback callback, in IpClientLinkObserver() argument
125 mInterfaceName = iface; in IpClientLinkObserver()
143 private void maybeLog(String operation, String iface, LinkAddress address) { in maybeLog() argument
145 Log.d(mTag, operation + ": " + address + " on " + iface in maybeLog()
157 public void onInterfaceRemoved(String iface) { in onInterfaceRemoved() argument
158 maybeLog("interfaceRemoved", iface); in onInterfaceRemoved()
159 if (mInterfaceName.equals(iface)) { in onInterfaceRemoved()
170 public void onInterfaceLinkStateChanged(String iface, boolean state) { in onInterfaceLinkStateChanged() argument
171 if (mInterfaceName.equals(iface)) { in onInterfaceLinkStateChanged()
172 maybeLog("interfaceLinkStateChanged", iface + (state ? " up" : " down")); in onInterfaceLinkStateChanged()
[all …]
DIpClient.java607 public void onInterfaceAdded(String iface) { in IpClient()
608 super.onInterfaceAdded(iface); in IpClient()
609 if (mClatInterfaceName.equals(iface)) { in IpClient()
611 } else if (!mInterfaceName.equals(iface)) { in IpClient()
615 final String msg = "interfaceAdded(" + iface + ")"; in IpClient()
620 public void onInterfaceRemoved(String iface) { in IpClient()
621 super.onInterfaceRemoved(iface); in IpClient()
624 if (mClatInterfaceName.equals(iface)) { in IpClient()
629 } else if (!mInterfaceName.equals(iface)) { in IpClient()
633 final String msg = "interfaceRemoved(" + iface + ")"; in IpClient()
DIpReachabilityMonitor.java165 static Dependencies makeDefault(Context context, String iface) { in makeDefault() argument
166 final String lockName = TAG + "." + iface; in makeDefault()
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
DPanService.java555 void handlePanDeviceStateChange(BluetoothDevice device, String iface, int state, in handlePanDeviceStateChange() argument
558 Log.d(TAG, "handlePanDeviceStateChange: device: " + device + ", iface: " + iface in handlePanDeviceStateChange()
568 panDevice = new BluetoothPanDevice(state, iface, localRole, remoteRole); in handlePanDeviceStateChange()
575 panDevice.mIface = iface; in handlePanDeviceStateChange()
605 mNapIfaceAddr = startTethering(iface); in handlePanDeviceStateChange()
618 stopTethering(iface); in handlePanDeviceStateChange()
630 mNetworkFactory.startReverseTether(iface); in handlePanDeviceStateChange()
655 private String startTethering(String iface) { in startTethering() argument
656 return configureBtIface(true, iface); in startTethering()
659 private String stopTethering(String iface) { in stopTethering() argument
[all …]
DBluetoothTetheringNetworkFactory.java213 public void startReverseTether(final String iface) { in startReverseTether() argument
214 if (iface == null || TextUtils.isEmpty(iface)) { in startReverseTether()
223 mInterfaceName = iface; in startReverseTether()
/packages/services/Car/tests/usb/AoapHostApp/src/com/google/android/car/usb/aoap/host/
DSpeedMeasurementController.java168 UsbInterface iface = mDevice.getInterface(0); in ReaderThread() local
172 for (int i = 0; i < iface.getEndpointCount(); i++) { in ReaderThread()
173 UsbEndpoint ep = iface.getEndpoint(i); in ReaderThread()
224 UsbInterface iface = mDevice.getInterface(0); in BaseWriterThread() local
228 for (int i = 0; i < iface.getEndpointCount(); i++) { in BaseWriterThread()
229 UsbEndpoint ep = iface.getEndpoint(i); in BaseWriterThread()
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DIpClientTest.java173 private static LinkProperties makeEmptyLinkProperties(String iface) { in makeEmptyLinkProperties() argument
175 empty.setInterfaceName(iface); in makeEmptyLinkProperties()
357 final String iface = TEST_IFNAME; in testProvisioningWithInitialConfiguration() local
358 final IpClient ipc = makeIpClient(iface); in testProvisioningWithInitialConfiguration()
378 .interfaceAddAddress(iface, parts[0], Integer.parseInt(parts[1])); in testProvisioningWithInitialConfiguration()
385 mObserver.onInterfaceAddressUpdated(new LinkAddress(TEST_LOCAL_ADDRESSES[i]), iface); in testProvisioningWithInitialConfiguration()
391 mObserver.onInterfaceAddressUpdated(new LinkAddress(TEST_LOCAL_ADDRESSES[lastAddr]), iface); in testProvisioningWithInitialConfiguration()
394 want.setInterfaceName(iface); in testProvisioningWithInitialConfiguration()
/packages/services/BuiltInPrintService/src/com/android/bips/p2p/
DP2pUtils.java92 static boolean isOnInterface(NetworkInterface iface, Inet4Address address) { in isOnInterface() argument
94 for (InterfaceAddress ifaceAddress : iface.getInterfaceAddresses()) { in isOnInterface()
/packages/services/Car/service/src/com/android/car/
DCarProjectionService.java766 NetworkInterface iface = NetworkInterface.getByName(ifaceName); in handleWifiApStateChange() local
767 byte[] bssid = iface.getHardwareAddress(); in handleWifiApStateChange()
786 BinderInterfaceContainer.BinderInterface<ICarProjectionKeyEventHandler> iface) { in onBinderDeath() argument
787 unregisterKeyEventHandler(iface.binderInterface); in onBinderDeath()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTest.java424 final TestNetworkInterface iface;
428 iface = tnm.createTapInterface();
434 mIfaceName = iface.getInterfaceName();
446 mTapFd.setInt$(iface.getFileDescriptor().detachFd());
1633 private void addIpAddressAndWaitForIt(final String iface) throws Exception {
1648 if (ifName.equals(iface) && address.isSameAddressAs(trigger)) {
1656 mNetd.interfaceAddAddress(iface, addr1, prefixLength);
1657 mNetd.interfaceAddAddress(iface, addr2, prefixLength);
/packages/apps/Settings/src/com/android/settings/
DTetherSettings.java567 public void onAvailabilityChanged(String iface, boolean isAvailable) { in onAvailabilityChanged() argument
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java451 private DhcpClient(Context context, StateMachine controller, String iface, in DhcpClient() argument
458 mIfaceName = iface; in DhcpClient()