HomeSort by relevance Sort by last modified time
    Searched refs:mWifiNative (Results 1 - 24 of 24) sorted by null

  /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/
WifiLoggerTest.java 53 @Mock WifiNative mWifiNative;
82 when(mWifiNative.getRingBufferStatus()).thenReturn(ringBufferStatuses);
83 when(mWifiNative.readKernelLog()).thenReturn("");
88 mWifiLogger = new WifiLogger(mWsm, mWifiNative, mBuildProperties);
89 mWifiNative.enableVerboseLogging(0);
97 verify(mWifiNative).setLoggingEventHandler(anyObject());
109 when(mWifiNative.setLoggingEventHandler(anyObject())).thenReturn(false);
111 verify(mWifiNative).setLoggingEventHandler(anyObject());
112 reset(mWifiNative);
114 when(mWifiNative.setLoggingEventHandler(anyObject())).thenReturn(true)
    [all...]
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...]
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...]
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...]
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 66 @Mock WifiNative mWifiNative;
86 when(mWifiNative.getInterfaceName()).thenReturn(TEST_INTERFACE_NAME);
94 mWifiNative,
185 when(mWifiNative.isHalStarted()).thenReturn(false);
186 when(mWifiNative.setCountryCodeHal(TEST_COUNTRY_CODE.toUpperCase(Locale.ROOT)))
WifiConfigStoreTest.java 157 @Mock private WifiNative mWifiNative;
166 mWifiConfigStore = new WifiConfigStore(mWifiNative, mMockKeyStore.createMock(), null,
  /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/service/java/com/android/server/wifi/
WifiConfigStore.java 95 private final WifiNative mWifiNative;
104 mWifiNative = wifiNative;
227 String value = mWifiNative.getNetworkVariable(netId, varName);
262 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.ssidVarName);
275 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.bssidVarName);
282 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.priorityVarName);
291 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.hiddenSSIDVarName);
300 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.pmfVarName);
309 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.wepTxKeyIdxVarName);
319 value = mWifiNative.getNetworkVariable(netId
    [all...]
WifiCountryCode.java 27 private final WifiNative mWifiNative;
45 mWifiNative = wifiNative;
186 if (mWifiNative.setCountryCode(country)) {
WifiLogger.java 104 private final WifiNative mWifiNative;
112 mWifiNative = wifiNative;
119 mFirmwareVersion = mWifiNative.getFirmwareVersion();
120 mDriverVersion = mWifiNative.getDriverVersion();
121 mSupportedFeatureSet = mWifiNative.getSupportedLoggerFeatureSet();
124 mIsLoggingEventHandlerRegistered = mWifiNative.setLoggingEventHandler(mHandler);
148 if (!mWifiNative.startPktFateMonitoring()) {
174 if (!mWifiNative.resetLogHandler()) {
403 mRingBuffers = mWifiNative.getRingBufferStatus();
454 if (mWifiNative.startLoggingRingBuffer
    [all...]
WifiStateMachine.java 187 private WifiNative mWifiNative;
    [all...]
SoftApManager.java 54 private final WifiNative mWifiNative;
101 mWifiNative = wifiNative;
107 mInterfaceName = mWifiNative.getInterfaceName();
166 mWifiNative, mCountryCode, mAllowed2GChannels, localConfig);
178 if (!mWifiNative.setCountryCodeHal(mCountryCode.toUpperCase(Locale.ROOT))
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()) {
635 mWifiNative.stopSupplicant();
647 mWifiNative.killSupplicant(p2pSupported);
726 private final LocalLog mLocalLog = mWifiNative.getLocalLog();
742 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...]

Completed in 385 milliseconds