Loading libs/gui/Android.mk +0 −4 Original line number Diff line number Diff line Loading @@ -61,10 +61,6 @@ ifeq ($(TARGET_TOROPLUS_RADIO), true) LOCAL_CFLAGS += -DTOROPLUS_RADIO endif ifeq ($(SENSORS_NEED_SETRATE_ON_ENABLE), true) LOCAL_CFLAGS += -DSENSORS_SETRATE_ON_ENABLE endif include $(BUILD_SHARED_LIBRARY) ifeq (,$(ONE_SHOT_MAKEFILE)) Loading libs/gui/SensorEventQueue.cpp +1 −7 Original line number Diff line number Diff line Loading @@ -128,14 +128,8 @@ status_t SensorEventQueue::disableSensor(Sensor const* sensor) const { status_t SensorEventQueue::enableSensor(int32_t handle, int32_t samplingPeriodUs, int maxBatchReportLatencyUs, int reservedFlags) const { status_t err = mSensorEventConnection->enableDisable(handle, true, us2ns(samplingPeriodUs), return mSensorEventConnection->enableDisable(handle, true, us2ns(samplingPeriodUs), us2ns(maxBatchReportLatencyUs), reservedFlags); #ifdef SENSORS_SETRATE_ON_ENABLE if (err == NO_ERROR) { mSensorEventConnection->setEventRate(handle, us2ns(samplingPeriodUs)); } #endif return err; } status_t SensorEventQueue::flush() const { Loading Loading
libs/gui/Android.mk +0 −4 Original line number Diff line number Diff line Loading @@ -61,10 +61,6 @@ ifeq ($(TARGET_TOROPLUS_RADIO), true) LOCAL_CFLAGS += -DTOROPLUS_RADIO endif ifeq ($(SENSORS_NEED_SETRATE_ON_ENABLE), true) LOCAL_CFLAGS += -DSENSORS_SETRATE_ON_ENABLE endif include $(BUILD_SHARED_LIBRARY) ifeq (,$(ONE_SHOT_MAKEFILE)) Loading
libs/gui/SensorEventQueue.cpp +1 −7 Original line number Diff line number Diff line Loading @@ -128,14 +128,8 @@ status_t SensorEventQueue::disableSensor(Sensor const* sensor) const { status_t SensorEventQueue::enableSensor(int32_t handle, int32_t samplingPeriodUs, int maxBatchReportLatencyUs, int reservedFlags) const { status_t err = mSensorEventConnection->enableDisable(handle, true, us2ns(samplingPeriodUs), return mSensorEventConnection->enableDisable(handle, true, us2ns(samplingPeriodUs), us2ns(maxBatchReportLatencyUs), reservedFlags); #ifdef SENSORS_SETRATE_ON_ENABLE if (err == NO_ERROR) { mSensorEventConnection->setEventRate(handle, us2ns(samplingPeriodUs)); } #endif return err; } status_t SensorEventQueue::flush() const { Loading