Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/os/
DINetworkManagementService.aidl57 InterfaceConfiguration getInterfaceConfig(String iface); in getInterfaceConfig() argument
62 void setInterfaceConfig(String iface, in InterfaceConfiguration cfg); in setInterfaceConfig() argument
67 void clearInterfaceAddresses(String iface); in clearInterfaceAddresses() argument
72 void setInterfaceDown(String iface); in setInterfaceDown() argument
77 void setInterfaceUp(String iface); in setInterfaceUp() argument
82 void setInterfaceIpv6PrivacyExtensions(String iface, boolean enable); in setInterfaceIpv6PrivacyExtensions() argument
87 void disableIpv6(String iface); in disableIpv6() argument
92 void enableIpv6(String iface); in enableIpv6() argument
97 void setInterfaceIpv6NdOffload(String iface, boolean enable); in setInterfaceIpv6NdOffload() argument
103 RouteInfo[] getRoutes(String iface); in getRoutes() argument
[all …]
/frameworks/opt/net/wifi/service/lib/
Dwifi_hal.cpp47 wifi_error wifi_get_iface_name(wifi_interface_handle iface, char *name, size_t size) { in wifi_get_iface_name() argument
52 wifi_interface_handle iface, wifi_event_handler eh) { in wifi_set_iface_event_handler() argument
56 wifi_error wifi_reset_iface_event_handler(wifi_request_id id, wifi_interface_handle iface) { in wifi_reset_iface_event_handler() argument
60 wifi_error wifi_start_gscan(wifi_request_id id, wifi_interface_handle iface, in wifi_start_gscan() argument
65 wifi_error wifi_stop_gscan(wifi_request_id id, wifi_interface_handle iface) { in wifi_stop_gscan() argument
69 wifi_error wifi_get_cached_gscan_results(wifi_interface_handle iface, byte flush, in wifi_get_cached_gscan_results() argument
74 wifi_error wifi_get_cached_gscan_results(wifi_interface_handle iface, byte flush, in wifi_get_cached_gscan_results() argument
79 wifi_error wifi_set_bssid_hotlist(wifi_request_id id, wifi_interface_handle iface, in wifi_set_bssid_hotlist() argument
84 wifi_error wifi_reset_bssid_hotlist(wifi_request_id id, wifi_interface_handle iface) { in wifi_reset_bssid_hotlist() argument
88 wifi_error wifi_set_significant_change_handler(wifi_request_id id, wifi_interface_handle iface, in wifi_set_significant_change_handler() argument
[all …]
/frameworks/base/core/java/android/net/
DTrafficStats.java296 for (String iface : getMobileIfaces()) { in getMobileTxPackets()
297 total += getTxPackets(iface); in getMobileTxPackets()
313 for (String iface : getMobileIfaces()) { in getMobileRxPackets()
314 total += getRxPackets(iface); in getMobileRxPackets()
330 for (String iface : getMobileIfaces()) { in getMobileTxBytes()
331 total += getTxBytes(iface); in getMobileTxBytes()
347 for (String iface : getMobileIfaces()) { in getMobileRxBytes()
348 total += getRxBytes(iface); in getMobileRxBytes()
356 for (String iface : getMobileIfaces()) { in getMobileTcpRxPackets()
357 final long stat = nativeGetIfaceStat(iface, TYPE_TCP_RX_PACKETS); in getMobileTcpRxPackets()
[all …]
DINetworkManagementEventObserver.aidl34 void interfaceStatusChanged(String iface, boolean up); in interfaceStatusChanged() argument
43 void interfaceLinkStateChanged(String iface, boolean up); in interfaceLinkStateChanged() argument
50 void interfaceAdded(String iface); in interfaceAdded() argument
57 void interfaceRemoved(String iface); in interfaceRemoved() argument
66 void addressUpdated(String iface, in LinkAddress address); in addressUpdated() argument
74 void addressRemoved(String iface, in LinkAddress address); in addressRemoved() argument
83 void limitReached(String limitName, String iface); in limitReached() argument
101 void interfaceDnsServerInfo(String iface, long lifetime, in String[] servers); in interfaceDnsServerInfo() argument
DNetworkStats.java69 private String[] iface; field in NetworkStats
80 public String iface; field in NetworkStats.Entry
99 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, in Entry() argument
101 this.iface = iface; in Entry()
132 builder.append("iface=").append(iface); in toString()
151 && iface.equals(e.iface); in equals()
162 this.iface = new String[initialSize]; in NetworkStats()
174 this.iface = EmptyArray.STRING; in NetworkStats()
190 iface = parcel.createStringArray(); in NetworkStats()
206 dest.writeStringArray(iface); in writeToParcel()
[all …]
DRouteInfo.java102 public RouteInfo(IpPrefix destination, InetAddress gateway, String iface, int type) { in RouteInfo() argument
155 mInterface = iface; // Strings are immutable. in RouteInfo()
163 public RouteInfo(IpPrefix destination, InetAddress gateway, String iface) { in RouteInfo() argument
164 this(destination, gateway, iface, RTN_UNICAST); in RouteInfo()
170 public RouteInfo(LinkAddress destination, InetAddress gateway, String iface) { in RouteInfo() argument
173 gateway, iface); in RouteInfo()
244 public static RouteInfo makeHostRoute(InetAddress host, String iface) { in makeHostRoute() argument
245 return makeHostRoute(host, null, iface); in makeHostRoute()
251 public static RouteInfo makeHostRoute(InetAddress host, InetAddress gateway, String iface) { in makeHostRoute() argument
255 return new RouteInfo(new IpPrefix(host, 32), gateway, iface); in makeHostRoute()
[all …]
DStaticIpConfiguration.java84 public List<RouteInfo> getRoutes(String iface) { in getRoutes() argument
87 RouteInfo connectedRoute = new RouteInfo(ipAddress, null, iface); in getRoutes()
90 routes.add(RouteInfo.makeHostRoute(gateway, iface)); in getRoutes()
94 routes.add(new RouteInfo((IpPrefix) null, gateway, iface)); in getRoutes()
105 public LinkProperties toLinkProperties(String iface) { in toLinkProperties() argument
107 lp.setInterfaceName(iface); in toLinkProperties()
111 for (RouteInfo route : getRoutes(iface)) { in toLinkProperties()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetNetworkFactory.java128 private void updateInterfaceState(String iface, boolean up) { in updateInterfaceState() argument
129 if (!mIface.equals(iface)) { in updateInterfaceState()
132 Log.d(TAG, "updateInterface: " + iface + " link " + (up ? "up" : "down")); in updateInterfaceState()
151 public void interfaceLinkStateChanged(String iface, boolean up) { in interfaceLinkStateChanged() argument
152 updateInterfaceState(iface, up); in interfaceLinkStateChanged()
156 public void interfaceAdded(String iface) { in interfaceAdded() argument
157 maybeTrackInterface(iface); in interfaceAdded()
161 public void interfaceRemoved(String iface) { in interfaceRemoved() argument
162 stopTrackingInterface(iface); in interfaceRemoved()
166 private void setInterfaceUp(String iface) { in setInterfaceUp() argument
[all …]
/frameworks/base/core/java/com/android/server/net/
DBaseNetworkObserver.java31 public void interfaceStatusChanged(String iface, boolean up) { in interfaceStatusChanged() argument
36 public void interfaceRemoved(String iface) { in interfaceRemoved() argument
41 public void addressUpdated(String iface, LinkAddress address) { in addressUpdated() argument
46 public void addressRemoved(String iface, LinkAddress address) { in addressRemoved() argument
51 public void interfaceLinkStateChanged(String iface, boolean up) { in interfaceLinkStateChanged() argument
56 public void interfaceAdded(String iface) { in interfaceAdded() argument
66 public void limitReached(String limitName, String iface) { in limitReached() argument
71 public void interfaceDnsServerInfo(String iface, long lifetime, String[] servers) { in interfaceDnsServerInfo() argument
DNetlinkTracker.java84 public NetlinkTracker(String iface, Callback callback) { in NetlinkTracker() argument
85 TAG = "NetlinkTracker/" + iface; in NetlinkTracker()
86 mInterfaceName = iface; in NetlinkTracker()
93 private void maybeLog(String operation, String iface, LinkAddress address) { in maybeLog() argument
95 Log.d(TAG, operation + ": " + address + " on " + iface + in maybeLog()
107 public void addressUpdated(String iface, LinkAddress address) { in addressUpdated() argument
108 if (mInterfaceName.equals(iface)) { in addressUpdated()
109 maybeLog("addressUpdated", iface, address); in addressUpdated()
121 public void addressRemoved(String iface, LinkAddress address) { in addressRemoved() argument
122 if (mInterfaceName.equals(iface)) { in addressRemoved()
[all …]
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java309 private void notifyInterfaceStatusChanged(String iface, boolean up) { in notifyInterfaceStatusChanged() argument
314 mObservers.getBroadcastItem(i).interfaceStatusChanged(iface, up); in notifyInterfaceStatusChanged()
328 private void notifyInterfaceLinkStateChanged(String iface, boolean up) { in notifyInterfaceLinkStateChanged() argument
333 mObservers.getBroadcastItem(i).interfaceLinkStateChanged(iface, up); in notifyInterfaceLinkStateChanged()
346 private void notifyInterfaceAdded(String iface) { in notifyInterfaceAdded() argument
351 mObservers.getBroadcastItem(i).interfaceAdded(iface); in notifyInterfaceAdded()
364 private void notifyInterfaceRemoved(String iface) { in notifyInterfaceRemoved() argument
367 mActiveAlerts.remove(iface); in notifyInterfaceRemoved()
368 mActiveQuotas.remove(iface); in notifyInterfaceRemoved()
374 mObservers.getBroadcastItem(i).interfaceRemoved(iface); in notifyInterfaceRemoved()
[all …]
DCommonTimeManagementService.java107 public void interfaceStatusChanged(String iface, boolean up) {
110 public void interfaceLinkStateChanged(String iface, boolean up) {
113 public void interfaceAdded(String iface) {
116 public void interfaceRemoved(String iface) {
302 for (String iface : ifaceList) { in reevaluateServiceState()
306 if (iface.contains(r.mPrefix)) { in reevaluateServiceState()
315 InterfaceConfiguration config = mNetMgr.getInterfaceConfig(iface); in reevaluateServiceState()
320 bindIface = iface; in reevaluateServiceState()
/frameworks/base/services/core/java/com/android/server/connectivity/
DTethering.java216 public void interfaceStatusChanged(String iface, boolean up) { in interfaceStatusChanged() argument
217 if (VDBG) Log.d(TAG, "interfaceStatusChanged " + iface + ", " + up); in interfaceStatusChanged()
221 if (isWifi(iface)) { in interfaceStatusChanged()
223 } else if (isUsb(iface)) { in interfaceStatusChanged()
226 } else if (isBluetooth(iface)) { in interfaceStatusChanged()
231 TetherInterfaceSM sm = mIfaces.get(iface); in interfaceStatusChanged()
234 sm = new TetherInterfaceSM(iface, mLooper, usb); in interfaceStatusChanged()
235 mIfaces.put(iface, sm); in interfaceStatusChanged()
239 if (isUsb(iface)) { in interfaceStatusChanged()
242 if (VDBG) Log.d(TAG, "ignore interface down for " + iface); in interfaceStatusChanged()
[all …]
DNat464Xlat.java216 private LinkAddress getLinkAddress(String iface) { in getLinkAddress() argument
218 InterfaceConfiguration config = mNMService.getInterfaceConfig(iface); in getLinkAddress()
226 private void maybeSetIpv6NdOffload(String iface, boolean on) { in maybeSetIpv6NdOffload() argument
231 Slog.d(TAG, (on ? "En" : "Dis") + "abling ND offload on " + iface); in maybeSetIpv6NdOffload()
232 mNMService.setInterfaceIpv6NdOffload(iface, on); in maybeSetIpv6NdOffload()
234 Slog.w(TAG, "Changing IPv6 ND offload on " + iface + "failed: " + e); in maybeSetIpv6NdOffload()
239 public void interfaceLinkStateChanged(String iface, boolean up) { in interfaceLinkStateChanged() argument
241 if (isStarted() && up && mIface.equals(iface)) { in interfaceLinkStateChanged()
242 Slog.i(TAG, "interface " + iface + " is up, mIsRunning " + mIsRunning + "->true"); in interfaceLinkStateChanged()
245 LinkAddress clatAddress = getLinkAddress(iface); in interfaceLinkStateChanged()
[all …]
/frameworks/base/tools/aidl/
Dgenerate_java.cpp62 interface_type* iface) in generate_java() argument
66 if (iface->document_item.item_type == INTERFACE_TYPE_BINDER) { in generate_java()
67 cl = generate_binder_interface_class(iface); in generate_java()
69 else if (iface->document_item.item_type == INTERFACE_TYPE_RPC) { in generate_java()
70 cl = generate_rpc_interface_class(iface); in generate_java()
75 if (iface->package) document->package = iface->package; in generate_java()
Dgenerate_java_rpc.cpp88 DispatcherClass(const interface_type* iface, Expression* target);
108 DispatcherClass::DispatcherClass(const interface_type* iface, Expression* target) in DispatcherClass() argument
290 RpcProxyClass(const interface_type* iface, InterfaceType* interfaceType);
301 RpcProxyClass::RpcProxyClass(const interface_type* iface, InterfaceType* interfaceType) in RpcProxyClass() argument
304 this->comment = gather_comments(iface->comments_token->extra); in RpcProxyClass()
359 EventListenerClass(const interface_type* iface, Type* listenerType);
374 EventListenerClass::EventListenerClass(const interface_type* iface, Type* listenerType) in EventListenerClass() argument
375 :DispatcherClass(iface, new FieldVariable(THIS_VALUE, "_listener")) in EventListenerClass()
379 this->type = new Type(iface->package ? iface->package : "", in EventListenerClass()
380 append(iface->name.data, ".Presenter"), in EventListenerClass()
[all …]
Dgenerate_java.h12 interface_type* iface);
14 Class* generate_binder_interface_class(const interface_type* iface);
15 Class* generate_rpc_interface_class(const interface_type* iface);
/frameworks/base/media/java/android/media/
DRemoteDisplay.java43 private native long nativeListen(String iface); in nativeListen() argument
69 public static RemoteDisplay listen(String iface, Listener listener, Handler handler) { in listen() argument
70 if (iface == null) { in listen()
81 display.startListening(iface); in listen()
115 private void startListening(String iface) { in startListening() argument
116 mPtr = nativeListen(iface); in startListening()
119 + "remote display connection on \"" + iface + "\""); in startListening()
/frameworks/base/core/jni/
Dcom_android_internal_net_NetworkStatsFactory.cpp41 jfieldID iface; member
53 char iface[32]; member
152 while (*pos != ' ' && *pos != 0 && ifaceIdx < (int)(sizeof(s.iface)-1)) { in readNetworkStatsDetail()
153 s.iface[ifaceIdx] = *pos; in readNetworkStatsDetail()
162 s.iface[ifaceIdx] = 0; in readNetworkStatsDetail()
167 if (limitIfaces[i] == s.iface) { in readNetworkStatsDetail()
228 ScopedLocalRef<jobjectArray> iface(env, get_string_array(env, stats, in readNetworkStatsDetail() local
229 gNetworkStatsClassInfo.iface, size, grow)); in readNetworkStatsDetail()
230 if (iface.get() == NULL) return -1; in readNetworkStatsDetail()
257 ScopedLocalRef<jstring> ifaceString(env, env->NewStringUTF(lines[i].iface)); in readNetworkStatsDetail()
[all …]
Dandroid_net_TrafficStats.cpp77 static int parseIfaceStats(const char* iface, struct Stats* stats) { in parseIfaceStats() argument
97 if (!iface || !strcmp(iface, cur_iface)) { in parseIfaceStats()
128 char iface[32]; in parseUidStats() local
136 &idx, iface, &tag, &cur_uid, &set, &rxBytes, &rxPackets, in parseUidStats()
163 static jlong getIfaceStat(JNIEnv* env, jclass clazz, jstring iface, jint type) { in getIfaceStat() argument
164 ScopedUtfChars iface8(env, iface); in getIfaceStat()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNative.java648 public boolean startWpsPbc(String iface, String bssid) { in startWpsPbc() argument
651 return doBooleanCommandNative("IFNAME=" + iface + " WPS_PBC"); in startWpsPbc()
653 return doBooleanCommandNative("IFNAME=" + iface + " WPS_PBC " + bssid); in startWpsPbc()
663 public boolean startWpsPinKeypad(String iface, String pin) { in startWpsPinKeypad() argument
666 return doBooleanCommandNative("IFNAME=" + iface + " WPS_PIN any " + pin); in startWpsPinKeypad()
679 public String startWpsPinDisplay(String iface, String bssid) { in startWpsPinDisplay() argument
682 return doStringCommandNative("IFNAME=" + iface + " WPS_PIN any"); in startWpsPinDisplay()
684 return doStringCommandNative("IFNAME=" + iface + " WPS_PIN " + bssid); in startWpsPinDisplay()
750 public boolean setP2pGroupIdle(String iface, int time) { in setP2pGroupIdle() argument
752 return doBooleanCommandNative("IFNAME=" + iface + " SET p2p_group_idle " + time); in setP2pGroupIdle()
[all …]
DWifiMonitor.java553 public synchronized void startMonitoring(String iface) { in startMonitoring() argument
554 WifiMonitor m = mIfaceMap.get(iface); in startMonitoring()
556 Log.e(TAG, "startMonitor called with unknown iface=" + iface); in startMonitoring()
560 Log.d(TAG, "startMonitoring(" + iface + ") with mConnected = " + mConnected); in startMonitoring()
582 mIfaceMap.remove(iface); in startMonitoring()
584 Log.e(TAG, "startMonitoring(" + iface + ") failed!"); in startMonitoring()
591 public synchronized void stopMonitoring(String iface) { in stopMonitoring() argument
592 WifiMonitor m = mIfaceMap.get(iface); in stopMonitoring()
593 if (DBG) Log.d(TAG, "stopMonitoring(" + iface + ") = " + m.mStateMachine); in stopMonitoring()
598 public synchronized void registerInterfaceMonitor(String iface, WifiMonitor m) { in registerInterfaceMonitor() argument
[all …]
/frameworks/opt/net/wifi/service/jni/
Dcom_android_server_wifi_WifiNative.cpp342 JNIEnv *env, jclass cls, jint iface, jint id, jobject settings) { in android_net_wifi_startScan() argument
344 wifi_interface_handle handle = getIfaceHandle(env, cls, iface); in android_net_wifi_startScan()
345 ALOGD("starting scan on interface[%d] = %p", iface, handle); in android_net_wifi_startScan()
410 static jboolean android_net_wifi_stopScan(JNIEnv *env, jclass cls, jint iface, jint id) { in android_net_wifi_stopScan() argument
411 wifi_interface_handle handle = getIfaceHandle(env, cls, iface); in android_net_wifi_stopScan()
412 ALOGD("stopping scan on interface[%d] = %p", iface, handle); in android_net_wifi_stopScan()
418 JNIEnv *env, jclass cls, jint iface, jboolean flush) { in android_net_wifi_getScanResults() argument
423 wifi_interface_handle handle = getIfaceHandle(env, cls, iface); in android_net_wifi_getScanResults()
424 ALOGD("getting scan results on interface[%d] = %p", iface, handle); in android_net_wifi_getScanResults()
473 JNIEnv *env, jclass cls, jint iface, jobject capabilities) { in android_net_wifi_getScanCapabilities() argument
[all …]
/frameworks/base/core/java/com/android/internal/os/
DTransferPipe.java52 void go(IInterface iface, FileDescriptor fd, String prefix, in go() argument
73 static void go(Caller caller, IInterface iface, FileDescriptor out, in go() argument
75 go(caller, iface, out, prefix, args, DEFAULT_TIMEOUT); in go()
78 static void go(Caller caller, IInterface iface, FileDescriptor out, in go() argument
80 if ((iface.asBinder()) instanceof Binder) { in go()
83 caller.go(iface, out, prefix, args); in go()
91 caller.go(iface, tp.getWriteFd().getFileDescriptor(), prefix, args); in go()
/frameworks/base/core/java/com/android/internal/net/
DNetworkStatsFactory.java103 entry.iface = reader.nextString(); in readNetworkStatsSummaryDev()
161 entry.iface = reader.nextString(); in readNetworkStatsSummaryXt()
209 if (Objects.equals(entry.iface, stackedIface)) { in readNetworkStatsDetail()
223 if (entry.iface != null && entry.iface.startsWith("clat")) { in readNetworkStatsDetail()
291 entry.iface = reader.nextString(); in javaReadNetworkStatsDetail()
300 if ((limitIfaces == null || ArrayUtils.contains(limitIfaces, entry.iface)) in javaReadNetworkStatsDetail()

123