Searched refs:allowance (Results 1 – 2 of 2) sorted by relevance
207 int allowance = (int) Math.min(remaining, BUFFER_SIZE - mBytesDigestedSinceReset); in consume() local209 buffer.limit(buffer.position() + allowance); in consume()211 offset += allowance; in consume()212 remaining -= allowance; in consume()213 mBytesDigestedSinceReset += allowance; in consume()
291 auto const allowance = period * allowancePercentRatio.num / allowancePercentRatio.den; in periodConfirmed() local293 return std::abs(*HwcVsyncPeriod - period) < allowance; in periodConfirmed()297 return std::abs(distance - period) < allowance; in periodConfirmed()