/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiMonitor.java | 122 public synchronized void registerHandler(String iface, int what, Handler handler) { in registerHandler() argument 123 SparseArray<Set<Handler>> ifaceHandlers = mHandlerMap.get(iface); in registerHandler() 126 mHandlerMap.put(iface, ifaceHandlers); in registerHandler() 142 public synchronized void deregisterHandler(String iface, int what, Handler handler) { in deregisterHandler() argument 143 SparseArray<Set<Handler>> ifaceHandlers = mHandlerMap.get(iface); in deregisterHandler() 155 private boolean isMonitoring(String iface) { in isMonitoring() argument 156 Boolean val = mMonitoringMap.get(iface); in isMonitoring() 171 public void setMonitoring(String iface, boolean enabled) { in setMonitoring() argument 172 mMonitoringMap.put(iface, enabled); in setMonitoring() 176 for (String iface : mMonitoringMap.keySet()) { in setMonitoringNone() [all …]
|
D | WifiNative.java | 191 Iface iface = new Iface(mNextId, type); in allocateIface() local 192 mIfaces.put(mNextId, iface); in allocateIface() 194 return iface; in allocateIface() 209 for (Iface iface : mIfaces.values()) { in getIface() 210 if (TextUtils.equals(iface.name, ifaceName)) { in getIface() 211 return iface; in getIface() 229 for (Iface iface : mIfaces.values()) { in hasAnyIfaceOfType() 230 if (iface.type == type) { in hasAnyIfaceOfType() 239 for (Iface iface : mIfaces.values()) { in findAnyIfaceOfType() 240 if (iface.type == type) { in findAnyIfaceOfType() [all …]
|
D | SupplicantStaIfaceHal.java | 337 android.hardware.wifi.supplicant.V1_2.ISupplicantStaIface iface = in setupIface() local 346 if (!registerCallbackV1_2(iface, callbackV12)) { in setupIface() 349 mISupplicantStaIfaces.put(ifaceName, iface); in setupIface() 352 android.hardware.wifi.supplicant.V1_1.ISupplicantStaIface iface = in setupIface() local 357 if (!registerCallbackV1_1(iface, callbackV1_1)) { in setupIface() 360 mISupplicantStaIfaces.put(ifaceName, iface); in setupIface() 363 ISupplicantStaIface iface = getStaIfaceMockable(ifaceHwBinder); in setupIface() local 365 if (!registerCallback(iface, callback)) { in setupIface() 368 mISupplicantStaIfaces.put(ifaceName, iface); in setupIface() 411 (SupplicantStatus status, ISupplicantIface iface) -> { in getIfaceV1_0() [all …]
|
D | WifiVendorHal.java | 401 IWifiStaIface iface = mHalDeviceManager.createStaIface(lowPrioritySta, in createStaIface() local 403 if (iface == null) { in createStaIface() 407 String ifaceName = mHalDeviceManager.getName((IWifiIface) iface); in createStaIface() 412 if (!registerStaIfaceCallback(iface)) { in createStaIface() 416 if (!retrieveWifiChip((IWifiIface) iface)) { in createStaIface() 420 enableLinkLayerStats(iface); in createStaIface() 421 mIWifiStaIfaces.put(ifaceName, iface); in createStaIface() 434 IWifiStaIface iface = getStaIface(ifaceName); in removeStaIface() local 435 if (iface == null) return boolResult(false); in removeStaIface() 437 if (!mHalDeviceManager.removeIface((IWifiIface) iface)) { in removeStaIface() [all …]
|
/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 | 130 void updateIpConfiguration(String iface, IpConfiguration ipConfiguration) { in updateIpConfiguration() argument 132 Log.i(TAG, "updateIpConfiguration, iface: " + iface + ", cfg: " + ipConfiguration); in updateIpConfiguration() 135 mConfigStore.write(iface, ipConfiguration); in updateIpConfiguration() 136 mIpConfigurations.put(iface, ipConfiguration); in updateIpConfiguration() 138 mHandler.post(() -> mFactory.updateIpConfiguration(iface, ipConfiguration)); in updateIpConfiguration() 141 IpConfiguration getIpConfiguration(String iface) { in getIpConfiguration() argument 142 return mIpConfigurations.get(iface); in getIpConfiguration() 145 boolean isTrackingInterface(String iface) { in isTrackingInterface() argument 146 return mFactory.hasInterface(iface); in isTrackingInterface() 157 boolean isRestrictedInterface(String iface) { in isRestrictedInterface() argument [all …]
|
D | EthernetServiceImpl.java | 101 public IpConfiguration getConfiguration(String iface) { in getConfiguration() argument 104 if (mTracker.isRestrictedInterface(iface)) { in getConfiguration() 108 return new IpConfiguration(mTracker.getIpConfiguration(iface)); in getConfiguration() 115 public void setConfiguration(String iface, IpConfiguration config) { in setConfiguration() argument 122 if (mTracker.isRestrictedInterface(iface)) { in setConfiguration() 128 mTracker.updateIpConfiguration(iface, new IpConfiguration(config)); in setConfiguration() 135 public boolean isAvailable(String iface) { in isAvailable() argument 138 if (mTracker.isRestrictedInterface(iface)) { in isAvailable() 142 return mTracker.isTrackingInterface(iface); in isAvailable()
|
/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/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 | NetworkStats.java | 122 private String[] iface; field in NetworkStats 148 public String iface; field in NetworkStats.Entry 193 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, in Entry() argument 195 this(iface, uid, set, tag, METERED_NO, ROAMING_NO, DEFAULT_NETWORK_NO, in Entry() 199 public Entry(String iface, int uid, int set, int tag, int metered, int roaming, in Entry() argument 202 this.iface = iface; in Entry() 236 builder.append("iface=").append(iface); in toString() 259 && operations == e.operations && iface.equals(e.iface); in equals() 266 return Objects.hash(uid, set, tag, metered, roaming, defaultNetwork, iface); in hashCode() 276 this.iface = new String[initialSize]; in NetworkStats() [all …]
|
D | TrafficStats.java | 509 for (String iface : getMobileIfaces()) { in getMobileTxPackets() 510 total += addIfSupported(getTxPackets(iface)); in getMobileTxPackets() 526 for (String iface : getMobileIfaces()) { in getMobileRxPackets() 527 total += addIfSupported(getRxPackets(iface)); in getMobileRxPackets() 543 for (String iface : getMobileIfaces()) { in getMobileTxBytes() 544 total += addIfSupported(getTxBytes(iface)); in getMobileTxBytes() 560 for (String iface : getMobileIfaces()) { in getMobileRxBytes() 561 total += addIfSupported(getRxBytes(iface)); in getMobileRxBytes() 570 for (String iface : getMobileIfaces()) { in getMobileTcpRxPackets() 573 stat = getStatsService().getIfaceStats(iface, TYPE_TCP_RX_PACKETS); in getMobileTcpRxPackets() [all …]
|
D | EthernetManager.java | 55 public void onAvailabilityChanged(String iface, boolean isAvailable) { 57 MSG_AVAILABILITY_CHANGED, isAvailable ? 1 : 0, 0, iface).sendToTarget(); 71 void onAvailabilityChanged(String iface, boolean isAvailable); in onAvailabilityChanged() argument 90 public IpConfiguration getConfiguration(String iface) { in getConfiguration() argument 92 return mService.getConfiguration(iface); in getConfiguration() 102 public void setConfiguration(String iface, IpConfiguration config) { in setConfiguration() argument 104 mService.setConfiguration(iface, config); in setConfiguration() 124 public boolean isAvailable(String iface) { in isAvailable() argument 126 return mService.isAvailable(iface); in isAvailable()
|
/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/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/base/core/java/com/android/server/net/ |
D | BaseNetworkObserver.java | 32 public void interfaceStatusChanged(String iface, boolean up) { in interfaceStatusChanged() argument 37 public void interfaceRemoved(String iface) { in interfaceRemoved() argument 42 public void addressUpdated(String iface, LinkAddress address) { in addressUpdated() argument 47 public void addressRemoved(String iface, LinkAddress address) { in addressRemoved() argument 52 public void interfaceLinkStateChanged(String iface, boolean up) { in interfaceLinkStateChanged() argument 57 public void interfaceAdded(String iface) { in interfaceAdded() argument 67 public void limitReached(String limitName, String iface) { in limitReached() argument 72 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 | 74 private static native int jniCreateTunTap(boolean isTun, @NonNull String iface); in jniCreateTunTap() argument 100 String iface = ifacePrefix + sTestTunIndex.getAndIncrement(); in createInterface() local 105 ParcelFileDescriptor.adoptFd(jniCreateTunTap(isTun, iface)); in createInterface() 108 iface, in createInterface() 113 return new TestNetworkInterface(tunIntf, iface); in createInterface() 228 @NonNull String iface, 247 nc.setNetworkSpecifier(new StringNetworkSpecifier(iface)); 251 lp.setInterfaceName(iface); 255 NetworkInterface netIntf = NetworkInterface.getByName(iface); 271 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()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Tethering.java | 329 public void interfaceStatusChanged(String iface, boolean up) { in interfaceStatusChanged() argument 332 if (VDBG) Log.d(TAG, "interfaceStatusChanged " + iface + ", " + up); in interfaceStatusChanged() 335 maybeTrackNewInterfaceLocked(iface); in interfaceStatusChanged() 337 if (ifaceNameToType(iface) == TETHERING_BLUETOOTH) { in interfaceStatusChanged() 338 stopTrackingInterfaceLocked(iface); in interfaceStatusChanged() 344 if (VDBG) Log.d(TAG, "ignore interface down for " + iface); in interfaceStatusChanged() 351 public void interfaceLinkStateChanged(String iface, boolean up) { in interfaceLinkStateChanged() argument 352 interfaceStatusChanged(iface, up); in interfaceLinkStateChanged() 355 private int ifaceNameToType(String iface) { in ifaceNameToType() argument 358 if (cfg.isWifi(iface)) { in ifaceNameToType() [all …]
|
D | Nat464Xlat.java | 259 String iface = mIface; in stop() local 269 lp.removeStackedLink(iface); in stop() 365 private LinkAddress getLinkAddress(String iface) { in getLinkAddress() argument 367 InterfaceConfiguration config = mNMService.getInterfaceConfig(iface); in getLinkAddress() 378 private void handleInterfaceLinkStateChanged(String iface, boolean up) { in handleInterfaceLinkStateChanged() argument 393 if (!isStarting() || !up || !Objects.equals(mIface, iface)) { in handleInterfaceLinkStateChanged() 397 LinkAddress clatAddress = getLinkAddress(iface); in handleInterfaceLinkStateChanged() 399 Slog.e(TAG, "clatAddress was null for stacked iface " + iface); in handleInterfaceLinkStateChanged() 414 private void handleInterfaceRemoved(String iface) { in handleInterfaceRemoved() argument 415 if (!Objects.equals(mIface, iface)) { in handleInterfaceRemoved() [all …]
|
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/ |
D | OffloadController.java | 276 entry.iface = kv.getKey(); in getTetherStats() 286 public void setInterfaceQuota(String iface, long quotaBytes) { in setInterfaceQuota() argument 289 mInterfaceQuotas.remove(iface); in setInterfaceQuota() 291 mInterfaceQuotas.put(iface, quotaBytes); in setInterfaceQuota() 293 maybeUpdateDataLimit(iface); in setInterfaceQuota() 303 private void maybeUpdateStats(String iface) { in maybeUpdateStats() argument 304 if (TextUtils.isEmpty(iface)) { in maybeUpdateStats() 315 ForwardedStats diff = mHwInterface.getForwardedStats(iface); in maybeUpdateStats() 316 ForwardedStats base = mForwardedStats.get(iface); in maybeUpdateStats() 320 mForwardedStats.put(iface, diff); in maybeUpdateStats() [all …]
|