Loading core/java/android/os/HwBinder.java +1 −2 Original line number Diff line number Diff line Loading @@ -48,8 +48,7 @@ public abstract class HwBinder implements IHwBinder { public static native final IHwBinder getService( String iface, String serviceName, boolean isTry) String serviceName) throws RemoteException, NoSuchElementException; public static native final void configureRpcThreadpool( Loading core/jni/android_os_HwBinder.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -303,8 +303,7 @@ static jobject JHwBinder_native_getService( JNIEnv *env, jclass /* clazzObj */, jstring ifaceNameObj, jstring serviceNameObj, jboolean isTry) { jstring serviceNameObj) { using ::android::hidl::base::V1_0::IBase; using ::android::hardware::details::getRawServiceInternal; Loading Loading @@ -332,7 +331,8 @@ static jobject JHwBinder_native_getService( std::string serviceName(serviceNameCStr); env->ReleaseStringUTFChars(serviceNameObj, serviceNameCStr); sp<IBase> ret = getRawServiceInternal(ifaceName, serviceName, !isTry /* retry */, false /* getStub */); // TODO(b/67981006): true /* retry */ sp<IBase> ret = getRawServiceInternal(ifaceName, serviceName, false /* retry */, false /* getStub */); sp<hardware::IBinder> service = hardware::toBinder<hidl::base::V1_0::IBase>(ret); if (service == NULL) { Loading Loading @@ -371,7 +371,7 @@ static JNINativeMethod gMethods[] = { { "registerService", "(Ljava/lang/String;)V", (void *)JHwBinder_native_registerService }, { "getService", "(Ljava/lang/String;Ljava/lang/String;Z)L" PACKAGE_PATH "/IHwBinder;", { "getService", "(Ljava/lang/String;Ljava/lang/String;)L" PACKAGE_PATH "/IHwBinder;", (void *)JHwBinder_native_getService }, { "configureRpcThreadpool", "(JZ)V", Loading Loading
core/java/android/os/HwBinder.java +1 −2 Original line number Diff line number Diff line Loading @@ -48,8 +48,7 @@ public abstract class HwBinder implements IHwBinder { public static native final IHwBinder getService( String iface, String serviceName, boolean isTry) String serviceName) throws RemoteException, NoSuchElementException; public static native final void configureRpcThreadpool( Loading
core/jni/android_os_HwBinder.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -303,8 +303,7 @@ static jobject JHwBinder_native_getService( JNIEnv *env, jclass /* clazzObj */, jstring ifaceNameObj, jstring serviceNameObj, jboolean isTry) { jstring serviceNameObj) { using ::android::hidl::base::V1_0::IBase; using ::android::hardware::details::getRawServiceInternal; Loading Loading @@ -332,7 +331,8 @@ static jobject JHwBinder_native_getService( std::string serviceName(serviceNameCStr); env->ReleaseStringUTFChars(serviceNameObj, serviceNameCStr); sp<IBase> ret = getRawServiceInternal(ifaceName, serviceName, !isTry /* retry */, false /* getStub */); // TODO(b/67981006): true /* retry */ sp<IBase> ret = getRawServiceInternal(ifaceName, serviceName, false /* retry */, false /* getStub */); sp<hardware::IBinder> service = hardware::toBinder<hidl::base::V1_0::IBase>(ret); if (service == NULL) { Loading Loading @@ -371,7 +371,7 @@ static JNINativeMethod gMethods[] = { { "registerService", "(Ljava/lang/String;)V", (void *)JHwBinder_native_registerService }, { "getService", "(Ljava/lang/String;Ljava/lang/String;Z)L" PACKAGE_PATH "/IHwBinder;", { "getService", "(Ljava/lang/String;Ljava/lang/String;)L" PACKAGE_PATH "/IHwBinder;", (void *)JHwBinder_native_getService }, { "configureRpcThreadpool", "(JZ)V", Loading