Lines Matching defs:percentage
1632 void NuPlayer::GenericSource::BufferingMonitor::notifyBufferingUpdate_l(int32_t percentage) {
1636 // percentage and don't allow it to go backward.
1637 if (percentage < mPrevBufferPercentage) {
1638 percentage = mPrevBufferPercentage;
1639 } else if (percentage > 100) {
1640 percentage = 100;
1643 mPrevBufferPercentage = percentage;
1645 ALOGV("notifyBufferingUpdate_l: buffering %d%%", percentage);
1649 msg->setInt32("percentage", percentage);
1778 int percentage = 100.0 * cachedPosUs / mDurationUs;
1779 if (percentage > 100) {
1780 percentage = 100;
1783 notifyBufferingUpdate_l(percentage);