/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ogg/ |
D | DefaultOggSeeker.java | 133 this.targetGranule = Util.constrainValue(targetGranule, 0, totalGranules - 1); in startSeek() 192 return Util.constrainValue(nextPosition, start, end - 1); in getNextSeekPosition() 299 Util.constrainValue(estimatedPosition, payloadStartPosition, payloadEndPosition - 1); in getSeekPoints()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/audio/ |
D | TrimmingAudioProcessor.java | 107 int endBufferBytesToOutput = Util.constrainValue(remainingBytesToOutput, 0, endBufferSize); in queueInput() 112 int inputBufferBytesToOutput = Util.constrainValue(remainingBytesToOutput, 0, remaining); in queueInput()
|
D | SonicAudioProcessor.java | 97 speed = Util.constrainValue(speed, MINIMUM_SPEED, MAXIMUM_SPEED); in setSpeed()
|
D | DefaultAudioSink.java | 1576 return Util.constrainValue(multipliedBufferSize, minAppBufferSize, maxAppBufferSize); in getDefaultBufferSize()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/pgs/ |
D | PgsDecoder.java | 153 | (Util.constrainValue(r, 0, 255) << 16) in parsePaletteSection() 154 | (Util.constrainValue(g, 0, 255) << 8) in parsePaletteSection() 155 | Util.constrainValue(b, 0, 255); in parsePaletteSection()
|
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp3/ |
D | XingSeeker.java | 130 timeUs = Util.constrainValue(timeUs, 0, durationUs); in getSeekPoints() 149 positionOffset = Util.constrainValue(positionOffset, xingFrameSize, dataSize - 1); in getSeekPoints()
|
D | MlltSeeker.java | 70 timeUs = Util.constrainValue(timeUs, 0, durationUs); in getSeekPoints()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ |
D | SilenceMediaSource.java | 224 return Util.constrainValue(positionUs, 0, durationUs); in constrainSeekPosition() 241 positionBytes = Util.constrainValue(getAudioByteCount(positionUs), 0, durationBytes); in seekTo()
|
D | ClippingMediaPeriod.java | 237 Util.constrainValue( in clipSeekParameters() 240 Util.constrainValue( in clipSeekParameters()
|
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/wav/ |
D | WavSeekMap.java | 54 blockIndex = Util.constrainValue(blockIndex, 0, blockCount - 1); in getSeekPoints()
|
D | WavExtractor.java | 525 predictedSample = Util.constrainValue(predictedSample, /* min= */ -32768, /* max= */ 32767); in decodeBlockForChannel() 533 stepIndex = Util.constrainValue(stepIndex, /* min= */ 0, /* max= */ STEP_TABLE.length - 1); in decodeBlockForChannel()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/tx3g/ |
D | Tx3gDecoder.java | 103 defaultVerticalPlacement = Util.constrainValue(defaultVerticalPlacement, 0.0f, 0.95f); in Tx3gDecoder() 148 verticalPlacement = Util.constrainValue(verticalPlacement, 0.0f, 0.95f); in decode()
|
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ |
D | ConstantBitrateSeekMap.java | 120 Util.constrainValue(positionOffset, /* min= */ 0, /* max= */ dataSize - frameSize); in getFramePositionForTimeUs()
|
D | FlacStreamMetadata.java | 206 return Util.constrainValue(sampleNumber, /* min= */ 0, totalSamples - 1); in getSampleNumber()
|
D | DefaultExtractorInput.java | 207 int newPeekCapacity = Util.constrainValue(peekBuffer.length * 2, in ensureSpaceForPeek()
|
D | BinarySearchSeeker.java | 306 return Util.constrainValue(estimatedPosition, floorBytePosition, ceilingBytePosition - 1); in calculateNextSearchBytePosition()
|
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/ |
D | DefaultTimeBar.java | 767 long scrubPosition = Util.constrainValue(previousPosition + positionChange, 0, duration); in scrubIncrementally() 797 scrubberBar.right = Util.constrainValue((int) xPosition, progressBar.left, progressBar.right); in positionScrubber() 847 long adGroupTimeMs = Util.constrainValue(adGroupTimesMs[i], 0, duration); in drawTimeBar() 861 int playheadX = Util.constrainValue(scrubberBar.right, scrubberBar.left, progressBar.right); in drawPlayhead()
|
D | PlayerControlView.java | 734 Util.constrainValue(minUpdateIntervalMs, 16, MAX_UPDATE_INTERVAL_MS); in setTimeBarMinUpdateInterval() 1016 delayMs = Util.constrainValue(delayMs, timeBarMinUpdateIntervalMs, MAX_UPDATE_INTERVAL_MS); in updateProgress()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/ |
D | BasePlayer.java | 181 : duration == 0 ? 100 : Util.constrainValue((int) ((position * 100) / duration), 0, 100); in getBufferedPercentage()
|
D | SimpleExoPlayer.java | 779 audioVolume = Util.constrainValue(audioVolume, /* min= */ 0, /* max= */ 1); in setVolume()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/dvb/ |
D | DvbParser.java | 472 clutEntries[entryId] = getColor(a, Util.constrainValue(r, 0, 255), in parseClutDefinition() 473 Util.constrainValue(g, 0, 255), Util.constrainValue(b, 0, 255)); in parseClutDefinition()
|
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/util/ |
D | Util.java | 690 public static int constrainValue(int value, int min, int max) { in constrainValue() method in Util 702 public static long constrainValue(long value, long min, long max) { in constrainValue() method in Util 714 public static float constrainValue(float value, float min, float max) { in constrainValue() method in Util
|
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/ |
D | DefaultDashChunkSource.java | 456 : Util.constrainValue(
|
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/ |
D | AtomParsers.java | 1468 int latestDelayIndex = Util.constrainValue(MAX_GAPLESS_TRIM_SIZE_SAMPLES, 0, lastIndex); in canApplyEditWithGaplessInfo() 1470 Util.constrainValue(timestamps.length - MAX_GAPLESS_TRIM_SIZE_SAMPLES, 0, lastIndex); in canApplyEditWithGaplessInfo()
|