Home
last modified time | relevance | path

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

/frameworks/native/services/vibratorservice/test/
DVibratorManagerHalControllerTest.cpp47 MOCK_METHOD(vibrator::HalResult<void>, prepareSynced, (const std::vector<int32_t>& ids),
90 EXPECT_CALL(*mMockHal.get(), prepareSynced(_)) in setHalExpectations()
137 ASSERT_TRUE(mController->prepareSynced(VIBRATOR_IDS).isOk()); in TEST_F()
156 ASSERT_TRUE(mController->prepareSynced(VIBRATOR_IDS).isUnsupported()); in TEST_F()
175 ASSERT_TRUE(mController->prepareSynced(VIBRATOR_IDS).isFailed()); in TEST_F()
DVibratorManagerHalWrapperAidlTest.cpp98 MOCK_METHOD(Status, prepareSynced, (const std::vector<int32_t>& ids), (override));
289 EXPECT_CALL(*mMockHal.get(), prepareSynced(Eq(kVibratorIds))) in TEST_F()
297 ASSERT_TRUE(mWrapper->prepareSynced(kVibratorIds).isUnsupported()); in TEST_F()
298 ASSERT_TRUE(mWrapper->prepareSynced(kVibratorIds).isFailed()); in TEST_F()
299 ASSERT_TRUE(mWrapper->prepareSynced(kVibratorIds).isOk()); in TEST_F()
DVibratorManagerHalWrapperLegacyTest.cpp120 ASSERT_TRUE(mWrapper->prepareSynced(vibratorIds).isUnsupported()); in TEST_F()
/frameworks/native/services/vibratorservice/include/vibratorservice/
DVibratorManagerHalWrapper.h78 virtual HalResult<void> prepareSynced(const std::vector<int32_t>& ids) = 0;
98 HalResult<void> prepareSynced(const std::vector<int32_t>& ids) override final;
121 HalResult<void> prepareSynced(const std::vector<int32_t>& ids) override final;
DVibratorManagerHalController.h62 HalResult<void> prepareSynced(const std::vector<int32_t>& ids) override final;
/frameworks/native/services/vibratorservice/
DVibratorManagerHalWrapper.cpp62 HalResult<void> LegacyManagerHalWrapper::prepareSynced(const std::vector<int32_t>&) { in prepareSynced() function in android::vibrator::LegacyManagerHalWrapper
159 HalResult<void> AidlManagerHalWrapper::prepareSynced(const std::vector<int32_t>& ids) { in prepareSynced() function in android::vibrator::AidlManagerHalWrapper
160 auto ret = HalResult<void>::fromStatus(getHal()->prepareSynced(ids)); in prepareSynced()
DVibratorManagerHalController.cpp124 HalResult<void> ManagerHalController::prepareSynced(const std::vector<int32_t>& ids) { in prepareSynced() function in android::vibrator::ManagerHalController
126 return hal->prepareSynced(ids); in prepareSynced()
/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
DVibratorManagerServiceTest.java700 when(mNativeWrapperMock.prepareSynced(eq(new int[]{1, 2}))).thenReturn(true);
718 verify(mNativeWrapperMock).prepareSynced(eq(new int[]{1, 2}));
734 when(mNativeWrapperMock.prepareSynced(eq(new int[]{1, 2}))).thenReturn(true);
751 verify(mNativeWrapperMock).prepareSynced(eq(new int[]{1, 2}));
775 verify(mNativeWrapperMock, never()).prepareSynced(any());
784 when(mNativeWrapperMock.prepareSynced(any())).thenReturn(false);
795 verify(mNativeWrapperMock).prepareSynced(eq(new int[]{1, 2}));
804 when(mNativeWrapperMock.prepareSynced(eq(new int[]{1, 2}))).thenReturn(true);
816 verify(mNativeWrapperMock).prepareSynced(eq(new int[]{1, 2}));
/frameworks/base/services/core/jni/
Dcom_android_server_vibrator_VibratorManagerService.cpp134 return service->hal()->prepareSynced(ids).isOk() ? JNI_TRUE : JNI_FALSE; in nativePrepareSynced()
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibratorManagerService.java992 return mNativeWrapper.prepareSynced(vibratorIds); in prepareSyncedVibration()
1156 public boolean prepareSynced(@NonNull int[] vibratorIds) { in prepareSynced() method in VibratorManagerService.NativeWrapper