Lines Matching refs:query

322 status_t QemuClient::doQuery(QemuQuery* query)  in doQuery()  argument
325 if (query->mQueryDeliveryStatus != NO_ERROR) { in doQuery()
327 return query->mQueryDeliveryStatus; in doQuery()
330 LOGQ("Send query '%s'", query->mQuery); in doQuery()
333 status_t res = sendMessage(query->mQuery, strlen(query->mQuery) + 1); in doQuery()
336 res = receiveMessage(reinterpret_cast<void**>(&query->mReplyBuffer), in doQuery()
337 &query->mReplySize); in doQuery()
340 query->mQuery, query->mReplyBuffer, query->mReplySize); in doQuery()
343 __FUNCTION__, query->mQuery, strerror(res)); in doQuery()
347 __FUNCTION__, query->mQuery, strerror(res)); in doQuery()
351 const status_t res1 = query->completeQuery(res); in doQuery()
354 __FUNCTION__, res1, query->mQuery); in doQuery()
382 QemuQuery query(mQueryList); in listCameras() local
383 if (doQuery(&query) || !query.isQuerySucceeded()) { in listCameras()
385 query.mReplyData ? query.mReplyData : "No error message"); in listCameras()
386 return query.getCompletionStatus(); in listCameras()
390 if (query.mReplyDataSize == 0) { in listCameras()
396 *list = (char*)malloc(query.mReplyDataSize); in listCameras()
398 memcpy(*list, query.mReplyData, query.mReplyDataSize); in listCameras()
403 __FUNCTION__, query.mReplyDataSize); in listCameras()
441 QemuQuery query(mQueryConnect); in queryConnect() local
442 doQuery(&query); in queryConnect()
443 const status_t res = query.getCompletionStatus(); in queryConnect()
445 __FUNCTION__, query.mReplyData ? query.mReplyData : in queryConnect()
454 QemuQuery query(mQueryDisconnect); in queryDisconnect() local
455 doQuery(&query); in queryDisconnect()
456 const status_t res = query.getCompletionStatus(); in queryDisconnect()
458 __FUNCTION__, query.mReplyData ? query.mReplyData : in queryDisconnect()
465 QemuQuery query(mQueryStart); in queryStart() local
466 doQuery(&query); in queryStart()
467 const status_t res = query.getCompletionStatus(); in queryStart()
469 __FUNCTION__, query.mReplyData ? query.mReplyData : in queryStart()
483 QemuQuery query(query_str); in queryStart() local
484 doQuery(&query); in queryStart()
485 const status_t res = query.getCompletionStatus(); in queryStart()
487 __FUNCTION__, query.mReplyData ? query.mReplyData : in queryStart()
496 QemuQuery query(mQueryStop); in queryStop() local
497 doQuery(&query); in queryStop()
498 const status_t res = query.getCompletionStatus(); in queryStop()
500 __FUNCTION__, query.mReplyData ? query.mReplyData : in queryStop()
522 QemuQuery query(query_str); in queryFrame() local
523 doQuery(&query); in queryFrame()
524 const status_t res = query.getCompletionStatus(); in queryFrame()
527 __FUNCTION__, query.mReplyData ? query.mReplyData : in queryFrame()
534 const uint8_t* frame = reinterpret_cast<const uint8_t*>(query.mReplyData); in queryFrame()
538 if ((query.mReplyDataSize - cur_offset) >= vframe_size) { in queryFrame()
543 __FUNCTION__, query.mReplyDataSize - cur_offset, vframe_size); in queryFrame()
549 if ((query.mReplyDataSize - cur_offset) >= pframe_size) { in queryFrame()
554 __FUNCTION__, query.mReplyDataSize - cur_offset, pframe_size); in queryFrame()
559 if (query.mReplyDataSize - cur_offset >= 8) { in queryFrame()
588 QemuQuery query(query_str); in queryFrame() local
589 doQuery(&query); in queryFrame()
590 const status_t res = query.getCompletionStatus(); in queryFrame()
593 __FUNCTION__, query.mReplyData ? query.mReplyData : in queryFrame()
599 const uint8_t* frame = reinterpret_cast<const uint8_t*>(query.mReplyData); in queryFrame()
601 if (query.mReplyDataSize >= 8) { in queryFrame()