Home
last modified time | relevance | path

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

12345

/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/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 …]
DHwBinder.java78 String iface, in getService() argument
81 return getService(iface, serviceName, false /* retry */); in getService()
91 String iface, in getService() argument
/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
/frameworks/libs/net/client-libs/netd/com/android/net/module/util/
DNetdUtils.java62 @NonNull String iface) { in getInterfaceConfigParcel() argument
64 return netd.interfaceGetCfg(iface); in getInterfaceConfigParcel()
124 public static void setInterfaceUp(INetd netd, String iface) { in setInterfaceUp() argument
125 final InterfaceConfigurationParcel configParcel = getInterfaceConfigParcel(netd, iface); in setInterfaceUp()
134 public static void setInterfaceDown(INetd netd, String iface) { in setInterfaceDown() argument
135 final InterfaceConfigurationParcel configParcel = getInterfaceConfigParcel(netd, iface); in setInterfaceDown()
151 public static void tetherInterface(final INetd netd, final String iface, final IpPrefix dest) in tetherInterface() argument
153 tetherInterface(netd, iface, dest, 20 /* maxAttempts */, 50 /* pollingIntervalMs */); in tetherInterface()
157 public static void tetherInterface(final INetd netd, final String iface, final IpPrefix dest, in tetherInterface() argument
160 netd.tetherInterfaceAdd(iface); in tetherInterface()
[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.java326 private void notifyInterfaceStatusChanged(String iface, boolean up) { in notifyInterfaceStatusChanged() argument
327 invokeForAllObservers(o -> o.interfaceStatusChanged(iface, up)); in notifyInterfaceStatusChanged()
334 private void notifyInterfaceLinkStateChanged(String iface, boolean up) { in notifyInterfaceLinkStateChanged() argument
335 invokeForAllObservers(o -> o.interfaceLinkStateChanged(iface, up)); in notifyInterfaceLinkStateChanged()
341 private void notifyInterfaceAdded(String iface) { in notifyInterfaceAdded() argument
342 invokeForAllObservers(o -> o.interfaceAdded(iface)); in notifyInterfaceAdded()
348 private void notifyInterfaceRemoved(String iface) { in notifyInterfaceRemoved() argument
351 mActiveAlerts.remove(iface); in notifyInterfaceRemoved()
352 mActiveQuotas.remove(iface); in notifyInterfaceRemoved()
353 invokeForAllObservers(o -> o.interfaceRemoved(iface)); in notifyInterfaceRemoved()
[all …]
/frameworks/libs/net/common/testutils/devicetests/com/android/testutils/
DTestableNetworkStatsProvider.kt35 val iface: String, constant in com.android.testutils.TestableNetworkStatsProvider.CallbackType.OnSetWarningAndLimit
39 data class OnSetLimit(val iface: String, val limitBytes: Long) : CallbackType() { constant in com.android.testutils.TestableNetworkStatsProvider.CallbackType.OnSetLimit
57 override fun onSetWarningAndLimit(iface: String, warningBytes: Long, limitBytes: Long) { in onSetWarningAndLimit()
58 Log.d(TAG, "onSetWarningAndLimit $iface $warningBytes $limitBytes") in onSetWarningAndLimit()
59 history.add(CallbackType.OnSetWarningAndLimit(iface, warningBytes, limitBytes)) in onSetWarningAndLimit()
62 override fun onSetLimit(iface: String, quotaBytes: Long) { in onSetLimit()
63 Log.d(TAG, "onSetLimit $iface $quotaBytes") in onSetLimit()
64 history.add(CallbackType.OnSetLimit(iface, quotaBytes)) in onSetLimit()
81 fun expectOnSetLimit(iface: String, quotaBytes: Long, timeout: Long = defaultTimeoutMs) { in expectOnSetLimit()
82 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()
DTestNetworkTracker.kt61 val iface = if (isAtLeastS()) tnm.createTunInterface(linkAddrs) in initTestNetwork() constant
63 return TestNetworkTracker(context, iface, tnm, setupTimeoutMs) in initTestNetwork()
73 val iface: TestNetworkInterface, constant in com.android.testutils.TestNetworkTracker
91 .setNetworkSpecifier(CompatUtil.makeTestNetworkSpecifier(iface.interfaceName))
101 tnm.setupTestNetwork(iface.interfaceName, binder)
108 testIface = iface
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()
/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/av/media/libaudiohal/
DFactoryHalHidl.cpp102 void* createPreferredImpl(const InterfaceName& iface, const InterfaceName& siblingIface) { in createPreferredImpl() argument
103 auto findMostRecentVersion = [](const InterfaceName& iface) { in createPreferredImpl() argument
105 [&](const auto& v) { return hasHalService(iface.first, v.second, iface.second); }); in createPreferredImpl()
107 auto ifaceVersionIt = findMostRecentVersion(iface); in createPreferredImpl()
117 if (createHalService(libraryVersion, iface.second, &rawInterface)) { in createPreferredImpl()
/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()
/frameworks/av/media/libaudiohal/include/media/audiohal/
DFactoryHalHidl.h34 void* createPreferredImpl(const InterfaceName& iface, const InterfaceName& siblingIface);
54 const InterfaceName& iface, const InterfaceName& siblingIface) { in createPreferredImpl() argument
56 static_cast<Interface*>(detail::createPreferredImpl(iface, siblingIface))}; in createPreferredImpl()
/frameworks/native/libs/binder/tests/
DbinderRpcBenchmark.cpp142 sp<IBinderRpcBenchmark> iface = interface_cast<IBinderRpcBenchmark>(binder); in BM_repeatTwoPageString() local
143 CHECK(iface != nullptr); in BM_repeatTwoPageString()
162 Status ret = iface->repeatString(str, &out); in BM_repeatTwoPageString()
170 sp<IBinderRpcBenchmark> iface = interface_cast<IBinderRpcBenchmark>(binder); in BM_throughputForTransportAndBytes() local
171 CHECK(iface != nullptr); in BM_throughputForTransportAndBytes()
180 Status ret = iface->repeatBytes(bytes, &out); in BM_throughputForTransportAndBytes()
191 sp<IBinderRpcBenchmark> iface = interface_cast<IBinderRpcBenchmark>(binder); in BM_repeatBinder() local
192 CHECK(iface != nullptr); in BM_repeatBinder()
199 Status ret = iface->repeatBinder(binder, &out); in BM_repeatBinder()
DbinderStabilityTest.cpp72 sp<BadStableBinder> iface = new BadStableBinder(); in undef() local
73 return iface; in undef()
77 sp<BadStableBinder> iface = new BadStableBinder(); in system() local
78 Stability::markCompilationUnit(iface.get()); // <- for test only in system()
79 return iface; in system()
83 sp<BadStableBinder> iface = new BadStableBinder(); in vintf() local
84 Stability::markVintf(iface.get()); // <- for test only in vintf()
85 return iface; in vintf()
89 sp<BadStableBinder> iface = new BadStableBinder(); in vendor() local
90 Stability::markVndk(iface.get()); // <- for test only in vendor()
[all …]
/frameworks/base/services/core/java/com/android/server/utils/
DManagedApplicationService.java258 IInterface iface; in sendEvent() local
260 iface = mBoundInterface; in sendEvent()
261 if (iface == null) { in sendEvent()
266 if (iface != null) { in sendEvent()
268 event.runEvent(iface); in sendEvent()
334 IInterface iface = null; in connect()
358 iface = mBoundInterface; in connect()
363 if (iface != null && pendingEvent != null) { in connect()
365 pendingEvent.runEvent(iface); in connect()
/frameworks/base/core/java/com/android/internal/os/
DTransferPipe.java59 void go(IInterface iface, FileDescriptor fd, String prefix, in go() argument
133 static void go(Caller caller, IInterface iface, FileDescriptor out, in go() argument
135 go(caller, iface, out, prefix, args, DEFAULT_TIMEOUT); in go()
138 static void go(Caller caller, IInterface iface, FileDescriptor out, in go() argument
140 if ((iface.asBinder()) instanceof Binder) { in go()
143 caller.go(iface, out, prefix, args); in go()
150 caller.go(iface, tp.getWriteFd().getFileDescriptor(), prefix, args); in go()
/frameworks/base/core/java/com/android/internal/usb/
DDumpUtils.java107 long id, @NonNull UsbInterface iface) { in writeInterface() argument
110 dump.write("id", UsbInterfaceProto.ID, iface.getId()); in writeInterface()
112 iface.getAlternateSetting()); in writeInterface()
113 dump.write("name", UsbInterfaceProto.NAME, iface.getName()); in writeInterface()
114 dump.write("class", UsbInterfaceProto.CLASS, iface.getInterfaceClass()); in writeInterface()
115 dump.write("subclass", UsbInterfaceProto.SUBCLASS, iface.getInterfaceSubclass()); in writeInterface()
116 dump.write("protocol", UsbInterfaceProto.PROTOCOL, iface.getInterfaceProtocol()); in writeInterface()
118 int numEndpoints = iface.getEndpointCount(); in writeInterface()
120 writeEndpoint(dump, "endpoints", UsbInterfaceProto.ENDPOINTS, iface.getEndpoint(i)); in writeInterface()
/frameworks/native/libs/binderdebug/tests/
Dbinderdebug_test.cpp79 sp<Control> iface = new Control; in main() local
80 android::defaultServiceManager()->addService(String16("binderdebug"), iface); in main()
83 sem_wait(&iface->s); in main()

12345