Home
last modified time | relevance | path

Searched refs:triggerSynced (Results 1 – 10 of 10) sorted by relevance

/frameworks/native/services/vibratorservice/test/
DVibratorManagerHalControllerTest.cpp49 MOCK_METHOD(vibrator::HalResult<void>, triggerSynced,
93 EXPECT_CALL(*mMockHal.get(), triggerSynced(_)) in setHalExpectations()
138 ASSERT_TRUE(mController->triggerSynced([]() {}).isOk()); in TEST_F()
157 ASSERT_TRUE(mController->triggerSynced([]() {}).isUnsupported()); in TEST_F()
176 ASSERT_TRUE(mController->triggerSynced([]() {}).isFailed()); in TEST_F()
DVibratorManagerHalWrapperAidlTest.cpp99 MOCK_METHOD(Status, triggerSynced, (const sp<IVibratorCallback>& cb), (override));
309 EXPECT_CALL(*mMockHal.get(), triggerSynced(_)) in TEST_F()
319 ASSERT_TRUE(mWrapper->triggerSynced(callback).isUnsupported()); in TEST_F()
320 ASSERT_TRUE(mWrapper->triggerSynced(callback).isFailed()); in TEST_F()
321 ASSERT_TRUE(mWrapper->triggerSynced(callback).isOk()); in TEST_F()
332 EXPECT_CALL(*mMockHal.get(), triggerSynced(Eq(nullptr))) in TEST_F()
340 ASSERT_TRUE(mWrapper->triggerSynced(callback).isOk()); in TEST_F()
DVibratorManagerHalWrapperLegacyTest.cpp121 ASSERT_TRUE(mWrapper->triggerSynced([]() {}).isUnsupported()); in TEST_F()
/frameworks/native/services/vibratorservice/include/vibratorservice/
DVibratorManagerHalWrapper.h79 virtual HalResult<void> triggerSynced(const std::function<void()>& completionCallback) = 0;
99 HalResult<void> triggerSynced(const std::function<void()>& completionCallback) override final;
122 HalResult<void> triggerSynced(const std::function<void()>& completionCallback) override final;
DVibratorManagerHalController.h63 HalResult<void> triggerSynced(const std::function<void()>& completionCallback) override final;
/frameworks/native/services/vibratorservice/
DVibratorManagerHalWrapper.cpp66 HalResult<void> LegacyManagerHalWrapper::triggerSynced(const std::function<void()>&) { in triggerSynced() function in android::vibrator::LegacyManagerHalWrapper
176 HalResult<void> AidlManagerHalWrapper::triggerSynced( in triggerSynced() function in android::vibrator::AidlManagerHalWrapper
182 return HalResult<void>::fromStatus(getHal()->triggerSynced(cb)); in triggerSynced()
DVibratorManagerHalController.cpp131 HalResult<void> ManagerHalController::triggerSynced( in triggerSynced() function in android::vibrator::ManagerHalController
134 return hal->triggerSynced(completionCallback); in triggerSynced()
/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
DVibratorManagerServiceTest.java701 when(mNativeWrapperMock.triggerSynced(anyLong())).then(answer -> {
719 verify(mNativeWrapperMock).triggerSynced(anyLong());
735 when(mNativeWrapperMock.triggerSynced(anyLong())).thenReturn(true);
752 verify(mNativeWrapperMock).triggerSynced(anyLong());
776 verify(mNativeWrapperMock, never()).triggerSynced(anyLong());
796 verify(mNativeWrapperMock, never()).triggerSynced(anyLong());
805 when(mNativeWrapperMock.triggerSynced(anyLong())).thenReturn(false);
817 verify(mNativeWrapperMock).triggerSynced(anyLong());
/frameworks/base/services/core/jni/
Dcom_android_server_vibrator_VibratorManagerService.cpp146 return service->hal()->triggerSynced(callback).isOk() ? JNI_TRUE : JNI_FALSE; in nativeTriggerSynced()
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibratorManagerService.java997 return mNativeWrapper.triggerSynced(vibrationId); in triggerSyncedVibration()
1161 public boolean triggerSynced(long vibrationId) { in triggerSynced() method in VibratorManagerService.NativeWrapper