Lines Matching refs:durationNs
147 void updateMinMaxVolume_l(int64_t durationNs, double deviceVolume) in updateMinMaxVolume_l() argument
151 mMaxVolumeDurationNs = durationNs; in updateMinMaxVolume_l()
153 mMaxVolumeDurationNs += durationNs; in updateMinMaxVolume_l()
157 mMinVolumeDurationNs = durationNs; in updateMinMaxVolume_l()
159 mMinVolumeDurationNs += durationNs; in updateMinMaxVolume_l()
190 const int64_t durationNs = mLastVolumeChangeTimeNs == 0 in logVolume_l() local
192 if (durationNs > 0) { in logVolume_l()
195 mDeviceVolume += (mVolume - mDeviceVolume) * durationNs in logVolume_l()
196 / (durationNs + mDeviceTimeNs); in logVolume_l()
197 mDeviceTimeNs += durationNs; in logVolume_l()
198 mCumulativeTimeNs += durationNs; in logVolume_l()
200 updateMinMaxVolume_l(durationNs, mVolume); // always update. in logVolume_l()