Home
last modified time | relevance | path

Searched refs:mWifiNative (Results 1 – 25 of 55) sorted by relevance

123

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DSarManagerTest.java73 @Mock WifiNative mWifiNative; field in SarManagerTest
83 when(mWifiNative.selectTxPowerScenario(any(SarInfo.class))).thenReturn(true); in setUp()
124 mWifiNative); in createSarManager()
172 InOrder inOrder = inOrder(mWifiNative); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook()
176 captureSarInfo(mWifiNative); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook()
178 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook()
183 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook()
197 InOrder inOrder = inOrder(mWifiNative); in testSarMgr_enabledTxPowerScenario_offHook_wifiOn()
204 captureSarInfo(mWifiNative); in testSarMgr_enabledTxPowerScenario_offHook_wifiOn()
206 inOrder.verify(mWifiNative).selectTxPowerScenario(eq(mSarInfo)); in testSarMgr_enabledTxPowerScenario_offHook_wifiOn()
[all …]
DWifiDiagnosticsTest.java64 @Mock WifiNative mWifiNative; field in WifiDiagnosticsTest
118 when(mWifiNative.getRingBufferStatus()).thenReturn(ringBufferStatuses); in setUp()
150 mContext, mWifiInjector, mWifiNative, mBuildProperties, mLastMileLogger, mClock); in setUp()
151 mWifiNative.enableVerboseLogging(0); in setUp()
159 verify(mWifiNative).setLoggingEventHandler(anyObject()); in startLoggingRegistersLogEventHandler()
171 when(mWifiNative.setLoggingEventHandler(anyObject())).thenReturn(false); in startLoggingRegistersLogEventHandlerIfPriorAttemptFailed()
174 verify(mWifiNative).setLoggingEventHandler(anyObject()); in startLoggingRegistersLogEventHandlerIfPriorAttemptFailed()
176 reset(mWifiNative); in startLoggingRegistersLogEventHandlerIfPriorAttemptFailed()
178 when(mWifiNative.setLoggingEventHandler(anyObject())).thenReturn(true); in startLoggingRegistersLogEventHandlerIfPriorAttemptFailed()
181 verify(mWifiNative).setLoggingEventHandler(anyObject()); in startLoggingRegistersLogEventHandlerIfPriorAttemptFailed()
[all …]
DWifiNativeTest.java240 private WifiNative mWifiNative; field in WifiNativeTest
264 mWifiNative = new WifiNative( in setUp()
268 mWifiNative.initialize(); in setUp()
553 assertFalse(mWifiNative.isHalStarted()); in testStartPktFateMonitoringReturnsFalseWhenHalIsNotStarted()
554 assertFalse(mWifiNative.startPktFateMonitoring(WIFI_IFACE_NAME)); in testStartPktFateMonitoringReturnsFalseWhenHalIsNotStarted()
563 assertFalse(mWifiNative.isHalStarted()); in testGetTxPktFatesReturnsErrorWhenHalIsNotStarted()
564 assertFalse(mWifiNative.getTxPktFates(WIFI_IFACE_NAME, fateReports)); in testGetTxPktFatesReturnsErrorWhenHalIsNotStarted()
573 assertFalse(mWifiNative.isHalStarted()); in testGetRxPktFatesReturnsErrorWhenHalIsNotStarted()
574 assertFalse(mWifiNative.getRxPktFates(WIFI_IFACE_NAME, fateReports)); in testGetRxPktFatesReturnsErrorWhenHalIsNotStarted()
589 assertEquals(null, mWifiNative.getDriverStateDump()); in testGetDriverStateDumpReturnsNullWhenHalIsNotStarted()
[all …]
DLinkProbeManagerTest.java64 @Mock private WifiNative mWifiNative; field in LinkProbeManagerTest
93 mLinkProbeManager = new LinkProbeManager(mClock, mWifiNative, mWifiMetrics, in initLinkProbeManager()
109 verify(mWifiNative, never()).probeLink(any(), any(), any(), anyInt()); in testLinkProbeTriggeredAndAcked()
127 verify(mWifiNative).probeLink(eq(TEST_IFACE_NAME), any(), callbackCaptor.capture(), in testLinkProbeTriggeredAndAcked()
153 verify(mWifiNative, never()).probeLink(any(), any(), any(), anyInt()); in testLinkProbeTriggeredAndFailed()
170 verify(mWifiNative).probeLink(eq(TEST_IFACE_NAME), any(), callbackCaptor.capture(), in testLinkProbeTriggeredAndFailed()
196 verifyNoMoreInteractions(mWifiNative); in testLinkProbeNotTriggeredTooFrequently()
211 verify(mWifiNative, never()).probeLink(any(), any(), any(), anyInt()); in testLinkProbeNotTriggeredWhenTxSucceeded()
219 verify(mWifiNative, never()).probeLink(any(), any(), any(), anyInt()); in testLinkProbeNotTriggeredWhenTxSucceeded()
231 verify(mWifiNative, never()).probeLink(any(), any(), any(), anyInt()); in testLinkProbeNotTriggeredWhenTxSucceeded()
[all …]
DWifiNativeInterfaceManagementTest.java107 private WifiNative mWifiNative; field in WifiNativeInterfaceManagementTest
160 mWifiNative = new WifiNative( in setUp()
164 mWifiNative.initialize(); in setUp()
165 mWifiNative.registerStatusListener(mStatusListener); in setUp()
189 assertEquals(IFACE_NAME_0, mWifiNative.getClientInterfaceName()); in testSetupClientInterface()
200 assertEquals(IFACE_NAME_0, mWifiNative.getClientInterfaceName()); in testSetupClientInterfaceForScan()
213 assertNull(mWifiNative.getClientInterfaceName()); in testSetupSoftApInterface()
224 assertEquals(IFACE_NAME_0, mWifiNative.getClientInterfaceName()); in testSetupAndTeardownClientInterface()
237 assertEquals(IFACE_NAME_0, mWifiNative.getClientInterfaceName()); in testSetupAndTeardownClientInterfaceForScan()
253 assertNull(mWifiNative.getClientInterfaceName()); in testSetupAndTeardownSoftApInterface()
[all …]
DMboOceControllerTest.java47 @Mock WifiNative mWifiNative; field in MboOceControllerTest
59 mMboOceController = new MboOceController(mTelephonyManager, mWifiNative); in setUp()
61 when(mWifiNative.getClientInterfaceName()).thenReturn(INTERFACE_NAME); in setUp()
77 when(mWifiNative.getSupportedFeatureSet(INTERFACE_NAME)) in enableMboOceController()
113 InOrder inOrder = inOrder(mWifiNative); in testMboEnabledUpdateCellularDataStateChangeEvents()
118 verify(mWifiNative).setMboCellularDataStatus(eq(INTERFACE_NAME), eq(true)); in testMboEnabledUpdateCellularDataStateChangeEvents()
121 verify(mWifiNative).setMboCellularDataStatus(eq(INTERFACE_NAME), eq(false)); in testMboEnabledUpdateCellularDataStateChangeEvents()
DDppManagerTest.java113 WifiNative mWifiNative; field in DppManagerTest
141 when(mWifiNative.addDppPeerUri(anyString(), anyString())) in setUp()
143 when(mWifiNative.removeDppUri(anyString(), anyInt())) in setUp()
147 when(mWifiNative.getClientInterfaceName()).thenReturn(TEST_INTERFACE_NAME); in setUp()
150 when(mWifiNative.startDppEnrolleeInitiator(anyString(), anyInt(), anyInt())).thenReturn( in setUp()
154 when(mWifiNative.startDppConfiguratorInitiator(anyString(), anyInt(), anyInt(), anyString(), in setUp()
159 DppManager dppManger = new DppManager(new Handler(mLooper.getLooper()), mWifiNative, in createDppManager()
201 when(mWifiNative.addDppPeerUri(anyString(), anyString())).thenReturn(-1); in testStartDppAsConfiguratorInitiatorFailAddPeer()
221 when(mWifiNative.addDppPeerUri(anyString(), anyString())).thenReturn(-1); in testStartDppAsEnrolleeInitiatorFailAddPeer()
249 when(mWifiNative.startDppConfiguratorInitiator(anyString(), anyInt(), anyInt(), anyString(), in testStartDppAsConfiguratorInitiatorFailStart()
[all …]
DWifiCountryCodeTest.java62 @Mock WifiNative mWifiNative; field in WifiCountryCodeTest
74 when(mWifiNative.setCountryCode(any(), anyString())).thenReturn(true); in setUp()
88 mWifiNative, in createWifiCountryCode()
111 verify(mWifiNative).setCountryCode(any(), anyString()); in useDefaultCountryCode()
126 verify(mWifiNative).setCountryCode(any(), anyString()); in useTelephonyCountryCodeOnBootup()
142 verify(mWifiNative).setCountryCode(any(), anyString()); in useTelephonyCountryCodeOnChange()
159 verify(mWifiNative, times(2)).setCountryCode(any(), anyString()); in telephonyCountryCodeChangeAfterSupplicantStarts()
179 verify(mWifiNative, times(2)).setCountryCode(any(), anyString()); in telephonyCountryCodeChangeAfterL2Connected()
241 verify(mWifiNative).setCountryCode(any(), eq(oemCountryCodeUpper)); in useUSLocaleForConversionToUpperCase()
245 verify(mWifiNative).setCountryCode(any(), eq(telephonyCountryCodeUpper)); in useUSLocaleForConversionToUpperCase()
DWifiConnectivityHelperTest.java49 mWifiConnectivityHelper = new WifiConnectivityHelper(mWifiNative); in setUp()
59 @Mock private WifiNative mWifiNative; field in WifiConnectivityHelperTest
68 when(mWifiNative.getSupportedFeatureSet(any())) in setupWifiNative()
77 }}).when(mWifiNative).getRoamingCapabilities(any(), anyObject()); in setupWifiNative()
79 when(mWifiNative.configureRoaming(any(), anyObject())).thenReturn(true); in setupWifiNative()
123 when(mWifiNative.getSupportedFeatureSet(any())) in returnFirmwareRoamingNotSupported()
152 }}).when(mWifiNative).getRoamingCapabilities(any(), anyObject()); in verifyFirmwareRoamingCapabilityWithFailureNativeCall()
174 }}).when(mWifiNative).getRoamingCapabilities(any(), anyObject()); in verifyFirmwareRoamingCapabilityWithInvalidMaxBssidBlacklistSize()
196 }}).when(mWifiNative).getRoamingCapabilities(any(), anyObject()); in verifyFirmwareRoamingCapabilityWithInvalidMaxSsidWhitelistSize()
264 verify(mWifiNative).configureRoaming(any(), mRoamingConfigCaptor.capture()); in verifySetFirmwareRoamingConfigurationWithEmptyBlacklistAndWhitelist()
DClientModeManagerTest.java92 @Mock WifiNative mWifiNative; field in ClientModeManagerTest
232 return new ClientModeManager(mContext, mLooper.getLooper(), mClock, mWifiNative, mListener, in createClientModeManager()
237 when(mWifiNative.setupInterfaceForClientInScanMode(any())) in startClientInScanOnlyModeAndVerifyEnabled()
242 verify(mWifiNative).setupInterfaceForClientInScanMode( in startClientInScanOnlyModeAndVerifyEnabled()
258 when(mWifiNative.setupInterfaceForClientInScanMode(any())) in startClientInConnectModeAndVerifyEnabled()
260 when(mWifiNative.switchClientInterfaceToConnectivityMode(any())) in startClientInConnectModeAndVerifyEnabled()
265 verify(mWifiNative).setupInterfaceForClientInScanMode( in startClientInConnectModeAndVerifyEnabled()
274 verify(mWifiNative).switchClientInterfaceToConnectivityMode(TEST_INTERFACE_NAME); in startClientInConnectModeAndVerifyEnabled()
359 when(mWifiNative.switchClientInterfaceToConnectivityMode(any())) in switchFromScanOnlyModeToConnectMode()
393 when(mWifiNative.switchClientInterfaceToScanMode(any())) in switchFromConnectModeToScanOnlyMode()
[all …]
DSoftApManagerTest.java125 @Mock WifiNative mWifiNative; field in SoftApManagerTest
149 when(mWifiNative.isSetMacAddressSupported(any())).thenReturn(true); in setUp()
150 when(mWifiNative.setMacAddress(any(), any())).thenReturn(true); in setUp()
151 when(mWifiNative.startSoftAp(eq(TEST_INTERFACE_NAME), any(), any())).thenReturn(true); in setUp()
165 when(mWifiNative.setCountryCodeHal( in setUp()
168 when(mWifiNative.getFactoryMacAddress(any())).thenReturn(TEST_MAC_ADDRESS); in setUp()
195 mWifiNative, in createSoftApManager()
266 when(mWifiNative.setupInterfaceForSoftApMode(any())).thenReturn(TEST_INTERFACE_NAME); in startSoftApDefaultConfigFailedToLoad()
275 mWifiNative, in startSoftApDefaultConfigFailedToLoad()
310 when(mWifiNative.setupInterfaceForSoftApMode(any())).thenReturn(null); in testSetupForSoftApModeNullApInterfaceNameFailureIncrementsMetrics()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DWificondPnoScannerTest.java63 @Mock WifiNative mWifiNative; field in WificondPnoScannerTest
77 setupMockChannels(mWifiNative, in setup()
83 when(mWifiNative.getClientInterfaceName()).thenReturn(IFACE_NAME); in setup()
102 InOrder order = inOrder(pnoEventHandler, mWifiNative); in startHwDisconnectedPnoScan()
120 InOrder order = inOrder(pnoEventHandler, mWifiNative); in startHwDisconnectedPnoScanFailure()
123 when(mWifiNative.startPnoScan(eq(IFACE_NAME), any(WifiNative.PnoSettings.class))) in startHwDisconnectedPnoScanFailure()
126 order.verify(mWifiNative).startPnoScan(any(), any(WifiNative.PnoSettings.class)); in startHwDisconnectedPnoScanFailure()
148 when(mWifiNative.stopPnoScan(IFACE_NAME)).thenReturn(false); in ignoreHwDisconnectedPnoScanStopFailure()
151 verify(mWifiNative).stopPnoScan(IFACE_NAME); in ignoreHwDisconnectedPnoScanStopFailure()
156 InOrder order = inOrder(pnoEventHandler, mWifiNative); in ignoreHwDisconnectedPnoScanStopFailure()
[all …]
DBaseWifiScannerImplTest.java70 @Mock WifiNative mWifiNative; field in BaseWifiScannerImplTest
88 when(mWifiNative.getClientInterfaceName()).thenReturn(IFACE_NAME); in setUpBase()
246 when(mWifiNative.scan(eq(IFACE_NAME), anyInt(), any(), any(List.class))).thenReturn(true); in overlappingSingleScanFails()
264 InOrder order = inOrder(eventHandler, mWifiNative); in singleScanFailOnExecute()
267 when(mWifiNative.scan(eq(IFACE_NAME), anyInt(), any(), any(List.class))).thenReturn(false); in singleScanFailOnExecute()
292 InOrder order = inOrder(eventHandler, mWifiNative); in singleScanFailOnTimeout()
295 when(mWifiNative.scan(eq(IFACE_NAME), anyInt(), any(), any(List.class))).thenReturn(true); in singleScanFailOnTimeout()
324 InOrder order = inOrder(eventHandler, mWifiNative); in singleScanFailOnFailedEvent()
327 when(mWifiNative.scan(eq(IFACE_NAME), anyInt(), any(), any(List.class))).thenReturn(true); in singleScanFailOnFailedEvent()
379 InOrder order = inOrder(eventHandler, mWifiNative); in multipleSingleScanSuccess()
[all …]
DWificondScannerTest.java63 setupMockChannels(mWifiNative, in setup()
70 mWifiNative, mWifiMonitorSpy, new WificondChannelHelper(mWifiNative), in setup()
88 mWifiNative, mWifiMonitor, channelHelper, mLooper.getLooper(), mClock); in singleScanNotIssuedIfNoAvailableChannels()
102 verify(mWifiNative, never()).scan(any(), anyInt(), any(), any(List.class)); in singleScanNotIssuedIfNoAvailableChannels()
154 when(mWifiNative.scan(eq(IFACE_NAME), anyInt(), any(), any(List.class))).thenReturn(true); in lateScanResultsDoNotCauseSpuriousTimerCancellationOrCrash()
221 InOrder order = inOrder(eventHandler, mWifiNative); in testDumpWithCorrectFormatWithScanResult()
223 when(mWifiNative.scan(eq(IFACE_NAME), anyInt(), any(), any(List.class))).thenReturn(true); in testDumpWithCorrectFormatWithScanResult()
224 when(mWifiNative.getScanResults(eq(IFACE_NAME))).thenReturn(rawScanResults); in testDumpWithCorrectFormatWithScanResult()
258 order.verify(mWifiNative).scan(eq(IFACE_NAME), anyInt(), eq(expectedScan), any(List.class)); in testDumpWithCorrectFormatWithScanResult()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConnectivityHelper.java38 private final WifiNative mWifiNative; field in WifiConnectivityHelper
44 mWifiNative = wifiNative; in WifiConnectivityHelper()
63 mWifiNative.getSupportedFeatureSet(mWifiNative.getClientInterfaceName()); in getFirmwareRoamingInfo()
72 if (mWifiNative.getRoamingCapabilities(mWifiNative.getClientInterfaceName(), roamingCap)) { in getFirmwareRoamingInfo()
163 return mWifiNative.configureRoaming(mWifiNative.getClientInterfaceName(), roamConfig); in setFirmwareRoamingConfiguration()
DMboOceController.java38 private final WifiNative mWifiNative; field in MboOceController
47 mWifiNative = wifiNative; in MboOceController()
54 String iface = mWifiNative.getClientInterfaceName(); in enable()
58 mIsMboSupported = (mWifiNative.getSupportedFeatureSet(iface) & WIFI_FEATURE_MBO) != 0; in enable()
59 mIsOceSupported = (mWifiNative.getSupportedFeatureSet(iface) & WIFI_FEATURE_OCE) != 0; in enable()
102 String iface = mWifiNative.getClientInterfaceName();
121 mWifiNative.setMboCellularDataStatus(iface, dataAvailable);
DBaseWifiDiagnostics.java18 protected final WifiNative mWifiNative; field in BaseWifiDiagnostics
25 mWifiNative = wifiNative; in BaseWifiDiagnostics()
33 mFirmwareVersion = mWifiNative.getFirmwareVersion(); in startLogging()
34 mDriverVersion = mWifiNative.getDriverVersion(); in startLogging()
35 mSupportedFeatureSet = mWifiNative.getSupportedLoggerFeatureSet(); in startLogging()
DWifiDiagnostics.java172 mFirmwareVersion = mWifiNative.getFirmwareVersion(); in startLogging()
173 mDriverVersion = mWifiNative.getDriverVersion(); in startLogging()
174 mSupportedFeatureSet = mWifiNative.getSupportedLoggerFeatureSet(); in startLogging()
177 mIsLoggingEventHandlerRegistered = mWifiNative.setLoggingEventHandler(mHandler); in startLogging()
230 if (!mWifiNative.resetLogHandler()) { in stopLogging()
523 mRingBuffers = mWifiNative.getRingBufferStatus(); in fetchRingBuffers()
589 if (mWifiNative.startLoggingRingBuffer( in startLoggingRingBuffer()
599 if (mWifiNative.startLoggingRingBuffer(0, 0, 0, 0, buffer.name) == false) { in stopLoggingRingBuffer()
629 if (!mWifiNative.flushRingBufferData()) { in flushDump()
646 mWifiNative.getRingBufferData(buffer.name); in captureBugreport()
[all …]
DWifiInjector.java98 private final WifiNative mWifiNative; field in WifiInjector
234 mWifiNative = new WifiNative( in WifiInjector()
246 mCountryCode = new WifiCountryCode(mContext, wifiHandler, mWifiNative, in WifiInjector()
284 mWifiConnectivityHelper = new WifiConnectivityHelper(mWifiNative); in WifiInjector()
291 mWifiConfigManager, mClock, mConnectivityLocalLog, mWifiMetrics, mWifiNative, in WifiInjector()
306 wifiHandler, mWifiNative, mWifiKeyStore, mClock, new PasspointObjectFactory(), in WifiInjector()
328 mWifiNative); in WifiInjector()
330 mContext, this, mWifiNative, mBuildProperties, in WifiInjector()
337 mLinkProbeManager = new LinkProbeManager(mClock, mWifiNative, mWifiMetrics, in WifiInjector()
341 mMboOceController = new MboOceController(makeTelephonyManager(), mWifiNative); in WifiInjector()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DApConfigUtilTest.java127 @Mock WifiNative mWifiNative; field in ApConfigUtilTest
276 when(mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_24_GHZ)) in chooseApChannel2GBandWithNoAllowedChannel()
278 int freq = ApConfigUtil.chooseApChannel(SoftApConfiguration.BAND_2GHZ, mWifiNative, in chooseApChannel2GBandWithNoAllowedChannel()
291 when(mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_24_GHZ)) in chooseApChannel2GBandWithAllowedChannels()
294 int freq = ApConfigUtil.chooseApChannel(SoftApConfiguration.BAND_2GHZ, mWifiNative, in chooseApChannel2GBandWithAllowedChannels()
306 when(mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_5_GHZ)) in chooseApChannel5GBandWithAllowedChannels()
310 SoftApConfiguration.BAND_5GHZ, mWifiNative, mResources); in chooseApChannel5GBandWithAllowedChannels()
320 when(mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_5_GHZ)) in chooseApChannel5GBandWithNoAllowedChannels()
322 assertEquals(-1, ApConfigUtil.chooseApChannel(SoftApConfiguration.BAND_5GHZ, mWifiNative, in chooseApChannel5GBandWithNoAllowedChannels()
333 when(mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_24_GHZ)) in chooseApChannelWillHighBandPrefer()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWificondChannelHelper.java31 private final WifiNative mWifiNative; field in WificondChannelHelper
34 mWifiNative = wifiNative; in WificondChannelHelper()
43 mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_24_GHZ); in updateChannels()
45 int[] channels5G = mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_5_GHZ); in updateChannels()
48 mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_5_GHZ_DFS_ONLY); in updateChannels()
51 mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_6_GHZ); in updateChannels()
DHalWifiScannerImpl.java42 private final WifiNative mWifiNative; field in HalWifiScannerImpl
49 mWifiNative = wifiNative; in HalWifiScannerImpl()
69 return mWifiNative.getBgScanCapabilities( in getScanCapabilities()
96 return mWifiNative.startBgScan( in startBatchedScan()
102 mWifiNative.stopBgScan(getIfaceName()); in stopBatchedScan()
107 mWifiNative.pauseBgScan(getIfaceName()); in pauseBatchedScan()
112 mWifiNative.restartBgScan(getIfaceName()); in restartBatchedScan()
117 return mWifiNative.getBgScanResults(getIfaceName()); in getLatestBatchedScanResults()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointEventHandlerTest.java54 @Mock WifiNative mWifiNative; field in PasspointEventHandlerTest
62 mHandler = new PasspointEventHandler(mWifiNative, mCallbacks); in setUp()
78 when(mWifiNative.requestAnqp(any(), eq(BSSID_STR), eq(expAnqpIds), eq(expHs20Subtypes))) in requestR1AnqpElement()
83 when(mWifiNative.requestAnqp(any(), eq(BSSID_STR), eq(expAnqpIds), eq(expHs20Subtypes))) in requestR1AnqpElement()
101 when(mWifiNative.requestAnqp(any(), eq(BSSID_STR), eq(expAnqpIds), eq(expHs20Subtypes))) in requestR2AnqpElement()
106 when(mWifiNative.requestAnqp(any(), eq(BSSID_STR), eq(expAnqpIds), eq(expHs20Subtypes))) in requestR2AnqpElement()
127 when(mWifiNative.requestAnqp(any(), eq(BSSID_STR), eq(expAnqpIds), eq(expHs20Subtypes))) in requestMixAnqpElements()
132 when(mWifiNative.requestAnqp(any(), eq(BSSID_STR), eq(expAnqpIds), eq(expHs20Subtypes))) in requestMixAnqpElements()
143 when(mWifiNative.requestIcon(any(), eq(BSSID_STR), eq(ICON_FILENAME))).thenReturn(true); in requestIconFile()
147 when(mWifiNative.requestIcon(any(), eq(BSSID_STR), eq(ICON_FILENAME))).thenReturn(false); in requestIconFile()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java165 @Mock WifiP2pNative mWifiNative; field in WifiP2pServiceImplTest
651 verify(mWifiNative).setupInterface(any(), any()); in checkIsP2pInitWhenClientConnected()
655 verify(mWifiNative, never()).setupInterface(any(), any()); in checkIsP2pInitWhenClientConnected()
673 verify(mWifiNative).teardownInterface(); in checkIsP2pTearDownWhenClientDisconnected()
676 verify(mWifiNative, never()).teardownInterface(); in checkIsP2pTearDownWhenClientDisconnected()
740 mWifiInjector, mWifiNative); in setUpWifiP2pServiceImpl()
766 when(mWifiInjector.getWifiP2pNative()).thenReturn(mWifiNative); in setUpWifiP2pServiceImpl()
775 when(mWifiNative.setupInterface(any(), any())).thenReturn(IFACE_NAME_P2P); in setUpWifiP2pServiceImpl()
776 when(mWifiNative.p2pGetDeviceAddress()).thenReturn(thisDeviceMac); in setUpWifiP2pServiceImpl()
785 }).when(mWifiNative).p2pListNetworks(any(WifiP2pGroupList.class)); in setUpWifiP2pServiceImpl()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java772 private WifiP2pNative mWifiNative = mWifiInjector.getWifiP2pNative(); field in WifiP2pServiceImpl.P2pStateMachine
789 mWifiNative.removeP2pNetwork(netId);
790 mWifiNative.saveConfig();
885 mWifiNative.registerInterfaceAvailableListener((boolean isAvailable) -> { in P2pStateMachine()
902 mWifiNative.enableVerboseLogging(verbose ? 1 : 0); in enableVerboseLogging()
1171 mWifiNative.p2pGroupRemove(mGroup.getInterface()); in processMessage()
1401 mWifiNative.setMacRandomization(true); in setupInterfaceFeatures()
1403 mWifiNative.setMacRandomization(false); in setupInterfaceFeatures()
1416 mInterfaceName = mWifiNative.setupInterface((String ifaceName) -> { in processMessage()
1487 mWifiNative.teardownInterface(); in processMessage()
[all …]

123