Lines Matching defs:ret
29 int32_t ret = GetMotionVdiImpl();
30 if (ret != HDF_SUCCESS) {
74 int32_t ret = motionVdiImpl_->InitMotion();
75 if (ret != HDF_SUCCESS) {
76 HDF_LOGE("%{public}s impl init failed,error code is %{public}d", __func__, ret);
79 return ret;
96 int32_t ret = motionVdiImpl_->EnableMotion(motionType);
97 if (ret != HDF_SUCCESS) {
98 HDF_LOGE("%{public}s: Enable failed, error code is %{public}d", __func__, ret);
102 return ret;
119 int32_t ret = motionVdiImpl_->DisableMotion(motionType);
120 if (ret != HDF_SUCCESS) {
121 HDF_LOGE("%{public}s: Disable failed, error code is %{public}d", __func__, ret);
125 return ret;
138 int32_t ret = motionVdiImpl_->RegisterMotionCallback(motionCb);
139 if (ret != HDF_SUCCESS) {
140 HDF_LOGE("%{public}s: Register failed, error code is %{public}d", __func__, ret);
144 return ret;
157 int32_t ret = motionVdiImpl_->UnregisterMotionCallback(motionCb);
158 if (ret != HDF_SUCCESS) {
159 HDF_LOGE("%{public}s: Unregister failed, Unregistererror code is %{public}d", __func__, ret);
163 return ret;
180 int32_t ret = motionVdiImpl_->SetMotionConfig(motionType, data);
181 if (ret != HDF_SUCCESS) {
182 HDF_LOGE("%{public}s: SetMotionConfig failed, error code is %{public}d", __func__, ret);
186 return ret;
207 int32_t ret = impl->Init();
208 if (ret != HDF_SUCCESS) {
209 HDF_LOGE("%{public}s service init failed, error code is %{public}d", __func__, ret);