Home
last modified time | relevance | path

Searched refs:ASensorEvent (Results 1 – 13 of 13) sorted by relevance

/frameworks/native/libs/sensor/include/sensor/
DSensorEventQueue.h32 struct ASensorEvent;
74 ASensorEvent const* events, size_t numEvents);
76 ssize_t read(ASensorEvent* events, size_t numEvents);
92 void sendAck(const ASensorEvent* events, int count);
94 status_t injectSensorEvent(const ASensorEvent& event);
101 ASensorEvent* mRecBuffer;
/frameworks/native/libs/sensor/
DSensorEventQueue.cpp42 mRecBuffer = new ASensorEvent[MAX_RECEIVE_BUFFER_EVENT_COUNT]; in SensorEventQueue()
61 ASensorEvent const* events, size_t numEvents) { in write()
65 ssize_t SensorEventQueue::read(ASensorEvent* events, size_t numEvents) { in read()
76 memcpy(events, mRecBuffer + mConsumed, count * sizeof(ASensorEvent)); in read()
155 status_t SensorEventQueue::injectSensorEvent(const ASensorEvent& event) { in injectSensorEvent()
172 void SensorEventQueue::sendAck(const ASensorEvent* events, int count) { in sendAck()
/frameworks/native/include/android/
Dsensor.h262 typedef struct ASensorEvent { struct
294 } ASensorEvent; argument
572 ssize_t ASensorEventQueue_getEvents(ASensorEventQueue* queue, ASensorEvent* events, size_t count);
/frameworks/hardware/interfaces/sensorservice/libsensorndkbridge/
DASensorEventQueue.cpp82 ssize_t ASensorEventQueue::getEvents(ASensorEvent *events, size_t count) { in getEvents()
88 sizeof(ASensorEvent) == sizeof(sensors_event_t), "mismatched size"); in getEvents()
DASensorEventQueue.h55 ssize_t getEvents(ASensorEvent *events, size_t count);
DASensorManager.cpp340 ASensorEventQueue* queue, ASensorEvent* events, size_t count) { in ASensorEventQueue_getEvents()
/frameworks/native/services/sensorservice/hidl/
Dutils.h33 ::android::hardware::sensors::V1_0::Event convertEvent(const ::ASensorEvent &event);
DEventQueue.cpp37 ASensorEvent event; in handleEvent()
Dutils.cpp77 ::android::hardware::sensors::V1_0::Event convertEvent(const ::ASensorEvent& src) { in convertEvent()
/frameworks/base/native/android/
Dsensor.cpp141 if (size < sizeof(ASensorEvent)) { in ASensorManager_createSharedMemoryDirectChannel()
167 if (size < sizeof(ASensorEvent)) { in ASensorManager_createHardwareBufferDirectChannel()
270 ssize_t ASensorEventQueue_getEvents(ASensorEventQueue* queue, ASensorEvent* events, size_t count) { in ASensorEventQueue_getEvents()
/frameworks/native/services/sensorservice/tests/
Dsensorservicetest.cpp33 ASensorEvent buffer[8]; in receiver()
/frameworks/native/services/sensorservice/
DSensorEventConnection.cpp330 reinterpret_cast<ASensorEvent const*>(scratch), count); in sendEvents()
385 ASensorEvent flushCompleteEvent; in sendPendingFlushEventsLocked()
439 reinterpret_cast<ASensorEvent const*>(mEventCache + numEventsSent), in writeToSocketFromCache()
/frameworks/base/core/jni/
Dandroid_hardware_SensorManager.cpp338 ASensorEvent buffer[16]; in handleEvent()
473 ASensorEvent sensor_event; in nativeInjectSensorData()