Lines Matching refs:permille
529 int permille = in format() local
531 if ((permille < -1) || (1 < permille)) { in format()
534 const char* prefix = (permille > 0) ? "+" : ""; in format()
536 if (permille > 999) { in format()
537 permille = (permille + 1000) / 100; // Now tenths fold in format()
541 if ((-99 < permille) && (permille < 99)) { in format()
543 "%s%d.%u%s", prefix, permille / 10, in format()
544 ((permille < 0) ? (-permille % 10) : (permille % 10)), in format()
548 "%s%d%s", prefix, (permille + 5) / 10, units); in format()
931 unsigned permille = ((newest - dropped) * 1000 + (span / 2)) / span; in Format() local
932 if ((permille > 1) && (permille < 999)) { in Format()
933 output += android::base::StringPrintf("(%u", permille / 10); in Format()
934 permille %= 10; in Format()
935 if (permille) { in Format()
936 output += android::base::StringPrintf(".%u", permille); in Format()