diff options
| -rw-r--r-- | cmds/bootanimation/bootanimation_main.cpp | 12 | ||||
| -rw-r--r-- | libs/hwui/renderthread/RenderThread.cpp | 6 | ||||
| -rw-r--r-- | libs/hwui/thread/TaskManager.cpp | 6 | ||||
| -rw-r--r-- | media/mca/filterfw/native/core/value.cpp | 1 | ||||
| -rw-r--r-- | media/mca/filterpacks/native/imageproc/brightness.c | 1 | ||||
| -rw-r--r-- | media/mca/filterpacks/native/imageproc/contrast.c | 1 |
6 files changed, 7 insertions, 20 deletions
diff --git a/cmds/bootanimation/bootanimation_main.cpp b/cmds/bootanimation/bootanimation_main.cpp index 6550d22..48a34e7 100644 --- a/cmds/bootanimation/bootanimation_main.cpp +++ b/cmds/bootanimation/bootanimation_main.cpp @@ -16,20 +16,14 @@ #define LOG_TAG "BootAnimation" -#include <cutils/properties.h> - #include <binder/IPCThreadState.h> #include <binder/ProcessState.h> #include <binder/IServiceManager.h> - +#include <cutils/properties.h> +#include <sys/resource.h> #include <utils/Log.h> #include <utils/threads.h> -#if defined(HAVE_PTHREADS) -# include <pthread.h> -# include <sys/resource.h> -#endif - #include "BootAnimation.h" using namespace android; @@ -38,9 +32,7 @@ using namespace android; int main() { -#if defined(HAVE_PTHREADS) setpriority(PRIO_PROCESS, 0, ANDROID_PRIORITY_DISPLAY); -#endif char value[PROPERTY_VALUE_MAX]; property_get("debug.sf.nobootanimation", value, "0"); diff --git a/libs/hwui/renderthread/RenderThread.cpp b/libs/hwui/renderthread/RenderThread.cpp index 403e164..9dfe75e 100644 --- a/libs/hwui/renderthread/RenderThread.cpp +++ b/libs/hwui/renderthread/RenderThread.cpp @@ -16,10 +16,8 @@ #include "RenderThread.h" -#if defined(HAVE_PTHREADS) -#include <sys/resource.h> -#endif #include <gui/DisplayEventReceiver.h> +#include <sys/resource.h> #include <utils/Log.h> #include "../RenderState.h" @@ -245,9 +243,7 @@ void RenderThread::requestVsync() { } bool RenderThread::threadLoop() { -#if defined(HAVE_PTHREADS) setpriority(PRIO_PROCESS, 0, PRIORITY_DISPLAY); -#endif initThreadLocals(); int timeoutMillis = -1; diff --git a/libs/hwui/thread/TaskManager.cpp b/libs/hwui/thread/TaskManager.cpp index cb5401c..3c30aab 100644 --- a/libs/hwui/thread/TaskManager.cpp +++ b/libs/hwui/thread/TaskManager.cpp @@ -14,10 +14,8 @@ * limitations under the License. */ -#include <sys/sysinfo.h> -#if defined(HAVE_PTHREADS) #include <sys/resource.h> -#endif +#include <sys/sysinfo.h> #include "TaskManager.h" #include "Task.h" @@ -83,9 +81,7 @@ bool TaskManager::addTaskBase(const sp<TaskBase>& task, const sp<TaskProcessorBa /////////////////////////////////////////////////////////////////////////////// status_t TaskManager::WorkerThread::readyToRun() { -#if defined(HAVE_PTHREADS) setpriority(PRIO_PROCESS, 0, PRIORITY_FOREGROUND); -#endif return NO_ERROR; } diff --git a/media/mca/filterfw/native/core/value.cpp b/media/mca/filterfw/native/core/value.cpp index 04bf0ef..c0ea763 100644 --- a/media/mca/filterfw/native/core/value.cpp +++ b/media/mca/filterfw/native/core/value.cpp @@ -16,6 +16,7 @@ #include <stddef.h> #include <stdlib.h> +#include <string.h> #include "value.h" diff --git a/media/mca/filterpacks/native/imageproc/brightness.c b/media/mca/filterpacks/native/imageproc/brightness.c index f4addf1..3c3652f 100644 --- a/media/mca/filterpacks/native/imageproc/brightness.c +++ b/media/mca/filterpacks/native/imageproc/brightness.c @@ -16,6 +16,7 @@ #include <android/log.h> #include <stdlib.h> +#include <string.h> #define LOGI(...) __android_log_print(ANDROID_LOG_INFO, "MCA", __VA_ARGS__) #define LOGW(...) __android_log_print(ANDROID_LOG_WARN, "MCA", __VA_ARGS__) diff --git a/media/mca/filterpacks/native/imageproc/contrast.c b/media/mca/filterpacks/native/imageproc/contrast.c index ea8c8d2..31c975c 100644 --- a/media/mca/filterpacks/native/imageproc/contrast.c +++ b/media/mca/filterpacks/native/imageproc/contrast.c @@ -16,6 +16,7 @@ #include <android/log.h> #include <stdlib.h> +#include <string.h> #define LOGI(...) __android_log_print(ANDROID_LOG_INFO, "MCA", __VA_ARGS__) #define LOGW(...) __android_log_print(ANDROID_LOG_WARN, "MCA", __VA_ARGS__) |
