Home
last modified time | relevance | path

Searched refs:cur_level (Results 1 – 3 of 3) sorted by relevance

/system/core/healthd/
Dhealthd_draw.cpp67 if (batt_anim->cur_status == BATTERY_STATUS_UNKNOWN || batt_anim->cur_level < 0 || in redraw_screen()
172 int cur_level = anim->cur_level; in draw_percent() local
174 cur_level = 100; in draw_percent()
177 if (cur_level < 0) return; in draw_percent()
184 std::string str = base::StringPrintf("%d%%", cur_level); in draw_percent()
Dhealthd_mode_charger.cpp152 .cur_level = 0,
351 batt_anim->cur_level = batt_prop->batteryLevel; in update_screen_state()
356 if (batt_anim->cur_level >= batt_anim->frames[i].min_level && in update_screen_state()
357 batt_anim->cur_level <= batt_anim->frames[i].max_level) { in update_screen_state()
382 if (batt_anim->num_frames == 0 || batt_anim->cur_level < 0) { in update_screen_state()
399 (batt_anim->cur_level < batt_anim->frames[batt_anim->cur_frame].min_level || in update_screen_state()
400 batt_anim->cur_level > batt_anim->frames[batt_anim->cur_frame].max_level)) { in update_screen_state()
474 if (charger->batt_anim->cur_level >= charger->boot_min_cap) { in process_key()
Danimation.h86 int cur_level; // current battery level being animated (0-100) member