Lines Matching refs:ret
41 int32_t ret = OHOS::Sensors::StartVibratorOnce(duration);
42 if (ret != OHOS::ERR_OK) {
43 MISC_HILOGE("start Vibrator failed, ret is %{public}d", ret);
45 return ret;
67 int32_t ret = OHOS::Sensors::PlayVibratorCustom(fileDescription.fd, fileDescription.offset, fileDescription.length);
68 if (ret != OHOS::ERR_OK) {
69 MISC_HILOGE("play vibrator custom failed, ret is %{public}d", ret);
71 return ret;
76 int32_t ret = OHOS::Sensors::Cancel();
77 if (ret != OHOS::ERR_OK) {
78 MISC_HILOGE("cancel Vibrator failed, ret is %{public}d", ret);
80 return ret;