Searched refs:mWifiNative (Results 1 - 24 of 24) sorted by relevance

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
H A DHalWifiScannerImpl.java38 private final WifiNative mWifiNative; field in class:HalWifiScannerImpl
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
[all...]
H A DHalChannelHelper.java31 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 DSupplicantWifiScannerImpl.java65 private final WifiNative mWifiNative; field in class:SupplicantWifiScannerImpl
137 mWifiNative = wifiNative;
142 mHwPnoDebouncer = new HwPnoDebouncer(mWifiNative, mAlarmManager, mEventHandler, mClock);
148 WifiMonitor.getInstance().registerHandler(mWifiNative.getInterfaceName(),
150 WifiMonitor.getInstance().registerHandler(mWifiNative.getInterfaceName(),
441 boolean success = mWifiNative.scan(freqs, hiddenNetworkIdSet);
551 ArrayList<ScanDetail> nativeResults = mWifiNative.getScanResults();
676 if (!mWifiNative.setNetworkVariable(network.networkId,
682 if (!mWifiNative.enableNetworkWithoutConnect(network.networkId)) {
1030 private final WifiNative mWifiNative; field in class:SupplicantWifiScannerImpl.HwPnoDebouncer
[all...]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
H A DHalWifiScannerTest.java33 setupMockChannels(mWifiNative,
37 mScanner = new HalWifiScannerImpl(mContext, mWifiNative, mLooper.getLooper(), mClock);
H A DSupplicantPnoScannerTest.java63 @Mock WifiNative mWifiNative; field in class:SupplicantPnoScannerTest
77 when(mWifiNative.getInterfaceName()).thenReturn("a_test_interface_name");
96 InOrder order = inOrder(pnoEventHandler, mWifiNative);
117 InOrder order = inOrder(eventHandler, mWifiNative);
128 order = inOrder(pnoEventHandler, mWifiNative);
187 InOrder order = inOrder(eventHandler, mWifiNative);
199 order = inOrder(pnoEventHandler, mWifiNative);
200 when(mWifiNative.setPnoScan(true)).thenReturn(false);
235 when(mWifiNative.setPnoScan(false)).thenReturn(false);
241 verify(mWifiNative)
[all...]
H A DBaseWifiScannerImplTest.java65 @Mock WifiNative mWifiNative; field in class:BaseWifiScannerImplTest
83 when(mWifiNative.getInterfaceName()).thenReturn("a_test_interface_name");
223 when(mWifiNative.scan(any(Set.class), any(Set.class))).thenReturn(true);
243 InOrder order = inOrder(eventHandler, mWifiNative);
246 when(mWifiNative.scan(any(Set.class), any(Set.class))).thenReturn(false);
273 InOrder order = inOrder(eventHandler, mWifiNative);
276 when(mWifiNative.scan(any(Set.class), any(Set.class))).thenReturn(true);
307 InOrder order = inOrder(eventHandler, mWifiNative);
310 when(mWifiNative.scan(any(Set.class), any(Set.class))).thenReturn(true);
317 mWifiMonitor.sendMessage(mWifiNative
[all...]
H A DSupplicantWifiScannerTest.java52 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)
[all...]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
H A DApConfigUtilTest.java107 @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/
H A DWifiCountryCodeTest.java44 @Mock WifiNative mWifiNative; field in class:WifiCountryCodeTest
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...]
H A DWifiLoggerTest.java56 @Mock WifiNative mWifiNative; field in class:WifiLoggerTest
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...]
H A DWifiStateMachineTest.java326 @Mock WifiNative mWifiNative; field in class:WifiStateMachineTest
354 TestUtil.installWlanWifiNative(mWifiNative);
442 when(mWifiNative.loadDriver()).thenReturn(true);
443 when(mWifiNative.startHal()).thenReturn(true);
444 when(mWifiNative.startSupplicant(anyBoolean())).thenReturn(true);
450 when(mWifiNative.setBand(anyInt())).thenReturn(true);
451 when(mWifiNative.setDeviceName(anyString())).thenReturn(true);
452 when(mWifiNative.setManufacturer(anyString())).thenReturn(true);
453 when(mWifiNative.setModelName(anyString())).thenReturn(true);
454 when(mWifiNative
[all...]
H A DRttServiceTest.java62 WifiNative mWifiNative; field in class:RttServiceTest
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
[all...]
H A DWifiNativeTest.java116 private WifiNative mWifiNative; field in class:WifiNativeTest
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
[all...]
H A DWifiConfigManagerTest.java134 @Mock private WifiNative mWifiNative; field in class:WifiConfigManagerTest
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, neve
[all...]
H A DSoftApManagerTest.java64 @Mock WifiNative mWifiNative; field in class:SoftApManagerTest
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)))
H A DWifiConfigStoreTest.java158 @Mock private WifiNative mWifiNative; field in class:WifiConfigStoreTest
168 mWifiConfigStore = new WifiConfigStore(mContext, mWifiNative, mMockKeyStore.createMock(),
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiConfigStore.java98 private final WifiNative mWifiNative; field in class:WifiConfigStore
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
[all...]
H A DWifiCountryCode.java30 private final WifiNative mWifiNative; field in class:WifiCountryCode
48 mWifiNative = wifiNative;
206 if (mWifiNative.setCountryCode(country)) {
H A DSoftApManager.java47 private final WifiNative mWifiNative; field in class:SoftApManager
79 mWifiNative = wifiNative;
84 mInterfaceName = mWifiNative.getInterfaceName();
128 mWifiNative, mCountryCode, mAllowed2GChannels, localConfig);
140 if (!mWifiNative.setCountryCodeHal(mCountryCode.toUpperCase(Locale.ROOT))
H A DWifiLogger.java106 private final WifiNative mWifiNative; field in class:WifiLogger
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
[all...]
H A DWifiStateMachine.java189 private WifiNative mWifiNative; field in class:WifiStateMachine
1014 mWifiNative = WifiNative.getWlanNativeInterface();
1018 mWifiNative.initContext(mContext);
1019 mInterfaceName = mWifiNative.getInterfaceName();
1030 mWifiConfigManager = mFacade.makeWifiConfigManager(context, mWifiNative, facade,
1039 mWifiLogger = facade.makeRealLogger(mContext, this, mWifiNative, mBuildProperties);
1318 mWifiNative.setSupplicantLogLevel("DEBUG");
1320 mWifiNative.setSupplicantLogLevel("INFO");
1338 mWifiNative.enableVerboseLogging(mVerboseLoggingLevel);
1413 return mWifiNative
[all...]
H A DRttService.java121 private final WifiNative mWifiNative; field in class:RttService.RttServiceImpl
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
[all...]
H A DWifiMonitor.java533 private final WifiNative mWifiNative; field in class:WifiMonitor
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();
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
H A DWifiP2pServiceImpl.java548 private WifiNative mWifiNative = WifiNative.getP2pNativeInterface(); field in class:WifiP2pServiceImpl.P2pStateMachine
565 mWifiNative.removeNetwork(netId);
566 mWifiNative.saveConfig();
606 String interfaceName = mWifiNative.getInterfaceName();
854 mWifiNative.p2pGroupRemove(mGroup.getInterface());
1009 mNwService.setInterfaceUp(mWifiNative.getInterfaceName());
1015 mWifiMonitor.startMonitoring(mWifiNative.getInterfaceName());
1081 mWifiMonitor.stopMonitoring(mWifiNative.getInterfaceName());
1112 mWifiNative.p2pStopFind();
1117 mWifiNative
[all...]

Completed in 259 milliseconds