Searched refs:allowance (Results 1 – 2 of 2) sorted by relevance
179 auto const allowance = period * allowancePercentRatio.num / allowancePercentRatio.den; in periodConfirmed() local181 return std::abs(*HwcVsyncPeriod - period) < allowance; in periodConfirmed()185 return std::abs(distance - period) < allowance; in periodConfirmed()
216 int allowance = (int) Math.min(remaining, BUFFER_SIZE - mBytesDigestedSinceReset); in consume() local218 buffer.limit(buffer.position() + allowance); in consume()220 offset += allowance; in consume()221 remaining -= allowance; in consume()222 mBytesDigestedSinceReset += allowance; in consume()