Lines Matching refs:result

206     auto result = WriteEvent(req);  in EnableSensor()  local
207 if (result == TransportResult::Success) { in EnableSensor()
233 auto result = WriteEvent(req); in DisableSensor() local
234 if (result == TransportResult::Success) { in DisableSensor()
283 TransportResult result = WriteEvent(request); in PrintBridgeVersion() local
284 if (result != TransportResult::Success) { in PrintBridgeVersion()
286 static_cast<int>(result)); in PrintBridgeVersion()
372 auto result = WriteEvent(req); in CalibrateSingleSensor() local
373 if (result != TransportResult::Success) { in CalibrateSingleSensor()
387 result = ReadAppEvents(cal_event_handler, kCalibrationTimeoutMs); in CalibrateSingleSensor()
388 if (result != TransportResult::Success) { in CalibrateSingleSensor()
389 LOGE("Error reading calibration response %d", static_cast<int>(result)); in CalibrateSingleSensor()
406 auto result = WriteEvent(req); in TestSingleSensor() local
407 if (result != TransportResult::Success) { in TestSingleSensor()
421 result = ReadAppEvents(test_event_handler, kTestTimeoutMs); in TestSingleSensor()
422 if (result != TransportResult::Success) { in TestSingleSensor()
423 LOGE("Error reading test response %d", static_cast<int>(result)); in TestSingleSensor()
456 auto result = reinterpret_cast<const TripleAxisCalibrationResult *>( in HandleCalibrationResult() local
458 success = SetCalibration(sensor.sensor_type, result->xBias, in HandleCalibrationResult()
459 result->yBias, result->zBias); in HandleCalibrationResult()
464 auto result = reinterpret_cast<const FloatCalibrationResult *>( in HandleCalibrationResult() local
468 (sensor.cal_ref - result->value)); in HandleCalibrationResult()
474 auto result = reinterpret_cast<const FourAxisCalibrationResult *>( in HandleCalibrationResult() local
476 success = SetCalibration(sensor.sensor_type, result->xBias, in HandleCalibrationResult()
477 result->yBias, result->zBias, result->wBias); in HandleCalibrationResult()
482 auto result = reinterpret_cast<const FloatCalibrationResult *>( in HandleCalibrationResult() local
484 if (sensor.have_cal_ref && (result->value != 0.0f)) { in HandleCalibrationResult()
486 (sensor.cal_ref / result->value)); in HandleCalibrationResult()
520 TransportResult result; in ReadAppEvents() local
532 result = ReadEvent(&event, timeout_ms); in ReadAppEvents()
538 if (result == TransportResult::Success && event->IsAppToHostEvent()) { in ReadAppEvents()
543 if (result != TransportResult::Success) { in ReadAppEvents()
544 LOGE("Error %d while reading", static_cast<int>(result)); in ReadAppEvents()
545 if (result != TransportResult::ParseFailure) { in ReadAppEvents()
546 return result; in ReadAppEvents()
558 TransportResult result; in ReadSensorEvents() local
563 result = ReadEvent(&event); in ReadSensorEvents()
564 if (result == TransportResult::Success && event->IsSensorEvent()) { in ReadSensorEvents()
569 if (result != TransportResult::Success) { in ReadSensorEvents()
570 LOGE("Error %d while reading", static_cast<int>(result)); in ReadSensorEvents()
571 if (result != TransportResult::ParseFailure) { in ReadSensorEvents()
591 auto result = WriteEvent(req); in SendCalibrationData() local
592 return (result == TransportResult::Success); in SendCalibrationData()
603 ContextHub::TransportResult result = ReadEvent(responseBuf, timeout_ms); in ReadEvent() local
604 if (result == TransportResult::Success) { in ReadEvent()
607 result = TransportResult::ParseFailure; in ReadEvent()
610 return result; in ReadEvent()