Searched refs:halCall (Results 1 – 5 of 5) sorted by relevance
/frameworks/native/services/vibratorservice/benchmarks/ |
D | VibratorHalControllerBenchmarks.cpp | 66 checkHalResult(halCall<void>(mController, [](auto hal) { return hal->off(); }), state); in turnVibratorOff() 79 vibrator::HalResult<R> halCall(vibrator::HalController& controller, in halCall() function in VibratorBench 110 auto ret = halCall<void>(mController, [](auto hal) { return hal->ping(); }); in __anon866670c60202() 129 halCall<void>(mController, [&](auto hal) { return hal->on(duration, callback); }); in __anon866670c60402() 144 halCall<void>(mController, [&](auto hal) { return hal->on(duration, callback); }); in __anon866670c60602() 167 halCall<void>(controller, [&](auto hal) { return hal->on(duration, callback); }); in __anon866670c60802() 173 halCall<void>(controller, [&](auto hal) { return hal->setAmplitude(amplitude); }); in __anon866670c60902() 191 halCall<void>(mController, [&](auto hal) { return hal->on(duration, callback); }); in __anon866670c60b02() 196 halCall<void>(mController, [&](auto hal) { return hal->setAmplitude(amplitude); }); in __anon866670c60c02() 212 halCall<void>(controller, [](auto hal) { return hal->setExternalControl(true); }); in __anon866670c60d02() [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_vibrator_VibratorController.cpp | 128 vibrator::HalResult<T> halCall(const vibrator::HalFunction<vibrator::HalResult<T>>& fn, in halCall() function in android::VibratorControllerWrapper 213 return wrapper->halCall<void>(pingFn, "ping").isOk() ? JNI_TRUE : JNI_FALSE; in vibratorIsAvailable() 227 auto result = wrapper->halCall<void>(onFn, "on"); in vibratorOn() 238 wrapper->halCall<void>(offFn, "off"); in vibratorOff() 250 wrapper->halCall<void>(setAmplitudeFn, "setAmplitude"); in vibratorSetAmplitude() 263 wrapper->halCall<void>(setExternalControlFn, "setExternalControl"); in vibratorSetExternalControl() 279 auto result = wrapper->halCall<std::chrono::milliseconds>(performEffectFn, "performEffect"); in vibratorPerformEffect() 300 auto result = wrapper->halCall<std::chrono::milliseconds>(performComposedEffectFn, in vibratorPerformComposedEffect() 335 auto result = wrapper->halCall<void>(performPwleEffectFn, "performPwleEffect"); in vibratorPerformPwleEffect() 350 wrapper->halCall<void>(alwaysOnEnableFn, "alwaysOnEnable"); in vibratorAlwaysOnEnable() [all …]
|
/frameworks/native/cmds/idlcli/vibrator/ |
D | CommandSupportsExternalControl.cpp | 45 auto ret = halCall(&V1_3::IVibrator::supportsExternalControl); in doMain()
|
D | CommandSupportsAmplitudeControl.cpp | 45 auto ret = halCall(&V1_0::IVibrator::supportsAmplitudeControl); in doMain()
|
/frameworks/native/cmds/idlcli/ |
D | vibrator.h | 109 R halCall(R (I::*fn)(Args0...), Args1&&... args1) { in halCall() function
|