From: Martijn Coenen Date: Thu, 29 Dec 2016 13:00:19 +0000 (+0100) Subject: Remove obsolete calls to IPCThreadState/ProcessState. X-Git-Tag: android-x86-8.1-r1~5926^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=37455587e9fcc7521a0cd027291e92dbebdb4455;p=android-x86%2Fframeworks-base.git Remove obsolete calls to IPCThreadState/ProcessState. Threadpools are started automatically, if necessary. Bug: 31226656 Test: mma Change-Id: Ib3542ee6f1530ee9c08eb7e9608db741d2c1560d --- diff --git a/services/core/jni/com_android_server_location_GnssLocationProvider.cpp b/services/core/jni/com_android_server_location_GnssLocationProvider.cpp index 7db6d42132af..b7032dbb0ab0 100644 --- a/services/core/jni/com_android_server_location_GnssLocationProvider.cpp +++ b/services/core/jni/com_android_server_location_GnssLocationProvider.cpp @@ -20,9 +20,6 @@ #include -#include -#include - #include "JNIHelp.h" #include "jni.h" #include "hardware_legacy/power.h" @@ -67,8 +64,6 @@ using android::sp; using android::status_t; using android::String16; -using android::hardware::IPCThreadState; -using android::hardware::ProcessState; using android::hardware::Return; using android::hardware::Void; using android::hardware::hidl_vec; @@ -965,8 +960,6 @@ static void android_location_GnssLocationProvider_class_init_native(JNIEnv* env, } else { ALOGE("Unable to get GPS service\n"); } - ProcessState::self()->setThreadPoolMaxThreadCount(0); - ProcessState::self()->startThreadPool(); } static jboolean android_location_GnssLocationProvider_is_supported(