Lines Matching full:res
89 int res = vsnprintf(buf, MAX_COMMAND_LENGTH, fmt, args);
92 LOGV("Sending command: %04X%.*s", res, res, buf);
96 snprintf(payloadLen, sizeof(payloadLen), PAYLOAD_FORMAT, res);
105 if (send(m_fd, buf, res, 0) < 0) {
128 int res = recv(fd, msg, payloadLen, 0);
129 if (res < 0) {
132 } else if (res != payloadLen) {
133 LOGE("Incorrect payload length %d - expected %d", res, payloadLen);
136 msg[res] = 0;
151 int res = recv(m_fd, buf, sizeof(buf), 0);
152 if (res < 0) {
158 if ((res == ADB_RESPONSE_LENGTH) && (strncmp(buf, "OKAY", res) == 0)) {
166 LOGE("Incorrect response from adb - '%.*s'", res, buf);
193 int res = recv(m_fd, lenStr, sizeof(lenStr) - 1, 0);
194 if (res < 0) {
208 res = recv(m_fd, msg, payloadLen, 0);
209 if (res < 0) {
212 } else if (res != payloadLen) {
213 LOGE("Incorrect payload length %d - expected %d", res, payloadLen);
216 msg[res] = 0;