Searched refs:sensors_event_t (Results 1 – 8 of 8) sorted by relevance
/device/google/contexthub/util/common/ |
D | ring.cpp | 27 mData((sensors_event_t *)malloc(sizeof(sensors_event_t) * mSize)), in RingBuffer() 37 ssize_t RingBuffer::write(const sensors_event_t *ev, size_t size) { in write() 54 memcpy(&mData[writePos], ev, copy * sizeof(sensors_event_t)); in write() 57 memcpy(mData, &ev[copy], (size - copy) * sizeof(sensors_event_t)); in write() 69 ssize_t RingBuffer::read(sensors_event_t *ev, size_t size) { in read() 93 memcpy(ev, &mData[readPos], copy * sizeof(sensors_event_t)); in read() 96 memcpy(&ev[copy], mData, (size - copy) * sizeof(sensors_event_t)); in read() 105 : mData((sensors_event_t *)buf), mSize(size/sizeof(sensors_event_t)), in LockfreeBuffer() 111 memset(mData, 0, mSize*sizeof(sensors_event_t)); in ~LockfreeBuffer() 114 void LockfreeBuffer::write(const sensors_event_t *ev, size_t size) { in write() [all …]
|
D | ring.h | 32 ssize_t write(const sensors_event_t *ev, size_t size); 33 ssize_t read(sensors_event_t *ev, size_t size); 40 sensors_event_t *mData; 51 void write(const sensors_event_t *ev, size_t size); 53 sensors_event_t *mData;
|
/device/google/contexthub/sensorhal/ |
D | sensors.h | 63 int poll(sensors_event_t *data, int count); 76 int inject_sensor_data(const struct sensors_event_t *event); 90 struct sensors_poll_device_t *dev, sensors_event_t *data, int count); 105 …static int InjectSensorDataWrapper(struct sensors_poll_device_1 *dev, const sensors_event_t *event…
|
D | hubconnection.h | 81 ssize_t read(sensors_event_t *ev, size_t size); 82 ssize_t write(const sensors_event_t *ev, size_t n); 264 … sensors_event_t *initEv(sensors_event_t *ev, uint64_t timestamp, uint32_t type, uint32_t sensor); 322 void sendDirectReportEvent(const sensors_event_t *nev, size_t n);
|
D | sensors.cpp | 102 int SensorContext::poll(sensors_event_t *data, int count) { in poll() 173 struct sensors_poll_device_t *dev, sensors_event_t *data, int count) { in PollWrapper() 208 int SensorContext::inject_sensor_data(const sensors_event_t *event) { in inject_sensor_data() 231 const struct sensors_event_t *event) { in InjectSensorDataWrapper() 324 virtual int submitEvent(sp<BaseSensorObject> source, const sensors_event_t &e) override; 329 int Callback::submitEvent(sp<BaseSensorObject> source, const sensors_event_t &e) { in submitEvent()
|
D | hubconnection.cpp | 554 sensors_event_t *HubConnection::initEv(sensors_event_t *ev, uint64_t timestamp, uint32_t type, uint… in initEv() 556 memset(ev, 0x00, sizeof(sensors_event_t)); in initEv() 557 ev->version = sizeof(sensors_event_t); in initEv() 601 sensors_event_t nev[1]; in processSample() 680 sensors_event_t nev[3]; in processSample() 787 sensors_event_t *ev; in processSample() 788 sensors_event_t nev[3]; in processSample() 1094 sensors_event_t ev; in processBuf() 1342 memset(&ev, 0x00, sizeof(sensors_event_t)); in processBuf() 1524 sensors_event_t gestureEvent; in threadLoop() [all …]
|
D | directchannel.h | 38 void write(const sensors_event_t * ev);
|
D | directchannel.cpp | 35 void DirectChannelBase::write(const sensors_event_t * ev) { in write()
|