Home
last modified time | relevance | path

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

12

/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/
DEventOrderingVerificationTest.java21 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()
DFrequencyVerificationTest.java21 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()
DMeanVerificationTest.java21 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()
DEventGapVerificationTest.java21 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()
DJitterVerificationTest.java21 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()
DMagnitudeVerificationTest.java21 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()
DEventOrderingVerification.java22 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()
DStandardDeviationVerificationTest.java21 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()
DISensorVerification.java19 import android.hardware.cts.helpers.SensorStats;
49 void verify(TestSensorEnvironment environment, SensorStats stats); in verify()
DMagnitudeVerification.java24 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()
DEventGapVerification.java6 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()
DEventTimestampSynchronizationVerification.java22 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()
DMeanVerification.java23 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()
DFifoLengthVerification.java23 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()
DBatchArrivalVerification.java9 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()
DFrequencyVerification.java23 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()
DGyroscopeIntegrationVerification.java22 import android.hardware.cts.helpers.SensorStats;
57 public void verify(TestSensorEnvironment environment, SensorStats stats) { in verify()
DJitterVerification.java27 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/
DSensorStatsTest.java32 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()
DSensorStats.java40 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/
DSensorOperation.java19 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()
DSensorOperationTest.java21 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 …]
DFakeSensorOperation.java19 import android.hardware.cts.helpers.SensorStats;
86 getStats().addValue(SensorStats.ERROR, msg); in doFail()
DSequentialSensorOperation.java19 import android.hardware.cts.helpers.SensorStats;
59 getStats().addValue(SensorStats.ERROR, msg); in execute()
DRepeatingSensorOperation.java19 import android.hardware.cts.helpers.SensorStats;
60 getStats().addValue(SensorStats.ERROR, msg); in execute()

12