Searched refs:newValue (Results 1 – 4 of 4) sorted by relevance
48 uint32_t newValue = (aSuccess) ? 0 : kMaxRateValue; in AddSample() local54 mFailureRate = static_cast<uint16_t>(((oldAverage * (n - 1)) + newValue + (n / 2)) / n); in AddSample()60 uint16_t newValue; in Add() local70 newValue = static_cast<uint16_t>(-aRss); in Add()71 newValue <<= kPrecisionBitShift; in Add()76 mAverage = static_cast<uint16_t>(((mAverage * (mCount - 1)) + newValue) / mCount); in Add()
51 uint16_t newValue = mValue; in AddUint8() local55 newValue += mAtOddIndex ? aUint8 : (static_cast<uint16_t>(aUint8) << 8); in AddUint8()59 if (newValue < mValue) in AddUint8()61 newValue++; in AddUint8()64 mValue = newValue; in AddUint8()
146 uint32_t newValue = 0; in HandleEnergyScanResult() local155 newValue = (aResult->mMaxRssi >= kRssiThreshold) ? kMaxOccupancy : 0; in HandleEnergyScanResult()178 newAverage = (newAverage * weight + newValue) / (weight + 1); in HandleEnergyScanResult()
133 uint64_t newValue; in ParseAsUint64() local138 newValue = value + digit; in ParseAsUint64()139 VerifyOrExit(newValue >= value, error = kErrorInvalidArgs); in ParseAsUint64()140 value = newValue; in ParseAsUint64()