Home
last modified time | relevance | path

Searched refs:frac (Results 1 – 5 of 5) sorted by relevance

/system/update_engine/scripts/update_payload/
Dformat_utils.py47 whole, frac = divmod(percent, factor)
48 while frac and not frac % 10:
49 frac /= 10
52 return '%d%s%%' % (whole, '.%0*d' % (precision, frac) if frac else '')
94 frac = (size % magnitude) * (10 ** precision) / magnitude
95 while frac and not frac % 10:
96 frac /= 10
97 return '%d%s %s' % (whole, '.%d' % frac if frac else '', suffixes[exp - 1])
/system/update_engine/payload_consumer/
Dpostinstall_runner_action.cc249 double frac = 0; in ProcessProgressLine() local
250 if (sscanf(line.c_str(), "global_progress %lf", &frac) == 1 && in ProcessProgressLine()
251 !std::isnan(frac)) { in ProcessProgressLine()
252 ReportProgress(frac); in ProcessProgressLine()
259 void PostinstallRunnerAction::ReportProgress(double frac) { in ReportProgress() argument
266 if (!std::isfinite(frac) || frac < 0) in ReportProgress()
267 frac = 0; in ReportProgress()
268 if (frac > 1) in ReportProgress()
269 frac = 1; in ReportProgress()
271 (accumulated_weight_ + partition_weight_[current_partition_] * frac) / in ReportProgress()
Dpostinstall_runner_action.h84 void ReportProgress(double frac);
/system/extras/perfprofd/
Dperfprofdcore.cc806 double frac = erand48(random_seed); in determine_before_after() local
807 sleep_before_collect = (unsigned) (((double)collection_interval) * frac); in determine_before_after()
/system/vold/
DCommandListener.cpp185 int frac = atoi(argv[4]); in runCommand() local
186 return sendGenericOkFail(cli, disk->partitionMixed(frac)); in runCommand()