Home
last modified time | relevance | path

Searched refs:sensors_event_t (Results 1 – 25 of 54) sorted by relevance

123

/hardware/libhardware/tests/hardware/
Dstruct-offset.cpp70 CHECK_MEMBER_AT(sensors_event_t, version, 0, 0); in CheckOffsets()
71 CHECK_MEMBER_AT(sensors_event_t, sensor, 4, 4); in CheckOffsets()
72 CHECK_MEMBER_AT(sensors_event_t, type, 8, 8); in CheckOffsets()
73 CHECK_MEMBER_AT(sensors_event_t, reserved0, 12, 12); in CheckOffsets()
74 CHECK_MEMBER_AT(sensors_event_t, timestamp, 16, 16); in CheckOffsets()
75 CHECK_MEMBER_AT(sensors_event_t, data, 24, 24); in CheckOffsets()
76 CHECK_MEMBER_AT(sensors_event_t, acceleration, 24, 24); in CheckOffsets()
77 CHECK_MEMBER_AT(sensors_event_t, magnetic, 24, 24); in CheckOffsets()
78 CHECK_MEMBER_AT(sensors_event_t, orientation, 24, 24); in CheckOffsets()
79 CHECK_MEMBER_AT(sensors_event_t, gyro, 24, 24); in CheckOffsets()
[all …]
/hardware/invensense/65xx/libsensors_iio/
DMPLSensor.h175 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 …]
DSensorBase.h53 struct sensors_event_t;
89 virtual int readEvents(sensors_event_t* data, int count) = 0;
/hardware/invensense/6515/libsensors_iio/
DMPLSensor.h176 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 …]
/hardware/bsp/intel/peripheral/sensors/mraa/
DAcquisitionThread.cpp31 sensors_event_t data; in acquisitionRoutine()
45 memset(&data, 0, sizeof(sensors_event_t)); in acquisitionRoutine()
46 data.version = sizeof(sensors_event_t); in acquisitionRoutine()
64 rc = write(acquisitionThread->getWritePipeFd(), &data, sizeof(sensors_event_t)); in acquisitionRoutine()
65 if (rc != sizeof(sensors_event_t)) { in acquisitionRoutine()
164 sensors_event_t data; in generateFlushCompleteEvent()
172 memset(&data, 0, sizeof(sensors_event_t)); in generateFlushCompleteEvent()
184 rc = write(getWritePipeFd(), &data, sizeof(sensors_event_t)); in generateFlushCompleteEvent()
185 if (rc != sizeof(sensors_event_t)) { in generateFlushCompleteEvent()
DSensor.hpp29 struct sensors_event_t;
72 virtual int pollEvents(sensors_event_t* data, int count) = 0;
97 virtual bool readOneEvent(sensors_event_t *event);
DSensorsHAL.hpp83 int pollEvents(sensors_event_t* data, int count);
97 sensors_event_t *data, int count);
/hardware/libhardware/modules/sensors/
DSensorEventQueue.h37 sensors_event_t* mData;
51 int getWritableRegion(int requestedLength, sensors_event_t** out);
65 sensors_event_t* peek();
DSensorEventQueue.cpp29 mData = new sensors_event_t[mCapacity]; in SensorEventQueue()
39 int SensorEventQueue::getWritableRegion(int requestedLength, sensors_event_t** out) { in getWritableRegion()
69 sensors_event_t* SensorEventQueue::peek() { in peek()
Dmultihal.cpp144 sensors_event_t* buffer; in writerTask()
195 int poll(sensors_event_t* data, int count);
209 void copy_event_remap_handle(sensors_event_t* src, sensors_event_t* dest, int sub_index);
310 void sensors_poll_context_t::copy_event_remap_handle(sensors_event_t* dest, sensors_event_t* src, in copy_event_remap_handle()
312 memcpy(dest, src, sizeof(struct sensors_event_t)); in copy_event_remap_handle()
332 int sensors_poll_context_t::poll(sensors_event_t *data, int maxReads) { in poll()
343 sensors_event_t* event = queue->peek(); in poll()
435 static int device__poll(struct sensors_poll_device_t *dev, sensors_event_t* data, in device__poll()
/hardware/akm/AK8975_FS/libsensors/
DAkmSensor.h46 virtual int readEvents(sensors_event_t* data, int count);
51 int setAccel(sensors_event_t* data);
58 sensors_event_t mPendingEvents[numSensors];
DKionixSensor.h37 sensors_event_t mPendingEvent;
47 virtual int readEvents(sensors_event_t* data, int count);
DAdxlSensor.h37 sensors_event_t mPendingEvent;
47 virtual int readEvents(sensors_event_t* data, int count);
DSensorBase.h28 struct sensors_event_t;
59 virtual int readEvents(sensors_event_t* data, int count) = 0;
DAkmSensor.cpp46 mPendingEvents[Accelerometer].version = sizeof(sensors_event_t); in AkmSensor()
51 mPendingEvents[MagneticField].version = sizeof(sensors_event_t); in AkmSensor()
56 mPendingEvents[Orientation ].version = sizeof(sensors_event_t); in AkmSensor()
195 int AkmSensor::readEvents(sensors_event_t* data, int count) in readEvents()
241 int AkmSensor::setAccel(sensors_event_t* data) in setAccel()
/hardware/bsp/intel/peripheral/sensors/mraa/sensors/
DGroveLight.hpp24 struct sensors_event_t;
51 int pollEvents(sensors_event_t* data, int count) override;
DProximityGPIO.hpp24 struct sensors_event_t;
51 int pollEvents(sensors_event_t* data, int count) override;
DGroveTemperature.hpp24 struct sensors_event_t;
51 int pollEvents(sensors_event_t* data, int count) override;
DLSM303dOrientation.hpp24 struct sensors_event_t;
54 int pollEvents(sensors_event_t* data, int count) override;
DLSM303dAccelerometer.hpp24 struct sensors_event_t;
57 int pollEvents(sensors_event_t* data, int count) override;
DMMA7660Accelerometer.hpp24 struct sensors_event_t;
59 int pollEvents(sensors_event_t* data, int count) override;
DLSM9DS0Accelerometer.hpp24 struct sensors_event_t;
53 int pollEvents(sensors_event_t* data, int count) override;
DMPU9150Accelerometer.hpp24 struct sensors_event_t;
56 int pollEvents(sensors_event_t* data, int count) override;
/hardware/libhardware/tests/nusensors/
Dnusensors.cpp102 sensors_event_t buffer[numEvents]; in main()
132 const sensors_event_t& data = buffer[i]; in main()
134 if (data.version != sizeof(sensors_event_t)) { in main()
136 data.version, sizeof(sensors_event_t)); in main()
/hardware/libhardware/include/hardware/
Dsensors.h1053 typedef struct sensors_event_t { struct
1137 } sensors_event_t; argument
1141 typedef sensors_event_t sensors_meta_data_event_t;
1295 sensors_event_t* data, int count);
1334 sensors_event_t* data, int count);
1374 int (*inject_sensor_data)(struct sensors_poll_device_1 *dev, const sensors_event_t *data);

123