/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiLoggerTest.java | 53 @Mock WifiNative mWifiNative; field in WifiLoggerTest 82 when(mWifiNative.getRingBufferStatus()).thenReturn(ringBufferStatuses); in setUp() 83 when(mWifiNative.readKernelLog()).thenReturn(""); in setUp() 88 mWifiLogger = new WifiLogger(mWsm, mWifiNative, mBuildProperties); in setUp() 89 mWifiNative.enableVerboseLogging(0); in setUp() 97 verify(mWifiNative).setLoggingEventHandler(anyObject()); in startLoggingRegistersLogEventHandler() 109 when(mWifiNative.setLoggingEventHandler(anyObject())).thenReturn(false); in startLoggingRegistersLogEventHandlerIfPriorAttemptFailed() 111 verify(mWifiNative).setLoggingEventHandler(anyObject()); in startLoggingRegistersLogEventHandlerIfPriorAttemptFailed() 112 reset(mWifiNative); in startLoggingRegistersLogEventHandlerIfPriorAttemptFailed() 114 when(mWifiNative.setLoggingEventHandler(anyObject())).thenReturn(true); in startLoggingRegistersLogEventHandlerIfPriorAttemptFailed() [all …]
|
D | WifiCountryCodeTest.java | 44 @Mock WifiNative mWifiNative; field in WifiCountryCodeTest 54 when(mWifiNative.setCountryCode(anyString())).thenReturn(true); in setUp() 57 mWifiNative, in setUp() 73 verify(mWifiNative).setCountryCode(anyString()); in useDefaultCountryCode() 89 verify(mWifiNative).setCountryCode(anyString()); in useTelephonyCountryCode() 106 verify(mWifiNative, times(2)).setCountryCode(anyString()); in setTelephonyCountryCodeAfterSupplicantStarts() 126 verify(mWifiNative, times(2)).setCountryCode(anyString()); in setTelephonyCountryCodeAfterL2Connected() 148 verify(mWifiNative, times(2)).setCountryCode(anyString()); in resetCountryCodeWhenSIMCardRemoved() 170 verify(mWifiNative, times(2)).setCountryCode(anyString()); in resetCountryCodeWhenAirplaneModeEnabled() 182 mWifiNative, in usePersistentCountryCode() [all …]
|
D | RttServiceTest.java | 62 WifiNative mWifiNative; field in RttServiceTest 72 TestUtil.installWlanWifiNative(mWifiNative); in setUp() 105 verifyNoMoreInteractions(mWifiNative); in sendRangingRequestFailed() 127 verify(mWifiNative).enableRttResponder(anyInt()); in sendEnableResponderSucceed() 146 when(mWifiNative.enableRttResponder(anyInt())).thenReturn(config); in sendEnableResponder() 147 when(mWifiNative.getMacAddress()).thenReturn(MAC); in sendEnableResponder() 159 when(mWifiNative.disableRttResponder()).thenReturn(success); in sendDisableResponder() 200 verify(mWifiNative, times(1)).enableRttResponder(anyInt()); in testEnableResponderMultiClient() 211 verify(mWifiNative).disableRttResponder(); in testDisableResponderSuccess() 221 when(mWifiNative.enableRttResponder(anyInt())).thenReturn(null); in testEnableResponderFailure() [all …]
|
D | WifiStateMachineTest.java | 316 @Mock WifiNative mWifiNative; field in WifiStateMachineTest 344 TestUtil.installWlanWifiNative(mWifiNative); in setUp() 432 when(mWifiNative.loadDriver()).thenReturn(true); in loadComponents() 433 when(mWifiNative.startHal()).thenReturn(true); in loadComponents() 434 when(mWifiNative.startSupplicant(anyBoolean())).thenReturn(true); in loadComponents() 440 when(mWifiNative.setBand(anyInt())).thenReturn(true); in loadComponents() 441 when(mWifiNative.setDeviceName(anyString())).thenReturn(true); in loadComponents() 442 when(mWifiNative.setManufacturer(anyString())).thenReturn(true); in loadComponents() 443 when(mWifiNative.setModelName(anyString())).thenReturn(true); in loadComponents() 444 when(mWifiNative.setModelNumber(anyString())).thenReturn(true); in loadComponents() [all …]
|
D | WifiConfigManagerTest.java | 134 @Mock private WifiNative mWifiNative; field in WifiConfigManagerTest 167 mWifiConfigManager = new WifiConfigManager(mContext, mWifiNative, mFrameworkFacade, mClock, in setUp() 228 when(mWifiNative.setNetworkVariable(anyInt(), anyString(), anyString())).thenReturn(true); in addNetwork() 229 when(mWifiNative.setNetworkExtra(anyInt(), anyString(), (Map<String, String>) anyObject())) in addNetwork() 236 when(mWifiNative.addNetwork()).thenReturn(networkId); in addNetwork() 237 when(mWifiNative.getNetworkVariable(networkId, WifiConfiguration.ssidVarName)) in addNetwork() 408 reset(mWifiNative); in testSelectNetwork() 409 when(mWifiNative.selectNetwork(config.networkId)).thenReturn(true); in testSelectNetwork() 417 verify(mWifiNative, never()).selectNetwork(anyInt()); in testSelectNetwork() 418 verify(mWifiNative, never()).enableNetwork(anyInt()); in testSelectNetwork() [all …]
|
D | WifiNativeTest.java | 116 private WifiNative mWifiNative; field in WifiNativeTest 123 mWifiNative = spy(wifiNativeConstructor.newInstance("test", true)); in setUp() 131 when(mWifiNative.setNetworkVariable(anyInt(), anyString(), anyString())).thenReturn(true); in testSetNetworkExtra() 132 assertTrue(mWifiNative.setNetworkExtra(NETWORK_ID, NETWORK_EXTRAS_VARIABLE, in testSetNetworkExtra() 134 verify(mWifiNative).setNetworkVariable(NETWORK_ID, NETWORK_EXTRAS_VARIABLE, in testSetNetworkExtra() 143 when(mWifiNative.getNetworkVariable(NETWORK_ID, NETWORK_EXTRAS_VARIABLE)) in testGetNetworkExtra() 146 mWifiNative.getNetworkExtra(NETWORK_ID, NETWORK_EXTRAS_VARIABLE); in testGetNetworkExtra() 402 assertFalse(mWifiNative.isHalStarted()); in testStartPktFateMonitoringReturnsFalseWhenHalIsNotStarted() 403 assertFalse(mWifiNative.startPktFateMonitoring()); in testStartPktFateMonitoringReturnsFalseWhenHalIsNotStarted() 412 assertFalse(mWifiNative.isHalStarted()); in testGetTxPktFatesReturnsErrorWhenHalIsNotStarted() [all …]
|
D | SoftApManagerTest.java | 66 @Mock WifiNative mWifiNative; field in SoftApManagerTest 86 when(mWifiNative.getInterfaceName()).thenReturn(TEST_INTERFACE_NAME); in setUp() 94 mWifiNative, in setUp() 185 when(mWifiNative.isHalStarted()).thenReturn(false); in startSoftApAndVerifyEnabled() 186 when(mWifiNative.setCountryCodeHal(TEST_COUNTRY_CODE.toUpperCase(Locale.ROOT))) in startSoftApAndVerifyEnabled()
|
D | WifiConfigStoreTest.java | 157 @Mock private WifiNative mWifiNative; field in WifiConfigStoreTest 166 mWifiConfigStore = new WifiConfigStore(mWifiNative, mMockKeyStore.createMock(), null, in setUp()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
D | HalWifiScannerImpl.java | 38 private final WifiNative mWifiNative; field in HalWifiScannerImpl 44 mWifiNative = wifiNative; in HalWifiScannerImpl() 66 return mWifiNative.getScanCapabilities(capabilities); in getScanCapabilities() 92 return mWifiNative.startScan(settings, eventHandler); in startBatchedScan() 97 mWifiNative.stopScan(); in stopBatchedScan() 102 mWifiNative.pauseScan(); in pauseBatchedScan() 107 mWifiNative.restartScan(); in restartBatchedScan() 112 return mWifiNative.getScanResults(flush); in getLatestBatchedScanResults() 119 return mWifiNative.setPnoList(settings, eventHandler); in setHwPnoList() 128 return mWifiNative.resetPnoList(); in resetHwPnoList() [all …]
|
D | HalChannelHelper.java | 31 private final WifiNative mWifiNative; field in HalChannelHelper 34 mWifiNative = wifiNative; in HalChannelHelper() 42 int[] channels24G = mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_24_GHZ); in updateChannels() 44 int[] channels5G = mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_5_GHZ); in updateChannels() 46 int[] channelsDfs = mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_5_GHZ_DFS_ONLY); in updateChannels()
|
D | SupplicantWifiScannerImpl.java | 65 private final WifiNative mWifiNative; field in SupplicantWifiScannerImpl 137 mWifiNative = wifiNative; in SupplicantWifiScannerImpl() 142 mHwPnoDebouncer = new HwPnoDebouncer(mWifiNative, mAlarmManager, mEventHandler, mClock); in SupplicantWifiScannerImpl() 148 WifiMonitor.getInstance().registerHandler(mWifiNative.getInterfaceName(), in SupplicantWifiScannerImpl() 150 WifiMonitor.getInstance().registerHandler(mWifiNative.getInterfaceName(), in SupplicantWifiScannerImpl() 436 boolean success = mWifiNative.scan(freqs, hiddenNetworkIdSet); in processPendingScans() 538 ArrayList<ScanDetail> nativeResults = mWifiNative.getScanResults(); in pollLatestScanData() 662 if (!mWifiNative.setNetworkVariable(network.networkId, in setNetworkPriorities() 668 if (!mWifiNative.enableNetworkWithoutConnect(network.networkId)) { in setNetworkPriorities() 1007 private final WifiNative mWifiNative; field in SupplicantWifiScannerImpl.HwPnoDebouncer [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | SupplicantPnoScannerTest.java | 62 @Mock WifiNative mWifiNative; field in SupplicantPnoScannerTest 76 when(mWifiNative.getInterfaceName()).thenReturn("a_test_interface_name"); in setup() 95 InOrder order = inOrder(pnoEventHandler, mWifiNative); in startHwDisconnectedPnoScan() 116 InOrder order = inOrder(eventHandler, mWifiNative); in pauseResumeHwDisconnectedPnoScanForSingleScan() 127 order = inOrder(pnoEventHandler, mWifiNative); in pauseResumeHwDisconnectedPnoScanForSingleScan() 186 InOrder order = inOrder(eventHandler, mWifiNative); in delayedHwDisconnectedPnoScanFailure() 198 order = inOrder(pnoEventHandler, mWifiNative); in delayedHwDisconnectedPnoScanFailure() 199 when(mWifiNative.setPnoScan(true)).thenReturn(false); in delayedHwDisconnectedPnoScanFailure() 224 InOrder order = inOrder(scanEventHandler, mWifiNative); in doSuccessfulSwPnoScanTest() 237 new SupplicantWifiScannerImpl(mContext, mWifiNative, mLooper.getLooper(), mClock); in createScannerWithHwPnoScanSupport() [all …]
|
D | BaseWifiScannerImplTest.java | 65 @Mock WifiNative mWifiNative; field in BaseWifiScannerImplTest 83 when(mWifiNative.getInterfaceName()).thenReturn("a_test_interface_name"); in setUpBase() 215 when(mWifiNative.scan(any(Set.class), any(Set.class))).thenReturn(true); in overlappingSingleScanFails() 235 InOrder order = inOrder(eventHandler, mWifiNative); in singleScanFailOnExecute() 238 when(mWifiNative.scan(any(Set.class), any(Set.class))).thenReturn(false); in singleScanFailOnExecute() 265 InOrder order = inOrder(eventHandler, mWifiNative); in singleScanFailOnTimeout() 268 when(mWifiNative.scan(any(Set.class), any(Set.class))).thenReturn(true); in singleScanFailOnTimeout() 299 InOrder order = inOrder(eventHandler, mWifiNative); in singleScanFailOnFailedEvent() 302 when(mWifiNative.scan(any(Set.class), any(Set.class))).thenReturn(true); in singleScanFailOnFailedEvent() 309 mWifiMonitor.sendMessage(mWifiNative.getInterfaceName(), WifiMonitor.SCAN_FAILED_EVENT); in singleScanFailOnFailedEvent() [all …]
|
D | SupplicantWifiScannerTest.java | 52 mScanner = new SupplicantWifiScannerImpl(mContext, mWifiNative, in setup() 319 InOrder order = inOrder(eventHandler, mWifiNative); in backgroundScanStartFailed() 322 when(mWifiNative.scan(any(Set.class), any(Set.class))).thenReturn(false); in backgroundScanStartFailed() 354 InOrder order = inOrder(eventHandler, mWifiNative); in backgroundScanEventFailed() 357 when(mWifiNative.scan(any(Set.class), any(Set.class))).thenReturn(true); in backgroundScanEventFailed() 401 InOrder order = inOrder(eventHandler, mWifiNative); in pauseWhileWaitingToStartNextScanAndResumeScan() 404 when(mWifiNative.scan(any(Set.class), any(Set.class))).thenReturn(true); in pauseWhileWaitingToStartNextScanAndResumeScan() 455 InOrder order = inOrder(eventHandler, mWifiNative); in pauseWhileScanningAndResumeScan() 458 when(mWifiNative.scan(any(Set.class), any(Set.class))).thenReturn(true); in pauseWhileScanningAndResumeScan() 465 order.verify(mWifiNative).scan(eq(expectedPeriods[0].getScanFreqs()), any(Set.class)); in pauseWhileScanningAndResumeScan() [all …]
|
D | HalWifiScannerTest.java | 33 setupMockChannels(mWifiNative, in setUp() 37 mScanner = new HalWifiScannerImpl(mContext, mWifiNative, mLooper.getLooper(), mClock); in setUp()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | ApConfigUtilTest.java | 107 @Mock WifiNative mWifiNative; field in ApConfigUtilTest 188 when(mWifiNative.isHalStarted()).thenReturn(false); in updateApChannelConfigWithoutHal() 191 mWifiNative, TEST_COUNTRY_CODE, mAllowed2GChannels, config)); in updateApChannelConfigWithoutHal() 205 when(mWifiNative.isHalStarted()).thenReturn(true); in updateApChannelConfig5GBandNoCountryCode() 208 mWifiNative, null, mAllowed2GChannels, config)); in updateApChannelConfig5GBandNoCountryCode() 219 when(mWifiNative.isHalStarted()).thenReturn(true); in updateApChannelConfigWithChannelSpecified() 222 mWifiNative, TEST_COUNTRY_CODE, mAllowed2GChannels, config)); in updateApChannelConfigWithChannelSpecified() 235 when(mWifiNative.isHalStarted()).thenReturn(true); in updateApChannelConfigWith5GBandNoChannelAllowed() 236 when(mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_5_GHZ)) in updateApChannelConfigWith5GBandNoChannelAllowed() 238 when(mWifiNative.isGetChannelsForBandSupported()).thenReturn(true); in updateApChannelConfigWith5GBandNoChannelAllowed() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiConfigStore.java | 95 private final WifiNative mWifiNative; field in WifiConfigStore 104 mWifiNative = wifiNative; in WifiConfigStore() 227 String value = mWifiNative.getNetworkVariable(netId, varName); in readNetworkBitsetVariable() 262 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.ssidVarName); in readNetworkVariables() 275 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.bssidVarName); in readNetworkVariables() 282 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.priorityVarName); in readNetworkVariables() 291 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.hiddenSSIDVarName); in readNetworkVariables() 300 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.pmfVarName); in readNetworkVariables() 309 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.wepTxKeyIdxVarName); in readNetworkVariables() 319 value = mWifiNative.getNetworkVariable(netId, in readNetworkVariables() [all …]
|
D | WifiLogger.java | 104 private final WifiNative mWifiNative; field in WifiLogger 112 mWifiNative = wifiNative; in WifiLogger() 119 mFirmwareVersion = mWifiNative.getFirmwareVersion(); in startLogging() 120 mDriverVersion = mWifiNative.getDriverVersion(); in startLogging() 121 mSupportedFeatureSet = mWifiNative.getSupportedLoggerFeatureSet(); in startLogging() 124 mIsLoggingEventHandlerRegistered = mWifiNative.setLoggingEventHandler(mHandler); in startLogging() 148 if (!mWifiNative.startPktFateMonitoring()) { in startLogging() 174 if (!mWifiNative.resetLogHandler()) { in stopLogging() 403 mRingBuffers = mWifiNative.getRingBufferStatus(); in fetchRingBuffers() 454 if (mWifiNative.startLoggingRingBuffer( in startLoggingRingBuffer() [all …]
|
D | WifiStateMachine.java | 187 private WifiNative mWifiNative; field in WifiStateMachine 1008 mWifiNative = WifiNative.getWlanNativeInterface(); in WifiStateMachine() 1012 mWifiNative.initContext(mContext); in WifiStateMachine() 1013 mInterfaceName = mWifiNative.getInterfaceName(); in WifiStateMachine() 1024 mWifiConfigManager = mFacade.makeWifiConfigManager(context, mWifiNative, facade, in WifiStateMachine() 1033 mWifiLogger = facade.makeRealLogger(this, mWifiNative, mBuildProperties); in WifiStateMachine() 1305 mWifiNative.setSupplicantLogLevel("DEBUG"); in updateLoggingLevel() 1311 mWifiNative.setSupplicantLogLevel("INFO"); in updateLoggingLevel() 1318 mWifiNative.enableVerboseLogging(mVerboseLoggingLevel); in updateLoggingLevel() 1393 return mWifiNative.setScanningMacOui(ouiBytes); in setRandomMacOui() [all …]
|
D | WifiCountryCode.java | 27 private final WifiNative mWifiNative; field in WifiCountryCode 45 mWifiNative = wifiNative; in WifiCountryCode() 186 if (mWifiNative.setCountryCode(country)) { in setCountryCodeNative()
|
D | RttService.java | 121 private final WifiNative mWifiNative; field in RttService.RttServiceImpl 129 mWifiNative = WifiNative.getWlanNativeInterface(); in RttServiceImpl() 370 mWifiNative.enableRttResponder(MAX_RESPONDER_DURATION_SECONDS); in processMessage() 375 mResponderConfig.macAddress = mWifiNative.getMacAddress(); in processMessage() 401 mWifiNative.cancelRtt(mOutstandingRequest.params); in processMessage() 440 mWifiNative.cancelRtt(mOutstandingRequest.params); in processMessage() 487 if (!mWifiNative.disableRttResponder()) { in processMessage() 566 if (mWifiNative.requestRtt(request.params, mEventHandler)) { in issueNextRequest() 583 return mWifiNative.getRttCapabilities(); in getRttCapabilities()
|
D | SoftApManager.java | 54 private final WifiNative mWifiNative; field in SoftApManager 101 mWifiNative = wifiNative; in SoftApManager() 107 mInterfaceName = mWifiNative.getInterfaceName(); in SoftApManager() 166 mWifiNative, mCountryCode, mAllowed2GChannels, localConfig); in startSoftAp() 178 if (!mWifiNative.setCountryCodeHal(mCountryCode.toUpperCase(Locale.ROOT)) in startSoftAp()
|
D | WifiMonitor.java | 533 private final WifiNative mWifiNative; field in WifiMonitor 535 mWifiNative = WifiNative.getWlanNativeInterface(); in WifiMonitor() 595 if (mWifiNative.connectToSupplicant()) { in ensureConnectedLocked() 635 mWifiNative.stopSupplicant(); in stopSupplicant() 647 mWifiNative.killSupplicant(p2pSupported); in killSupplicant() 726 private final LocalLog mLocalLog = mWifiNative.getLocalLog(); 742 String eventStr = mWifiNative.waitForEvent(); in run()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImpl.java | 548 private WifiNative mWifiNative = WifiNative.getP2pNativeInterface(); field in WifiP2pServiceImpl.P2pStateMachine 565 mWifiNative.removeNetwork(netId); 566 mWifiNative.saveConfig(); 606 String interfaceName = mWifiNative.getInterfaceName(); in P2pStateMachine() 854 mWifiNative.p2pGroupRemove(mGroup.getInterface()); in processMessage() 1009 mNwService.setInterfaceUp(mWifiNative.getInterfaceName()); in processMessage() 1015 mWifiMonitor.startMonitoring(mWifiNative.getInterfaceName()); in processMessage() 1081 mWifiMonitor.stopMonitoring(mWifiNative.getInterfaceName()); in processMessage() 1112 mWifiNative.p2pStopFind(); in processMessage() 1117 mWifiNative.p2pFind(DISCOVER_TIMEOUT_S); in processMessage() [all …]
|