DecoderCountersUtil
Artifact: androidx.media3:media3-test-utils
@UnstableApi
class DecoderCountersUtil
Assertions for DecoderCounters.
Summary
Public functions |
|
|---|---|
java-static Unit |
assertConsecutiveDroppedBufferLimit( |
java-static Unit |
assertDroppedBufferLimit( |
java-static Unit |
assertSkippedOutputBufferCount( |
java-static Unit |
assertTotalBufferCount(name: String!, counters: DecoderCounters!)Asserts that the input and output values in |
java-static Unit |
assertTotalBufferCount( |
java-static Unit |
assertVideoFrameProcessingOffsetSampleCount( |
java-static Int |
getTotalBufferCount(counters: DecoderCounters!)Returns the sum of the skipped, dropped and rendered buffers. |
Public functions
assertConsecutiveDroppedBufferLimit
java-static fun assertConsecutiveDroppedBufferLimit(
name: String!,
counters: DecoderCounters!,
limit: Int
): Unit
assertDroppedBufferLimit
java-static fun assertDroppedBufferLimit(
name: String!,
counters: DecoderCounters!,
limit: Int
): Unit
assertSkippedOutputBufferCount
java-static fun assertSkippedOutputBufferCount(
name: String!,
counters: DecoderCounters!,
expected: Int
): Unit
assertTotalBufferCount
java-static fun assertTotalBufferCount(name: String!, counters: DecoderCounters!): Unit
Asserts that the input and output values in counters are self-consistent.
assertTotalBufferCount
java-static fun assertTotalBufferCount(
name: String!,
counters: DecoderCounters!,
minCount: Int,
maxCount: Int
): Unit
assertVideoFrameProcessingOffsetSampleCount
java-static fun assertVideoFrameProcessingOffsetSampleCount(
name: String!,
counters: DecoderCounters!,
minCount: Int,
maxCount: Int
): Unit
getTotalBufferCount
java-static fun getTotalBufferCount(counters: DecoderCounters!): Int
Returns the sum of the skipped, dropped and rendered buffers.
| Parameters | |
|---|---|
counters: DecoderCounters! |
The counters for which the total should be calculated. |
| Returns | |
|---|---|
Int |
The sum of the skipped, dropped and rendered buffers. |