Home
last modified time | relevance | path

Searched refs:ifname (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/core/java/android/net/
DConnectivityMetricsEvent.java38 public String ifname; field in ConnectivityMetricsEvent
49 ifname = in.readString(); in ConnectivityMetricsEvent()
75 dest.writeString(ifname); in writeToParcel()
86 if (ifname != null) { in toString()
87 buffer.append(", ").append(ifname); in toString()
/frameworks/base/tests/net/common/java/android/net/metrics/
DIpConnectivityLogTest.java139 String ifname) { in makeExpectedEvent() argument
145 ev.ifname = ifname; in makeExpectedEvent()
156 assertEquals(expected.ifname, got.ifname); in assertEventsEqual()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DIpConnectivityEventBuilderTest.java86 ev.ifname = "wlan0"; in testLinkLayerInferrence()
104 ev.ifname = null; in testLinkLayerInferrence()
122 ev.ifname = "not_inferred"; in testLinkLayerInferrence()
139 ev.ifname = "bt-pan"; in testLinkLayerInferrence()
156 ev.ifname = "rmnet_ipa0"; in testLinkLayerInferrence()
173 ev.ifname = "wlan0"; in testLinkLayerInferrence()
DIpConnectivityMetricsTest.java292 ev.ifname = "wlan0"; in testEndToEndLogging()
/frameworks/base/core/java/android/net/metrics/
DIpConnectivityLog.java125 public boolean log(@NonNull String ifname, @NonNull Event data) { in log() argument
127 ev.ifname = ifname; in log()
/frameworks/base/packages/Tethering/src/android/net/util/
DInterfaceSet.java42 for (String ifname : ifnames) sj.add(ifname); in toString()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DOffloadController.java525 final String ifname = lp.getInterfaceName(); in notifyDownstreamLinkProperties() local
526 final LinkProperties oldLp = mDownstreams.put(ifname, new LinkProperties(lp)); in notifyDownstreamLinkProperties()
534 final String ifname = newLp.getInterfaceName(); in pushDownstreamState() local
543 mHwInterface.removeDownstreamPrefix(ifname, ri.getDestination().toString()); in pushDownstreamState()
551 mHwInterface.addDownstreamPrefix(ifname, ri.getDestination().toString()); in pushDownstreamState()
563 public void removeDownstreamInterface(String ifname) { in removeDownstreamInterface() argument
564 final LinkProperties lp = mDownstreams.remove(ifname); in removeDownstreamInterface()
571 mHwInterface.removeDownstreamPrefix(ifname, route.getDestination().toString()); in removeDownstreamInterface()
DTethering.java992 final String ifname = intent.getStringExtra(EXTRA_WIFI_AP_INTERFACE_NAME); in handleWifiApAction() local
1001 enableWifiIpServingLocked(ifname, ipmode); in handleWifiApAction()
1009 disableWifiIpServingLocked(ifname, curState); in handleWifiApAction()
1133 private void disableWifiIpServingLockedCommon(int tetheringType, String ifname, int apState) { in disableWifiIpServingLockedCommon() argument
1136 + " interface=" + ifname in disableWifiIpServingLockedCommon()
1139 if (!TextUtils.isEmpty(ifname)) { in disableWifiIpServingLockedCommon()
1140 final TetherState ts = mTetherStates.get(ifname); in disableWifiIpServingLockedCommon()
1156 + (TextUtils.isEmpty(ifname) ? "no interface name specified" in disableWifiIpServingLockedCommon()
1157 : "specified interface: " + ifname)); in disableWifiIpServingLockedCommon()
1160 private void disableWifiIpServingLocked(String ifname, int apState) { in disableWifiIpServingLocked() argument
[all …]
DOffloadHardwareInterface.java441 public boolean addDownstreamPrefix(String ifname, String prefix) { in addDownstreamPrefix() argument
442 final String logmsg = String.format("addDownstreamPrefix(%s, %s)", ifname, prefix); in addDownstreamPrefix()
446 mOffloadControl.addDownstream(ifname, prefix, in addDownstreamPrefix()
461 public boolean removeDownstreamPrefix(String ifname, String prefix) { in removeDownstreamPrefix() argument
462 final String logmsg = String.format("removeDownstreamPrefix(%s, %s)", ifname, prefix); in removeDownstreamPrefix()
466 mOffloadControl.removeDownstream(ifname, prefix, in removeDownstreamPrefix()
/frameworks/base/services/core/java/com/android/server/connectivity/
DIpConnectivityEventBuilder.java85 final IpConnectivityEvent out = buildEvent(ev.netId, ev.transports, ev.ifname); in toProto()
158 private static IpConnectivityEvent buildEvent(int netId, long transports, String ifname) { in buildEvent() argument
162 if (ifname != null) { in buildEvent()
163 ev.ifName = ifname; in buildEvent()
388 private static int ifnameToLinkLayer(String ifname) { in ifnameToLinkLayer() argument
393 if (ifname.startsWith(pattern)) { in ifnameToLinkLayer()
DNetworkDiagnostics.java246 private static Integer getInterfaceIndex(String ifname) { in getInterfaceIndex() argument
248 NetworkInterface ni = NetworkInterface.getByName(ifname); in getInterfaceIndex()
/frameworks/base/tests/net/res/raw/
Dxt_qtaguid_iface_fmt_typical1 ifname total_skb_rx_bytes total_skb_rx_packets total_skb_tx_bytes total_skb_tx_packets
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerInternal.java50 public abstract boolean isUidNetworkingBlocked(int uid, String ifname); in isUidNetworkingBlocked() argument
DNetworkPolicyManagerService.java5217 public boolean isUidNetworkingBlocked(int uid, String ifname) { in isUidNetworkingBlocked() argument
5228 isNetworkMetered = mMeteredIfaces.contains(ifname); in isUidNetworkingBlocked()
/frameworks/base/packages/Tethering/src/android/net/ip/
DIpServer.java1227 for (String ifname : mUpstreamIfaceSet.ifnames) cleanupUpstreamInterface(ifname); in cleanupUpstream()
1279 for (String ifname : added) { in processMessage()
1281 mNetd.tetherAddForward(mIfaceName, ifname); in processMessage()
1282 mNetd.ipfwdAddInterfaceForward(mIfaceName, ifname); in processMessage()
1365 String ifname, HashSet<IpPrefix> prefixes) { in getLocalRoutesFor() argument
1368 localRoutes.add(new RouteInfo(ipp, null, ifname, RTN_UNICAST)); in getLocalRoutesFor()
/frameworks/base/core/jni/
Dandroid_net_NetUtils.cpp43 int ifc_enable(const char *ifname);
44 int ifc_disable(const char *ifname);
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java609 private void sendWifiApStateChanged(int state, String ifname, int ipmode) { in sendWifiApStateChanged() argument
612 intent.putExtra(EXTRA_WIFI_AP_INTERFACE_NAME, ifname); in sendWifiApStateChanged()
623 boolean isGroupFormed, boolean isGroupOwner, String ifname) { in sendWifiP2pConnectionChanged() argument
631 when(group.getInterface()).thenReturn(ifname); in sendWifiP2pConnectionChanged()
661 private void verifyInterfaceServingModeStarted(String ifname) throws Exception { in verifyInterfaceServingModeStarted() argument
663 verify(mNetd, times(1)).tetherInterfaceAdd(ifname); in verifyInterfaceServingModeStarted()
664 verify(mNetd, times(1)).networkAddInterface(INetd.LOCAL_NET_ID, ifname); in verifyInterfaceServingModeStarted()
665 verify(mNetd, times(2)).networkAddRoute(eq(INetd.LOCAL_NET_ID), eq(ifname), in verifyInterfaceServingModeStarted()
669 private void verifyTetheringBroadcast(String ifname, String whichExtra) { in verifyTetheringBroadcast() argument
674 assertTrue(ifnames.contains(ifname)); in verifyTetheringBroadcast()
DOffloadControllerTest.java680 for (String ifname : new String[]{RMNET0, WLAN0, RMNET0}) { in testControlCallbackOnStoppedUnsupportedFetchesAllStats()
681 upstreamLp.setInterfaceName(ifname); in testControlCallbackOnStoppedUnsupportedFetchesAllStats()
713 for (String ifname : new String[]{RMNET0, WLAN0, RMNET0}) { in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters()
714 upstreamLp.setInterfaceName(ifname); in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DHalDeviceManagerTest.java3009 private WifiStatus removeIface(int type, String ifname) { in removeIface() argument
3011 if (!mChipMockBase.interfaceNames.get(type).remove(ifname)) { in removeIface()
3014 if (mChipMockBase.interfacesByName.get(type).remove(ifname) == null) { in removeIface()
3023 public WifiStatus answer(String ifname) { in answer() argument
3024 return removeIface(mType, ifname); in answer()
DClientModeImplTest.java220 Context context, String ifname, IpClientCallbacks callback) { in getFrameworkFacade()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java538 private void startIpClient(String ifname, Handler smHandler) { in startIpClient() argument
541 IpClientUtil.makeIpClient(mContext, ifname, new IpClientCallbacksImpl( in startIpClient()
2684 final String ifname = mGroup.getInterface(); in processMessage() local
2687 ifname, mDhcpResults.getRoutes(ifname)); in processMessage()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRIL.java6784 String ifname; in convertDataCallResult() local
6801 ifname = result.ifname; in convertDataCallResult()
6828 ifname = result.ifname; in convertDataCallResult()
6847 ifname = result.ifname; in convertDataCallResult()
6914 .setInterfaceName(ifname) in convertDataCallResult()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DRILTest.java1988 result10.ifname = "ifname"; in testConvertDataCallResult()
2028 result14.ifname = "ifname"; in testConvertDataCallResult()
2047 result15.ifname = "ifname"; in testConvertDataCallResult()
DSimulatedCommands.java1190 mSetupDataCallResult.ifname = "rmnet_data7"; in setupDataCall()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDcTrackerTest.java564 result.ifname = FAKE_IFNAME; in createSetupDataCallResult()

12