Home
last modified time | relevance | path

Searched refs:testListener (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiLockManagerTest.java1928 IWifiLowLatencyLockListener testListener = mock(IWifiLowLatencyLockListener.class); in testWifiLowLatencyLockListener() local
1929 when(testListener.asBinder()).thenReturn(mock(IBinder.class)); in testWifiLowLatencyLockListener()
1930 InOrder inOrder = inOrder(testListener); in testWifiLowLatencyLockListener()
1934 mWifiLockManager.addWifiLowLatencyLockListener(testListener); in testWifiLowLatencyLockListener()
1935 inOrder.verify(testListener).onActivatedStateChanged(false); in testWifiLowLatencyLockListener()
1936 inOrder.verify(testListener).onOwnershipChanged(eq(new int[0])); in testWifiLowLatencyLockListener()
1937 inOrder.verify(testListener, never()).onActiveUsersChanged(any()); in testWifiLowLatencyLockListener()
1952 inOrder.verify(testListener).onOwnershipChanged(eq(new int[]{DEFAULT_TEST_UID_1})); in testWifiLowLatencyLockListener()
1953 inOrder.verify(testListener).onActivatedStateChanged(true); in testWifiLowLatencyLockListener()
1954 inOrder.verify(testListener).onActiveUsersChanged(eq(new int[]{DEFAULT_TEST_UID_1})); in testWifiLowLatencyLockListener()
[all …]
DActiveModeWardenTest.java2554 IWifiNetworkStateChangedListener testListener = in testNetworkStateChangeListener() local
2556 when(testListener.asBinder()).thenReturn(mock(IBinder.class)); in testNetworkStateChangeListener()
2559 mActiveModeWarden.addWifiNetworkStateChangedListener(testListener); in testNetworkStateChangeListener()
2563 verify(testListener).onWifiNetworkStateChanged( in testNetworkStateChangeListener()
2568 mActiveModeWarden.removeWifiNetworkStateChangedListener(testListener); in testNetworkStateChangeListener()
2572 verify(testListener, never()).onWifiNetworkStateChanged( in testNetworkStateChangeListener()
DWifiServiceImplTest.java1685 IWifiNetworkStateChangedListener testListener = in testAddWifiNetworkStateChangedListener() local
1689 mWifiServiceImpl.addWifiNetworkStateChangedListener(testListener); in testAddWifiNetworkStateChangedListener()
1691 verify(mActiveModeWarden).addWifiNetworkStateChangedListener(testListener); in testAddWifiNetworkStateChangedListener()
1702 () -> mWifiServiceImpl.addWifiNetworkStateChangedListener(testListener)); in testAddWifiNetworkStateChangedListener()
1703 verify(mActiveModeWarden).addWifiNetworkStateChangedListener(testListener); in testAddWifiNetworkStateChangedListener()
12099 IWifiLowLatencyLockListener testListener = mock(IWifiLowLatencyLockListener.class); in testWifiDeviceLowLatencyModeListener() local
12105 mWifiServiceImpl.addWifiLowLatencyLockListener(testListener); in testWifiDeviceLowLatencyModeListener()
12107 verify(mLockManager).addWifiLowLatencyLockListener(testListener); in testWifiDeviceLowLatencyModeListener()
12108 mWifiServiceImpl.removeWifiLowLatencyLockListener(testListener); in testWifiDeviceLowLatencyModeListener()
12110 verify(mLockManager).removeWifiLowLatencyLockListener(testListener); in testWifiDeviceLowLatencyModeListener()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/evs/
DCarEvsServiceUnitTest.java289 EvsStatusListenerImpl testListener = new EvsStatusListenerImpl(); in testRegisterAndUnregisterStatusListener() local
290 mCarEvsService.registerStatusListener(testListener); in testRegisterAndUnregisterStatusListener()
291 mCarEvsService.unregisterStatusListener(testListener); in testRegisterAndUnregisterStatusListener()