Skip to content

Commit

Permalink
Merge "healthd: separate libbatterymonitor for use in recovery." am: 2…
Browse files Browse the repository at this point in the history
…19806b

am: a90f776

* commit 'a90f7761bf5a73cd6d75fb4b482a1ec08447e1a7':
  healthd: separate libbatterymonitor for use in recovery.
  • Loading branch information
yabinc authored and android-build-merger committed Feb 19, 2016
2 parents 553e4f6 + a90f776 commit fb516c2
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 12 deletions.
15 changes: 12 additions & 3 deletions healthd/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ include $(CLEAR_VARS)
LOCAL_SRC_FILES := healthd_board_default.cpp
LOCAL_MODULE := libhealthd.default
LOCAL_CFLAGS := -Werror
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
include $(BUILD_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_SRC_FILES := BatteryMonitor.cpp
LOCAL_MODULE := libbatterymonitor
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
LOCAL_STATIC_LIBRARIES := libutils
include $(BUILD_STATIC_LIBRARY)

include $(CLEAR_VARS)
Expand All @@ -20,7 +30,6 @@ endif
LOCAL_SRC_FILES := \
healthd.cpp \
healthd_mode_android.cpp \
BatteryMonitor.cpp \
BatteryPropertiesRegistrar.cpp

ifneq ($(strip $(LOCAL_CHARGER_NO_UI)),true)
Expand All @@ -47,9 +56,9 @@ ifeq ($(strip $(LOCAL_CHARGER_NO_UI)),true)
LOCAL_CFLAGS += -DCHARGER_NO_UI
endif

LOCAL_C_INCLUDES := bootable/recovery
LOCAL_C_INCLUDES := bootable/recovery $(LOCAL_PATH)/include

LOCAL_STATIC_LIBRARIES := libbatteryservice libbinder
LOCAL_STATIC_LIBRARIES := libbatterymonitor libbatteryservice libbinder

ifneq ($(strip $(LOCAL_CHARGER_NO_UI)),true)
LOCAL_STATIC_LIBRARIES += libminui libpng libz
Expand Down
4 changes: 2 additions & 2 deletions healthd/BatteryMonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

#define LOG_TAG "healthd"

#include "healthd.h"
#include "BatteryMonitor.h"
#include <healthd/healthd.h>
#include <healthd/BatteryMonitor.h>

#include <dirent.h>
#include <errno.h>
Expand Down
2 changes: 1 addition & 1 deletion healthd/BatteryPropertiesRegistrar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <utils/Mutex.h>
#include <utils/String16.h>

#include "healthd.h"
#include <healthd/healthd.h>

namespace android {

Expand Down
4 changes: 2 additions & 2 deletions healthd/healthd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
#define LOG_TAG "healthd"
#define KLOG_LEVEL 6

#include "healthd.h"
#include "BatteryMonitor.h"
#include <healthd/healthd.h>
#include <healthd/BatteryMonitor.h>

#include <errno.h>
#include <libgen.h>
Expand Down
2 changes: 1 addition & 1 deletion healthd/healthd_board_default.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

#include <healthd.h>
#include <healthd/healthd.h>

void healthd_board_init(struct healthd_config*)
{
Expand Down
2 changes: 1 addition & 1 deletion healthd/healthd_mode_android.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#define LOG_TAG "healthd-android"

#include "healthd.h"
#include <healthd/healthd.h>
#include "BatteryPropertiesRegistrar.h"

#include <binder/IPCThreadState.h>
Expand Down
2 changes: 1 addition & 1 deletion healthd/healthd_mode_charger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

#include "minui/minui.h"

#include "healthd.h"
#include <healthd/healthd.h>

char *locale;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <utils/String8.h>
#include <utils/Vector.h>

#include "healthd.h"
#include <healthd/healthd.h>

namespace android {

Expand Down
File renamed without changes.

0 comments on commit fb516c2

Please sign in to comment.