Searched refs:fraction (Results 1 – 7 of 7) sorted by relevance
211 void WearRecoveryUI::SetProgress(float fraction) { in SetProgress() argument214 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()
1039 void ScreenRecoveryUI::SetProgress(float fraction) { in SetProgress() argument1041 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()
61 void SetProgress(float fraction) override;67 size_t GetProgressFrameIndex(float fraction) const;
88 virtual void SetProgress(float fraction) = 0;
210 void SetProgress(float fraction) override;
535 double fraction; in TryUpdateBinary() local537 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() local546 if (tokens.size() == 1 && android::base::ParseDouble(tokens[0].c_str(), &fraction)) { in TryUpdateBinary()547 ui->SetProgress(fraction); in TryUpdateBinary()
303 float fraction = 0.0; in run_graphics_test() local305 fraction += .01; in run_graphics_test()306 ui->SetProgress(fraction); in run_graphics_test()