/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | MagneticFieldMeasurementTestActivity.java | 77 TestSensorEnvironment environment = new TestSensorEnvironment( in testNorm() local 82 TestSensorOperation.createOperation(environment, 100 /* event count */); in testNorm() 114 TestSensorEnvironment environment = new TestSensorEnvironment( in testOffset() local 119 TestSensorOperation.createOperation(environment, 100 /* event count */); in testOffset() 121 verifyOffset.addVerification(OffsetVerification.getDefault(environment)); in testOffset() 153 TestSensorEnvironment environment = new TestSensorEnvironment( in testStandardDeviation() local 158 TestSensorOperation.createOperation(environment, 100 /* event count */); in testStandardDeviation() 200 TestSensorEnvironment environment = new TestSensorEnvironment( in calibrateMagnetometer() local 210 TestSensorEventListener listener = new TestSensorEventListener(environment) { in calibrateMagnetometer() 225 TestSensorManager magnetometer = new TestSensorManager(environment); in calibrateMagnetometer()
|
D | BatchingTestActivity.java | 131 TestSensorEnvironment environment = new TestSensorEnvironment( in runBatchTest() local 139 TestSensorOperation.createOperation(environment, testDurationSec,TimeUnit.SECONDS); in runBatchTest() 151 TestSensorEnvironment environment = new TestSensorEnvironment( in runFlushTest() local 159 .createFlushOperation(environment, flushDurationSec, TimeUnit.SECONDS); in runFlushTest()
|
D | DeviceSuspendTestActivity.java | 341 TestSensorEnvironment environment = new TestSensorEnvironment( in runAPWakeUpWhenReportLatencyExpires() local 349 TestSensorOperation op = TestSensorOperation.createOperation(environment, in runAPWakeUpWhenReportLatencyExpires() 356 op.addVerification(BatchArrivalVerification.getDefault(environment)); in runAPWakeUpWhenReportLatencyExpires() 392 TestSensorEnvironment environment = new TestSensorEnvironment( in runAPWakeUpWhenFIFOFull() local 400 TestSensorOperation op = TestSensorOperation.createOperation(environment, in runAPWakeUpWhenFIFOFull() 456 TestSensorEnvironment environment = new TestSensorEnvironment( in runVerifySensorTimestampClockbase() local 463 …TestSensorOperation op = TestSensorOperation.createOperation(environment, MIN_TIMESTAMP_BASE_SAMPL… in runVerifySensorTimestampClockbase() 464 op.addVerification(TimestampClockSourceVerification.getDefault(environment)); in runVerifySensorTimestampClockbase() 486 TestSensorEnvironment environment = new TestSensorEnvironment( in runAPWakeUpByAlarmNonWakeSensor() local 495 TestSensorOperation op = TestSensorOperation.createOperation(environment, in runAPWakeUpByAlarmNonWakeSensor()
|
/cts/tests/sensor/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 fifoReservedEventCount = environment.getSensor().getFifoReservedEventCount(); in getDefault() 68 int maximumExpectedSamplingPeriodUs = environment.getMaximumExpectedSamplingPeriodUs(); in getDefault() 74 if (environment.isDeviceSuspendTest() && !environment.getSensor().isWakeUpSensor()) { in getDefault() 93 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() argument
|
D | EventBasicVerification.java | 86 TestSensorEnvironment environment, in getDefault() argument 92 long sampleUs = environment.getExpectedSamplingPeriodUs(); in getDefault() 94 long askedBatchUs = environment.getMaxReportLatencyUs(); in getDefault() 96 long reservedFifoUs = sampleUs * environment.getSensor().getFifoReservedEventCount(); //>=0 in getDefault() 100 sampleUs * environment.getSensor().getFifoMaxEventCount(), reservedFifoUs); //>=0 in getDefault() 103 Math.max(ALLOWED_SENSOR_START_DELAY_US, environment.getAllowedSensorStartDelay()) - in getDefault() 106 boolean isSingleSensorTest = !environment.isIntegrationTest(); in getDefault() 162 return new EventBasicVerification(expectedMinNumEvent, environment.getSensor()); in getDefault() 166 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 | EventTimestampSynchronizationVerification.java | 70 TestSensorEnvironment environment) { in getDefault() argument 71 long reportLatencyUs = environment.getMaxReportLatencyUs(); in getDefault() 72 long fifoMaxEventCount = environment.getSensor().getFifoMaxEventCount(); in getDefault() 73 int maximumExpectedSamplingPeriodUs = environment.getMaximumExpectedSamplingPeriodUs(); in getDefault() 79 if (environment.isDeviceSuspendTest() && !environment.getSensor().isWakeUpSensor()) { in getDefault() 99 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() 92 if (environment.isSensorSamplingRateOverloaded()) { in getDefault() 97 double delayUs = environment.getRequestedSamplingPeriodUs(); in getDefault() 130 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() argument 145 environment.getSensor().getName(), in verify() 146 environment.getFrequencyString(), in verify()
|
D | TimestampClockSourceVerification.java | 68 TestSensorEnvironment environment) { in getDefault() argument 69 long reportLatencyUs = environment.getMaxReportLatencyUs(); in getDefault() 70 long fifoMaxEventCount = environment.getSensor().getFifoMaxEventCount(); in getDefault() 71 int maximumExpectedSamplingPeriodUs = environment.getMaximumExpectedSamplingPeriodUs(); in getDefault() 77 if (environment.isDeviceSuspendTest() && !environment.getSensor().isWakeUpSensor()) { in getDefault() 96 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() argument
|
D | EventGapVerification.java | 57 public static EventGapVerification getDefault(TestSensorEnvironment environment) { in getDefault() argument 58 if (environment.getSensor().getReportingMode() != Sensor.REPORTING_MODE_CONTINUOUS) { in getDefault() 61 return new EventGapVerification(environment.getExpectedSamplingPeriodUs()); in getDefault() 68 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() argument 69 if (environment.isSensorSamplingRateOverloaded()) { in verify()
|
D | JitterVerification.java | 78 public static JitterVerification getDefault(TestSensorEnvironment environment) { in getDefault() argument 79 int sensorType = environment.getSensor().getType(); in getDefault() 85 boolean hasHifiSensors = environment.getContext().getPackageManager().hasSystemFeature( in getDefault() 91 long expectedPeriodNs = (long) environment.getExpectedSamplingPeriodUs() * 1000; in getDefault() 104 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() argument 106 if (timestampsCount < 2 || environment.isSensorSamplingRateOverloaded()) { in verify()
|
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 | 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 | OffsetVerification.java | 67 public static OffsetVerification getDefault(TestSensorEnvironment environment) { in getDefault() argument 68 if (environment.getSensor().getType() == Sensor.TYPE_MAGNETIC_FIELD_UNCALIBRATED) { in getDefault() 78 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 | 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 | ContinuousEventSanitizedVerification.java | 54 TestSensorEnvironment environment, long verificationDelayNano) { in getDefault() argument 55 final int reportingMode = environment.getSensor().getReportingMode(); in getDefault() 74 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() argument
|
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 | MeanVerification.java | 68 public static MeanVerification getDefault(TestSensorEnvironment environment) { in getDefault() argument 74 if(environment.getContext().getPackageManager().hasSystemFeature( in getDefault() 79 int sensorType = environment.getSensor().getType(); in getDefault() 96 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() argument
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/ |
D | TestSensorOperation.java | 85 public TestSensorOperation(TestSensorEnvironment environment, Executor executor) { in TestSensorOperation() argument 86 this(environment, executor, null /* handler */); in TestSensorOperation() 93 TestSensorEnvironment environment, in TestSensorOperation() argument 96 mEnvironment = environment; in TestSensorOperation() 235 TestSensorEnvironment environment, in createOperation() argument 249 return new TestSensorOperation(environment, executor); in createOperation() 262 final TestSensorEnvironment environment, in createOperation() argument 277 environment.toString(), in createOperation() 316 environment.toString()); in createOperation() 325 environment.toString(), in createOperation() [all …]
|
/cts/tests/sensor/src/android/hardware/cts/ |
D | SensorBatchingTests.java | 283 TestSensorEnvironment environment = new TestSensorEnvironment( in runBatchingSensorTest() local 290 TestSensorOperation.createOperation(environment, testDurationSec, TimeUnit.SECONDS); in runBatchingSensorTest() 294 environment, TimeUnit.SECONDS.toMicros(testDurationSec) in runBatchingSensorTest() 298 executeTest(environment, operation, false /* flushExpected */); in runBatchingSensorTest() 306 TestSensorEnvironment environment = new TestSensorEnvironment( in runFlushSensorTest() local 313 .createFlushOperation(environment, flushDurationSec, TimeUnit.SECONDS); in runFlushSensorTest() 315 executeTest(environment, operation, true /* flushExpected */); in runFlushSensorTest() 319 TestSensorEnvironment environment, in executeTest() argument 332 if (environment.getRequestedSamplingPeriodUs() == SensorManager.SENSOR_DELAY_FASTEST) { in executeTest() 335 sensorRate = String.format("%.0fhz", environment.getFrequencyHz()); in executeTest() [all …]
|
D | SensorBatchingFifoTest.java | 90 TestSensorEnvironment environment = new TestSensorEnvironment(getContext(), in runBatchingSensorFifoTest() local 97 int postFlushMs = environment.getExpectedSamplingPeriodUs() * 100 /1000; in runBatchingSensorFifoTest() 99 environment.getSensor().getFifoReservedEventCount() * in runBatchingSensorFifoTest() 100 environment.getExpectedSamplingPeriodUs() / (int)(1000 / 1.2); // 120% in runBatchingSensorFifoTest() 103 environment, new int [] { preFlushMs, testFlushMs, postFlushMs }, -1); in runBatchingSensorFifoTest() 105 op.addVerification(FifoLengthVerification.getDefault(environment)); in runBatchingSensorFifoTest()
|
D | SensorTest.java | 444 TestSensorEnvironment environment = new TestSensorEnvironment( in testBatchAndFlushWithHandler() local 449 mTestSensorManager = new TestSensorManager(environment); in testBatchAndFlushWithHandler() 454 TestSensorEventListener listener = new TestSensorEventListener(environment, handler); in testBatchAndFlushWithHandler() 480 TestSensorEnvironment environment = new TestSensorEnvironment( in testBatchAndFlushUseDefaultHandler() local 485 mTestSensorManager = new TestSensorManager(environment); in testBatchAndFlushUseDefaultHandler() 487 TestSensorEventListener listener = new TestSensorEventListener(environment, null); in testBatchAndFlushUseDefaultHandler() 518 TestSensorEnvironment environment = new TestSensorEnvironment( in testBatchAndFlushWithMultipleSensors() local 524 FlushExecutor executor = new FlushExecutor(environment, 500 /* eventCount */, in testBatchAndFlushWithMultipleSensors() 526 parallelSensorOperation.add(new TestSensorOperation(environment, executor)); in testBatchAndFlushWithMultipleSensors() 601 TestSensorEnvironment environment = new TestSensorEnvironment( in verifyLongActivation() local [all …]
|
/cts/tests/sensor/src/android/hardware/cts/helpers/ |
D | SensorCtsHelper.java | 187 public static String formatAssertionMessage(String label, TestSensorEnvironment environment) { in formatAssertionMessage() argument 188 return formatAssertionMessage(label, environment, "Failed"); in formatAssertionMessage() 203 TestSensorEnvironment environment, in formatAssertionMessage() argument 206 return formatAssertionMessage(label, environment, String.format(format, params)); in formatAssertionMessage() 220 TestSensorEnvironment environment, in formatAssertionMessage() argument 225 environment.getSensor().getName(), in formatAssertionMessage() 226 environment.getRequestedSamplingPeriodUs(), in formatAssertionMessage() 227 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()
|