Searched refs:subtractWithOverflowDefault (Results 1 – 3 of 3) sorted by relevance
/external/exoplayer/tree/library/common/src/test/java/com/google/android/exoplayer2/util/ |
D | UtilTest.java | 67 long res = Util.subtractWithOverflowDefault(5, 10, /* overflowResult= */ 0); in subtrackWithOverflowDefault_withoutUnderflow_returnsSubtract() 70 res = Util.subtractWithOverflowDefault(Long.MIN_VALUE + 1, 1, /* overflowResult= */ 12345); in subtrackWithOverflowDefault_withoutUnderflow_returnsSubtract() 73 res = Util.subtractWithOverflowDefault(Long.MAX_VALUE - 1, -1, /* overflowResult= */ 12345); in subtrackWithOverflowDefault_withoutUnderflow_returnsSubtract() 79 long res = Util.subtractWithOverflowDefault(Long.MIN_VALUE, 1, /* overflowResult= */ 12345); in subtrackWithOverflowDefault_withUnderflow_returnsOverflowDefault() 82 res = Util.subtractWithOverflowDefault(Long.MAX_VALUE, -1, /* overflowResult= */ 12345); in subtrackWithOverflowDefault_withUnderflow_returnsOverflowDefault()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/ |
D | SeekParameters.java | 90 Util.subtractWithOverflowDefault(positionUs, toleranceBeforeUs, Long.MIN_VALUE); in resolveSeekPositionUs()
|
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/util/ |
D | Util.java | 743 public static long subtractWithOverflowDefault(long x, long y, long overflowResult) { in subtractWithOverflowDefault() method in Util
|