summaryrefslogtreecommitdiff
authorFrank Chen <frank.chen@amlogic.com>2014-12-02 02:17:31 (GMT)
committer Frank Chen <frank.chen@amlogic.com>2014-12-02 02:17:31 (GMT)
commita5d1ee333eefe8caddde8f9058b971103b08419b (patch)
treeaf8687c4d491d095450aa73a0012676bb959a134
parent2688d3abdea89320ad0852def365f14ed60142fb (diff)
downloadsystem-a5d1ee333eefe8caddde8f9058b971103b08419b.zip
system-a5d1ee333eefe8caddde8f9058b971103b08419b.tar.gz
system-a5d1ee333eefe8caddde8f9058b971103b08419b.tar.bz2
add board libhealthd
Change-Id: Ic65e20b31d5c46d213c4d6653d0efbe09356b73b
Diffstat
-rw-r--r--libhealthd/Android.mk14
-rw-r--r--libhealthd/healthd_board_mbox_default.cpp29
2 files changed, 43 insertions, 0 deletions
diff --git a/libhealthd/Android.mk b/libhealthd/Android.mk
new file mode 100644
index 0000000..f3a5522
--- a/dev/null
+++ b/libhealthd/Android.mk
@@ -0,0 +1,14 @@
+# Copyright 2013 The Android Open Source Project
+
+ifneq ($(BUILD_TINY_ANDROID),true)
+
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+LOCAL_SRC_FILES := healthd_board_mbox_default.cpp
+LOCAL_MODULE := libhealthd.mboxdefault
+LOCAL_C_INCLUDES := system/core/healthd
+LOCAL_CFLAGS := -Werror
+include $(BUILD_STATIC_LIBRARY)
+
+endif
diff --git a/libhealthd/healthd_board_mbox_default.cpp b/libhealthd/healthd_board_mbox_default.cpp
new file mode 100644
index 0000000..26714c3
--- a/dev/null
+++ b/libhealthd/healthd_board_mbox_default.cpp
@@ -0,0 +1,29 @@
+/*
+ * Copyright (C) 2013 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <healthd.h>
+
+void healthd_board_init(struct healthd_config*)
+{
+ // use defaults
+}
+
+
+int healthd_board_battery_update(struct android::BatteryProperties*)
+{
+ // return 0 to log periodic polled battery status to kernel log
+ return 1;
+}