Searched refs:FLOAT_TOLERANCE (Results 1 – 5 of 5) sorted by relevance
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityNodeInfo_RangeInfoTest.java | 41 public static final float FLOAT_TOLERANCE = 0.001f; field in AccessibilityNodeInfo_RangeInfoTest 54 assertEquals(-100, r.getMin(), FLOAT_TOLERANCE); in testObtain() 55 assertEquals(0, r.getMax(), FLOAT_TOLERANCE); in testObtain() 56 assertEquals(-50, r.getCurrent(), FLOAT_TOLERANCE); in testObtain() 60 assertEquals(-1.5f, r.getMin(), FLOAT_TOLERANCE); in testObtain() 61 assertEquals(1.5f, r.getMax(), FLOAT_TOLERANCE); in testObtain() 62 assertEquals(0.0f, r.getCurrent(), FLOAT_TOLERANCE); in testObtain() 66 assertEquals(0.0f, r.getMin(), FLOAT_TOLERANCE); in testObtain() 67 assertEquals(100.0f, r.getMax(), FLOAT_TOLERANCE); in testObtain() 68 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 | 72 private static final float FLOAT_TOLERANCE = .00001f; field in MediaSyncTest 214 assertEquals(rate, pbp.getSpeed(), FLOAT_TOLERANCE); in testSetPlaybackParamsSucceed()
|
D | MediaPlayerTest.java | 98 private static final float FLOAT_TOLERANCE = .0001f; field in MediaPlayerTest 1269 FLOAT_TOLERANCE + playbackRate * sync.getTolerance()); in testPlaybackRate() 1280 assertEquals(0.f, pbp.getSpeed(), FLOAT_TOLERANCE); in testPlaybackRate()
|
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/ |
D | ConversationActionTest.java | 41 private static final float FLOAT_TOLERANCE = 0.01f; field in ConversationActionTest 94 assertThat(conversationAction.getConfidenceScore()).isWithin(FLOAT_TOLERANCE).of(0.0f); in assertMinimalConversationAction() 101 assertThat(conversationAction.getConfidenceScore()).isWithin(FLOAT_TOLERANCE).of(1.0f); in assertFullConversationAction()
|