/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/ |
D | EventOrderingVerificationTest.java | 21 import android.hardware.cts.helpers.SensorStats; 37 SensorStats stats = new SensorStats(); in testNoEvents() 47 SensorStats stats = new SensorStats(); in testSequentialTimestamp() 57 SensorStats stats = new SensorStats(); in testSingleOutofOrder() 74 SensorStats stats = new SensorStats(); in testMultipleOutOfOrder() 100 private void verifyStats(SensorStats stats, boolean passed, int count) { in verifyStats() 102 assertEquals(count, stats.getValue(SensorStats.EVENT_OUT_OF_ORDER_COUNT_KEY)); in verifyStats() 103 assertNotNull(stats.getValue(SensorStats.EVENT_OUT_OF_ORDER_POSITIONS_KEY)); in verifyStats() 106 private List<Integer> getIndices(SensorStats stats) { in getIndices() 108 SensorStats.EVENT_OUT_OF_ORDER_POSITIONS_KEY); in getIndices()
|
D | FrequencyVerificationTest.java | 21 import android.hardware.cts.helpers.SensorStats; 39 SensorStats stats = new SensorStats(); in testVerifification() 44 stats = new SensorStats(); in testVerifification() 49 stats = new SensorStats(); in testVerifification() 54 stats = new SensorStats(); in testVerifification() 64 stats = new SensorStats(); in testVerifification() 93 private void verifyStats(SensorStats stats, boolean passed, double frequency) { in verifyStats() 95 assertEquals(frequency, stats.getValue(SensorStats.FREQUENCY_KEY)); in verifyStats()
|
D | MeanVerificationTest.java | 21 import android.hardware.cts.helpers.SensorStats; 47 SensorStats stats = new SensorStats(); in testVerify() 54 stats = new SensorStats(); in testVerify() 61 stats = new SensorStats(); in testVerify() 73 stats = new SensorStats(); in testVerify() 84 stats = new SensorStats(); in testVerify() 106 private void verifyStats(SensorStats stats, boolean passed, float[] means) { in verifyStats() 108 float[] actual = (float[]) stats.getValue(SensorStats.MEAN_KEY); in verifyStats()
|
D | EventGapVerificationTest.java | 21 import android.hardware.cts.helpers.SensorStats; 70 SensorStats stats = new SensorStats(); in runVerification() 86 assertEquals(indices.length, stats.getValue(SensorStats.EVENT_GAP_COUNT_KEY)); in runVerification() 87 assertNotNull(stats.getValue(SensorStats.EVENT_GAP_POSITIONS_KEY)); in runVerification() 88 int[] actualIndices = (int[]) stats.getValue(SensorStats.EVENT_GAP_POSITIONS_KEY); in runVerification()
|
D | JitterVerificationTest.java | 21 import android.hardware.cts.helpers.SensorStats; 51 SensorStats stats = new SensorStats(); in testVerify() 62 stats = new SensorStats(); in testVerify() 113 private void verifyStats(SensorStats stats, boolean passed, double jitter95) { in verifyStats() 117 (Double) stats.getValue(SensorStats.JITTER_95_PERCENTILE_PERCENT_KEY), in verifyStats()
|
D | MagnitudeVerificationTest.java | 21 import android.hardware.cts.helpers.SensorStats; 53 SensorStats stats = new SensorStats(); in runStats() 66 assertEquals(magnitude, (Float) stats.getValue(SensorStats.MAGNITUDE_KEY), 0.01); in runStats()
|
D | EventOrderingVerification.java | 22 import android.hardware.cts.helpers.SensorStats; 65 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() 72 void verify(SensorStats stats) { in verify() 75 stats.addValue(SensorStats.EVENT_OUT_OF_ORDER_COUNT_KEY, count); in verify() 77 SensorStats.EVENT_OUT_OF_ORDER_POSITIONS_KEY, in verify()
|
D | StandardDeviationVerificationTest.java | 21 import android.hardware.cts.helpers.SensorStats; 64 SensorStats stats = new SensorStats(); in runVerification() 79 float[] actual = (float[]) stats.getValue(SensorStats.STANDARD_DEVIATION_KEY); in runVerification()
|
D | ISensorVerification.java | 19 import android.hardware.cts.helpers.SensorStats; 49 void verify(TestSensorEnvironment environment, SensorStats stats); in verify()
|
D | MagnitudeVerification.java | 24 import android.hardware.cts.helpers.SensorStats; 85 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() 92 void verify(SensorStats stats) { in verify() 102 stats.addValue(SensorStats.MAGNITUDE_KEY, mean); in verify()
|
D | EventGapVerification.java | 6 import android.hardware.cts.helpers.SensorStats; 67 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() 79 stats.addValue(SensorStats.EVENT_GAP_COUNT_KEY, count); in verify() 80 stats.addValue(SensorStats.EVENT_GAP_POSITIONS_KEY, getIndexArray(mEventGaps)); in verify()
|
D | EventTimestampSynchronizationVerification.java | 22 import android.hardware.cts.helpers.SensorStats; 96 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() 101 stats.addValue(SensorStats.EVENT_TIME_SYNCHRONIZATION_COUNT_KEY, failuresCount); in verify() 103 SensorStats.EVENT_TIME_SYNCHRONIZATION_POSITIONS_KEY, in verify()
|
D | MeanVerification.java | 23 import android.hardware.cts.helpers.SensorStats; 79 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() 86 void verify(SensorStats stats) { in verify() 117 stats.addValue(SensorStats.MEAN_KEY, means); in verify()
|
D | FifoLengthVerification.java | 23 import android.hardware.cts.helpers.SensorStats; 94 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() 122 stats.addValue(SensorStats.EVENT_FIFO_LENGTH, batchCount); in verify()
|
D | BatchArrivalVerification.java | 9 import android.hardware.cts.helpers.SensorStats; 89 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() 92 stats.addValue(SensorStats.DELAYED_BATCH_DELIVERY, count); in verify()
|
D | FrequencyVerification.java | 23 import android.hardware.cts.helpers.SensorStats; 117 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() 128 stats.addValue(SensorStats.FREQUENCY_KEY, measuredFrequencyHz); in verify()
|
D | GyroscopeIntegrationVerification.java | 22 import android.hardware.cts.helpers.SensorStats; 57 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify()
|
D | JitterVerification.java | 27 import android.hardware.cts.helpers.SensorStats; 94 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() 108 stats.addValue(SensorStats.JITTER_95_PERCENTILE_PERCENT_KEY, jitter95PercentilePercent); in verify()
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
D | SensorStatsTest.java | 32 SensorStats stats = new SensorStats(); in testFlatten() 36 SensorStats subStats = new SensorStats(); in testFlatten() 40 SensorStats subSubStats = new SensorStats(); in testFlatten() 48 stats.addSensorStats("stats2", new SensorStats()); in testFlatten()
|
D | SensorStats.java | 40 public class SensorStats { class 61 private final Map<String, SensorStats> mSensorStats = new HashMap<>(); 83 public synchronized void addSensorStats(String key, SensorStats stats) { in addSensorStats() 116 for (Entry<String, SensorStats> statsEntry : mSensorStats.entrySet()) { in flatten()
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensoroperations/ |
D | SensorOperation.java | 19 import android.hardware.cts.helpers.SensorStats; 40 private final SensorStats mStats; 43 this(new SensorStats()); in SensorOperation() 46 protected SensorOperation(SensorStats stats) { in SensorOperation() 53 public SensorStats getStats() { in getStats() 78 protected void addSensorStats(String key, SensorStats stats) { in addSensorStats() 88 protected void addSensorStats(String key, int index, SensorStats stats) { in addSensorStats()
|
D | SensorOperationTest.java | 21 import android.hardware.cts.helpers.SensorStats; 66 assertTrue(op.getStats().flatten().keySet().contains(SensorStats.ERROR)); in testFakeSensorOperation() 122 ParallelSensorOperation.STATS_TAG, i, SensorStats.DELIMITER))); 155 ParallelSensorOperation.STATS_TAG, i, SensorStats.DELIMITER))); 158 ParallelSensorOperation.STATS_TAG, i, SensorStats.DELIMITER, 159 SensorStats.ERROR))); 163 assertTrue(statsKeys.contains(SensorStats.ERROR)); 196 ParallelSensorOperation.STATS_TAG, i, SensorStats.DELIMITER))); 223 RepeatingSensorOperation.STATS_TAG, i, SensorStats.DELIMITER))); 237 private SensorStats mFakeStats = new SensorStats(); [all …]
|
D | FakeSensorOperation.java | 19 import android.hardware.cts.helpers.SensorStats; 86 getStats().addValue(SensorStats.ERROR, msg); in doFail()
|
D | SequentialSensorOperation.java | 19 import android.hardware.cts.helpers.SensorStats; 59 getStats().addValue(SensorStats.ERROR, msg); in execute()
|
D | RepeatingSensorOperation.java | 19 import android.hardware.cts.helpers.SensorStats; 60 getStats().addValue(SensorStats.ERROR, msg); in execute()
|