Home
last modified time | relevance | path

Searched refs:epsilon (Results 1 – 2 of 2) sorted by relevance

/cts/hostsidetests/incident/src/com/android/server/cts/
DBatteryStatsIncidentTest.java110 final long epsilon = 500; // Allow ~500 ms of error when comparing times. in testSystemProto() local
119 assertTrue(totalUptimeMs <= totalRealtimeMs + epsilon); in testSystemProto()
123 assertTrue(batteryUptimeMs <= batteryRealtimeMs + epsilon); in testSystemProto()
125 batteryRealtimeMs <= totalRealtimeMs + epsilon); in testSystemProto()
126 assertTrue(batteryUptimeMs <= totalUptimeMs + epsilon); in testSystemProto()
130 assertTrue(screenOffUptimeMs <= screenOffRealtimeMs + epsilon); in testSystemProto()
131 assertTrue(screenOffRealtimeMs <= totalRealtimeMs + epsilon); in testSystemProto()
132 assertTrue(screenOffUptimeMs <= totalUptimeMs + epsilon); in testSystemProto()
135 assertTrue(screenDozeDurationMs <= screenOffRealtimeMs + epsilon); in testSystemProto()
/cts/tests/tests/text/src/android/text/cts/
DTextUtilsTest.java151 final float epsilon = fullWidth / 20; in testListEllipsize() local
152 for (float width = epsilon; width < fullWidth - epsilon / 2; width += epsilon) { in testListEllipsize()