Lines Matching refs:ev
377 struct input_event ev{}; in vibrate() struct
378 ev.type = EV_FF; in vibrate()
379 ev.code = mFfEffectId; in vibrate()
380 ev.value = 1; in vibrate()
381 size_t written = TEMP_FAILURE_RETRY(write(mFd, &ev, sizeof(ev))); in vibrate()
382 if (written != sizeof(ev)) { in vibrate()
394 struct input_event ev{}; in cancelVibrate() struct
395 ev.type = EV_FF; in cancelVibrate()
396 ev.code = mFfEffectId; in cancelVibrate()
397 ev.value = 0; in cancelVibrate()
398 size_t written = TEMP_FAILURE_RETRY(write(mFd, &ev, sizeof(ev))); in cancelVibrate()
399 if (written != sizeof(ev)) { in cancelVibrate()