Home
last modified time | relevance | path

Searched refs:SensorCtsHelper (Results 1 – 23 of 23) sorted by relevance

/cts/tests/tests/hardware/src/android/hardware/cts/helpers/
DSensorCtsHelperTest.java36 assertEquals(1.0, SensorCtsHelper.getFrequency(1, TimeUnit.SECONDS), 0.001); in testGetFrequency()
37 assertEquals(10.0, SensorCtsHelper.getFrequency(0.1, TimeUnit.SECONDS), 0.001); in testGetFrequency()
38 assertEquals(10.0, SensorCtsHelper.getFrequency(100, TimeUnit.MILLISECONDS), 0.001); in testGetFrequency()
39 assertEquals(1000.0, SensorCtsHelper.getFrequency(1, TimeUnit.MILLISECONDS), 0.001); in testGetFrequency()
40 assertEquals(10000.0, SensorCtsHelper.getFrequency(0.1, TimeUnit.MILLISECONDS), 0.001); in testGetFrequency()
41 assertEquals(10000.0, SensorCtsHelper.getFrequency(100, TimeUnit.MICROSECONDS), 0.001); in testGetFrequency()
42 assertEquals(1000000.0, SensorCtsHelper.getFrequency(1, TimeUnit.MICROSECONDS), 0.001); in testGetFrequency()
43 assertEquals(10000000.0, SensorCtsHelper.getFrequency(0.1, TimeUnit.MICROSECONDS), 0.001); in testGetFrequency()
44 assertEquals(10000000.0, SensorCtsHelper.getFrequency(100, TimeUnit.NANOSECONDS), 0.001); in testGetFrequency()
45 assertEquals(1000000000.0, SensorCtsHelper.getFrequency(1, TimeUnit.NANOSECONDS), 0.001); in testGetFrequency()
[all …]
DTestSensorManager.java79 String message = SensorCtsHelper.formatAssertionMessage("registerListener", mEnvironment); in registerListener()
109 String message = SensorCtsHelper.formatAssertionMessage("registerListener", mEnvironment); in registerListener()
172 SensorCtsHelper.formatAssertionMessage("Flush", mEnvironment), in requestFlush()
DTestSensorEventListener.java262 File eventsDirectory = SensorCtsHelper.getSensorTestDataDirectory("events/"); in logCollectedEventsToFile()
284 String message = SensorCtsHelper.formatAssertionMessage( in waitForFlushComplete()
321 String message = SensorCtsHelper.formatAssertionMessage( in waitForEvents()
341 SensorCtsHelper.sleep(duration, timeUnit); in waitForEvents()
DSensorStats.java148 File statsDirectory = SensorCtsHelper.getSensorTestDataDirectory("stats/"); in logToFile()
165 return SensorCtsHelper.sanitizeStringForFileName(sensor.getStringType()); in getSanitizedSensorName()
DSensorCtsHelper.java31 public class SensorCtsHelper { class
38 private SensorCtsHelper() {} in SensorCtsHelper() method in SensorCtsHelper
DSensorCalibratedUncalibratedVerifier.java75 long measuredSamplingPeriodNs = SensorCtsHelper.getSamplingPeriodNs(calibratedEvents); in verifyMeasurements()
DTestSensorEnvironment.java277 return SensorCtsHelper.getFrequency(mSamplingPeriodUs, TimeUnit.MICROSECONDS); in getFrequencyHz()
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/
DFrequencyVerification.java22 import android.hardware.cts.helpers.SensorCtsHelper;
97 double upperExpectedHz = SensorCtsHelper.getFrequency( in getDefault()
100 double lowerExpectedHz = SensorCtsHelper.getFrequency( in getDefault()
123 double measuredFrequencyHz = SensorCtsHelper.getFrequency( in verify()
DMagnitudeVerification.java23 import android.hardware.cts.helpers.SensorCtsHelper;
123 mSum += SensorCtsHelper.getMagnitude(event.values); in addSensorEventInternal()
DStandardDeviationVerification.java27 import android.hardware.cts.helpers.SensorCtsHelper;
74 float maxBandWidth = (float)SensorCtsHelper.getFrequency( in getDefault()
76 float minBandWidth = (float) SensorCtsHelper.getFrequency( in getDefault()
DJitterVerification.java24 import android.hardware.cts.helpers.SensorCtsHelper;
117 List<Long> percentileValues = SensorCtsHelper.getPercentileValue(deltas, percentiles); in verify()
DFifoLengthVerification.java22 import android.hardware.cts.helpers.SensorCtsHelper;
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensoroperations/
DDelaySensorOperation.java19 import android.hardware.cts.helpers.SensorCtsHelper;
52 SensorCtsHelper.sleep(mDelay, mTimeUnit); in execute()
DTestSensorOperation.java25 import android.hardware.cts.helpers.SensorCtsHelper;
155 String msg = SensorCtsHelper in execute()
208 SensorCtsHelper.sanitizeStringForFileName(fileName), in trySaveCollectedEvents()
271 SensorCtsHelper.sleep(2, TimeUnit.SECONDS); in createOperation()
319 SensorCtsHelper.sleep(2, TimeUnit.SECONDS); in createOperation()
407 SensorCtsHelper.sleep(interval, TimeUnit.MILLISECONDS); in createFlushOperation()
/cts/tests/tests/hardware/src/android/hardware/cts/
DSensorParameterRangeTest.java23 import android.hardware.cts.helpers.SensorCtsHelper;
117 SensorCtsHelper.getUnitsForSensor(sensor)), in checkSensorRangeAndFrequency()
119 double actualMinFrequency = SensorCtsHelper.getFrequency(sensor.getMaxDelay(), in checkSensorRangeAndFrequency()
125 double actualMaxFrequency = SensorCtsHelper.getFrequency(sensor.getMinDelay(), in checkSensorRangeAndFrequency()
DSensorIntegrationTests.java21 import android.hardware.cts.helpers.SensorCtsHelper;
66 SensorCtsHelper.sleep(3, TimeUnit.SECONDS); in testSensorsWithSeveralClients()
127 SensorCtsHelper.sleep(3, TimeUnit.SECONDS); in testSensorsMovingRates()
227 SensorCtsHelper.sleep(3, TimeUnit.SECONDS); in verifySensorStoppingInteraction()
DSensorAdditionalInfoTest.java24 import android.hardware.cts.helpers.SensorCtsHelper;
105 SensorCtsHelper.sleep(REST_PERIOD_BEFORE_TEST_SEC, TimeUnit.SECONDS); in waitBeforeTestStarts()
DSensorTest.java30 import android.hardware.cts.helpers.SensorCtsHelper;
318 SensorCtsHelper.sleep(3, TimeUnit.SECONDS); in testBatchAndFlush()
332 SensorCtsHelper.sleep(3, TimeUnit.SECONDS); in testBatchAndFlushWithHandler()
368 SensorCtsHelper.sleep(3, TimeUnit.SECONDS); in testBatchAndFlushUseDefaultHandler()
401 SensorCtsHelper.sleep(3, TimeUnit.SECONDS); in testBatchAndFlushWithMultipleSensors()
DSensorBatchingFifoTest.java23 import android.hardware.cts.helpers.SensorCtsHelper;
DSensorBatchingTests.java21 import android.hardware.cts.helpers.SensorCtsHelper;
298 SensorCtsHelper.sleep(3, TimeUnit.SECONDS); in executeTest()
DSingleSensorTests.java22 import android.hardware.cts.helpers.SensorCtsHelper;
546 SensorCtsHelper.sleep(3, TimeUnit.SECONDS); in runSensorTest()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DMagneticFieldMeasurementTestActivity.java26 import android.hardware.cts.helpers.SensorCtsHelper;
186 SensorCtsHelper.getMagnitude(values)); in calibrateMagnetometer()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DPowerTestHostLink.java26 import android.hardware.cts.helpers.SensorCtsHelper;
220 response = SensorCtsHelper.getSensorTestDataDirectory("power/").getAbsolutePath(); in processClientRequest()