/frameworks/native/services/vibratorservice/test/ |
D | VibratorManagerHalControllerTest.cpp | 49 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()
|
D | VibratorManagerHalWrapperAidlTest.cpp | 99 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()
|
D | VibratorManagerHalWrapperLegacyTest.cpp | 121 ASSERT_TRUE(mWrapper->triggerSynced([]() {}).isUnsupported()); in TEST_F()
|
/frameworks/native/services/vibratorservice/include/vibratorservice/ |
D | VibratorManagerHalWrapper.h | 79 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;
|
D | VibratorManagerHalController.h | 63 HalResult<void> triggerSynced(const std::function<void()>& completionCallback) override final;
|
/frameworks/native/services/vibratorservice/ |
D | VibratorManagerHalWrapper.cpp | 66 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()
|
D | VibratorManagerHalController.cpp | 131 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/ |
D | VibratorManagerServiceTest.java | 701 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/ |
D | com_android_server_vibrator_VibratorManagerService.cpp | 146 return service->hal()->triggerSynced(callback).isOk() ? JNI_TRUE : JNI_FALSE; in nativeTriggerSynced()
|
/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | VibratorManagerService.java | 997 return mNativeWrapper.triggerSynced(vibrationId); in triggerSyncedVibration() 1161 public boolean triggerSynced(long vibrationId) { in triggerSynced() method in VibratorManagerService.NativeWrapper
|