Lines Matching refs:props

75 void BatteryRechargingControl::updateBatteryProperties(struct android::BatteryProperties *props) {  in updateBatteryProperties()  argument
86 props->batteryStatus = getBatteryStatus(charger_status.c_str()); in updateBatteryProperties()
88 if ((state_ == INACTIVE) && (props->batteryLevel < kFullSoc)) in updateBatteryProperties()
92 << " batteryLevel: " << props->batteryLevel; in updateBatteryProperties()
98 if (props->batteryLevel != kFullSoc) { in updateBatteryProperties()
103 props->batteryLevel = kFullSoc; in updateBatteryProperties()
108 props->batteryLevel = RemapSOC(props->batteryLevel); in updateBatteryProperties()
114 props->batteryLevel = kFullSoc; in updateBatteryProperties()
119 recharge_soc_ = props->batteryLevel; in updateBatteryProperties()
120 props->batteryLevel = kFullSoc; in updateBatteryProperties()
122 if (props->batteryLevel < recharge_soc_) { in updateBatteryProperties()
126 props->batteryLevel = RemapSOC(props->batteryLevel); in updateBatteryProperties()
128 props->batteryLevel = kFullSoc; in updateBatteryProperties()
135 props->batteryLevel = RemapSOC(props->batteryLevel); in updateBatteryProperties()
140 cur_soc = props->batteryLevel; in updateBatteryProperties()
148 int battery_level = RemapSOC(props->batteryLevel); in updateBatteryProperties()
149 if ((battery_level == props->batteryLevel) && (battery_level != kFullSoc)) { in updateBatteryProperties()
153 props->batteryLevel = battery_level; in updateBatteryProperties()
156 if ((props->batteryLevel == kFullSoc) && (cur_soc >= recharge_soc_)) { in updateBatteryProperties()
161 recharge_soc_ = props->batteryLevel; in updateBatteryProperties()
169 LOG(INFO) << "Exit state_: " << state_ << " batteryLevel: " << props->batteryLevel; in updateBatteryProperties()