Home
last modified time | relevance | path

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

/bootable/recovery/recovery_ui/
Dwear_ui.cpp211 void WearRecoveryUI::SetProgress(float fraction) { in SetProgress() argument
214 if (fraction < 0.0) fraction = 0.0; in SetProgress()
215 if (fraction > 1.0) fraction = 1.0; in SetProgress()
216 if (progressBarType == DETERMINATE && fraction > progress) { in SetProgress()
218 if (GetProgressFrameIndex(fraction) != GetProgressFrameIndex(progress)) { in SetProgress()
220 progress = fraction; in SetProgress()
226 ScreenRecoveryUI::SetProgress(fraction); in SetProgress()
244 size_t WearRecoveryUI::GetProgressFrameIndex(float fraction) const { in GetProgressFrameIndex()
245 return static_cast<size_t>(fraction * (progress_frames_.size() - 1)); in GetProgressFrameIndex()
Dscreen_ui.cpp1039 void ScreenRecoveryUI::SetProgress(float fraction) { in SetProgress() argument
1041 if (fraction < 0.0) fraction = 0.0; in SetProgress()
1042 if (fraction > 1.0) fraction = 1.0; in SetProgress()
1043 if (progressBarType == DETERMINATE && fraction > progress) { in SetProgress()
1047 if ((int)(progress * scale) != (int)(fraction * scale)) { in SetProgress()
1048 progress = fraction; in SetProgress()
/bootable/recovery/recovery_ui/include/recovery_ui/
Dwear_ui.h61 void SetProgress(float fraction) override;
67 size_t GetProgressFrameIndex(float fraction) const;
Dui.h88 virtual void SetProgress(float fraction) = 0;
Dscreen_ui.h210 void SetProgress(float fraction) override;
/bootable/recovery/install/
Dinstall.cpp535 double fraction; in TryUpdateBinary() local
537 if (tokens.size() == 2 && android::base::ParseDouble(tokens[0].c_str(), &fraction) && in TryUpdateBinary()
539 ui->ShowProgress(fraction * (1 - VERIFICATION_PROGRESS_FRACTION), seconds); in TryUpdateBinary()
545 double fraction; in TryUpdateBinary() local
546 if (tokens.size() == 1 && android::base::ParseDouble(tokens[0].c_str(), &fraction)) { in TryUpdateBinary()
547 ui->SetProgress(fraction); in TryUpdateBinary()
/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()