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.java108 private static final String TEST_INTERFACE_NAME = "test_wlan_if"; field in WificondControlTest
221 when(mClientInterface.getInterfaceName()).thenReturn(TEST_INTERFACE_NAME); in setUp()
227 TEST_INTERFACE_NAME)); in setUp()
238 when(mWificond.createClientInterface(TEST_INTERFACE_NAME)).thenReturn(mClientInterface); in testSetupInterfaceForClientMode()
239 verify(mWificond).createClientInterface(TEST_INTERFACE_NAME); in testSetupInterfaceForClientMode()
261 mWificondControl.setupInterfaceForClientMode(TEST_INTERFACE_NAME); in testSetupInterfaceForClientModeErrorWhenWificondIsNotStarted()
274 when(mWificond.createClientInterface(TEST_INTERFACE_NAME)).thenReturn(null); in testSetupInterfaceForClientModeErrorWhenWificondFailedToSetupInterface()
277 mWificondControl.setupInterfaceForClientMode(TEST_INTERFACE_NAME); in testSetupInterfaceForClientModeErrorWhenWificondFailedToSetupInterface()
286 when(mWificond.tearDownClientInterface(TEST_INTERFACE_NAME)).thenReturn(true); in testTeardownClientInterface()
288 assertTrue(mWificondControl.tearDownClientInterface(TEST_INTERFACE_NAME)); in testTeardownClientInterface()
[all …]
DSoftApManagerTest.java91 private static final String TEST_INTERFACE_NAME = "testif0"; field in SoftApManagerTest
133 when(mWifiNative.startSoftAp(eq(TEST_INTERFACE_NAME), any(), any())).thenReturn(true); in setUp()
144 TEST_INTERFACE_NAME, TEST_COUNTRY_CODE.toUpperCase(Locale.ROOT))) in setUp()
227 when(mWifiNative.setupInterfaceForSoftApMode(any())).thenReturn(TEST_INTERFACE_NAME); in startSoftApDefaultConfigFailedToLoad()
254 WIFI_AP_STATE_DISABLED, HOTSPOT_NO_ERROR, TEST_INTERFACE_NAME, in startSoftApDefaultConfigFailedToLoad()
257 WIFI_AP_STATE_ENABLING, WifiManager.SAP_START_FAILURE_GENERAL, TEST_INTERFACE_NAME, in startSoftApDefaultConfigFailedToLoad()
359 when(mWifiNative.setupInterfaceForSoftApMode(any())).thenReturn(TEST_INTERFACE_NAME); in startSoftApOn5GhzFailGeneralErrorForNoCountryCode()
376 verify(mWifiNative, never()).setCountryCodeHal(eq(TEST_INTERFACE_NAME), any()); in startSoftApOn5GhzFailGeneralErrorForNoCountryCode()
384 WIFI_AP_STATE_DISABLED, HOTSPOT_NO_ERROR, TEST_INTERFACE_NAME, in startSoftApOn5GhzFailGeneralErrorForNoCountryCode()
387 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()