Searched refs:fraction (Results 1 – 5 of 5) sorted by relevance
469 double fraction; in TryUpdateBinary() local471 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() local480 if (tokens.size() == 1 && android::base::ParseDouble(tokens[0].c_str(), &fraction)) { in TryUpdateBinary()481 ui->SetProgress(fraction); in TryUpdateBinary()
1029 void ScreenRecoveryUI::SetProgress(float fraction) { in SetProgress() argument1031 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()
88 virtual void SetProgress(float fraction) = 0;
210 void SetProgress(float fraction) override;
303 float fraction = 0.0; in run_graphics_test() local305 fraction += .01; in run_graphics_test()306 ui->SetProgress(fraction); in run_graphics_test()