Home
last modified time | relevance | path

Searched refs:ifaceName (Results 1 – 25 of 104) sorted by relevance

12345

/packages/modules/Wifi/service/java/com/android/server/wifi/
DISupplicantStaIfaceHal.java52 boolean setupIface(@NonNull String ifaceName); in setupIface() argument
60 boolean teardownIface(@NonNull String ifaceName); in teardownIface() argument
107 boolean connectToNetwork(@NonNull String ifaceName, @NonNull WifiConfiguration config); in connectToNetwork() argument
118 boolean roamToNetwork(@NonNull String ifaceName, WifiConfiguration config); in roamToNetwork() argument
140 boolean removeAllNetworks(@NonNull String ifaceName); in removeAllNetworks() argument
147 boolean disableCurrentNetwork(@NonNull String ifaceName); in disableCurrentNetwork() argument
156 boolean setCurrentNetworkBssid(@NonNull String ifaceName, String bssidStr); in setCurrentNetworkBssid() argument
164 String getCurrentNetworkWpsNfcConfigurationToken(@NonNull String ifaceName); in getCurrentNetworkWpsNfcConfigurationToken() argument
172 String getCurrentNetworkEapAnonymousIdentity(@NonNull String ifaceName); in getCurrentNetworkEapAnonymousIdentity() argument
183 @NonNull String ifaceName, @NonNull String identity, String encryptedIdentity); in sendCurrentNetworkEapIdentityResponse()
[all …]
DSupplicantStaIfaceHal.java822 void onApResponse(String ifaceName, List<QosPolicyStatus> statusList); in onApResponse() argument
926 public boolean setupIface(@NonNull String ifaceName) { in setupIface() argument
932 return mStaIfaceHal.setupIface(ifaceName); in setupIface()
942 public boolean teardownIface(@NonNull String ifaceName) { in teardownIface() argument
948 return mStaIfaceHal.teardownIface(ifaceName); in teardownIface()
1046 public boolean connectToNetwork(@NonNull String ifaceName, @NonNull WifiConfiguration config) { in connectToNetwork() argument
1052 return mStaIfaceHal.connectToNetwork(ifaceName, config); in connectToNetwork()
1065 public boolean roamToNetwork(@NonNull String ifaceName, WifiConfiguration config) { in roamToNetwork() argument
1071 return mStaIfaceHal.roamToNetwork(ifaceName, config); in roamToNetwork()
1113 public boolean removeAllNetworks(@NonNull String ifaceName) { in removeAllNetworks() argument
[all …]
DWifiNative.java272 SoftApHalCallbackFromWificond(String ifaceName, in SoftApHalCallbackFromWificond() argument
274 mIfaceName = ifaceName; in SoftApHalCallbackFromWificond()
473 private Iface getIface(@NonNull String ifaceName) { in getIface() argument
475 if (TextUtils.equals(iface.name, ifaceName)) { in getIface()
574 NormalScanEventCallback(String ifaceName) { in NormalScanEventCallback() argument
575 mIfaceName = ifaceName; in NormalScanEventCallback()
600 PnoScanEventCallback(String ifaceName) { in PnoScanEventCallback() argument
601 mIfaceName = ifaceName; in PnoScanEventCallback()
898 public void onDestroyed(@NonNull String ifaceName) { in onDestroyed() argument
904 + ifaceName); in onDestroyed()
[all …]
DSupplicantStaIfaceHalHidlImpl.java311 protected int getCurrentNetworkId(@NonNull String ifaceName) { in getCurrentNetworkId() argument
313 WifiConfiguration currentConfig = getCurrentNetworkLocalConfig(ifaceName); in getCurrentNetworkId()
321 private boolean trySetupStaIfaceV1_4(@NonNull String ifaceName, in trySetupStaIfaceV1_4() argument
326 new SupplicantStaIfaceHalCallbackV1_4(ifaceName); in trySetupStaIfaceV1_4()
331 mISupplicantStaIfaceCallbacks.put(ifaceName, callbackV14); in trySetupStaIfaceV1_4()
335 private boolean trySetupStaIfaceV1_3(@NonNull String ifaceName, in trySetupStaIfaceV1_3() argument
340 if (trySetupStaIfaceV1_4(ifaceName, iface)) { in trySetupStaIfaceV1_3()
345 new SupplicantStaIfaceHalCallbackV1_3(ifaceName); in trySetupStaIfaceV1_3()
350 mISupplicantStaIfaceCallbacks.put(ifaceName, callbackV13); in trySetupStaIfaceV1_3()
354 private boolean trySetupStaIfaceV1_2(@NonNull String ifaceName, in trySetupStaIfaceV1_2() argument
[all …]
DSupplicantStaIfaceHalAidlImpl.java259 protected int getCurrentNetworkId(@NonNull String ifaceName) { in getCurrentNetworkId() argument
261 WifiConfiguration currentConfig = getCurrentNetworkLocalConfig(ifaceName); in getCurrentNetworkId()
275 public boolean setupIface(@NonNull String ifaceName) { in setupIface() argument
277 if (getStaIface(ifaceName) != null) { in setupIface()
278 Log.e(TAG, "Iface " + ifaceName + " already exists."); in setupIface()
282 ISupplicantStaIface iface = addIface(ifaceName); in setupIface()
284 Log.e(TAG, "Unable to add iface " + ifaceName); in setupIface()
289 SupplicantStaIfaceHalAidlImpl.this, ifaceName, in setupIface()
292 mISupplicantStaIfaces.put(ifaceName, iface); in setupIface()
294 mISupplicantStaIfaceCallbacks.put(ifaceName, callback); in setupIface()
[all …]
DWifiVendorHal.java255 private WifiStaIface getStaIface(@NonNull String ifaceName) { in getStaIface() argument
257 return mWifiStaIfaces.get(ifaceName); in getStaIface()
269 public void onDestroyed(@NonNull String ifaceName) { in onDestroyed() argument
271 mWifiStaIfaces.remove(ifaceName); in onDestroyed()
274 mExternalListener.onDestroyed(ifaceName); in onDestroyed()
298 String ifaceName = iface.getName(); in createStaIface() local
299 if (TextUtils.isEmpty(ifaceName)) { in createStaIface()
311 mWifiStaIfaces.put(ifaceName, iface); in createStaIface()
312 return ifaceName; in createStaIface()
323 public boolean replaceStaIfaceRequestorWs(@NonNull String ifaceName, in replaceStaIfaceRequestorWs() argument
[all …]
DApplicationQosPolicyRequestHandler.java201 public void onApResponse(String ifaceName, in onApResponse() argument
204 logApCallbackMockable(ifaceName, halStatusList); in onApResponse()
205 CallbackParams expectedParams = mPendingCallbacks.get(ifaceName); in onApResponse()
218 mPendingCallbacks.remove(ifaceName); in onApResponse()
219 processNextRequestIfPossible(ifaceName); in onApResponse()
276 protected void logApCallbackMockable(String ifaceName, in logApCallbackMockable() argument
278 Log.i(TAG, "Received AP callback on " + ifaceName + ", size=" + halStatusList.size()); in logApCallbackMockable()
360 public void queueAllPoliciesOnIface(String ifaceName, boolean apSupportsQosChars) { in queueAllPoliciesOnIface() argument
367 Log.i(TAG, "Queueing all policies on iface=" + ifaceName + ". numPolicies=" in queueAllPoliciesOnIface()
392 queueRequestOnIface(ifaceName, request); in queueAllPoliciesOnIface()
[all …]
DHostapdHal.java142 public boolean registerApCallback(@NonNull String ifaceName, in registerApCallback() argument
149 return mIHostapd.registerApCallback(ifaceName, callback); in registerApCallback()
162 public boolean addAccessPoint(@NonNull String ifaceName, @NonNull SoftApConfiguration config, in addAccessPoint() argument
169 return mIHostapd.addAccessPoint(ifaceName, config, isMetered, onFailureListener); in addAccessPoint()
179 public boolean removeAccessPoint(@NonNull String ifaceName) { in removeAccessPoint() argument
185 return mIHostapd.removeAccessPoint(ifaceName); in removeAccessPoint()
197 public boolean forceClientDisconnect(@NonNull String ifaceName, in forceClientDisconnect() argument
204 return mIHostapd.forceClientDisconnect(ifaceName, client, reasonCode); in forceClientDisconnect()
DHostapdHalAidlImp.java207 public boolean registerApCallback(@NonNull String ifaceName, in registerApCallback() argument
215 mSoftApHalCallbacks.put(ifaceName, callback); in registerApCallback()
216 Log.i(TAG, "registerApCallback Successful in " + ifaceName); in registerApCallback()
231 public boolean addAccessPoint(@NonNull String ifaceName, @NonNull SoftApConfiguration config, in addAccessPoint() argument
235 Log.d(TAG, methodStr + ": " + ifaceName); in addAccessPoint()
240 IfaceParams ifaceParams = prepareIfaceParams(ifaceName, config); in addAccessPoint()
247 mSoftApFailureListeners.put(ifaceName, onFailureListener); in addAccessPoint()
267 public boolean removeAccessPoint(@NonNull String ifaceName) { in removeAccessPoint() argument
274 mSoftApFailureListeners.remove(ifaceName); in removeAccessPoint()
275 mSoftApHalCallbacks.remove(ifaceName); in removeAccessPoint()
[all …]
DHostapdHalHidlImp.java408 public boolean registerApCallback(@NonNull String ifaceName, in registerApCallback() argument
420 mSoftApHalCallbacks.put(ifaceName, listener); in registerApCallback()
421 Log.i(TAG, "registerApCallback Successful in " + ifaceName); in registerApCallback()
436 public boolean addAccessPoint(@NonNull String ifaceName, @NonNull SoftApConfiguration config, in addAccessPoint() argument
440 IHostapd.IfaceParams ifaceParamsV1_0 = prepareIfaceParamsV1_0(ifaceName, config); in addAccessPoint()
500 mSoftApFailureListeners.put(ifaceName, onFailureListener); in addAccessPoint()
519 public boolean removeAccessPoint(@NonNull String ifaceName) { in removeAccessPoint() argument
524 HostapdStatus status = mIHostapd.removeAccessPoint(ifaceName); in removeAccessPoint()
528 mSoftApFailureListeners.remove(ifaceName); in removeAccessPoint()
529 mSoftApHalCallbacks.remove(ifaceName); in removeAccessPoint()
[all …]
DIHostapdHal.java59 boolean addAccessPoint(@NonNull String ifaceName, in addAccessPoint() argument
69 boolean removeAccessPoint(@NonNull String ifaceName); in removeAccessPoint() argument
79 boolean forceClientDisconnect(@NonNull String ifaceName, in forceClientDisconnect() argument
92 boolean registerApCallback(@NonNull String ifaceName, in registerApCallback() argument
DHalDeviceManager.java398 String ifaceName = getName(iface); in createP2pIface() local
399 if (TextUtils.isEmpty(ifaceName)) { in createP2pIface()
403 mWifiP2pIfaces.put(ifaceName, iface); in createP2pIface()
404 return ifaceName; in createP2pIface()
436 public boolean removeP2pIface(String ifaceName) { in removeP2pIface() argument
437 WifiP2pIface iface = mWifiP2pIfaces.get(ifaceName); in removeP2pIface()
440 Log.e(TAG, "Unable to remove p2p iface " + ifaceName); in removeP2pIface()
443 mWifiP2pIfaces.remove(ifaceName); in removeP2pIface()
552 public boolean is24g5gDbsSupportedOnP2pIface(String ifaceName) { in is24g5gDbsSupportedOnP2pIface() argument
553 WifiP2pIface iface = mWifiP2pIfaces.get(ifaceName); in is24g5gDbsSupportedOnP2pIface()
[all …]
DWifiDiagnostics.java185 public synchronized void startLogging(@NonNull String ifaceName) { in startLogging() argument
186 if (mActiveInterfaces.contains(ifaceName)) { in startLogging()
187 Log.w(TAG, "Interface: " + ifaceName + " had already started logging"); in startLogging()
202 mActiveInterfaces.add(ifaceName); in startLogging()
203 mLatestIfaceLogged = ifaceName; in startLogging()
206 + " after adding " + ifaceName); in startLogging()
232 public synchronized void stopLogging(@NonNull String ifaceName) { in stopLogging() argument
233 if (!mActiveInterfaces.contains(ifaceName)) { in stopLogging()
234 Log.w(TAG, "ifaceName: " + ifaceName + " is not in the start log user list"); in stopLogging()
238 mActiveInterfaces.remove(ifaceName); in stopLogging()
[all …]
DWifiDataStall.java322 @NonNull String ifaceName, in checkDataStallAndThroughputSufficiency()
435 mWifiMetrics.incrementConnectionDuration(ifaceName, timeDeltaLastTwoPollsMs, in checkDataStallAndThroughputSufficiency()
449 return detectConsecutiveTwoDataStalls(ifaceName, timeDeltaLastTwoPollsMs, dataStallTx, in checkDataStallAndThroughputSufficiency()
456 private int detectConsecutiveTwoDataStalls(String ifaceName, int timeDeltaLastTwoPollsMs, in detectConsecutiveTwoDataStalls() argument
469 int result = calculateUsabilityEventType(ifaceName, mDataStallTx, in detectConsecutiveTwoDataStalls()
480 int result = calculateUsabilityEventType(ifaceName, mDataStallTx, in detectConsecutiveTwoDataStalls()
512 private int calculateUsabilityEventType(String ifaceName, boolean dataStallTx, in calculateUsabilityEventType() argument
522 mWifiMetrics.logWifiIsUnusableEvent(ifaceName, result); in calculateUsabilityEventType()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiNativeInterfaceManagementTest.java575 private void validateSwitchInterfaceToScan(String ifaceName, WorkSource workSource) { in validateSwitchInterfaceToScan() argument
577 mInOrder.verify(mWifiVendorHal).replaceStaIfaceRequestorWs(ifaceName, workSource); in validateSwitchInterfaceToScan()
578 mInOrder.verify(mSupplicantStaIfaceHal).teardownIface(ifaceName); in validateSwitchInterfaceToScan()
583 mInOrder.verify(mSupplicantStaIfaceHal).getAdvancedCapabilities(ifaceName); in validateSwitchInterfaceToScan()
584 mInOrder.verify(mWifiVendorHal).getSupportedFeatureSet(ifaceName); in validateSwitchInterfaceToScan()
585 mInOrder.verify(mSupplicantStaIfaceHal).getWpaDriverFeatureSet(ifaceName); in validateSwitchInterfaceToScan()
586 mInOrder.verify(mWifiVendorHal).getTwtCapabilities(ifaceName); in validateSwitchInterfaceToScan()
602 private void validateSetupInterfaceForScan(String ifaceName, in validateSetupInterfaceForScan() argument
604 mInOrder.verify(mWificondControl).setupInterfaceForClientMode(eq(ifaceName), any(), in validateSetupInterfaceForScan()
608 mInOrder.verify(mWifiMonitor).startMonitoring(ifaceName); in validateSetupInterfaceForScan()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/mockwifi/
DMockWifiNl80211Manager.java48 for (String ifaceName : mWifiMonitor.getMonitoredIfaceNames()) { in MockWifiNl80211Manager()
49 Log.i(TAG, "Mock setupInterfaceForClientMode for iface: " + ifaceName); in MockWifiNl80211Manager()
50 mMockWifiNl80211Manager.setupInterfaceForClientMode(ifaceName, Runnable::run, in MockWifiNl80211Manager()
51 new NormalScanEventCallback(ifaceName), in MockWifiNl80211Manager()
52 new PnoScanEventCallback(ifaceName)); in MockWifiNl80211Manager()
89 NormalScanEventCallback(String ifaceName) { in NormalScanEventCallback() argument
90 mIfaceName = ifaceName; in NormalScanEventCallback()
115 PnoScanEventCallback(String ifaceName) { in PnoScanEventCallback() argument
116 mIfaceName = ifaceName; in PnoScanEventCallback()
DMockSupplicantManager.java44 for (String ifaceName : mWifiMonitor.getMonitoredIfaceNames()) { in MockSupplicantManager()
45 Log.i(TAG, "Mock setupInterfaceForSupplicant for iface: " + ifaceName); in MockSupplicantManager()
47 mMockISupplicantStaIfaces.put(ifaceName, mISupplicant.addStaInterface(ifaceName)); in MockSupplicantManager()
57 public ISupplicantStaIface getMockSupplicantStaIface(String ifaceName) { in getMockSupplicantStaIface() argument
58 return mMockISupplicantStaIfaces.get(ifaceName); in getMockSupplicantStaIface()
/packages/modules/Wifi/service/java/com/android/server/wifi/hal/
DIWifiChip.java128 WifiApIface getApIface(String ifaceName); in getApIface() argument
209 WifiNanIface getNanIface(String ifaceName); in getNanIface() argument
228 WifiP2pIface getP2pIface(String ifaceName); in getP2pIface() argument
247 WifiStaIface getStaIface(String ifaceName); in getStaIface() argument
305 boolean removeApIface(String ifaceName); in removeApIface() argument
317 boolean removeIfaceInstanceFromBridgedApIface(String brIfaceName, String ifaceName); in removeIfaceInstanceFromBridgedApIface() argument
325 boolean removeNanIface(String ifaceName); in removeNanIface() argument
333 boolean removeP2pIface(String ifaceName); in removeP2pIface() argument
341 boolean removeStaIface(String ifaceName); in removeStaIface() argument
407 boolean setMultiStaPrimaryConnection(String ifaceName); in setMultiStaPrimaryConnection() argument
DWifiChip.java634 public WifiApIface getApIface(String ifaceName) { in getApIface() argument
636 () -> mWifiChip.getApIface(ifaceName)); in getApIface()
709 public WifiNanIface getNanIface(String ifaceName) { in getNanIface() argument
711 () -> mWifiChip.getNanIface(ifaceName)); in getNanIface()
727 public WifiP2pIface getP2pIface(String ifaceName) { in getP2pIface() argument
729 () -> mWifiChip.getP2pIface(ifaceName)); in getP2pIface()
745 public WifiStaIface getStaIface(String ifaceName) { in getStaIface() argument
747 () -> mWifiChip.getStaIface(ifaceName)); in getStaIface()
798 public boolean removeApIface(String ifaceName) { in removeApIface() argument
800 () -> mWifiChip.removeApIface(ifaceName)); in removeApIface()
[all …]
DWifiChipHidlImpl.java207 public WifiApIface getApIface(String ifaceName) { in getApIface() argument
210 () -> getApIfaceInternal(methodStr, ifaceName)); in getApIface()
301 public WifiNanIface getNanIface(String ifaceName) { in getNanIface() argument
304 () -> getNanIfaceInternal(methodStr, ifaceName)); in getNanIface()
323 public WifiP2pIface getP2pIface(String ifaceName) { in getP2pIface() argument
326 () -> getP2pIfaceInternal(methodStr, ifaceName)); in getP2pIface()
345 public WifiStaIface getStaIface(String ifaceName) { in getStaIface() argument
348 () -> getStaIfaceInternal(methodStr, ifaceName)); in getStaIface()
406 public boolean removeApIface(String ifaceName) { in removeApIface() argument
409 () -> removeApIfaceInternal(methodStr, ifaceName)); in removeApIface()
[all …]
/packages/modules/Connectivity/service-t/src/com/android/server/ethernet/
DEthernetNetworkFactory.java147 protected void addInterface(@NonNull final String ifaceName, @NonNull final String hwAddress, in addInterface() argument
150 if (mTrackingInterfaces.containsKey(ifaceName)) { in addInterface()
151 Log.e(TAG, "Interface with name " + ifaceName + " already exists."); in addInterface()
156 .setNetworkSpecifier(new EthernetNetworkSpecifier(ifaceName)) in addInterface()
160 Log.d(TAG, "addInterface, iface: " + ifaceName + ", capabilities: " + nc); in addInterface()
164 ifaceName, hwAddress, mHandler, mContext, ipConfig, nc, mProvider, mDeps); in addInterface()
165 mTrackingInterfaces.put(ifaceName, iface); in addInterface()
192 protected void updateInterface(@NonNull final String ifaceName, in updateInterface() argument
195 if (!hasInterface(ifaceName)) { in updateInterface()
199 final NetworkInterfaceState iface = mTrackingInterfaces.get(ifaceName); in updateInterface()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/
DWifiScannerImpl.java49 @NonNull String ifaceName); in create() argument
58 @NonNull String ifaceName) {
62 if (TextUtils.isEmpty(ifaceName)) {
66 ifaceName, new WifiNative.ScanCapabilities())) {
67 return new HalWifiScannerImpl(context, ifaceName, wifiGlobals, wifiNative,
70 return new WificondScannerImpl(context, ifaceName, wifiGlobals, wifiNative,
88 WifiScannerImpl(@NonNull String ifaceName) { in WifiScannerImpl() argument
89 mIfaceName = ifaceName; in WifiScannerImpl()
/packages/services/Car/tests/RailwayReferenceApp/src/com/google/android/car/networking/railway/
DInterfaceEnabler.java36 public void enableInterface(String ifaceName) { in enableInterface() argument
37 mEthernetManager.enableInterface(ifaceName, in enableInterface()
42 public void disableInterface(String ifaceName) { in disableInterface() argument
43 mEthernetManager.disableInterface(ifaceName, in disableInterface()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pNative.java97 public void teardownAndInvalidate(@Nullable String ifaceName) { in teardownAndInvalidate() argument
102 if (!TextUtils.isEmpty(ifaceName)) { in teardownAndInvalidate()
103 mSupplicantP2pIfaceHal.teardownIface(ifaceName); in teardownAndInvalidate()
116 public void onDestroyed(String ifaceName) { in onDestroyed() argument
118 Log.d(TAG, "P2P InterfaceDestroyedListener " + ifaceName); in onDestroyed()
123 teardownAndInvalidate(ifaceName); in onDestroyed()
124 mExternalListener.onDestroyed(ifaceName); in onDestroyed()
296 String ifaceName = mPropertyService.getString(P2P_INTERFACE_PROPERTY, in teardownInterface() local
299 mInterfaceDestroyedListener.teardownAndInvalidate(ifaceName); in teardownInterface()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hal/
DWifiApIfaceAidlImplTest.java49 final String ifaceName = "wlan0"; in testGetNameSuccess() local
50 when(mIWifiApIfaceMock.getName()).thenReturn(ifaceName); in testGetNameSuccess()
51 assertEquals(ifaceName, mDut.getName()); in testGetNameSuccess()

12345