/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | Tethering.java | 1109 final String ifname = intent.getStringExtra(EXTRA_WIFI_AP_INTERFACE_NAME); in handleWifiApAction() local 1117 enableWifiIpServing(ifname, ipmode); in handleWifiApAction() 1125 disableWifiIpServing(ifname, curState); in handleWifiApAction() 1251 private void enableIpServing(int tetheringType, String ifname, int ipServingMode) { in enableIpServing() argument 1252 enableIpServing(tetheringType, ifname, ipServingMode, false /* isNcm */); in enableIpServing() 1255 private void enableIpServing(int tetheringType, String ifname, int ipServingMode, in enableIpServing() argument 1257 ensureIpServerStarted(ifname, tetheringType, isNcm); in enableIpServing() 1258 changeInterfaceState(ifname, ipServingMode); in enableIpServing() 1261 private void disableWifiIpServingCommon(int tetheringType, String ifname, int apState) { in disableWifiIpServingCommon() argument 1264 + " interface=" + ifname in disableWifiIpServingCommon() [all …]
|
D | OffloadController.java | 596 final String ifname = lp.getInterfaceName(); in notifyDownstreamLinkProperties() local 597 final LinkProperties oldLp = mDownstreams.put(ifname, new LinkProperties(lp)); in notifyDownstreamLinkProperties() 605 final String ifname = newLp.getInterfaceName(); in pushDownstreamState() local 614 mHwInterface.removeDownstreamPrefix(ifname, ri.getDestination().toString()); in pushDownstreamState() 622 mHwInterface.addDownstreamPrefix(ifname, ri.getDestination().toString()); in pushDownstreamState() 634 public void removeDownstreamInterface(String ifname) { in removeDownstreamInterface() argument 635 final LinkProperties lp = mDownstreams.remove(ifname); in removeDownstreamInterface() 642 mHwInterface.removeDownstreamPrefix(ifname, route.getDestination().toString()); in removeDownstreamInterface()
|
D | OffloadHardwareInterface.java | 543 public boolean addDownstreamPrefix(String ifname, String prefix) { in addDownstreamPrefix() argument 544 final String logmsg = String.format("addDownstreamPrefix(%s, %s)", ifname, prefix); in addDownstreamPrefix() 548 mOffloadControl.addDownstream(ifname, prefix, in addDownstreamPrefix() 563 public boolean removeDownstreamPrefix(String ifname, String prefix) { in removeDownstreamPrefix() argument 564 final String logmsg = String.format("removeDownstreamPrefix(%s, %s)", ifname, prefix); in removeDownstreamPrefix() 568 mOffloadControl.removeDownstream(ifname, prefix, in removeDownstreamPrefix()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | IpConnectivityEventBuilderTest.java | 88 ev.ifname = "wlan0"; in testLinkLayerInferrence() 106 ev.ifname = null; in testLinkLayerInferrence() 124 ev.ifname = "not_inferred"; in testLinkLayerInferrence() 141 ev.ifname = "bt-pan"; in testLinkLayerInferrence() 158 ev.ifname = "rmnet_ipa0"; in testLinkLayerInferrence() 175 ev.ifname = "wlan0"; in testLinkLayerInferrence()
|
D | IpConnectivityMetricsTest.java | 311 ev.ifname = "wlan0"; in testEndToEndLogging()
|
/packages/modules/Connectivity/tests/common/java/android/net/metrics/ |
D | IpConnectivityLogTest.java | 139 String ifname) { in makeExpectedEvent() argument 145 ev.ifname = ifname; in makeExpectedEvent() 156 assertEquals(expected.ifname, got.ifname); in assertEventsEqual()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/ |
D | IpClientTest.java | 162 private void setTestInterfaceParams(String ifname) { in setTestInterfaceParams() argument 163 mIfParams = (ifname != null) in setTestInterfaceParams() 164 ? new InterfaceParams(ifname, TEST_IFINDEX, TEST_MAC) in setTestInterfaceParams() 169 private IpClient makeIpClient(String ifname) throws Exception { in makeIpClient() argument 170 setTestInterfaceParams(ifname); in makeIpClient() 171 final IpClient ipc = new IpClient(mContext, ifname, mCb, mObserverRegistry, in makeIpClient() 173 verify(mNetd, timeout(TEST_TIMEOUT_MS).times(1)).interfaceSetEnableIPv6(ifname, false); in makeIpClient() 174 verify(mNetd, timeout(TEST_TIMEOUT_MS).times(1)).interfaceClearAddrs(ifname); in makeIpClient() 213 final String ifname = "lo"; in testNullCallbackMostDefinitelyThrows() local 214 setTestInterfaceParams(ifname); in testNullCallbackMostDefinitelyThrows() [all …]
|
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/ |
D | TestNetworkUtils.java | 67 String ifname, in setupAndGetTestNetwork() argument 75 .setNetworkSpecifier(ifname) in setupAndGetTestNetwork() 83 testNetworkMgr.setupTestNetwork(ifname, binder); in setupAndGetTestNetwork()
|
/packages/modules/Connectivity/Tethering/src/android/net/ip/ |
D | IpServer.java | 1311 for (String ifname : mUpstreamIfaceSet.ifnames) cleanupUpstreamInterface(ifname); in cleanupUpstream() 1364 for (String ifname : added) { in processMessage() 1376 if (!ifname.startsWith("v4-")) { // ignore clat interfaces in processMessage() 1378 mDeps.getInterfaceParams(ifname); in processMessage() 1381 upstreamIfaceParams.index, ifname); in processMessage() 1385 mBpfCoordinator.maybeAttachProgram(mIfaceName, ifname); in processMessage() 1387 mNetd.tetherAddForward(mIfaceName, ifname); in processMessage() 1388 mNetd.ipfwdAddInterfaceForward(mIfaceName, ifname); in processMessage() 1471 String ifname, HashSet<IpPrefix> prefixes) { in getLocalRoutesFor() argument 1474 localRoutes.add(new RouteInfo(ipp, null, ifname, RTN_UNICAST)); in getLocalRoutesFor()
|
/packages/modules/NetworkStack/src/android/net/util/ |
D | NetworkStackUtils.java | 315 String ifname, FileDescriptor fd) throws IOException { in addArpEntry() argument 316 addArpEntry(ethAddr.toByteArray(), ipv4Addr.getAddress(), ifname, fd); in addArpEntry() local 319 private static native void addArpEntry(byte[] ethAddr, byte[] netAddr, String ifname, in addArpEntry() argument
|
/packages/apps/Bluetooth/jni/ |
D | com_android_bluetooth_pan.cpp | 61 bt_status_t error, const char* ifname) { in control_state_callback() argument 62 debug("state:%d, local_role:%d, ifname:%s", state, local_role, ifname); in control_state_callback() 70 sCallbackEnv->NewStringUTF(ifname)); in control_state_callback()
|
/packages/modules/Connectivity/Tethering/src/android/net/util/ |
D | InterfaceSet.java | 42 for (String ifname : ifnames) sj.add(ifname); in toString()
|
/packages/modules/NetworkStack/jni/ |
D | network_stack_utils_jni.cpp | 63 jbyteArray ipv4Addr, jstring ifname, jobject javaFd) { in network_stack_utils_addArpEntry() argument 80 int ifLen = env->GetStringLength(ifname); in network_stack_utils_addArpEntry() 86 env->GetStringUTFRegion(ifname, 0, ifLen, req.arp_dev); in network_stack_utils_addArpEntry()
|
/packages/modules/NetworkStack/common/moduleutils/src/android/net/ip/ |
D | InterfaceController.java | 48 public InterfaceController(String ifname, INetd netd, SharedLog log) { in InterfaceController() argument 49 mIfName = ifname; in InterfaceController()
|
/packages/modules/NetworkStack/src/android/net/ip/ |
D | IpClient.java | 170 for (String ifname : sSmLogs.keySet()) { in dumpAllLogs() 171 if (skippedIfaces.contains(ifname)) continue; in dumpAllLogs() 173 writer.println(String.format("--- BEGIN %s ---", ifname)); in dumpAllLogs() 175 final SharedLog smLog = sSmLogs.get(ifname); in dumpAllLogs() 183 final LocalLog pktLog = sPktLogs.get(ifname); in dumpAllLogs() 189 writer.println(String.format("--- END %s ---", ifname)); in dumpAllLogs() 547 public InterfaceParams getInterfaceParams(String ifname) { in getInterfaceParams() argument 548 return InterfaceParams.getByName(ifname); in getInterfaceParams()
|
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/ |
D | CtsNetUtils.java | 142 public TestNetworkCallback setupAndGetTestNetwork(String ifname) throws Exception { in setupAndGetTestNetwork() argument 148 .setNetworkSpecifier(ifname) in setupAndGetTestNetwork() 156 mContext.getSystemService(TestNetworkManager.class).setupTestNetwork(ifname, mBinder); in setupAndGetTestNetwork()
|
/packages/modules/Connectivity/tests/unit/res/raw/ |
D | xt_qtaguid_iface_fmt_typical | 1 ifname total_skb_rx_bytes total_skb_rx_packets total_skb_tx_bytes total_skb_tx_packets
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/ |
D | PanService.java | 522 private void onControlStateChanged(int localRole, int state, int error, String ifname) { in onControlStateChanged() argument 525 + ifname); in onControlStateChanged() 528 mPanIfName = ifname; in onControlStateChanged()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TetheringTest.java | 707 private void sendWifiApStateChanged(int state, String ifname, int ipmode) { in sendWifiApStateChanged() argument 710 intent.putExtra(EXTRA_WIFI_AP_INTERFACE_NAME, ifname); in sendWifiApStateChanged() 722 boolean isGroupFormed, boolean isGroupOwner, String ifname) { in sendWifiP2pConnectionChanged() argument 730 when(group.getInterface()).thenReturn(ifname); in sendWifiP2pConnectionChanged() 790 private void verifyInterfaceServingModeStarted(String ifname) throws Exception { in verifyInterfaceServingModeStarted() argument 792 verify(mNetd, times(1)).tetherInterfaceAdd(ifname); in verifyInterfaceServingModeStarted() 793 verify(mNetd, times(1)).networkAddInterface(INetd.LOCAL_NET_ID, ifname); in verifyInterfaceServingModeStarted() 794 verify(mNetd, times(2)).networkAddRoute(eq(INetd.LOCAL_NET_ID), eq(ifname), in verifyInterfaceServingModeStarted() 798 private void verifyTetheringBroadcast(String ifname, String whichExtra) { in verifyTetheringBroadcast() argument 803 assertTrue(ifnames.contains(ifname)); in verifyTetheringBroadcast()
|
D | OffloadControllerTest.java | 745 for (String ifname : new String[]{RMNET0, WLAN0, RMNET0}) { in testControlCallbackOnStoppedUnsupportedFetchesAllStats() 746 upstreamLp.setInterfaceName(ifname); in testControlCallbackOnStoppedUnsupportedFetchesAllStats() 776 for (String ifname : new String[]{RMNET0, WLAN0, RMNET0}) { in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters() 777 upstreamLp.setInterfaceName(ifname); in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters()
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpServer.java | 190 @NonNull String ifname, @NonNull FileDescriptor fd) throws IOException; in addArpEntry() argument 229 @NonNull String ifname, @NonNull FileDescriptor fd) throws IOException { in addArpEntry() argument 230 NetworkStackUtils.addArpEntry(ipv4Addr, ethAddr, ifname, fd); in addArpEntry()
|
/packages/modules/DnsResolver/tests/ |
D | tun_forwarder.cpp | 144 unique_fd TunForwarder::createTun(const std::string& ifname) { in createTun() argument 153 strlcpy(ifr.ifr_name, ifname.data(), sizeof(ifr.ifr_name)); in createTun()
|
D | tun_forwarder.h | 45 static base::unique_fd createTun(const std::string& ifname);
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | NetworkDiagnostics.java | 246 private static Integer getInterfaceIndex(String ifname) { in getInterfaceIndex() argument 248 NetworkInterface ni = NetworkInterface.getByName(ifname); in getInterfaceIndex()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | HalDeviceManagerTest.java | 3367 private WifiStatus removeIface(int type, String ifname) { in removeIface() argument 3369 if (!mChipMockBase.interfaceNames.get(type).remove(ifname)) { in removeIface() 3372 if (mChipMockBase.interfacesByName.get(type).remove(ifname) == null) { in removeIface() 3381 public WifiStatus answer(String ifname) { in answer() argument 3382 return removeIface(mType, ifname); in answer()
|