/hardware/libhardware/tests/hardware/ |
D | struct-offset.cpp | 69 CHECK_MEMBER_AT(sensors_event_t, version, 0, 0); in CheckOffsets() 70 CHECK_MEMBER_AT(sensors_event_t, sensor, 4, 4); in CheckOffsets() 71 CHECK_MEMBER_AT(sensors_event_t, type, 8, 8); in CheckOffsets() 72 CHECK_MEMBER_AT(sensors_event_t, reserved0, 12, 12); in CheckOffsets() 73 CHECK_MEMBER_AT(sensors_event_t, timestamp, 16, 16); in CheckOffsets() 74 CHECK_MEMBER_AT(sensors_event_t, data, 24, 24); in CheckOffsets() 75 CHECK_MEMBER_AT(sensors_event_t, acceleration, 24, 24); in CheckOffsets() 76 CHECK_MEMBER_AT(sensors_event_t, magnetic, 24, 24); in CheckOffsets() 77 CHECK_MEMBER_AT(sensors_event_t, orientation, 24, 24); in CheckOffsets() 78 CHECK_MEMBER_AT(sensors_event_t, gyro, 24, 24); in CheckOffsets() [all …]
|
/hardware/invensense/65xx/libsensors_iio/ |
D | MPLSensor.h | 175 typedef int (MPLSensor::*hfunc_t)(sensors_event_t*); 210 virtual int readEvents(sensors_event_t *data, int count); 226 int readAccelEvents(sensors_event_t* data, int count); 234 int readDmpOrientEvents(sensors_event_t* data, int count); 243 int readDmpSignificantMotionEvents(sensors_event_t* data, int count); 245 int significantMotionHandler(sensors_event_t* data); 249 …int readDmpPedometerEvents(sensors_event_t* data, int count, int32_t id, int32_t type, int outputT… 260 int gyroHandler(sensors_event_t *data); 261 int rawGyroHandler(sensors_event_t *data); 262 int accelHandler(sensors_event_t *data); [all …]
|
D | SensorBase.h | 53 struct sensors_event_t; 89 virtual int readEvents(sensors_event_t* data, int count) = 0;
|
D | PressureSensor.IIO.secondary.h | 50 virtual int readEvents(sensors_event_t *data, int count) { return 0; } in readEvents()
|
D | CompassSensor.AKM.h | 53 virtual int readEvents(sensors_event_t *data, int count) { return 0; } in readEvents()
|
/hardware/invensense/6515/libsensors_iio/ |
D | MPLSensor.h | 176 typedef int (MPLSensor::*hfunc_t)(sensors_event_t*); 195 virtual int readEvents(sensors_event_t *data, int count); 213 int readDmpOrientEvents(sensors_event_t* data, int count); 222 int readDmpSignificantMotionEvents(sensors_event_t* data, int count); 224 int significantMotionHandler(sensors_event_t* data); 228 int readDmpPedometerEvents(sensors_event_t* data, int count, int32_t id, int outputType); 239 int gyroHandler(sensors_event_t *data); 240 int rawGyroHandler(sensors_event_t *data); 241 int accelHandler(sensors_event_t *data); 242 int compassHandler(sensors_event_t *data); [all …]
|
D | SensorBase.h | 53 struct sensors_event_t; 90 virtual int readEvents(sensors_event_t* data, int count) = 0;
|
D | PressureSensor.IIO.secondary.h | 50 virtual int readEvents(sensors_event_t *data, int count) { return 0; } in readEvents()
|
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
D | RingBuffer.cpp | 26 mData((sensors_event_t *)malloc(sizeof(sensors_event_t) * mSize)), in RingBuffer() 36 ssize_t RingBuffer::write(const sensors_event_t *ev, size_t size) { in write() 53 memcpy(&mData[writePos], ev, copy * sizeof(sensors_event_t)); in write() 56 memcpy(mData, &ev[copy], (size - copy) * sizeof(sensors_event_t)); in write() 68 ssize_t RingBuffer::read(sensors_event_t *ev, size_t size) { in read() 92 memcpy(ev, &mData[readPos], copy * sizeof(sensors_event_t)); in read() 95 memcpy(&ev[copy], mData, (size - copy) * sizeof(sensors_event_t)); in read()
|
D | RingBuffer.h | 33 ssize_t write(const sensors_event_t *ev, size_t size); 34 ssize_t read(sensors_event_t *ev, size_t size); 41 sensors_event_t *mData;
|
D | DynamicSensorManager.h | 62 int poll(sensors_event_t * data, int count); 65 virtual int submitEvent(sp<BaseSensorObject>, const sensors_event_t &e) override; 78 const sensors_event_t& generateConnectionEvent(int metaHandle); 79 static void fillDisconnectionEvent(sensors_event_t* event, int metaHandle, int handle); 86 sensors_event_t mEvent;
|
D | DynamicSensorManager.cpp | 113 static const sensors_event_t event = { in flush() 124 int DynamicSensorManager::poll(sensors_event_t * data, int count) { in poll() 173 sensors_event_t event; in unregisterSensor() 178 int DynamicSensorManager::submitEvent(sp<BaseSensorObject> source, const sensors_event_t &e) { in submitEvent() 193 sensors_event_t event = e; in submitEvent() 261 const sensors_event_t& DynamicSensorManager::ConnectionReport:: 276 fillDisconnectionEvent(sensors_event_t* event, int metaHandle, int handle) { in fillDisconnectionEvent() 277 memset(event, 0, sizeof(sensors_event_t)); in fillDisconnectionEvent() 278 event->version = sizeof(sensors_event_t); in fillDisconnectionEvent()
|
D | BaseSensorObject.cpp | 43 static const sensors_event_t event = { in flush() 51 void BaseSensorObject::generateEvent(const sensors_event_t &e) { in generateEvent()
|
D | BaseSensorObject.h | 24 struct sensors_event_t; 58 void generateEvent(const sensors_event_t &e); in REF_BASE()
|
D | sensors.h | 50 int poll(sensors_event_t *data, int count); 67 struct sensors_poll_device_t *dev, sensors_event_t *data, int count);
|
D | SensorEventCallback.h | 32 virtual int submitEvent(SP(BaseSensorObject) sensor, const sensors_event_t &e) = 0;
|
D | sensors.cpp | 64 int SensorContext::poll(sensors_event_t *data, int count) { in poll() 98 struct sensors_poll_device_t *dev, sensors_event_t *data, int count) { in PollWrapper()
|
/hardware/libhardware/modules/sensors/ |
D | SensorEventQueue.h | 37 sensors_event_t* mData; 51 int getWritableRegion(int requestedLength, sensors_event_t** out); 65 sensors_event_t* peek();
|
D | SensorEventQueue.cpp | 31 mData = new sensors_event_t[mCapacity]; in SensorEventQueue() 41 int SensorEventQueue::getWritableRegion(int requestedLength, sensors_event_t** out) { in getWritableRegion() 71 sensors_event_t* SensorEventQueue::peek() { in peek()
|
D | multihal.cpp | 142 sensors_event_t* buffer; in writerTask() 197 int poll(sensors_event_t* data, int count); 200 int inject_sensor_data(const sensors_event_t *data); 218 void copy_event_remap_handle(sensors_event_t* src, sensors_event_t* dest, int sub_index); 339 void sensors_poll_context_t::copy_event_remap_handle(sensors_event_t* dest, sensors_event_t* src, in copy_event_remap_handle() 341 memcpy(dest, src, sizeof(struct sensors_event_t)); in copy_event_remap_handle() 361 int sensors_poll_context_t::poll(sensors_event_t *data, int maxReads) { in poll() 372 sensors_event_t* event = queue->peek(); in poll() 431 int sensors_poll_context_t::inject_sensor_data(const sensors_event_t *data) { in inject_sensor_data() 451 sensors_event_t data_copy = *data; in inject_sensor_data() [all …]
|
/hardware/libhardware/include/hardware/ |
D | sensors.h | 298 typedef struct sensors_event_t { struct 385 } sensors_event_t; typedef 389 typedef sensors_event_t sensors_meta_data_event_t; 561 sensors_event_t* data, int count); 612 sensors_event_t* data, int count); 652 int (*inject_sensor_data)(struct sensors_poll_device_1 *dev, const sensors_event_t *data);
|
/hardware/interfaces/sensors/1.0/default/include/sensors/ |
D | convert.h | 33 void convertFromSensorEvent(const sensors_event_t &src, Event *dst); 34 void convertToSensorEvent(const Event &src, sensors_event_t *dst);
|
/hardware/libhardware/tests/nusensors/ |
D | nusensors.cpp | 103 sensors_event_t buffer[numEvents]; in main() 133 const sensors_event_t& data = buffer[i]; in main() 135 if (data.version != sizeof(sensors_event_t)) { in main() 137 data.version, sizeof(sensors_event_t)); in main()
|
/hardware/interfaces/sensors/common/utils/ |
D | convertV2_1.h | 80 inline void convertFromSensorEvent(const sensors_event_t& src, V2_1::Event* dst) { in convertFromSensorEvent() 98 inline void convertToSensorEvent(const V2_1::Event& src, sensors_event_t* dst) { in convertToSensorEvent() 103 *dst = {.version = sizeof(sensors_event_t), in convertToSensorEvent()
|
/hardware/interfaces/sensors/1.0/default/ |
D | Sensors.cpp | 165 std::unique_ptr<sensors_event_t[]> data; in poll() 190 data.reset(new sensors_event_t[bufferSize]); in poll() 257 sensors_event_t out; in injectSensorData() 334 const sensors_event_t *srcArray, in convertFromSensorEvents() 337 const sensors_event_t &src = srcArray[i]; in convertFromSensorEvents()
|