Home
last modified time | relevance | path

Searched refs:listenerMock (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibratorManagerServiceTest.java483 IVibratorStateListener listenerMock = mockVibratorStateListener(); in registerVibratorStateListener_callbacksAreTriggered() local
484 service.registerVibratorStateListener(1, listenerMock); in registerVibratorStateListener_callbacksAreTriggered()
491 InOrder inOrderVerifier = inOrder(listenerMock); in registerVibratorStateListener_callbacksAreTriggered()
493 inOrderVerifier.verify(listenerMock).onVibrating(eq(false)); in registerVibratorStateListener_callbacksAreTriggered()
495 inOrderVerifier.verify(listenerMock).onVibrating(eq(true)); in registerVibratorStateListener_callbacksAreTriggered()
497 inOrderVerifier.verify(listenerMock, timeout(TEST_TIMEOUT_MILLIS)).onVibrating(eq(false)); in registerVibratorStateListener_callbacksAreTriggered()
511 IVibratorStateListener listenerMock = mockVibratorStateListener(); in unregisterVibratorStateListener_callbackNotTriggeredAfter() local
512 service.registerVibratorStateListener(1, listenerMock); in unregisterVibratorStateListener_callbackNotTriggeredAfter()
519 service.unregisterVibratorStateListener(1, listenerMock); in unregisterVibratorStateListener_callbackNotTriggeredAfter()
524 InOrder inOrderVerifier = inOrder(listenerMock); in unregisterVibratorStateListener_callbackNotTriggeredAfter()
[all …]
/frameworks/base/services/incremental/test/
DIncrementalServiceTest.cpp1327 NiceMock<MockStorageHealthListener>* listenerMock = listener.get(); in TEST_F() local
1328 EXPECT_CALL(*listenerMock, onHealthStatus(_, IStorageHealthListener::HEALTH_STATUS_OK)) in TEST_F()
1330 EXPECT_CALL(*listenerMock, in TEST_F()
1333 EXPECT_CALL(*listenerMock, onHealthStatus(_, IStorageHealthListener::HEALTH_STATUS_BLOCKED)) in TEST_F()
1335 EXPECT_CALL(*listenerMock, onHealthStatus(_, IStorageHealthListener::HEALTH_STATUS_UNHEALTHY)) in TEST_F()
1875 NiceMock<MockStorageLoadingProgressListener>* listenerMock = listener.get(); in TEST_F() local
1876 EXPECT_CALL(*listenerMock, onStorageLoadingProgressChanged(_, _)).Times(2); in TEST_F()
1900 NiceMock<MockStorageLoadingProgressListener>* listenerMock = listener.get(); in TEST_F() local
1901 EXPECT_CALL(*listenerMock, onStorageLoadingProgressChanged(_, _)).Times(0); in TEST_F()