Home
last modified time | relevance | path

Searched refs:SENSORS_EVENT_SIZE (Results 1 – 3 of 3) sorted by relevance

/cts/tests/sensor/src/android/hardware/cts/
DSensorDirectReportTest.java100 private static final int SENSORS_EVENT_SIZE = 104; field in SensorDirectReportTest
104 private static final int SHARED_MEMORY_SIZE = SENSORS_EVENT_COUNT * SENSORS_EVENT_SIZE;
1094 offset += (events.size() * SENSORS_EVENT_SIZE ) % SHARED_MEMORY_SIZE; in runReconfigureTest()
1157 if (!readSharedMemory(memType, secondary, offset, SENSORS_EVENT_SIZE)) { in collectSensorEventsRealtime()
1171 offset += SENSORS_EVENT_SIZE; in collectSensorEventsRealtime()
1172 if (offset + SENSORS_EVENT_SIZE > SHARED_MEMORY_SIZE) { in collectSensorEventsRealtime()
1192 byte[] lastArray = new byte[SENSORS_EVENT_SIZE]; in checkAtomicCounterUpdate()
1196 if (!readSharedMemory(memType, false/*secondary*/, lastOffset, SENSORS_EVENT_SIZE) in checkAtomicCounterUpdate()
1205 for (i = 0; i < SENSORS_EVENT_SIZE; ++i) { in checkAtomicCounterUpdate()
1213 byte[] currentArray = new byte[SENSORS_EVENT_SIZE]; in checkAtomicCounterUpdate()
[all …]
/cts/tests/sensor/src/android/hardware/cts/helpers/
DSensorRatePermissionDirectReportTestHelper.java57 public static final int SENSORS_EVENT_SIZE = 104; field in SensorRatePermissionDirectReportTestHelper
158 int sharedMemorySize = sensorEventCount * SENSORS_EVENT_SIZE; in getSensorEvents()
180 int sharedMemorySize = sensorEventCount * SENSORS_EVENT_SIZE; in readEventsFromHardwareBuffer()
/cts/tests/sensor/sensorratepermission/DirectReportAPI30/src/android/sensorratepermission/cts/directreportapi30/
DDirectReportAPI30Test.java145 SensorRatePermissionDirectReportTestHelper.SENSORS_EVENT_SIZE; in testSamplingRateMicToggleOffOnOff()