Home | History | Annotate | Download | only in vibrator

Lines Matching refs:Vibrator

22 #include <hardware/vibrator.h>
24 #include "Vibrator.h"
34 namespace vibrator {
43 Vibrator::Vibrator(std::ofstream&& enable, std::ofstream&& amplitude) :
47 // Methods from ::android::hardware::vibrator::V1_0::IVibrator follow.
48 Return<Status> Vibrator::on(uint32_t timeout_ms) {
51 ALOGE("Failed to turn vibrator on (%d): %s", errno, strerror(errno));
57 Return<Status> Vibrator::off() {
60 ALOGE("Failed to turn vibrator off (%d): %s", errno, strerror(errno));
66 Return<bool> Vibrator::supportsAmplitudeControl() {
70 Return<Status> Vibrator::setAmplitude(uint8_t amplitude) {
87 Return<void> Vibrator::perform(Effect effect, EffectStrength strength, perform_cb _hidl_cb) {
115 } // namespace vibrator