Home
last modified time | relevance | path

Searched refs:doWithRetry (Results 1 – 6 of 6) sorted by relevance

/frameworks/native/services/vibratorservice/test/
DVibratorHalControllerTest.cpp150 auto result = mController->doWithRetry<void>(ON_FN, "on"); in TEST_F()
161 auto result = mController->doWithRetry<void>(OFF_FN, "off"); in TEST_F()
172 auto result = mController->doWithRetry<void>(ON_FN, "on"); in TEST_F()
183 auto result = mController->doWithRetry<void>(ON_FN, "on"); in TEST_F()
200 auto result = mController->doWithRetry<void>(PING_FN, "ping"); in TEST_F()
215 auto result = mController->doWithRetry<void>(PING_FN, "ping"); in TEST_F()
233 ASSERT_TRUE(mController->doWithRetry<void>(OFF_FN, "off").isUnsupported()); in TEST_F()
234 ASSERT_TRUE(mController->doWithRetry<void>(PING_FN, "ping").isUnsupported()); in TEST_F()
263 ASSERT_TRUE(mController->doWithRetry<void>(onFn, "on").isOk()); in TEST_F()
264 ASSERT_TRUE(mController->doWithRetry<void>(PING_FN, "ping").isFailed()); in TEST_F()
DVibratorManagerHalWrapperAidlTest.cpp276 ASSERT_TRUE(vibrator->doWithRetry<void>(OFF_FN, "off").isFailed()); in TEST_F()
278 ASSERT_TRUE(vibrator->doWithRetry<void>(OFF_FN, "off").isOk()); in TEST_F()
/frameworks/native/services/vibratorservice/include/vibratorservice/
DVibratorHalController.h96 HalResult<T> doWithRetry(const HalFunction<HalResult<T>>& halFn, const char* functionName) { in doWithRetry() function
97 return doWithRetry<T>(halFn, HalResult<T>::unsupported(), functionName); in doWithRetry()
115 HalResult<T> doWithRetry(const HalFunction<HalResult<T>>& halFn, HalResult<T> defaultValue, in doWithRetry() function
/frameworks/native/services/vibratorservice/benchmarks/
DVibratorHalControllerBenchmarks.cpp144 return mController.doWithRetry<void>([](auto hal) { return hal->off(); }, "off"); in turnVibratorOff()
149 return mController.doWithRetry<void>(disableExternalControlFn, "setExternalControl false"); in disableExternalControl()
172 return shouldSkipWithError(mController.doWithRetry<R>(halFn, label), state); in shouldSkipWithError()
/frameworks/native/services/vibratorservice/
DVibratorManagerHalWrapper.cpp34 return mController->doWithRetry<void>(pingFn, "ping"); in ping()
/frameworks/base/services/core/jni/
Dcom_android_server_vibrator_VibratorController.cpp130 return mHal->doWithRetry(fn, functionName); in halCall()