Searched refs:epsilon (Results 1 – 2 of 2) sorted by relevance
110 final long epsilon = 500; // Allow ~500 ms of error when comparing times. in testSystemProto() local119 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()
151 final float epsilon = fullWidth / 20; in testListEllipsize() local152 for (float width = epsilon; width < fullWidth - epsilon / 2; width += epsilon) { in testListEllipsize()