/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
H A D | HalChannelHelper.java | 31 private final WifiNative mWifiNative; field in class:HalChannelHelper 34 mWifiNative = wifiNative; 42 int[] channels24G = mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_24_GHZ); 44 int[] channels5G = mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_5_GHZ); 46 int[] channelsDfs = mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_5_GHZ_DFS_ONLY);
|
H A D | HalWifiScannerImpl.java | 42 private final WifiNative mWifiNative; field in class:HalWifiScannerImpl 48 mWifiNative = wifiNative; 68 return mWifiNative.getBgScanCapabilities(capabilities); 94 return mWifiNative.startBgScan(settings, eventHandler); 99 mWifiNative.stopBgScan(); 104 mWifiNative.pauseBgScan(); 109 mWifiNative.restartBgScan(); 114 return mWifiNative.getBgScanResults();
|
H A D | WificondScannerImpl.java | 63 private final WifiNative mWifiNative; field in class:WificondScannerImpl 133 mWifiNative = wifiNative; 138 mHwPnoDebouncer = new HwPnoDebouncer(mWifiNative, mAlarmManager, mEventHandler, mClock); 144 wifiMonitor.registerHandler(mWifiNative.getInterfaceName(), 146 wifiMonitor.registerHandler(mWifiNative.getInterfaceName(), 148 wifiMonitor.registerHandler(mWifiNative.getInterfaceName(), 431 success = mWifiNative.scan(freqs, hiddenNetworkSSIDSet); 551 mNativeScanResults = mWifiNative.getPnoScanResults(); 611 mNativeScanResults = mWifiNative.getScanResults(); 919 private final WifiNative mWifiNative; field in class:WificondScannerImpl.HwPnoDebouncer [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
H A D | WifiCountryCodeTest.java | 42 @Mock WifiNative mWifiNative; field in class:WifiCountryCodeTest 52 when(mWifiNative.setCountryCode(anyString())).thenReturn(true); 55 mWifiNative, 70 verify(mWifiNative).setCountryCode(anyString()); 86 verify(mWifiNative).setCountryCode(anyString()); 103 verify(mWifiNative, times(2)).setCountryCode(anyString()); 123 verify(mWifiNative, times(2)).setCountryCode(anyString()); 145 verify(mWifiNative, times(2)).setCountryCode(anyString()); 167 verify(mWifiNative, times(2)).setCountryCode(anyString()); 200 mWifiNative, [all...] |
H A D | SoftApManagerTest.java | 70 @Mock WifiNative mWifiNative; field in class:SoftApManagerTest 113 mWifiNative, 162 mWifiNative, 220 when(mWifiNative.isHalStarted()).thenReturn(false); 221 when(mWifiNative.setCountryCodeHal(TEST_COUNTRY_CODE.toUpperCase(Locale.ROOT)))
|
H A D | WifiConnectivityHelperTest.java | 48 mWifiConnectivityHelper = new WifiConnectivityHelper(mWifiNative); 58 @Mock private WifiNative mWifiNative; field in class:WifiConnectivityHelperTest 67 when(mWifiNative.getSupportedFeatureSet()).thenReturn(WIFI_FEATURE_CONTROL_ROAMING); 74 }}).when(mWifiNative).getRoamingCapabilities(anyObject()); 76 when(mWifiNative.configureRoaming(anyObject())).thenReturn(true); 120 when(mWifiNative.getSupportedFeatureSet()).thenReturn(~WIFI_FEATURE_CONTROL_ROAMING); 147 }}).when(mWifiNative).getRoamingCapabilities(anyObject()); 168 }}).when(mWifiNative).getRoamingCapabilities(anyObject()); 189 }}).when(mWifiNative).getRoamingCapabilities(anyObject()); 257 verify(mWifiNative) [all...] |
H A D | RttServiceTest.java | 67 WifiNative mWifiNative; field in class:RttServiceTest 85 when(mWifiInjector.getWifiNative()).thenReturn(mWifiNative); 121 verifyNoMoreInteractions(mWifiNative); 143 verify(mWifiNative).enableRttResponder(anyInt()); 162 when(mWifiNative.enableRttResponder(anyInt())).thenReturn(config); 163 when(mWifiNative.getMacAddress()).thenReturn(MAC); 175 when(mWifiNative.disableRttResponder()).thenReturn(success); 216 verify(mWifiNative, times(1)).enableRttResponder(anyInt()); 227 verify(mWifiNative).disableRttResponder(); 237 when(mWifiNative [all...] |
H A D | WifiDiagnosticsTest.java | 57 @Mock WifiNative mWifiNative; field in class:WifiDiagnosticsTest 96 when(mWifiNative.getRingBufferStatus()).thenReturn(ringBufferStatuses); 97 when(mWifiNative.readKernelLog()).thenReturn(""); 115 mContext, mWifiInjector, mWsm, mWifiNative, mBuildProperties, mLastMileLogger); 116 mWifiNative.enableVerboseLogging(0); 124 verify(mWifiNative).setLoggingEventHandler(anyObject()); 136 when(mWifiNative.setLoggingEventHandler(anyObject())).thenReturn(false); 138 verify(mWifiNative).setLoggingEventHandler(anyObject()); 139 reset(mWifiNative); 141 when(mWifiNative [all...] |
H A D | WifiNativeTest.java | 152 private WifiNative mWifiNative; field in class:WifiNativeTest 159 mWifiNative = new WifiNative("test0", mWifiVendorHal, mStaIfaceHal, mWificondControl); 442 assertFalse(mWifiNative.isHalStarted()); 443 assertFalse(mWifiNative.startPktFateMonitoring()); 452 assertFalse(mWifiNative.isHalStarted()); 453 assertFalse(mWifiNative.getTxPktFates(fateReports)); 462 assertFalse(mWifiNative.isHalStarted()); 463 assertFalse(mWifiNative.getRxPktFates(fateReports)); 478 assertEquals(null, mWifiNative.getDriverStateDump()); 491 Pair<Integer, IClientInterface> statusAndClientInterface = mWifiNative [all...] |
H A D | WifiStateMachineTest.java | 359 @Mock WifiNative mWifiNative; field in class:WifiStateMachineTest 410 when(mWifiInjector.getWifiNative()).thenReturn(mWifiNative); 416 when(mWifiNative.setupForClientMode()) 418 when(mWifiNative.setupForSoftApMode()) 421 when(mWifiNative.getInterfaceName()).thenReturn(WIFI_IFACE_NAME); 422 when(mWifiNative.enableSupplicant()).thenReturn(true); 423 when(mWifiNative.disableSupplicant()).thenReturn(true); 424 when(mWifiNative.getFrameworkNetworkId(anyInt())).thenReturn(0); 491 mUserManager, mWifiInjector, mBackupManagerProxy, mCountryCode, mWifiNative, 588 verify(mWifiNative) [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
H A D | PasspointEventHandlerTest.java | 52 @Mock WifiNative mWifiNative; field in class:PasspointEventHandlerTest 60 mHandler = new PasspointEventHandler(mWifiNative, mCallbacks); 76 when(mWifiNative.requestAnqp(eq(BSSID_STR), eq(expAnqpIds), eq(expHs20Subtypes))) 81 when(mWifiNative.requestAnqp(eq(BSSID_STR), eq(expAnqpIds), eq(expHs20Subtypes))) 99 when(mWifiNative.requestAnqp(eq(BSSID_STR), eq(expAnqpIds), eq(expHs20Subtypes))) 104 when(mWifiNative.requestAnqp(eq(BSSID_STR), eq(expAnqpIds), eq(expHs20Subtypes))) 125 when(mWifiNative.requestAnqp(eq(BSSID_STR), eq(expAnqpIds), eq(expHs20Subtypes))) 130 when(mWifiNative.requestAnqp(eq(BSSID_STR), eq(expAnqpIds), eq(expHs20Subtypes))) 141 when(mWifiNative.requestIcon(eq(BSSID_STR), eq(ICON_FILENAME))).thenReturn(true); 145 when(mWifiNative [all...] |
H A D | PasspointManagerTest.java | 120 @Mock WifiNative mWifiNative; field in class:PasspointManagerTest 143 mManager = new PasspointManager(mContext, mWifiNative, mWifiKeyStore, mClock,
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | WifiConnectivityHelper.java | 38 private final WifiNative mWifiNative; field in class:WifiConnectivityHelper 44 mWifiNative = wifiNative; 62 int fwFeatureSet = mWifiNative.getSupportedFeatureSet(); 71 if (mWifiNative.getRoamingCapabilities(roamingCap)) { 162 return mWifiNative.configureRoaming(roamConfig); 172 mWifiNative.removeNetworkIfCurrent(networkId);
|
H A D | BaseWifiDiagnostics.java | 15 protected final WifiNative mWifiNative; field in class:BaseWifiDiagnostics 22 mWifiNative = wifiNative; 26 mFirmwareVersion = mWifiNative.getFirmwareVersion(); 27 mDriverVersion = mWifiNative.getDriverVersion(); 28 mSupportedFeatureSet = mWifiNative.getSupportedLoggerFeatureSet();
|
H A D | WifiCountryCode.java | 30 private final WifiNative mWifiNative; field in class:WifiCountryCode 47 mWifiNative = wifiNative; 198 if (mWifiNative.setCountryCode(country)) {
|
H A D | SoftApManager.java | 49 private final WifiNative mWifiNative; field in class:SoftApManager 89 mWifiNative = wifiNative; 143 mWifiNative, mCountryCode, 154 if (!mWifiNative.setCountryCodeHal(mCountryCode.toUpperCase(Locale.ROOT))
|
H A D | RttService.java | 203 private final WifiNative mWifiNative; field in class:RttService.RttServiceImpl 213 mWifiNative = wifiInjector.getWifiNative(); 477 mWifiNative.enableRttResponder(MAX_RESPONDER_DURATION_SECONDS); 478 if (DBG) Log.d(TAG, "mWifiNative.enableRttResponder called"); 482 mResponderConfig.macAddress = mWifiNative.getMacAddress(); 508 mWifiNative.cancelRtt(mOutstandingRequest.params); 549 mWifiNative.cancelRtt(mOutstandingRequest.params); 601 if (!mWifiNative.disableRttResponder()) { 604 if (DBG) Log.d(TAG, "mWifiNative.disableRttResponder called"); 714 if (mWifiNative [all...] |
H A D | WifiInjector.java | 79 private final WifiNative mWifiNative; field in class:WifiInjector 171 mWifiNative = new WifiNative(SystemProperties.get("wifi.interface", "wlan0"), 180 mWifiNative.getInterfaceName()); 181 mCountryCode = new WifiCountryCode(mWifiNative, 203 mWifiConnectivityHelper = new WifiConnectivityHelper(mWifiNative); 214 mPasspointManager = new PasspointManager(mContext, mWifiNative, mWifiKeyStore, mClock, 224 this, mBackupManagerProxy, mCountryCode, mWifiNative, 380 mWifiNative, mCountryCode.getCountryCode(), 469 return mWifiNative;
|
H A D | WifiStateMachine.java | 212 private WifiNative mWifiNative; field in class:WifiStateMachine 422 return mWifiNative.setConfiguredNetworkBSSID(bssid); 922 mWifiNative = wifiNative; 927 mInterfaceName = mWifiNative.getInterfaceName(); 945 mWifiDiagnostics = mWifiInjector.makeWifiDiagnostics(mWifiNative); 1219 mWifiNative.setSupplicantLogLevel(mVerboseLoggingEnabled); 1242 mWifiNative.enableVerboseLogging(verbose); 1305 return mWifiNative.setScanningMacOui(ouiBytes); 1319 return mWifiNative.getFrameworkNetworkId(supplicantNetworkId); 1466 stats = mWifiNative [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
H A D | ApConfigUtilTest.java | 107 @Mock WifiNative mWifiNative; field in class:ApConfigUtilTest 188 when(mWifiNative.isHalStarted()).thenReturn(false); 191 mWifiNative, TEST_COUNTRY_CODE, mAllowed2GChannels, config)); 205 when(mWifiNative.isHalStarted()).thenReturn(true); 208 mWifiNative, null, mAllowed2GChannels, config)); 219 when(mWifiNative.isHalStarted()).thenReturn(true); 222 mWifiNative, TEST_COUNTRY_CODE, mAllowed2GChannels, config)); 235 when(mWifiNative.isHalStarted()).thenReturn(true); 236 when(mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_5_GHZ)) 238 when(mWifiNative [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
H A D | BaseWifiScannerImplTest.java | 65 @Mock WifiNative mWifiNative; field in class:BaseWifiScannerImplTest 83 when(mWifiNative.getInterfaceName()).thenReturn("a_test_interface_name"); 228 when(mWifiNative.scan(any(), any(Set.class))).thenReturn(true); 248 InOrder order = inOrder(eventHandler, mWifiNative); 251 when(mWifiNative.scan(any(), any(Set.class))).thenReturn(false); 278 InOrder order = inOrder(eventHandler, mWifiNative); 281 when(mWifiNative.scan(any(), any(Set.class))).thenReturn(true); 312 InOrder order = inOrder(eventHandler, mWifiNative); 315 when(mWifiNative.scan(any(), any(Set.class))).thenReturn(true); 322 mWifiMonitor.sendMessage(mWifiNative [all...] |
H A D | WificondPnoScannerTest.java | 60 @Mock WifiNative mWifiNative; field in class:WificondPnoScannerTest 74 when(mWifiNative.getInterfaceName()).thenReturn("a_test_interface_name"); 93 InOrder order = inOrder(pnoEventHandler, mWifiNative); 114 InOrder order = inOrder(eventHandler, mWifiNative); 124 order = inOrder(pnoEventHandler, mWifiNative); 183 InOrder order = inOrder(eventHandler, mWifiNative); 194 order = inOrder(pnoEventHandler, mWifiNative); 195 when(mWifiNative.startPnoScan(any(WifiNative.PnoSettings.class))).thenReturn(false); 230 when(mWifiNative.stopPnoScan()).thenReturn(false); 236 verify(mWifiNative) [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
H A D | WifiP2pServiceImpl.java | 679 private WifiP2pNative mWifiNative = WifiInjector.getInstance().getWifiP2pNative(); field in class:WifiP2pServiceImpl.P2pStateMachine 696 mWifiNative.removeP2pNetwork(netId); 697 mWifiNative.saveConfig(); 738 String interfaceName = mWifiNative.getInterfaceName(); 977 mWifiNative.p2pGroupRemove(mGroup.getInterface()); 1141 mNwService.setInterfaceUp(mWifiNative.getInterfaceName()); 1147 mWifiMonitor.startMonitoring(mWifiNative.getInterfaceName()); 1213 mWifiMonitor.stopMonitoring(mWifiNative.getInterfaceName()); 1247 mWifiNative.p2pStopFind(); 1252 mWifiNative [all...] |