OSDN Git Service

Remove obsolete calls to IPCThreadState/ProcessState.
authorMartijn Coenen <maco@google.com>
Thu, 29 Dec 2016 13:00:19 +0000 (14:00 +0100)
committerMartijn Coenen <maco@google.com>
Thu, 29 Dec 2016 14:54:18 +0000 (14:54 +0000)
Threadpools are started automatically, if necessary.

Bug: 31226656
Test: mma
Change-Id: Ib3542ee6f1530ee9c08eb7e9608db741d2c1560d

services/core/jni/com_android_server_location_GnssLocationProvider.cpp

index 7db6d42..b7032db 100644 (file)
@@ -20,9 +20,6 @@
 
 #include <android/hardware/gnss/1.0/IGnss.h>
 
-#include <hwbinder/IPCThreadState.h>
-#include <hwbinder/ProcessState.h>
-
 #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(