Searched refs:fraction (Results 1 – 5 of 5) sorted by relevance
456 double fraction; in TryUpdateBinary() local458 if (tokens.size() == 2 && android::base::ParseDouble(tokens[0].c_str(), &fraction) && in TryUpdateBinary()460 ui->ShowProgress(fraction * (1 - VERIFICATION_PROGRESS_FRACTION), seconds); in TryUpdateBinary()466 double fraction; in TryUpdateBinary() local467 if (tokens.size() == 1 && android::base::ParseDouble(tokens[0].c_str(), &fraction)) { in TryUpdateBinary()468 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()
303 float fraction = 0.0; in run_graphics_test() local305 fraction += .01; in run_graphics_test()306 ui->SetProgress(fraction); in run_graphics_test()
88 virtual void SetProgress(float fraction) = 0;
210 void SetProgress(float fraction) override;