Lines Matching refs:out_result

118     Result out_result = Result::UNKNOWN;  in getChargeCounterUah()  local
119 auto ret = service_->getChargeCounter([out, &out_result](auto result, auto value) { in getChargeCounterUah()
120 out_result = result; in getChargeCounterUah()
121 if (out_result != Result::SUCCESS) return; in getChargeCounterUah()
124 return ReturnAndResultToStatus(ret, out_result); in getChargeCounterUah()
128 Result out_result = Result::UNKNOWN; in getCurrentNowMicroamps() local
129 auto ret = service_->getCurrentNow([out, &out_result](auto result, auto value) { in getCurrentNowMicroamps()
130 out_result = result; in getCurrentNowMicroamps()
131 if (out_result != Result::SUCCESS) return; in getCurrentNowMicroamps()
134 return ReturnAndResultToStatus(ret, out_result); in getCurrentNowMicroamps()
138 Result out_result = Result::UNKNOWN; in getCurrentAverageMicroamps() local
139 auto ret = service_->getCurrentAverage([out, &out_result](auto result, auto value) { in getCurrentAverageMicroamps()
140 out_result = result; in getCurrentAverageMicroamps()
141 if (out_result != Result::SUCCESS) return; in getCurrentAverageMicroamps()
144 return ReturnAndResultToStatus(ret, out_result); in getCurrentAverageMicroamps()
148 Result out_result = Result::UNKNOWN; in getCapacity() local
149 auto ret = service_->getCapacity([out, &out_result](auto result, auto value) { in getCapacity()
150 out_result = result; in getCapacity()
151 if (out_result != Result::SUCCESS) return; in getCapacity()
154 return ReturnAndResultToStatus(ret, out_result); in getCapacity()
158 Result out_result = Result::UNKNOWN; in getEnergyCounterNwh() local
159 auto ret = service_->getEnergyCounter([out, &out_result](auto result, auto value) { in getEnergyCounterNwh()
160 out_result = result; in getEnergyCounterNwh()
161 if (out_result != Result::SUCCESS) return; in getEnergyCounterNwh()
164 return ReturnAndResultToStatus(ret, out_result); in getEnergyCounterNwh()
168 Result out_result = Result::UNKNOWN; in getChargeStatus() local
169 auto ret = service_->getChargeStatus([out, &out_result](auto result, auto value) { in getChargeStatus()
170 out_result = result; in getChargeStatus()
171 if (out_result != Result::SUCCESS) return; in getChargeStatus()
174 return ReturnAndResultToStatus(ret, out_result); in getChargeStatus()
178 Result out_result = Result::UNKNOWN; in getStorageInfo() local
179 auto ret = service_->getStorageInfo([out, &out_result](auto result, const auto& value) { in getStorageInfo()
180 out_result = result; in getStorageInfo()
181 if (out_result != Result::SUCCESS) return; in getStorageInfo()
190 return ReturnAndResultToStatus(ret, out_result); in getStorageInfo()
194 Result out_result = Result::UNKNOWN; in getDiskStats() local
195 auto ret = service_->getDiskStats([out, &out_result](auto result, const auto& value) { in getDiskStats()
196 out_result = result; in getDiskStats()
197 if (out_result != Result::SUCCESS) return; in getDiskStats()
206 return ReturnAndResultToStatus(ret, out_result); in getDiskStats()
210 Result out_result = Result::UNKNOWN; in getHealthInfo() local
211 auto ret = service_->getHealthInfo([out, &out_result](auto result, const auto& value) { in getHealthInfo()
212 out_result = result; in getHealthInfo()
213 if (out_result != Result::SUCCESS) return; in getHealthInfo()
217 return ReturnAndResultToStatus(ret, out_result); in getHealthInfo()