Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/net/
DConnectivityMetricsEvent.java37 public String ifname; field in ConnectivityMetricsEvent
48 ifname = in.readString(); in ConnectivityMetricsEvent()
74 dest.writeString(ifname); in writeToParcel()
85 if (ifname != null) { in toString()
86 buffer.append(", ").append(ifname); in toString()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataCallResponse.java44 public final String ifname; field in DataCallResponse
76 String ifname, String addresses, String dnses, String gateways, in DataCallResponse() argument
83 this.ifname = (ifname == null) ? "" : ifname; in DataCallResponse()
84 if ((status == DcFailCause.NONE.getErrorCode()) && TextUtils.isEmpty(ifname)) { in DataCallResponse()
103 .append(" ifname=").append(ifname) in toString()
145 String propertyPrefix = "net." + ifname + "."; in setLinkProperties()
149 linkProperties.setInterfaceName(ifname); in setLinkProperties()
189 throw new UnknownHostException("no address for ifname=" + ifname); in setLinkProperties()
DDataConnection.java989 String propertyPrefix = "net." + response.ifname + "."; in setLinkProperties()
/frameworks/base/core/java/android/net/metrics/
DIpConnectivityLog.java107 public boolean log(String ifname, Parcelable data) { in log() argument
109 ev.ifname = ifname; in log()
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DOffloadHardwareInterface.java245 public boolean addDownstreamPrefix(String ifname, String prefix) { in addDownstreamPrefix() argument
246 final String logmsg = String.format("addDownstreamPrefix(%s, %s)", ifname, prefix); in addDownstreamPrefix()
250 mOffloadControl.addDownstream(ifname, prefix, in addDownstreamPrefix()
264 public boolean removeDownstreamPrefix(String ifname, String prefix) { in removeDownstreamPrefix() argument
265 final String logmsg = String.format("removeDownstreamPrefix(%s, %s)", ifname, prefix); in removeDownstreamPrefix()
269 mOffloadControl.removeDownstream(ifname, prefix, in removeDownstreamPrefix()
DOffloadController.java386 final String ifname = lp.getInterfaceName(); in notifyDownstreamLinkProperties() local
387 final LinkProperties oldLp = mDownstreams.put(ifname, new LinkProperties(lp)); in notifyDownstreamLinkProperties()
395 final String ifname = newLp.getInterfaceName(); in pushDownstreamState() local
404 mHwInterface.removeDownstreamPrefix(ifname, ri.getDestination().toString()); in pushDownstreamState()
412 mHwInterface.addDownstreamPrefix(ifname, ri.getDestination().toString()); in pushDownstreamState()
423 public void removeDownstreamInterface(String ifname) { in removeDownstreamInterface() argument
424 final LinkProperties lp = mDownstreams.remove(ifname); in removeDownstreamInterface()
431 mHwInterface.removeDownstreamPrefix(ifname, route.getDestination().toString()); in removeDownstreamInterface()
DTetherInterfaceStateMachine.java727 String ifname, HashSet<IpPrefix> prefixes) { in getLocalRoutesFor() argument
730 localRoutes.add(new RouteInfo(ipp, null, ifname)); in getLocalRoutesFor()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DIpConnectivityEventBuilderTest.java94 ev.ifname = "wlan0"; in testLinkLayerInferrence()
112 ev.ifname = null; in testLinkLayerInferrence()
130 ev.ifname = "not_inferred"; in testLinkLayerInferrence()
147 ev.ifname = "bt-pan"; in testLinkLayerInferrence()
164 ev.ifname = "rmnet_ipa0"; in testLinkLayerInferrence()
181 ev.ifname = "wlan0"; in testLinkLayerInferrence()
DTetheringTest.java247 private void sendWifiApStateChanged(int state, String ifname, int ipmode) { in sendWifiApStateChanged() argument
250 intent.putExtra(EXTRA_WIFI_AP_INTERFACE_NAME, ifname); in sendWifiApStateChanged()
270 private void verifyTetheringBroadcast(String ifname, String whichExtra) { in verifyTetheringBroadcast() argument
275 assertTrue(ifnames.contains(ifname)); in verifyTetheringBroadcast()
DIpConnectivityMetricsTest.java207 ev.ifname = "wlan0"; in testEndToEndLogging()
/frameworks/base/services/net/java/android/net/ip/
DConnectivityPacketTracker.java69 final String ifname; in ConnectivityPacketTracker() local
75 ifname = netif.getName(); in ConnectivityPacketTracker()
83 mTag = TAG + "." + ifname; in ConnectivityPacketTracker()
DRouterAdvertisementDaemon.java226 public RouterAdvertisementDaemon(String ifname, int ifindex, byte[] hwaddr) { in RouterAdvertisementDaemon() argument
227 mIfName = ifname; in RouterAdvertisementDaemon()
/frameworks/base/services/core/java/com/android/server/connectivity/
DTethering.java869 final String ifname = intent.getStringExtra(EXTRA_WIFI_AP_INTERFACE_NAME); in handleWifiApAction() local
878 enableWifiIpServingLocked(ifname, ipmode); in handleWifiApAction()
884 disableWifiIpServingLocked(ifname, curState); in handleWifiApAction()
891 private void disableWifiIpServingLocked(String ifname, int apState) { in disableWifiIpServingLocked() argument
900 if (!TextUtils.isEmpty(ifname)) { in disableWifiIpServingLocked()
901 final TetherState ts = mTetherStates.get(ifname); in disableWifiIpServingLocked()
917 (TextUtils.isEmpty(ifname) ? "no interface name specified" in disableWifiIpServingLocked()
918 : "specified interface: " + ifname)); in disableWifiIpServingLocked()
921 private void enableWifiIpServingLocked(String ifname, int wifiIpMode) { in enableWifiIpServingLocked() argument
937 if (!TextUtils.isEmpty(ifname)) { in enableWifiIpServingLocked()
[all …]
DIpConnectivityEventBuilder.java85 final IpConnectivityEvent out = buildEvent(ev.netId, ev.transports, ev.ifname); in toProto()
135 private static IpConnectivityEvent buildEvent(int netId, long transports, String ifname) { in buildEvent() argument
139 if (ifname != null) { in buildEvent()
140 ev.ifName = ifname; in buildEvent()
387 private static int ifnameToLinkLayer(String ifname) { in ifnameToLinkLayer() argument
392 if (ifname.startsWith(pattern)) { in ifnameToLinkLayer()
DNetworkDiagnostics.java216 private static Integer getInterfaceIndex(String ifname) { in getInterfaceIndex() argument
218 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.java40 public abstract boolean isUidNetworkingBlocked(int uid, String ifname); in isUidNetworkingBlocked() argument
DNetworkPolicyManagerService.java4419 public boolean isUidNetworkingBlocked(int uid, String ifname) { in isUidNetworkingBlocked() argument
4422 isNetworkMetered = mMeteredIfaces.contains(ifname); in isUidNetworkingBlocked()
/frameworks/base/tests/net/java/android/net/ip/
DIpManagerTest.java105 private IpManager makeIpManager(String ifname) throws Exception { in makeIpManager() argument
106 final IpManager ipm = new IpManager(mContext, ifname, mCb, mNMService, mNetd); in makeIpManager()
107 verify(mNMService, timeout(100).times(1)).disableIpv6(ifname); in makeIpManager()
108 verify(mNMService, timeout(100).times(1)).clearInterfaceAddresses(ifname); in makeIpManager()
/frameworks/base/core/jni/
Dandroid_net_NetUtils.cpp39 int ifc_enable(const char *ifname);
40 int ifc_disable(const char *ifname);
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDataCallResponseTest.java60 assertEquals(mDcResponse.ifname, linkProperties.getInterfaceName()); in testSetLinkProperties()
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DOffloadControllerTest.java637 for (String ifname : new String[]{RMNET0, WLAN0, RMNET0}) { in testControlCallbackOnStoppedUnsupportedFetchesAllStats()
638 upstreamLp.setInterfaceName(ifname); in testControlCallbackOnStoppedUnsupportedFetchesAllStats()
669 for (String ifname : new String[]{RMNET0, WLAN0, RMNET0}) { in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters()
670 upstreamLp.setInterfaceName(ifname); in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DHalDeviceManagerTest.java1498 private WifiStatus removeIface(int type, String ifname) { in removeIface() argument
1500 if (!mChipMockBase.interfaceNames.get(type).remove(ifname)) { in removeIface()
1503 if (mChipMockBase.interfacesByName.get(type).remove(ifname) == null) { in removeIface()
1512 public WifiStatus answer(String ifname) { in answer() argument
1513 return removeIface(mType, ifname); in answer()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DTelephonyMetrics.java1063 if (!TextUtils.isEmpty(dcsList.get(i).ifname)) { in writeRilDataCallList()
1064 dataCalls[i].iframe = dcsList.get(i).ifname; in writeRilDataCallList()
1319 if (!TextUtils.isEmpty(response.ifname)) { in writeOnSetupDataCallResponse()
1320 dataCall.iframe = response.ifname; in writeOnSetupDataCallResponse()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java453 private void startIpManager(String ifname) { in startIpManager() argument
456 mIpManager = new IpManager(mContext, ifname, in startIpManager()
2238 final String ifname = mGroup.getInterface(); in processMessage() local
2241 ifname, mDhcpResults.getRoutes(ifname)); in processMessage()

12