Home
last modified time | relevance | path

Searched refs:fraction (Results 1 – 5 of 5) sorted by relevance

/bootable/recovery/install/
Dinstall.cpp438 double fraction; in try_update_binary() local
440 if (tokens.size() == 2 && android::base::ParseDouble(tokens[0].c_str(), &fraction) && in try_update_binary()
442 ui->ShowProgress(fraction * (1 - VERIFICATION_PROGRESS_FRACTION), seconds); in try_update_binary()
448 double fraction; in try_update_binary() local
449 if (tokens.size() == 1 && android::base::ParseDouble(tokens[0].c_str(), &fraction)) { in try_update_binary()
450 ui->SetProgress(fraction); in try_update_binary()
/bootable/recovery/recovery_ui/
Dscreen_ui.cpp994 void ScreenRecoveryUI::SetProgress(float fraction) { in SetProgress() argument
996 if (fraction < 0.0) fraction = 0.0; in SetProgress()
997 if (fraction > 1.0) fraction = 1.0; in SetProgress()
998 if (progressBarType == DETERMINATE && fraction > progress) { in SetProgress()
1002 if ((int)(progress * scale) != (int)(fraction * scale)) { in SetProgress()
1003 progress = fraction; in SetProgress()
/bootable/recovery/recovery_ui/include/recovery_ui/
Dui.h86 virtual void SetProgress(float fraction) = 0;
Dscreen_ui.h210 void SetProgress(float fraction) override;
/bootable/recovery/
Drecovery.cpp466 float fraction = 0.0; in run_graphics_test() local
468 fraction += .01; in run_graphics_test()
469 ui->SetProgress(fraction); in run_graphics_test()