Home
last modified time | relevance | path

Searched refs:TEST_INTERFACE_NAME (Results 1 – 5 of 5) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWificondControlTest.java107 private static final String TEST_INTERFACE_NAME = "test_wlan_if"; field in WificondControlTest
220 when(mClientInterface.getInterfaceName()).thenReturn(TEST_INTERFACE_NAME); in setUp()
226 TEST_INTERFACE_NAME)); in setUp()
237 when(mWificond.createClientInterface(TEST_INTERFACE_NAME)).thenReturn(mClientInterface); in testSetupInterfaceForClientMode()
238 verify(mWificond).createClientInterface(TEST_INTERFACE_NAME); in testSetupInterfaceForClientMode()
260 mWificondControl.setupInterfaceForClientMode(TEST_INTERFACE_NAME); in testSetupInterfaceForClientModeErrorWhenWificondIsNotStarted()
273 when(mWificond.createClientInterface(TEST_INTERFACE_NAME)).thenReturn(null); in testSetupInterfaceForClientModeErrorWhenWificondFailedToSetupInterface()
276 mWificondControl.setupInterfaceForClientMode(TEST_INTERFACE_NAME); in testSetupInterfaceForClientModeErrorWhenWificondFailedToSetupInterface()
285 when(mWificond.tearDownClientInterface(TEST_INTERFACE_NAME)).thenReturn(true); in testTeardownClientInterface()
287 assertTrue(mWificondControl.tearDownClientInterface(TEST_INTERFACE_NAME)); in testTeardownClientInterface()
[all …]
DSoftApManagerTest.java74 private static final String TEST_INTERFACE_NAME = "testif0"; field in SoftApManagerTest
105 when(mWifiNative.startSoftAp(eq(TEST_INTERFACE_NAME), any(), any())).thenReturn(true); in setUp()
116 TEST_INTERFACE_NAME, TEST_COUNTRY_CODE.toUpperCase(Locale.ROOT))) in setUp()
198 when(mWifiNative.setupInterfaceForSoftApMode(any())).thenReturn(TEST_INTERFACE_NAME); in startSoftApDefaultConfigFailedToLoad()
224 WIFI_AP_STATE_DISABLED, HOTSPOT_NO_ERROR, TEST_INTERFACE_NAME, in startSoftApDefaultConfigFailedToLoad()
227 WIFI_AP_STATE_ENABLING, WifiManager.SAP_START_FAILURE_GENERAL, TEST_INTERFACE_NAME, in startSoftApDefaultConfigFailedToLoad()
327 when(mWifiNative.setupInterfaceForSoftApMode(any())).thenReturn(TEST_INTERFACE_NAME); in startSoftApOn5GhzFailGeneralErrorForNoCountryCode()
343 verify(mWifiNative, never()).setCountryCodeHal(eq(TEST_INTERFACE_NAME), any()); in startSoftApOn5GhzFailGeneralErrorForNoCountryCode()
351 WIFI_AP_STATE_DISABLED, HOTSPOT_NO_ERROR, TEST_INTERFACE_NAME, in startSoftApOn5GhzFailGeneralErrorForNoCountryCode()
354 WIFI_AP_STATE_ENABLING, WifiManager.SAP_START_FAILURE_GENERAL, TEST_INTERFACE_NAME, in startSoftApOn5GhzFailGeneralErrorForNoCountryCode()
[all …]
DScanOnlyModeManagerTest.java56 private static final String TEST_INTERFACE_NAME = "testif0"; field in ScanOnlyModeManagerTest
90 TEST_INTERFACE_NAME); in startScanOnlyModeAndVerifyEnabled()
98 mInterfaceCallbackCaptor.getValue().onUp(TEST_INTERFACE_NAME); in startScanOnlyModeAndVerifyEnabled()
159 verify(mWifiNative).teardownInterface(TEST_INTERFACE_NAME); in scanModeStopCleansUpState()
172 mInterfaceCallbackCaptor.getValue().onDestroyed(TEST_INTERFACE_NAME); in scanModeStopsOnInterfaceDestroyed()
202 mInterfaceCallbackCaptor.getValue().onDown(TEST_INTERFACE_NAME); in scanModeStartedStopsWhenInterfaceDown()
235 mInterfaceCallbackCaptor.getValue().onDestroyed(TEST_INTERFACE_NAME); in noCallbackOnInterfaceDestroyedWhenAlreadyStopped()
265 inOrder.verify(mWifiNative).teardownInterface(eq(TEST_INTERFACE_NAME)); in scanModeExitStopsWakeupController()
DDppManagerTest.java75 private static final String TEST_INTERFACE_NAME = "testif0"; field in DppManagerTest
124 when(mWifiNative.getClientInterfaceName()).thenReturn(TEST_INTERFACE_NAME); in setUp()
272 verify(mWifiNative).startDppConfiguratorInitiator(eq(TEST_INTERFACE_NAME), in testStartDppAsConfiguratorInitiatorStartCorrectlyWpa2Psk()
297 verify(mWifiNative).startDppConfiguratorInitiator(eq(TEST_INTERFACE_NAME), in testStartDppAsConfiguratorInitiatorStartCorrectlyWpa3Sae()
356 verify(mWifiNative).startDppEnrolleeInitiator(eq(TEST_INTERFACE_NAME), in testStartDppAsEnrolleeInitiatorStartCorrectly()
381 verify(mWifiNative).startDppConfiguratorInitiator(eq(TEST_INTERFACE_NAME), in testStartDppAsConfiguratorInitiatorStartCorrectlyAndRejectConcurrentRequest()
403 verify(mWifiNative).startDppEnrolleeInitiator(eq(TEST_INTERFACE_NAME), in testStartDppAsEnrolleeInitiatorStartCorrectlyAndRejectConcurrentRequest()
437 verify(mWifiNative).startDppConfiguratorInitiator(eq(TEST_INTERFACE_NAME), in testStartDppAsConfiguratorInitiatorStartOnSuccessCallback()
473 verify(mWifiNative).startDppEnrolleeInitiator(eq(TEST_INTERFACE_NAME), in testStartDppAsEnrolleeInitiatorStartCorrectlyOnSuccessCallback()
530 verify(mWifiNative).startDppConfiguratorInitiator(eq(TEST_INTERFACE_NAME), in testStartDppAsConfiguratorInitiatorStartOnFailureCallback()
[all …]
DClientModeManagerTest.java54 private static final String TEST_INTERFACE_NAME = "testif0"; field in ClientModeManagerTest
89 .thenReturn(TEST_INTERFACE_NAME); in startClientModeAndVerifyEnabled()
97 mInterfaceCallbackCaptor.getValue().onUp(TEST_INTERFACE_NAME); in startClientModeAndVerifyEnabled()
262 mInterfaceCallbackCaptor.getValue().onDown(TEST_INTERFACE_NAME); in clientModeStartedStopsWhenInterfaceDown()
278 mInterfaceCallbackCaptor.getValue().onDown(TEST_INTERFACE_NAME); in clientModeStartedWithConnectedMacRandDoesNotStopWhenInterfaceDown()
291 mInterfaceCallbackCaptor.getValue().onDestroyed(TEST_INTERFACE_NAME); in clientModeStartedStopsOnInterfaceDestroyed()
310 mInterfaceCallbackCaptor.getValue().onDestroyed(TEST_INTERFACE_NAME); in noCallbackOnInterfaceDestroyedWhenAlreadyStopped()