Searched refs:FLOAT_TOLERANCE (Results 1 – 5 of 5) sorted by relevance
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityNodeInfo_RangeInfoTest.java | 32 public static final float FLOAT_TOLERANCE = 0.001f; field in AccessibilityNodeInfo_RangeInfoTest 40 assertEquals(-100, r.getMin(), FLOAT_TOLERANCE); in testObtain() 41 assertEquals(0, r.getMax(), FLOAT_TOLERANCE); in testObtain() 42 assertEquals(-50, r.getCurrent(), FLOAT_TOLERANCE); in testObtain() 46 assertEquals(-1.5f, r.getMin(), FLOAT_TOLERANCE); in testObtain() 47 assertEquals(1.5f, r.getMax(), FLOAT_TOLERANCE); in testObtain() 48 assertEquals(0.0f, r.getCurrent(), FLOAT_TOLERANCE); in testObtain() 52 assertEquals(0.0f, r.getMin(), FLOAT_TOLERANCE); in testObtain() 53 assertEquals(100.0f, r.getMax(), FLOAT_TOLERANCE); in testObtain() 54 assertEquals(50.0f, r.getCurrent(), FLOAT_TOLERANCE); in testObtain()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | ParamsTest.java | 35 private static final float FLOAT_TOLERANCE = .00001f; field in ParamsTest 61 && p.getTolerance() < MAX_DEFAULT_TOLERANCE + FLOAT_TOLERANCE); in testSyncParamsDefaults() 108 assertEquals(f, p.getTolerance(), FLOAT_TOLERANCE); 124 assertEquals(lastValue, p.getTolerance(), FLOAT_TOLERANCE); 147 assertEquals(f, p.getFrameRate(), FLOAT_TOLERANCE); 163 assertEquals(.5f, p.getTolerance(), FLOAT_TOLERANCE); 172 assertEquals(.5f, p.getTolerance(), FLOAT_TOLERANCE); 185 assertEquals(25.f, p.getFrameRate(), FLOAT_TOLERANCE); 194 && p.getTolerance() < MAX_DEFAULT_TOLERANCE + FLOAT_TOLERANCE); 195 assertEquals(25.f, p.getFrameRate(), FLOAT_TOLERANCE); [all …]
|
D | MediaSyncTest.java | 73 private static final float FLOAT_TOLERANCE = .00001f; field in MediaSyncTest 217 assertEquals(rate, pbp.getSpeed(), FLOAT_TOLERANCE); in testSetPlaybackParamsSucceed()
|
D | MediaPlayerTest.java | 93 private static final float FLOAT_TOLERANCE = .0001f; field in MediaPlayerTest 1242 FLOAT_TOLERANCE + playbackRate * sync.getTolerance()); in testPlaybackRate() 1253 assertEquals(0.f, pbp.getSpeed(), FLOAT_TOLERANCE); in testPlaybackRate()
|
/cts/tests/tests/view/src/android/view/textclassifier/cts/ |
D | ConversationActionsTest.java | 56 private static final float FLOAT_TOLERANCE = 0.01f; field in ConversationActionsTest 334 assertThat(conversationAction.getConfidenceScore()).isWithin(FLOAT_TOLERANCE).of(0.0f); in assertMinimalConversationAction() 341 assertThat(conversationAction.getConfidenceScore()).isWithin(FLOAT_TOLERANCE).of(1.0f); in assertFullConversationAction()
|