Searched refs:fraction (Results 1 – 5 of 5) sorted by relevance
438 double fraction; in try_update_binary() local440 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() local449 if (tokens.size() == 1 && android::base::ParseDouble(tokens[0].c_str(), &fraction)) { in try_update_binary()450 ui->SetProgress(fraction); in try_update_binary()
994 void ScreenRecoveryUI::SetProgress(float fraction) { in SetProgress() argument996 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()
86 virtual void SetProgress(float fraction) = 0;
210 void SetProgress(float fraction) override;
466 float fraction = 0.0; in run_graphics_test() local468 fraction += .01; in run_graphics_test()469 ui->SetProgress(fraction); in run_graphics_test()