787ac1b388
until now we were tracking when a sensors was physically enabled or disabled and we were reporting that to the BattaryService. this wasn incorrect because we could have several different apps enabling the same sensor, so the accounting by the battery service would be incorrect in that case (depending on the order in which these apps disabled said sensor). BatteryService tracks sensors per uid, however SensorService does this per binder connection, so we could have several binder connections for the same uid, to solve this we keep a list of sensor/uid -> count, which is the bulk of this change. Bug: 6661604 Change-Id: I561c198c42ba1736a8671bdacda4c76d72b9dd6f
33 lines
563 B
Makefile
33 lines
563 B
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
BatteryService.cpp \
|
|
CorrectedGyroSensor.cpp \
|
|
Fusion.cpp \
|
|
GravitySensor.cpp \
|
|
LinearAccelerationSensor.cpp \
|
|
OrientationSensor.cpp \
|
|
RotationVectorSensor.cpp \
|
|
SensorDevice.cpp \
|
|
SensorFusion.cpp \
|
|
SensorInterface.cpp \
|
|
SensorService.cpp \
|
|
|
|
|
|
LOCAL_CFLAGS:= -DLOG_TAG=\"SensorService\"
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
libcutils \
|
|
libhardware \
|
|
libutils \
|
|
libbinder \
|
|
libui \
|
|
libgui
|
|
|
|
|
|
|
|
LOCAL_MODULE:= libsensorservice
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|