Lines Matching refs:max_value

124                                           const struct BrownoutDetectedInfo max_value) {  in uploadData()  argument
129 max_value.triggered_irq_); in uploadData()
131 max_value.triggered_timestamp_); in uploadData()
132 setAtomFieldValue(&values, BrownoutDetected::kBatteryTempFieldNumber, max_value.battery_temp_); in uploadData()
134 100 - max_value.battery_soc_); in uploadData()
136 max_value.battery_cycle_); in uploadData()
137 setAtomFieldValue(&values, BrownoutDetected::kVoltageNowFieldNumber, max_value.voltage_now_); in uploadData()
140 max_value.odpm_value_[0]); in uploadData()
142 max_value.odpm_value_[1]); in uploadData()
144 max_value.odpm_value_[2]); in uploadData()
146 max_value.odpm_value_[3]); in uploadData()
148 max_value.odpm_value_[4]); in uploadData()
150 max_value.odpm_value_[5]); in uploadData()
152 max_value.odpm_value_[6]); in uploadData()
154 max_value.odpm_value_[7]); in uploadData()
156 max_value.odpm_value_[8]); in uploadData()
158 max_value.odpm_value_[9]); in uploadData()
160 max_value.odpm_value_[10]); in uploadData()
162 max_value.odpm_value_[11]); in uploadData()
164 max_value.odpm_value_[12]); in uploadData()
166 max_value.odpm_value_[13]); in uploadData()
168 max_value.odpm_value_[14]); in uploadData()
170 max_value.odpm_value_[15]); in uploadData()
172 max_value.odpm_value_[16]); in uploadData()
174 max_value.odpm_value_[17]); in uploadData()
176 max_value.odpm_value_[18]); in uploadData()
178 max_value.odpm_value_[19]); in uploadData()
180 max_value.odpm_value_[20]); in uploadData()
182 max_value.odpm_value_[21]); in uploadData()
184 max_value.odpm_value_[22]); in uploadData()
186 max_value.odpm_value_[23]); in uploadData()
189 max_value.dvfs_value_[0]); in uploadData()
191 max_value.dvfs_value_[1]); in uploadData()
193 max_value.dvfs_value_[2]); in uploadData()
195 max_value.dvfs_value_[3]); in uploadData()
197 max_value.dvfs_value_[4]); in uploadData()
199 max_value.dvfs_value_[5]); in uploadData()
201 max_value.brownout_reason_); in uploadData()
203 setAtomFieldValue(&values, BrownoutDetected::kMaxCurrentFieldNumber, max_value.max_curr_); in uploadData()
204 setAtomFieldValue(&values, BrownoutDetected::kEvtCntUvlo1FieldNumber, max_value.evt_cnt_uvlo1_); in uploadData()
205 setAtomFieldValue(&values, BrownoutDetected::kEvtCntUvlo2FieldNumber, max_value.evt_cnt_uvlo2_); in uploadData()
206 setAtomFieldValue(&values, BrownoutDetected::kEvtCntOilo1FieldNumber, max_value.evt_cnt_oilo1_); in uploadData()
207 setAtomFieldValue(&values, BrownoutDetected::kEvtCntOilo2FieldNumber, max_value.evt_cnt_oilo2_); in uploadData()
208 setAtomFieldValue(&values, BrownoutDetected::kVimonVbattFieldNumber, max_value.vimon_vbatt_); in uploadData()
209 setAtomFieldValue(&values, BrownoutDetected::kVimonIbattFieldNumber, max_value.vimon_ibatt_); in uploadData()
212 max_value.mitigation_method_0_); in uploadData()
214 max_value.mitigation_method_0_count_); in uploadData()
216 max_value.mitigation_method_0_time_us_); in uploadData()
275 struct BrownoutDetectedInfo max_value = {}; in logBrownoutCsv() local
276 max_value.voltage_now_ = DEFAULT_BATTERY_VOLT; in logBrownoutCsv()
277 max_value.battery_soc_ = DEFAULT_BATTERY_SOC; in logBrownoutCsv()
278 max_value.battery_temp_ = DEFAULT_BATTERY_TEMP; in logBrownoutCsv()
280 max_value.brownout_reason_ = brownoutReasonCheck(brownoutReasonProp); in logBrownoutCsv()
281 if (max_value.brownout_reason_ < 0) { in logBrownoutCsv()
303 max_value.triggered_timestamp_ = parseTimestamp(row[TIMESTAMP_IDX].c_str()); in logBrownoutCsv()
304 max_value.triggered_irq_ = parseIRQ(row[IRQ_IDX]); in logBrownoutCsv()
305 max_value.battery_soc_ = atoi(row[SOC_IDX].c_str()); in logBrownoutCsv()
306 max_value.battery_temp_ = atoi(row[TEMP_IDX].c_str()); in logBrownoutCsv()
307 max_value.battery_cycle_ = atoi(row[CYCLE_IDX].c_str()); in logBrownoutCsv()
308 max_value.voltage_now_ = atoi(row[VOLTAGE_IDX].c_str()); in logBrownoutCsv()
310 max_value.dvfs_value_[i] = atoi(row[i + DVFS_CHANNEL_0].c_str()); in logBrownoutCsv()
313 max_value.odpm_value_[i] = atoi(row[i + ODPM_CHANNEL_0].c_str()); in logBrownoutCsv()
316 max_value.evt_cnt_oilo1_ = atoi(row[EVT_CNT_IDX_OILO1].c_str()); in logBrownoutCsv()
317 max_value.evt_cnt_oilo2_ = atoi(row[EVT_CNT_IDX_OILO2].c_str()); in logBrownoutCsv()
318 max_value.evt_cnt_uvlo1_ = atoi(row[EVT_CNT_IDX_UVLO1].c_str()); in logBrownoutCsv()
319 max_value.evt_cnt_uvlo2_ = atoi(row[EVT_CNT_IDX_UVLO2].c_str()); in logBrownoutCsv()
320 max_value.max_curr_ = atoi(row[MAX_CURR].c_str()); in logBrownoutCsv()
323 max_value.vimon_vbatt_ = atoi(row[IDX_VIMON_V].c_str()); in logBrownoutCsv()
324 max_value.vimon_ibatt_ = atoi(row[IDX_VIMON_I].c_str()); in logBrownoutCsv()
327 if (!isAlreadyUpdated && max_value.battery_temp_ != DEFAULT_BATTERY_TEMP) { in logBrownoutCsv()
330 uploadData(stats_client, max_value); in logBrownoutCsv()
343 struct BrownoutDetectedInfo max_value = {}; in logBrownout() local
344 max_value.voltage_now_ = DEFAULT_BATTERY_VOLT; in logBrownout()
345 max_value.battery_soc_ = DEFAULT_BATTERY_SOC; in logBrownout()
346 max_value.battery_temp_ = DEFAULT_BATTERY_TEMP; in logBrownout()
349 max_value.brownout_reason_ = brownoutReasonCheck(brownoutReasonProp); in logBrownout()
350 if (max_value.brownout_reason_ < 0) { in logBrownout()
365 max_value.triggered_irq_ = BrownoutDetected::BATOILO; in logBrownout()
369 max_value.triggered_irq_ = BrownoutDetected::UVLO1; in logBrownout()
373 max_value.triggered_irq_ = BrownoutDetected::UVLO2; in logBrownout()
377 max_value.triggered_irq_ = BrownoutDetected::SMPL_WARN; in logBrownout()
383 max_value.triggered_timestamp_ = parseTimestamp(line.c_str()); in logBrownout()
386 if (updateIfFound(line, kBatterySocPattern, &max_value.battery_soc_, kUpdateMin)) { in logBrownout()
389 if (updateIfFound(line, kBatteryTempPattern, &max_value.battery_temp_, kUpdateMin)) { in logBrownout()
392 if (updateIfFound(line, kBatteryCyclePattern, &max_value.battery_cycle_, kUpdateMax)) { in logBrownout()
395 if (updateIfFound(line, kFgPattern, &max_value.voltage_now_, kUpdateMin)) { in logBrownout()
398 if (updateIfFound(line, kDvfsPattern, &max_value.dvfs_value_[dvfs_index], kUpdateMax)) { in logBrownout()
406 if (updateIfFound(line, kOdpmPattern, &max_value.odpm_value_[odpm_index], kUpdateMax)) { in logBrownout()
415 if (!isAlreadyUpdated && max_value.battery_temp_ != DEFAULT_BATTERY_TEMP) { in logBrownout()
418 uploadData(stats_client, max_value); in logBrownout()