Home
last modified time | relevance | path

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

/cts/tests/sensor/src/android/hardware/cts/helpers/
DSensorCtsHelperTest.java52 assertEquals(1.0, SensorCtsHelper.getPeriod(1, TimeUnit.SECONDS), 0.001); in testGetPeriod()
53 assertEquals(0.1, SensorCtsHelper.getPeriod(10, TimeUnit.SECONDS), 0.001); in testGetPeriod()
54 assertEquals(100, SensorCtsHelper.getPeriod(10, TimeUnit.MILLISECONDS), 0.001); in testGetPeriod()
55 assertEquals(1, SensorCtsHelper.getPeriod(1000, TimeUnit.MILLISECONDS), 0.001); in testGetPeriod()
56 assertEquals(0.1, SensorCtsHelper.getPeriod(10000, TimeUnit.MILLISECONDS), 0.001); in testGetPeriod()
57 assertEquals(100, SensorCtsHelper.getPeriod(10000, TimeUnit.MICROSECONDS), 0.001); in testGetPeriod()
58 assertEquals(1, SensorCtsHelper.getPeriod(1000000, TimeUnit.MICROSECONDS), 0.001); in testGetPeriod()
59 assertEquals(0.1, SensorCtsHelper.getPeriod(10000000, TimeUnit.MICROSECONDS), 0.001); in testGetPeriod()
60 assertEquals(100, SensorCtsHelper.getPeriod(10000000, TimeUnit.NANOSECONDS), 0.001); in testGetPeriod()
61 assertEquals(1, SensorCtsHelper.getPeriod(1000000000, TimeUnit.NANOSECONDS), 0.001); in testGetPeriod()
DSensorCtsHelper.java147 public static <TValue extends Number> double getPeriod(TValue frequency, TimeUnit unit) { in getPeriod() method in SensorCtsHelper