Lines Matching refs:permille
364 int permille = in format() local
366 if ((permille < -1) || (1 < permille)) { in format()
369 const char* prefix = (permille > 0) ? "+" : ""; in format()
371 if (permille > 999) { in format()
372 permille = (permille + 1000) / 100; // Now tenths fold in format()
376 if ((-99 < permille) && (permille < 99)) { in format()
378 "%s%d.%u%s", prefix, permille / 10, in format()
379 ((permille < 0) ? (-permille % 10) : (permille % 10)), in format()
383 "%s%d%s", prefix, (permille + 5) / 10, units); in format()
724 unsigned permille = ((newest - dropped) * 1000 + (span / 2)) / span; in format() local
725 if ((permille > 1) && (permille < 999)) { in format()
726 output += android::base::StringPrintf("(%u", permille / 10); in format()
727 permille %= 10; in format()
728 if (permille) { in format()
729 output += android::base::StringPrintf(".%u", permille); in format()