/cts/tests/sensor/src/android/hardware/cts/helpers/ |
D | SensorCtsHelperTest.java | 36 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 …]
|
D | TestSensorManager.java | 79 String message = SensorCtsHelper.formatAssertionMessage("registerListener", mEnvironment); in registerListener() 109 String message = SensorCtsHelper.formatAssertionMessage("registerListener", mEnvironment); in registerListener() 172 SensorCtsHelper.formatAssertionMessage("Flush", mEnvironment), in requestFlush()
|
D | TestSensorEventListener.java | 262 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()
|
D | SensorStats.java | 156 File statsDirectory = SensorCtsHelper.getSensorTestDataDirectory("stats/"); in logToFile() 174 return SensorCtsHelper.sanitizeStringForFileName(sensor.getStringType()); in getSanitizedSensorName()
|
D | SensorCalibratedUncalibratedVerifier.java | 75 long measuredSamplingPeriodNs = SensorCtsHelper.getSamplingPeriodNs(calibratedEvents); in verifyMeasurements()
|
D | SensorCtsHelper.java | 33 public class SensorCtsHelper { class 40 private SensorCtsHelper() {} in SensorCtsHelper() method in SensorCtsHelper
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
D | FrequencyVerification.java | 22 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()
|
D | MeanVerification.java | 23 import android.hardware.cts.helpers.SensorCtsHelper; 126 SensorCtsHelper.formatFloatArray(means), in verify() 127 SensorCtsHelper.formatFloatArray(mExpected))); in verify()
|
D | InitialValueVerification.java | 19 import android.hardware.cts.helpers.SensorCtsHelper; 125 SensorCtsHelper.formatFloatArray(initialMeans), in verify() 126 SensorCtsHelper.formatFloatArray(laterMeans), in verify()
|
D | OffsetVerification.java | 20 import android.hardware.cts.helpers.SensorCtsHelper; 122 mOffsetMagnitudes.add((float)SensorCtsHelper.getMagnitude(
|
D | MagnitudeVerification.java | 23 import android.hardware.cts.helpers.SensorCtsHelper; 123 mSum += SensorCtsHelper.getMagnitude(event.values); in addSensorEventInternal()
|
D | StandardDeviationVerification.java | 27 import android.hardware.cts.helpers.SensorCtsHelper; 74 float maxBandWidth = (float)SensorCtsHelper.getFrequency( in getDefault() 76 float minBandWidth = (float) SensorCtsHelper.getFrequency( in getDefault()
|
D | JitterVerification.java | 24 import android.hardware.cts.helpers.SensorCtsHelper; 114 SensorCtsHelper.getPercentileValue(deltas, mOutlierMargin, 1 - mOutlierMargin); in verify()
|
D | FifoLengthVerification.java | 22 import android.hardware.cts.helpers.SensorCtsHelper;
|
/cts/tests/sensor/src/android/hardware/cts/ |
D | SensorParameterRangeTest.java | 23 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()
|
D | SensorIntegrationTests.java | 21 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()
|
D | SensorDirectReportTest.java | 28 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 …]
|
D | SensorTest.java | 28 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()
|
D | SensorAdditionalInfoTest.java | 24 import android.hardware.cts.helpers.SensorCtsHelper; 160 SensorCtsHelper.sleep(REST_PERIOD_BEFORE_TEST_SEC, TimeUnit.SECONDS); in waitBeforeTestStarts()
|
D | SensorBatchingTests.java | 21 import android.hardware.cts.helpers.SensorCtsHelper; 322 SensorCtsHelper.sleep(3, TimeUnit.SECONDS); in executeTest()
|
D | SensorBatchingFifoTest.java | 23 import android.hardware.cts.helpers.SensorCtsHelper;
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/ |
D | TestSensorOperation.java | 25 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()
|
D | DelaySensorOperation.java | 19 import android.hardware.cts.helpers.SensorCtsHelper; 52 SensorCtsHelper.sleep(mDelay, mTimeUnit); in execute()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | MagneticFieldMeasurementTestActivity.java | 26 import android.hardware.cts.helpers.SensorCtsHelper; 224 SensorCtsHelper.getMagnitude(values)); in calibrateMagnetometer()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/ |
D | PowerTestHostLink.java | 26 import android.hardware.cts.helpers.SensorCtsHelper; 220 response = SensorCtsHelper.getSensorTestDataDirectory("power/").getAbsolutePath(); in processClientRequest()
|