Lines Matching defs:ret
137 int32_t ret = GetLocalNodeDeviceInfo(PKG_NAME.c_str(), &basicInfo);
138 if (ret != DH_SUCCESS) {
139 DHLOGE("Failed to obtain the network ID of the local device. ret: %{public}d", ret);
140 return ret;
244 int32_t ret = GetAudioParamStr(params, key, val);
245 if (ret != DH_SUCCESS) {
246 DHLOGE("Get audio param string fail, error code %{public}d.", ret);
247 return ret;
257 int32_t ret = GetAudioParamStr(params, key, val);
258 if (ret != DH_SUCCESS) {
259 DHLOGE("Get audio param string fail, error code %{public}d.", ret);
260 return ret;
363 int ret = clock_gettime(clockId, &time);
364 if (ret < 0) {
365 DHLOGE("GetCurNanoTime fail, ret: %{public}d", ret);
374 int32_t ret = -1;
377 return ret;
384 ret = clock_nanosleep(clockId, TIMER_ABSTIME, &time, nullptr);
385 if (ret != 0) {
386 DHLOGE("AbsoluteSleep may failed, ret is : %{public}d", ret);
388 return ret;