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

/system/update_engine/scripts/update_payload/
H A 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 /
[all...]
/system/update_engine/payload_consumer/
H A Dpostinstall_runner_action.cc249 double frac = 0; local
250 if (sscanf(line.c_str(), "global_progress %lf", &frac) == 1 &&
251 !std::isnan(frac)) {
252 ReportProgress(frac);
259 void PostinstallRunnerAction::ReportProgress(double frac) { argument
266 if (!std::isfinite(frac) || frac < 0)
267 frac = 0;
268 if (frac > 1)
269 frac
[all...]
H A Dpostinstall_runner_action.h76 // global_progress <frac>
77 // <frac> should be between 0.0 and 1.0; sets the progress to the
78 // <frac> value.
82 // for |current_partition_| has a current progress of |frac|, a value between
84 void ReportProgress(double frac);
/system/extras/perfprofd/
H A Dperfprofdcore.cc806 double frac = erand48(random_seed);
807 sleep_before_collect = (unsigned) (((double)collection_interval) * frac);
/system/vold/
H A DCommandListener.cpp185 int frac = atoi(argv[4]); local
186 return sendGenericOkFail(cli, disk->partitionMixed(frac));

Completed in 161 milliseconds