Home
last modified time | relevance | path

Searched refs:sensor_event (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/jni/
Dandroid_hardware_SensorManager.cpp539 ASensorEvent sensor_event; in nativeInjectSensorData() local
540 memset(&sensor_event, 0, sizeof(sensor_event)); in nativeInjectSensorData()
541 sensor_event.sensor = handle; in nativeInjectSensorData()
542 sensor_event.timestamp = timestamp; in nativeInjectSensorData()
543 env->GetFloatArrayRegion(values, 0, env->GetArrayLength(values), sensor_event.data); in nativeInjectSensorData()
544 return receiver->getSensorEventQueue()->injectSensorEvent(sensor_event); in nativeInjectSensorData()
/frameworks/native/services/sensorservice/
DSensorEventConnection.cpp862 sensors_event_t sensor_event; in handleEvent() local
863 memcpy(&sensor_event, buf, sizeof(sensors_event_t)); in handleEvent()
865 mService->getSensorInterfaceFromHandle(sensor_event.sensor); in handleEvent()
871 sensor_event.type = si->getSensor().getType(); in handleEvent()
872 dev.injectSensorData(&sensor_event); in handleEvent()