Home
last modified time | relevance | path

Searched refs:constrainValue (Results 1 – 24 of 24) sorted by relevance

/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ogg/
DDefaultOggSeeker.java133 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/
DTrimmingAudioProcessor.java107 int endBufferBytesToOutput = Util.constrainValue(remainingBytesToOutput, 0, endBufferSize); in queueInput()
112 int inputBufferBytesToOutput = Util.constrainValue(remainingBytesToOutput, 0, remaining); in queueInput()
DSonicAudioProcessor.java97 speed = Util.constrainValue(speed, MINIMUM_SPEED, MAXIMUM_SPEED); in setSpeed()
DDefaultAudioSink.java1576 return Util.constrainValue(multipliedBufferSize, minAppBufferSize, maxAppBufferSize); in getDefaultBufferSize()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/pgs/
DPgsDecoder.java153 | (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/
DXingSeeker.java130 timeUs = Util.constrainValue(timeUs, 0, durationUs); in getSeekPoints()
149 positionOffset = Util.constrainValue(positionOffset, xingFrameSize, dataSize - 1); in getSeekPoints()
DMlltSeeker.java70 timeUs = Util.constrainValue(timeUs, 0, durationUs); in getSeekPoints()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DSilenceMediaSource.java224 return Util.constrainValue(positionUs, 0, durationUs); in constrainSeekPosition()
241 positionBytes = Util.constrainValue(getAudioByteCount(positionUs), 0, durationBytes); in seekTo()
DClippingMediaPeriod.java237 Util.constrainValue( in clipSeekParameters()
240 Util.constrainValue( in clipSeekParameters()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/wav/
DWavSeekMap.java54 blockIndex = Util.constrainValue(blockIndex, 0, blockCount - 1); in getSeekPoints()
DWavExtractor.java525 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/
DTx3gDecoder.java103 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/
DConstantBitrateSeekMap.java120 Util.constrainValue(positionOffset, /* min= */ 0, /* max= */ dataSize - frameSize); in getFramePositionForTimeUs()
DFlacStreamMetadata.java206 return Util.constrainValue(sampleNumber, /* min= */ 0, totalSamples - 1); in getSampleNumber()
DDefaultExtractorInput.java207 int newPeekCapacity = Util.constrainValue(peekBuffer.length * 2, in ensureSpaceForPeek()
DBinarySearchSeeker.java306 return Util.constrainValue(estimatedPosition, floorBytePosition, ceilingBytePosition - 1); in calculateNextSearchBytePosition()
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DDefaultTimeBar.java767 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()
DPlayerControlView.java734 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/
DBasePlayer.java181 : duration == 0 ? 100 : Util.constrainValue((int) ((position * 100) / duration), 0, 100); in getBufferedPercentage()
DSimpleExoPlayer.java779 audioVolume = Util.constrainValue(audioVolume, /* min= */ 0, /* max= */ 1); in setVolume()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/dvb/
DDvbParser.java472 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/
DUtil.java690 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/
DDefaultDashChunkSource.java456 : Util.constrainValue(
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/
DAtomParsers.java1468 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()