Home
last modified time | relevance | path

Searched refs:outEvent (Results 1 – 21 of 21) sorted by relevance

/frameworks/native/services/sensorservice/
DRotationVectorSensor.cpp36 bool RotationVectorSensor::process(sensors_event_t* outEvent, in process() argument
42 *outEvent = event; in process()
43 outEvent->data[0] = q.x; in process()
44 outEvent->data[1] = q.y; in process()
45 outEvent->data[2] = q.z; in process()
46 outEvent->data[3] = q.w; in process()
47 outEvent->sensor = '_rov'; in process()
48 outEvent->type = SENSOR_TYPE_ROTATION_VECTOR; in process()
86 bool GyroDriftSensor::process(sensors_event_t* outEvent, in process() argument
92 *outEvent = event; in process()
[all …]
DLinearAccelerationSensor.cpp38 bool LinearAccelerationSensor::process(sensors_event_t* outEvent, in process() argument
41 bool result = mGravitySensor.process(outEvent, event); in process()
43 outEvent->data[0] = event.acceleration.x - outEvent->data[0]; in process()
44 outEvent->data[1] = event.acceleration.y - outEvent->data[1]; in process()
45 outEvent->data[2] = event.acceleration.z - outEvent->data[2]; in process()
46 outEvent->sensor = '_lin'; in process()
47 outEvent->type = SENSOR_TYPE_LINEAR_ACCELERATION; in process()
DOrientationSensor.cpp41 bool OrientationSensor::process(sensors_event_t* outEvent, in process() argument
55 *outEvent = event; in process()
56 outEvent->orientation.azimuth = g.x; in process()
57 outEvent->orientation.pitch = g.y; in process()
58 outEvent->orientation.roll = g.z; in process()
59 outEvent->orientation.status = SENSOR_STATUS_ACCURACY_HIGH; in process()
60 outEvent->sensor = '_ypr'; in process()
61 outEvent->type = SENSOR_TYPE_ORIENTATION; in process()
DGravitySensor.cpp44 bool GravitySensor::process(sensors_event_t* outEvent, in process() argument
58 *outEvent = event; in process()
59 outEvent->data[0] = g.x; in process()
60 outEvent->data[1] = g.y; in process()
61 outEvent->data[2] = g.z; in process()
62 outEvent->sensor = '_grv'; in process()
63 outEvent->type = SENSOR_TYPE_GRAVITY; in process()
DCorrectedGyroSensor.cpp44 bool CorrectedGyroSensor::process(sensors_event_t* outEvent, in process() argument
49 *outEvent = event; in process()
50 outEvent->data[0] -= bias.x; in process()
51 outEvent->data[1] -= bias.y; in process()
52 outEvent->data[2] -= bias.z; in process()
53 outEvent->sensor = '_cgy'; in process()
DRotationVectorSensor.h41 virtual bool process(sensors_event_t* outEvent,
55 virtual bool process(sensors_event_t* outEvent,
DSensorInterface.cpp40 bool HardwareSensor::process(sensors_event_t* outEvent, in process() argument
42 *outEvent = event; in process()
DSensorInterface.h36 virtual bool process(sensors_event_t* outEvent,
72 virtual bool process(sensors_event_t* outEvent,
DOrientationSensor.h40 virtual bool process(sensors_event_t* outEvent,
DLinearAccelerationSensor.h39 virtual bool process(sensors_event_t* outEvent,
DGravitySensor.h41 virtual bool process(sensors_event_t* outEvent,
DCorrectedGyroSensor.h41 virtual bool process(sensors_event_t* outEvent,
/frameworks/native/libs/input/
DInputTransport.cpp400 bool consumeBatches, nsecs_t frameTime, uint32_t* outSeq, InputEvent** outEvent) { in consume() argument
407 *outEvent = NULL; in consume()
411 while (!*outEvent) { in consume()
422 result = consumeBatch(factory, frameTime, outSeq, outEvent); in consume()
423 if (*outEvent) { in consume()
442 *outEvent = keyEvent; in consume()
466 batch, batch.samples.size(), outSeq, outEvent); in consume()
499 *outEvent = motionEvent; in consume()
517 nsecs_t frameTime, uint32_t* outSeq, InputEvent** outEvent) { in consumeBatch() argument
523 outSeq, outEvent); in consumeBatch()
[all …]
/frameworks/base/core/jni/
Dandroid_view_InputQueue.cpp93 status_t InputQueue::getEvent(InputEvent** outEvent) { in getEvent() argument
95 *outEvent = NULL; in getEvent()
97 *outEvent = mPendingEvents[0]; in getEvent()
112 return *outEvent != NULL ? OK : WOULD_BLOCK; in getEvent()
/frameworks/native/include/input/
DInputTransport.h306 nsecs_t frameTime, uint32_t* outSeq, InputEvent** outEvent);
427 nsecs_t frameTime, uint32_t* outSeq, InputEvent** outEvent);
429 Batch& batch, size_t count, uint32_t* outSeq, InputEvent** outEvent);
/frameworks/base/include/android_runtime/
Dandroid_view_InputQueue.h45 status_t getEvent(InputEvent** outEvent);
/frameworks/base/native/android/
Dinput.cpp290 int32_t AInputQueue_getEvent(AInputQueue* queue, AInputEvent** outEvent) { in AInputQueue_getEvent() argument
294 *outEvent = event; in AInputQueue_getEvent()
/frameworks/native/libs/input/tests/
DInputEvent_test.cpp511 MotionEvent outEvent; in TEST_F() local
516 outEvent.readFromParcel(&parcel); in TEST_F()
518 ASSERT_NO_FATAL_FAILURE(assertEqualsEventWithHistory(&outEvent)); in TEST_F()
/frameworks/native/include/android/
Dinput.h1291 int32_t AInputQueue_getEvent(AInputQueue* queue, AInputEvent** outEvent);
/frameworks/base/docs/html/ndk/reference/
Dinput_8h.jd367 … href="group___input.html#gac35dbbc035371e799d8badabc981e8fa">AInputEvent</a> **outEvent)</td></tr>
Dgroup___input.jd695 … href="group___input.html#gac35dbbc035371e799d8badabc981e8fa">AInputEvent</a> **outEvent)</td></tr>
2455 <td class="paramname"><em>outEvent</em>&#160;</td>