More fields are added to struct sensor_t.
Convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH
to support 64-bit targets.
include external/stlport/libstlport.mk
LOCAL_C_INCLUDES += $(LOCAL_PATH)/bdw_rvp
LOCAL_MODULE := sensors.bdw_rvp
-LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_CFLAGS := -DLOG_TAG=\"Sensors\"
LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libstlport
LOCAL_SRC_FILES := $(common_src_files) $(sensor_src_files) bdw_rvp/BoardConfig.cpp
include external/stlport/libstlport.mk
LOCAL_C_INCLUDES += $(LOCAL_PATH)/bdw_wsb
LOCAL_MODULE := sensors.bdw_wsb
-LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_CFLAGS := -DLOG_TAG=\"Sensors\"
LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libstlport
LOCAL_SRC_FILES := $(common_src_files) $(sensor_src_files) bdw_wsb/BoardConfig.cpp
include external/stlport/libstlport.mk
LOCAL_C_INCLUDES += $(LOCAL_PATH)/bytm
LOCAL_MODULE := sensors.bytm
-LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_CFLAGS := -DLOG_TAG=\"Sensors\"
LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libstlport
LOCAL_SRC_FILES := $(common_src_files) $(sensor_src_files) bytm/BoardConfig.cpp
include external/stlport/libstlport.mk
LOCAL_C_INCLUDES += $(LOCAL_PATH)/hsb
LOCAL_MODULE := sensors.hsb
-LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_CFLAGS := -DLOG_TAG=\"Sensors\"
LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libstlport
LOCAL_SRC_FILES := $(common_src_files) $(sensor_src_files) hsb/BoardConfig.cpp
const struct sensor_t ALSSensor::sSensorInfo_als = {
"HID_SENSOR ALS", "Intel", 1, SENSORS_LIGHT_HANDLE, SENSOR_TYPE_LIGHT,
- 50000.0f, 1.0f, 0.75f, 0, 0, 0, {}
- ,
+ 50000.0f, 1.0f, 0.75f, 0, 0, 0,
+ SENSOR_STRING_TYPE_LIGHT, "", 0 , SENSOR_FLAG_CONTINUOUS_MODE, {}
};
const int retry_cnt = 10;
const struct sensor_t AccelSensor::sSensorInfo_accel3D = {
"HID_SENSOR Accelerometer 3D", "Intel", 1, SENSORS_ACCELERATION_HANDLE,
- SENSOR_TYPE_ACCELEROMETER, RANGE_A, RESOLUTION_A, 0.23f, 10000, 0, 0, {}
+ SENSOR_TYPE_ACCELEROMETER, RANGE_A, RESOLUTION_A, 0.23f, 10000, 0, 0,
+ SENSOR_STRING_TYPE_ACCELEROMETER, "", 0 , SENSOR_FLAG_CONTINUOUS_MODE, {}
};
const long HID_USAGE_SENSOR_UNITS_G = 0x1A;
const struct sensor_t CompassSensor::sSensorInfo_compass3D = {
"HID_SENSOR Compass 3D", "Intel", 1, SENSORS_MAGNETIC_FIELD_HANDLE,
- SENSOR_TYPE_MAGNETIC_FIELD, RANGE_M, RESOLUTION_M, 0.1f, 0, 0, 0, {}
+ SENSOR_TYPE_MAGNETIC_FIELD, RANGE_M, RESOLUTION_M, 0.1f, 0, 0, 0,
+ SENSOR_STRING_TYPE_MAGNETIC_FIELD, "", 0 , SENSOR_FLAG_CONTINUOUS_MODE, {}
};
const int retry_cnt = 10;
const struct sensor_t GyroSensor::sSensorInfo_gyro3D = {
"HID_SENSOR Gyro 3D", "Intel", 1, SENSORS_GYROSCOPE_HANDLE,
- SENSOR_TYPE_GYROSCOPE, RANGE_GYRO, RESOLUTION_GYRO, 6.10f, 10000, 0, 0, {}
+ SENSOR_TYPE_GYROSCOPE, RANGE_GYRO, RESOLUTION_GYRO, 6.10f, 10000, 0, 0,
+ SENSOR_STRING_TYPE_GYROSCOPE, "", 0 , SENSOR_FLAG_CONTINUOUS_MODE, {}
};
const int HID_USAGE_SENSOR_UNITS_NOT_SPECIFIED = 0x00;
const int HID_USAGE_SENSOR_UNITS_DEGREES_PER_SECOND = 0x15;
.minDelay = 0,
.fifoReservedEventCount = 0,
.fifoMaxEventCount = 0,
+ .stringType = SENSOR_STRING_TYPE_ORIENTATION,
+ .requiredPermission = "",
+ .maxDelay = 0,
+ .flags = SENSOR_FLAG_CONTINUOUS_MODE,
.reserved = {},
};
.minDelay = 0,
.fifoReservedEventCount = 0,
.fifoMaxEventCount = 0,
+ .stringType = SENSOR_STRING_TYPE_ROTATION_VECTOR,
+ .requiredPermission = "",
+ .maxDelay = 0,
+ .flags = SENSOR_FLAG_CONTINUOUS_MODE,
.reserved = {},
};
.minDelay = 0,
.fifoReservedEventCount = 0,
.fifoMaxEventCount = 0,
+ .stringType = SENSOR_STRING_TYPE_MAGNETIC_FIELD,
+ .requiredPermission = "",
+ .maxDelay = 0,
+ .flags = SENSOR_FLAG_CONTINUOUS_MODE,
.reserved = {},
};
#include <assert.h>
#include <linux/input.h>
-#include <linux/akm8973.h>
#include <utils/Atomic.h>
#include <utils/Log.h>