/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiMonitor.java | 131 public synchronized void registerHandler(String iface, int what, Handler handler) { in registerHandler() argument 132 SparseArray<Set<Handler>> ifaceHandlers = mHandlerMap.get(iface); in registerHandler() 135 mHandlerMap.put(iface, ifaceHandlers); in registerHandler() 151 public synchronized void deregisterHandler(String iface, int what, Handler handler) { in deregisterHandler() argument 152 SparseArray<Set<Handler>> ifaceHandlers = mHandlerMap.get(iface); in deregisterHandler() 164 private boolean isMonitoring(String iface) { in isMonitoring() argument 165 Boolean val = mMonitoringMap.get(iface); in isMonitoring() 180 public void setMonitoring(String iface, boolean enabled) { in setMonitoring() argument 181 mMonitoringMap.put(iface, enabled); in setMonitoring() 185 for (String iface : mMonitoringMap.keySet()) { in setMonitoringNone() [all …]
|
D | WifiNative.java | 208 Iface iface = new Iface(mNextId, type); in allocateIface() local 209 mIfaces.put(mNextId, iface); in allocateIface() 211 return iface; in allocateIface() 226 for (Iface iface : mIfaces.values()) { in getIface() 227 if (TextUtils.equals(iface.name, ifaceName)) { in getIface() 228 return iface; in getIface() 246 for (Iface iface : mIfaces.values()) { in hasAnyIfaceOfType() 247 if (iface.type == type) { in hasAnyIfaceOfType() 256 for (Iface iface : mIfaces.values()) { in findAnyIfaceOfType() 257 if (iface.type == type) { in findAnyIfaceOfType() [all …]
|
D | SupplicantStaIfaceHal.java | 325 @NonNull ISupplicantStaIface iface) throws RemoteException { in trySetupStaIfaceV1_3() argument 330 if (!registerCallbackV1_3(getStaIfaceMockableV1_3(iface), callbackV13)) { in trySetupStaIfaceV1_3() 339 @NonNull ISupplicantStaIface iface) throws RemoteException { in trySetupStaIfaceV1_2() argument 343 if (trySetupStaIfaceV1_3(ifaceName, iface)) { in trySetupStaIfaceV1_2() 350 if (!registerCallbackV1_2(getStaIfaceMockableV1_2(iface), callbackV12)) { in trySetupStaIfaceV1_2() 359 @NonNull ISupplicantStaIface iface) throws RemoteException { in trySetupStaIfaceV1_1() argument 363 if (trySetupStaIfaceV1_2(ifaceName, iface)) { in trySetupStaIfaceV1_1() 370 if (!registerCallbackV1_1(getStaIfaceMockableV1_1(iface), callbackV11)) { in trySetupStaIfaceV1_1() 395 ISupplicantStaIface iface = getStaIfaceMockable(ifaceHwBinder); in setupStaIface() local 398 if (trySetupStaIfaceV1_1(ifaceName, iface)) { in setupStaIface() [all …]
|
D | WifiVendorHal.java | 442 IWifiStaIface iface = mHalDeviceManager.createStaIface( in createStaIface() local 444 if (iface == null) { in createStaIface() 448 String ifaceName = mHalDeviceManager.getName((IWifiIface) iface); in createStaIface() 453 if (!registerStaIfaceCallback(iface)) { in createStaIface() 457 if (!retrieveWifiChip((IWifiIface) iface)) { in createStaIface() 461 enableLinkLayerStats(iface); in createStaIface() 462 mIWifiStaIfaces.put(ifaceName, iface); in createStaIface() 475 IWifiStaIface iface = getStaIface(ifaceName); in removeStaIface() local 476 if (iface == null) return boolResult(false); in removeStaIface() 478 if (!mHalDeviceManager.removeIface((IWifiIface) iface)) { in removeStaIface() [all …]
|
D | MboOceController.java | 54 String iface = mWifiNative.getClientInterfaceName(); in enable() local 55 if (iface == null) { in enable() 58 mIsMboSupported = (mWifiNative.getSupportedFeatureSet(iface) & WIFI_FEATURE_MBO) != 0; in enable() 59 mIsOceSupported = (mWifiNative.getSupportedFeatureSet(iface) & WIFI_FEATURE_OCE) != 0; in enable() 102 String iface = mWifiNative.getClientInterfaceName(); 103 if (iface == null) { 121 mWifiNative.setMboCellularDataStatus(iface, dataAvailable);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pMonitor.java | 102 public synchronized void registerHandler(String iface, int what, Handler handler) { in registerHandler() argument 103 SparseArray<Set<Handler>> ifaceHandlers = mHandlerMap.get(iface); in registerHandler() 106 mHandlerMap.put(iface, ifaceHandlers); in registerHandler() 117 private boolean isMonitoring(String iface) { in isMonitoring() argument 118 Boolean val = mMonitoringMap.get(iface); in isMonitoring() 133 public void setMonitoring(String iface, boolean enabled) { in setMonitoring() argument 134 mMonitoringMap.put(iface, enabled); in setMonitoring() 138 for (String iface : mMonitoringMap.keySet()) { in setMonitoringNone() 139 setMonitoring(iface, false); in setMonitoringNone() 149 public synchronized void startMonitoring(String iface) { in startMonitoring() argument [all …]
|
/frameworks/opt/net/wifi/libwifi_hal/ |
D | hal_tool.cpp | 72 wifi_error wifi_get_iface_name_stub(wifi_interface_handle iface, char* name, in wifi_get_iface_name_stub() argument 78 wifi_interface_handle iface, in wifi_set_iface_event_handler_stub() argument 84 wifi_interface_handle iface) { in wifi_reset_iface_event_handler_stub() argument 89 wifi_interface_handle iface, in wifi_start_gscan_stub() argument 96 wifi_interface_handle iface) { in wifi_stop_gscan_stub() argument 100 wifi_error wifi_get_cached_gscan_results_stub(wifi_interface_handle iface, in wifi_get_cached_gscan_results_stub() argument 108 wifi_interface_handle iface, in wifi_set_bssid_hotlist_stub() argument 115 wifi_interface_handle iface) { in wifi_reset_bssid_hotlist_stub() argument 120 wifi_request_id id, wifi_interface_handle iface, in wifi_set_significant_change_handler_stub() argument 127 wifi_request_id id, wifi_interface_handle iface) { in wifi_reset_significant_change_handler_stub() argument [all …]
|
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/ |
D | EthernetTracker.java | 157 void updateIpConfiguration(String iface, IpConfiguration ipConfiguration) { in updateIpConfiguration() argument 159 Log.i(TAG, "updateIpConfiguration, iface: " + iface + ", cfg: " + ipConfiguration); in updateIpConfiguration() 162 mConfigStore.write(iface, ipConfiguration); in updateIpConfiguration() 163 mIpConfigurations.put(iface, ipConfiguration); in updateIpConfiguration() 165 mHandler.post(() -> mFactory.updateIpConfiguration(iface, ipConfiguration)); in updateIpConfiguration() 168 IpConfiguration getIpConfiguration(String iface) { in getIpConfiguration() argument 169 return mIpConfigurations.get(iface); in getIpConfiguration() 172 boolean isTrackingInterface(String iface) { in isTrackingInterface() argument 173 return mFactory.hasInterface(iface); in isTrackingInterface() 184 boolean isRestrictedInterface(String iface) { in isRestrictedInterface() argument [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | NetdWrapper.java | 66 void interfaceStatusChanged(String iface, boolean up); in interfaceStatusChanged() argument 74 void interfaceLinkStateChanged(String iface, boolean up); in interfaceLinkStateChanged() argument 165 private void modifyInterfaceInNetwork(boolean add, int netId, String iface) { in modifyInterfaceInNetwork() argument 168 mNetdService.networkAddInterface(netId, iface); in modifyInterfaceInNetwork() 170 mNetdService.networkRemoveInterface(netId, iface); in modifyInterfaceInNetwork() 214 public void addInterfaceToLocalNetwork(String iface, List<RouteInfo> routes) { in addInterfaceToLocalNetwork() argument 215 modifyInterfaceInNetwork(MODIFY_OPERATION_ADD, INetd.LOCAL_NET_ID, iface); in addInterfaceToLocalNetwork() 225 new RouteInfo(new IpPrefix("fe80::/64"), null, iface, RouteInfo.RTN_UNICAST)); in addInterfaceToLocalNetwork() 231 public void removeInterfaceFromLocalNetwork(String iface) { in removeInterfaceFromLocalNetwork() argument 232 modifyInterfaceInNetwork(MODIFY_OPERATION_REMOVE, INetd.LOCAL_NET_ID, iface); in removeInterfaceFromLocalNetwork() [all …]
|
/frameworks/base/core/java/android/os/ |
D | INetworkManagementService.aidl | 60 InterfaceConfiguration getInterfaceConfig(String iface); in getInterfaceConfig() argument 66 void setInterfaceConfig(String iface, in InterfaceConfiguration cfg); in setInterfaceConfig() argument 72 void clearInterfaceAddresses(String iface); in clearInterfaceAddresses() argument 77 void setInterfaceDown(String iface); in setInterfaceDown() argument 82 void setInterfaceUp(String iface); in setInterfaceUp() argument 88 void setInterfaceIpv6PrivacyExtensions(String iface, boolean enable); in setInterfaceIpv6PrivacyExtensions() argument 94 void disableIpv6(String iface); in disableIpv6() argument 100 void enableIpv6(String iface); in enableIpv6() argument 107 void setIPv6AddrGenMode(String iface, int mode); in setIPv6AddrGenMode() argument 122 void setMtu(String iface, int mtu); in setMtu() argument [all …]
|
/frameworks/base/lowpan/java/android/net/lowpan/ |
D | LowpanManager.java | 113 LowpanInterface iface = null; in getInterfaceNoCreate() local 117 iface = mBinderCache.get(ifaceService.asBinder()).get(); in getInterfaceNoCreate() 121 return iface; in getInterfaceNoCreate() 127 LowpanInterface iface = null; in getInterface() local 132 iface = mBinderCache.get(ifaceService.asBinder()).get(); in getInterface() 135 if (iface == null) { in getInterface() 138 iface = new LowpanInterface(mContext, ifaceService, mLooper); in getInterface() 141 mInterfaceCache.put(iface.getName(), iface); in getInterface() local 144 mBinderCache.put(ifaceService.asBinder(), new WeakReference(iface)); in getInterface() 157 LowpanInterface iface = in getInterface() [all …]
|
/frameworks/base/packages/Tethering/tests/integration/src/android/net/ |
D | EthernetTetheringTest.java | 164 final String iface = mTetheredInterfaceRequester.getInterface(); in testVirtualEthernetAlreadyExists() local 166 mTestIface.getInterfaceName(), iface); in testVirtualEthernetAlreadyExists() 182 final String iface = futureIface.get(TIMEOUT_MS, TimeUnit.MILLISECONDS); in testVirtualEthernet() local 184 mTestIface.getInterfaceName(), iface); in testVirtualEthernet() 197 final String iface = mTetheredInterfaceRequester.getInterface(); in testStaticIpv4() local 199 mTestIface.getInterfaceName(), iface); in testStaticIpv4() 201 assertInvalidStaticIpv4Request(iface, null, null); in testStaticIpv4() 202 assertInvalidStaticIpv4Request(iface, "2001:db8::1/64", "2001:db8:2::/64"); in testStaticIpv4() 203 assertInvalidStaticIpv4Request(iface, "192.0.2.2/28", "2001:db8:2::/28"); in testStaticIpv4() 204 assertInvalidStaticIpv4Request(iface, "2001:db8:2::/28", "192.0.2.2/28"); in testStaticIpv4() [all …]
|
/frameworks/base/core/java/android/net/ |
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 | EthernetManager.java | 63 public void onAvailabilityChanged(String iface, boolean isAvailable) { 65 MSG_AVAILABILITY_CHANGED, isAvailable ? 1 : 0, 0, iface).sendToTarget(); 81 void onAvailabilityChanged(String iface, boolean isAvailable); in onAvailabilityChanged() argument 102 public IpConfiguration getConfiguration(String iface) { in getConfiguration() argument 104 return mService.getConfiguration(iface); in getConfiguration() 115 public void setConfiguration(String iface, IpConfiguration config) { in setConfiguration() argument 117 mService.setConfiguration(iface, config); in setConfiguration() 139 public boolean isAvailable(String iface) { in isAvailable() argument 141 return mService.isAvailable(iface); in isAvailable() 251 void onAvailable(@NonNull String iface); in onAvailable() argument [all …]
|
D | TrafficStats.java | 510 for (String iface : getMobileIfaces()) { in getMobileTxPackets() 511 total += addIfSupported(getTxPackets(iface)); in getMobileTxPackets() 527 for (String iface : getMobileIfaces()) { in getMobileRxPackets() 528 total += addIfSupported(getRxPackets(iface)); in getMobileRxPackets() 544 for (String iface : getMobileIfaces()) { in getMobileTxBytes() 545 total += addIfSupported(getTxBytes(iface)); in getMobileTxBytes() 561 for (String iface : getMobileIfaces()) { in getMobileRxBytes() 562 total += addIfSupported(getRxBytes(iface)); in getMobileRxBytes() 571 for (String iface : getMobileIfaces()) { in getMobileTcpRxPackets() 574 stat = getStatsService().getIfaceStats(iface, TYPE_TCP_RX_PACKETS); in getMobileTcpRxPackets() [all …]
|
D | NetworkStats.java | 227 private String[] iface; field in NetworkStats 262 public String iface; field in NetworkStats.Entry 322 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, in Entry() argument 324 this(iface, uid, set, tag, METERED_NO, ROAMING_NO, DEFAULT_NETWORK_NO, in Entry() 357 public Entry(@Nullable String iface, int uid, @State int set, int tag, in Entry() argument 360 this.iface = iface; in Entry() 397 builder.append("iface=").append(iface); in toString() 421 && operations == e.operations && iface.equals(e.iface); in equals() 429 return Objects.hash(uid, set, tag, metered, roaming, defaultNetwork, iface); in hashCode() 438 this.iface = new String[initialSize]; in NetworkStats() [all …]
|
D | RouteInfo.java | 140 @Nullable String iface, @RouteType int type) { in RouteInfo() argument 141 this(destination, gateway, iface, type, 0); in RouteInfo() 165 @Nullable String iface, @RouteType int type, int mtu) { in RouteInfo() argument 218 mInterface = iface; // Strings are immutable. in RouteInfo() 242 @Nullable String iface) { in RouteInfo() argument 243 this(destination, gateway, iface, RTN_UNICAST); in RouteInfo() 251 @Nullable String iface) { in RouteInfo() argument 254 gateway, iface); in RouteInfo() 327 public static RouteInfo makeHostRoute(@NonNull InetAddress host, @Nullable String iface) { in makeHostRoute() argument 328 return makeHostRoute(host, null, iface); in makeHostRoute() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | MockWifiMonitor.java | 42 public void registerHandler(String iface, int what, Handler handler) { in registerHandler() argument 43 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface); in registerHandler() 46 mHandlerMap.put(iface, ifaceHandlers); in registerHandler() 52 public synchronized void startMonitoring(String iface) { in startMonitoring() argument 59 public void sendMessage(String iface, int what) { in sendMessage() argument 60 sendMessage(iface, Message.obtain(null, what)); in sendMessage() 63 public void sendMessage(String iface, Message message) { in sendMessage() argument 64 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface); in sendMessage() 66 assertTrue("No handler for iface=" + iface + ",what=" + message.what, in sendMessage() 75 assertTrue("No handler for message with nonexistant iface, iface=" + iface in sendMessage()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | MockWifiP2pMonitor.java | 44 public void registerHandler(String iface, int what, Handler handler) { in registerHandler() argument 45 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface); in registerHandler() 48 mHandlerMap.put(iface, ifaceHandlers); in registerHandler() 54 public synchronized void startMonitoring(String iface) { in startMonitoring() argument 61 public void sendMessage(String iface, int what) { in sendMessage() argument 62 sendMessage(iface, Message.obtain(null, what)); in sendMessage() 65 public void sendMessage(String iface, Message message) { in sendMessage() argument 66 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface); in sendMessage() 68 assertTrue("No handler for iface=" + iface + ",what=" + message.what, in sendMessage() 77 assertTrue("No handler for message with nonexistant iface, iface=" + iface in sendMessage()
|
/frameworks/base/core/java/com/android/server/net/ |
D | BaseNetworkObserver.java | 37 public void interfaceStatusChanged(String iface, boolean up) { in interfaceStatusChanged() argument 42 public void interfaceRemoved(String iface) { in interfaceRemoved() argument 47 public void addressUpdated(String iface, LinkAddress address) { in addressUpdated() argument 52 public void addressRemoved(String iface, LinkAddress address) { in addressRemoved() argument 57 public void interfaceLinkStateChanged(String iface, boolean up) { in interfaceLinkStateChanged() argument 62 public void interfaceAdded(String iface) { in interfaceAdded() argument 72 public void limitReached(String limitName, String iface) { in limitReached() argument 77 public void interfaceDnsServerInfo(String iface, long lifetime, String[] servers) { in interfaceDnsServerInfo() argument
|
D | NetlinkTracker.java | 84 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 interfaceRemoved(String iface) { in interfaceRemoved() argument 108 maybeLog("interfaceRemoved", iface); in interfaceRemoved() 109 if (mInterfaceName.equals(iface)) { in interfaceRemoved() 120 public void addressUpdated(String iface, LinkAddress address) { in addressUpdated() argument 121 if (mInterfaceName.equals(iface)) { in addressUpdated() [all …]
|
/frameworks/native/libs/binder/ |
D | IInterface.cpp | 33 sp<IBinder> IInterface::asBinder(const IInterface* iface) in asBinder() argument 35 if (iface == nullptr) return nullptr; 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 == nullptr) return nullptr; in asBinder() 43 return iface->onAsBinder(); in asBinder()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkManagementService.java | 352 private void notifyInterfaceStatusChanged(String iface, boolean up) { in notifyInterfaceStatusChanged() argument 353 invokeForAllObservers(o -> o.interfaceStatusChanged(iface, up)); in notifyInterfaceStatusChanged() 360 private void notifyInterfaceLinkStateChanged(String iface, boolean up) { in notifyInterfaceLinkStateChanged() argument 361 invokeForAllObservers(o -> o.interfaceLinkStateChanged(iface, up)); in notifyInterfaceLinkStateChanged() 367 private void notifyInterfaceAdded(String iface) { in notifyInterfaceAdded() argument 368 invokeForAllObservers(o -> o.interfaceAdded(iface)); in notifyInterfaceAdded() 374 private void notifyInterfaceRemoved(String iface) { in notifyInterfaceRemoved() argument 377 mActiveAlerts.remove(iface); in notifyInterfaceRemoved() 378 mActiveQuotas.remove(iface); in notifyInterfaceRemoved() 379 invokeForAllObservers(o -> o.interfaceRemoved(iface)); in notifyInterfaceRemoved() [all …]
|
D | TestNetworkService.java | 76 private static native int jniCreateTunTap(boolean isTun, @NonNull String iface); in jniCreateTunTap() argument 102 String iface = ifacePrefix + sTestTunIndex.getAndIncrement(); in createInterface() local 107 ParcelFileDescriptor.adoptFd(jniCreateTunTap(isTun, iface)); in createInterface() 110 iface, in createInterface() 115 return new TestNetworkInterface(tunIntf, iface); in createInterface() 230 @NonNull String iface, 252 nc.setNetworkSpecifier(new StringNetworkSpecifier(iface)); 267 lp.setInterfaceName(iface); 271 NetworkInterface netIntf = NetworkInterface.getByName(iface); 287 lp.addRoute(new RouteInfo(new IpPrefix(Inet4Address.ANY, 0), null, iface)); [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_TestNetworkService.cpp | 50 static void throwException(JNIEnv* env, int error, const char* action, const char* iface) { in throwException() argument 52 android::base::StringPrintf("Error %s %s: %s", action, iface, strerror(error)); in throwException() 57 static int createTunTapInterface(JNIEnv* env, bool isTun, const char* iface) { in createTunTapInterface() argument 63 strlcpy(ifr.ifr_name, iface, IFNAMSIZ); in createTunTapInterface() 84 ScopedUtfChars iface(env, jIface); in create() local 85 if (!iface.c_str()) { in create() 90 int tun = createTunTapInterface(env, isTun, iface.c_str()); in create()
|