/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
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 | 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 | WifiCountryCode.java | 30 private final WifiNative mWifiNative; field in class:WifiCountryCode 47 mWifiNative = wifiNative; 201 if (mWifiNative.setCountryCode(country)) {
|
H A D | WifiDiagnostics.java | 130 mFirmwareVersion = mWifiNative.getFirmwareVersion(); 131 mDriverVersion = mWifiNative.getDriverVersion(); 132 mSupportedFeatureSet = mWifiNative.getSupportedLoggerFeatureSet(); 135 mIsLoggingEventHandlerRegistered = mWifiNative.setLoggingEventHandler(mHandler); 159 if (!mWifiNative.startPktFateMonitoring()) { 185 if (!mWifiNative.resetLogHandler()) { 423 mRingBuffers = mWifiNative.getRingBufferStatus(); 474 if (mWifiNative.startLoggingRingBuffer( 484 if (mWifiNative.startLoggingRingBuffer(0, 0, 0, 0, buffer.name) == false) { 512 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, 198 mWifiNetworkHistory, mWifiNative, mIpConfigStore, 206 mWifiConnectivityHelper = new WifiConnectivityHelper(mWifiNative); 216 mPasspointManager = new PasspointManager(mContext, mWifiNative, mWifiKeyStore, mClock, 224 this, mBackupManagerProxy, mCountryCode, mWifiNative); 380 mWifiNative, mCountryCode.getCountryCode(), 468 return mWifiNative; [all...] |
H A D | WifiStateMachine.java | 205 private WifiNative mWifiNative; field in class:WifiStateMachine 402 return mWifiNative.setConfiguredNetworkBSSID(bssid); 884 mWifiNative = wifiNative; 888 mInterfaceName = mWifiNative.getInterfaceName(); 906 mWifiDiagnostics = mWifiInjector.makeWifiDiagnostics(mWifiNative); 1177 mWifiNative.setSupplicantLogLevel(mVerboseLoggingEnabled); 1200 mWifiNative.enableVerboseLogging(verbose); 1263 return mWifiNative.setScanningMacOui(ouiBytes); 1277 return mWifiNative.getFrameworkNetworkId(supplicantNetworkId); 1424 stats = mWifiNative [all...] |
H A D | WifiConfigStoreLegacy.java | 83 private final WifiNative mWifiNative; field in class:WifiConfigStoreLegacy 92 mWifiNative = wifiNative; 173 if (!mWifiNative.migrateNetworksFromSupplicant(configurationMap, networkExtras)) { 302 if (!mWifiNative.removeAllNetworks()) {
|
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))
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
H A D | HalWifiScannerTest.java | 33 setupMockChannels(mWifiNative, 37 mScanner = new HalWifiScannerImpl(mContext, mWifiNative, mWifiMonitor, mLooper.getLooper(),
|
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...] |
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 | WificondScannerTest.java | 51 mScanner = new WificondScannerImpl(mContext, mWifiNative, mWifiMonitor, 318 InOrder order = inOrder(eventHandler, mWifiNative); 321 when(mWifiNative.scan(any(), any(Set.class))).thenReturn(false); 353 InOrder order = inOrder(eventHandler, mWifiNative); 356 when(mWifiNative.scan(any(), any(Set.class))).thenReturn(true); 400 InOrder order = inOrder(eventHandler, mWifiNative); 403 when(mWifiNative.scan(any(), any(Set.class))).thenReturn(true); 454 InOrder order = inOrder(eventHandler, mWifiNative); 457 when(mWifiNative.scan(any(), any(Set.class))).thenReturn(true); 464 order.verify(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/service/java/com/android/server/wifi/scanner/ |
H A D | HalWifiScannerImpl.java | 39 private final WifiNative mWifiNative; field in class:HalWifiScannerImpl 46 mWifiNative = wifiNative; 69 return mWifiNative.getBgScanCapabilities(capabilities); 95 return mWifiNative.startBgScan(settings, eventHandler); 100 mWifiNative.stopBgScan(); 105 mWifiNative.pauseBgScan(); 110 mWifiNative.restartBgScan(); 115 return mWifiNative.getBgScanResults(); 122 return mWifiNative.setPnoList(settings, eventHandler); 131 return mWifiNative [all...] |
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 | WificondScannerImpl.java | 61 private final WifiNative mWifiNative; field in class:WificondScannerImpl 130 mWifiNative = wifiNative; 135 mHwPnoDebouncer = new HwPnoDebouncer(mWifiNative, mAlarmManager, mEventHandler, mClock); 141 wifiMonitor.registerHandler(mWifiNative.getInterfaceName(), 143 wifiMonitor.registerHandler(mWifiNative.getInterfaceName(), 145 wifiMonitor.registerHandler(mWifiNative.getInterfaceName(), 426 boolean success = mWifiNative.scan(freqs, hiddenNetworkSSIDSet); 538 ArrayList<ScanDetail> nativeResults = mWifiNative.getScanResults(); 601 ArrayList<ScanDetail> nativeResults = mWifiNative.getScanResults(); 875 private final WifiNative mWifiNative; field in class:WificondScannerImpl.HwPnoDebouncer [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
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 | 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());
|
H A D | RttServiceTest.java | 66 WifiNative mWifiNative; field in class:RttServiceTest 82 when(mWifiInjector.getWifiNative()).thenReturn(mWifiNative); 115 verifyNoMoreInteractions(mWifiNative); 137 verify(mWifiNative).enableRttResponder(anyInt()); 156 when(mWifiNative.enableRttResponder(anyInt())).thenReturn(config); 157 when(mWifiNative.getMacAddress()).thenReturn(MAC); 169 when(mWifiNative.disableRttResponder()).thenReturn(success); 210 verify(mWifiNative, times(1)).enableRttResponder(anyInt()); 221 verify(mWifiNative).disableRttResponder(); 231 when(mWifiNative [all...] |
H A D | WifiNativeTest.java | 151 private WifiNative mWifiNative; field in class:WifiNativeTest 158 mWifiNative = new WifiNative("test0", mWifiVendorHal, mStaIfaceHal, mWificondControl); 441 assertFalse(mWifiNative.isHalStarted()); 442 assertFalse(mWifiNative.startPktFateMonitoring()); 451 assertFalse(mWifiNative.isHalStarted()); 452 assertFalse(mWifiNative.getTxPktFates(fateReports)); 461 assertFalse(mWifiNative.isHalStarted()); 462 assertFalse(mWifiNative.getRxPktFates(fateReports)); 477 assertEquals(null, mWifiNative.getDriverStateDump()); 490 IClientInterface returnedClientInterface = mWifiNative [all...] |
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 | SoftApManagerTest.java | 70 @Mock WifiNative mWifiNative; field in class:SoftApManagerTest 113 mWifiNative, 148 mWifiNative, 205 when(mWifiNative.isHalStarted()).thenReturn(false); 206 when(mWifiNative.setCountryCodeHal(TEST_COUNTRY_CODE.toUpperCase(Locale.ROOT)))
|
H A D | WifiStateMachineTest.java | 351 @Mock WifiNative mWifiNative; field in class:WifiStateMachineTest 395 when(mWifiInjector.getWifiNative()).thenReturn(mWifiNative); 398 when(mWifiNative.setupForClientMode()).thenReturn(mClientInterface); 399 when(mWifiNative.setupForSoftApMode()).thenReturn(mApInterface); 401 when(mWifiNative.getInterfaceName()).thenReturn(WIFI_IFACE_NAME); 402 when(mWifiNative.enableSupplicant()).thenReturn(true); 403 when(mWifiNative.disableSupplicant()).thenReturn(true); 404 when(mWifiNative.getFrameworkNetworkId(anyInt())).thenReturn(0); 435 mUserManager, mWifiInjector, mBackupManagerProxy, mCountryCode, mWifiNative); 560 when(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...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
H A D | WifiP2pServiceImpl.java | 577 private WifiP2pNative mWifiNative = WifiInjector.getInstance().getWifiP2pNative(); field in class:WifiP2pServiceImpl.P2pStateMachine 594 mWifiNative.removeP2pNetwork(netId); 595 mWifiNative.saveConfig(); 636 String interfaceName = mWifiNative.getInterfaceName(); 875 mWifiNative.p2pGroupRemove(mGroup.getInterface()); 1039 mNwService.setInterfaceUp(mWifiNative.getInterfaceName()); 1045 mWifiMonitor.startMonitoring(mWifiNative.getInterfaceName()); 1111 mWifiMonitor.stopMonitoring(mWifiNative.getInterfaceName()); 1145 mWifiNative.p2pStopFind(); 1150 mWifiNative [all...] |