Lines Matching refs:ret
31 int32_t ret;
38 ret = GetInputInterface(&g_inputInterface);
39 if (ret != INPUT_SUCCESS) {
40 HDF_LOGE("%s: get input hdi failed, ret %d", __func__, ret);
43 ret = g_inputInterface->iInputManager->ScanInputDevice(sta, MAX_DEVICES);
44 if (ret) {
45 HDF_LOGE("%s: scan device failed, ret %d", __func__, ret);
52 ret = g_inputInterface->iInputManager->OpenInputDevice(sta[i].devIndex);
53 if (ret != INPUT_SUCCESS) {
54 HDF_LOGE("%s: open input device failed, ret %d", __func__, ret);
58 ret = g_inputInterface->iInputController->SetGestureMode(params->devIndex, params->gestureMode);
59 if (ret == INPUT_SUCCESS) {
68 ret = g_inputInterface->iInputManager->CloseInputDevice(sta[i].devIndex);
69 if (ret != INPUT_SUCCESS) {
70 HDF_LOGE("%s: close input device failed, ret %d", __func__, ret);