Home
last modified time | relevance | path

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

1234

/frameworks/opt/net/wifi/libwifi_hal/
Dhal_tool.cpp72 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/
DEthernetTracker.java164 void updateIpConfiguration(String iface, IpConfiguration ipConfiguration) { in updateIpConfiguration() argument
166 Log.i(TAG, "updateIpConfiguration, iface: " + iface + ", cfg: " + ipConfiguration); in updateIpConfiguration()
169 mConfigStore.write(iface, ipConfiguration); in updateIpConfiguration()
170 mIpConfigurations.put(iface, ipConfiguration); in updateIpConfiguration()
172 mHandler.post(() -> mFactory.updateIpConfiguration(iface, ipConfiguration)); in updateIpConfiguration()
175 IpConfiguration getIpConfiguration(String iface) { in getIpConfiguration() argument
176 return mIpConfigurations.get(iface); in getIpConfiguration()
179 boolean isTrackingInterface(String iface) { in isTrackingInterface() argument
180 return mFactory.hasInterface(iface); in isTrackingInterface()
191 boolean isRestrictedInterface(String iface) { in isRestrictedInterface() argument
[all …]
DEthernetServiceImpl.java100 public IpConfiguration getConfiguration(String iface) { in getConfiguration() argument
103 if (mTracker.isRestrictedInterface(iface)) { in getConfiguration()
107 return new IpConfiguration(mTracker.getIpConfiguration(iface)); in getConfiguration()
114 public void setConfiguration(String iface, IpConfiguration config) { in setConfiguration() argument
121 if (mTracker.isRestrictedInterface(iface)) { in setConfiguration()
127 mTracker.updateIpConfiguration(iface, new IpConfiguration(config)); in setConfiguration()
134 public boolean isAvailable(String iface) { in isAvailable() argument
137 if (mTracker.isRestrictedInterface(iface)) { in isAvailable()
141 return mTracker.isTrackingInterface(iface); in isAvailable()
DEthernetNetworkFactory.java131 .filter(iface -> !iface.isRestricted() || includeRestricted) in getAvailableInterfaces()
136 .map(iface -> iface.name) in getAvailableInterfaces()
151 NetworkInterfaceState iface = new NetworkInterfaceState( in addInterface() local
153 iface.setIpConfig(ipConfiguration); in addInterface()
154 mTrackingInterfaces.put(ifaceName, iface); in addInterface()
173 for (NetworkInterfaceState iface: mTrackingInterfaces.values()) { in updateCapabilityFilter()
174 capabilitiesFilter = mixInCapabilities(capabilitiesFilter, iface.mCapabilities); in updateCapabilityFilter()
182 NetworkInterfaceState iface = mTrackingInterfaces.remove(interfaceName); in removeInterface() local
183 if (iface != null) { in removeInterface()
184 iface.stop(); in removeInterface()
[all …]
/frameworks/base/core/java/android/os/
DINetworkManagementService.aidl58 InterfaceConfiguration getInterfaceConfig(String iface); in getInterfaceConfig() argument
64 void setInterfaceConfig(String iface, in InterfaceConfiguration cfg); in setInterfaceConfig() argument
70 void clearInterfaceAddresses(String iface); in clearInterfaceAddresses() argument
75 void setInterfaceDown(String iface); in setInterfaceDown() argument
80 void setInterfaceUp(String iface); in setInterfaceUp() argument
86 void setInterfaceIpv6PrivacyExtensions(String iface, boolean enable); in setInterfaceIpv6PrivacyExtensions() argument
92 void disableIpv6(String iface); in disableIpv6() argument
98 void enableIpv6(String iface); in enableIpv6() argument
105 void setIPv6AddrGenMode(String iface, int mode); in setIPv6AddrGenMode() argument
169 void tetherInterface(String iface); in tetherInterface() argument
[all …]
/frameworks/base/lowpan/java/android/net/lowpan/
DLowpanManager.java121 LowpanInterface iface = null; in getInterfaceNoCreate() local
125 iface = mBinderCache.get(ifaceService.asBinder()).get(); in getInterfaceNoCreate()
129 return iface; in getInterfaceNoCreate()
135 LowpanInterface iface = null; in getInterface() local
140 iface = mBinderCache.get(ifaceService.asBinder()).get(); in getInterface()
143 if (iface == null) { in getInterface()
146 iface = new LowpanInterface(mContext, ifaceService, mLooper); in getInterface()
149 mInterfaceCache.put(iface.getName(), iface); in getInterface() local
152 mBinderCache.put(ifaceService.asBinder(), new WeakReference(iface)); in getInterface()
165 LowpanInterface iface = in getInterface()
[all …]
/frameworks/base/core/java/android/net/
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
104 void interfaceDnsServerInfo(String iface, long lifetime, in String[] servers); in interfaceDnsServerInfo() argument
DTrafficStats.java510 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 …]
DEthernetManager.java52 public void onAvailabilityChanged(String iface, boolean isAvailable) {
56 li.listener.onAvailabilityChanged(iface, isAvailable));
86 void onAvailabilityChanged(String iface, boolean isAvailable); in onAvailabilityChanged() argument
106 public IpConfiguration getConfiguration(String iface) { in getConfiguration() argument
108 return mService.getConfiguration(iface); in getConfiguration()
119 public void setConfiguration(String iface, IpConfiguration config) { in setConfiguration() argument
121 mService.setConfiguration(iface, config); in setConfiguration()
143 public boolean isAvailable(String iface) { in isAvailable() argument
145 return mService.isAvailable(iface); in isAvailable()
274 void onAvailable(@NonNull String iface); in onAvailable() argument
[all …]
DNetworkStats.java230 private String[] iface; field in NetworkStats
265 public String iface; field in NetworkStats.Entry
325 public Entry(String iface, int uid, int set, int tag, long rxBytes, long rxPackets, in Entry() argument
327 this(iface, uid, set, tag, METERED_NO, ROAMING_NO, DEFAULT_NETWORK_NO, in Entry()
360 public Entry(@Nullable String iface, int uid, @State int set, int tag, in Entry() argument
363 this.iface = iface; in Entry()
400 builder.append("iface=").append(iface); in toString()
424 && operations == e.operations && iface.equals(e.iface); in equals()
432 return Objects.hash(uid, set, tag, metered, roaming, defaultNetwork, iface); in hashCode()
441 this.iface = new String[initialSize]; in NetworkStats()
[all …]
/frameworks/base/core/java/com/android/server/net/
DBaseNetworkObserver.java37 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
73 public void limitReached(String limitName, String iface) { in limitReached() argument
78 public void interfaceDnsServerInfo(String iface, long lifetime, String[] servers) { in interfaceDnsServerInfo() argument
DNetlinkTracker.java85 public NetlinkTracker(String iface, Callback callback) { in NetlinkTracker() argument
86 TAG = "NetlinkTracker/" + iface; in NetlinkTracker()
87 mInterfaceName = iface; in NetlinkTracker()
94 private void maybeLog(String operation, String iface, LinkAddress address) { in maybeLog() argument
96 Log.d(TAG, operation + ": " + address + " on " + iface + in maybeLog()
108 public void interfaceRemoved(String iface) { in interfaceRemoved() argument
109 maybeLog("interfaceRemoved", iface); in interfaceRemoved()
110 if (mInterfaceName.equals(iface)) { in interfaceRemoved()
121 public void addressUpdated(String iface, LinkAddress address) { in addressUpdated() argument
122 if (mInterfaceName.equals(iface)) { in addressUpdated()
[all …]
/frameworks/native/libs/binder/
DIInterface.cpp33 sp<IBinder> IInterface::asBinder(const IInterface* iface) in asBinder() argument
35 if (iface == nullptr) return nullptr; in asBinder()
36 return sp<IBinder>::fromExisting(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 sp<IBinder>::fromExisting(iface->onAsBinder()); in asBinder()
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java331 private void notifyInterfaceStatusChanged(String iface, boolean up) { in notifyInterfaceStatusChanged() argument
332 invokeForAllObservers(o -> o.interfaceStatusChanged(iface, up)); in notifyInterfaceStatusChanged()
339 private void notifyInterfaceLinkStateChanged(String iface, boolean up) { in notifyInterfaceLinkStateChanged() argument
340 invokeForAllObservers(o -> o.interfaceLinkStateChanged(iface, up)); in notifyInterfaceLinkStateChanged()
346 private void notifyInterfaceAdded(String iface) { in notifyInterfaceAdded() argument
347 invokeForAllObservers(o -> o.interfaceAdded(iface)); in notifyInterfaceAdded()
353 private void notifyInterfaceRemoved(String iface) { in notifyInterfaceRemoved() argument
356 mActiveAlerts.remove(iface); in notifyInterfaceRemoved()
357 mActiveQuotas.remove(iface); in notifyInterfaceRemoved()
358 invokeForAllObservers(o -> o.interfaceRemoved(iface)); in notifyInterfaceRemoved()
[all …]
/frameworks/libs/net/common/testutils/devicetests/com/android/testutils/
DTestableNetworkStatsProvider.kt34 val iface: String?, constant in com.android.testutils.TestableNetworkStatsProvider.CallbackType.OnSetWarningAndLimit
38 data class OnSetLimit(val iface: String?, val limitBytes: Long) : CallbackType() constant in com.android.testutils.TestableNetworkStatsProvider.CallbackType.OnSetLimit
50 override fun onSetWarningAndLimit(iface: String, warningBytes: Long, limitBytes: Long) { in onSetWarningAndLimit()
51 history.add(CallbackType.OnSetWarningAndLimit(iface, warningBytes, limitBytes)) in onSetWarningAndLimit()
54 override fun onSetLimit(iface: String, quotaBytes: Long) { in onSetLimit()
55 history.add(CallbackType.OnSetLimit(iface, quotaBytes)) in onSetLimit()
71 fun expectOnSetLimit(iface: String?, quotaBytes: Long, timeout: Long = defaultTimeoutMs) { in expectOnSetLimit()
72 assertEquals(CallbackType.OnSetLimit(iface, quotaBytes), history.poll(timeout)) in expectOnSetLimit()
DTapPacketReaderRule.kt52 lateinit var iface: TestNetworkInterface variable in com.android.testutils.TapPacketReaderRule
76 if (this::iface.isInitialized) { in start()
81 iface = runAsShell(MANAGE_TEST_NETWORKS) { in start()
88 reader = TapPacketReader(usedHandler, iface.fileDescriptor.fileDescriptor, maxPacketSize) in start()
141 if (this@TapPacketReaderRule::iface.isInitialized) { in evaluate()
142 iface.fileDescriptor.close() in evaluate()
DTestableNetworkStatsProviderBinder.kt30 val iface: String, constant in com.android.testutils.TestableNetworkStatsProviderBinder.CallbackType.OnSetWarningAndLimit
46 override fun onSetWarningAndLimit(iface: String, warningBytes: Long, limitBytes: Long) { in onSetWarningAndLimit()
47 history.add(CallbackType.OnSetWarningAndLimit(iface, warningBytes, limitBytes)) in onSetWarningAndLimit()
54 fun expectOnSetWarningAndLimit(iface: String, warningBytes: Long, limitBytes: Long) { in expectOnSetWarningAndLimit()
55 assertEquals(CallbackType.OnSetWarningAndLimit(iface, warningBytes, limitBytes), in expectOnSetWarningAndLimit()
DTestNetworkTracker.kt43 val iface = if (isAtLeastS()) tnm.createTunInterface(listOf(interfaceAddr)) in initTestNetwork() constant
45 return TestNetworkTracker(context, iface, tnm, setupTimeoutMs) in initTestNetwork()
55 val iface: TestNetworkInterface, constant in com.android.testutils.TestNetworkTracker
72 .setNetworkSpecifier(CompatUtil.makeTestNetworkSpecifier(iface.interfaceName))
82 tnm.setupTestNetwork(iface.interfaceName, binder)
/frameworks/base/lowpan/tests/src/android/net/lowpan/
DLowpanManagerTest.java84 LowpanInterface iface = mLowpanManager.getInterface(); in testGetInterfaceList() local
85 assertNotNull(iface); in testGetInterfaceList()
86 assertEquals(iface.getName(), "wpan0"); in testGetInterfaceList()
114 iface -> { in testRegisterCallback()
115 mLowpanInterface = iface; in testRegisterCallback()
116 return iface instanceof LowpanInterface; in testRegisterCallback()
162 iface -> { in testUnregisterCallback()
163 mLowpanInterface = iface; in testUnregisterCallback()
164 return iface instanceof LowpanInterface; in testUnregisterCallback()
/frameworks/base/media/java/android/media/
DRemoteDisplay.java46 private native long nativeListen(String iface, String opPackageName); in nativeListen() argument
73 public static RemoteDisplay listen(String iface, Listener listener, Handler handler, in listen() argument
75 if (iface == null) { in listen()
86 display.startListening(iface); in listen()
121 private void startListening(String iface) { in startListening() argument
122 mPtr = nativeListen(iface, mOpPackageName); in startListening()
125 + "remote display connection on \"" + iface + "\""); in startListening()
/frameworks/libs/net/client-libs/netd/com/android/net/module/util/
DNetdUtils.java40 @NonNull String iface) { in getInterfaceConfigParcel() argument
42 return netd.interfaceGetCfg(iface); in getInterfaceConfigParcel()
89 public static void setInterfaceUp(INetd netd, String iface) { in setInterfaceUp() argument
90 final InterfaceConfigurationParcel configParcel = getInterfaceConfigParcel(netd, iface); in setInterfaceUp()
99 public static void setInterfaceDown(INetd netd, String iface) { in setInterfaceDown() argument
100 final InterfaceConfigurationParcel configParcel = getInterfaceConfigParcel(netd, iface); in setInterfaceDown()
/frameworks/base/core/java/android/net/netstats/provider/
DNetworkStatsProvider.java51 public void onSetWarningAndLimit(String iface, long warningBytes, long limitBytes) {
52 NetworkStatsProvider.this.onSetWarningAndLimit(iface, warningBytes, limitBytes);
198 public abstract void onSetLimit(@NonNull String iface, long quotaBytes); in onSetLimit() argument
217 public void onSetWarningAndLimit(@NonNull String iface, long warningBytes, long limitBytes) { in onSetWarningAndLimit() argument
219 onSetLimit(iface, limitBytes); in onSetWarningAndLimit()
/frameworks/base/services/core/jni/
Dcom_android_server_net_NetworkStatsService.cpp75 static int parseIfaceStats(const char* iface, Stats* stats) { in parseIfaceStats() argument
95 if (!iface || !strcmp(iface, cur_iface)) { in parseIfaceStats()
126 char iface[32]; in parseUidStats() local
134 &idx, iface, &tag, &cur_uid, &set, &rxBytes, &rxPackets, in parseUidStats()
169 static jlong getIfaceStat(JNIEnv* env, jclass clazz, jstring iface, jint type, in getIfaceStat() argument
171 ScopedUtfChars iface8(env, iface); in getIfaceStat()
/frameworks/native/libs/binder/tests/
DbinderRpcBenchmark.cpp71 sp<IBinderRpcBenchmark> iface = interface_cast<IBinderRpcBenchmark>(binder); in BM_repeatString() local
72 CHECK(iface != nullptr); in BM_repeatString()
91 Status ret = iface->repeatString(str, &out); in BM_repeatString()
100 sp<IBinderRpcBenchmark> iface = interface_cast<IBinderRpcBenchmark>(binder); in BM_repeatBinder() local
101 CHECK(iface != nullptr); in BM_repeatBinder()
108 Status ret = iface->repeatBinder(binder, &out); in BM_repeatBinder()
/frameworks/base/core/java/android/net/metrics/
DWakeupStats.java35 public final String iface; field in WakeupStats
52 public WakeupStats(String iface) { in WakeupStats() argument
53 this.iface = iface; in WakeupStats()
107 j.add(iface); in toString()

1234