manta: add health HAL

Placeholder example health how for now, preserves default actions with no
additional logic.

Change-Id: I3e48243ec886a22d2b04c29ce3ec0af0799e8f4a
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 506fde3..886c5ef 100755
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -74,6 +74,7 @@
 WIFI_DRIVER_FW_PATH_AP      := "/vendor/firmware/fw_bcmdhd_apsta.bin"
 
 BOARD_LIB_DUMPSTATE := libdumpstate.manta
+BOARD_LIB_HEALTHD := libhealthd.manta
 
 BOARD_CHARGER_DISABLE_INIT_BLANK := true
 
diff --git a/health/Android.mk b/health/Android.mk
new file mode 100644
index 0000000..462e641
--- /dev/null
+++ b/health/Android.mk
@@ -0,0 +1,26 @@
+# 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.
+
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_C_INCLUDES := system/core/healthd
+
+LOCAL_SRC_FILES := healthd-manta.cpp
+
+LOCAL_MODULE := libhealthd.manta
+
+LOCAL_MODULE_TAGS := optional
+
+include $(BUILD_STATIC_LIBRARY)
diff --git a/health/healthd-manta.cpp b/health/healthd-manta.cpp
new file mode 100644
index 0000000..82f37fe
--- /dev/null
+++ b/health/healthd-manta.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_poll_intervals(int *fast_interval, int *slow_interval)
+{
+    // use defaults
+}
+
+
+int healthd_board_battery_update(struct android::BatteryProperties *props)
+{
+    // return 0 to log periodic polled battery status to kernel log
+    return 0;
+}