/frameworks/opt/net/wifi/service/jni/ |
D | wifi_hal_stub.h | 38 wifi_error wifi_get_iface_name_stub(wifi_interface_handle iface, char *name, size_t size); 39 wifi_error wifi_set_iface_event_handler_stub(wifi_request_id id, wifi_interface_handle iface, 41 wifi_error wifi_reset_iface_event_handler_stub(wifi_request_id id, wifi_interface_handle iface); 46 wifi_error wifi_start_gscan_stub(wifi_request_id id, wifi_interface_handle iface, 48 wifi_error wifi_stop_gscan_stub(wifi_request_id id, wifi_interface_handle iface); 49 wifi_error wifi_get_cached_gscan_results_stub(wifi_interface_handle iface, byte flush, 51 wifi_error wifi_set_bssid_hotlist_stub(wifi_request_id id, wifi_interface_handle iface, 53 wifi_error wifi_reset_bssid_hotlist_stub(wifi_request_id id, wifi_interface_handle iface); 54 wifi_error wifi_set_significant_change_handler_stub(wifi_request_id id, wifi_interface_handle iface, 57 wifi_interface_handle iface); [all …]
|
D | com_android_server_wifi_WifiNative.cpp | 454 JNIEnv *env, jclass cls, jint iface, jint id, jobject settings) { in android_net_wifi_startScan() argument 457 wifi_interface_handle handle = getIfaceHandle(helper, cls, iface); in android_net_wifi_startScan() 530 static jboolean android_net_wifi_stopScan(JNIEnv *env, jclass cls, jint iface, jint id) { in android_net_wifi_stopScan() argument 533 wifi_interface_handle handle = getIfaceHandle(helper, cls, iface); in android_net_wifi_stopScan() 546 JNIEnv *env, jclass cls, jint iface, jboolean flush) { in android_net_wifi_getScanResults() argument 552 wifi_interface_handle handle = getIfaceHandle(helper, cls, iface); in android_net_wifi_getScanResults() 615 JNIEnv *env, jclass cls, jint iface, jobject capabilities) { in android_net_wifi_getScanCapabilities() argument 618 wifi_interface_handle handle = getIfaceHandle(helper, cls, iface); in android_net_wifi_getScanCapabilities() 771 JNIEnv *env, jclass cls, jint iface, jint id, jobject ap) { in android_net_wifi_setHotlist() argument 774 wifi_interface_handle handle = getIfaceHandle(helper, cls, iface); in android_net_wifi_setHotlist() [all …]
|
D | com_android_server_wifi_nan_WifiNanNative.cpp | 213 jint iface) { in android_net_wifi_nan_register_handler() argument 215 wifi_interface_handle handle = getIfaceHandle(helper, wifi_native_cls, iface); in android_net_wifi_nan_register_handler() 242 jint iface, in android_net_wifi_nan_enable_request() argument 245 wifi_interface_handle handle = getIfaceHandle(helper, wifi_native_cls, iface); in android_net_wifi_nan_enable_request() 266 jint iface) { in android_net_wifi_nan_get_capabilities() argument 268 wifi_interface_handle handle = getIfaceHandle(helper, wifi_native_cls, iface); in android_net_wifi_nan_get_capabilities() 279 jint iface) { in android_net_wifi_nan_disable_request() argument 281 wifi_interface_handle handle = getIfaceHandle(helper, wifi_native_cls, iface); in android_net_wifi_nan_disable_request() 293 jint iface, in android_net_wifi_nan_publish() argument 297 wifi_interface_handle handle = getIfaceHandle(helper, wifi_native_cls, iface); in android_net_wifi_nan_publish() [all …]
|
/frameworks/opt/net/wifi/service/lib/ |
D | wifi_hal_stub.cpp | 64 wifi_error wifi_get_iface_name_stub(wifi_interface_handle iface, char *name, size_t size) { in wifi_get_iface_name_stub() argument 69 wifi_interface_handle iface, wifi_event_handler eh) { in wifi_set_iface_event_handler_stub() argument 73 wifi_error wifi_reset_iface_event_handler_stub(wifi_request_id id, wifi_interface_handle iface) { in wifi_reset_iface_event_handler_stub() argument 77 wifi_error wifi_start_gscan_stub(wifi_request_id id, wifi_interface_handle iface, in wifi_start_gscan_stub() argument 82 wifi_error wifi_stop_gscan_stub(wifi_request_id id, wifi_interface_handle iface) { in wifi_stop_gscan_stub() argument 86 wifi_error wifi_get_cached_gscan_results_stub(wifi_interface_handle iface, byte flush, in wifi_get_cached_gscan_results_stub() argument 91 wifi_error wifi_set_bssid_hotlist_stub(wifi_request_id id, wifi_interface_handle iface, in wifi_set_bssid_hotlist_stub() argument 96 wifi_error wifi_reset_bssid_hotlist_stub(wifi_request_id id, wifi_interface_handle iface) { in wifi_reset_bssid_hotlist_stub() argument 100 wifi_error wifi_set_significant_change_handler_stub(wifi_request_id id, wifi_interface_handle iface, in wifi_set_significant_change_handler_stub() argument 105 …error wifi_reset_significant_change_handler_stub(wifi_request_id id, wifi_interface_handle iface) { in wifi_reset_significant_change_handler_stub() argument [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiMonitor.java | 552 public synchronized void registerHandler(String iface, int what, Handler handler) { in registerHandler() argument 553 SparseArray<Set<Handler>> ifaceHandlers = mHandlerMap.get(iface); in registerHandler() 556 mHandlerMap.put(iface, ifaceHandlers); in registerHandler() 567 private boolean isMonitoring(String iface) { in isMonitoring() argument 568 Boolean val = mMonitoringMap.get(iface); in isMonitoring() 577 private void setMonitoring(String iface, boolean enabled) { in setMonitoring() argument 578 mMonitoringMap.put(iface, enabled); in setMonitoring() 581 for (String iface : mMonitoringMap.keySet()) { in setMonitoringNone() 582 setMonitoring(iface, false); in setMonitoringNone() 611 public synchronized void startMonitoring(String iface) { in startMonitoring() argument [all …]
|
D | WifiNative.java | 999 public boolean startWpsPbc(String iface, String bssid) { in startWpsPbc() argument 1002 return doBooleanCommandNative("IFNAME=" + iface + " WPS_PBC"); in startWpsPbc() 1004 return doBooleanCommandNative("IFNAME=" + iface + " WPS_PBC " + bssid); in startWpsPbc() 1014 public boolean startWpsPinKeypad(String iface, String pin) { in startWpsPinKeypad() argument 1017 return doBooleanCommandNative("IFNAME=" + iface + " WPS_PIN any " + pin); in startWpsPinKeypad() 1030 public String startWpsPinDisplay(String iface, String bssid) { in startWpsPinDisplay() argument 1033 return doStringCommandNative("IFNAME=" + iface + " WPS_PIN any"); in startWpsPinDisplay() 1035 return doStringCommandNative("IFNAME=" + iface + " WPS_PIN " + bssid); in startWpsPinDisplay() 1112 public boolean setP2pGroupIdle(String iface, int time) { in setP2pGroupIdle() argument 1114 return doBooleanCommandNative("IFNAME=" + iface + " SET p2p_group_idle " + time); in setP2pGroupIdle() [all …]
|
/frameworks/base/core/java/android/os/ |
D | INetworkManagementService.aidl | 63 InterfaceConfiguration getInterfaceConfig(String iface); in getInterfaceConfig() argument 68 void setInterfaceConfig(String iface, in InterfaceConfiguration cfg); in setInterfaceConfig() argument 73 void clearInterfaceAddresses(String iface); in clearInterfaceAddresses() argument 78 void setInterfaceDown(String iface); in setInterfaceDown() argument 83 void setInterfaceUp(String iface); in setInterfaceUp() argument 88 void setInterfaceIpv6PrivacyExtensions(String iface, boolean enable); in setInterfaceIpv6PrivacyExtensions() argument 93 void disableIpv6(String iface); in disableIpv6() argument 98 void enableIpv6(String iface); in enableIpv6() argument 103 void setInterfaceIpv6NdOffload(String iface, boolean enable); in setInterfaceIpv6NdOffload() argument 118 void setMtu(String iface, int mtu); in setMtu() argument [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/jni/ |
D | wifi_hal_mock.h | 57 wifi_interface_handle iface, 60 wifi_interface_handle iface); 62 wifi_interface_handle iface, 65 wifi_interface_handle iface, 68 wifi_interface_handle iface, 71 transaction_id id, wifi_interface_handle iface, 74 transaction_id id, wifi_interface_handle iface, 77 wifi_interface_handle iface, 80 wifi_interface_handle iface, 83 wifi_interface_handle iface, [all …]
|
/frameworks/base/core/java/android/net/ |
D | TrafficStats.java | 354 for (String iface : getMobileIfaces()) { in getMobileTxPackets() 355 total += getTxPackets(iface); in getMobileTxPackets() 371 for (String iface : getMobileIfaces()) { in getMobileRxPackets() 372 total += getRxPackets(iface); in getMobileRxPackets() 388 for (String iface : getMobileIfaces()) { in getMobileTxBytes() 389 total += getTxBytes(iface); in getMobileTxBytes() 405 for (String iface : getMobileIfaces()) { in getMobileRxBytes() 406 total += getRxBytes(iface); in getMobileRxBytes() 414 for (String iface : getMobileIfaces()) { in getMobileTcpRxPackets() 415 final long stat = nativeGetIfaceStat(iface, TYPE_TCP_RX_PACKETS); in getMobileTcpRxPackets() [all …]
|
D | INetworkManagementEventObserver.aidl | 34 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
|
D | NetworkStats.java | 87 private String[] iface; field in NetworkStats 99 public String iface; field in NetworkStats.Entry 124 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, in Entry() argument 126 this(iface, uid, set, tag, ROAMING_NO, rxBytes, rxPackets, txBytes, txPackets, in Entry() 130 public Entry(String iface, int uid, int set, int tag, int roaming, long rxBytes, in Entry() argument 132 this.iface = iface; in Entry() 164 builder.append("iface=").append(iface); in toString() 184 && iface.equals(e.iface); in equals() 195 this.iface = new String[initialSize]; in NetworkStats() 208 this.iface = EmptyArray.STRING; in NetworkStats() [all …]
|
D | RouteInfo.java | 102 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 …]
|
D | StaticIpConfiguration.java | 83 public List<RouteInfo> getRoutes(String iface) { in getRoutes() argument 86 RouteInfo connectedRoute = new RouteInfo(ipAddress, null, iface); in getRoutes() 89 routes.add(RouteInfo.makeHostRoute(gateway, iface)); in getRoutes() 93 routes.add(new RouteInfo((IpPrefix) null, gateway, iface)); in getRoutes() 104 public LinkProperties toLinkProperties(String iface) { in toLinkProperties() argument 106 lp.setInterfaceName(iface); in toLinkProperties() 110 for (RouteInfo route : getRoutes(iface)) { in toLinkProperties()
|
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/ |
D | EthernetNetworkFactory.java | 147 private void updateInterfaceState(String iface, boolean up) { in updateInterfaceState() argument 148 if (!mIface.equals(iface)) { in updateInterfaceState() 151 Log.d(TAG, "updateInterface: " + iface + " link " + (up ? "up" : "down")); in updateInterfaceState() 171 public void interfaceLinkStateChanged(String iface, boolean up) { in interfaceLinkStateChanged() argument 172 updateInterfaceState(iface, up); in interfaceLinkStateChanged() 176 public void interfaceAdded(String iface) { in interfaceAdded() argument 177 maybeTrackInterface(iface); in interfaceAdded() 181 public void interfaceRemoved(String iface) { in interfaceRemoved() argument 182 stopTrackingInterface(iface); in interfaceRemoved() 186 private void setInterfaceUp(String iface) { in setInterfaceUp() argument [all …]
|
/frameworks/base/core/java/com/android/server/net/ |
D | BaseNetworkObserver.java | 31 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
|
D | NetlinkTracker.java | 82 public NetlinkTracker(String iface, Callback callback) { in NetlinkTracker() argument 83 TAG = "NetlinkTracker/" + iface; in NetlinkTracker() 84 mInterfaceName = iface; in NetlinkTracker() 91 private void maybeLog(String operation, String iface, LinkAddress address) { in maybeLog() argument 93 Log.d(TAG, operation + ": " + address + " on " + iface + in maybeLog() 105 public void interfaceRemoved(String iface) { in interfaceRemoved() argument 106 maybeLog("interfaceRemoved", iface); in interfaceRemoved() 107 if (mInterfaceName.equals(iface)) { in interfaceRemoved() 118 public void addressUpdated(String iface, LinkAddress address) { in addressUpdated() argument 119 if (mInterfaceName.equals(iface)) { in addressUpdated() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | MockWifiMonitor.java | 58 public void answer(String iface, int what, Handler handler) { in answer() argument 59 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface); in answer() 62 mHandlerMap.put(iface, ifaceHandlers); in answer() 71 public void sendMessage(String iface, int what) { in sendMessage() argument 72 sendMessage(iface, Message.obtain(null, what)); in sendMessage() 74 public void sendMessage(String iface, Message message) { in sendMessage() argument 75 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface); in sendMessage() 77 assertTrue("No handler for iface=" + iface + ",what=" + message.what, in sendMessage() 86 assertTrue("No handler for message with nonexistant iface, iface=" + iface in sendMessage()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Nat464Xlat.java | 219 private LinkAddress getLinkAddress(String iface) { in getLinkAddress() argument 221 InterfaceConfiguration config = mNMService.getInterfaceConfig(iface); in getLinkAddress() 229 private void maybeSetIpv6NdOffload(String iface, boolean on) { in maybeSetIpv6NdOffload() argument 234 Slog.d(TAG, (on ? "En" : "Dis") + "abling ND offload on " + iface); in maybeSetIpv6NdOffload() 235 mNMService.setInterfaceIpv6NdOffload(iface, on); in maybeSetIpv6NdOffload() 237 Slog.w(TAG, "Changing IPv6 ND offload on " + iface + "failed: " + e); in maybeSetIpv6NdOffload() 242 public void interfaceLinkStateChanged(String iface, boolean up) { in interfaceLinkStateChanged() argument 244 if (isStarted() && up && mIface.equals(iface)) { in interfaceLinkStateChanged() 245 Slog.i(TAG, "interface " + iface + " is up, mIsRunning " + mIsRunning + "->true"); in interfaceLinkStateChanged() 248 LinkAddress clatAddress = getLinkAddress(iface); in interfaceLinkStateChanged() [all …]
|
D | Tethering.java | 262 public void interfaceStatusChanged(String iface, boolean up) { in interfaceStatusChanged() argument 265 if (VDBG) Log.d(TAG, "interfaceStatusChanged " + iface + ", " + up); in interfaceStatusChanged() 267 int interfaceType = ifaceNameToType(iface); in interfaceStatusChanged() 272 TetherState tetherState = mTetherStates.get(iface); in interfaceStatusChanged() 275 trackNewTetherableInterface(iface, interfaceType); in interfaceStatusChanged() 281 mTetherStates.remove(iface); in interfaceStatusChanged() 287 if (VDBG) Log.d(TAG, "ignore interface down for " + iface); in interfaceStatusChanged() 294 public void interfaceLinkStateChanged(String iface, boolean up) { in interfaceLinkStateChanged() argument 295 interfaceStatusChanged(iface, up); in interfaceLinkStateChanged() 298 private boolean isUsb(String iface) { in isUsb() argument [all …]
|
/frameworks/native/libs/binder/ |
D | IInterface.cpp | 33 sp<IBinder> IInterface::asBinder(const IInterface* iface) in asBinder() argument 35 if (iface == NULL) return NULL; in asBinder() 36 return const_cast<IInterface*>(iface)->onAsBinder(); in asBinder() 40 sp<IBinder> IInterface::asBinder(const sp<IInterface>& iface) in asBinder() argument 42 if (iface == NULL) return NULL; in asBinder() 43 return iface->onAsBinder(); in asBinder()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkManagementService.java | 379 private void notifyInterfaceStatusChanged(String iface, boolean up) { in notifyInterfaceStatusChanged() argument 384 mObservers.getBroadcastItem(i).interfaceStatusChanged(iface, up); in notifyInterfaceStatusChanged() 397 private void notifyInterfaceLinkStateChanged(String iface, boolean up) { in notifyInterfaceLinkStateChanged() argument 402 mObservers.getBroadcastItem(i).interfaceLinkStateChanged(iface, up); in notifyInterfaceLinkStateChanged() 414 private void notifyInterfaceAdded(String iface) { in notifyInterfaceAdded() argument 419 mObservers.getBroadcastItem(i).interfaceAdded(iface); in notifyInterfaceAdded() 431 private void notifyInterfaceRemoved(String iface) { in notifyInterfaceRemoved() argument 434 mActiveAlerts.remove(iface); in notifyInterfaceRemoved() 435 mActiveQuotas.remove(iface); in notifyInterfaceRemoved() 441 mObservers.getBroadcastItem(i).interfaceRemoved(iface); in notifyInterfaceRemoved() [all …]
|
/frameworks/base/media/java/android/media/ |
D | RemoteDisplay.java | 44 private native long nativeListen(String iface, String opPackageName); in nativeListen() argument 71 public static RemoteDisplay listen(String iface, Listener listener, Handler handler, in listen() argument 73 if (iface == null) { in listen() 84 display.startListening(iface); in listen() 118 private void startListening(String iface) { in startListening() argument 119 mPtr = nativeListen(iface, mOpPackageName); in startListening() 122 + "remote display connection on \"" + iface + "\""); in startListening()
|
/frameworks/base/services/core/java/com/android/server/utils/ |
D | ManagedApplicationService.java | 148 IInterface iface; in sendEvent() local 150 iface = mBoundInterface; in sendEvent() 151 if (iface == null) { in sendEvent() 156 if (iface != null) { in sendEvent() 158 event.runEvent(iface); in sendEvent() 202 IInterface iface = null; in connect() 223 iface = mBoundInterface; in connect() 232 if (iface != null && pendingEvent != null) { in connect() 234 pendingEvent.runEvent(iface); in connect()
|
/frameworks/base/core/jni/ |
D | com_android_internal_net_NetworkStatsFactory.cpp | 42 jfieldID iface; member 55 char iface[32]; member 154 while (*pos != ' ' && *pos != 0 && ifaceIdx < (int)(sizeof(s.iface)-1)) { in readNetworkStatsDetail() 155 s.iface[ifaceIdx] = *pos; in readNetworkStatsDetail() 164 s.iface[ifaceIdx] = 0; in readNetworkStatsDetail() 169 if (limitIfaces[i] == s.iface) { in readNetworkStatsDetail() 230 ScopedLocalRef<jobjectArray> iface(env, get_string_array(env, stats, in readNetworkStatsDetail() local 231 gNetworkStatsClassInfo.iface, size, grow)); in readNetworkStatsDetail() 232 if (iface.get() == NULL) return -1; in readNetworkStatsDetail() 262 ScopedLocalRef<jstring> ifaceString(env, env->NewStringUTF(lines[i].iface)); in readNetworkStatsDetail() [all …]
|
D | android_net_TrafficStats.cpp | 77 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()
|