Searched refs:sensors_event_t (Results 1 – 13 of 13) 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/cuttlefish_common/guest/hals/sensors/ |
D | vsoc_sensors.h | 113 int Poll(sensors_event_t* data, int count); 162 int InjectSensorData(const sensors_event_t *data) { in InjectSensorData() 169 typedef std::vector<sensors_event_t> FifoType;
|
D | vsoc_sensors_message.h | 21 struct gce_sensors_message : sensors_event_t {
|
D | vsoc_sensors.cpp | 207 int GceSensors::Poll(sensors_event_t* data, int count_unsafe) { in Poll() 338 sensors_event_t event; in Receiver() 424 static bool CompareTimestamps(const sensors_event_t& a, in CompareTimestamps() 425 const sensors_event_t& b) { in CompareTimestamps() 443 sensors_event_t data = holding_buffer->event_; in UpdateDeadline()
|
D | sensors.h | 71 sensors_event_t event_;
|
/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 | directchannel.h | 38 void write(const sensors_event_t * ev);
|
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.cpp | 35 void DirectChannelBase::write(const sensors_event_t * ev) { in write()
|
/device/generic/goldfish/sensors/ |
D | sensors_qemu.c | 144 sensors_event_t sensors[MAX_NUM_SENSORS]; 220 sensors_event_t* event) in sensor_device_pick_pending_event_locked() 286 sensors_event_t* events = dev->sensors; in sensor_device_poll_event_locked() 532 sensors_event_t* data, int count) in sensor_device_poll()
|