/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
HalWifiScannerImpl.java | 38 private final WifiNative mWifiNative; 44 mWifiNative = wifiNative; 66 return mWifiNative.getScanCapabilities(capabilities); 92 return mWifiNative.startScan(settings, eventHandler); 97 mWifiNative.stopScan(); 102 mWifiNative.pauseScan(); 107 mWifiNative.restartScan(); 112 return mWifiNative.getScanResults(flush); 119 return mWifiNative.setPnoList(settings, eventHandler); 128 return mWifiNative.resetPnoList() [all...] |
HalChannelHelper.java | 31 private final WifiNative mWifiNative; 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);
|
SupplicantWifiScannerImpl.java | 65 private final WifiNative mWifiNative; 137 mWifiNative = wifiNative; 142 mHwPnoDebouncer = new HwPnoDebouncer(mWifiNative, mAlarmManager, mEventHandler, mClock); 148 WifiMonitor.getInstance().registerHandler(mWifiNative.getInterfaceName(), 150 WifiMonitor.getInstance().registerHandler(mWifiNative.getInterfaceName(), 436 boolean success = mWifiNative.scan(freqs, hiddenNetworkIdSet); 538 ArrayList<ScanDetail> nativeResults = mWifiNative.getScanResults(); 662 if (!mWifiNative.setNetworkVariable(network.networkId, 668 if (!mWifiNative.enableNetworkWithoutConnect(network.networkId)) { [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
HalWifiScannerTest.java | 33 setupMockChannels(mWifiNative, 37 mScanner = new HalWifiScannerImpl(mContext, mWifiNative, mLooper.getLooper(), mClock);
|
SupplicantPnoScannerTest.java | 62 @Mock WifiNative mWifiNative; 76 when(mWifiNative.getInterfaceName()).thenReturn("a_test_interface_name"); 95 InOrder order = inOrder(pnoEventHandler, mWifiNative); 116 InOrder order = inOrder(eventHandler, mWifiNative); 127 order = inOrder(pnoEventHandler, mWifiNative); 186 InOrder order = inOrder(eventHandler, mWifiNative); 198 order = inOrder(pnoEventHandler, mWifiNative); 199 when(mWifiNative.setPnoScan(true)).thenReturn(false); 224 InOrder order = inOrder(scanEventHandler, mWifiNative); 237 new SupplicantWifiScannerImpl(mContext, mWifiNative, mLooper.getLooper(), mClock) [all...] |
BaseWifiScannerImplTest.java | 65 @Mock WifiNative mWifiNative; 83 when(mWifiNative.getInterfaceName()).thenReturn("a_test_interface_name"); 215 when(mWifiNative.scan(any(Set.class), any(Set.class))).thenReturn(true); 235 InOrder order = inOrder(eventHandler, mWifiNative); 238 when(mWifiNative.scan(any(Set.class), any(Set.class))).thenReturn(false); 265 InOrder order = inOrder(eventHandler, mWifiNative); 268 when(mWifiNative.scan(any(Set.class), any(Set.class))).thenReturn(true); 299 InOrder order = inOrder(eventHandler, mWifiNative); 302 when(mWifiNative.scan(any(Set.class), any(Set.class))).thenReturn(true); 309 mWifiMonitor.sendMessage(mWifiNative.getInterfaceName(), WifiMonitor.SCAN_FAILED_EVENT) [all...] |
SupplicantWifiScannerTest.java | 52 mScanner = new SupplicantWifiScannerImpl(mContext, mWifiNative, 319 InOrder order = inOrder(eventHandler, mWifiNative); 322 when(mWifiNative.scan(any(Set.class), any(Set.class))).thenReturn(false); 354 InOrder order = inOrder(eventHandler, mWifiNative); 357 when(mWifiNative.scan(any(Set.class), any(Set.class))).thenReturn(true); 401 InOrder order = inOrder(eventHandler, mWifiNative); 404 when(mWifiNative.scan(any(Set.class), any(Set.class))).thenReturn(true); 455 InOrder order = inOrder(eventHandler, mWifiNative); 458 when(mWifiNative.scan(any(Set.class), any(Set.class))).thenReturn(true); 465 order.verify(mWifiNative).scan(eq(expectedPeriods[0].getScanFreqs()), any(Set.class)) [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
ApConfigUtilTest.java | 107 @Mock WifiNative mWifiNative; 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.isGetChannelsForBandSupported()).thenReturn(true) [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
WifiCountryCodeTest.java | 44 @Mock WifiNative mWifiNative; 54 when(mWifiNative.setCountryCode(anyString())).thenReturn(true); 57 mWifiNative, 73 verify(mWifiNative).setCountryCode(anyString()); 89 verify(mWifiNative).setCountryCode(anyString()); 106 verify(mWifiNative, times(2)).setCountryCode(anyString()); 126 verify(mWifiNative, times(2)).setCountryCode(anyString()); 148 verify(mWifiNative, times(2)).setCountryCode(anyString()); 170 verify(mWifiNative, times(2)).setCountryCode(anyString()); 182 mWifiNative, [all...] |
WifiLoggerTest.java | 56 @Mock WifiNative mWifiNative; 91 when(mWifiNative.getRingBufferStatus()).thenReturn(ringBufferStatuses); 92 when(mWifiNative.readKernelLog()).thenReturn(""); 93 when(mWifiNative.getLocalLog()).thenReturn(mWifiNativeLocalLog); 105 mWifiLogger = new WifiLogger(mContext, mWsm, mWifiNative, mBuildProperties); 106 mWifiNative.enableVerboseLogging(0); 114 verify(mWifiNative).setLoggingEventHandler(anyObject()); 126 when(mWifiNative.setLoggingEventHandler(anyObject())).thenReturn(false); 128 verify(mWifiNative).setLoggingEventHandler(anyObject()); 129 reset(mWifiNative); [all...] |
WifiStateMachineTest.java | 316 @Mock WifiNative mWifiNative; 344 TestUtil.installWlanWifiNative(mWifiNative); 432 when(mWifiNative.loadDriver()).thenReturn(true); 433 when(mWifiNative.startHal()).thenReturn(true); 434 when(mWifiNative.startSupplicant(anyBoolean())).thenReturn(true); 440 when(mWifiNative.setBand(anyInt())).thenReturn(true); 441 when(mWifiNative.setDeviceName(anyString())).thenReturn(true); 442 when(mWifiNative.setManufacturer(anyString())).thenReturn(true); 443 when(mWifiNative.setModelName(anyString())).thenReturn(true); 444 when(mWifiNative.setModelNumber(anyString())).thenReturn(true) [all...] |
RttServiceTest.java | 62 WifiNative mWifiNative; 72 TestUtil.installWlanWifiNative(mWifiNative); 105 verifyNoMoreInteractions(mWifiNative); 127 verify(mWifiNative).enableRttResponder(anyInt()); 146 when(mWifiNative.enableRttResponder(anyInt())).thenReturn(config); 147 when(mWifiNative.getMacAddress()).thenReturn(MAC); 159 when(mWifiNative.disableRttResponder()).thenReturn(success); 200 verify(mWifiNative, times(1)).enableRttResponder(anyInt()); 211 verify(mWifiNative).disableRttResponder(); 221 when(mWifiNative.enableRttResponder(anyInt())).thenReturn(null) [all...] |
WifiNativeTest.java | 116 private WifiNative mWifiNative; 123 mWifiNative = spy(wifiNativeConstructor.newInstance("test", true)); 131 when(mWifiNative.setNetworkVariable(anyInt(), anyString(), anyString())).thenReturn(true); 132 assertTrue(mWifiNative.setNetworkExtra(NETWORK_ID, NETWORK_EXTRAS_VARIABLE, 134 verify(mWifiNative).setNetworkVariable(NETWORK_ID, NETWORK_EXTRAS_VARIABLE, 143 when(mWifiNative.getNetworkVariable(NETWORK_ID, NETWORK_EXTRAS_VARIABLE)) 146 mWifiNative.getNetworkExtra(NETWORK_ID, NETWORK_EXTRAS_VARIABLE); 402 assertFalse(mWifiNative.isHalStarted()); 403 assertFalse(mWifiNative.startPktFateMonitoring()); 412 assertFalse(mWifiNative.isHalStarted()) [all...] |
WifiConfigManagerTest.java | 134 @Mock private WifiNative mWifiNative; 167 mWifiConfigManager = new WifiConfigManager(mContext, mWifiNative, mFrameworkFacade, mClock, 228 when(mWifiNative.setNetworkVariable(anyInt(), anyString(), anyString())).thenReturn(true); 229 when(mWifiNative.setNetworkExtra(anyInt(), anyString(), (Map<String, String>) anyObject())) 236 when(mWifiNative.addNetwork()).thenReturn(networkId); 237 when(mWifiNative.getNetworkVariable(networkId, WifiConfiguration.ssidVarName)) 408 reset(mWifiNative); 409 when(mWifiNative.selectNetwork(config.networkId)).thenReturn(true); 417 verify(mWifiNative, never()).selectNetwork(anyInt()); 418 verify(mWifiNative, never()).enableNetwork(anyInt()) [all...] |
SoftApManagerTest.java | 64 @Mock WifiNative mWifiNative; 78 when(mWifiNative.getInterfaceName()).thenReturn(TEST_INTERFACE_NAME); 85 mWifiNative, 141 when(mWifiNative.isHalStarted()).thenReturn(false); 142 when(mWifiNative.setCountryCodeHal(TEST_COUNTRY_CODE.toUpperCase(Locale.ROOT)))
|
WifiConfigStoreTest.java | 158 @Mock private WifiNative mWifiNative; 168 mWifiConfigStore = new WifiConfigStore(mContext, mWifiNative, mMockKeyStore.createMock(),
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
WifiConfigStore.java | 98 private final WifiNative mWifiNative; 108 mWifiNative = wifiNative; 231 String value = mWifiNative.getNetworkVariable(netId, varName); 266 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.ssidVarName); 279 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.bssidVarName); 286 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.priorityVarName); 295 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.hiddenSSIDVarName); 304 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.pmfVarName); 313 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.wepTxKeyIdxVarName); 323 value = mWifiNative.getNetworkVariable(netId [all...] |
WifiCountryCode.java | 30 private final WifiNative mWifiNative; 48 mWifiNative = wifiNative; 206 if (mWifiNative.setCountryCode(country)) {
|
SoftApManager.java | 47 private final WifiNative mWifiNative; 79 mWifiNative = wifiNative; 84 mInterfaceName = mWifiNative.getInterfaceName(); 128 mWifiNative, mCountryCode, mAllowed2GChannels, localConfig); 140 if (!mWifiNative.setCountryCodeHal(mCountryCode.toUpperCase(Locale.ROOT))
|
WifiLogger.java | 106 private final WifiNative mWifiNative; 118 mWifiNative = wifiNative; 126 mFirmwareVersion = mWifiNative.getFirmwareVersion(); 127 mDriverVersion = mWifiNative.getDriverVersion(); 128 mSupportedFeatureSet = mWifiNative.getSupportedLoggerFeatureSet(); 131 mIsLoggingEventHandlerRegistered = mWifiNative.setLoggingEventHandler(mHandler); 155 if (!mWifiNative.startPktFateMonitoring()) { 181 if (!mWifiNative.resetLogHandler()) { 237 mWifiNative.getLocalLog().dump(fd, pw, args); 413 mRingBuffers = mWifiNative.getRingBufferStatus() [all...] |
WifiStateMachine.java | 188 private WifiNative mWifiNative; [all...] |
RttService.java | 121 private final WifiNative mWifiNative; 129 mWifiNative = WifiNative.getWlanNativeInterface(); 370 mWifiNative.enableRttResponder(MAX_RESPONDER_DURATION_SECONDS); 371 if (DBG) Log.d(TAG, "mWifiNative.enableRttResponder called"); 375 mResponderConfig.macAddress = mWifiNative.getMacAddress(); 401 mWifiNative.cancelRtt(mOutstandingRequest.params); 440 mWifiNative.cancelRtt(mOutstandingRequest.params); 487 if (!mWifiNative.disableRttResponder()) { 490 if (DBG) Log.d(TAG, "mWifiNative.disableRttResponder called"); 566 if (mWifiNative.requestRtt(request.params, mEventHandler)) [all...] |
WifiMonitor.java | 533 private final WifiNative mWifiNative; 535 mWifiNative = WifiNative.getWlanNativeInterface(); 595 if (mWifiNative.connectToSupplicant()) { 597 new MonitorThread(mWifiNative.getLocalLog()).start(); 635 mWifiNative.stopSupplicant(); 647 mWifiNative.killSupplicant(p2pSupported); 743 String eventStr = mWifiNative.waitForEvent(); [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
WifiP2pServiceImpl.java | 548 private WifiNative mWifiNative = WifiNative.getP2pNativeInterface(); 565 mWifiNative.removeNetwork(netId); 566 mWifiNative.saveConfig(); 606 String interfaceName = mWifiNative.getInterfaceName(); [all...] |