Home
last modified time | relevance | path

Searched refs:environment (Results 1 – 25 of 31) sorted by relevance

12

/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/
DFifoLengthVerification.java62 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
DBatchArrivalVerification.java58 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
DFrequencyVerification.java67 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()
DEventTimestampSynchronizationVerification.java69 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
DEventGapVerification.java56 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()
DJitterVerification.java72 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()
DEventGapVerificationTest.java72 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()
DStandardDeviationVerification.java69 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
DGyroscopeIntegrationVerification.java57 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()
DEventOrderingVerification.java50 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
DMagnitudeVerification.java68 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
DJitterVerificationTest.java39 TestSensorEnvironment environment = new TestSensorEnvironment( in testVerify() local
53 verification.verify(environment, stats); in testVerify()
65 verification.verify(environment, stats); in testVerify()
DMeanVerification.java62 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/
DTestSensorOperation.java81 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/
DMagneticFieldMeasurementTestActivity.java76 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()
DBatchingTestActivity.java121 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()
DDeviceSuspendTestActivity.java207 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()
DGyroscopeMeasurementTestActivity.java155 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/
DSensorCtsHelper.java160 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()
DTestSensorManager.java60 public TestSensorManager(TestSensorEnvironment environment) { in TestSensorManager() argument
62 (SensorManager) environment.getContext().getSystemService(Context.SENSOR_SERVICE); in TestSensorManager()
63 mEnvironment = environment; in TestSensorManager()
DTestSensorEventListener.java77 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/
DSensorBatchingTests.java258 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 …]
DSensorTest.java341 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 …]
DSensorBatchingFifoTest.java113 TestSensorEnvironment environment = new TestSensorEnvironment(getContext(), in runBatchingSensorFifoTest() local
119 TestSensorOperation op = TestSensorOperation.createOperation(environment, in runBatchingSensorFifoTest()
121 op.addVerification(FifoLengthVerification.getDefault(environment)); in runBatchingSensorFifoTest()
DSensorIntegrationTests.java78 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()

12