I will add a new sensor device to Firefox OS.

In the gecko/hal/gonk/GonkSensor.cpp#EnableSensorNotifications(),
get_sensors_list() was called. Indeed it returns 5 sensors.

AK8963 3-axis Magnetic field sensor
BMA2x2 3-axis Accelerometer
AK8963 Orientation sensor
SenseTek Proximity Sensor
SenseTek Ambient Light Sensor

There are 3 sources implements get_sensors_list().

hardware/libhardware/modules/sensors/sensors.cpp
device/qcom/msm7627a/libsku7sensors/sensors.cpp
device/qcom/msm7627a/libskuasensors/sensors.cpp

First source code has sensor name string "AK8963 3-axis Magnetic field sensor".
So I changed it to another string and rebuild. But get_sensors_list() does not
return new value. So I think this code is not used.
Other 2 does not include appropriate sensor name.

Where is a code which implements get_sensors_list() ?
I'm on KEON source tree.

Regards,
Masashi Honma.
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to