Loading cmds/sensorservice/Android.mk 0 → 100644 +19 −0 Original line number Diff line number Diff line 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) cmds/sensorservice/main_sensorservice.cpp 0 → 100644 +25 −0 Original line number Diff line number Diff line /* * 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; } cmds/system_server/library/system_init.cpp +5 −2 Original line number Diff line number Diff line Loading @@ -70,8 +70,11 @@ extern "C" status_t system_init() SurfaceFlinger::instantiate(); } property_get("system_init.startsensorservice", propBuf, "1"); if (strcmp(propBuf, "1") == 0) { // Start the sensor service SensorService::instantiate(); } // On the simulator, audioflinger et al don't get started the // same way as on the device, and we need to start them here Loading Loading
cmds/sensorservice/Android.mk 0 → 100644 +19 −0 Original line number Diff line number Diff line 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)
cmds/sensorservice/main_sensorservice.cpp 0 → 100644 +25 −0 Original line number Diff line number Diff line /* * 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; }
cmds/system_server/library/system_init.cpp +5 −2 Original line number Diff line number Diff line Loading @@ -70,8 +70,11 @@ extern "C" status_t system_init() SurfaceFlinger::instantiate(); } property_get("system_init.startsensorservice", propBuf, "1"); if (strcmp(propBuf, "1") == 0) { // Start the sensor service SensorService::instantiate(); } // On the simulator, audioflinger et al don't get started the // same way as on the device, and we need to start them here Loading