Lines Matching refs:props
501 static void doLogValues(const HealthInfo& props, const struct healthd_config& healthd_config) { in doLogValues() argument
504 if (props.batteryPresent) { in doLogValues()
506 props.batteryLevel, props.batteryVoltageMillivolts, in doLogValues()
507 props.batteryTemperatureTenthsCelsius < 0 ? "-" : "", in doLogValues()
508 abs(props.batteryTemperatureTenthsCelsius / 10), in doLogValues()
509 abs(props.batteryTemperatureTenthsCelsius % 10), props.batteryHealth, in doLogValues()
510 props.batteryStatus); in doLogValues()
515 props.batteryCurrentMicroamps); in doLogValues()
520 props.batteryFullChargeUah); in doLogValues()
525 props.batteryCycleCount); in doLogValues()
532 props.chargerAcOnline ? "a" : "", props.chargerUsbOnline ? "u" : "", in doLogValues()
533 props.chargerWirelessOnline ? "w" : "", props.chargerDockOnline ? "d" : ""); in doLogValues()
550 const HealthInfo& props = *mHealthInfo; in isChargerOnline() local
551 return props.chargerAcOnline | props.chargerUsbOnline | props.chargerWirelessOnline | in isChargerOnline()
552 props.chargerDockOnline; in isChargerOnline()
696 const HealthInfo& props = *mHealthInfo; in dumpState() local
700 props.chargerAcOnline, props.chargerUsbOnline, props.chargerWirelessOnline, in dumpState()
701 props.chargerDockOnline, props.maxChargingCurrentMicroamps, in dumpState()
702 props.maxChargingVoltageMicrovolts); in dumpState()
705 props.batteryStatus, props.batteryHealth, props.batteryPresent); in dumpState()
707 snprintf(vs, sizeof(vs), "level: %d voltage: %d temp: %d\n", props.batteryLevel, in dumpState()
708 props.batteryVoltageMillivolts, props.batteryTemperatureTenthsCelsius); in dumpState()
730 snprintf(vs, sizeof(vs), "current now: %d\n", props.batteryCurrentMicroamps); in dumpState()
735 snprintf(vs, sizeof(vs), "cycle count: %d\n", props.batteryCycleCount); in dumpState()
740 snprintf(vs, sizeof(vs), "Full charge: %d\n", props.batteryFullChargeUah); in dumpState()