summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2012-06-28 14:47:54 -0700
committerMathias Agopian <mathias@google.com>2012-06-28 15:06:35 -0700
commit852db07d69352ec5f75e16a6e5059f05faabdaf5 (patch)
tree3182547bb6366622b4cbb6bd5cce12179289b9c4 /cmds
parentec44ed0758871db896d9c7d5c09f7084ddea1c7a (diff)
parentdc5b63e40ee697324d39fe105d6f12c2bb031fc6 (diff)
downloadframeworks_native-852db07d69352ec5f75e16a6e5059f05faabdaf5.zip
frameworks_native-852db07d69352ec5f75e16a6e5059f05faabdaf5.tar.gz
frameworks_native-852db07d69352ec5f75e16a6e5059f05faabdaf5.tar.bz2
move sensorservice from frameworks/base to frameworks/native
this commit also imports all of sensorservice history. Change-Id: Iadffcc92be600c48175b8afadcb15b6648532b3f
Diffstat (limited to 'cmds')
-rw-r--r--cmds/sensorservice/Android.mk19
-rw-r--r--cmds/sensorservice/main_sensorservice.cpp25
2 files changed, 44 insertions, 0 deletions
diff --git a/cmds/sensorservice/Android.mk b/cmds/sensorservice/Android.mk
new file mode 100644
index 0000000..0811be5
--- /dev/null
+++ b/cmds/sensorservice/Android.mk
@@ -0,0 +1,19 @@
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES:= \
+ main_sensorservice.cpp
+
+LOCAL_SHARED_LIBRARIES := \
+ libsensorservice \
+ libbinder \
+ libutils
+
+LOCAL_C_INCLUDES := \
+ $(LOCAL_PATH)/../../services/sensorservice
+
+LOCAL_MODULE_TAGS := optional
+
+LOCAL_MODULE:= sensorservice
+
+include $(BUILD_EXECUTABLE)
diff --git a/cmds/sensorservice/main_sensorservice.cpp b/cmds/sensorservice/main_sensorservice.cpp
new file mode 100644
index 0000000..8610627
--- /dev/null
+++ b/cmds/sensorservice/main_sensorservice.cpp
@@ -0,0 +1,25 @@
+/*
+ * Copyright (C) 2011 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 <binder/BinderService.h>
+#include <SensorService.h>
+
+using namespace android;
+
+int main(int argc, char** argv) {
+ SensorService::publishAndJoinThreadPool();
+ return 0;
+}