Lines Matching refs:candidate
6037 uint32_t candidate; in checkCompatibleSamplingRate() local
6039 candidate = mSamplingRates[i]; in checkCompatibleSamplingRate()
6040 if (candidate == samplingRate) { in checkCompatibleSamplingRate()
6042 *updatedSamplingRate = candidate; in checkCompatibleSamplingRate()
6047 if (candidate < samplingRate) { in checkCompatibleSamplingRate()
6048 if (maxBelow < 0 || candidate > mSamplingRates[maxBelow]) { in checkCompatibleSamplingRate()
6053 if (minAbove < 0 || candidate < mSamplingRates[minAbove]) { in checkCompatibleSamplingRate()
6066 candidate = mSamplingRates[minAbove]; in checkCompatibleSamplingRate()
6067 if (candidate / kMaxDownSampleRatio <= samplingRate) { in checkCompatibleSamplingRate()
6069 *updatedSamplingRate = candidate; in checkCompatibleSamplingRate()
6076 candidate = mSamplingRates[maxBelow]; in checkCompatibleSamplingRate()
6077 if (candidate * kMaxUpSampleRatio >= samplingRate) { in checkCompatibleSamplingRate()
6079 *updatedSamplingRate = candidate; in checkCompatibleSamplingRate()