Home
last modified time | relevance | path

Searched refs:MAX_DELTA (Results 1 – 7 of 7) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DPresentationSyncTest.java189 final double MAX_DELTA = 0.05; in runThroughputTest() local
190 if (delta > MAX_DELTA) { in runThroughputTest()
191 throw new RuntimeException("Time delta exceeds tolerance (" + MAX_DELTA + in runThroughputTest()
DMediaMetadataRetrieverTest.java682 final float MAX_DELTA = 0.025f; in approxEquals() local
683 return (Math.abs(expected.red() - actual.red()) <= MAX_DELTA) in approxEquals()
684 && (Math.abs(expected.green() - actual.green()) <= MAX_DELTA) in approxEquals()
685 && (Math.abs(expected.blue() - actual.blue()) <= MAX_DELTA); in approxEquals()
DHeifWriterTest.java604 final float MAX_DELTA = 0.025f; in approxEquals() local
605 return (Math.abs(expected.red() - actual.red()) <= MAX_DELTA) in approxEquals()
606 && (Math.abs(expected.green() - actual.green()) <= MAX_DELTA) in approxEquals()
607 && (Math.abs(expected.blue() - actual.blue()) <= MAX_DELTA); in approxEquals()
DEncodeVirtualDisplayTest.java517 final int MAX_DELTA = 7; in approxEquals() local
518 return Math.abs(expected - actual) <= MAX_DELTA; in approxEquals()
DDecodeEditEncodeTest.java803 final int MAX_DELTA = 8; in isColorClose() local
808 return (delta <= MAX_DELTA); in isColorClose()
DEncodeDecodeTest.java1361 final int MAX_DELTA = 8; in isColorClose() local
1366 return (delta <= MAX_DELTA); in isColorClose()
DEncodeVirtualDisplayWithCompositionTest.java506 final int MAX_DELTA = 4; in approxEquals() local
507 return Math.abs(expected - actual) <= MAX_DELTA; in approxEquals()