Home
last modified time | relevance | path

Searched refs:softApStateCaptor (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiManagerTest.java1303 ArgumentCaptor<SoftApState> softApStateCaptor = ArgumentCaptor.forClass(SoftApState.class); in softApCallbackProxyCallsOnStateChanged() local
1304 verify(mSoftApCallback).onStateChanged(softApStateCaptor.capture()); in softApCallbackProxyCallsOnStateChanged()
1305 assertEquals(state, softApStateCaptor.getValue()); in softApCallbackProxyCallsOnStateChanged()
1836 ArgumentCaptor<SoftApState> softApStateCaptor = in softApCallbackProxyCallsOnMultipleUpdates() local
1838 verify(mSoftApCallback, times(2)).onStateChanged(softApStateCaptor.capture()); in softApCallbackProxyCallsOnMultipleUpdates()
1839 assertEquals(state0, softApStateCaptor.getAllValues().get(0)); in softApCallbackProxyCallsOnMultipleUpdates()
1840 assertEquals(state1, softApStateCaptor.getAllValues().get(1)); in softApCallbackProxyCallsOnMultipleUpdates()
1859 ArgumentCaptor<SoftApState> softApStateCaptor = in softApCallbackIsCalledOnCorrectThread() local
1861 verify(mSoftApCallback).onStateChanged(softApStateCaptor.capture()); in softApCallbackIsCalledOnCorrectThread()
1862 SoftApState softApState = softApStateCaptor.getValue(); in softApCallbackIsCalledOnCorrectThread()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DActiveModeWardenTest.java2281 ArgumentCaptor<SoftApState> softApStateCaptor = in testSoftApModeDoesNotToggleOnWhenInEcm() local
2283 verify(mSoftApStateMachineCallback).onStateChanged(softApStateCaptor.capture()); in testSoftApModeDoesNotToggleOnWhenInEcm()
2284 assertThat(softApStateCaptor.getValue().getState()).isEqualTo(WIFI_AP_STATE_FAILED); in testSoftApModeDoesNotToggleOnWhenInEcm()
2285 assertThat(softApStateCaptor.getValue().getFailureReason()) in testSoftApModeDoesNotToggleOnWhenInEcm()
2287 assertThat(softApStateCaptor.getValue().getFailureReasonInternal()) in testSoftApModeDoesNotToggleOnWhenInEcm()
2301 verify(mLohsStateMachineCallback).onStateChanged(softApStateCaptor.capture()); in testSoftApModeDoesNotToggleOnWhenInEcm()
2302 assertThat(softApStateCaptor.getValue().getState()).isEqualTo(WIFI_AP_STATE_FAILED); in testSoftApModeDoesNotToggleOnWhenInEcm()
2303 assertThat(softApStateCaptor.getValue().getFailureReason()) in testSoftApModeDoesNotToggleOnWhenInEcm()
2305 assertThat(softApStateCaptor.getValue().getFailureReasonInternal()) in testSoftApModeDoesNotToggleOnWhenInEcm()
DWifiServiceImplTest.java10755 ArgumentCaptor<SoftApState> softApStateCaptor = in registerLohsSoftApCallbackAndVerify() local
10757 verify(mClientSoftApCallback).onStateChanged(softApStateCaptor.capture()); in registerLohsSoftApCallbackAndVerify()
10758 assertThat(softApStateCaptor.getValue().getState()).isEqualTo(WIFI_AP_STATE_DISABLED); in registerLohsSoftApCallbackAndVerify()
10760 softApStateCaptor.getValue().getFailureReason(); in registerLohsSoftApCallbackAndVerify()
10765 assertThat(softApStateCaptor.getValue().getFailureReasonInternal()).isEqualTo(0); in registerLohsSoftApCallbackAndVerify()