Home
last modified time | relevance | path

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

/bootable/recovery/install/
Dinstall.cpp469 double fraction; in TryUpdateBinary() local
471 if (tokens.size() == 2 && android::base::ParseDouble(tokens[0].c_str(), &fraction) && in TryUpdateBinary()
473 ui->ShowProgress(fraction * (1 - VERIFICATION_PROGRESS_FRACTION), seconds); in TryUpdateBinary()
479 double fraction; in TryUpdateBinary() local
480 if (tokens.size() == 1 && android::base::ParseDouble(tokens[0].c_str(), &fraction)) { in TryUpdateBinary()
481 ui->SetProgress(fraction); in TryUpdateBinary()
/bootable/recovery/recovery_ui/
Dscreen_ui.cpp1029 void ScreenRecoveryUI::SetProgress(float fraction) { in SetProgress() argument
1031 if (fraction < 0.0) fraction = 0.0; in SetProgress()
1032 if (fraction > 1.0) fraction = 1.0; in SetProgress()
1033 if (progressBarType == DETERMINATE && fraction > progress) { in SetProgress()
1037 if ((int)(progress * scale) != (int)(fraction * scale)) { in SetProgress()
1038 progress = fraction; in SetProgress()
/bootable/recovery/recovery_ui/include/recovery_ui/
Dui.h88 virtual void SetProgress(float fraction) = 0;
Dscreen_ui.h210 void SetProgress(float fraction) override;
/bootable/recovery/
Drecovery.cpp303 float fraction = 0.0; in run_graphics_test() local
305 fraction += .01; in run_graphics_test()
306 ui->SetProgress(fraction); in run_graphics_test()