/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/ |
D | FifoLengthVerification.java | 62 TestSensorEnvironment environment) { in getDefault() argument 63 if (environment.getSensor().getReportingMode() != Sensor.REPORTING_MODE_CONTINUOUS) { in getDefault() 66 long expectedReportLatencyUs = environment.getMaxReportLatencyUs(); in getDefault() 67 long fifoMaxEventCount = environment.getSensor().getFifoMaxEventCount(); in getDefault() 68 int maximumExpectedSamplingPeriodUs = environment.getMaximumExpectedSamplingPeriodUs(); in getDefault() 74 if (environment.isDeviceSuspendTest() && !environment.getSensor().isWakeUpSensor()) { in getDefault() 86 return new FifoLengthVerification(environment.getSensor().getFifoMaxEventCount(), in getDefault() 94 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() argument
|
D | BatchArrivalVerification.java | 58 public static BatchArrivalVerification getDefault(TestSensorEnvironment environment) { in getDefault() argument 59 if (environment.getSensor().getReportingMode() != Sensor.REPORTING_MODE_CONTINUOUS) { in getDefault() 62 long fifoMaxEventCount = environment.getSensor().getFifoMaxEventCount(); in getDefault() 63 int maximumExpectedSamplingPeriodUs = environment.getMaximumExpectedSamplingPeriodUs(); in getDefault() 64 long reportLatencyUs = environment.getMaxReportLatencyUs(); in getDefault() 71 if (environment.isDeviceSuspendTest() && !environment.getSensor().isWakeUpSensor()) { in getDefault() 89 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() argument
|
D | FrequencyVerification.java | 67 public static FrequencyVerification getDefault(TestSensorEnvironment environment) { in getDefault() argument 68 Sensor sensor = environment.getSensor(); in getDefault() 89 if (environment.isSensorSamplingRateOverloaded()) { in getDefault() 94 double delayUs = environment.getRequestedSamplingPeriodUs(); in getDefault() 117 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() argument 132 environment.getSensor().getName(), in verify() 133 environment.getFrequencyString(), in verify()
|
D | EventTimestampSynchronizationVerification.java | 69 TestSensorEnvironment environment) { in getDefault() argument 70 long reportLatencyUs = environment.getMaxReportLatencyUs(); in getDefault() 71 long fifoMaxEventCount = environment.getSensor().getFifoMaxEventCount(); in getDefault() 72 int maximumExpectedSamplingPeriodUs = environment.getMaximumExpectedSamplingPeriodUs(); in getDefault() 78 if (environment.isDeviceSuspendTest() && !environment.getSensor().isWakeUpSensor()) { in getDefault() 96 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() argument
|
D | EventGapVerification.java | 56 public static EventGapVerification getDefault(TestSensorEnvironment environment) { in getDefault() argument 57 if (environment.getSensor().getReportingMode() != Sensor.REPORTING_MODE_CONTINUOUS) { in getDefault() 60 return new EventGapVerification(environment.getExpectedSamplingPeriodUs()); in getDefault() 67 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() argument 68 if (environment.isSensorSamplingRateOverloaded()) { in verify()
|
D | JitterVerification.java | 72 public static JitterVerification getDefault(TestSensorEnvironment environment) { in getDefault() argument 73 int sensorType = environment.getSensor().getType(); in getDefault() 78 boolean hasHifiSensors = environment.getContext().getPackageManager().hasSystemFeature( in getDefault() 94 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() argument 96 if (timestampsCount < 2 || environment.isSensorSamplingRateOverloaded()) { in verify()
|
D | EventGapVerificationTest.java | 72 TestSensorEnvironment environment = new TestSensorEnvironment(null, null, false, 0, 0); in runVerification() local 74 verification.verify(environment, stats); in runVerification() 78 verification.verify(environment, stats); in runVerification()
|
D | StandardDeviationVerification.java | 69 public static StandardDeviationVerification getDefault(TestSensorEnvironment environment) { in getDefault() argument 70 int sensorType = environment.getSensor().getType(); in getDefault() 73 float currOperatingFreq = (float) environment.getFrequencyHz(); in getDefault() 75 environment.getSensor().getMinDelay(), TimeUnit.MICROSECONDS); in getDefault() 77 environment.getSensor().getMaxDelay(), TimeUnit.MICROSECONDS); in getDefault() 102 boolean hasHifiSensors = environment.getContext().getPackageManager().hasSystemFeature( in getDefault() 126 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() argument
|
D | GyroscopeIntegrationVerification.java | 57 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() argument 58 int sensorType = environment.getSensor().getType(); in verify() 66 int gyroscopeAxes = environment.getSensorAxesCount(); in verify()
|
D | EventOrderingVerification.java | 50 public static EventOrderingVerification getDefault(TestSensorEnvironment environment) { in getDefault() argument 51 int reportingMode = environment.getSensor().getReportingMode(); in getDefault() 65 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() argument
|
D | MagnitudeVerification.java | 68 public static MagnitudeVerification getDefault(TestSensorEnvironment environment) { in getDefault() argument 69 int sensorType = environment.getSensor().getType(); in getDefault() 85 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() argument
|
D | JitterVerificationTest.java | 39 TestSensorEnvironment environment = new TestSensorEnvironment( in testVerify() local 53 verification.verify(environment, stats); in testVerify() 65 verification.verify(environment, stats); in testVerify()
|
D | MeanVerification.java | 62 public static MeanVerification getDefault(TestSensorEnvironment environment) { in getDefault() argument 63 int sensorType = environment.getSensor().getType(); in getDefault() 79 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() argument
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensoroperations/ |
D | TestSensorOperation.java | 81 public TestSensorOperation(TestSensorEnvironment environment, Executor executor) { in TestSensorOperation() argument 82 this(environment, executor, null /* handler */); in TestSensorOperation() 89 TestSensorEnvironment environment, in TestSensorOperation() argument 92 mEnvironment = environment; in TestSensorOperation() 227 TestSensorEnvironment environment, in createOperation() argument 241 return new TestSensorOperation(environment, executor); in createOperation() 251 final TestSensorEnvironment environment, in createOperation() argument 266 environment.toString(), in createOperation() 301 environment.toString()); in createOperation() 310 environment.toString(), in createOperation() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | MagneticFieldMeasurementTestActivity.java | 76 TestSensorEnvironment environment = new TestSensorEnvironment( in testNorm() local 81 TestSensorOperation.createOperation(environment, 100 /* event count */); in testNorm() 121 TestSensorEnvironment environment = new TestSensorEnvironment( in testStandardDeviation() local 126 TestSensorOperation.createOperation(environment, 100 /* event count */); in testStandardDeviation() 168 TestSensorEnvironment environment = new TestSensorEnvironment( in calibrateMagnetometer() local 173 TestSensorEventListener listener = new TestSensorEventListener(environment) { in calibrateMagnetometer() 193 TestSensorManager magnetometer = new TestSensorManager(environment); in calibrateMagnetometer()
|
D | BatchingTestActivity.java | 121 TestSensorEnvironment environment = new TestSensorEnvironment( in runBatchTest() local 129 TestSensorOperation.createOperation(environment, testDurationSec,TimeUnit.SECONDS); in runBatchTest() 139 TestSensorEnvironment environment = new TestSensorEnvironment( in runFlushTest() local 147 .createFlushOperation(environment, flushDurationSec, TimeUnit.SECONDS); in runFlushTest()
|
D | DeviceSuspendTestActivity.java | 207 TestSensorEnvironment environment = new TestSensorEnvironment( in runAPWakeUpWhenReportLatencyExpires() local 215 TestSensorOperation op = TestSensorOperation.createOperation(environment, in runAPWakeUpWhenReportLatencyExpires() 220 op.addVerification(BatchArrivalVerification.getDefault(environment)); in runAPWakeUpWhenReportLatencyExpires() 254 TestSensorEnvironment environment = new TestSensorEnvironment( in runAPWakeUpWhenFIFOFull() local 262 TestSensorOperation op = TestSensorOperation.createOperation(environment, in runAPWakeUpWhenFIFOFull() 298 TestSensorEnvironment environment = new TestSensorEnvironment( in runAPWakeUpByAlarmNonWakeSensor() local 307 TestSensorOperation op = TestSensorOperation.createOperation(environment, in runAPWakeUpByAlarmNonWakeSensor()
|
D | GyroscopeMeasurementTestActivity.java | 155 TestSensorEnvironment environment = new TestSensorEnvironment( in verifyMeasurements() local 160 .createOperation(environment, ROTATION_COLLECTION_SEC, TimeUnit.SECONDS); in verifyMeasurements() 162 int gyroscopeAxes = environment.getSensorAxesCount(); in verifyMeasurements()
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
D | SensorCtsHelper.java | 160 public static String formatAssertionMessage(String label, TestSensorEnvironment environment) { in formatAssertionMessage() argument 161 return formatAssertionMessage(label, environment, "Failed"); in formatAssertionMessage() 176 TestSensorEnvironment environment, in formatAssertionMessage() argument 179 return formatAssertionMessage(label, environment, String.format(format, params)); in formatAssertionMessage() 193 TestSensorEnvironment environment, in formatAssertionMessage() argument 198 environment.getSensor().getName(), in formatAssertionMessage() 199 environment.getRequestedSamplingPeriodUs(), in formatAssertionMessage() 200 environment.getMaxReportLatencyUs(), in formatAssertionMessage()
|
D | TestSensorManager.java | 60 public TestSensorManager(TestSensorEnvironment environment) { in TestSensorManager() argument 62 (SensorManager) environment.getContext().getSystemService(Context.SENSOR_SERVICE); in TestSensorManager() 63 mEnvironment = environment; in TestSensorManager()
|
D | TestSensorEventListener.java | 77 public TestSensorEventListener(TestSensorEnvironment environment) { in TestSensorEventListener() argument 78 this(environment, null /* handler */); in TestSensorEventListener() 84 public TestSensorEventListener(TestSensorEnvironment environment, Handler handler) { in TestSensorEventListener() argument 85 mEnvironment = environment; in TestSensorEventListener() 87 PowerManager pm = (PowerManager) environment.getContext().getSystemService( in TestSensorEventListener()
|
/cts/tests/tests/hardware/src/android/hardware/cts/ |
D | SensorBatchingTests.java | 258 TestSensorEnvironment environment = new TestSensorEnvironment( in runBatchingSensorTest() local 265 TestSensorOperation.createOperation(environment, testDurationSec, TimeUnit.SECONDS); in runBatchingSensorTest() 267 executeTest(environment, operation, false /* flushExpected */); in runBatchingSensorTest() 275 TestSensorEnvironment environment = new TestSensorEnvironment( in runFlushSensorTest() local 282 .createFlushOperation(environment, flushDurationSec, TimeUnit.SECONDS); in runFlushSensorTest() 284 executeTest(environment, operation, true /* flushExpected */); in runFlushSensorTest() 288 TestSensorEnvironment environment, in executeTest() argument 301 if (environment.getRequestedSamplingPeriodUs() == SensorManager.SENSOR_DELAY_FASTEST) { in executeTest() 304 sensorRate = String.format("%.0fhz", environment.getFrequencyHz()); in executeTest() 306 String batching = environment.getMaxReportLatencyUs() > 0 ? "_batching" : ""; in executeTest() [all …]
|
D | SensorTest.java | 341 TestSensorEnvironment environment = new TestSensorEnvironment( in testBatchAndFlushWithHandler() local 346 mTestSensorManager = new TestSensorManager(environment); in testBatchAndFlushWithHandler() 351 TestSensorEventListener listener = new TestSensorEventListener(environment, handler); in testBatchAndFlushWithHandler() 378 TestSensorEnvironment environment = new TestSensorEnvironment( in testBatchAndFlushUseDefaultHandler() local 383 mTestSensorManager = new TestSensorManager(environment); in testBatchAndFlushUseDefaultHandler() 385 TestSensorEventListener listener = new TestSensorEventListener(environment, null); in testBatchAndFlushUseDefaultHandler() 416 TestSensorEnvironment environment = new TestSensorEnvironment( in testBatchAndFlushWithMultipleSensors() local 422 FlushExecutor executor = new FlushExecutor(environment, 500 /* eventCount */); in testBatchAndFlushWithMultipleSensors() 423 parallelSensorOperation.add(new TestSensorOperation(environment, executor)); in testBatchAndFlushWithMultipleSensors() 486 TestSensorEnvironment environment = new TestSensorEnvironment( in verifyLongActivation() local [all …]
|
D | SensorBatchingFifoTest.java | 113 TestSensorEnvironment environment = new TestSensorEnvironment(getContext(), in runBatchingSensorFifoTest() local 119 TestSensorOperation op = TestSensorOperation.createOperation(environment, in runBatchingSensorFifoTest() 121 op.addVerification(FifoLengthVerification.getDefault(environment)); in runBatchingSensorFifoTest()
|
D | SensorIntegrationTests.java | 78 TestSensorEnvironment environment = new TestSensorEnvironment( in testSensorsWithSeveralClients() local 84 TestSensorOperation.createOperation(environment, 100 /* eventCount */); in testSensorsWithSeveralClients() 142 TestSensorEnvironment environment = new TestSensorEnvironment( in testSensorsMovingRates() local 149 TestSensorOperation.createOperation(environment, 100 /* eventCount */); in testSensorsMovingRates()
|