/cts/tests/sensor/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 | EventBasicVerificationTest.java | 23 import android.hardware.cts.helpers.SensorStats; 49 SensorStats stats; in testVerify() 55 stats = new SensorStats(); in testVerify() 59 assertEquals(20, (long) stats.getValue(SensorStats.EVENT_COUNT_KEY)); in testVerify() 60 assertEquals(false, stats.getValue(SensorStats.WRONG_SENSOR_KEY)); in testVerify() 64 stats = new SensorStats(); in testVerify() 73 assertEquals(5, (long) stats.getValue(SensorStats.EVENT_COUNT_KEY)); in testVerify() 74 assertEquals(false, stats.getValue(SensorStats.WRONG_SENSOR_KEY)); in testVerify() 80 stats = new SensorStats(); in testVerify() 90 assertEquals(0, (long) stats.getValue(SensorStats.EVENT_COUNT_KEY)); in testVerify() [all …]
|
D | MeanVerificationTest.java | 21 import android.hardware.cts.helpers.SensorStats; 49 SensorStats stats = new SensorStats(); in testVerify() 58 stats = new SensorStats(); in testVerify() 64 stats = new SensorStats(); in testVerify() 75 stats = new SensorStats(); in testVerify() 86 stats = new SensorStats(); in testVerify() 100 stats = new SensorStats(); in testVerify() 106 stats = new SensorStats(); in testVerify() 117 stats = new SensorStats(); in testVerify() 128 stats = new SensorStats(); in testVerify() [all …]
|
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 | MeanLargerThanVerificationTest.java | 21 import android.hardware.cts.helpers.SensorStats; 45 SensorStats stats = new SensorStats(); in testVerify() 53 stats = new SensorStats(); in testVerify() 61 stats = new SensorStats(); in testVerify() 68 stats = new SensorStats(); in testVerify() 91 private void verifyStats(SensorStats stats, boolean passed, float[] means) { in verifyStats() 93 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 | TimestampClockSourceVerificationTest.java | 21 import android.hardware.cts.helpers.SensorStats; 166 SensorStats stats = new SensorStats(); in runVerification() 183 … assertEquals(indices.length, stats.getValue(SensorStats.EVENT_TIME_WRONG_CLOCKSOURCE_COUNT_KEY)); in runVerification() 184 if (0 != (Integer) stats.getValue(SensorStats.EVENT_TIME_WRONG_CLOCKSOURCE_COUNT_KEY)) { in runVerification() 185 assertNotNull(stats.getValue(SensorStats.EVENT_TIME_WRONG_CLOCKSOURCE_POSITIONS_KEY)); in runVerification() 188 …int[] actualIndices = (int[]) stats.getValue(SensorStats.EVENT_TIME_WRONG_CLOCKSOURCE_POSITIONS_KE… in runVerification()
|
D | InitialValueVerificationTest.java | 21 import android.hardware.cts.helpers.SensorStats; 94 SensorStats stats = new SensorStats(); in verifyStatsWithTwoWindows() 115 private static void verifyStats(SensorStats stats, boolean passed, float[] initialMeans, in verifyStats() 118 float[] actualInitialMeans = (float[]) stats.getValue(SensorStats.INITIAL_MEAN_KEY); in verifyStats() 119 float[] actualLaterMeans = (float[]) stats.getValue(SensorStats.LATER_MEAN_KEY); in verifyStats()
|
D | JitterVerificationTest.java | 21 import android.hardware.cts.helpers.SensorStats; 50 SensorStats stats = new SensorStats(); in testVerify() 61 stats = new SensorStats(); in testVerify() 116 private void verifyStats(SensorStats stats, boolean passed, double percentageJitter) { in verifyStats() 120 (Double) stats.getValue(SensorStats.JITTER_95_PERCENTILE_PERCENT_KEY), in verifyStats()
|
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 | EventBasicVerification.java | 26 import android.hardware.cts.helpers.SensorStats; 166 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() 171 void verify(SensorStats stats) { in verify() 173 stats.addValue(SensorStats.EVENT_COUNT_KEY, mNumEvent); in verify() 174 stats.addValue(SensorStats.EVENT_COUNT_EXPECTED_KEY, mExpectedMinNumEvent); in verify() 175 stats.addValue(SensorStats.WRONG_SENSOR_KEY, mWrongSensorObserved); 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 | 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 | MeanLargerThanVerification.java | 23 import android.hardware.cts.helpers.SensorStats; 86 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() 91 void verify(SensorStats stats) { in verify() 107 stats.addValue(SensorStats.MEAN_KEY, means); in verify()
|
D | ISensorVerification.java | 19 import android.hardware.cts.helpers.SensorStats; 49 void verify(TestSensorEnvironment environment, SensorStats stats); in verify()
|
D | TimestampClockSourceVerification.java | 22 import android.hardware.cts.helpers.SensorStats; 96 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() 106 stats.addValue(SensorStats.EVENT_TIME_WRONG_CLOCKSOURCE_COUNT_KEY, failuresCount); in verify() 108 SensorStats.EVENT_TIME_WRONG_CLOCKSOURCE_POSITIONS_KEY, in verify() 113 stats.addValue(SensorStats.EVENT_TIME_WRONG_CLOCKSOURCE_COUNT_KEY, 0); in verify()
|
D | EventGapVerification.java | 6 import android.hardware.cts.helpers.SensorStats; 68 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() 82 stats.addValue(SensorStats.EVENT_GAP_COUNT_KEY, count); in verify() 83 stats.addValue(SensorStats.EVENT_GAP_POSITIONS_KEY, getIndexArray(mEventGaps)); in verify()
|
D | OffsetVerificationTest.java | 19 import android.hardware.cts.helpers.SensorStats; 99 SensorStats stats = new SensorStats(); in runStats()
|
D | OffsetVerification.java | 21 import android.hardware.cts.helpers.SensorStats; 79 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() 86 protected void verify(SensorStats stats) { in verify()
|
D | InitialValueVerification.java | 20 import android.hardware.cts.helpers.SensorStats; 93 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() 100 void verify(SensorStats stats) { in verify() 118 stats.addValue(SensorStats.INITIAL_MEAN_KEY, initialMeans); in verify() 119 stats.addValue(SensorStats.LATER_MEAN_KEY, laterMeans); in verify()
|
D | ContinuousEventSanitizedVerification.java | 20 import android.hardware.cts.helpers.SensorStats; 74 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify() 78 stats.addValue(SensorStats.EVENT_NOT_SANITIZED_KEY, mNonSanitizedEvents); in verify()
|
/cts/tests/sensor/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()
|
/cts/tests/sensor/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()
|