Home
last modified time | relevance | path

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

12

/cts/tests/sensor/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.java156 File statsDirectory = SensorCtsHelper.getSensorTestDataDirectory("stats/"); in logToFile()
174 return SensorCtsHelper.sanitizeStringForFileName(sensor.getStringType()); in getSanitizedSensorName()
DSensorCalibratedUncalibratedVerifier.java75 long measuredSamplingPeriodNs = SensorCtsHelper.getSamplingPeriodNs(calibratedEvents); in verifyMeasurements()
DSensorCtsHelper.java33 public class SensorCtsHelper { class
40 private SensorCtsHelper() {} in SensorCtsHelper() method in SensorCtsHelper
DTestSensorEnvironment.java277 return SensorCtsHelper.getFrequency(mSamplingPeriodUs, TimeUnit.MICROSECONDS); in getFrequencyHz()
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DFrequencyVerification.java22 import android.hardware.cts.helpers.SensorCtsHelper;
107 delayUs = SensorCtsHelper.clamp(delayUs, minDelayUs, maxDelayUs); in getDefault()
108 double expectedHz = SensorCtsHelper.getFrequency(delayUs, TimeUnit.MICROSECONDS); in getDefault()
112 lowerExpectedHz = SensorCtsHelper.getFrequency(delayUs, TimeUnit.MICROSECONDS); in getDefault()
113 upperExpectedHz = SensorCtsHelper.getFrequency(minDelayUs, TimeUnit.MICROSECONDS); in getDefault()
136 double measuredFrequencyHz = SensorCtsHelper.getFrequency( in verify()
DMeanVerification.java23 import android.hardware.cts.helpers.SensorCtsHelper;
126 SensorCtsHelper.formatFloatArray(means), in verify()
127 SensorCtsHelper.formatFloatArray(mExpected))); in verify()
DOffsetVerification.java20 import android.hardware.cts.helpers.SensorCtsHelper;
122 mOffsetMagnitudes.add((float)SensorCtsHelper.getMagnitude(
DMagnitudeVerification.java23 import android.hardware.cts.helpers.SensorCtsHelper;
123 mSum += SensorCtsHelper.getMagnitude(event.values); in addSensorEventInternal()
DInitialValueVerification.java19 import android.hardware.cts.helpers.SensorCtsHelper;
125 SensorCtsHelper.formatFloatArray(initialMeans), in verify()
126 SensorCtsHelper.formatFloatArray(laterMeans), in verify()
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;
114 SensorCtsHelper.getPercentileValue(deltas, mOutlierMargin, 1 - mOutlierMargin); in verify()
DFifoLengthVerification.java22 import android.hardware.cts.helpers.SensorCtsHelper;
/cts/tests/sensor/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;
157 String msg = SensorCtsHelper in execute()
210 SensorCtsHelper.sanitizeStringForFileName(fileName), in trySaveCollectedEvents()
273 SensorCtsHelper.sleep(2, TimeUnit.SECONDS); in createOperation()
321 SensorCtsHelper.sleep(2, TimeUnit.SECONDS); in createOperation()
409 SensorCtsHelper.sleep(interval, TimeUnit.MILLISECONDS); in createFlushOperation()
/cts/tests/sensor/src/android/hardware/cts/
DSensorParameterRangeTest.java23 import android.hardware.cts.helpers.SensorCtsHelper;
164 SensorCtsHelper.getUnitsForSensor(sensor)), in checkSensorRangeAndFrequency()
167 double actualMaxFrequency = SensorCtsHelper.getFrequency(sensor.getMinDelay(), in checkSensorRangeAndFrequency()
174 double actualMinFrequency = SensorCtsHelper.getFrequency(sensor.getMaxDelay(), in checkSensorRangeAndFrequency()
DSensorIntegrationTests.java21 import android.hardware.cts.helpers.SensorCtsHelper;
69 SensorCtsHelper.sleep(3, TimeUnit.SECONDS); in testSensorsWithSeveralClients()
130 SensorCtsHelper.sleep(3, TimeUnit.SECONDS); in testSensorsMovingRates()
234 SensorCtsHelper.sleep(3, TimeUnit.SECONDS); in verifySensorReconfigureWhileActive()
359 SensorCtsHelper.sleep(3, TimeUnit.SECONDS); in verifySensorStoppingInteraction()
DSensorDirectReportTest.java28 import android.hardware.cts.helpers.SensorCtsHelper;
29 import android.hardware.cts.helpers.SensorCtsHelper.TestResultCollector;
523 String stype1 = SensorCtsHelper.sensorTypeShortString(type1); in runSingleChannelRateIndependencyTestGroup()
524 String stype2 = SensorCtsHelper.sensorTypeShortString(type2); in runSingleChannelRateIndependencyTestGroup()
549 "testRateIndependency" + SensorCtsHelper.sensorTypeShortString(sensorType) in runMultiChannelRateIndependencyTestGroup()
574 "testRateIndependency" + SensorCtsHelper.sensorTypeShortString(sensorType) in runMultiModeRateIndependencyTestGroup()
591 String stype = SensorCtsHelper.sensorTypeShortString(sensorType); in runTimestampTestGroup()
671 SensorCtsHelper.sleep(TEST_RUN_TIME_PERIOD_MILLISEC / 2, TimeUnit.MILLISECONDS); in runSingleChannelRateIndependencyTest()
931 SensorCtsHelper.sleep(REST_PERIOD_BEFORE_TEST_MILLISEC, TimeUnit.MILLISECONDS); in waitBeforeStartSensor()
940 SensorCtsHelper.sleep(TEST_RUN_TIME_PERIOD_MILLISEC, TimeUnit.MILLISECONDS); in waitSensorCollection()
[all …]
DSensorTest.java28 import android.hardware.cts.helpers.SensorCtsHelper;
402 SensorCtsHelper.sleep(3, TimeUnit.SECONDS); in testBatchAndFlush()
418 SensorCtsHelper.sleep(3, TimeUnit.SECONDS); in testBatchAndFlushUidIdle()
431 SensorCtsHelper.sleep(3, TimeUnit.SECONDS); in testBatchAndFlushWithHandler()
467 SensorCtsHelper.sleep(3, TimeUnit.SECONDS); in testBatchAndFlushUseDefaultHandler()
500 SensorCtsHelper.sleep(3, TimeUnit.SECONDS); in testBatchAndFlushWithMultipleSensors()
543 if (SensorCtsHelper.hasResolutionRequirement(sensor, hasHifiSensors)) { in assertSensorValues()
544 float requiredResolution = SensorCtsHelper.getRequiredResolutionForSensor(sensor); in assertSensorValues()
DSensorAdditionalInfoTest.java24 import android.hardware.cts.helpers.SensorCtsHelper;
160 SensorCtsHelper.sleep(REST_PERIOD_BEFORE_TEST_SEC, TimeUnit.SECONDS); in waitBeforeTestStarts()
DSensorBatchingFifoTest.java23 import android.hardware.cts.helpers.SensorCtsHelper;
DSensorBatchingTests.java21 import android.hardware.cts.helpers.SensorCtsHelper;
322 SensorCtsHelper.sleep(3, TimeUnit.SECONDS); in executeTest()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DMagneticFieldMeasurementTestActivity.java26 import android.hardware.cts.helpers.SensorCtsHelper;
221 SensorCtsHelper.getMagnitude(values)); in calibrateMagnetometer()

12