From 029b08c807c70eb877c089246b29a4af0541e5dc Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Wed, 25 Oct 2017 13:19:22 -0700 Subject: [PATCH] android.os.HwBinder: fix native static method signature Test: pass Change-Id: I54c384abaad7c7aafab31836f34edee5c7c75aac --- core/jni/android_os_HwBinder.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/jni/android_os_HwBinder.cpp b/core/jni/android_os_HwBinder.cpp index fe14d483743f5..59b761faeb0d4 100644 --- a/core/jni/android_os_HwBinder.cpp +++ b/core/jni/android_os_HwBinder.cpp @@ -332,7 +332,7 @@ static jobject JHwBinder_native_getService( env->ReleaseStringUTFChars(serviceNameObj, serviceNameCStr); // TODO(b/67981006): true /* retry */ - sp ret = getRawServiceInternal(ifaceName, serviceName, false /* retry */, false /* getStub */); + sp ret = getRawServiceInternal(ifaceName, serviceName, false /* retry */, false /* getStub */); sp service = hardware::toBinder(ret); if (service == NULL) { @@ -346,7 +346,8 @@ static jobject JHwBinder_native_getService( return JHwRemoteBinder::NewObject(env, service); } -void JHwBinder_native_configureRpcThreadpool(jlong maxThreads, jboolean callerWillJoin) { +void JHwBinder_native_configureRpcThreadpool(JNIEnv *, jclass, + jlong maxThreads, jboolean callerWillJoin) { CHECK(maxThreads > 0); ProcessState::self()->setThreadPoolConfiguration(maxThreads, callerWillJoin /*callerJoinsPool*/); } @@ -355,7 +356,7 @@ void JHwBinder_native_joinRpcThreadpool() { IPCThreadState::self()->joinThreadPool(); } -static void JHwBinder_report_sysprop_change(JNIEnv /**env*/, jobject /*clazz*/) +static void JHwBinder_report_sysprop_change(JNIEnv * /*env*/, jclass /*clazz*/) { report_sysprop_change(); }