From ada23a28710c465479512c31732ff67d242afa9f Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Wed, 13 Sep 2023 13:53:26 -0700 Subject: [PATCH 1/4] Use more efficient operations when copying bytes between Java and Dart. --- pkgs/cronet_http/CHANGELOG.md | 4 + pkgs/cronet_http/lib/src/cronet_client.dart | 29 +- .../cronet_http/lib/src/jni/jni_bindings.dart | 3329 +++++++++-------- pkgs/cronet_http/pubspec.yaml | 6 +- 4 files changed, 1834 insertions(+), 1534 deletions(-) diff --git a/pkgs/cronet_http/CHANGELOG.md b/pkgs/cronet_http/CHANGELOG.md index 416553137a..28116260c7 100644 --- a/pkgs/cronet_http/CHANGELOG.md +++ b/pkgs/cronet_http/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.4.0-jni + +* Use more efficient operations when copying bytes between Java and Dart. + ## 0.3.0-jni * Switch to using `package:jnigen` for bindings to Cronet diff --git a/pkgs/cronet_http/lib/src/cronet_client.dart b/pkgs/cronet_http/lib/src/cronet_client.dart index ec6258affd..fec7d6a661 100644 --- a/pkgs/cronet_http/lib/src/cronet_client.dart +++ b/pkgs/cronet_http/lib/src/cronet_client.dart @@ -22,6 +22,7 @@ import 'package:jni/jni.dart'; import 'jni/jni_bindings.dart' as jb; final _digitRegex = RegExp(r'^\d+$'); +const _bufferSize = 10 * 1024; // The size of the Cronet read buffer; /// The type of caching to use when making HTTP requests. enum CacheMode { @@ -138,7 +139,7 @@ Map _cronetToClientHeaders( jb.UrlRequestCallbackProxy_UrlRequestCallbackInterface _urlRequestCallbacks( BaseRequest request, Completer responseCompleter) { StreamController>? responseStream; - jb.ByteBuffer? byteBuffer; + JByteBuffer? jByteBuffer; var numRedirects = 0; // The order of callbacks generated by Cronet is documented here: @@ -175,8 +176,8 @@ jb.UrlRequestCallbackProxy_UrlRequestCallbackInterface _urlRequestCallbacks( headers: responseHeaders, )); - byteBuffer = jb.ByteBuffer.allocateDirect(1024 * 1024); - urlRequest.read(byteBuffer!); + jByteBuffer = JByteBuffer.allocateDirect(_bufferSize); + urlRequest.read(jByteBuffer!.castTo(const jb.$ByteBufferType())); }, onRedirectReceived: (urlRequest, responseInfo, newLocationUrl) { if (!request.followRedirects) { @@ -204,20 +205,15 @@ jb.UrlRequestCallbackProxy_UrlRequestCallbackInterface _urlRequestCallbacks( }, onReadCompleted: (urlRequest, responseInfo, byteBuffer) { byteBuffer.flip(); + responseStream! + .add(jByteBuffer!.asUint8List().sublist(0, byteBuffer.remaining())); - final remaining = byteBuffer.remaining(); - final data = Uint8List(remaining); - // TODO: Use a more efficient approach when - // https://github.com/dart-lang/jnigen/issues/387 is fixed. - for (var i = 0; i < remaining; ++i) { - data[i] = byteBuffer.get1(i); - } - responseStream!.add(data); byteBuffer.clear(); urlRequest.read(byteBuffer); }, onSucceeded: (urlRequest, responseInfo) { responseStream!.sink.close(); + jByteBuffer?.release(); }, onFailed: (urlRequest, responseInfo, cronetException) { final error = ClientException( @@ -228,6 +224,7 @@ jb.UrlRequestCallbackProxy_UrlRequestCallbackInterface _urlRequestCallbacks( responseStream!.addError(error); responseStream!.close(); } + jByteBuffer?.release(); }, )); } @@ -333,14 +330,10 @@ class CronetClient extends BaseClient { headers.forEach((k, v) => builder.addHeader(k.toJString(), v.toJString())); if (body.isNotEmpty) { - // TODO: Use a more efficient approach when - // https://github.com/dart-lang/jnigen/issues/387 is fixed. - final bodyBytes = JArray(jbyte.type, body.length); - for (var i = 0; i < body.length; ++i) { - bodyBytes[i] = body[i]; - } + final bodyBuffer = + body.toJByteBuffer().castTo(const jb.$ByteBufferType()); builder.setUploadDataProvider( - jb.UploadDataProviders.create4(bodyBytes), _executor); + jb.UploadDataProviders.create2(bodyBuffer), _executor); } builder.build().start(); return responseCompleter.future; diff --git a/pkgs/cronet_http/lib/src/jni/jni_bindings.dart b/pkgs/cronet_http/lib/src/jni/jni_bindings.dart index 2479675771..b5baa93f19 100644 --- a/pkgs/cronet_http/lib/src/jni/jni_bindings.dart +++ b/pkgs/cronet_http/lib/src/jni/jni_bindings.dart @@ -1,11 +1,11 @@ // Autogenerated by jnigen. DO NOT EDIT! -import 'dart:ffi' as ffi; // ignore_for_file: annotate_overrides // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names // ignore_for_file: file_names +// ignore_for_file: lines_longer_than_80_chars // ignore_for_file: no_leading_underscores_for_local_identifiers // ignore_for_file: non_constant_identifier_names // ignore_for_file: overridden_fields @@ -15,12 +15,11 @@ import 'dart:ffi' as ffi; // ignore_for_file: unused_import // ignore_for_file: unused_local_variable // ignore_for_file: unused_shown_name -// ignore_for_file: lines_longer_than_80_chars -import 'dart:isolate' show ReceivePort; - -import 'package:jni/internal_helpers_for_jnigen.dart'; -import 'package:jni/jni.dart' as jni; +import "dart:isolate" show ReceivePort; +import "dart:ffi" as ffi; +import "package:jni/internal_helpers_for_jnigen.dart"; +import "package:jni/jni.dart" as jni; /// from: io.flutter.plugins.cronet_http.UrlRequestCallbackProxy$UrlRequestCallbackInterface class UrlRequestCallbackProxy_UrlRequestCallbackInterface extends jni.JObject { @@ -29,100 +28,105 @@ class UrlRequestCallbackProxy_UrlRequestCallbackInterface extends jni.JObject { $type = type; UrlRequestCallbackProxy_UrlRequestCallbackInterface.fromRef( - super.ref, - ) : super.fromRef(); + jni.JObjectPtr ref, + ) : super.fromRef(ref); static final _class = jni.Jni.findJClass( - r'io/flutter/plugins/cronet_http/UrlRequestCallbackProxy$UrlRequestCallbackInterface'); + r"io/flutter/plugins/cronet_http/UrlRequestCallbackProxy$UrlRequestCallbackInterface"); /// The type which includes information such as the signature of this class. static const type = $UrlRequestCallbackProxy_UrlRequestCallbackInterfaceType(); static final _id_onRedirectReceived = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'onRedirectReceived', - r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/lang/String;)V'); + r"onRedirectReceived", + r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/lang/String;)V"); /// from: public abstract void onRedirectReceived(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, java.lang.String string) void onRedirectReceived( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, jni.JString string, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, _id_onRedirectReceived, jni.JniCallType.voidType, [ - urlRequest.reference, - urlResponseInfo.reference, - string.reference - ]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_onRedirectReceived, jni.JniCallType.voidType, [ + urlRequest.reference, + urlResponseInfo.reference, + string.reference + ]).check(); + } static final _id_onResponseStarted = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'onResponseStarted', - r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V'); + r"onResponseStarted", + r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V"); /// from: public abstract void onResponseStarted(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo) void onResponseStarted( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, - _id_onResponseStarted, - jni.JniCallType.voidType, - [urlRequest.reference, urlResponseInfo.reference]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, + _id_onResponseStarted, + jni.JniCallType.voidType, + [urlRequest.reference, urlResponseInfo.reference]).check(); + } static final _id_onReadCompleted = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'onReadCompleted', - r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/nio/ByteBuffer;)V'); + r"onReadCompleted", + r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/nio/ByteBuffer;)V"); /// from: public abstract void onReadCompleted(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, java.nio.ByteBuffer byteBuffer) void onReadCompleted( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, ByteBuffer byteBuffer, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, _id_onReadCompleted, jni.JniCallType.voidType, [ - urlRequest.reference, - urlResponseInfo.reference, - byteBuffer.reference - ]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_onReadCompleted, jni.JniCallType.voidType, [ + urlRequest.reference, + urlResponseInfo.reference, + byteBuffer.reference + ]).check(); + } static final _id_onSucceeded = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'onSucceeded', - r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V'); + r"onSucceeded", + r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V"); /// from: public abstract void onSucceeded(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo) void onSucceeded( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, - _id_onSucceeded, - jni.JniCallType.voidType, - [urlRequest.reference, urlResponseInfo.reference]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, + _id_onSucceeded, + jni.JniCallType.voidType, + [urlRequest.reference, urlResponseInfo.reference]).check(); + } static final _id_onFailed = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'onFailed', - r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Lorg/chromium/net/CronetException;)V'); + r"onFailed", + r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Lorg/chromium/net/CronetException;)V"); /// from: public abstract void onFailed(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, org.chromium.net.CronetException cronetException) void onFailed( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, CronetException cronetException, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, _id_onFailed, jni.JniCallType.voidType, [ - urlRequest.reference, - urlResponseInfo.reference, - cronetException.reference - ]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_onFailed, jni.JniCallType.voidType, [ + urlRequest.reference, + urlResponseInfo.reference, + cronetException.reference + ]).check(); + } /// Maps a specific port to the implemented interface. static final Map - _$invokeMethod( - port, - $MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), - ); + ) { + return _$invokeMethod( + port, + $MethodInvocation.fromAddresses( + 0, + descriptor.address, + args.address, + ), + ); + } static final ffi.Pointer< ffi.NativeFunction< @@ -157,7 +162,7 @@ class UrlRequestCallbackProxy_UrlRequestCallbackInterface extends jni.JObject { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; if ($d == - r'onRedirectReceived(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/lang/String;)V') { + r"onRedirectReceived(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/lang/String;)V") { _$impls[$p]!.onRedirectReceived( $a[0].castTo(const $UrlRequestType(), releaseOriginal: true), $a[1].castTo(const $UrlResponseInfoType(), releaseOriginal: true), @@ -166,7 +171,7 @@ class UrlRequestCallbackProxy_UrlRequestCallbackInterface extends jni.JObject { return jni.nullptr; } if ($d == - r'onResponseStarted(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V') { + r"onResponseStarted(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V") { _$impls[$p]!.onResponseStarted( $a[0].castTo(const $UrlRequestType(), releaseOriginal: true), $a[1].castTo(const $UrlResponseInfoType(), releaseOriginal: true), @@ -174,7 +179,7 @@ class UrlRequestCallbackProxy_UrlRequestCallbackInterface extends jni.JObject { return jni.nullptr; } if ($d == - r'onReadCompleted(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/nio/ByteBuffer;)V') { + r"onReadCompleted(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/nio/ByteBuffer;)V") { _$impls[$p]!.onReadCompleted( $a[0].castTo(const $UrlRequestType(), releaseOriginal: true), $a[1].castTo(const $UrlResponseInfoType(), releaseOriginal: true), @@ -183,7 +188,7 @@ class UrlRequestCallbackProxy_UrlRequestCallbackInterface extends jni.JObject { return jni.nullptr; } if ($d == - r'onSucceeded(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V') { + r"onSucceeded(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V") { _$impls[$p]!.onSucceeded( $a[0].castTo(const $UrlRequestType(), releaseOriginal: true), $a[1].castTo(const $UrlResponseInfoType(), releaseOriginal: true), @@ -191,7 +196,7 @@ class UrlRequestCallbackProxy_UrlRequestCallbackInterface extends jni.JObject { return jni.nullptr; } if ($d == - r'onFailed(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Lorg/chromium/net/CronetException;)V') { + r"onFailed(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Lorg/chromium/net/CronetException;)V") { _$impls[$p]!.onFailed( $a[0].castTo(const $UrlRequestType(), releaseOriginal: true), $a[1].castTo(const $UrlResponseInfoType(), releaseOriginal: true), @@ -211,7 +216,7 @@ class UrlRequestCallbackProxy_UrlRequestCallbackInterface extends jni.JObject { final $p = ReceivePort(); final $x = UrlRequestCallbackProxy_UrlRequestCallbackInterface.fromRef( ProtectedJniExtensions.newPortProxy( - r'io.flutter.plugins.cronet_http.UrlRequestCallbackProxy$UrlRequestCallbackInterface', + r"io.flutter.plugins.cronet_http.UrlRequestCallbackProxy$UrlRequestCallbackInterface", $p, _$invokePointer, ), @@ -298,32 +303,37 @@ class _$UrlRequestCallbackProxy_UrlRequestCallbackInterfaceImpl CronetException cronetException) _onFailed; void onRedirectReceived(UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, jni.JString string) => - _onRedirectReceived(urlRequest, urlResponseInfo, string); + UrlResponseInfo urlResponseInfo, jni.JString string) { + return _onRedirectReceived(urlRequest, urlResponseInfo, string); + } void onResponseStarted( - UrlRequest urlRequest, UrlResponseInfo urlResponseInfo) => - _onResponseStarted(urlRequest, urlResponseInfo); + UrlRequest urlRequest, UrlResponseInfo urlResponseInfo) { + return _onResponseStarted(urlRequest, urlResponseInfo); + } void onReadCompleted(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - ByteBuffer byteBuffer) => - _onReadCompleted(urlRequest, urlResponseInfo, byteBuffer); + ByteBuffer byteBuffer) { + return _onReadCompleted(urlRequest, urlResponseInfo, byteBuffer); + } - void onSucceeded(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo) => - _onSucceeded(urlRequest, urlResponseInfo); + void onSucceeded(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo) { + return _onSucceeded(urlRequest, urlResponseInfo); + } void onFailed(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - CronetException cronetException) => - _onFailed(urlRequest, urlResponseInfo, cronetException); + CronetException cronetException) { + return _onFailed(urlRequest, urlResponseInfo, cronetException); + } } -class $UrlRequestCallbackProxy_UrlRequestCallbackInterfaceType +final class $UrlRequestCallbackProxy_UrlRequestCallbackInterfaceType extends jni.JObjType { const $UrlRequestCallbackProxy_UrlRequestCallbackInterfaceType(); @override String get signature => - r'Lio/flutter/plugins/cronet_http/UrlRequestCallbackProxy$UrlRequestCallbackInterface;'; + r"Lio/flutter/plugins/cronet_http/UrlRequestCallbackProxy$UrlRequestCallbackInterface;"; @override UrlRequestCallbackProxy_UrlRequestCallbackInterface fromRef( @@ -341,10 +351,11 @@ class $UrlRequestCallbackProxy_UrlRequestCallbackInterfaceType ($UrlRequestCallbackProxy_UrlRequestCallbackInterfaceType).hashCode; @override - bool operator ==(Object other) => - other.runtimeType == - $UrlRequestCallbackProxy_UrlRequestCallbackInterfaceType && - other is $UrlRequestCallbackProxy_UrlRequestCallbackInterfaceType; + bool operator ==(Object other) { + return other.runtimeType == + ($UrlRequestCallbackProxy_UrlRequestCallbackInterfaceType) && + other is $UrlRequestCallbackProxy_UrlRequestCallbackInterfaceType; + } } /// from: io.flutter.plugins.cronet_http.UrlRequestCallbackProxy @@ -353,136 +364,143 @@ class UrlRequestCallbackProxy extends UrlRequest_Callback { late final jni.JObjType $type = type; UrlRequestCallbackProxy.fromRef( - super.ref, - ) : super.fromRef(); + jni.JObjectPtr ref, + ) : super.fromRef(ref); static final _class = jni.Jni.findJClass( - r'io/flutter/plugins/cronet_http/UrlRequestCallbackProxy'); + r"io/flutter/plugins/cronet_http/UrlRequestCallbackProxy"); /// The type which includes information such as the signature of this class. static const type = $UrlRequestCallbackProxyType(); static final _id_new1 = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'', - r'(Lio/flutter/plugins/cronet_http/UrlRequestCallbackProxy$UrlRequestCallbackInterface;)V'); + r"", + r"(Lio/flutter/plugins/cronet_http/UrlRequestCallbackProxy$UrlRequestCallbackInterface;)V"); /// from: public void (io.flutter.plugins.cronet_http.UrlRequestCallbackProxy$UrlRequestCallbackInterface urlRequestCallbackInterface) /// The returned object must be released after use, by calling the [release] method. factory UrlRequestCallbackProxy.new1( UrlRequestCallbackProxy_UrlRequestCallbackInterface urlRequestCallbackInterface, - ) => - UrlRequestCallbackProxy.fromRef(jni.Jni.accessors.newObjectWithArgs( - _class.reference, - _id_new1, - [urlRequestCallbackInterface.reference]).object); + ) { + return UrlRequestCallbackProxy.fromRef(jni.Jni.accessors.newObjectWithArgs( + _class.reference, + _id_new1, + [urlRequestCallbackInterface.reference]).object); + } static final _id_getCallback = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'getCallback', - r'()Lio/flutter/plugins/cronet_http/UrlRequestCallbackProxy$UrlRequestCallbackInterface;'); + r"getCallback", + r"()Lio/flutter/plugins/cronet_http/UrlRequestCallbackProxy$UrlRequestCallbackInterface;"); /// from: public final io.flutter.plugins.cronet_http.UrlRequestCallbackProxy$UrlRequestCallbackInterface getCallback() /// The returned object must be released after use, by calling the [release] method. - UrlRequestCallbackProxy_UrlRequestCallbackInterface getCallback() => - const $UrlRequestCallbackProxy_UrlRequestCallbackInterfaceType().fromRef( - jni.Jni.accessors.callMethodWithArgs(reference, _id_getCallback, - jni.JniCallType.objectType, []).object); + UrlRequestCallbackProxy_UrlRequestCallbackInterface getCallback() { + return const $UrlRequestCallbackProxy_UrlRequestCallbackInterfaceType() + .fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getCallback, jni.JniCallType.objectType, []).object); + } static final _id_onRedirectReceived = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'onRedirectReceived', - r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/lang/String;)V'); + r"onRedirectReceived", + r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/lang/String;)V"); /// from: public void onRedirectReceived(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, java.lang.String string) void onRedirectReceived( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, jni.JString string, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, _id_onRedirectReceived, jni.JniCallType.voidType, [ - urlRequest.reference, - urlResponseInfo.reference, - string.reference - ]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_onRedirectReceived, jni.JniCallType.voidType, [ + urlRequest.reference, + urlResponseInfo.reference, + string.reference + ]).check(); + } static final _id_onResponseStarted = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'onResponseStarted', - r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V'); + r"onResponseStarted", + r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V"); /// from: public void onResponseStarted(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo) void onResponseStarted( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, - _id_onResponseStarted, - jni.JniCallType.voidType, - [urlRequest.reference, urlResponseInfo.reference]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, + _id_onResponseStarted, + jni.JniCallType.voidType, + [urlRequest.reference, urlResponseInfo.reference]).check(); + } static final _id_onReadCompleted = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'onReadCompleted', - r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/nio/ByteBuffer;)V'); + r"onReadCompleted", + r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/nio/ByteBuffer;)V"); /// from: public void onReadCompleted(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, java.nio.ByteBuffer byteBuffer) void onReadCompleted( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, ByteBuffer byteBuffer, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, _id_onReadCompleted, jni.JniCallType.voidType, [ - urlRequest.reference, - urlResponseInfo.reference, - byteBuffer.reference - ]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_onReadCompleted, jni.JniCallType.voidType, [ + urlRequest.reference, + urlResponseInfo.reference, + byteBuffer.reference + ]).check(); + } static final _id_onSucceeded = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'onSucceeded', - r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V'); + r"onSucceeded", + r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V"); /// from: public void onSucceeded(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo) void onSucceeded( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, - _id_onSucceeded, - jni.JniCallType.voidType, - [urlRequest.reference, urlResponseInfo.reference]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, + _id_onSucceeded, + jni.JniCallType.voidType, + [urlRequest.reference, urlResponseInfo.reference]).check(); + } static final _id_onFailed = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'onFailed', - r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Lorg/chromium/net/CronetException;)V'); + r"onFailed", + r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Lorg/chromium/net/CronetException;)V"); /// from: public void onFailed(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, org.chromium.net.CronetException cronetException) void onFailed( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, CronetException cronetException, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, _id_onFailed, jni.JniCallType.voidType, [ - urlRequest.reference, - urlResponseInfo.reference, - cronetException.reference - ]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_onFailed, jni.JniCallType.voidType, [ + urlRequest.reference, + urlResponseInfo.reference, + cronetException.reference + ]).check(); + } } -class $UrlRequestCallbackProxyType +final class $UrlRequestCallbackProxyType extends jni.JObjType { const $UrlRequestCallbackProxyType(); @override String get signature => - r'Lio/flutter/plugins/cronet_http/UrlRequestCallbackProxy;'; + r"Lio/flutter/plugins/cronet_http/UrlRequestCallbackProxy;"; @override UrlRequestCallbackProxy fromRef(jni.JObjectPtr ref) => @@ -498,9 +516,10 @@ class $UrlRequestCallbackProxyType int get hashCode => ($UrlRequestCallbackProxyType).hashCode; @override - bool operator ==(Object other) => - other.runtimeType == $UrlRequestCallbackProxyType && - other is $UrlRequestCallbackProxyType; + bool operator ==(Object other) { + return other.runtimeType == ($UrlRequestCallbackProxyType) && + other is $UrlRequestCallbackProxyType; + } } /// from: java.net.URL @@ -509,15 +528,15 @@ class URL extends jni.JObject { late final jni.JObjType $type = type; URL.fromRef( - super.ref, - ) : super.fromRef(); + jni.JObjectPtr ref, + ) : super.fromRef(ref); - static final _class = jni.Jni.findJClass(r'java/net/URL'); + static final _class = jni.Jni.findJClass(r"java/net/URL"); /// The type which includes information such as the signature of this class. static const type = $URLType(); static final _id_new0 = jni.Jni.accessors.getMethodIDOf(_class.reference, - r'', r'(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)V'); + r"", r"(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)V"); /// from: public void (java.lang.String string, java.lang.String string1, int i, java.lang.String string2) /// The returned object must be released after use, by calling the [release] method. @@ -526,17 +545,18 @@ class URL extends jni.JObject { jni.JString string1, int i, jni.JString string2, - ) => - URL.fromRef(jni.Jni.accessors.newObjectWithArgs( - _class.reference, _id_new0, [ - string.reference, - string1.reference, - jni.JValueInt(i), - string2.reference - ]).object); + ) { + return URL.fromRef(jni.Jni.accessors.newObjectWithArgs( + _class.reference, _id_new0, [ + string.reference, + string1.reference, + jni.JValueInt(i), + string2.reference + ]).object); + } static final _id_new1 = jni.Jni.accessors.getMethodIDOf(_class.reference, - r'', r'(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V'); + r"", r"(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V"); /// from: public void (java.lang.String string, java.lang.String string1, java.lang.String string2) /// The returned object must be released after use, by calling the [release] method. @@ -544,16 +564,17 @@ class URL extends jni.JObject { jni.JString string, jni.JString string1, jni.JString string2, - ) => - URL.fromRef(jni.Jni.accessors.newObjectWithArgs( - _class.reference, - _id_new1, - [string.reference, string1.reference, string2.reference]).object); + ) { + return URL.fromRef(jni.Jni.accessors.newObjectWithArgs( + _class.reference, + _id_new1, + [string.reference, string1.reference, string2.reference]).object); + } static final _id_new2 = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'', - r'(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/net/URLStreamHandler;)V'); + r"", + r"(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/net/URLStreamHandler;)V"); /// from: public void (java.lang.String string, java.lang.String string1, int i, java.lang.String string2, java.net.URLStreamHandler uRLStreamHandler) /// The returned object must be released after use, by calling the [release] method. @@ -563,43 +584,46 @@ class URL extends jni.JObject { int i, jni.JString string2, jni.JObject uRLStreamHandler, - ) => - URL.fromRef( - jni.Jni.accessors.newObjectWithArgs(_class.reference, _id_new2, [ - string.reference, - string1.reference, - jni.JValueInt(i), - string2.reference, - uRLStreamHandler.reference - ]).object); + ) { + return URL.fromRef( + jni.Jni.accessors.newObjectWithArgs(_class.reference, _id_new2, [ + string.reference, + string1.reference, + jni.JValueInt(i), + string2.reference, + uRLStreamHandler.reference + ]).object); + } static final _id_new3 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'', r'(Ljava/lang/String;)V'); + .getMethodIDOf(_class.reference, r"", r"(Ljava/lang/String;)V"); /// from: public void (java.lang.String string) /// The returned object must be released after use, by calling the [release] method. factory URL.new3( jni.JString string, - ) => - URL.fromRef(jni.Jni.accessors.newObjectWithArgs( - _class.reference, _id_new3, [string.reference]).object); + ) { + return URL.fromRef(jni.Jni.accessors.newObjectWithArgs( + _class.reference, _id_new3, [string.reference]).object); + } static final _id_new4 = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'', r'(Ljava/net/URL;Ljava/lang/String;)V'); + _class.reference, r"", r"(Ljava/net/URL;Ljava/lang/String;)V"); /// from: public void (java.net.URL uRL, java.lang.String string) /// The returned object must be released after use, by calling the [release] method. factory URL.new4( URL uRL, jni.JString string, - ) => - URL.fromRef(jni.Jni.accessors.newObjectWithArgs(_class.reference, - _id_new4, [uRL.reference, string.reference]).object); + ) { + return URL.fromRef(jni.Jni.accessors.newObjectWithArgs( + _class.reference, _id_new4, [uRL.reference, string.reference]).object); + } static final _id_new5 = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'', - r'(Ljava/net/URL;Ljava/lang/String;Ljava/net/URLStreamHandler;)V'); + r"", + r"(Ljava/net/URL;Ljava/lang/String;Ljava/net/URLStreamHandler;)V"); /// from: public void (java.net.URL uRL, java.lang.String string, java.net.URLStreamHandler uRLStreamHandler) /// The returned object must be released after use, by calling the [release] method. @@ -607,237 +631,257 @@ class URL extends jni.JObject { URL uRL, jni.JString string, jni.JObject uRLStreamHandler, - ) => - URL.fromRef(jni.Jni.accessors.newObjectWithArgs( - _class.reference, _id_new5, [ - uRL.reference, - string.reference, - uRLStreamHandler.reference - ]).object); + ) { + return URL.fromRef(jni.Jni.accessors.newObjectWithArgs( + _class.reference, + _id_new5, + [uRL.reference, string.reference, uRLStreamHandler.reference]).object); + } static final _id_getQuery = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getQuery', r'()Ljava/lang/String;'); + .getMethodIDOf(_class.reference, r"getQuery", r"()Ljava/lang/String;"); /// from: public java.lang.String getQuery() /// The returned object must be released after use, by calling the [release] method. - jni.JString getQuery() => - const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getQuery, jni.JniCallType.objectType, []).object); + jni.JString getQuery() { + return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getQuery, jni.JniCallType.objectType, []).object); + } static final _id_getPath = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getPath', r'()Ljava/lang/String;'); + .getMethodIDOf(_class.reference, r"getPath", r"()Ljava/lang/String;"); /// from: public java.lang.String getPath() /// The returned object must be released after use, by calling the [release] method. - jni.JString getPath() => - const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getPath, jni.JniCallType.objectType, []).object); + jni.JString getPath() { + return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getPath, jni.JniCallType.objectType, []).object); + } static final _id_getUserInfo = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getUserInfo', r'()Ljava/lang/String;'); + .getMethodIDOf(_class.reference, r"getUserInfo", r"()Ljava/lang/String;"); /// from: public java.lang.String getUserInfo() /// The returned object must be released after use, by calling the [release] method. - jni.JString getUserInfo() => - const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getUserInfo, jni.JniCallType.objectType, []).object); + jni.JString getUserInfo() { + return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getUserInfo, jni.JniCallType.objectType, []).object); + } static final _id_getAuthority = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'getAuthority', r'()Ljava/lang/String;'); + _class.reference, r"getAuthority", r"()Ljava/lang/String;"); /// from: public java.lang.String getAuthority() /// The returned object must be released after use, by calling the [release] method. - jni.JString getAuthority() => - const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getAuthority, jni.JniCallType.objectType, []).object); + jni.JString getAuthority() { + return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getAuthority, jni.JniCallType.objectType, []).object); + } static final _id_getPort = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'getPort', r'()I'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"getPort", r"()I"); /// from: public int getPort() - int getPort() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_getPort, jni.JniCallType.intType, []).integer; + int getPort() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_getPort, jni.JniCallType.intType, []).integer; + } static final _id_getDefaultPort = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getDefaultPort', r'()I'); + .getMethodIDOf(_class.reference, r"getDefaultPort", r"()I"); /// from: public int getDefaultPort() - int getDefaultPort() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_getDefaultPort, jni.JniCallType.intType, []).integer; + int getDefaultPort() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_getDefaultPort, jni.JniCallType.intType, []).integer; + } static final _id_getProtocol = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getProtocol', r'()Ljava/lang/String;'); + .getMethodIDOf(_class.reference, r"getProtocol", r"()Ljava/lang/String;"); /// from: public java.lang.String getProtocol() /// The returned object must be released after use, by calling the [release] method. - jni.JString getProtocol() => - const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getProtocol, jni.JniCallType.objectType, []).object); + jni.JString getProtocol() { + return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getProtocol, jni.JniCallType.objectType, []).object); + } static final _id_getHost = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getHost', r'()Ljava/lang/String;'); + .getMethodIDOf(_class.reference, r"getHost", r"()Ljava/lang/String;"); /// from: public java.lang.String getHost() /// The returned object must be released after use, by calling the [release] method. - jni.JString getHost() => - const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getHost, jni.JniCallType.objectType, []).object); + jni.JString getHost() { + return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getHost, jni.JniCallType.objectType, []).object); + } static final _id_getFile = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getFile', r'()Ljava/lang/String;'); + .getMethodIDOf(_class.reference, r"getFile", r"()Ljava/lang/String;"); /// from: public java.lang.String getFile() /// The returned object must be released after use, by calling the [release] method. - jni.JString getFile() => - const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getFile, jni.JniCallType.objectType, []).object); + jni.JString getFile() { + return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getFile, jni.JniCallType.objectType, []).object); + } static final _id_getRef = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getRef', r'()Ljava/lang/String;'); + .getMethodIDOf(_class.reference, r"getRef", r"()Ljava/lang/String;"); /// from: public java.lang.String getRef() /// The returned object must be released after use, by calling the [release] method. - jni.JString getRef() => - const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getRef, jni.JniCallType.objectType, []).object); + jni.JString getRef() { + return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getRef, jni.JniCallType.objectType, []).object); + } static final _id_equals1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'equals', r'(Ljava/lang/Object;)Z'); + .getMethodIDOf(_class.reference, r"equals", r"(Ljava/lang/Object;)Z"); /// from: public boolean equals(java.lang.Object object) bool equals1( jni.JObject object, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_equals1, - jni.JniCallType.booleanType, [object.reference]).boolean; + ) { + return jni.Jni.accessors.callMethodWithArgs(reference, _id_equals1, + jni.JniCallType.booleanType, [object.reference]).boolean; + } static final _id_hashCode1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'hashCode', r'()I'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"hashCode", r"()I"); /// from: public int hashCode() - int hashCode1() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_hashCode1, jni.JniCallType.intType, []).integer; + int hashCode1() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_hashCode1, jni.JniCallType.intType, []).integer; + } static final _id_sameFile = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'sameFile', r'(Ljava/net/URL;)Z'); + .getMethodIDOf(_class.reference, r"sameFile", r"(Ljava/net/URL;)Z"); /// from: public boolean sameFile(java.net.URL uRL) bool sameFile( URL uRL, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_sameFile, - jni.JniCallType.booleanType, [uRL.reference]).boolean; + ) { + return jni.Jni.accessors.callMethodWithArgs(reference, _id_sameFile, + jni.JniCallType.booleanType, [uRL.reference]).boolean; + } static final _id_toString1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'toString', r'()Ljava/lang/String;'); + .getMethodIDOf(_class.reference, r"toString", r"()Ljava/lang/String;"); /// from: public java.lang.String toString() /// The returned object must be released after use, by calling the [release] method. - jni.JString toString1() => - const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_toString1, jni.JniCallType.objectType, []).object); + jni.JString toString1() { + return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_toString1, jni.JniCallType.objectType, []).object); + } static final _id_toExternalForm = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'toExternalForm', r'()Ljava/lang/String;'); + _class.reference, r"toExternalForm", r"()Ljava/lang/String;"); /// from: public java.lang.String toExternalForm() /// The returned object must be released after use, by calling the [release] method. - jni.JString toExternalForm() => - const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_toExternalForm, - jni.JniCallType.objectType, []).object); + jni.JString toExternalForm() { + return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_toExternalForm, jni.JniCallType.objectType, []).object); + } static final _id_toURI = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'toURI', r'()Ljava/net/URI;'); + .getMethodIDOf(_class.reference, r"toURI", r"()Ljava/net/URI;"); /// from: public java.net.URI toURI() /// The returned object must be released after use, by calling the [release] method. - jni.JObject toURI() => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_toURI, jni.JniCallType.objectType, []).object); + jni.JObject toURI() { + return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_toURI, jni.JniCallType.objectType, []).object); + } static final _id_openConnection = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'openConnection', r'()Ljava/net/URLConnection;'); + _class.reference, r"openConnection", r"()Ljava/net/URLConnection;"); /// from: public java.net.URLConnection openConnection() /// The returned object must be released after use, by calling the [release] method. - jni.JObject openConnection() => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_openConnection, - jni.JniCallType.objectType, []).object); + jni.JObject openConnection() { + return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_openConnection, jni.JniCallType.objectType, []).object); + } static final _id_openConnection1 = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'openConnection', - r'(Ljava/net/Proxy;)Ljava/net/URLConnection;'); + r"openConnection", + r"(Ljava/net/Proxy;)Ljava/net/URLConnection;"); /// from: public java.net.URLConnection openConnection(java.net.Proxy proxy) /// The returned object must be released after use, by calling the [release] method. jni.JObject openConnection1( jni.JObject proxy, - ) => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_openConnection1, - jni.JniCallType.objectType, - [proxy.reference]).object); + ) { + return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_openConnection1, + jni.JniCallType.objectType, + [proxy.reference]).object); + } static final _id_openStream = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'openStream', r'()Ljava/io/InputStream;'); + _class.reference, r"openStream", r"()Ljava/io/InputStream;"); /// from: public java.io.InputStream openStream() /// The returned object must be released after use, by calling the [release] method. - jni.JObject openStream() => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_openStream, jni.JniCallType.objectType, []).object); + jni.JObject openStream() { + return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_openStream, jni.JniCallType.objectType, []).object); + } static final _id_getContent = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getContent', r'()Ljava/lang/Object;'); + .getMethodIDOf(_class.reference, r"getContent", r"()Ljava/lang/Object;"); /// from: public java.lang.Object getContent() /// The returned object must be released after use, by calling the [release] method. - jni.JObject getContent() => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getContent, jni.JniCallType.objectType, []).object); + jni.JObject getContent() { + return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getContent, jni.JniCallType.objectType, []).object); + } static final _id_getContent1 = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'getContent', - r'([Ljava/lang/Class;)Ljava/lang/Object;'); + r"getContent", + r"([Ljava/lang/Class;)Ljava/lang/Object;"); /// from: public java.lang.Object getContent(java.lang.Class[] classs) /// The returned object must be released after use, by calling the [release] method. jni.JObject getContent1( jni.JArray classs, - ) => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_getContent1, - jni.JniCallType.objectType, - [classs.reference]).object); + ) { + return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_getContent1, + jni.JniCallType.objectType, + [classs.reference]).object); + } static final _id_setURLStreamHandlerFactory = jni.Jni.accessors - .getStaticMethodIDOf(_class.reference, r'setURLStreamHandlerFactory', - r'(Ljava/net/URLStreamHandlerFactory;)V'); + .getStaticMethodIDOf(_class.reference, r"setURLStreamHandlerFactory", + r"(Ljava/net/URLStreamHandlerFactory;)V"); /// from: static public void setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory uRLStreamHandlerFactory) static void setURLStreamHandlerFactory( jni.JObject uRLStreamHandlerFactory, - ) => - jni.Jni.accessors.callStaticMethodWithArgs( - _class.reference, - _id_setURLStreamHandlerFactory, - jni.JniCallType.voidType, - [uRLStreamHandlerFactory.reference]).check(); + ) { + return jni.Jni.accessors.callStaticMethodWithArgs( + _class.reference, + _id_setURLStreamHandlerFactory, + jni.JniCallType.voidType, + [uRLStreamHandlerFactory.reference]).check(); + } } -class $URLType extends jni.JObjType { +final class $URLType extends jni.JObjType { const $URLType(); @override - String get signature => r'Ljava/net/URL;'; + String get signature => r"Ljava/net/URL;"; @override URL fromRef(jni.JObjectPtr ref) => URL.fromRef(ref); @@ -852,8 +896,9 @@ class $URLType extends jni.JObjType { int get hashCode => ($URLType).hashCode; @override - bool operator ==(Object other) => - other.runtimeType == $URLType && other is $URLType; + bool operator ==(Object other) { + return other.runtimeType == ($URLType) && other is $URLType; + } } /// from: java.nio.Buffer @@ -862,164 +907,190 @@ class Buffer extends jni.JObject { late final jni.JObjType $type = type; Buffer.fromRef( - super.ref, - ) : super.fromRef(); + jni.JObjectPtr ref, + ) : super.fromRef(ref); - static final _class = jni.Jni.findJClass(r'java/nio/Buffer'); + static final _class = jni.Jni.findJClass(r"java/nio/Buffer"); /// The type which includes information such as the signature of this class. static const type = $BufferType(); static final _id_capacity = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'capacity', r'()I'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"capacity", r"()I"); /// from: public final int capacity() - int capacity() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_capacity, jni.JniCallType.intType, []).integer; + int capacity() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_capacity, jni.JniCallType.intType, []).integer; + } static final _id_position = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'position', r'()I'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"position", r"()I"); /// from: public final int position() - int position() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_position, jni.JniCallType.intType, []).integer; + int position() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_position, jni.JniCallType.intType, []).integer; + } static final _id_position1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'position', r'(I)Ljava/nio/Buffer;'); + .getMethodIDOf(_class.reference, r"position", r"(I)Ljava/nio/Buffer;"); /// from: public java.nio.Buffer position(int i) /// The returned object must be released after use, by calling the [release] method. Buffer position1( int i, - ) => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_position1, - jni.JniCallType.objectType, - [jni.JValueInt(i)]).object); + ) { + return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_position1, + jni.JniCallType.objectType, + [jni.JValueInt(i)]).object); + } static final _id_limit = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'limit', r'()I'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"limit", r"()I"); /// from: public final int limit() - int limit() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_limit, jni.JniCallType.intType, []).integer; + int limit() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_limit, jni.JniCallType.intType, []).integer; + } static final _id_limit1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'limit', r'(I)Ljava/nio/Buffer;'); + .getMethodIDOf(_class.reference, r"limit", r"(I)Ljava/nio/Buffer;"); /// from: public java.nio.Buffer limit(int i) /// The returned object must be released after use, by calling the [release] method. Buffer limit1( int i, - ) => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_limit1, - jni.JniCallType.objectType, - [jni.JValueInt(i)]).object); + ) { + return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_limit1, + jni.JniCallType.objectType, + [jni.JValueInt(i)]).object); + } static final _id_mark = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'mark', r'()Ljava/nio/Buffer;'); + .getMethodIDOf(_class.reference, r"mark", r"()Ljava/nio/Buffer;"); /// from: public java.nio.Buffer mark() /// The returned object must be released after use, by calling the [release] method. - Buffer mark() => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_mark, jni.JniCallType.objectType, []).object); + Buffer mark() { + return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_mark, jni.JniCallType.objectType, []).object); + } static final _id_reset = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'reset', r'()Ljava/nio/Buffer;'); + .getMethodIDOf(_class.reference, r"reset", r"()Ljava/nio/Buffer;"); /// from: public java.nio.Buffer reset() /// The returned object must be released after use, by calling the [release] method. - Buffer reset() => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_reset, jni.JniCallType.objectType, []).object); + Buffer reset() { + return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_reset, jni.JniCallType.objectType, []).object); + } static final _id_clear = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'clear', r'()Ljava/nio/Buffer;'); + .getMethodIDOf(_class.reference, r"clear", r"()Ljava/nio/Buffer;"); /// from: public java.nio.Buffer clear() /// The returned object must be released after use, by calling the [release] method. - Buffer clear() => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_clear, jni.JniCallType.objectType, []).object); + Buffer clear() { + return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_clear, jni.JniCallType.objectType, []).object); + } static final _id_flip = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'flip', r'()Ljava/nio/Buffer;'); + .getMethodIDOf(_class.reference, r"flip", r"()Ljava/nio/Buffer;"); /// from: public java.nio.Buffer flip() /// The returned object must be released after use, by calling the [release] method. - Buffer flip() => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_flip, jni.JniCallType.objectType, []).object); + Buffer flip() { + return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_flip, jni.JniCallType.objectType, []).object); + } static final _id_rewind = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'rewind', r'()Ljava/nio/Buffer;'); + .getMethodIDOf(_class.reference, r"rewind", r"()Ljava/nio/Buffer;"); /// from: public java.nio.Buffer rewind() /// The returned object must be released after use, by calling the [release] method. - Buffer rewind() => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_rewind, jni.JniCallType.objectType, []).object); + Buffer rewind() { + return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_rewind, jni.JniCallType.objectType, []).object); + } static final _id_remaining = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'remaining', r'()I'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"remaining", r"()I"); /// from: public final int remaining() - int remaining() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_remaining, jni.JniCallType.intType, []).integer; + int remaining() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_remaining, jni.JniCallType.intType, []).integer; + } static final _id_hasRemaining = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'hasRemaining', r'()Z'); + .getMethodIDOf(_class.reference, r"hasRemaining", r"()Z"); /// from: public final boolean hasRemaining() - bool hasRemaining() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_hasRemaining, jni.JniCallType.booleanType, []).boolean; + bool hasRemaining() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_hasRemaining, jni.JniCallType.booleanType, []).boolean; + } static final _id_isReadOnly = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'isReadOnly', r'()Z'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"isReadOnly", r"()Z"); /// from: public abstract boolean isReadOnly() - bool isReadOnly() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_isReadOnly, jni.JniCallType.booleanType, []).boolean; + bool isReadOnly() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_isReadOnly, jni.JniCallType.booleanType, []).boolean; + } static final _id_hasArray = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'hasArray', r'()Z'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"hasArray", r"()Z"); /// from: public abstract boolean hasArray() - bool hasArray() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_hasArray, jni.JniCallType.booleanType, []).boolean; + bool hasArray() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_hasArray, jni.JniCallType.booleanType, []).boolean; + } static final _id_array = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'array', r'()Ljava/lang/Object;'); + .getMethodIDOf(_class.reference, r"array", r"()Ljava/lang/Object;"); /// from: public abstract java.lang.Object array() /// The returned object must be released after use, by calling the [release] method. - jni.JObject array() => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_array, jni.JniCallType.objectType, []).object); + jni.JObject array() { + return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_array, jni.JniCallType.objectType, []).object); + } static final _id_arrayOffset = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'arrayOffset', r'()I'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"arrayOffset", r"()I"); /// from: public abstract int arrayOffset() - int arrayOffset() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_arrayOffset, jni.JniCallType.intType, []).integer; + int arrayOffset() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_arrayOffset, jni.JniCallType.intType, []).integer; + } static final _id_isDirect = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'isDirect', r'()Z'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"isDirect", r"()Z"); /// from: public abstract boolean isDirect() - bool isDirect() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_isDirect, jni.JniCallType.booleanType, []).boolean; + bool isDirect() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_isDirect, jni.JniCallType.booleanType, []).boolean; + } } -class $BufferType extends jni.JObjType { +final class $BufferType extends jni.JObjType { const $BufferType(); @override - String get signature => r'Ljava/nio/Buffer;'; + String get signature => r"Ljava/nio/Buffer;"; @override Buffer fromRef(jni.JObjectPtr ref) => Buffer.fromRef(ref); @@ -1034,8 +1105,9 @@ class $BufferType extends jni.JObjType { int get hashCode => ($BufferType).hashCode; @override - bool operator ==(Object other) => - other.runtimeType == $BufferType && other is $BufferType; + bool operator ==(Object other) { + return other.runtimeType == ($BufferType) && other is $BufferType; + } } /// from: java.nio.ByteBuffer @@ -1044,39 +1116,41 @@ class ByteBuffer extends Buffer { late final jni.JObjType $type = type; ByteBuffer.fromRef( - super.ref, - ) : super.fromRef(); + jni.JObjectPtr ref, + ) : super.fromRef(ref); - static final _class = jni.Jni.findJClass(r'java/nio/ByteBuffer'); + static final _class = jni.Jni.findJClass(r"java/nio/ByteBuffer"); /// The type which includes information such as the signature of this class. static const type = $ByteBufferType(); static final _id_allocateDirect = jni.Jni.accessors.getStaticMethodIDOf( - _class.reference, r'allocateDirect', r'(I)Ljava/nio/ByteBuffer;'); + _class.reference, r"allocateDirect", r"(I)Ljava/nio/ByteBuffer;"); /// from: static public java.nio.ByteBuffer allocateDirect(int i) /// The returned object must be released after use, by calling the [release] method. static ByteBuffer allocateDirect( int i, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_allocateDirect, - jni.JniCallType.objectType, [jni.JValueInt(i)]).object); + ) { + return const $ByteBufferType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_allocateDirect, + jni.JniCallType.objectType, [jni.JValueInt(i)]).object); + } static final _id_allocate = jni.Jni.accessors.getStaticMethodIDOf( - _class.reference, r'allocate', r'(I)Ljava/nio/ByteBuffer;'); + _class.reference, r"allocate", r"(I)Ljava/nio/ByteBuffer;"); /// from: static public java.nio.ByteBuffer allocate(int i) /// The returned object must be released after use, by calling the [release] method. static ByteBuffer allocate( int i, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_allocate, - jni.JniCallType.objectType, [jni.JValueInt(i)]).object); + ) { + return const $ByteBufferType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_allocate, + jni.JniCallType.objectType, [jni.JValueInt(i)]).object); + } static final _id_wrap = jni.Jni.accessors.getStaticMethodIDOf( - _class.reference, r'wrap', r'([BII)Ljava/nio/ByteBuffer;'); + _class.reference, r"wrap", r"([BII)Ljava/nio/ByteBuffer;"); /// from: static public java.nio.ByteBuffer wrap(byte[] bs, int i, int i1) /// The returned object must be released after use, by calling the [release] method. @@ -1084,103 +1158,113 @@ class ByteBuffer extends Buffer { jni.JArray bs, int i, int i1, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_wrap, - jni.JniCallType.objectType, - [bs.reference, jni.JValueInt(i), jni.JValueInt(i1)]).object); + ) { + return const $ByteBufferType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs( + _class.reference, + _id_wrap, + jni.JniCallType.objectType, + [bs.reference, jni.JValueInt(i), jni.JValueInt(i1)]).object); + } static final _id_wrap1 = jni.Jni.accessors.getStaticMethodIDOf( - _class.reference, r'wrap', r'([B)Ljava/nio/ByteBuffer;'); + _class.reference, r"wrap", r"([B)Ljava/nio/ByteBuffer;"); /// from: static public java.nio.ByteBuffer wrap(byte[] bs) /// The returned object must be released after use, by calling the [release] method. static ByteBuffer wrap1( jni.JArray bs, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_wrap1, - jni.JniCallType.objectType, [bs.reference]).object); + ) { + return const $ByteBufferType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_wrap1, + jni.JniCallType.objectType, [bs.reference]).object); + } static final _id_slice = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'slice', r'()Ljava/nio/ByteBuffer;'); + .getMethodIDOf(_class.reference, r"slice", r"()Ljava/nio/ByteBuffer;"); /// from: public abstract java.nio.ByteBuffer slice() /// The returned object must be released after use, by calling the [release] method. - ByteBuffer slice() => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_slice, jni.JniCallType.objectType, []).object); + ByteBuffer slice() { + return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_slice, jni.JniCallType.objectType, []).object); + } static final _id_duplicate = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'duplicate', r'()Ljava/nio/ByteBuffer;'); + _class.reference, r"duplicate", r"()Ljava/nio/ByteBuffer;"); /// from: public abstract java.nio.ByteBuffer duplicate() /// The returned object must be released after use, by calling the [release] method. - ByteBuffer duplicate() => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_duplicate, jni.JniCallType.objectType, []).object); + ByteBuffer duplicate() { + return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_duplicate, jni.JniCallType.objectType, []).object); + } static final _id_asReadOnlyBuffer = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'asReadOnlyBuffer', r'()Ljava/nio/ByteBuffer;'); + _class.reference, r"asReadOnlyBuffer", r"()Ljava/nio/ByteBuffer;"); /// from: public abstract java.nio.ByteBuffer asReadOnlyBuffer() /// The returned object must be released after use, by calling the [release] method. - ByteBuffer asReadOnlyBuffer() => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_asReadOnlyBuffer, - jni.JniCallType.objectType, []).object); + ByteBuffer asReadOnlyBuffer() { + return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_asReadOnlyBuffer, + jni.JniCallType.objectType, []).object); + } static final _id_get0 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'get', r'()B'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"get", r"()B"); /// from: public abstract byte get() - int get0() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_get0, jni.JniCallType.byteType, []).byte; + int get0() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_get0, jni.JniCallType.byteType, []).byte; + } static final _id_put = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'put', r'(B)Ljava/nio/ByteBuffer;'); + .getMethodIDOf(_class.reference, r"put", r"(B)Ljava/nio/ByteBuffer;"); /// from: public abstract java.nio.ByteBuffer put(byte b) /// The returned object must be released after use, by calling the [release] method. ByteBuffer put( int b, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_put, - jni.JniCallType.objectType, - [jni.JValueByte(b)]).object); + ) { + return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_put, + jni.JniCallType.objectType, + [jni.JValueByte(b)]).object); + } static final _id_get1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'get', r'(I)B'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"get", r"(I)B"); /// from: public abstract byte get(int i) int get1( int i, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_get1, - jni.JniCallType.byteType, [jni.JValueInt(i)]).byte; + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_get1, jni.JniCallType.byteType, [jni.JValueInt(i)]).byte; + } static final _id_put1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'put', r'(IB)Ljava/nio/ByteBuffer;'); + .getMethodIDOf(_class.reference, r"put", r"(IB)Ljava/nio/ByteBuffer;"); /// from: public abstract java.nio.ByteBuffer put(int i, byte b) /// The returned object must be released after use, by calling the [release] method. ByteBuffer put1( int i, int b, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_put1, - jni.JniCallType.objectType, - [jni.JValueInt(i), jni.JValueByte(b)]).object); + ) { + return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_put1, + jni.JniCallType.objectType, + [jni.JValueInt(i), jni.JValueByte(b)]).object); + } static final _id_get2 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'get', r'([BII)Ljava/nio/ByteBuffer;'); + .getMethodIDOf(_class.reference, r"get", r"([BII)Ljava/nio/ByteBuffer;"); /// from: public java.nio.ByteBuffer get(byte[] bs, int i, int i1) /// The returned object must be released after use, by calling the [release] method. @@ -1188,43 +1272,46 @@ class ByteBuffer extends Buffer { jni.JArray bs, int i, int i1, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_get2, - jni.JniCallType.objectType, - [bs.reference, jni.JValueInt(i), jni.JValueInt(i1)]).object); + ) { + return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_get2, + jni.JniCallType.objectType, + [bs.reference, jni.JValueInt(i), jni.JValueInt(i1)]).object); + } static final _id_get3 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'get', r'([B)Ljava/nio/ByteBuffer;'); + .getMethodIDOf(_class.reference, r"get", r"([B)Ljava/nio/ByteBuffer;"); /// from: public java.nio.ByteBuffer get(byte[] bs) /// The returned object must be released after use, by calling the [release] method. ByteBuffer get3( jni.JArray bs, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_get3, - jni.JniCallType.objectType, - [bs.reference]).object); + ) { + return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_get3, + jni.JniCallType.objectType, + [bs.reference]).object); + } static final _id_put2 = jni.Jni.accessors.getMethodIDOf(_class.reference, - r'put', r'(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;'); + r"put", r"(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;"); /// from: public java.nio.ByteBuffer put(java.nio.ByteBuffer byteBuffer) /// The returned object must be released after use, by calling the [release] method. ByteBuffer put2( ByteBuffer byteBuffer, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_put2, - jni.JniCallType.objectType, - [byteBuffer.reference]).object); + ) { + return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_put2, + jni.JniCallType.objectType, + [byteBuffer.reference]).object); + } static final _id_put3 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'put', r'([BII)Ljava/nio/ByteBuffer;'); + .getMethodIDOf(_class.reference, r"put", r"([BII)Ljava/nio/ByteBuffer;"); /// from: public java.nio.ByteBuffer put(byte[] bs, int i, int i1) /// The returned object must be released after use, by calling the [release] method. @@ -1232,577 +1319,637 @@ class ByteBuffer extends Buffer { jni.JArray bs, int i, int i1, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_put3, - jni.JniCallType.objectType, - [bs.reference, jni.JValueInt(i), jni.JValueInt(i1)]).object); + ) { + return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_put3, + jni.JniCallType.objectType, + [bs.reference, jni.JValueInt(i), jni.JValueInt(i1)]).object); + } static final _id_put4 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'put', r'([B)Ljava/nio/ByteBuffer;'); + .getMethodIDOf(_class.reference, r"put", r"([B)Ljava/nio/ByteBuffer;"); /// from: public final java.nio.ByteBuffer put(byte[] bs) /// The returned object must be released after use, by calling the [release] method. ByteBuffer put4( jni.JArray bs, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_put4, - jni.JniCallType.objectType, - [bs.reference]).object); + ) { + return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_put4, + jni.JniCallType.objectType, + [bs.reference]).object); + } static final _id_hasArray = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'hasArray', r'()Z'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"hasArray", r"()Z"); /// from: public final boolean hasArray() - bool hasArray() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_hasArray, jni.JniCallType.booleanType, []).boolean; + bool hasArray() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_hasArray, jni.JniCallType.booleanType, []).boolean; + } static final _id_array1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'array', r'()[B'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"array", r"()[B"); /// from: public final byte[] array() /// The returned object must be released after use, by calling the [release] method. - jni.JArray array1() => const jni.JArrayType(jni.jbyteType()) - .fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_array1, jni.JniCallType.objectType, []).object); + jni.JArray array1() { + return const jni.JArrayType(jni.jbyteType()).fromRef(jni.Jni.accessors + .callMethodWithArgs( + reference, _id_array1, jni.JniCallType.objectType, []).object); + } static final _id_arrayOffset = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'arrayOffset', r'()I'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"arrayOffset", r"()I"); /// from: public final int arrayOffset() - int arrayOffset() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_arrayOffset, jni.JniCallType.intType, []).integer; + int arrayOffset() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_arrayOffset, jni.JniCallType.intType, []).integer; + } static final _id_position1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'position', r'(I)Ljava/nio/Buffer;'); + .getMethodIDOf(_class.reference, r"position", r"(I)Ljava/nio/Buffer;"); /// from: public java.nio.Buffer position(int i) /// The returned object must be released after use, by calling the [release] method. Buffer position1( int i, - ) => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_position1, - jni.JniCallType.objectType, - [jni.JValueInt(i)]).object); + ) { + return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_position1, + jni.JniCallType.objectType, + [jni.JValueInt(i)]).object); + } static final _id_limit1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'limit', r'(I)Ljava/nio/Buffer;'); + .getMethodIDOf(_class.reference, r"limit", r"(I)Ljava/nio/Buffer;"); /// from: public java.nio.Buffer limit(int i) /// The returned object must be released after use, by calling the [release] method. Buffer limit1( int i, - ) => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_limit1, - jni.JniCallType.objectType, - [jni.JValueInt(i)]).object); + ) { + return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_limit1, + jni.JniCallType.objectType, + [jni.JValueInt(i)]).object); + } static final _id_mark = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'mark', r'()Ljava/nio/Buffer;'); + .getMethodIDOf(_class.reference, r"mark", r"()Ljava/nio/Buffer;"); /// from: public java.nio.Buffer mark() /// The returned object must be released after use, by calling the [release] method. - Buffer mark() => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_mark, jni.JniCallType.objectType, []).object); + Buffer mark() { + return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_mark, jni.JniCallType.objectType, []).object); + } static final _id_reset = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'reset', r'()Ljava/nio/Buffer;'); + .getMethodIDOf(_class.reference, r"reset", r"()Ljava/nio/Buffer;"); /// from: public java.nio.Buffer reset() /// The returned object must be released after use, by calling the [release] method. - Buffer reset() => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_reset, jni.JniCallType.objectType, []).object); + Buffer reset() { + return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_reset, jni.JniCallType.objectType, []).object); + } static final _id_clear = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'clear', r'()Ljava/nio/Buffer;'); + .getMethodIDOf(_class.reference, r"clear", r"()Ljava/nio/Buffer;"); /// from: public java.nio.Buffer clear() /// The returned object must be released after use, by calling the [release] method. - Buffer clear() => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_clear, jni.JniCallType.objectType, []).object); + Buffer clear() { + return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_clear, jni.JniCallType.objectType, []).object); + } static final _id_flip = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'flip', r'()Ljava/nio/Buffer;'); + .getMethodIDOf(_class.reference, r"flip", r"()Ljava/nio/Buffer;"); /// from: public java.nio.Buffer flip() /// The returned object must be released after use, by calling the [release] method. - Buffer flip() => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_flip, jni.JniCallType.objectType, []).object); + Buffer flip() { + return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_flip, jni.JniCallType.objectType, []).object); + } static final _id_rewind = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'rewind', r'()Ljava/nio/Buffer;'); + .getMethodIDOf(_class.reference, r"rewind", r"()Ljava/nio/Buffer;"); /// from: public java.nio.Buffer rewind() /// The returned object must be released after use, by calling the [release] method. - Buffer rewind() => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_rewind, jni.JniCallType.objectType, []).object); + Buffer rewind() { + return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_rewind, jni.JniCallType.objectType, []).object); + } static final _id_compact = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'compact', r'()Ljava/nio/ByteBuffer;'); + .getMethodIDOf(_class.reference, r"compact", r"()Ljava/nio/ByteBuffer;"); /// from: public abstract java.nio.ByteBuffer compact() /// The returned object must be released after use, by calling the [release] method. - ByteBuffer compact() => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_compact, jni.JniCallType.objectType, []).object); + ByteBuffer compact() { + return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_compact, jni.JniCallType.objectType, []).object); + } static final _id_isDirect = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'isDirect', r'()Z'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"isDirect", r"()Z"); /// from: public abstract boolean isDirect() - bool isDirect() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_isDirect, jni.JniCallType.booleanType, []).boolean; + bool isDirect() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_isDirect, jni.JniCallType.booleanType, []).boolean; + } static final _id_toString1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'toString', r'()Ljava/lang/String;'); + .getMethodIDOf(_class.reference, r"toString", r"()Ljava/lang/String;"); /// from: public java.lang.String toString() /// The returned object must be released after use, by calling the [release] method. - jni.JString toString1() => - const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_toString1, jni.JniCallType.objectType, []).object); + jni.JString toString1() { + return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_toString1, jni.JniCallType.objectType, []).object); + } static final _id_hashCode1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'hashCode', r'()I'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"hashCode", r"()I"); /// from: public int hashCode() - int hashCode1() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_hashCode1, jni.JniCallType.intType, []).integer; + int hashCode1() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_hashCode1, jni.JniCallType.intType, []).integer; + } static final _id_equals1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'equals', r'(Ljava/lang/Object;)Z'); + .getMethodIDOf(_class.reference, r"equals", r"(Ljava/lang/Object;)Z"); /// from: public boolean equals(java.lang.Object object) bool equals1( jni.JObject object, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_equals1, - jni.JniCallType.booleanType, [object.reference]).boolean; + ) { + return jni.Jni.accessors.callMethodWithArgs(reference, _id_equals1, + jni.JniCallType.booleanType, [object.reference]).boolean; + } static final _id_compareTo = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'compareTo', r'(Ljava/nio/ByteBuffer;)I'); + _class.reference, r"compareTo", r"(Ljava/nio/ByteBuffer;)I"); /// from: public int compareTo(java.nio.ByteBuffer byteBuffer) int compareTo( ByteBuffer byteBuffer, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_compareTo, - jni.JniCallType.intType, [byteBuffer.reference]).integer; + ) { + return jni.Jni.accessors.callMethodWithArgs(reference, _id_compareTo, + jni.JniCallType.intType, [byteBuffer.reference]).integer; + } static final _id_order = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'order', r'()Ljava/nio/ByteOrder;'); + .getMethodIDOf(_class.reference, r"order", r"()Ljava/nio/ByteOrder;"); /// from: public final java.nio.ByteOrder order() /// The returned object must be released after use, by calling the [release] method. - jni.JObject order() => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_order, jni.JniCallType.objectType, []).object); + jni.JObject order() { + return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_order, jni.JniCallType.objectType, []).object); + } static final _id_order1 = jni.Jni.accessors.getMethodIDOf(_class.reference, - r'order', r'(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;'); + r"order", r"(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;"); /// from: public final java.nio.ByteBuffer order(java.nio.ByteOrder byteOrder) /// The returned object must be released after use, by calling the [release] method. ByteBuffer order1( jni.JObject byteOrder, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_order1, - jni.JniCallType.objectType, - [byteOrder.reference]).object); + ) { + return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_order1, + jni.JniCallType.objectType, + [byteOrder.reference]).object); + } static final _id_alignmentOffset = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'alignmentOffset', r'(II)I'); + .getMethodIDOf(_class.reference, r"alignmentOffset", r"(II)I"); /// from: public final int alignmentOffset(int i, int i1) int alignmentOffset( int i, int i1, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, - _id_alignmentOffset, - jni.JniCallType.intType, - [jni.JValueInt(i), jni.JValueInt(i1)]).integer; + ) { + return jni.Jni.accessors.callMethodWithArgs(reference, _id_alignmentOffset, + jni.JniCallType.intType, [jni.JValueInt(i), jni.JValueInt(i1)]).integer; + } static final _id_alignedSlice = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'alignedSlice', r'(I)Ljava/nio/ByteBuffer;'); + _class.reference, r"alignedSlice", r"(I)Ljava/nio/ByteBuffer;"); /// from: public final java.nio.ByteBuffer alignedSlice(int i) /// The returned object must be released after use, by calling the [release] method. ByteBuffer alignedSlice( int i, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_alignedSlice, - jni.JniCallType.objectType, - [jni.JValueInt(i)]).object); + ) { + return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_alignedSlice, + jni.JniCallType.objectType, + [jni.JValueInt(i)]).object); + } static final _id_getChar = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'getChar', r'()C'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"getChar", r"()C"); /// from: public abstract char getChar() - int getChar() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_getChar, jni.JniCallType.charType, []).char; + int getChar() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_getChar, jni.JniCallType.charType, []).char; + } static final _id_putChar = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'putChar', r'(C)Ljava/nio/ByteBuffer;'); + .getMethodIDOf(_class.reference, r"putChar", r"(C)Ljava/nio/ByteBuffer;"); /// from: public abstract java.nio.ByteBuffer putChar(char c) /// The returned object must be released after use, by calling the [release] method. ByteBuffer putChar( int c, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putChar, - jni.JniCallType.objectType, - [jni.JValueChar(c)]).object); + ) { + return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_putChar, + jni.JniCallType.objectType, + [jni.JValueChar(c)]).object); + } static final _id_getChar1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'getChar', r'(I)C'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"getChar", r"(I)C"); /// from: public abstract char getChar(int i) int getChar1( int i, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_getChar1, - jni.JniCallType.charType, [jni.JValueInt(i)]).char; + ) { + return jni.Jni.accessors.callMethodWithArgs(reference, _id_getChar1, + jni.JniCallType.charType, [jni.JValueInt(i)]).char; + } static final _id_putChar1 = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'putChar', r'(IC)Ljava/nio/ByteBuffer;'); + _class.reference, r"putChar", r"(IC)Ljava/nio/ByteBuffer;"); /// from: public abstract java.nio.ByteBuffer putChar(int i, char c) /// The returned object must be released after use, by calling the [release] method. ByteBuffer putChar1( int i, int c, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putChar1, - jni.JniCallType.objectType, - [jni.JValueInt(i), jni.JValueChar(c)]).object); + ) { + return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_putChar1, + jni.JniCallType.objectType, + [jni.JValueInt(i), jni.JValueChar(c)]).object); + } static final _id_asCharBuffer = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'asCharBuffer', r'()Ljava/nio/CharBuffer;'); + _class.reference, r"asCharBuffer", r"()Ljava/nio/CharBuffer;"); /// from: public abstract java.nio.CharBuffer asCharBuffer() /// The returned object must be released after use, by calling the [release] method. - jni.JObject asCharBuffer() => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_asCharBuffer, jni.JniCallType.objectType, []).object); + jni.JObject asCharBuffer() { + return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_asCharBuffer, jni.JniCallType.objectType, []).object); + } static final _id_getShort = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'getShort', r'()S'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"getShort", r"()S"); /// from: public abstract short getShort() - int getShort() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_getShort, jni.JniCallType.shortType, []).short; + int getShort() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_getShort, jni.JniCallType.shortType, []).short; + } static final _id_putShort = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'putShort', r'(S)Ljava/nio/ByteBuffer;'); + _class.reference, r"putShort", r"(S)Ljava/nio/ByteBuffer;"); /// from: public abstract java.nio.ByteBuffer putShort(short s) /// The returned object must be released after use, by calling the [release] method. ByteBuffer putShort( int s, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putShort, - jni.JniCallType.objectType, - [jni.JValueShort(s)]).object); + ) { + return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_putShort, + jni.JniCallType.objectType, + [jni.JValueShort(s)]).object); + } static final _id_getShort1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'getShort', r'(I)S'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"getShort", r"(I)S"); /// from: public abstract short getShort(int i) int getShort1( int i, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_getShort1, - jni.JniCallType.shortType, [jni.JValueInt(i)]).short; + ) { + return jni.Jni.accessors.callMethodWithArgs(reference, _id_getShort1, + jni.JniCallType.shortType, [jni.JValueInt(i)]).short; + } static final _id_putShort1 = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'putShort', r'(IS)Ljava/nio/ByteBuffer;'); + _class.reference, r"putShort", r"(IS)Ljava/nio/ByteBuffer;"); /// from: public abstract java.nio.ByteBuffer putShort(int i, short s) /// The returned object must be released after use, by calling the [release] method. ByteBuffer putShort1( int i, int s, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putShort1, - jni.JniCallType.objectType, - [jni.JValueInt(i), jni.JValueShort(s)]).object); + ) { + return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_putShort1, + jni.JniCallType.objectType, + [jni.JValueInt(i), jni.JValueShort(s)]).object); + } static final _id_asShortBuffer = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'asShortBuffer', r'()Ljava/nio/ShortBuffer;'); + _class.reference, r"asShortBuffer", r"()Ljava/nio/ShortBuffer;"); /// from: public abstract java.nio.ShortBuffer asShortBuffer() /// The returned object must be released after use, by calling the [release] method. - jni.JObject asShortBuffer() => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_asShortBuffer, jni.JniCallType.objectType, []).object); + jni.JObject asShortBuffer() { + return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_asShortBuffer, jni.JniCallType.objectType, []).object); + } static final _id_getInt = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'getInt', r'()I'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"getInt", r"()I"); /// from: public abstract int getInt() - int getInt() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_getInt, jni.JniCallType.intType, []).integer; + int getInt() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_getInt, jni.JniCallType.intType, []).integer; + } static final _id_putInt = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'putInt', r'(I)Ljava/nio/ByteBuffer;'); + .getMethodIDOf(_class.reference, r"putInt", r"(I)Ljava/nio/ByteBuffer;"); /// from: public abstract java.nio.ByteBuffer putInt(int i) /// The returned object must be released after use, by calling the [release] method. ByteBuffer putInt( int i, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putInt, - jni.JniCallType.objectType, - [jni.JValueInt(i)]).object); + ) { + return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_putInt, + jni.JniCallType.objectType, + [jni.JValueInt(i)]).object); + } static final _id_getInt1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'getInt', r'(I)I'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"getInt", r"(I)I"); /// from: public abstract int getInt(int i) int getInt1( int i, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_getInt1, - jni.JniCallType.intType, [jni.JValueInt(i)]).integer; + ) { + return jni.Jni.accessors.callMethodWithArgs(reference, _id_getInt1, + jni.JniCallType.intType, [jni.JValueInt(i)]).integer; + } static final _id_putInt1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'putInt', r'(II)Ljava/nio/ByteBuffer;'); + .getMethodIDOf(_class.reference, r"putInt", r"(II)Ljava/nio/ByteBuffer;"); /// from: public abstract java.nio.ByteBuffer putInt(int i, int i1) /// The returned object must be released after use, by calling the [release] method. ByteBuffer putInt1( int i, int i1, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putInt1, - jni.JniCallType.objectType, - [jni.JValueInt(i), jni.JValueInt(i1)]).object); + ) { + return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_putInt1, + jni.JniCallType.objectType, + [jni.JValueInt(i), jni.JValueInt(i1)]).object); + } static final _id_asIntBuffer = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'asIntBuffer', r'()Ljava/nio/IntBuffer;'); + _class.reference, r"asIntBuffer", r"()Ljava/nio/IntBuffer;"); /// from: public abstract java.nio.IntBuffer asIntBuffer() /// The returned object must be released after use, by calling the [release] method. - jni.JObject asIntBuffer() => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_asIntBuffer, jni.JniCallType.objectType, []).object); + jni.JObject asIntBuffer() { + return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_asIntBuffer, jni.JniCallType.objectType, []).object); + } static final _id_getLong = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'getLong', r'()J'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"getLong", r"()J"); /// from: public abstract long getLong() - int getLong() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_getLong, jni.JniCallType.longType, []).long; + int getLong() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_getLong, jni.JniCallType.longType, []).long; + } static final _id_putLong = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'putLong', r'(J)Ljava/nio/ByteBuffer;'); + .getMethodIDOf(_class.reference, r"putLong", r"(J)Ljava/nio/ByteBuffer;"); /// from: public abstract java.nio.ByteBuffer putLong(long j) /// The returned object must be released after use, by calling the [release] method. ByteBuffer putLong( int j, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_putLong, jni.JniCallType.objectType, [j]).object); + ) { + return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_putLong, jni.JniCallType.objectType, [j]).object); + } static final _id_getLong1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'getLong', r'(I)J'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"getLong", r"(I)J"); /// from: public abstract long getLong(int i) int getLong1( int i, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_getLong1, - jni.JniCallType.longType, [jni.JValueInt(i)]).long; + ) { + return jni.Jni.accessors.callMethodWithArgs(reference, _id_getLong1, + jni.JniCallType.longType, [jni.JValueInt(i)]).long; + } static final _id_putLong1 = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'putLong', r'(IJ)Ljava/nio/ByteBuffer;'); + _class.reference, r"putLong", r"(IJ)Ljava/nio/ByteBuffer;"); /// from: public abstract java.nio.ByteBuffer putLong(int i, long j) /// The returned object must be released after use, by calling the [release] method. ByteBuffer putLong1( int i, int j, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putLong1, - jni.JniCallType.objectType, - [jni.JValueInt(i), j]).object); + ) { + return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_putLong1, + jni.JniCallType.objectType, + [jni.JValueInt(i), j]).object); + } static final _id_asLongBuffer = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'asLongBuffer', r'()Ljava/nio/LongBuffer;'); + _class.reference, r"asLongBuffer", r"()Ljava/nio/LongBuffer;"); /// from: public abstract java.nio.LongBuffer asLongBuffer() /// The returned object must be released after use, by calling the [release] method. - jni.JObject asLongBuffer() => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_asLongBuffer, jni.JniCallType.objectType, []).object); + jni.JObject asLongBuffer() { + return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_asLongBuffer, jni.JniCallType.objectType, []).object); + } static final _id_getFloat = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'getFloat', r'()F'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"getFloat", r"()F"); /// from: public abstract float getFloat() - double getFloat() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_getFloat, jni.JniCallType.floatType, []).float; + double getFloat() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_getFloat, jni.JniCallType.floatType, []).float; + } static final _id_putFloat = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'putFloat', r'(F)Ljava/nio/ByteBuffer;'); + _class.reference, r"putFloat", r"(F)Ljava/nio/ByteBuffer;"); /// from: public abstract java.nio.ByteBuffer putFloat(float f) /// The returned object must be released after use, by calling the [release] method. ByteBuffer putFloat( double f, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putFloat, - jni.JniCallType.objectType, - [jni.JValueFloat(f)]).object); + ) { + return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_putFloat, + jni.JniCallType.objectType, + [jni.JValueFloat(f)]).object); + } static final _id_getFloat1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'getFloat', r'(I)F'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"getFloat", r"(I)F"); /// from: public abstract float getFloat(int i) double getFloat1( int i, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_getFloat1, - jni.JniCallType.floatType, [jni.JValueInt(i)]).float; + ) { + return jni.Jni.accessors.callMethodWithArgs(reference, _id_getFloat1, + jni.JniCallType.floatType, [jni.JValueInt(i)]).float; + } static final _id_putFloat1 = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'putFloat', r'(IF)Ljava/nio/ByteBuffer;'); + _class.reference, r"putFloat", r"(IF)Ljava/nio/ByteBuffer;"); /// from: public abstract java.nio.ByteBuffer putFloat(int i, float f) /// The returned object must be released after use, by calling the [release] method. ByteBuffer putFloat1( int i, double f, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putFloat1, - jni.JniCallType.objectType, - [jni.JValueInt(i), jni.JValueFloat(f)]).object); + ) { + return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_putFloat1, + jni.JniCallType.objectType, + [jni.JValueInt(i), jni.JValueFloat(f)]).object); + } static final _id_asFloatBuffer = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'asFloatBuffer', r'()Ljava/nio/FloatBuffer;'); + _class.reference, r"asFloatBuffer", r"()Ljava/nio/FloatBuffer;"); /// from: public abstract java.nio.FloatBuffer asFloatBuffer() /// The returned object must be released after use, by calling the [release] method. - jni.JObject asFloatBuffer() => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_asFloatBuffer, jni.JniCallType.objectType, []).object); + jni.JObject asFloatBuffer() { + return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_asFloatBuffer, jni.JniCallType.objectType, []).object); + } static final _id_getDouble = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'getDouble', r'()D'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"getDouble", r"()D"); /// from: public abstract double getDouble() - double getDouble() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_getDouble, jni.JniCallType.doubleType, []).doubleFloat; + double getDouble() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_getDouble, jni.JniCallType.doubleType, []).doubleFloat; + } static final _id_putDouble = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'putDouble', r'(D)Ljava/nio/ByteBuffer;'); + _class.reference, r"putDouble", r"(D)Ljava/nio/ByteBuffer;"); /// from: public abstract java.nio.ByteBuffer putDouble(double d) /// The returned object must be released after use, by calling the [release] method. ByteBuffer putDouble( double d, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_putDouble, jni.JniCallType.objectType, [d]).object); + ) { + return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_putDouble, jni.JniCallType.objectType, [d]).object); + } static final _id_getDouble1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'getDouble', r'(I)D'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"getDouble", r"(I)D"); /// from: public abstract double getDouble(int i) double getDouble1( int i, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_getDouble1, - jni.JniCallType.doubleType, [jni.JValueInt(i)]).doubleFloat; + ) { + return jni.Jni.accessors.callMethodWithArgs(reference, _id_getDouble1, + jni.JniCallType.doubleType, [jni.JValueInt(i)]).doubleFloat; + } static final _id_putDouble1 = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'putDouble', r'(ID)Ljava/nio/ByteBuffer;'); + _class.reference, r"putDouble", r"(ID)Ljava/nio/ByteBuffer;"); /// from: public abstract java.nio.ByteBuffer putDouble(int i, double d) /// The returned object must be released after use, by calling the [release] method. ByteBuffer putDouble1( int i, double d, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putDouble1, - jni.JniCallType.objectType, - [jni.JValueInt(i), d]).object); + ) { + return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_putDouble1, + jni.JniCallType.objectType, + [jni.JValueInt(i), d]).object); + } static final _id_asDoubleBuffer = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'asDoubleBuffer', r'()Ljava/nio/DoubleBuffer;'); + _class.reference, r"asDoubleBuffer", r"()Ljava/nio/DoubleBuffer;"); /// from: public abstract java.nio.DoubleBuffer asDoubleBuffer() /// The returned object must be released after use, by calling the [release] method. - jni.JObject asDoubleBuffer() => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_asDoubleBuffer, - jni.JniCallType.objectType, []).object); + jni.JObject asDoubleBuffer() { + return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_asDoubleBuffer, jni.JniCallType.objectType, []).object); + } static final _id_array = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'array', r'()Ljava/lang/Object;'); + .getMethodIDOf(_class.reference, r"array", r"()Ljava/lang/Object;"); /// from: public java.lang.Object array() /// The returned object must be released after use, by calling the [release] method. - jni.JObject array() => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_array, jni.JniCallType.objectType, []).object); + jni.JObject array() { + return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_array, jni.JniCallType.objectType, []).object); + } static final _id_compareTo1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'compareTo', r'(Ljava/lang/Object;)I'); + .getMethodIDOf(_class.reference, r"compareTo", r"(Ljava/lang/Object;)I"); /// from: public int compareTo(java.lang.Object object) int compareTo1( jni.JObject object, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_compareTo1, - jni.JniCallType.intType, [object.reference]).integer; + ) { + return jni.Jni.accessors.callMethodWithArgs(reference, _id_compareTo1, + jni.JniCallType.intType, [object.reference]).integer; + } } -class $ByteBufferType extends jni.JObjType { +final class $ByteBufferType extends jni.JObjType { const $ByteBufferType(); @override - String get signature => r'Ljava/nio/ByteBuffer;'; + String get signature => r"Ljava/nio/ByteBuffer;"; @override ByteBuffer fromRef(jni.JObjectPtr ref) => ByteBuffer.fromRef(ref); @@ -1817,8 +1964,9 @@ class $ByteBufferType extends jni.JObjType { int get hashCode => ($ByteBufferType).hashCode; @override - bool operator ==(Object other) => - other.runtimeType == $ByteBufferType && other is $ByteBufferType; + bool operator ==(Object other) { + return other.runtimeType == ($ByteBufferType) && other is $ByteBufferType; + } } /// from: java.util.concurrent.Executors @@ -1827,248 +1975,266 @@ class Executors extends jni.JObject { late final jni.JObjType $type = type; Executors.fromRef( - super.ref, - ) : super.fromRef(); + jni.JObjectPtr ref, + ) : super.fromRef(ref); - static final _class = jni.Jni.findJClass(r'java/util/concurrent/Executors'); + static final _class = jni.Jni.findJClass(r"java/util/concurrent/Executors"); /// The type which includes information such as the signature of this class. static const type = $ExecutorsType(); static final _id_newFixedThreadPool = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r'newFixedThreadPool', - r'(I)Ljava/util/concurrent/ExecutorService;'); + r"newFixedThreadPool", + r"(I)Ljava/util/concurrent/ExecutorService;"); /// from: static public java.util.concurrent.ExecutorService newFixedThreadPool(int i) /// The returned object must be released after use, by calling the [release] method. static jni.JObject newFixedThreadPool( int i, - ) => - const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_newFixedThreadPool, - jni.JniCallType.objectType, [jni.JValueInt(i)]).object); + ) { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_newFixedThreadPool, + jni.JniCallType.objectType, [jni.JValueInt(i)]).object); + } static final _id_newWorkStealingPool = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r'newWorkStealingPool', - r'(I)Ljava/util/concurrent/ExecutorService;'); + r"newWorkStealingPool", + r"(I)Ljava/util/concurrent/ExecutorService;"); /// from: static public java.util.concurrent.ExecutorService newWorkStealingPool(int i) /// The returned object must be released after use, by calling the [release] method. static jni.JObject newWorkStealingPool( int i, - ) => - const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_newWorkStealingPool, - jni.JniCallType.objectType, [jni.JValueInt(i)]).object); + ) { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_newWorkStealingPool, + jni.JniCallType.objectType, [jni.JValueInt(i)]).object); + } static final _id_newWorkStealingPool1 = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r'newWorkStealingPool', - r'()Ljava/util/concurrent/ExecutorService;'); + r"newWorkStealingPool", + r"()Ljava/util/concurrent/ExecutorService;"); /// from: static public java.util.concurrent.ExecutorService newWorkStealingPool() /// The returned object must be released after use, by calling the [release] method. - static jni.JObject newWorkStealingPool1() => const jni.JObjectType().fromRef( - jni.Jni.accessors.callStaticMethodWithArgs(_class.reference, - _id_newWorkStealingPool1, jni.JniCallType.objectType, []).object); + static jni.JObject newWorkStealingPool1() { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_newWorkStealingPool1, + jni.JniCallType.objectType, []).object); + } static final _id_newFixedThreadPool1 = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r'newFixedThreadPool', - r'(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;'); + r"newFixedThreadPool", + r"(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;"); /// from: static public java.util.concurrent.ExecutorService newFixedThreadPool(int i, java.util.concurrent.ThreadFactory threadFactory) /// The returned object must be released after use, by calling the [release] method. static jni.JObject newFixedThreadPool1( int i, jni.JObject threadFactory, - ) => - const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_newFixedThreadPool1, - jni.JniCallType.objectType, - [jni.JValueInt(i), threadFactory.reference]).object); + ) { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs( + _class.reference, + _id_newFixedThreadPool1, + jni.JniCallType.objectType, + [jni.JValueInt(i), threadFactory.reference]).object); + } static final _id_newSingleThreadExecutor = jni.Jni.accessors - .getStaticMethodIDOf(_class.reference, r'newSingleThreadExecutor', - r'()Ljava/util/concurrent/ExecutorService;'); + .getStaticMethodIDOf(_class.reference, r"newSingleThreadExecutor", + r"()Ljava/util/concurrent/ExecutorService;"); /// from: static public java.util.concurrent.ExecutorService newSingleThreadExecutor() /// The returned object must be released after use, by calling the [release] method. - static jni.JObject newSingleThreadExecutor() => const jni.JObjectType() - .fromRef(jni.Jni.accessors.callStaticMethodWithArgs(_class.reference, - _id_newSingleThreadExecutor, jni.JniCallType.objectType, []).object); + static jni.JObject newSingleThreadExecutor() { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_newSingleThreadExecutor, + jni.JniCallType.objectType, []).object); + } static final _id_newSingleThreadExecutor1 = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r'newSingleThreadExecutor', - r'(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;'); + r"newSingleThreadExecutor", + r"(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;"); /// from: static public java.util.concurrent.ExecutorService newSingleThreadExecutor(java.util.concurrent.ThreadFactory threadFactory) /// The returned object must be released after use, by calling the [release] method. static jni.JObject newSingleThreadExecutor1( jni.JObject threadFactory, - ) => - const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_newSingleThreadExecutor1, - jni.JniCallType.objectType, - [threadFactory.reference]).object); + ) { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs( + _class.reference, + _id_newSingleThreadExecutor1, + jni.JniCallType.objectType, + [threadFactory.reference]).object); + } static final _id_newCachedThreadPool = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r'newCachedThreadPool', - r'()Ljava/util/concurrent/ExecutorService;'); + r"newCachedThreadPool", + r"()Ljava/util/concurrent/ExecutorService;"); /// from: static public java.util.concurrent.ExecutorService newCachedThreadPool() /// The returned object must be released after use, by calling the [release] method. - static jni.JObject newCachedThreadPool() => const jni.JObjectType().fromRef( - jni.Jni.accessors.callStaticMethodWithArgs(_class.reference, - _id_newCachedThreadPool, jni.JniCallType.objectType, []).object); + static jni.JObject newCachedThreadPool() { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_newCachedThreadPool, + jni.JniCallType.objectType, []).object); + } static final _id_newCachedThreadPool1 = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r'newCachedThreadPool', - r'(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;'); + r"newCachedThreadPool", + r"(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;"); /// from: static public java.util.concurrent.ExecutorService newCachedThreadPool(java.util.concurrent.ThreadFactory threadFactory) /// The returned object must be released after use, by calling the [release] method. static jni.JObject newCachedThreadPool1( jni.JObject threadFactory, - ) => - const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_newCachedThreadPool1, - jni.JniCallType.objectType, [threadFactory.reference]).object); + ) { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_newCachedThreadPool1, + jni.JniCallType.objectType, [threadFactory.reference]).object); + } static final _id_newSingleThreadScheduledExecutor = jni.Jni.accessors .getStaticMethodIDOf( _class.reference, - r'newSingleThreadScheduledExecutor', - r'()Ljava/util/concurrent/ScheduledExecutorService;'); + r"newSingleThreadScheduledExecutor", + r"()Ljava/util/concurrent/ScheduledExecutorService;"); /// from: static public java.util.concurrent.ScheduledExecutorService newSingleThreadScheduledExecutor() /// The returned object must be released after use, by calling the [release] method. - static jni.JObject newSingleThreadScheduledExecutor() => - const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_newSingleThreadScheduledExecutor, - jni.JniCallType.objectType, []).object); + static jni.JObject newSingleThreadScheduledExecutor() { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs( + _class.reference, + _id_newSingleThreadScheduledExecutor, + jni.JniCallType.objectType, []).object); + } static final _id_newSingleThreadScheduledExecutor1 = jni.Jni.accessors .getStaticMethodIDOf( _class.reference, - r'newSingleThreadScheduledExecutor', - r'(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;'); + r"newSingleThreadScheduledExecutor", + r"(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;"); /// from: static public java.util.concurrent.ScheduledExecutorService newSingleThreadScheduledExecutor(java.util.concurrent.ThreadFactory threadFactory) /// The returned object must be released after use, by calling the [release] method. static jni.JObject newSingleThreadScheduledExecutor1( jni.JObject threadFactory, - ) => - const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_newSingleThreadScheduledExecutor1, - jni.JniCallType.objectType, - [threadFactory.reference]).object); + ) { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs( + _class.reference, + _id_newSingleThreadScheduledExecutor1, + jni.JniCallType.objectType, + [threadFactory.reference]).object); + } static final _id_newScheduledThreadPool = jni.Jni.accessors - .getStaticMethodIDOf(_class.reference, r'newScheduledThreadPool', - r'(I)Ljava/util/concurrent/ScheduledExecutorService;'); + .getStaticMethodIDOf(_class.reference, r"newScheduledThreadPool", + r"(I)Ljava/util/concurrent/ScheduledExecutorService;"); /// from: static public java.util.concurrent.ScheduledExecutorService newScheduledThreadPool(int i) /// The returned object must be released after use, by calling the [release] method. static jni.JObject newScheduledThreadPool( int i, - ) => - const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_newScheduledThreadPool, - jni.JniCallType.objectType, - [jni.JValueInt(i)]).object); + ) { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_newScheduledThreadPool, + jni.JniCallType.objectType, [jni.JValueInt(i)]).object); + } static final _id_newScheduledThreadPool1 = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r'newScheduledThreadPool', - r'(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;'); + r"newScheduledThreadPool", + r"(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;"); /// from: static public java.util.concurrent.ScheduledExecutorService newScheduledThreadPool(int i, java.util.concurrent.ThreadFactory threadFactory) /// The returned object must be released after use, by calling the [release] method. static jni.JObject newScheduledThreadPool1( int i, jni.JObject threadFactory, - ) => - const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_newScheduledThreadPool1, - jni.JniCallType.objectType, - [jni.JValueInt(i), threadFactory.reference]).object); + ) { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs( + _class.reference, + _id_newScheduledThreadPool1, + jni.JniCallType.objectType, + [jni.JValueInt(i), threadFactory.reference]).object); + } static final _id_unconfigurableExecutorService = jni.Jni.accessors - .getStaticMethodIDOf(_class.reference, r'unconfigurableExecutorService', - r'(Ljava/util/concurrent/ExecutorService;)Ljava/util/concurrent/ExecutorService;'); + .getStaticMethodIDOf(_class.reference, r"unconfigurableExecutorService", + r"(Ljava/util/concurrent/ExecutorService;)Ljava/util/concurrent/ExecutorService;"); /// from: static public java.util.concurrent.ExecutorService unconfigurableExecutorService(java.util.concurrent.ExecutorService executorService) /// The returned object must be released after use, by calling the [release] method. static jni.JObject unconfigurableExecutorService( jni.JObject executorService, - ) => - const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_unconfigurableExecutorService, - jni.JniCallType.objectType, - [executorService.reference]).object); + ) { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs( + _class.reference, + _id_unconfigurableExecutorService, + jni.JniCallType.objectType, + [executorService.reference]).object); + } static final _id_unconfigurableScheduledExecutorService = jni.Jni.accessors .getStaticMethodIDOf( _class.reference, - r'unconfigurableScheduledExecutorService', - r'(Ljava/util/concurrent/ScheduledExecutorService;)Ljava/util/concurrent/ScheduledExecutorService;'); + r"unconfigurableScheduledExecutorService", + r"(Ljava/util/concurrent/ScheduledExecutorService;)Ljava/util/concurrent/ScheduledExecutorService;"); /// from: static public java.util.concurrent.ScheduledExecutorService unconfigurableScheduledExecutorService(java.util.concurrent.ScheduledExecutorService scheduledExecutorService) /// The returned object must be released after use, by calling the [release] method. static jni.JObject unconfigurableScheduledExecutorService( jni.JObject scheduledExecutorService, - ) => - const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_unconfigurableScheduledExecutorService, - jni.JniCallType.objectType, - [scheduledExecutorService.reference]).object); + ) { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs( + _class.reference, + _id_unconfigurableScheduledExecutorService, + jni.JniCallType.objectType, + [scheduledExecutorService.reference]).object); + } static final _id_defaultThreadFactory = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r'defaultThreadFactory', - r'()Ljava/util/concurrent/ThreadFactory;'); + r"defaultThreadFactory", + r"()Ljava/util/concurrent/ThreadFactory;"); /// from: static public java.util.concurrent.ThreadFactory defaultThreadFactory() /// The returned object must be released after use, by calling the [release] method. - static jni.JObject defaultThreadFactory() => const jni.JObjectType().fromRef( - jni.Jni.accessors.callStaticMethodWithArgs(_class.reference, - _id_defaultThreadFactory, jni.JniCallType.objectType, []).object); + static jni.JObject defaultThreadFactory() { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_defaultThreadFactory, + jni.JniCallType.objectType, []).object); + } static final _id_privilegedThreadFactory = jni.Jni.accessors - .getStaticMethodIDOf(_class.reference, r'privilegedThreadFactory', - r'()Ljava/util/concurrent/ThreadFactory;'); + .getStaticMethodIDOf(_class.reference, r"privilegedThreadFactory", + r"()Ljava/util/concurrent/ThreadFactory;"); /// from: static public java.util.concurrent.ThreadFactory privilegedThreadFactory() /// The returned object must be released after use, by calling the [release] method. - static jni.JObject privilegedThreadFactory() => const jni.JObjectType() - .fromRef(jni.Jni.accessors.callStaticMethodWithArgs(_class.reference, - _id_privilegedThreadFactory, jni.JniCallType.objectType, []).object); + static jni.JObject privilegedThreadFactory() { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_privilegedThreadFactory, + jni.JniCallType.objectType, []).object); + } static final _id_callable = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r'callable', - r'(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Callable;'); + r"callable", + r"(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Callable;"); /// from: static public java.util.concurrent.Callable callable(java.lang.Runnable runnable, T object) /// The returned object must be released after use, by calling the [release] method. @@ -2090,69 +2256,73 @@ class Executors extends jni.JObject { static final _id_callable1 = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r'callable', - r'(Ljava/lang/Runnable;)Ljava/util/concurrent/Callable;'); + r"callable", + r"(Ljava/lang/Runnable;)Ljava/util/concurrent/Callable;"); /// from: static public java.util.concurrent.Callable callable(java.lang.Runnable runnable) /// The returned object must be released after use, by calling the [release] method. static jni.JObject callable1( jni.JObject runnable, - ) => - const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_callable1, - jni.JniCallType.objectType, [runnable.reference]).object); + ) { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_callable1, + jni.JniCallType.objectType, [runnable.reference]).object); + } static final _id_callable2 = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r'callable', - r'(Ljava/security/PrivilegedAction;)Ljava/util/concurrent/Callable;'); + r"callable", + r"(Ljava/security/PrivilegedAction;)Ljava/util/concurrent/Callable;"); /// from: static public java.util.concurrent.Callable callable(java.security.PrivilegedAction privilegedAction) /// The returned object must be released after use, by calling the [release] method. static jni.JObject callable2( jni.JObject privilegedAction, - ) => - const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_callable2, - jni.JniCallType.objectType, [privilegedAction.reference]).object); + ) { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_callable2, + jni.JniCallType.objectType, [privilegedAction.reference]).object); + } static final _id_callable3 = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r'callable', - r'(Ljava/security/PrivilegedExceptionAction;)Ljava/util/concurrent/Callable;'); + r"callable", + r"(Ljava/security/PrivilegedExceptionAction;)Ljava/util/concurrent/Callable;"); /// from: static public java.util.concurrent.Callable callable(java.security.PrivilegedExceptionAction privilegedExceptionAction) /// The returned object must be released after use, by calling the [release] method. static jni.JObject callable3( jni.JObject privilegedExceptionAction, - ) => - const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_callable3, - jni.JniCallType.objectType, - [privilegedExceptionAction.reference]).object); + ) { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs( + _class.reference, + _id_callable3, + jni.JniCallType.objectType, + [privilegedExceptionAction.reference]).object); + } static final _id_privilegedCallable = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r'privilegedCallable', - r'(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Callable;'); + r"privilegedCallable", + r"(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Callable;"); /// from: static public java.util.concurrent.Callable privilegedCallable(java.util.concurrent.Callable callable) /// The returned object must be released after use, by calling the [release] method. static jni.JObject privilegedCallable<$T extends jni.JObject>( jni.JObject callable, { required jni.JObjType<$T> T, - }) => - const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_privilegedCallable, - jni.JniCallType.objectType, [callable.reference]).object); + }) { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_privilegedCallable, + jni.JniCallType.objectType, [callable.reference]).object); + } static final _id_privilegedCallableUsingCurrentClassLoader = jni.Jni.accessors .getStaticMethodIDOf( _class.reference, - r'privilegedCallableUsingCurrentClassLoader', - r'(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Callable;'); + r"privilegedCallableUsingCurrentClassLoader", + r"(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Callable;"); /// from: static public java.util.concurrent.Callable privilegedCallableUsingCurrentClassLoader(java.util.concurrent.Callable callable) /// The returned object must be released after use, by calling the [release] method. @@ -2160,20 +2330,21 @@ class Executors extends jni.JObject { privilegedCallableUsingCurrentClassLoader<$T extends jni.JObject>( jni.JObject callable, { required jni.JObjType<$T> T, - }) => - const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_privilegedCallableUsingCurrentClassLoader, - jni.JniCallType.objectType, - [callable.reference]).object); + }) { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs( + _class.reference, + _id_privilegedCallableUsingCurrentClassLoader, + jni.JniCallType.objectType, + [callable.reference]).object); + } } -class $ExecutorsType extends jni.JObjType { +final class $ExecutorsType extends jni.JObjType { const $ExecutorsType(); @override - String get signature => r'Ljava/util/concurrent/Executors;'; + String get signature => r"Ljava/util/concurrent/Executors;"; @override Executors fromRef(jni.JObjectPtr ref) => Executors.fromRef(ref); @@ -2188,8 +2359,9 @@ class $ExecutorsType extends jni.JObjType { int get hashCode => ($ExecutorsType).hashCode; @override - bool operator ==(Object other) => - other.runtimeType == $ExecutorsType && other is $ExecutorsType; + bool operator ==(Object other) { + return other.runtimeType == ($ExecutorsType) && other is $ExecutorsType; + } } /// from: org.chromium.net.CronetEngine$Builder$LibraryLoader @@ -2198,41 +2370,43 @@ class CronetEngine_Builder_LibraryLoader extends jni.JObject { late final jni.JObjType $type = type; CronetEngine_Builder_LibraryLoader.fromRef( - super.ref, - ) : super.fromRef(); + jni.JObjectPtr ref, + ) : super.fromRef(ref); static final _class = jni.Jni.findJClass( - r'org/chromium/net/CronetEngine$Builder$LibraryLoader'); + r"org/chromium/net/CronetEngine$Builder$LibraryLoader"); /// The type which includes information such as the signature of this class. static const type = $CronetEngine_Builder_LibraryLoaderType(); static final _id_new0 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'', r'()V'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"", r"()V"); /// from: public void () /// The returned object must be released after use, by calling the [release] method. - factory CronetEngine_Builder_LibraryLoader() => - CronetEngine_Builder_LibraryLoader.fromRef(jni.Jni.accessors - .newObjectWithArgs(_class.reference, _id_new0, []).object); + factory CronetEngine_Builder_LibraryLoader() { + return CronetEngine_Builder_LibraryLoader.fromRef(jni.Jni.accessors + .newObjectWithArgs(_class.reference, _id_new0, []).object); + } static final _id_loadLibrary = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'loadLibrary', r'(Ljava/lang/String;)V'); + _class.reference, r"loadLibrary", r"(Ljava/lang/String;)V"); /// from: public abstract void loadLibrary(java.lang.String string) void loadLibrary( jni.JString string, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_loadLibrary, - jni.JniCallType.voidType, [string.reference]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs(reference, _id_loadLibrary, + jni.JniCallType.voidType, [string.reference]).check(); + } } -class $CronetEngine_Builder_LibraryLoaderType +final class $CronetEngine_Builder_LibraryLoaderType extends jni.JObjType { const $CronetEngine_Builder_LibraryLoaderType(); @override String get signature => - r'Lorg/chromium/net/CronetEngine$Builder$LibraryLoader;'; + r"Lorg/chromium/net/CronetEngine$Builder$LibraryLoader;"; @override CronetEngine_Builder_LibraryLoader fromRef(jni.JObjectPtr ref) => @@ -2248,9 +2422,10 @@ class $CronetEngine_Builder_LibraryLoaderType int get hashCode => ($CronetEngine_Builder_LibraryLoaderType).hashCode; @override - bool operator ==(Object other) => - other.runtimeType == $CronetEngine_Builder_LibraryLoaderType && - other is $CronetEngine_Builder_LibraryLoaderType; + bool operator ==(Object other) { + return other.runtimeType == ($CronetEngine_Builder_LibraryLoaderType) && + other is $CronetEngine_Builder_LibraryLoaderType; + } } /// from: org.chromium.net.CronetEngine$Builder @@ -2259,18 +2434,18 @@ class CronetEngine_Builder extends jni.JObject { late final jni.JObjType $type = type; CronetEngine_Builder.fromRef( - super.ref, - ) : super.fromRef(); + jni.JObjectPtr ref, + ) : super.fromRef(ref); static final _class = - jni.Jni.findJClass(r'org/chromium/net/CronetEngine$Builder'); + jni.Jni.findJClass(r"org/chromium/net/CronetEngine$Builder"); /// The type which includes information such as the signature of this class. static const type = $CronetEngine_BuilderType(); static final _id_mBuilderDelegate = jni.Jni.accessors.getFieldIDOf( _class.reference, - r'mBuilderDelegate', - r'Lorg/chromium/net/ICronetEngineBuilder;', + r"mBuilderDelegate", + r"Lorg/chromium/net/ICronetEngineBuilder;", ); /// from: protected final org.chromium.net.ICronetEngineBuilder mBuilderDelegate @@ -2293,155 +2468,166 @@ class CronetEngine_Builder extends jni.JObject { static const HTTP_CACHE_DISK = 3; static final _id_new0 = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'', r'(Landroid/content/Context;)V'); + _class.reference, r"", r"(Landroid/content/Context;)V"); /// from: public void (android.content.Context context) /// The returned object must be released after use, by calling the [release] method. factory CronetEngine_Builder( jni.JObject context, - ) => - CronetEngine_Builder.fromRef(jni.Jni.accessors.newObjectWithArgs( - _class.reference, _id_new0, [context.reference]).object); + ) { + return CronetEngine_Builder.fromRef(jni.Jni.accessors.newObjectWithArgs( + _class.reference, _id_new0, [context.reference]).object); + } static final _id_new1 = jni.Jni.accessors.getMethodIDOf(_class.reference, - r'', r'(Lorg/chromium/net/ICronetEngineBuilder;)V'); + r"", r"(Lorg/chromium/net/ICronetEngineBuilder;)V"); /// from: public void (org.chromium.net.ICronetEngineBuilder iCronetEngineBuilder) /// The returned object must be released after use, by calling the [release] method. factory CronetEngine_Builder.new1( jni.JObject iCronetEngineBuilder, - ) => - CronetEngine_Builder.fromRef(jni.Jni.accessors.newObjectWithArgs( - _class.reference, _id_new1, [iCronetEngineBuilder.reference]).object); + ) { + return CronetEngine_Builder.fromRef(jni.Jni.accessors.newObjectWithArgs( + _class.reference, _id_new1, [iCronetEngineBuilder.reference]).object); + } static final _id_getDefaultUserAgent = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'getDefaultUserAgent', r'()Ljava/lang/String;'); + _class.reference, r"getDefaultUserAgent", r"()Ljava/lang/String;"); /// from: public java.lang.String getDefaultUserAgent() /// The returned object must be released after use, by calling the [release] method. - jni.JString getDefaultUserAgent() => - const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_getDefaultUserAgent, - jni.JniCallType.objectType, []).object); + jni.JString getDefaultUserAgent() { + return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_getDefaultUserAgent, + jni.JniCallType.objectType, []).object); + } static final _id_setUserAgent = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'setUserAgent', - r'(Ljava/lang/String;)Lorg/chromium/net/CronetEngine$Builder;'); + r"setUserAgent", + r"(Ljava/lang/String;)Lorg/chromium/net/CronetEngine$Builder;"); /// from: public org.chromium.net.CronetEngine$Builder setUserAgent(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder setUserAgent( jni.JString string, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setUserAgent, - jni.JniCallType.objectType, [string.reference]).object); + ) { + return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setUserAgent, + jni.JniCallType.objectType, [string.reference]).object); + } static final _id_setStoragePath = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'setStoragePath', - r'(Ljava/lang/String;)Lorg/chromium/net/CronetEngine$Builder;'); + r"setStoragePath", + r"(Ljava/lang/String;)Lorg/chromium/net/CronetEngine$Builder;"); /// from: public org.chromium.net.CronetEngine$Builder setStoragePath(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder setStoragePath( jni.JString string, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setStoragePath, - jni.JniCallType.objectType, [string.reference]).object); + ) { + return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setStoragePath, + jni.JniCallType.objectType, [string.reference]).object); + } static final _id_setLibraryLoader = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'setLibraryLoader', - r'(Lorg/chromium/net/CronetEngine$Builder$LibraryLoader;)Lorg/chromium/net/CronetEngine$Builder;'); + r"setLibraryLoader", + r"(Lorg/chromium/net/CronetEngine$Builder$LibraryLoader;)Lorg/chromium/net/CronetEngine$Builder;"); /// from: public org.chromium.net.CronetEngine$Builder setLibraryLoader(org.chromium.net.CronetEngine$Builder$LibraryLoader libraryLoader) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder setLibraryLoader( CronetEngine_Builder_LibraryLoader libraryLoader, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setLibraryLoader, - jni.JniCallType.objectType, [libraryLoader.reference]).object); + ) { + return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setLibraryLoader, + jni.JniCallType.objectType, [libraryLoader.reference]).object); + } static final _id_enableQuic = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'enableQuic', - r'(Z)Lorg/chromium/net/CronetEngine$Builder;'); + r"enableQuic", + r"(Z)Lorg/chromium/net/CronetEngine$Builder;"); /// from: public org.chromium.net.CronetEngine$Builder enableQuic(boolean z) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder enableQuic( bool z, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_enableQuic, - jni.JniCallType.objectType, [z ? 1 : 0]).object); + ) { + return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_enableQuic, + jni.JniCallType.objectType, [z ? 1 : 0]).object); + } static final _id_enableHttp2 = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'enableHttp2', - r'(Z)Lorg/chromium/net/CronetEngine$Builder;'); + r"enableHttp2", + r"(Z)Lorg/chromium/net/CronetEngine$Builder;"); /// from: public org.chromium.net.CronetEngine$Builder enableHttp2(boolean z) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder enableHttp2( bool z, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_enableHttp2, - jni.JniCallType.objectType, [z ? 1 : 0]).object); + ) { + return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_enableHttp2, + jni.JniCallType.objectType, [z ? 1 : 0]).object); + } static final _id_enableSdch = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'enableSdch', - r'(Z)Lorg/chromium/net/CronetEngine$Builder;'); + r"enableSdch", + r"(Z)Lorg/chromium/net/CronetEngine$Builder;"); /// from: public org.chromium.net.CronetEngine$Builder enableSdch(boolean z) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder enableSdch( bool z, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_enableSdch, - jni.JniCallType.objectType, [z ? 1 : 0]).object); + ) { + return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_enableSdch, + jni.JniCallType.objectType, [z ? 1 : 0]).object); + } static final _id_enableBrotli = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'enableBrotli', - r'(Z)Lorg/chromium/net/CronetEngine$Builder;'); + r"enableBrotli", + r"(Z)Lorg/chromium/net/CronetEngine$Builder;"); /// from: public org.chromium.net.CronetEngine$Builder enableBrotli(boolean z) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder enableBrotli( bool z, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_enableBrotli, - jni.JniCallType.objectType, [z ? 1 : 0]).object); + ) { + return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_enableBrotli, + jni.JniCallType.objectType, [z ? 1 : 0]).object); + } static final _id_enableHttpCache = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'enableHttpCache', - r'(IJ)Lorg/chromium/net/CronetEngine$Builder;'); + r"enableHttpCache", + r"(IJ)Lorg/chromium/net/CronetEngine$Builder;"); /// from: public org.chromium.net.CronetEngine$Builder enableHttpCache(int i, long j) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder enableHttpCache( int i, int j, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_enableHttpCache, - jni.JniCallType.objectType, [jni.JValueInt(i), j]).object); + ) { + return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_enableHttpCache, + jni.JniCallType.objectType, [jni.JValueInt(i), j]).object); + } static final _id_addQuicHint = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'addQuicHint', - r'(Ljava/lang/String;II)Lorg/chromium/net/CronetEngine$Builder;'); + r"addQuicHint", + r"(Ljava/lang/String;II)Lorg/chromium/net/CronetEngine$Builder;"); /// from: public org.chromium.net.CronetEngine$Builder addQuicHint(java.lang.String string, int i, int i1) /// The returned object must be released after use, by calling the [release] method. @@ -2449,18 +2635,19 @@ class CronetEngine_Builder extends jni.JObject { jni.JString string, int i, int i1, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs( - reference, - _id_addQuicHint, - jni.JniCallType.objectType, - [string.reference, jni.JValueInt(i), jni.JValueInt(i1)]).object); + ) { + return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs( + reference, + _id_addQuicHint, + jni.JniCallType.objectType, + [string.reference, jni.JValueInt(i), jni.JValueInt(i1)]).object); + } static final _id_addPublicKeyPins = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'addPublicKeyPins', - r'(Ljava/lang/String;Ljava/util/Set;ZLjava/util/Date;)Lorg/chromium/net/CronetEngine$Builder;'); + r"addPublicKeyPins", + r"(Ljava/lang/String;Ljava/util/Set;ZLjava/util/Date;)Lorg/chromium/net/CronetEngine$Builder;"); /// from: public org.chromium.net.CronetEngine$Builder addPublicKeyPins(java.lang.String string, java.util.Set set, boolean z, java.util.Date date) /// The returned object must be released after use, by calling the [release] method. @@ -2469,163 +2656,176 @@ class CronetEngine_Builder extends jni.JObject { jni.JSet> set0, bool z, jni.JObject date, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs( - reference, _id_addPublicKeyPins, jni.JniCallType.objectType, [ - string.reference, - set0.reference, - z ? 1 : 0, - date.reference - ]).object); + ) { + return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs( + reference, _id_addPublicKeyPins, jni.JniCallType.objectType, [ + string.reference, + set0.reference, + z ? 1 : 0, + date.reference + ]).object); + } static final _id_enablePublicKeyPinningBypassForLocalTrustAnchors = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'enablePublicKeyPinningBypassForLocalTrustAnchors', - r'(Z)Lorg/chromium/net/CronetEngine$Builder;'); + r"enablePublicKeyPinningBypassForLocalTrustAnchors", + r"(Z)Lorg/chromium/net/CronetEngine$Builder;"); /// from: public org.chromium.net.CronetEngine$Builder enablePublicKeyPinningBypassForLocalTrustAnchors(boolean z) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder enablePublicKeyPinningBypassForLocalTrustAnchors( bool z, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs( - reference, - _id_enablePublicKeyPinningBypassForLocalTrustAnchors, - jni.JniCallType.objectType, - [z ? 1 : 0]).object); + ) { + return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs( + reference, + _id_enablePublicKeyPinningBypassForLocalTrustAnchors, + jni.JniCallType.objectType, + [z ? 1 : 0]).object); + } static final _id_setThreadPriority = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'setThreadPriority', - r'(I)Lorg/chromium/net/CronetEngine$Builder;'); + r"setThreadPriority", + r"(I)Lorg/chromium/net/CronetEngine$Builder;"); /// from: public org.chromium.net.CronetEngine$Builder setThreadPriority(int i) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder setThreadPriority( int i, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setThreadPriority, - jni.JniCallType.objectType, [jni.JValueInt(i)]).object); + ) { + return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setThreadPriority, + jni.JniCallType.objectType, [jni.JValueInt(i)]).object); + } static final _id_enableNetworkQualityEstimator = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'enableNetworkQualityEstimator', - r'(Z)Lorg/chromium/net/CronetEngine$Builder;'); + .getMethodIDOf(_class.reference, r"enableNetworkQualityEstimator", + r"(Z)Lorg/chromium/net/CronetEngine$Builder;"); /// from: public org.chromium.net.CronetEngine$Builder enableNetworkQualityEstimator(boolean z) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder enableNetworkQualityEstimator( bool z, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_enableNetworkQualityEstimator, - jni.JniCallType.objectType, [z ? 1 : 0]).object); + ) { + return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_enableNetworkQualityEstimator, + jni.JniCallType.objectType, [z ? 1 : 0]).object); + } static final _id_setQuicOptions = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'setQuicOptions', - r'(Lorg/chromium/net/QuicOptions;)Lorg/chromium/net/CronetEngine$Builder;'); + r"setQuicOptions", + r"(Lorg/chromium/net/QuicOptions;)Lorg/chromium/net/CronetEngine$Builder;"); /// from: public org.chromium.net.CronetEngine$Builder setQuicOptions(org.chromium.net.QuicOptions quicOptions) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder setQuicOptions( jni.JObject quicOptions, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setQuicOptions, - jni.JniCallType.objectType, [quicOptions.reference]).object); + ) { + return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setQuicOptions, + jni.JniCallType.objectType, [quicOptions.reference]).object); + } static final _id_setQuicOptions1 = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'setQuicOptions', - r'(Lorg/chromium/net/QuicOptions$Builder;)Lorg/chromium/net/CronetEngine$Builder;'); + r"setQuicOptions", + r"(Lorg/chromium/net/QuicOptions$Builder;)Lorg/chromium/net/CronetEngine$Builder;"); /// from: public org.chromium.net.CronetEngine$Builder setQuicOptions(org.chromium.net.QuicOptions$Builder builder) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder setQuicOptions1( jni.JObject builder, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setQuicOptions1, - jni.JniCallType.objectType, [builder.reference]).object); + ) { + return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setQuicOptions1, + jni.JniCallType.objectType, [builder.reference]).object); + } static final _id_setDnsOptions = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'setDnsOptions', - r'(Lorg/chromium/net/DnsOptions;)Lorg/chromium/net/CronetEngine$Builder;'); + r"setDnsOptions", + r"(Lorg/chromium/net/DnsOptions;)Lorg/chromium/net/CronetEngine$Builder;"); /// from: public org.chromium.net.CronetEngine$Builder setDnsOptions(org.chromium.net.DnsOptions dnsOptions) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder setDnsOptions( jni.JObject dnsOptions, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setDnsOptions, - jni.JniCallType.objectType, [dnsOptions.reference]).object); + ) { + return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setDnsOptions, + jni.JniCallType.objectType, [dnsOptions.reference]).object); + } static final _id_setDnsOptions1 = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'setDnsOptions', - r'(Lorg/chromium/net/DnsOptions$Builder;)Lorg/chromium/net/CronetEngine$Builder;'); + r"setDnsOptions", + r"(Lorg/chromium/net/DnsOptions$Builder;)Lorg/chromium/net/CronetEngine$Builder;"); /// from: public org.chromium.net.CronetEngine$Builder setDnsOptions(org.chromium.net.DnsOptions$Builder builder) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder setDnsOptions1( jni.JObject builder, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setDnsOptions1, - jni.JniCallType.objectType, [builder.reference]).object); + ) { + return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setDnsOptions1, + jni.JniCallType.objectType, [builder.reference]).object); + } static final _id_setConnectionMigrationOptions = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'setConnectionMigrationOptions', - r'(Lorg/chromium/net/ConnectionMigrationOptions;)Lorg/chromium/net/CronetEngine$Builder;'); + r"setConnectionMigrationOptions", + r"(Lorg/chromium/net/ConnectionMigrationOptions;)Lorg/chromium/net/CronetEngine$Builder;"); /// from: public org.chromium.net.CronetEngine$Builder setConnectionMigrationOptions(org.chromium.net.ConnectionMigrationOptions connectionMigrationOptions) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder setConnectionMigrationOptions( jni.JObject connectionMigrationOptions, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs( - reference, - _id_setConnectionMigrationOptions, - jni.JniCallType.objectType, - [connectionMigrationOptions.reference]).object); + ) { + return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs( + reference, + _id_setConnectionMigrationOptions, + jni.JniCallType.objectType, + [connectionMigrationOptions.reference]).object); + } static final _id_setConnectionMigrationOptions1 = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'setConnectionMigrationOptions', - r'(Lorg/chromium/net/ConnectionMigrationOptions$Builder;)Lorg/chromium/net/CronetEngine$Builder;'); + r"setConnectionMigrationOptions", + r"(Lorg/chromium/net/ConnectionMigrationOptions$Builder;)Lorg/chromium/net/CronetEngine$Builder;"); /// from: public org.chromium.net.CronetEngine$Builder setConnectionMigrationOptions(org.chromium.net.ConnectionMigrationOptions$Builder builder) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder setConnectionMigrationOptions1( jni.JObject builder, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setConnectionMigrationOptions1, - jni.JniCallType.objectType, [builder.reference]).object); + ) { + return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setConnectionMigrationOptions1, + jni.JniCallType.objectType, [builder.reference]).object); + } static final _id_build = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'build', r'()Lorg/chromium/net/CronetEngine;'); + _class.reference, r"build", r"()Lorg/chromium/net/CronetEngine;"); /// from: public org.chromium.net.CronetEngine build() /// The returned object must be released after use, by calling the [release] method. - CronetEngine build() => - const $CronetEngineType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_build, jni.JniCallType.objectType, []).object); + CronetEngine build() { + return const $CronetEngineType().fromRef(jni.Jni.accessors + .callMethodWithArgs( + reference, _id_build, jni.JniCallType.objectType, []).object); + } } -class $CronetEngine_BuilderType extends jni.JObjType { +final class $CronetEngine_BuilderType + extends jni.JObjType { const $CronetEngine_BuilderType(); @override - String get signature => r'Lorg/chromium/net/CronetEngine$Builder;'; + String get signature => r"Lorg/chromium/net/CronetEngine$Builder;"; @override CronetEngine_Builder fromRef(jni.JObjectPtr ref) => @@ -2641,9 +2841,10 @@ class $CronetEngine_BuilderType extends jni.JObjType { int get hashCode => ($CronetEngine_BuilderType).hashCode; @override - bool operator ==(Object other) => - other.runtimeType == $CronetEngine_BuilderType && - other is $CronetEngine_BuilderType; + bool operator ==(Object other) { + return other.runtimeType == ($CronetEngine_BuilderType) && + other is $CronetEngine_BuilderType; + } } /// from: org.chromium.net.CronetEngine @@ -2652,10 +2853,10 @@ class CronetEngine extends jni.JObject { late final jni.JObjType $type = type; CronetEngine.fromRef( - super.ref, - ) : super.fromRef(); + jni.JObjectPtr ref, + ) : super.fromRef(ref); - static final _class = jni.Jni.findJClass(r'org/chromium/net/CronetEngine'); + static final _class = jni.Jni.findJClass(r"org/chromium/net/CronetEngine"); /// The type which includes information such as the signature of this class. static const type = $CronetEngineType(); @@ -2685,91 +2886,105 @@ class CronetEngine extends jni.JObject { static const EFFECTIVE_CONNECTION_TYPE_4G = 5; static final _id_new0 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'', r'()V'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"", r"()V"); /// from: public void () /// The returned object must be released after use, by calling the [release] method. - factory CronetEngine() => CronetEngine.fromRef(jni.Jni.accessors - .newObjectWithArgs(_class.reference, _id_new0, []).object); + factory CronetEngine() { + return CronetEngine.fromRef(jni.Jni.accessors + .newObjectWithArgs(_class.reference, _id_new0, []).object); + } static final _id_getVersionString = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'getVersionString', r'()Ljava/lang/String;'); + _class.reference, r"getVersionString", r"()Ljava/lang/String;"); /// from: public abstract java.lang.String getVersionString() /// The returned object must be released after use, by calling the [release] method. - jni.JString getVersionString() => - const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_getVersionString, - jni.JniCallType.objectType, []).object); + jni.JString getVersionString() { + return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_getVersionString, + jni.JniCallType.objectType, []).object); + } static final _id_shutdown = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'shutdown', r'()V'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"shutdown", r"()V"); /// from: public abstract void shutdown() - void shutdown() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_shutdown, jni.JniCallType.voidType, []).check(); + void shutdown() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_shutdown, jni.JniCallType.voidType, []).check(); + } static final _id_startNetLogToFile = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'startNetLogToFile', r'(Ljava/lang/String;Z)V'); + _class.reference, r"startNetLogToFile", r"(Ljava/lang/String;Z)V"); /// from: public abstract void startNetLogToFile(java.lang.String string, boolean z) void startNetLogToFile( jni.JString string, bool z, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_startNetLogToFile, - jni.JniCallType.voidType, [string.reference, z ? 1 : 0]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, + _id_startNetLogToFile, + jni.JniCallType.voidType, + [string.reference, z ? 1 : 0]).check(); + } static final _id_stopNetLog = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'stopNetLog', r'()V'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"stopNetLog", r"()V"); /// from: public abstract void stopNetLog() - void stopNetLog() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_stopNetLog, jni.JniCallType.voidType, []).check(); + void stopNetLog() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_stopNetLog, jni.JniCallType.voidType, []).check(); + } static final _id_getGlobalMetricsDeltas = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getGlobalMetricsDeltas', r'()[B'); + .getMethodIDOf(_class.reference, r"getGlobalMetricsDeltas", r"()[B"); /// from: public abstract byte[] getGlobalMetricsDeltas() /// The returned object must be released after use, by calling the [release] method. - jni.JArray getGlobalMetricsDeltas() => - const jni.JArrayType(jni.jbyteType()).fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_getGlobalMetricsDeltas, - jni.JniCallType.objectType, []).object); + jni.JArray getGlobalMetricsDeltas() { + return const jni.JArrayType(jni.jbyteType()).fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_getGlobalMetricsDeltas, + jni.JniCallType.objectType, []).object); + } static final _id_openConnection = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'openConnection', - r'(Ljava/net/URL;)Ljava/net/URLConnection;'); + r"openConnection", + r"(Ljava/net/URL;)Ljava/net/URLConnection;"); /// from: public abstract java.net.URLConnection openConnection(java.net.URL uRL) /// The returned object must be released after use, by calling the [release] method. jni.JObject openConnection( URL uRL, - ) => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_openConnection, - jni.JniCallType.objectType, - [uRL.reference]).object); + ) { + return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_openConnection, + jni.JniCallType.objectType, + [uRL.reference]).object); + } static final _id_createURLStreamHandlerFactory = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'createURLStreamHandlerFactory', - r'()Ljava/net/URLStreamHandlerFactory;'); + .getMethodIDOf(_class.reference, r"createURLStreamHandlerFactory", + r"()Ljava/net/URLStreamHandlerFactory;"); /// from: public abstract java.net.URLStreamHandlerFactory createURLStreamHandlerFactory() /// The returned object must be released after use, by calling the [release] method. - jni.JObject createURLStreamHandlerFactory() => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_createURLStreamHandlerFactory, - jni.JniCallType.objectType, []).object); + jni.JObject createURLStreamHandlerFactory() { + return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_createURLStreamHandlerFactory, + jni.JniCallType.objectType, []).object); + } static final _id_newUrlRequestBuilder = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'newUrlRequestBuilder', - r'(Ljava/lang/String;Lorg/chromium/net/UrlRequest$Callback;Ljava/util/concurrent/Executor;)Lorg/chromium/net/UrlRequest$Builder;'); + r"newUrlRequestBuilder", + r"(Ljava/lang/String;Lorg/chromium/net/UrlRequest$Callback;Ljava/util/concurrent/Executor;)Lorg/chromium/net/UrlRequest$Builder;"); /// from: public abstract org.chromium.net.UrlRequest$Builder newUrlRequestBuilder(java.lang.String string, org.chromium.net.UrlRequest$Callback callback, java.util.concurrent.Executor executor) /// The returned object must be released after use, by calling the [release] method. @@ -2777,180 +2992,194 @@ class CronetEngine extends jni.JObject { jni.JString string, UrlRequest_Callback callback, jni.JObject executor, - ) => - const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs( - reference, _id_newUrlRequestBuilder, jni.JniCallType.objectType, [ - string.reference, - callback.reference, - executor.reference - ]).object); + ) { + return const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs( + reference, + _id_newUrlRequestBuilder, + jni.JniCallType.objectType, + [string.reference, callback.reference, executor.reference]).object); + } static final _id_getActiveRequestCount = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getActiveRequestCount', r'()I'); + .getMethodIDOf(_class.reference, r"getActiveRequestCount", r"()I"); /// from: public int getActiveRequestCount() - int getActiveRequestCount() => jni.Jni.accessors.callMethodWithArgs(reference, - _id_getActiveRequestCount, jni.JniCallType.intType, []).integer; + int getActiveRequestCount() { + return jni.Jni.accessors.callMethodWithArgs(reference, + _id_getActiveRequestCount, jni.JniCallType.intType, []).integer; + } static final _id_addRequestFinishedListener = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'addRequestFinishedListener', - r'(Lorg/chromium/net/RequestFinishedInfo$Listener;)V'); + r"addRequestFinishedListener", + r"(Lorg/chromium/net/RequestFinishedInfo$Listener;)V"); /// from: public void addRequestFinishedListener(org.chromium.net.RequestFinishedInfo$Listener listener) void addRequestFinishedListener( jni.JObject listener, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, - _id_addRequestFinishedListener, - jni.JniCallType.voidType, - [listener.reference]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, + _id_addRequestFinishedListener, + jni.JniCallType.voidType, + [listener.reference]).check(); + } static final _id_removeRequestFinishedListener = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'removeRequestFinishedListener', - r'(Lorg/chromium/net/RequestFinishedInfo$Listener;)V'); + .getMethodIDOf(_class.reference, r"removeRequestFinishedListener", + r"(Lorg/chromium/net/RequestFinishedInfo$Listener;)V"); /// from: public void removeRequestFinishedListener(org.chromium.net.RequestFinishedInfo$Listener listener) void removeRequestFinishedListener( jni.JObject listener, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, - _id_removeRequestFinishedListener, - jni.JniCallType.voidType, - [listener.reference]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, + _id_removeRequestFinishedListener, + jni.JniCallType.voidType, + [listener.reference]).check(); + } static final _id_getHttpRttMs = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getHttpRttMs', r'()I'); + .getMethodIDOf(_class.reference, r"getHttpRttMs", r"()I"); /// from: public int getHttpRttMs() - int getHttpRttMs() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_getHttpRttMs, jni.JniCallType.intType, []).integer; + int getHttpRttMs() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_getHttpRttMs, jni.JniCallType.intType, []).integer; + } static final _id_getTransportRttMs = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getTransportRttMs', r'()I'); + .getMethodIDOf(_class.reference, r"getTransportRttMs", r"()I"); /// from: public int getTransportRttMs() - int getTransportRttMs() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_getTransportRttMs, jni.JniCallType.intType, []).integer; + int getTransportRttMs() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_getTransportRttMs, jni.JniCallType.intType, []).integer; + } static final _id_getDownstreamThroughputKbps = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getDownstreamThroughputKbps', r'()I'); + .getMethodIDOf(_class.reference, r"getDownstreamThroughputKbps", r"()I"); /// from: public int getDownstreamThroughputKbps() - int getDownstreamThroughputKbps() => jni.Jni.accessors.callMethodWithArgs( - reference, - _id_getDownstreamThroughputKbps, - jni.JniCallType.intType, []).integer; + int getDownstreamThroughputKbps() { + return jni.Jni.accessors.callMethodWithArgs(reference, + _id_getDownstreamThroughputKbps, jni.JniCallType.intType, []).integer; + } static final _id_startNetLogToDisk = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'startNetLogToDisk', r'(Ljava/lang/String;ZI)V'); + _class.reference, r"startNetLogToDisk", r"(Ljava/lang/String;ZI)V"); /// from: public void startNetLogToDisk(java.lang.String string, boolean z, int i) void startNetLogToDisk( jni.JString string, bool z, int i, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, - _id_startNetLogToDisk, - jni.JniCallType.voidType, - [string.reference, z ? 1 : 0, jni.JValueInt(i)]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, + _id_startNetLogToDisk, + jni.JniCallType.voidType, + [string.reference, z ? 1 : 0, jni.JValueInt(i)]).check(); + } static final _id_getEffectiveConnectionType = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getEffectiveConnectionType', r'()I'); + .getMethodIDOf(_class.reference, r"getEffectiveConnectionType", r"()I"); /// from: public int getEffectiveConnectionType() - int getEffectiveConnectionType() => jni.Jni.accessors.callMethodWithArgs( - reference, - _id_getEffectiveConnectionType, - jni.JniCallType.intType, []).integer; + int getEffectiveConnectionType() { + return jni.Jni.accessors.callMethodWithArgs(reference, + _id_getEffectiveConnectionType, jni.JniCallType.intType, []).integer; + } static final _id_configureNetworkQualityEstimatorForTesting = jni.Jni.accessors.getMethodIDOf(_class.reference, - r'configureNetworkQualityEstimatorForTesting', r'(ZZZ)V'); + r"configureNetworkQualityEstimatorForTesting", r"(ZZZ)V"); /// from: public void configureNetworkQualityEstimatorForTesting(boolean z, boolean z1, boolean z2) void configureNetworkQualityEstimatorForTesting( bool z, bool z1, bool z2, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, - _id_configureNetworkQualityEstimatorForTesting, - jni.JniCallType.voidType, - [z ? 1 : 0, z1 ? 1 : 0, z2 ? 1 : 0]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, + _id_configureNetworkQualityEstimatorForTesting, + jni.JniCallType.voidType, + [z ? 1 : 0, z1 ? 1 : 0, z2 ? 1 : 0]).check(); + } static final _id_addRttListener = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'addRttListener', - r'(Lorg/chromium/net/NetworkQualityRttListener;)V'); + r"addRttListener", + r"(Lorg/chromium/net/NetworkQualityRttListener;)V"); /// from: public void addRttListener(org.chromium.net.NetworkQualityRttListener networkQualityRttListener) void addRttListener( jni.JObject networkQualityRttListener, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, - _id_addRttListener, - jni.JniCallType.voidType, - [networkQualityRttListener.reference]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, + _id_addRttListener, + jni.JniCallType.voidType, + [networkQualityRttListener.reference]).check(); + } static final _id_removeRttListener = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'removeRttListener', - r'(Lorg/chromium/net/NetworkQualityRttListener;)V'); + r"removeRttListener", + r"(Lorg/chromium/net/NetworkQualityRttListener;)V"); /// from: public void removeRttListener(org.chromium.net.NetworkQualityRttListener networkQualityRttListener) void removeRttListener( jni.JObject networkQualityRttListener, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, - _id_removeRttListener, - jni.JniCallType.voidType, - [networkQualityRttListener.reference]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, + _id_removeRttListener, + jni.JniCallType.voidType, + [networkQualityRttListener.reference]).check(); + } static final _id_addThroughputListener = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'addThroughputListener', - r'(Lorg/chromium/net/NetworkQualityThroughputListener;)V'); + r"addThroughputListener", + r"(Lorg/chromium/net/NetworkQualityThroughputListener;)V"); /// from: public void addThroughputListener(org.chromium.net.NetworkQualityThroughputListener networkQualityThroughputListener) void addThroughputListener( jni.JObject networkQualityThroughputListener, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, - _id_addThroughputListener, - jni.JniCallType.voidType, - [networkQualityThroughputListener.reference]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, + _id_addThroughputListener, + jni.JniCallType.voidType, + [networkQualityThroughputListener.reference]).check(); + } static final _id_removeThroughputListener = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'removeThroughputListener', - r'(Lorg/chromium/net/NetworkQualityThroughputListener;)V'); + r"removeThroughputListener", + r"(Lorg/chromium/net/NetworkQualityThroughputListener;)V"); /// from: public void removeThroughputListener(org.chromium.net.NetworkQualityThroughputListener networkQualityThroughputListener) void removeThroughputListener( jni.JObject networkQualityThroughputListener, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, - _id_removeThroughputListener, - jni.JniCallType.voidType, - [networkQualityThroughputListener.reference]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, + _id_removeThroughputListener, + jni.JniCallType.voidType, + [networkQualityThroughputListener.reference]).check(); + } } -class $CronetEngineType extends jni.JObjType { +final class $CronetEngineType extends jni.JObjType { const $CronetEngineType(); @override - String get signature => r'Lorg/chromium/net/CronetEngine;'; + String get signature => r"Lorg/chromium/net/CronetEngine;"; @override CronetEngine fromRef(jni.JObjectPtr ref) => CronetEngine.fromRef(ref); @@ -2965,8 +3194,10 @@ class $CronetEngineType extends jni.JObjType { int get hashCode => ($CronetEngineType).hashCode; @override - bool operator ==(Object other) => - other.runtimeType == $CronetEngineType && other is $CronetEngineType; + bool operator ==(Object other) { + return other.runtimeType == ($CronetEngineType) && + other is $CronetEngineType; + } } /// from: org.chromium.net.CronetException @@ -2975,33 +3206,34 @@ class CronetException extends jni.JObject { late final jni.JObjType $type = type; CronetException.fromRef( - super.ref, - ) : super.fromRef(); + jni.JObjectPtr ref, + ) : super.fromRef(ref); - static final _class = jni.Jni.findJClass(r'org/chromium/net/CronetException'); + static final _class = jni.Jni.findJClass(r"org/chromium/net/CronetException"); /// The type which includes information such as the signature of this class. static const type = $CronetExceptionType(); static final _id_new0 = jni.Jni.accessors.getMethodIDOf(_class.reference, - r'', r'(Ljava/lang/String;Ljava/lang/Throwable;)V'); + r"", r"(Ljava/lang/String;Ljava/lang/Throwable;)V"); /// from: protected void (java.lang.String string, java.lang.Throwable throwable) /// The returned object must be released after use, by calling the [release] method. factory CronetException( jni.JString string, jni.JObject throwable, - ) => - CronetException.fromRef(jni.Jni.accessors.newObjectWithArgs( - _class.reference, - _id_new0, - [string.reference, throwable.reference]).object); + ) { + return CronetException.fromRef(jni.Jni.accessors.newObjectWithArgs( + _class.reference, + _id_new0, + [string.reference, throwable.reference]).object); + } } -class $CronetExceptionType extends jni.JObjType { +final class $CronetExceptionType extends jni.JObjType { const $CronetExceptionType(); @override - String get signature => r'Lorg/chromium/net/CronetException;'; + String get signature => r"Lorg/chromium/net/CronetException;"; @override CronetException fromRef(jni.JObjectPtr ref) => CronetException.fromRef(ref); @@ -3016,9 +3248,10 @@ class $CronetExceptionType extends jni.JObjType { int get hashCode => ($CronetExceptionType).hashCode; @override - bool operator ==(Object other) => - other.runtimeType == $CronetExceptionType && - other is $CronetExceptionType; + bool operator ==(Object other) { + return other.runtimeType == ($CronetExceptionType) && + other is $CronetExceptionType; + } } /// from: org.chromium.net.UploadDataProviders @@ -3027,63 +3260,66 @@ class UploadDataProviders extends jni.JObject { late final jni.JObjType $type = type; UploadDataProviders.fromRef( - super.ref, - ) : super.fromRef(); + jni.JObjectPtr ref, + ) : super.fromRef(ref); static final _class = - jni.Jni.findJClass(r'org/chromium/net/UploadDataProviders'); + jni.Jni.findJClass(r"org/chromium/net/UploadDataProviders"); /// The type which includes information such as the signature of this class. static const type = $UploadDataProvidersType(); static final _id_create = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r'create', - r'(Ljava/io/File;)Lorg/chromium/net/UploadDataProvider;'); + r"create", + r"(Ljava/io/File;)Lorg/chromium/net/UploadDataProvider;"); /// from: static public org.chromium.net.UploadDataProvider create(java.io.File file) /// The returned object must be released after use, by calling the [release] method. static jni.JObject create( jni.JObject file, - ) => - const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_create, - jni.JniCallType.objectType, [file.reference]).object); + ) { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_create, + jni.JniCallType.objectType, [file.reference]).object); + } static final _id_create1 = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r'create', - r'(Landroid/os/ParcelFileDescriptor;)Lorg/chromium/net/UploadDataProvider;'); + r"create", + r"(Landroid/os/ParcelFileDescriptor;)Lorg/chromium/net/UploadDataProvider;"); /// from: static public org.chromium.net.UploadDataProvider create(android.os.ParcelFileDescriptor parcelFileDescriptor) /// The returned object must be released after use, by calling the [release] method. static jni.JObject create1( jni.JObject parcelFileDescriptor, - ) => - const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_create1, - jni.JniCallType.objectType, - [parcelFileDescriptor.reference]).object); + ) { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs( + _class.reference, + _id_create1, + jni.JniCallType.objectType, + [parcelFileDescriptor.reference]).object); + } static final _id_create2 = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r'create', - r'(Ljava/nio/ByteBuffer;)Lorg/chromium/net/UploadDataProvider;'); + r"create", + r"(Ljava/nio/ByteBuffer;)Lorg/chromium/net/UploadDataProvider;"); /// from: static public org.chromium.net.UploadDataProvider create(java.nio.ByteBuffer byteBuffer) /// The returned object must be released after use, by calling the [release] method. static jni.JObject create2( ByteBuffer byteBuffer, - ) => - const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_create2, - jni.JniCallType.objectType, [byteBuffer.reference]).object); + ) { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_create2, + jni.JniCallType.objectType, [byteBuffer.reference]).object); + } static final _id_create3 = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r'create', - r'([BII)Lorg/chromium/net/UploadDataProvider;'); + r"create", + r"([BII)Lorg/chromium/net/UploadDataProvider;"); /// from: static public org.chromium.net.UploadDataProvider create(byte[] bs, int i, int i1) /// The returned object must be released after use, by calling the [release] method. @@ -3091,34 +3327,36 @@ class UploadDataProviders extends jni.JObject { jni.JArray bs, int i, int i1, - ) => - const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_create3, - jni.JniCallType.objectType, - [bs.reference, jni.JValueInt(i), jni.JValueInt(i1)]).object); + ) { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs( + _class.reference, + _id_create3, + jni.JniCallType.objectType, + [bs.reference, jni.JValueInt(i), jni.JValueInt(i1)]).object); + } static final _id_create4 = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r'create', - r'([B)Lorg/chromium/net/UploadDataProvider;'); + r"create", + r"([B)Lorg/chromium/net/UploadDataProvider;"); /// from: static public org.chromium.net.UploadDataProvider create(byte[] bs) /// The returned object must be released after use, by calling the [release] method. static jni.JObject create4( jni.JArray bs, - ) => - const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_create4, - jni.JniCallType.objectType, [bs.reference]).object); + ) { + return const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_create4, + jni.JniCallType.objectType, [bs.reference]).object); + } } -class $UploadDataProvidersType extends jni.JObjType { +final class $UploadDataProvidersType extends jni.JObjType { const $UploadDataProvidersType(); @override - String get signature => r'Lorg/chromium/net/UploadDataProviders;'; + String get signature => r"Lorg/chromium/net/UploadDataProviders;"; @override UploadDataProviders fromRef(jni.JObjectPtr ref) => @@ -3134,9 +3372,10 @@ class $UploadDataProvidersType extends jni.JObjType { int get hashCode => ($UploadDataProvidersType).hashCode; @override - bool operator ==(Object other) => - other.runtimeType == $UploadDataProvidersType && - other is $UploadDataProvidersType; + bool operator ==(Object other) { + return other.runtimeType == ($UploadDataProvidersType) && + other is $UploadDataProvidersType; + } } /// from: org.chromium.net.UrlRequest$Builder @@ -3145,11 +3384,11 @@ class UrlRequest_Builder extends jni.JObject { late final jni.JObjType $type = type; UrlRequest_Builder.fromRef( - super.ref, - ) : super.fromRef(); + jni.JObjectPtr ref, + ) : super.fromRef(ref); static final _class = - jni.Jni.findJClass(r'org/chromium/net/UrlRequest$Builder'); + jni.Jni.findJClass(r"org/chromium/net/UrlRequest$Builder"); /// The type which includes information such as the signature of this class. static const type = $UrlRequest_BuilderType(); @@ -3170,170 +3409,185 @@ class UrlRequest_Builder extends jni.JObject { static const REQUEST_PRIORITY_HIGHEST = 4; static final _id_new0 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'', r'()V'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"", r"()V"); /// from: public void () /// The returned object must be released after use, by calling the [release] method. - factory UrlRequest_Builder() => UrlRequest_Builder.fromRef(jni.Jni.accessors - .newObjectWithArgs(_class.reference, _id_new0, []).object); + factory UrlRequest_Builder() { + return UrlRequest_Builder.fromRef(jni.Jni.accessors + .newObjectWithArgs(_class.reference, _id_new0, []).object); + } static final _id_setHttpMethod = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'setHttpMethod', - r'(Ljava/lang/String;)Lorg/chromium/net/UrlRequest$Builder;'); + r"setHttpMethod", + r"(Ljava/lang/String;)Lorg/chromium/net/UrlRequest$Builder;"); /// from: public abstract org.chromium.net.UrlRequest$Builder setHttpMethod(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. UrlRequest_Builder setHttpMethod( jni.JString string, - ) => - const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setHttpMethod, - jni.JniCallType.objectType, [string.reference]).object); + ) { + return const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setHttpMethod, + jni.JniCallType.objectType, [string.reference]).object); + } static final _id_addHeader = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'addHeader', - r'(Ljava/lang/String;Ljava/lang/String;)Lorg/chromium/net/UrlRequest$Builder;'); + r"addHeader", + r"(Ljava/lang/String;Ljava/lang/String;)Lorg/chromium/net/UrlRequest$Builder;"); /// from: public abstract org.chromium.net.UrlRequest$Builder addHeader(java.lang.String string, java.lang.String string1) /// The returned object must be released after use, by calling the [release] method. UrlRequest_Builder addHeader( jni.JString string, jni.JString string1, - ) => - const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs( - reference, - _id_addHeader, - jni.JniCallType.objectType, - [string.reference, string1.reference]).object); + ) { + return const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs( + reference, + _id_addHeader, + jni.JniCallType.objectType, + [string.reference, string1.reference]).object); + } static final _id_disableCache = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'disableCache', - r'()Lorg/chromium/net/UrlRequest$Builder;'); + r"disableCache", + r"()Lorg/chromium/net/UrlRequest$Builder;"); /// from: public abstract org.chromium.net.UrlRequest$Builder disableCache() /// The returned object must be released after use, by calling the [release] method. - UrlRequest_Builder disableCache() => const $UrlRequest_BuilderType().fromRef( - jni.Jni.accessors.callMethodWithArgs( - reference, _id_disableCache, jni.JniCallType.objectType, []).object); + UrlRequest_Builder disableCache() { + return const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_disableCache, + jni.JniCallType.objectType, []).object); + } static final _id_setPriority = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'setPriority', - r'(I)Lorg/chromium/net/UrlRequest$Builder;'); + r"setPriority", + r"(I)Lorg/chromium/net/UrlRequest$Builder;"); /// from: public abstract org.chromium.net.UrlRequest$Builder setPriority(int i) /// The returned object must be released after use, by calling the [release] method. UrlRequest_Builder setPriority( int i, - ) => - const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setPriority, - jni.JniCallType.objectType, [jni.JValueInt(i)]).object); + ) { + return const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setPriority, + jni.JniCallType.objectType, [jni.JValueInt(i)]).object); + } static final _id_setUploadDataProvider = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'setUploadDataProvider', - r'(Lorg/chromium/net/UploadDataProvider;Ljava/util/concurrent/Executor;)Lorg/chromium/net/UrlRequest$Builder;'); + r"setUploadDataProvider", + r"(Lorg/chromium/net/UploadDataProvider;Ljava/util/concurrent/Executor;)Lorg/chromium/net/UrlRequest$Builder;"); /// from: public abstract org.chromium.net.UrlRequest$Builder setUploadDataProvider(org.chromium.net.UploadDataProvider uploadDataProvider, java.util.concurrent.Executor executor) /// The returned object must be released after use, by calling the [release] method. UrlRequest_Builder setUploadDataProvider( jni.JObject uploadDataProvider, jni.JObject executor, - ) => - const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs( - reference, - _id_setUploadDataProvider, - jni.JniCallType.objectType, - [uploadDataProvider.reference, executor.reference]).object); + ) { + return const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs( + reference, + _id_setUploadDataProvider, + jni.JniCallType.objectType, + [uploadDataProvider.reference, executor.reference]).object); + } static final _id_allowDirectExecutor = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'allowDirectExecutor', - r'()Lorg/chromium/net/UrlRequest$Builder;'); + r"allowDirectExecutor", + r"()Lorg/chromium/net/UrlRequest$Builder;"); /// from: public abstract org.chromium.net.UrlRequest$Builder allowDirectExecutor() /// The returned object must be released after use, by calling the [release] method. - UrlRequest_Builder allowDirectExecutor() => const $UrlRequest_BuilderType() - .fromRef(jni.Jni.accessors.callMethodWithArgs(reference, - _id_allowDirectExecutor, jni.JniCallType.objectType, []).object); + UrlRequest_Builder allowDirectExecutor() { + return const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_allowDirectExecutor, + jni.JniCallType.objectType, []).object); + } static final _id_addRequestAnnotation = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'addRequestAnnotation', - r'(Ljava/lang/Object;)Lorg/chromium/net/UrlRequest$Builder;'); + r"addRequestAnnotation", + r"(Ljava/lang/Object;)Lorg/chromium/net/UrlRequest$Builder;"); /// from: public org.chromium.net.UrlRequest$Builder addRequestAnnotation(java.lang.Object object) /// The returned object must be released after use, by calling the [release] method. UrlRequest_Builder addRequestAnnotation( jni.JObject object, - ) => - const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_addRequestAnnotation, - jni.JniCallType.objectType, [object.reference]).object); + ) { + return const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_addRequestAnnotation, + jni.JniCallType.objectType, [object.reference]).object); + } static final _id_setTrafficStatsTag = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'setTrafficStatsTag', - r'(I)Lorg/chromium/net/UrlRequest$Builder;'); + r"setTrafficStatsTag", + r"(I)Lorg/chromium/net/UrlRequest$Builder;"); /// from: public org.chromium.net.UrlRequest$Builder setTrafficStatsTag(int i) /// The returned object must be released after use, by calling the [release] method. UrlRequest_Builder setTrafficStatsTag( int i, - ) => - const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setTrafficStatsTag, - jni.JniCallType.objectType, [jni.JValueInt(i)]).object); + ) { + return const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setTrafficStatsTag, + jni.JniCallType.objectType, [jni.JValueInt(i)]).object); + } static final _id_setTrafficStatsUid = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'setTrafficStatsUid', - r'(I)Lorg/chromium/net/UrlRequest$Builder;'); + r"setTrafficStatsUid", + r"(I)Lorg/chromium/net/UrlRequest$Builder;"); /// from: public org.chromium.net.UrlRequest$Builder setTrafficStatsUid(int i) /// The returned object must be released after use, by calling the [release] method. UrlRequest_Builder setTrafficStatsUid( int i, - ) => - const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setTrafficStatsUid, - jni.JniCallType.objectType, [jni.JValueInt(i)]).object); + ) { + return const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setTrafficStatsUid, + jni.JniCallType.objectType, [jni.JValueInt(i)]).object); + } static final _id_setRequestFinishedListener = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'setRequestFinishedListener', - r'(Lorg/chromium/net/RequestFinishedInfo$Listener;)Lorg/chromium/net/UrlRequest$Builder;'); + r"setRequestFinishedListener", + r"(Lorg/chromium/net/RequestFinishedInfo$Listener;)Lorg/chromium/net/UrlRequest$Builder;"); /// from: public org.chromium.net.UrlRequest$Builder setRequestFinishedListener(org.chromium.net.RequestFinishedInfo$Listener listener) /// The returned object must be released after use, by calling the [release] method. UrlRequest_Builder setRequestFinishedListener( jni.JObject listener, - ) => - const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setRequestFinishedListener, - jni.JniCallType.objectType, [listener.reference]).object); + ) { + return const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setRequestFinishedListener, + jni.JniCallType.objectType, [listener.reference]).object); + } static final _id_build = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'build', r'()Lorg/chromium/net/UrlRequest;'); + _class.reference, r"build", r"()Lorg/chromium/net/UrlRequest;"); /// from: public abstract org.chromium.net.UrlRequest build() /// The returned object must be released after use, by calling the [release] method. - UrlRequest build() => - const $UrlRequestType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_build, jni.JniCallType.objectType, []).object); + UrlRequest build() { + return const $UrlRequestType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_build, jni.JniCallType.objectType, []).object); + } } -class $UrlRequest_BuilderType extends jni.JObjType { +final class $UrlRequest_BuilderType extends jni.JObjType { const $UrlRequest_BuilderType(); @override - String get signature => r'Lorg/chromium/net/UrlRequest$Builder;'; + String get signature => r"Lorg/chromium/net/UrlRequest$Builder;"; @override UrlRequest_Builder fromRef(jni.JObjectPtr ref) => @@ -3349,9 +3603,10 @@ class $UrlRequest_BuilderType extends jni.JObjType { int get hashCode => ($UrlRequest_BuilderType).hashCode; @override - bool operator ==(Object other) => - other.runtimeType == $UrlRequest_BuilderType && - other is $UrlRequest_BuilderType; + bool operator ==(Object other) { + return other.runtimeType == ($UrlRequest_BuilderType) && + other is $UrlRequest_BuilderType; + } } /// from: org.chromium.net.UrlRequest$Callback @@ -3360,130 +3615,138 @@ class UrlRequest_Callback extends jni.JObject { late final jni.JObjType $type = type; UrlRequest_Callback.fromRef( - super.ref, - ) : super.fromRef(); + jni.JObjectPtr ref, + ) : super.fromRef(ref); static final _class = - jni.Jni.findJClass(r'org/chromium/net/UrlRequest$Callback'); + jni.Jni.findJClass(r"org/chromium/net/UrlRequest$Callback"); /// The type which includes information such as the signature of this class. static const type = $UrlRequest_CallbackType(); static final _id_new0 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'', r'()V'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"", r"()V"); /// from: public void () /// The returned object must be released after use, by calling the [release] method. - factory UrlRequest_Callback() => UrlRequest_Callback.fromRef(jni.Jni.accessors - .newObjectWithArgs(_class.reference, _id_new0, []).object); + factory UrlRequest_Callback() { + return UrlRequest_Callback.fromRef(jni.Jni.accessors + .newObjectWithArgs(_class.reference, _id_new0, []).object); + } static final _id_onRedirectReceived = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'onRedirectReceived', - r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/lang/String;)V'); + r"onRedirectReceived", + r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/lang/String;)V"); /// from: public abstract void onRedirectReceived(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, java.lang.String string) void onRedirectReceived( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, jni.JString string, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, _id_onRedirectReceived, jni.JniCallType.voidType, [ - urlRequest.reference, - urlResponseInfo.reference, - string.reference - ]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_onRedirectReceived, jni.JniCallType.voidType, [ + urlRequest.reference, + urlResponseInfo.reference, + string.reference + ]).check(); + } static final _id_onResponseStarted = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'onResponseStarted', - r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V'); + r"onResponseStarted", + r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V"); /// from: public abstract void onResponseStarted(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo) void onResponseStarted( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, - _id_onResponseStarted, - jni.JniCallType.voidType, - [urlRequest.reference, urlResponseInfo.reference]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, + _id_onResponseStarted, + jni.JniCallType.voidType, + [urlRequest.reference, urlResponseInfo.reference]).check(); + } static final _id_onReadCompleted = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'onReadCompleted', - r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/nio/ByteBuffer;)V'); + r"onReadCompleted", + r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/nio/ByteBuffer;)V"); /// from: public abstract void onReadCompleted(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, java.nio.ByteBuffer byteBuffer) void onReadCompleted( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, ByteBuffer byteBuffer, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, _id_onReadCompleted, jni.JniCallType.voidType, [ - urlRequest.reference, - urlResponseInfo.reference, - byteBuffer.reference - ]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_onReadCompleted, jni.JniCallType.voidType, [ + urlRequest.reference, + urlResponseInfo.reference, + byteBuffer.reference + ]).check(); + } static final _id_onSucceeded = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'onSucceeded', - r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V'); + r"onSucceeded", + r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V"); /// from: public abstract void onSucceeded(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo) void onSucceeded( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, - _id_onSucceeded, - jni.JniCallType.voidType, - [urlRequest.reference, urlResponseInfo.reference]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, + _id_onSucceeded, + jni.JniCallType.voidType, + [urlRequest.reference, urlResponseInfo.reference]).check(); + } static final _id_onFailed = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'onFailed', - r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Lorg/chromium/net/CronetException;)V'); + r"onFailed", + r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Lorg/chromium/net/CronetException;)V"); /// from: public abstract void onFailed(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, org.chromium.net.CronetException cronetException) void onFailed( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, CronetException cronetException, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, _id_onFailed, jni.JniCallType.voidType, [ - urlRequest.reference, - urlResponseInfo.reference, - cronetException.reference - ]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_onFailed, jni.JniCallType.voidType, [ + urlRequest.reference, + urlResponseInfo.reference, + cronetException.reference + ]).check(); + } static final _id_onCanceled = jni.Jni.accessors.getMethodIDOf( _class.reference, - r'onCanceled', - r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V'); + r"onCanceled", + r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V"); /// from: public void onCanceled(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo) void onCanceled( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, - _id_onCanceled, - jni.JniCallType.voidType, - [urlRequest.reference, urlResponseInfo.reference]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs( + reference, + _id_onCanceled, + jni.JniCallType.voidType, + [urlRequest.reference, urlResponseInfo.reference]).check(); + } } -class $UrlRequest_CallbackType extends jni.JObjType { +final class $UrlRequest_CallbackType extends jni.JObjType { const $UrlRequest_CallbackType(); @override - String get signature => r'Lorg/chromium/net/UrlRequest$Callback;'; + String get signature => r"Lorg/chromium/net/UrlRequest$Callback;"; @override UrlRequest_Callback fromRef(jni.JObjectPtr ref) => @@ -3499,9 +3762,10 @@ class $UrlRequest_CallbackType extends jni.JObjType { int get hashCode => ($UrlRequest_CallbackType).hashCode; @override - bool operator ==(Object other) => - other.runtimeType == $UrlRequest_CallbackType && - other is $UrlRequest_CallbackType; + bool operator ==(Object other) { + return other.runtimeType == ($UrlRequest_CallbackType) && + other is $UrlRequest_CallbackType; + } } /// from: org.chromium.net.UrlRequest$Status @@ -3510,11 +3774,11 @@ class UrlRequest_Status extends jni.JObject { late final jni.JObjType $type = type; UrlRequest_Status.fromRef( - super.ref, - ) : super.fromRef(); + jni.JObjectPtr ref, + ) : super.fromRef(ref); static final _class = - jni.Jni.findJClass(r'org/chromium/net/UrlRequest$Status'); + jni.Jni.findJClass(r"org/chromium/net/UrlRequest$Status"); /// The type which includes information such as the signature of this class. static const type = $UrlRequest_StatusType(); @@ -3568,11 +3832,11 @@ class UrlRequest_Status extends jni.JObject { static const READING_RESPONSE = 14; } -class $UrlRequest_StatusType extends jni.JObjType { +final class $UrlRequest_StatusType extends jni.JObjType { const $UrlRequest_StatusType(); @override - String get signature => r'Lorg/chromium/net/UrlRequest$Status;'; + String get signature => r"Lorg/chromium/net/UrlRequest$Status;"; @override UrlRequest_Status fromRef(jni.JObjectPtr ref) => @@ -3588,9 +3852,10 @@ class $UrlRequest_StatusType extends jni.JObjType { int get hashCode => ($UrlRequest_StatusType).hashCode; @override - bool operator ==(Object other) => - other.runtimeType == $UrlRequest_StatusType && - other is $UrlRequest_StatusType; + bool operator ==(Object other) { + return other.runtimeType == ($UrlRequest_StatusType) && + other is $UrlRequest_StatusType; + } } /// from: org.chromium.net.UrlRequest$StatusListener @@ -3599,40 +3864,42 @@ class UrlRequest_StatusListener extends jni.JObject { late final jni.JObjType $type = type; UrlRequest_StatusListener.fromRef( - super.ref, - ) : super.fromRef(); + jni.JObjectPtr ref, + ) : super.fromRef(ref); static final _class = - jni.Jni.findJClass(r'org/chromium/net/UrlRequest$StatusListener'); + jni.Jni.findJClass(r"org/chromium/net/UrlRequest$StatusListener"); /// The type which includes information such as the signature of this class. static const type = $UrlRequest_StatusListenerType(); static final _id_new0 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'', r'()V'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"", r"()V"); /// from: public void () /// The returned object must be released after use, by calling the [release] method. - factory UrlRequest_StatusListener() => - UrlRequest_StatusListener.fromRef(jni.Jni.accessors - .newObjectWithArgs(_class.reference, _id_new0, []).object); + factory UrlRequest_StatusListener() { + return UrlRequest_StatusListener.fromRef(jni.Jni.accessors + .newObjectWithArgs(_class.reference, _id_new0, []).object); + } static final _id_onStatus = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'onStatus', r'(I)V'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"onStatus", r"(I)V"); /// from: public abstract void onStatus(int i) void onStatus( int i, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_onStatus, - jni.JniCallType.voidType, [jni.JValueInt(i)]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs(reference, _id_onStatus, + jni.JniCallType.voidType, [jni.JValueInt(i)]).check(); + } } -class $UrlRequest_StatusListenerType +final class $UrlRequest_StatusListenerType extends jni.JObjType { const $UrlRequest_StatusListenerType(); @override - String get signature => r'Lorg/chromium/net/UrlRequest$StatusListener;'; + String get signature => r"Lorg/chromium/net/UrlRequest$StatusListener;"; @override UrlRequest_StatusListener fromRef(jni.JObjectPtr ref) => @@ -3648,9 +3915,10 @@ class $UrlRequest_StatusListenerType int get hashCode => ($UrlRequest_StatusListenerType).hashCode; @override - bool operator ==(Object other) => - other.runtimeType == $UrlRequest_StatusListenerType && - other is $UrlRequest_StatusListenerType; + bool operator ==(Object other) { + return other.runtimeType == ($UrlRequest_StatusListenerType) && + other is $UrlRequest_StatusListenerType; + } } /// from: org.chromium.net.UrlRequest @@ -3659,75 +3927,87 @@ class UrlRequest extends jni.JObject { late final jni.JObjType $type = type; UrlRequest.fromRef( - super.ref, - ) : super.fromRef(); + jni.JObjectPtr ref, + ) : super.fromRef(ref); - static final _class = jni.Jni.findJClass(r'org/chromium/net/UrlRequest'); + static final _class = jni.Jni.findJClass(r"org/chromium/net/UrlRequest"); /// The type which includes information such as the signature of this class. static const type = $UrlRequestType(); static final _id_new0 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'', r'()V'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"", r"()V"); /// from: public void () /// The returned object must be released after use, by calling the [release] method. - factory UrlRequest() => UrlRequest.fromRef(jni.Jni.accessors - .newObjectWithArgs(_class.reference, _id_new0, []).object); + factory UrlRequest() { + return UrlRequest.fromRef(jni.Jni.accessors + .newObjectWithArgs(_class.reference, _id_new0, []).object); + } static final _id_start = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'start', r'()V'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"start", r"()V"); /// from: public abstract void start() - void start() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_start, jni.JniCallType.voidType, []).check(); + void start() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_start, jni.JniCallType.voidType, []).check(); + } static final _id_followRedirect = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'followRedirect', r'()V'); + .getMethodIDOf(_class.reference, r"followRedirect", r"()V"); /// from: public abstract void followRedirect() - void followRedirect() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_followRedirect, jni.JniCallType.voidType, []).check(); + void followRedirect() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_followRedirect, jni.JniCallType.voidType, []).check(); + } static final _id_read = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'read', r'(Ljava/nio/ByteBuffer;)V'); + .getMethodIDOf(_class.reference, r"read", r"(Ljava/nio/ByteBuffer;)V"); /// from: public abstract void read(java.nio.ByteBuffer byteBuffer) void read( ByteBuffer byteBuffer, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_read, - jni.JniCallType.voidType, [byteBuffer.reference]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs(reference, _id_read, + jni.JniCallType.voidType, [byteBuffer.reference]).check(); + } static final _id_cancel = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'cancel', r'()V'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"cancel", r"()V"); /// from: public abstract void cancel() - void cancel() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_cancel, jni.JniCallType.voidType, []).check(); + void cancel() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_cancel, jni.JniCallType.voidType, []).check(); + } static final _id_isDone = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'isDone', r'()Z'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"isDone", r"()Z"); /// from: public abstract boolean isDone() - bool isDone() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_isDone, jni.JniCallType.booleanType, []).boolean; + bool isDone() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_isDone, jni.JniCallType.booleanType, []).boolean; + } static final _id_getStatus = jni.Jni.accessors.getMethodIDOf(_class.reference, - r'getStatus', r'(Lorg/chromium/net/UrlRequest$StatusListener;)V'); + r"getStatus", r"(Lorg/chromium/net/UrlRequest$StatusListener;)V"); /// from: public abstract void getStatus(org.chromium.net.UrlRequest$StatusListener statusListener) void getStatus( UrlRequest_StatusListener statusListener, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_getStatus, - jni.JniCallType.voidType, [statusListener.reference]).check(); + ) { + return jni.Jni.accessors.callMethodWithArgs(reference, _id_getStatus, + jni.JniCallType.voidType, [statusListener.reference]).check(); + } } -class $UrlRequestType extends jni.JObjType { +final class $UrlRequestType extends jni.JObjType { const $UrlRequestType(); @override - String get signature => r'Lorg/chromium/net/UrlRequest;'; + String get signature => r"Lorg/chromium/net/UrlRequest;"; @override UrlRequest fromRef(jni.JObjectPtr ref) => UrlRequest.fromRef(ref); @@ -3742,8 +4022,9 @@ class $UrlRequestType extends jni.JObjType { int get hashCode => ($UrlRequestType).hashCode; @override - bool operator ==(Object other) => - other.runtimeType == $UrlRequestType && other is $UrlRequestType; + bool operator ==(Object other) { + return other.runtimeType == ($UrlRequestType) && other is $UrlRequestType; + } } /// from: org.chromium.net.UrlResponseInfo$HeaderBlock @@ -3752,49 +4033,54 @@ class UrlResponseInfo_HeaderBlock extends jni.JObject { late final jni.JObjType $type = type; UrlResponseInfo_HeaderBlock.fromRef( - super.ref, - ) : super.fromRef(); + jni.JObjectPtr ref, + ) : super.fromRef(ref); static final _class = - jni.Jni.findJClass(r'org/chromium/net/UrlResponseInfo$HeaderBlock'); + jni.Jni.findJClass(r"org/chromium/net/UrlResponseInfo$HeaderBlock"); /// The type which includes information such as the signature of this class. static const type = $UrlResponseInfo_HeaderBlockType(); static final _id_new0 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'', r'()V'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"", r"()V"); /// from: public void () /// The returned object must be released after use, by calling the [release] method. - factory UrlResponseInfo_HeaderBlock() => - UrlResponseInfo_HeaderBlock.fromRef(jni.Jni.accessors - .newObjectWithArgs(_class.reference, _id_new0, []).object); + factory UrlResponseInfo_HeaderBlock() { + return UrlResponseInfo_HeaderBlock.fromRef(jni.Jni.accessors + .newObjectWithArgs(_class.reference, _id_new0, []).object); + } static final _id_getAsList = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getAsList', r'()Ljava/util/List;'); + .getMethodIDOf(_class.reference, r"getAsList", r"()Ljava/util/List;"); /// from: public abstract java.util.List getAsList() /// The returned object must be released after use, by calling the [release] method. - jni.JList getAsList() => const jni.JListType(jni.JObjectType()) - .fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getAsList, jni.JniCallType.objectType, []).object); + jni.JList getAsList() { + return const jni.JListType(jni.JObjectType()).fromRef(jni.Jni.accessors + .callMethodWithArgs( + reference, _id_getAsList, jni.JniCallType.objectType, []).object); + } static final _id_getAsMap = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getAsMap', r'()Ljava/util/Map;'); + .getMethodIDOf(_class.reference, r"getAsMap", r"()Ljava/util/Map;"); /// from: public abstract java.util.Map getAsMap() /// The returned object must be released after use, by calling the [release] method. - jni.JMap> getAsMap() => - const jni.JMapType(jni.JStringType(), jni.JListType(jni.JStringType())) - .fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getAsMap, jni.JniCallType.objectType, []).object); + jni.JMap> getAsMap() { + return const jni.JMapType( + jni.JStringType(), jni.JListType(jni.JStringType())) + .fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getAsMap, jni.JniCallType.objectType, []).object); + } } -class $UrlResponseInfo_HeaderBlockType +final class $UrlResponseInfo_HeaderBlockType extends jni.JObjType { const $UrlResponseInfo_HeaderBlockType(); @override - String get signature => r'Lorg/chromium/net/UrlResponseInfo$HeaderBlock;'; + String get signature => r"Lorg/chromium/net/UrlResponseInfo$HeaderBlock;"; @override UrlResponseInfo_HeaderBlock fromRef(jni.JObjectPtr ref) => @@ -3810,9 +4096,10 @@ class $UrlResponseInfo_HeaderBlockType int get hashCode => ($UrlResponseInfo_HeaderBlockType).hashCode; @override - bool operator ==(Object other) => - other.runtimeType == $UrlResponseInfo_HeaderBlockType && - other is $UrlResponseInfo_HeaderBlockType; + bool operator ==(Object other) { + return other.runtimeType == ($UrlResponseInfo_HeaderBlockType) && + other is $UrlResponseInfo_HeaderBlockType; + } } /// from: org.chromium.net.UrlResponseInfo @@ -3821,119 +4108,134 @@ class UrlResponseInfo extends jni.JObject { late final jni.JObjType $type = type; UrlResponseInfo.fromRef( - super.ref, - ) : super.fromRef(); + jni.JObjectPtr ref, + ) : super.fromRef(ref); - static final _class = jni.Jni.findJClass(r'org/chromium/net/UrlResponseInfo'); + static final _class = jni.Jni.findJClass(r"org/chromium/net/UrlResponseInfo"); /// The type which includes information such as the signature of this class. static const type = $UrlResponseInfoType(); static final _id_new0 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'', r'()V'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"", r"()V"); /// from: public void () /// The returned object must be released after use, by calling the [release] method. - factory UrlResponseInfo() => UrlResponseInfo.fromRef(jni.Jni.accessors - .newObjectWithArgs(_class.reference, _id_new0, []).object); + factory UrlResponseInfo() { + return UrlResponseInfo.fromRef(jni.Jni.accessors + .newObjectWithArgs(_class.reference, _id_new0, []).object); + } static final _id_getUrl = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getUrl', r'()Ljava/lang/String;'); + .getMethodIDOf(_class.reference, r"getUrl", r"()Ljava/lang/String;"); /// from: public abstract java.lang.String getUrl() /// The returned object must be released after use, by calling the [release] method. - jni.JString getUrl() => - const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getUrl, jni.JniCallType.objectType, []).object); + jni.JString getUrl() { + return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getUrl, jni.JniCallType.objectType, []).object); + } static final _id_getUrlChain = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getUrlChain', r'()Ljava/util/List;'); + .getMethodIDOf(_class.reference, r"getUrlChain", r"()Ljava/util/List;"); /// from: public abstract java.util.List getUrlChain() /// The returned object must be released after use, by calling the [release] method. - jni.JList getUrlChain() => const jni.JListType(jni.JStringType()) - .fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getUrlChain, jni.JniCallType.objectType, []).object); + jni.JList getUrlChain() { + return const jni.JListType(jni.JStringType()).fromRef(jni.Jni.accessors + .callMethodWithArgs( + reference, _id_getUrlChain, jni.JniCallType.objectType, []).object); + } static final _id_getHttpStatusCode = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getHttpStatusCode', r'()I'); + .getMethodIDOf(_class.reference, r"getHttpStatusCode", r"()I"); /// from: public abstract int getHttpStatusCode() - int getHttpStatusCode() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_getHttpStatusCode, jni.JniCallType.intType, []).integer; + int getHttpStatusCode() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_getHttpStatusCode, jni.JniCallType.intType, []).integer; + } static final _id_getHttpStatusText = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'getHttpStatusText', r'()Ljava/lang/String;'); + _class.reference, r"getHttpStatusText", r"()Ljava/lang/String;"); /// from: public abstract java.lang.String getHttpStatusText() /// The returned object must be released after use, by calling the [release] method. - jni.JString getHttpStatusText() => - const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_getHttpStatusText, - jni.JniCallType.objectType, []).object); + jni.JString getHttpStatusText() { + return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_getHttpStatusText, + jni.JniCallType.objectType, []).object); + } static final _id_getAllHeadersAsList = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'getAllHeadersAsList', r'()Ljava/util/List;'); + _class.reference, r"getAllHeadersAsList", r"()Ljava/util/List;"); /// from: public abstract java.util.List getAllHeadersAsList() /// The returned object must be released after use, by calling the [release] method. - jni.JList getAllHeadersAsList() => - const jni.JListType(jni.JObjectType()).fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_getAllHeadersAsList, - jni.JniCallType.objectType, []).object); + jni.JList getAllHeadersAsList() { + return const jni.JListType(jni.JObjectType()).fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_getAllHeadersAsList, + jni.JniCallType.objectType, []).object); + } static final _id_getAllHeaders = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getAllHeaders', r'()Ljava/util/Map;'); + .getMethodIDOf(_class.reference, r"getAllHeaders", r"()Ljava/util/Map;"); /// from: public abstract java.util.Map getAllHeaders() /// The returned object must be released after use, by calling the [release] method. - jni.JMap> getAllHeaders() => - const jni.JMapType(jni.JStringType(), jni.JListType(jni.JStringType())) - .fromRef(jni.Jni.accessors.callMethodWithArgs(reference, - _id_getAllHeaders, jni.JniCallType.objectType, []).object); + jni.JMap> getAllHeaders() { + return const jni.JMapType( + jni.JStringType(), jni.JListType(jni.JStringType())) + .fromRef(jni.Jni.accessors.callMethodWithArgs(reference, + _id_getAllHeaders, jni.JniCallType.objectType, []).object); + } static final _id_wasCached = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'wasCached', r'()Z'); + jni.Jni.accessors.getMethodIDOf(_class.reference, r"wasCached", r"()Z"); /// from: public abstract boolean wasCached() - bool wasCached() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_wasCached, jni.JniCallType.booleanType, []).boolean; + bool wasCached() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_wasCached, jni.JniCallType.booleanType, []).boolean; + } static final _id_getNegotiatedProtocol = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'getNegotiatedProtocol', r'()Ljava/lang/String;'); + _class.reference, r"getNegotiatedProtocol", r"()Ljava/lang/String;"); /// from: public abstract java.lang.String getNegotiatedProtocol() /// The returned object must be released after use, by calling the [release] method. - jni.JString getNegotiatedProtocol() => - const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_getNegotiatedProtocol, - jni.JniCallType.objectType, []).object); + jni.JString getNegotiatedProtocol() { + return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_getNegotiatedProtocol, + jni.JniCallType.objectType, []).object); + } static final _id_getProxyServer = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'getProxyServer', r'()Ljava/lang/String;'); + _class.reference, r"getProxyServer", r"()Ljava/lang/String;"); /// from: public abstract java.lang.String getProxyServer() /// The returned object must be released after use, by calling the [release] method. - jni.JString getProxyServer() => - const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_getProxyServer, - jni.JniCallType.objectType, []).object); + jni.JString getProxyServer() { + return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getProxyServer, jni.JniCallType.objectType, []).object); + } static final _id_getReceivedByteCount = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getReceivedByteCount', r'()J'); + .getMethodIDOf(_class.reference, r"getReceivedByteCount", r"()J"); /// from: public abstract long getReceivedByteCount() - int getReceivedByteCount() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_getReceivedByteCount, jni.JniCallType.longType, []).long; + int getReceivedByteCount() { + return jni.Jni.accessors.callMethodWithArgs( + reference, _id_getReceivedByteCount, jni.JniCallType.longType, []).long; + } } -class $UrlResponseInfoType extends jni.JObjType { +final class $UrlResponseInfoType extends jni.JObjType { const $UrlResponseInfoType(); @override - String get signature => r'Lorg/chromium/net/UrlResponseInfo;'; + String get signature => r"Lorg/chromium/net/UrlResponseInfo;"; @override UrlResponseInfo fromRef(jni.JObjectPtr ref) => UrlResponseInfo.fromRef(ref); @@ -3948,7 +4250,8 @@ class $UrlResponseInfoType extends jni.JObjType { int get hashCode => ($UrlResponseInfoType).hashCode; @override - bool operator ==(Object other) => - other.runtimeType == $UrlResponseInfoType && - other is $UrlResponseInfoType; + bool operator ==(Object other) { + return other.runtimeType == ($UrlResponseInfoType) && + other is $UrlResponseInfoType; + } } diff --git a/pkgs/cronet_http/pubspec.yaml b/pkgs/cronet_http/pubspec.yaml index 129547c1aa..80d13015d6 100644 --- a/pkgs/cronet_http/pubspec.yaml +++ b/pkgs/cronet_http/pubspec.yaml @@ -1,7 +1,7 @@ name: cronet_http description: > An Android Flutter plugin that provides access to the Cronet HTTP client. -version: 0.3.0-jni +version: 0.4.0-jni repository: https://github.com/dart-lang/http/tree/master/pkgs/cronet_http environment: @@ -12,11 +12,11 @@ dependencies: flutter: sdk: flutter http: '>=0.13.4 <2.0.0' - jni: ^0.6.1 + jni: ^0.7.0 dev_dependencies: dart_flutter_team_lints: ^1.0.0 - jnigen: ^0.6.0 + jnigen: ^0.7.0 xml: ^6.1.0 yaml_edit: ^2.0.3 From edb9a979ac6ec66b7af774d6838d91d481e44c7c Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Wed, 13 Sep 2023 13:54:30 -0700 Subject: [PATCH 2/4] Read buffer size. --- pkgs/cronet_http/lib/src/cronet_client.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/cronet_http/lib/src/cronet_client.dart b/pkgs/cronet_http/lib/src/cronet_client.dart index fec7d6a661..905cc80eea 100644 --- a/pkgs/cronet_http/lib/src/cronet_client.dart +++ b/pkgs/cronet_http/lib/src/cronet_client.dart @@ -22,7 +22,7 @@ import 'package:jni/jni.dart'; import 'jni/jni_bindings.dart' as jb; final _digitRegex = RegExp(r'^\d+$'); -const _bufferSize = 10 * 1024; // The size of the Cronet read buffer; +const _bufferSize = 10 * 1024; // The size of the Cronet read buffer. /// The type of caching to use when making HTTP requests. enum CacheMode { From 07f22cdb6f5d97fd35cb123a20561eec2fb3644f Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Wed, 13 Sep 2023 15:35:32 -0700 Subject: [PATCH 3/4] format --- pkgs/cronet_http/lib/src/cronet_client.dart | 1 - .../cronet_http/lib/src/jni/jni_bindings.dart | 3289 ++++++++--------- 2 files changed, 1493 insertions(+), 1797 deletions(-) diff --git a/pkgs/cronet_http/lib/src/cronet_client.dart b/pkgs/cronet_http/lib/src/cronet_client.dart index 905cc80eea..f12ecef6ca 100644 --- a/pkgs/cronet_http/lib/src/cronet_client.dart +++ b/pkgs/cronet_http/lib/src/cronet_client.dart @@ -14,7 +14,6 @@ library; import 'dart:async'; -import 'dart:typed_data'; import 'package:http/http.dart'; import 'package:jni/jni.dart'; diff --git a/pkgs/cronet_http/lib/src/jni/jni_bindings.dart b/pkgs/cronet_http/lib/src/jni/jni_bindings.dart index b5baa93f19..3c36a448c8 100644 --- a/pkgs/cronet_http/lib/src/jni/jni_bindings.dart +++ b/pkgs/cronet_http/lib/src/jni/jni_bindings.dart @@ -16,10 +16,10 @@ // ignore_for_file: unused_local_variable // ignore_for_file: unused_shown_name -import "dart:isolate" show ReceivePort; -import "dart:ffi" as ffi; -import "package:jni/internal_helpers_for_jnigen.dart"; -import "package:jni/jni.dart" as jni; +import 'dart:ffi' as ffi; +import 'dart:isolate' show ReceivePort; +import 'package:jni/internal_helpers_for_jnigen.dart'; +import 'package:jni/jni.dart' as jni; /// from: io.flutter.plugins.cronet_http.UrlRequestCallbackProxy$UrlRequestCallbackInterface class UrlRequestCallbackProxy_UrlRequestCallbackInterface extends jni.JObject { @@ -28,105 +28,100 @@ class UrlRequestCallbackProxy_UrlRequestCallbackInterface extends jni.JObject { $type = type; UrlRequestCallbackProxy_UrlRequestCallbackInterface.fromRef( - jni.JObjectPtr ref, - ) : super.fromRef(ref); + super.ref, + ) : super.fromRef(); static final _class = jni.Jni.findJClass( - r"io/flutter/plugins/cronet_http/UrlRequestCallbackProxy$UrlRequestCallbackInterface"); + r'io/flutter/plugins/cronet_http/UrlRequestCallbackProxy$UrlRequestCallbackInterface'); /// The type which includes information such as the signature of this class. static const type = $UrlRequestCallbackProxy_UrlRequestCallbackInterfaceType(); static final _id_onRedirectReceived = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"onRedirectReceived", - r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/lang/String;)V"); + r'onRedirectReceived', + r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/lang/String;)V'); /// from: public abstract void onRedirectReceived(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, java.lang.String string) void onRedirectReceived( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, jni.JString string, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_onRedirectReceived, jni.JniCallType.voidType, [ - urlRequest.reference, - urlResponseInfo.reference, - string.reference - ]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs( + reference, _id_onRedirectReceived, jni.JniCallType.voidType, [ + urlRequest.reference, + urlResponseInfo.reference, + string.reference + ]).check(); static final _id_onResponseStarted = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"onResponseStarted", - r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V"); + r'onResponseStarted', + r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V'); /// from: public abstract void onResponseStarted(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo) void onResponseStarted( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, - _id_onResponseStarted, - jni.JniCallType.voidType, - [urlRequest.reference, urlResponseInfo.reference]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs( + reference, + _id_onResponseStarted, + jni.JniCallType.voidType, + [urlRequest.reference, urlResponseInfo.reference]).check(); static final _id_onReadCompleted = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"onReadCompleted", - r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/nio/ByteBuffer;)V"); + r'onReadCompleted', + r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/nio/ByteBuffer;)V'); /// from: public abstract void onReadCompleted(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, java.nio.ByteBuffer byteBuffer) void onReadCompleted( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, ByteBuffer byteBuffer, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_onReadCompleted, jni.JniCallType.voidType, [ - urlRequest.reference, - urlResponseInfo.reference, - byteBuffer.reference - ]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs( + reference, _id_onReadCompleted, jni.JniCallType.voidType, [ + urlRequest.reference, + urlResponseInfo.reference, + byteBuffer.reference + ]).check(); static final _id_onSucceeded = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"onSucceeded", - r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V"); + r'onSucceeded', + r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V'); /// from: public abstract void onSucceeded(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo) void onSucceeded( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, - _id_onSucceeded, - jni.JniCallType.voidType, - [urlRequest.reference, urlResponseInfo.reference]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs( + reference, + _id_onSucceeded, + jni.JniCallType.voidType, + [urlRequest.reference, urlResponseInfo.reference]).check(); static final _id_onFailed = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"onFailed", - r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Lorg/chromium/net/CronetException;)V"); + r'onFailed', + r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Lorg/chromium/net/CronetException;)V'); /// from: public abstract void onFailed(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, org.chromium.net.CronetException cronetException) void onFailed( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, CronetException cronetException, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_onFailed, jni.JniCallType.voidType, [ - urlRequest.reference, - urlResponseInfo.reference, - cronetException.reference - ]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs( + reference, _id_onFailed, jni.JniCallType.voidType, [ + urlRequest.reference, + urlResponseInfo.reference, + cronetException.reference + ]).check(); /// Maps a specific port to the implemented interface. static final Map + _$invokeMethod( + port, + $MethodInvocation.fromAddresses( + 0, + descriptor.address, + args.address, + ), + ); static final ffi.Pointer< ffi.NativeFunction< @@ -162,7 +156,7 @@ class UrlRequestCallbackProxy_UrlRequestCallbackInterface extends jni.JObject { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; if ($d == - r"onRedirectReceived(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/lang/String;)V") { + r'onRedirectReceived(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/lang/String;)V') { _$impls[$p]!.onRedirectReceived( $a[0].castTo(const $UrlRequestType(), releaseOriginal: true), $a[1].castTo(const $UrlResponseInfoType(), releaseOriginal: true), @@ -171,7 +165,7 @@ class UrlRequestCallbackProxy_UrlRequestCallbackInterface extends jni.JObject { return jni.nullptr; } if ($d == - r"onResponseStarted(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V") { + r'onResponseStarted(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V') { _$impls[$p]!.onResponseStarted( $a[0].castTo(const $UrlRequestType(), releaseOriginal: true), $a[1].castTo(const $UrlResponseInfoType(), releaseOriginal: true), @@ -179,7 +173,7 @@ class UrlRequestCallbackProxy_UrlRequestCallbackInterface extends jni.JObject { return jni.nullptr; } if ($d == - r"onReadCompleted(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/nio/ByteBuffer;)V") { + r'onReadCompleted(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/nio/ByteBuffer;)V') { _$impls[$p]!.onReadCompleted( $a[0].castTo(const $UrlRequestType(), releaseOriginal: true), $a[1].castTo(const $UrlResponseInfoType(), releaseOriginal: true), @@ -188,7 +182,7 @@ class UrlRequestCallbackProxy_UrlRequestCallbackInterface extends jni.JObject { return jni.nullptr; } if ($d == - r"onSucceeded(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V") { + r'onSucceeded(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V') { _$impls[$p]!.onSucceeded( $a[0].castTo(const $UrlRequestType(), releaseOriginal: true), $a[1].castTo(const $UrlResponseInfoType(), releaseOriginal: true), @@ -196,7 +190,7 @@ class UrlRequestCallbackProxy_UrlRequestCallbackInterface extends jni.JObject { return jni.nullptr; } if ($d == - r"onFailed(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Lorg/chromium/net/CronetException;)V") { + r'onFailed(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Lorg/chromium/net/CronetException;)V') { _$impls[$p]!.onFailed( $a[0].castTo(const $UrlRequestType(), releaseOriginal: true), $a[1].castTo(const $UrlResponseInfoType(), releaseOriginal: true), @@ -216,7 +210,7 @@ class UrlRequestCallbackProxy_UrlRequestCallbackInterface extends jni.JObject { final $p = ReceivePort(); final $x = UrlRequestCallbackProxy_UrlRequestCallbackInterface.fromRef( ProtectedJniExtensions.newPortProxy( - r"io.flutter.plugins.cronet_http.UrlRequestCallbackProxy$UrlRequestCallbackInterface", + r'io.flutter.plugins.cronet_http.UrlRequestCallbackProxy$UrlRequestCallbackInterface', $p, _$invokePointer, ), @@ -303,28 +297,23 @@ class _$UrlRequestCallbackProxy_UrlRequestCallbackInterfaceImpl CronetException cronetException) _onFailed; void onRedirectReceived(UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, jni.JString string) { - return _onRedirectReceived(urlRequest, urlResponseInfo, string); - } + UrlResponseInfo urlResponseInfo, jni.JString string) => + _onRedirectReceived(urlRequest, urlResponseInfo, string); void onResponseStarted( - UrlRequest urlRequest, UrlResponseInfo urlResponseInfo) { - return _onResponseStarted(urlRequest, urlResponseInfo); - } + UrlRequest urlRequest, UrlResponseInfo urlResponseInfo) => + _onResponseStarted(urlRequest, urlResponseInfo); void onReadCompleted(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - ByteBuffer byteBuffer) { - return _onReadCompleted(urlRequest, urlResponseInfo, byteBuffer); - } + ByteBuffer byteBuffer) => + _onReadCompleted(urlRequest, urlResponseInfo, byteBuffer); - void onSucceeded(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo) { - return _onSucceeded(urlRequest, urlResponseInfo); - } + void onSucceeded(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo) => + _onSucceeded(urlRequest, urlResponseInfo); void onFailed(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - CronetException cronetException) { - return _onFailed(urlRequest, urlResponseInfo, cronetException); - } + CronetException cronetException) => + _onFailed(urlRequest, urlResponseInfo, cronetException); } final class $UrlRequestCallbackProxy_UrlRequestCallbackInterfaceType @@ -333,7 +322,7 @@ final class $UrlRequestCallbackProxy_UrlRequestCallbackInterfaceType @override String get signature => - r"Lio/flutter/plugins/cronet_http/UrlRequestCallbackProxy$UrlRequestCallbackInterface;"; + r'Lio/flutter/plugins/cronet_http/UrlRequestCallbackProxy$UrlRequestCallbackInterface;'; @override UrlRequestCallbackProxy_UrlRequestCallbackInterface fromRef( @@ -351,11 +340,10 @@ final class $UrlRequestCallbackProxy_UrlRequestCallbackInterfaceType ($UrlRequestCallbackProxy_UrlRequestCallbackInterfaceType).hashCode; @override - bool operator ==(Object other) { - return other.runtimeType == - ($UrlRequestCallbackProxy_UrlRequestCallbackInterfaceType) && - other is $UrlRequestCallbackProxy_UrlRequestCallbackInterfaceType; - } + bool operator ==(Object other) => + other.runtimeType == + $UrlRequestCallbackProxy_UrlRequestCallbackInterfaceType && + other is $UrlRequestCallbackProxy_UrlRequestCallbackInterfaceType; } /// from: io.flutter.plugins.cronet_http.UrlRequestCallbackProxy @@ -364,134 +352,127 @@ class UrlRequestCallbackProxy extends UrlRequest_Callback { late final jni.JObjType $type = type; UrlRequestCallbackProxy.fromRef( - jni.JObjectPtr ref, - ) : super.fromRef(ref); + super.ref, + ) : super.fromRef(); static final _class = jni.Jni.findJClass( - r"io/flutter/plugins/cronet_http/UrlRequestCallbackProxy"); + r'io/flutter/plugins/cronet_http/UrlRequestCallbackProxy'); /// The type which includes information such as the signature of this class. static const type = $UrlRequestCallbackProxyType(); static final _id_new1 = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"", - r"(Lio/flutter/plugins/cronet_http/UrlRequestCallbackProxy$UrlRequestCallbackInterface;)V"); + r'', + r'(Lio/flutter/plugins/cronet_http/UrlRequestCallbackProxy$UrlRequestCallbackInterface;)V'); /// from: public void (io.flutter.plugins.cronet_http.UrlRequestCallbackProxy$UrlRequestCallbackInterface urlRequestCallbackInterface) /// The returned object must be released after use, by calling the [release] method. factory UrlRequestCallbackProxy.new1( UrlRequestCallbackProxy_UrlRequestCallbackInterface urlRequestCallbackInterface, - ) { - return UrlRequestCallbackProxy.fromRef(jni.Jni.accessors.newObjectWithArgs( - _class.reference, - _id_new1, - [urlRequestCallbackInterface.reference]).object); - } + ) => + UrlRequestCallbackProxy.fromRef(jni.Jni.accessors.newObjectWithArgs( + _class.reference, + _id_new1, + [urlRequestCallbackInterface.reference]).object); static final _id_getCallback = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"getCallback", - r"()Lio/flutter/plugins/cronet_http/UrlRequestCallbackProxy$UrlRequestCallbackInterface;"); + r'getCallback', + r'()Lio/flutter/plugins/cronet_http/UrlRequestCallbackProxy$UrlRequestCallbackInterface;'); /// from: public final io.flutter.plugins.cronet_http.UrlRequestCallbackProxy$UrlRequestCallbackInterface getCallback() /// The returned object must be released after use, by calling the [release] method. - UrlRequestCallbackProxy_UrlRequestCallbackInterface getCallback() { - return const $UrlRequestCallbackProxy_UrlRequestCallbackInterfaceType() - .fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getCallback, jni.JniCallType.objectType, []).object); - } + UrlRequestCallbackProxy_UrlRequestCallbackInterface getCallback() => + const $UrlRequestCallbackProxy_UrlRequestCallbackInterfaceType().fromRef( + jni.Jni.accessors.callMethodWithArgs(reference, _id_getCallback, + jni.JniCallType.objectType, []).object); static final _id_onRedirectReceived = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"onRedirectReceived", - r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/lang/String;)V"); + r'onRedirectReceived', + r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/lang/String;)V'); /// from: public void onRedirectReceived(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, java.lang.String string) void onRedirectReceived( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, jni.JString string, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_onRedirectReceived, jni.JniCallType.voidType, [ - urlRequest.reference, - urlResponseInfo.reference, - string.reference - ]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs( + reference, _id_onRedirectReceived, jni.JniCallType.voidType, [ + urlRequest.reference, + urlResponseInfo.reference, + string.reference + ]).check(); static final _id_onResponseStarted = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"onResponseStarted", - r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V"); + r'onResponseStarted', + r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V'); /// from: public void onResponseStarted(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo) void onResponseStarted( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, - _id_onResponseStarted, - jni.JniCallType.voidType, - [urlRequest.reference, urlResponseInfo.reference]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs( + reference, + _id_onResponseStarted, + jni.JniCallType.voidType, + [urlRequest.reference, urlResponseInfo.reference]).check(); static final _id_onReadCompleted = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"onReadCompleted", - r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/nio/ByteBuffer;)V"); + r'onReadCompleted', + r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/nio/ByteBuffer;)V'); /// from: public void onReadCompleted(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, java.nio.ByteBuffer byteBuffer) void onReadCompleted( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, ByteBuffer byteBuffer, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_onReadCompleted, jni.JniCallType.voidType, [ - urlRequest.reference, - urlResponseInfo.reference, - byteBuffer.reference - ]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs( + reference, _id_onReadCompleted, jni.JniCallType.voidType, [ + urlRequest.reference, + urlResponseInfo.reference, + byteBuffer.reference + ]).check(); static final _id_onSucceeded = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"onSucceeded", - r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V"); + r'onSucceeded', + r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V'); /// from: public void onSucceeded(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo) void onSucceeded( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, - _id_onSucceeded, - jni.JniCallType.voidType, - [urlRequest.reference, urlResponseInfo.reference]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs( + reference, + _id_onSucceeded, + jni.JniCallType.voidType, + [urlRequest.reference, urlResponseInfo.reference]).check(); static final _id_onFailed = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"onFailed", - r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Lorg/chromium/net/CronetException;)V"); + r'onFailed', + r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Lorg/chromium/net/CronetException;)V'); /// from: public void onFailed(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, org.chromium.net.CronetException cronetException) void onFailed( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, CronetException cronetException, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_onFailed, jni.JniCallType.voidType, [ - urlRequest.reference, - urlResponseInfo.reference, - cronetException.reference - ]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs( + reference, _id_onFailed, jni.JniCallType.voidType, [ + urlRequest.reference, + urlResponseInfo.reference, + cronetException.reference + ]).check(); } final class $UrlRequestCallbackProxyType @@ -500,7 +481,7 @@ final class $UrlRequestCallbackProxyType @override String get signature => - r"Lio/flutter/plugins/cronet_http/UrlRequestCallbackProxy;"; + r'Lio/flutter/plugins/cronet_http/UrlRequestCallbackProxy;'; @override UrlRequestCallbackProxy fromRef(jni.JObjectPtr ref) => @@ -516,10 +497,9 @@ final class $UrlRequestCallbackProxyType int get hashCode => ($UrlRequestCallbackProxyType).hashCode; @override - bool operator ==(Object other) { - return other.runtimeType == ($UrlRequestCallbackProxyType) && - other is $UrlRequestCallbackProxyType; - } + bool operator ==(Object other) => + other.runtimeType == $UrlRequestCallbackProxyType && + other is $UrlRequestCallbackProxyType; } /// from: java.net.URL @@ -528,15 +508,15 @@ class URL extends jni.JObject { late final jni.JObjType $type = type; URL.fromRef( - jni.JObjectPtr ref, - ) : super.fromRef(ref); + super.ref, + ) : super.fromRef(); - static final _class = jni.Jni.findJClass(r"java/net/URL"); + static final _class = jni.Jni.findJClass(r'java/net/URL'); /// The type which includes information such as the signature of this class. static const type = $URLType(); static final _id_new0 = jni.Jni.accessors.getMethodIDOf(_class.reference, - r"", r"(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)V"); + r'', r'(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)V'); /// from: public void (java.lang.String string, java.lang.String string1, int i, java.lang.String string2) /// The returned object must be released after use, by calling the [release] method. @@ -545,18 +525,17 @@ class URL extends jni.JObject { jni.JString string1, int i, jni.JString string2, - ) { - return URL.fromRef(jni.Jni.accessors.newObjectWithArgs( - _class.reference, _id_new0, [ - string.reference, - string1.reference, - jni.JValueInt(i), - string2.reference - ]).object); - } + ) => + URL.fromRef(jni.Jni.accessors.newObjectWithArgs( + _class.reference, _id_new0, [ + string.reference, + string1.reference, + jni.JValueInt(i), + string2.reference + ]).object); static final _id_new1 = jni.Jni.accessors.getMethodIDOf(_class.reference, - r"", r"(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V"); + r'', r'(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V'); /// from: public void (java.lang.String string, java.lang.String string1, java.lang.String string2) /// The returned object must be released after use, by calling the [release] method. @@ -564,17 +543,16 @@ class URL extends jni.JObject { jni.JString string, jni.JString string1, jni.JString string2, - ) { - return URL.fromRef(jni.Jni.accessors.newObjectWithArgs( - _class.reference, - _id_new1, - [string.reference, string1.reference, string2.reference]).object); - } + ) => + URL.fromRef(jni.Jni.accessors.newObjectWithArgs( + _class.reference, + _id_new1, + [string.reference, string1.reference, string2.reference]).object); static final _id_new2 = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"", - r"(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/net/URLStreamHandler;)V"); + r'', + r'(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/net/URLStreamHandler;)V'); /// from: public void (java.lang.String string, java.lang.String string1, int i, java.lang.String string2, java.net.URLStreamHandler uRLStreamHandler) /// The returned object must be released after use, by calling the [release] method. @@ -584,46 +562,43 @@ class URL extends jni.JObject { int i, jni.JString string2, jni.JObject uRLStreamHandler, - ) { - return URL.fromRef( - jni.Jni.accessors.newObjectWithArgs(_class.reference, _id_new2, [ - string.reference, - string1.reference, - jni.JValueInt(i), - string2.reference, - uRLStreamHandler.reference - ]).object); - } + ) => + URL.fromRef( + jni.Jni.accessors.newObjectWithArgs(_class.reference, _id_new2, [ + string.reference, + string1.reference, + jni.JValueInt(i), + string2.reference, + uRLStreamHandler.reference + ]).object); static final _id_new3 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"", r"(Ljava/lang/String;)V"); + .getMethodIDOf(_class.reference, r'', r'(Ljava/lang/String;)V'); /// from: public void (java.lang.String string) /// The returned object must be released after use, by calling the [release] method. factory URL.new3( jni.JString string, - ) { - return URL.fromRef(jni.Jni.accessors.newObjectWithArgs( - _class.reference, _id_new3, [string.reference]).object); - } + ) => + URL.fromRef(jni.Jni.accessors.newObjectWithArgs( + _class.reference, _id_new3, [string.reference]).object); static final _id_new4 = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"", r"(Ljava/net/URL;Ljava/lang/String;)V"); + _class.reference, r'', r'(Ljava/net/URL;Ljava/lang/String;)V'); /// from: public void (java.net.URL uRL, java.lang.String string) /// The returned object must be released after use, by calling the [release] method. factory URL.new4( URL uRL, jni.JString string, - ) { - return URL.fromRef(jni.Jni.accessors.newObjectWithArgs( - _class.reference, _id_new4, [uRL.reference, string.reference]).object); - } + ) => + URL.fromRef(jni.Jni.accessors.newObjectWithArgs(_class.reference, + _id_new4, [uRL.reference, string.reference]).object); static final _id_new5 = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"", - r"(Ljava/net/URL;Ljava/lang/String;Ljava/net/URLStreamHandler;)V"); + r'', + r'(Ljava/net/URL;Ljava/lang/String;Ljava/net/URLStreamHandler;)V'); /// from: public void (java.net.URL uRL, java.lang.String string, java.net.URLStreamHandler uRLStreamHandler) /// The returned object must be released after use, by calling the [release] method. @@ -631,257 +606,237 @@ class URL extends jni.JObject { URL uRL, jni.JString string, jni.JObject uRLStreamHandler, - ) { - return URL.fromRef(jni.Jni.accessors.newObjectWithArgs( - _class.reference, - _id_new5, - [uRL.reference, string.reference, uRLStreamHandler.reference]).object); - } + ) => + URL.fromRef(jni.Jni.accessors.newObjectWithArgs( + _class.reference, _id_new5, [ + uRL.reference, + string.reference, + uRLStreamHandler.reference + ]).object); static final _id_getQuery = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"getQuery", r"()Ljava/lang/String;"); + .getMethodIDOf(_class.reference, r'getQuery', r'()Ljava/lang/String;'); /// from: public java.lang.String getQuery() /// The returned object must be released after use, by calling the [release] method. - jni.JString getQuery() { - return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getQuery, jni.JniCallType.objectType, []).object); - } + jni.JString getQuery() => + const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getQuery, jni.JniCallType.objectType, []).object); static final _id_getPath = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"getPath", r"()Ljava/lang/String;"); + .getMethodIDOf(_class.reference, r'getPath', r'()Ljava/lang/String;'); /// from: public java.lang.String getPath() /// The returned object must be released after use, by calling the [release] method. - jni.JString getPath() { - return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getPath, jni.JniCallType.objectType, []).object); - } + jni.JString getPath() => + const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getPath, jni.JniCallType.objectType, []).object); static final _id_getUserInfo = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"getUserInfo", r"()Ljava/lang/String;"); + .getMethodIDOf(_class.reference, r'getUserInfo', r'()Ljava/lang/String;'); /// from: public java.lang.String getUserInfo() /// The returned object must be released after use, by calling the [release] method. - jni.JString getUserInfo() { - return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getUserInfo, jni.JniCallType.objectType, []).object); - } + jni.JString getUserInfo() => + const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getUserInfo, jni.JniCallType.objectType, []).object); static final _id_getAuthority = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"getAuthority", r"()Ljava/lang/String;"); + _class.reference, r'getAuthority', r'()Ljava/lang/String;'); /// from: public java.lang.String getAuthority() /// The returned object must be released after use, by calling the [release] method. - jni.JString getAuthority() { - return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getAuthority, jni.JniCallType.objectType, []).object); - } + jni.JString getAuthority() => + const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getAuthority, jni.JniCallType.objectType, []).object); static final _id_getPort = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"getPort", r"()I"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'getPort', r'()I'); /// from: public int getPort() - int getPort() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_getPort, jni.JniCallType.intType, []).integer; - } + int getPort() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_getPort, jni.JniCallType.intType, []).integer; static final _id_getDefaultPort = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"getDefaultPort", r"()I"); + .getMethodIDOf(_class.reference, r'getDefaultPort', r'()I'); /// from: public int getDefaultPort() - int getDefaultPort() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_getDefaultPort, jni.JniCallType.intType, []).integer; - } + int getDefaultPort() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_getDefaultPort, jni.JniCallType.intType, []).integer; static final _id_getProtocol = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"getProtocol", r"()Ljava/lang/String;"); + .getMethodIDOf(_class.reference, r'getProtocol', r'()Ljava/lang/String;'); /// from: public java.lang.String getProtocol() /// The returned object must be released after use, by calling the [release] method. - jni.JString getProtocol() { - return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getProtocol, jni.JniCallType.objectType, []).object); - } + jni.JString getProtocol() => + const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getProtocol, jni.JniCallType.objectType, []).object); static final _id_getHost = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"getHost", r"()Ljava/lang/String;"); + .getMethodIDOf(_class.reference, r'getHost', r'()Ljava/lang/String;'); /// from: public java.lang.String getHost() /// The returned object must be released after use, by calling the [release] method. - jni.JString getHost() { - return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getHost, jni.JniCallType.objectType, []).object); - } + jni.JString getHost() => + const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getHost, jni.JniCallType.objectType, []).object); static final _id_getFile = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"getFile", r"()Ljava/lang/String;"); + .getMethodIDOf(_class.reference, r'getFile', r'()Ljava/lang/String;'); /// from: public java.lang.String getFile() /// The returned object must be released after use, by calling the [release] method. - jni.JString getFile() { - return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getFile, jni.JniCallType.objectType, []).object); - } + jni.JString getFile() => + const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getFile, jni.JniCallType.objectType, []).object); static final _id_getRef = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"getRef", r"()Ljava/lang/String;"); + .getMethodIDOf(_class.reference, r'getRef', r'()Ljava/lang/String;'); /// from: public java.lang.String getRef() /// The returned object must be released after use, by calling the [release] method. - jni.JString getRef() { - return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getRef, jni.JniCallType.objectType, []).object); - } + jni.JString getRef() => + const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getRef, jni.JniCallType.objectType, []).object); static final _id_equals1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"equals", r"(Ljava/lang/Object;)Z"); + .getMethodIDOf(_class.reference, r'equals', r'(Ljava/lang/Object;)Z'); /// from: public boolean equals(java.lang.Object object) bool equals1( jni.JObject object, - ) { - return jni.Jni.accessors.callMethodWithArgs(reference, _id_equals1, - jni.JniCallType.booleanType, [object.reference]).boolean; - } + ) => + jni.Jni.accessors.callMethodWithArgs(reference, _id_equals1, + jni.JniCallType.booleanType, [object.reference]).boolean; static final _id_hashCode1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"hashCode", r"()I"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'hashCode', r'()I'); /// from: public int hashCode() - int hashCode1() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_hashCode1, jni.JniCallType.intType, []).integer; - } + int hashCode1() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_hashCode1, jni.JniCallType.intType, []).integer; static final _id_sameFile = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"sameFile", r"(Ljava/net/URL;)Z"); + .getMethodIDOf(_class.reference, r'sameFile', r'(Ljava/net/URL;)Z'); /// from: public boolean sameFile(java.net.URL uRL) bool sameFile( URL uRL, - ) { - return jni.Jni.accessors.callMethodWithArgs(reference, _id_sameFile, - jni.JniCallType.booleanType, [uRL.reference]).boolean; - } + ) => + jni.Jni.accessors.callMethodWithArgs(reference, _id_sameFile, + jni.JniCallType.booleanType, [uRL.reference]).boolean; static final _id_toString1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"toString", r"()Ljava/lang/String;"); + .getMethodIDOf(_class.reference, r'toString', r'()Ljava/lang/String;'); /// from: public java.lang.String toString() /// The returned object must be released after use, by calling the [release] method. - jni.JString toString1() { - return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_toString1, jni.JniCallType.objectType, []).object); - } + jni.JString toString1() => + const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_toString1, jni.JniCallType.objectType, []).object); static final _id_toExternalForm = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"toExternalForm", r"()Ljava/lang/String;"); + _class.reference, r'toExternalForm', r'()Ljava/lang/String;'); /// from: public java.lang.String toExternalForm() /// The returned object must be released after use, by calling the [release] method. - jni.JString toExternalForm() { - return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_toExternalForm, jni.JniCallType.objectType, []).object); - } + jni.JString toExternalForm() => + const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_toExternalForm, + jni.JniCallType.objectType, []).object); static final _id_toURI = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"toURI", r"()Ljava/net/URI;"); + .getMethodIDOf(_class.reference, r'toURI', r'()Ljava/net/URI;'); /// from: public java.net.URI toURI() /// The returned object must be released after use, by calling the [release] method. - jni.JObject toURI() { - return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_toURI, jni.JniCallType.objectType, []).object); - } + jni.JObject toURI() => + const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_toURI, jni.JniCallType.objectType, []).object); static final _id_openConnection = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"openConnection", r"()Ljava/net/URLConnection;"); + _class.reference, r'openConnection', r'()Ljava/net/URLConnection;'); /// from: public java.net.URLConnection openConnection() /// The returned object must be released after use, by calling the [release] method. - jni.JObject openConnection() { - return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_openConnection, jni.JniCallType.objectType, []).object); - } + jni.JObject openConnection() => + const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_openConnection, + jni.JniCallType.objectType, []).object); static final _id_openConnection1 = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"openConnection", - r"(Ljava/net/Proxy;)Ljava/net/URLConnection;"); + r'openConnection', + r'(Ljava/net/Proxy;)Ljava/net/URLConnection;'); /// from: public java.net.URLConnection openConnection(java.net.Proxy proxy) /// The returned object must be released after use, by calling the [release] method. jni.JObject openConnection1( jni.JObject proxy, - ) { - return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_openConnection1, - jni.JniCallType.objectType, - [proxy.reference]).object); - } + ) => + const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_openConnection1, + jni.JniCallType.objectType, + [proxy.reference]).object); static final _id_openStream = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"openStream", r"()Ljava/io/InputStream;"); + _class.reference, r'openStream', r'()Ljava/io/InputStream;'); /// from: public java.io.InputStream openStream() /// The returned object must be released after use, by calling the [release] method. - jni.JObject openStream() { - return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_openStream, jni.JniCallType.objectType, []).object); - } + jni.JObject openStream() => + const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_openStream, jni.JniCallType.objectType, []).object); static final _id_getContent = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"getContent", r"()Ljava/lang/Object;"); + .getMethodIDOf(_class.reference, r'getContent', r'()Ljava/lang/Object;'); /// from: public java.lang.Object getContent() /// The returned object must be released after use, by calling the [release] method. - jni.JObject getContent() { - return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getContent, jni.JniCallType.objectType, []).object); - } + jni.JObject getContent() => + const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getContent, jni.JniCallType.objectType, []).object); static final _id_getContent1 = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"getContent", - r"([Ljava/lang/Class;)Ljava/lang/Object;"); + r'getContent', + r'([Ljava/lang/Class;)Ljava/lang/Object;'); /// from: public java.lang.Object getContent(java.lang.Class[] classs) /// The returned object must be released after use, by calling the [release] method. jni.JObject getContent1( jni.JArray classs, - ) { - return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_getContent1, - jni.JniCallType.objectType, - [classs.reference]).object); - } + ) => + const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_getContent1, + jni.JniCallType.objectType, + [classs.reference]).object); static final _id_setURLStreamHandlerFactory = jni.Jni.accessors - .getStaticMethodIDOf(_class.reference, r"setURLStreamHandlerFactory", - r"(Ljava/net/URLStreamHandlerFactory;)V"); + .getStaticMethodIDOf(_class.reference, r'setURLStreamHandlerFactory', + r'(Ljava/net/URLStreamHandlerFactory;)V'); /// from: static public void setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory uRLStreamHandlerFactory) static void setURLStreamHandlerFactory( jni.JObject uRLStreamHandlerFactory, - ) { - return jni.Jni.accessors.callStaticMethodWithArgs( - _class.reference, - _id_setURLStreamHandlerFactory, - jni.JniCallType.voidType, - [uRLStreamHandlerFactory.reference]).check(); - } + ) => + jni.Jni.accessors.callStaticMethodWithArgs( + _class.reference, + _id_setURLStreamHandlerFactory, + jni.JniCallType.voidType, + [uRLStreamHandlerFactory.reference]).check(); } final class $URLType extends jni.JObjType { const $URLType(); @override - String get signature => r"Ljava/net/URL;"; + String get signature => r'Ljava/net/URL;'; @override URL fromRef(jni.JObjectPtr ref) => URL.fromRef(ref); @@ -896,9 +851,8 @@ final class $URLType extends jni.JObjType { int get hashCode => ($URLType).hashCode; @override - bool operator ==(Object other) { - return other.runtimeType == ($URLType) && other is $URLType; - } + bool operator ==(Object other) => + other.runtimeType == $URLType && other is $URLType; } /// from: java.nio.Buffer @@ -907,190 +861,164 @@ class Buffer extends jni.JObject { late final jni.JObjType $type = type; Buffer.fromRef( - jni.JObjectPtr ref, - ) : super.fromRef(ref); + super.ref, + ) : super.fromRef(); - static final _class = jni.Jni.findJClass(r"java/nio/Buffer"); + static final _class = jni.Jni.findJClass(r'java/nio/Buffer'); /// The type which includes information such as the signature of this class. static const type = $BufferType(); static final _id_capacity = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"capacity", r"()I"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'capacity', r'()I'); /// from: public final int capacity() - int capacity() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_capacity, jni.JniCallType.intType, []).integer; - } + int capacity() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_capacity, jni.JniCallType.intType, []).integer; static final _id_position = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"position", r"()I"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'position', r'()I'); /// from: public final int position() - int position() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_position, jni.JniCallType.intType, []).integer; - } + int position() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_position, jni.JniCallType.intType, []).integer; static final _id_position1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"position", r"(I)Ljava/nio/Buffer;"); + .getMethodIDOf(_class.reference, r'position', r'(I)Ljava/nio/Buffer;'); /// from: public java.nio.Buffer position(int i) /// The returned object must be released after use, by calling the [release] method. Buffer position1( int i, - ) { - return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_position1, - jni.JniCallType.objectType, - [jni.JValueInt(i)]).object); - } + ) => + const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_position1, + jni.JniCallType.objectType, + [jni.JValueInt(i)]).object); static final _id_limit = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"limit", r"()I"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'limit', r'()I'); /// from: public final int limit() - int limit() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_limit, jni.JniCallType.intType, []).integer; - } + int limit() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_limit, jni.JniCallType.intType, []).integer; static final _id_limit1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"limit", r"(I)Ljava/nio/Buffer;"); + .getMethodIDOf(_class.reference, r'limit', r'(I)Ljava/nio/Buffer;'); /// from: public java.nio.Buffer limit(int i) /// The returned object must be released after use, by calling the [release] method. Buffer limit1( int i, - ) { - return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_limit1, - jni.JniCallType.objectType, - [jni.JValueInt(i)]).object); - } + ) => + const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_limit1, + jni.JniCallType.objectType, + [jni.JValueInt(i)]).object); static final _id_mark = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"mark", r"()Ljava/nio/Buffer;"); + .getMethodIDOf(_class.reference, r'mark', r'()Ljava/nio/Buffer;'); /// from: public java.nio.Buffer mark() /// The returned object must be released after use, by calling the [release] method. - Buffer mark() { - return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_mark, jni.JniCallType.objectType, []).object); - } + Buffer mark() => + const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_mark, jni.JniCallType.objectType, []).object); static final _id_reset = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"reset", r"()Ljava/nio/Buffer;"); + .getMethodIDOf(_class.reference, r'reset', r'()Ljava/nio/Buffer;'); /// from: public java.nio.Buffer reset() /// The returned object must be released after use, by calling the [release] method. - Buffer reset() { - return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_reset, jni.JniCallType.objectType, []).object); - } + Buffer reset() => + const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_reset, jni.JniCallType.objectType, []).object); static final _id_clear = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"clear", r"()Ljava/nio/Buffer;"); + .getMethodIDOf(_class.reference, r'clear', r'()Ljava/nio/Buffer;'); /// from: public java.nio.Buffer clear() /// The returned object must be released after use, by calling the [release] method. - Buffer clear() { - return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_clear, jni.JniCallType.objectType, []).object); - } + Buffer clear() => + const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_clear, jni.JniCallType.objectType, []).object); static final _id_flip = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"flip", r"()Ljava/nio/Buffer;"); + .getMethodIDOf(_class.reference, r'flip', r'()Ljava/nio/Buffer;'); /// from: public java.nio.Buffer flip() /// The returned object must be released after use, by calling the [release] method. - Buffer flip() { - return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_flip, jni.JniCallType.objectType, []).object); - } + Buffer flip() => + const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_flip, jni.JniCallType.objectType, []).object); static final _id_rewind = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"rewind", r"()Ljava/nio/Buffer;"); + .getMethodIDOf(_class.reference, r'rewind', r'()Ljava/nio/Buffer;'); /// from: public java.nio.Buffer rewind() /// The returned object must be released after use, by calling the [release] method. - Buffer rewind() { - return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_rewind, jni.JniCallType.objectType, []).object); - } + Buffer rewind() => + const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_rewind, jni.JniCallType.objectType, []).object); static final _id_remaining = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"remaining", r"()I"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'remaining', r'()I'); /// from: public final int remaining() - int remaining() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_remaining, jni.JniCallType.intType, []).integer; - } + int remaining() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_remaining, jni.JniCallType.intType, []).integer; static final _id_hasRemaining = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"hasRemaining", r"()Z"); + .getMethodIDOf(_class.reference, r'hasRemaining', r'()Z'); /// from: public final boolean hasRemaining() - bool hasRemaining() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_hasRemaining, jni.JniCallType.booleanType, []).boolean; - } + bool hasRemaining() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_hasRemaining, jni.JniCallType.booleanType, []).boolean; static final _id_isReadOnly = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"isReadOnly", r"()Z"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'isReadOnly', r'()Z'); /// from: public abstract boolean isReadOnly() - bool isReadOnly() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_isReadOnly, jni.JniCallType.booleanType, []).boolean; - } + bool isReadOnly() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_isReadOnly, jni.JniCallType.booleanType, []).boolean; static final _id_hasArray = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"hasArray", r"()Z"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'hasArray', r'()Z'); /// from: public abstract boolean hasArray() - bool hasArray() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_hasArray, jni.JniCallType.booleanType, []).boolean; - } + bool hasArray() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_hasArray, jni.JniCallType.booleanType, []).boolean; static final _id_array = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"array", r"()Ljava/lang/Object;"); + .getMethodIDOf(_class.reference, r'array', r'()Ljava/lang/Object;'); /// from: public abstract java.lang.Object array() /// The returned object must be released after use, by calling the [release] method. - jni.JObject array() { - return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_array, jni.JniCallType.objectType, []).object); - } + jni.JObject array() => + const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_array, jni.JniCallType.objectType, []).object); static final _id_arrayOffset = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"arrayOffset", r"()I"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'arrayOffset', r'()I'); /// from: public abstract int arrayOffset() - int arrayOffset() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_arrayOffset, jni.JniCallType.intType, []).integer; - } + int arrayOffset() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_arrayOffset, jni.JniCallType.intType, []).integer; static final _id_isDirect = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"isDirect", r"()Z"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'isDirect', r'()Z'); /// from: public abstract boolean isDirect() - bool isDirect() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_isDirect, jni.JniCallType.booleanType, []).boolean; - } + bool isDirect() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_isDirect, jni.JniCallType.booleanType, []).boolean; } final class $BufferType extends jni.JObjType { const $BufferType(); @override - String get signature => r"Ljava/nio/Buffer;"; + String get signature => r'Ljava/nio/Buffer;'; @override Buffer fromRef(jni.JObjectPtr ref) => Buffer.fromRef(ref); @@ -1105,9 +1033,8 @@ final class $BufferType extends jni.JObjType { int get hashCode => ($BufferType).hashCode; @override - bool operator ==(Object other) { - return other.runtimeType == ($BufferType) && other is $BufferType; - } + bool operator ==(Object other) => + other.runtimeType == $BufferType && other is $BufferType; } /// from: java.nio.ByteBuffer @@ -1116,41 +1043,39 @@ class ByteBuffer extends Buffer { late final jni.JObjType $type = type; ByteBuffer.fromRef( - jni.JObjectPtr ref, - ) : super.fromRef(ref); + super.ref, + ) : super.fromRef(); - static final _class = jni.Jni.findJClass(r"java/nio/ByteBuffer"); + static final _class = jni.Jni.findJClass(r'java/nio/ByteBuffer'); /// The type which includes information such as the signature of this class. static const type = $ByteBufferType(); static final _id_allocateDirect = jni.Jni.accessors.getStaticMethodIDOf( - _class.reference, r"allocateDirect", r"(I)Ljava/nio/ByteBuffer;"); + _class.reference, r'allocateDirect', r'(I)Ljava/nio/ByteBuffer;'); /// from: static public java.nio.ByteBuffer allocateDirect(int i) /// The returned object must be released after use, by calling the [release] method. static ByteBuffer allocateDirect( int i, - ) { - return const $ByteBufferType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_allocateDirect, - jni.JniCallType.objectType, [jni.JValueInt(i)]).object); - } + ) => + const $ByteBufferType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_allocateDirect, + jni.JniCallType.objectType, [jni.JValueInt(i)]).object); static final _id_allocate = jni.Jni.accessors.getStaticMethodIDOf( - _class.reference, r"allocate", r"(I)Ljava/nio/ByteBuffer;"); + _class.reference, r'allocate', r'(I)Ljava/nio/ByteBuffer;'); /// from: static public java.nio.ByteBuffer allocate(int i) /// The returned object must be released after use, by calling the [release] method. static ByteBuffer allocate( int i, - ) { - return const $ByteBufferType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_allocate, - jni.JniCallType.objectType, [jni.JValueInt(i)]).object); - } + ) => + const $ByteBufferType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_allocate, + jni.JniCallType.objectType, [jni.JValueInt(i)]).object); static final _id_wrap = jni.Jni.accessors.getStaticMethodIDOf( - _class.reference, r"wrap", r"([BII)Ljava/nio/ByteBuffer;"); + _class.reference, r'wrap', r'([BII)Ljava/nio/ByteBuffer;'); /// from: static public java.nio.ByteBuffer wrap(byte[] bs, int i, int i1) /// The returned object must be released after use, by calling the [release] method. @@ -1158,113 +1083,103 @@ class ByteBuffer extends Buffer { jni.JArray bs, int i, int i1, - ) { - return const $ByteBufferType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_wrap, - jni.JniCallType.objectType, - [bs.reference, jni.JValueInt(i), jni.JValueInt(i1)]).object); - } + ) => + const $ByteBufferType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs( + _class.reference, + _id_wrap, + jni.JniCallType.objectType, + [bs.reference, jni.JValueInt(i), jni.JValueInt(i1)]).object); static final _id_wrap1 = jni.Jni.accessors.getStaticMethodIDOf( - _class.reference, r"wrap", r"([B)Ljava/nio/ByteBuffer;"); + _class.reference, r'wrap', r'([B)Ljava/nio/ByteBuffer;'); /// from: static public java.nio.ByteBuffer wrap(byte[] bs) /// The returned object must be released after use, by calling the [release] method. static ByteBuffer wrap1( jni.JArray bs, - ) { - return const $ByteBufferType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_wrap1, - jni.JniCallType.objectType, [bs.reference]).object); - } + ) => + const $ByteBufferType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_wrap1, + jni.JniCallType.objectType, [bs.reference]).object); static final _id_slice = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"slice", r"()Ljava/nio/ByteBuffer;"); + .getMethodIDOf(_class.reference, r'slice', r'()Ljava/nio/ByteBuffer;'); /// from: public abstract java.nio.ByteBuffer slice() /// The returned object must be released after use, by calling the [release] method. - ByteBuffer slice() { - return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_slice, jni.JniCallType.objectType, []).object); - } + ByteBuffer slice() => + const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_slice, jni.JniCallType.objectType, []).object); static final _id_duplicate = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"duplicate", r"()Ljava/nio/ByteBuffer;"); + _class.reference, r'duplicate', r'()Ljava/nio/ByteBuffer;'); /// from: public abstract java.nio.ByteBuffer duplicate() /// The returned object must be released after use, by calling the [release] method. - ByteBuffer duplicate() { - return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_duplicate, jni.JniCallType.objectType, []).object); - } + ByteBuffer duplicate() => + const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_duplicate, jni.JniCallType.objectType, []).object); static final _id_asReadOnlyBuffer = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"asReadOnlyBuffer", r"()Ljava/nio/ByteBuffer;"); + _class.reference, r'asReadOnlyBuffer', r'()Ljava/nio/ByteBuffer;'); /// from: public abstract java.nio.ByteBuffer asReadOnlyBuffer() /// The returned object must be released after use, by calling the [release] method. - ByteBuffer asReadOnlyBuffer() { - return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_asReadOnlyBuffer, - jni.JniCallType.objectType, []).object); - } + ByteBuffer asReadOnlyBuffer() => + const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_asReadOnlyBuffer, + jni.JniCallType.objectType, []).object); static final _id_get0 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"get", r"()B"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'get', r'()B'); /// from: public abstract byte get() - int get0() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_get0, jni.JniCallType.byteType, []).byte; - } + int get0() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_get0, jni.JniCallType.byteType, []).byte; static final _id_put = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"put", r"(B)Ljava/nio/ByteBuffer;"); + .getMethodIDOf(_class.reference, r'put', r'(B)Ljava/nio/ByteBuffer;'); /// from: public abstract java.nio.ByteBuffer put(byte b) /// The returned object must be released after use, by calling the [release] method. ByteBuffer put( int b, - ) { - return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_put, - jni.JniCallType.objectType, - [jni.JValueByte(b)]).object); - } + ) => + const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_put, + jni.JniCallType.objectType, + [jni.JValueByte(b)]).object); static final _id_get1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"get", r"(I)B"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'get', r'(I)B'); /// from: public abstract byte get(int i) int get1( int i, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_get1, jni.JniCallType.byteType, [jni.JValueInt(i)]).byte; - } + ) => + jni.Jni.accessors.callMethodWithArgs(reference, _id_get1, + jni.JniCallType.byteType, [jni.JValueInt(i)]).byte; static final _id_put1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"put", r"(IB)Ljava/nio/ByteBuffer;"); + .getMethodIDOf(_class.reference, r'put', r'(IB)Ljava/nio/ByteBuffer;'); /// from: public abstract java.nio.ByteBuffer put(int i, byte b) /// The returned object must be released after use, by calling the [release] method. ByteBuffer put1( int i, int b, - ) { - return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_put1, - jni.JniCallType.objectType, - [jni.JValueInt(i), jni.JValueByte(b)]).object); - } + ) => + const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_put1, + jni.JniCallType.objectType, + [jni.JValueInt(i), jni.JValueByte(b)]).object); static final _id_get2 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"get", r"([BII)Ljava/nio/ByteBuffer;"); + .getMethodIDOf(_class.reference, r'get', r'([BII)Ljava/nio/ByteBuffer;'); /// from: public java.nio.ByteBuffer get(byte[] bs, int i, int i1) /// The returned object must be released after use, by calling the [release] method. @@ -1272,46 +1187,43 @@ class ByteBuffer extends Buffer { jni.JArray bs, int i, int i1, - ) { - return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_get2, - jni.JniCallType.objectType, - [bs.reference, jni.JValueInt(i), jni.JValueInt(i1)]).object); - } + ) => + const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_get2, + jni.JniCallType.objectType, + [bs.reference, jni.JValueInt(i), jni.JValueInt(i1)]).object); static final _id_get3 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"get", r"([B)Ljava/nio/ByteBuffer;"); + .getMethodIDOf(_class.reference, r'get', r'([B)Ljava/nio/ByteBuffer;'); /// from: public java.nio.ByteBuffer get(byte[] bs) /// The returned object must be released after use, by calling the [release] method. ByteBuffer get3( jni.JArray bs, - ) { - return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_get3, - jni.JniCallType.objectType, - [bs.reference]).object); - } + ) => + const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_get3, + jni.JniCallType.objectType, + [bs.reference]).object); static final _id_put2 = jni.Jni.accessors.getMethodIDOf(_class.reference, - r"put", r"(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;"); + r'put', r'(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;'); /// from: public java.nio.ByteBuffer put(java.nio.ByteBuffer byteBuffer) /// The returned object must be released after use, by calling the [release] method. ByteBuffer put2( ByteBuffer byteBuffer, - ) { - return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_put2, - jni.JniCallType.objectType, - [byteBuffer.reference]).object); - } + ) => + const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_put2, + jni.JniCallType.objectType, + [byteBuffer.reference]).object); static final _id_put3 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"put", r"([BII)Ljava/nio/ByteBuffer;"); + .getMethodIDOf(_class.reference, r'put', r'([BII)Ljava/nio/ByteBuffer;'); /// from: public java.nio.ByteBuffer put(byte[] bs, int i, int i1) /// The returned object must be released after use, by calling the [release] method. @@ -1319,637 +1231,577 @@ class ByteBuffer extends Buffer { jni.JArray bs, int i, int i1, - ) { - return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_put3, - jni.JniCallType.objectType, - [bs.reference, jni.JValueInt(i), jni.JValueInt(i1)]).object); - } + ) => + const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_put3, + jni.JniCallType.objectType, + [bs.reference, jni.JValueInt(i), jni.JValueInt(i1)]).object); static final _id_put4 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"put", r"([B)Ljava/nio/ByteBuffer;"); + .getMethodIDOf(_class.reference, r'put', r'([B)Ljava/nio/ByteBuffer;'); /// from: public final java.nio.ByteBuffer put(byte[] bs) /// The returned object must be released after use, by calling the [release] method. ByteBuffer put4( jni.JArray bs, - ) { - return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_put4, - jni.JniCallType.objectType, - [bs.reference]).object); - } + ) => + const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_put4, + jni.JniCallType.objectType, + [bs.reference]).object); static final _id_hasArray = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"hasArray", r"()Z"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'hasArray', r'()Z'); /// from: public final boolean hasArray() - bool hasArray() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_hasArray, jni.JniCallType.booleanType, []).boolean; - } + bool hasArray() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_hasArray, jni.JniCallType.booleanType, []).boolean; static final _id_array1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"array", r"()[B"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'array', r'()[B'); /// from: public final byte[] array() /// The returned object must be released after use, by calling the [release] method. - jni.JArray array1() { - return const jni.JArrayType(jni.jbyteType()).fromRef(jni.Jni.accessors - .callMethodWithArgs( - reference, _id_array1, jni.JniCallType.objectType, []).object); - } + jni.JArray array1() => const jni.JArrayType(jni.jbyteType()) + .fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_array1, jni.JniCallType.objectType, []).object); static final _id_arrayOffset = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"arrayOffset", r"()I"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'arrayOffset', r'()I'); /// from: public final int arrayOffset() - int arrayOffset() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_arrayOffset, jni.JniCallType.intType, []).integer; - } + int arrayOffset() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_arrayOffset, jni.JniCallType.intType, []).integer; static final _id_position1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"position", r"(I)Ljava/nio/Buffer;"); + .getMethodIDOf(_class.reference, r'position', r'(I)Ljava/nio/Buffer;'); /// from: public java.nio.Buffer position(int i) /// The returned object must be released after use, by calling the [release] method. Buffer position1( int i, - ) { - return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_position1, - jni.JniCallType.objectType, - [jni.JValueInt(i)]).object); - } + ) => + const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_position1, + jni.JniCallType.objectType, + [jni.JValueInt(i)]).object); static final _id_limit1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"limit", r"(I)Ljava/nio/Buffer;"); + .getMethodIDOf(_class.reference, r'limit', r'(I)Ljava/nio/Buffer;'); /// from: public java.nio.Buffer limit(int i) /// The returned object must be released after use, by calling the [release] method. Buffer limit1( int i, - ) { - return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_limit1, - jni.JniCallType.objectType, - [jni.JValueInt(i)]).object); - } + ) => + const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_limit1, + jni.JniCallType.objectType, + [jni.JValueInt(i)]).object); static final _id_mark = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"mark", r"()Ljava/nio/Buffer;"); + .getMethodIDOf(_class.reference, r'mark', r'()Ljava/nio/Buffer;'); /// from: public java.nio.Buffer mark() /// The returned object must be released after use, by calling the [release] method. - Buffer mark() { - return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_mark, jni.JniCallType.objectType, []).object); - } + Buffer mark() => + const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_mark, jni.JniCallType.objectType, []).object); static final _id_reset = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"reset", r"()Ljava/nio/Buffer;"); + .getMethodIDOf(_class.reference, r'reset', r'()Ljava/nio/Buffer;'); /// from: public java.nio.Buffer reset() /// The returned object must be released after use, by calling the [release] method. - Buffer reset() { - return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_reset, jni.JniCallType.objectType, []).object); - } + Buffer reset() => + const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_reset, jni.JniCallType.objectType, []).object); static final _id_clear = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"clear", r"()Ljava/nio/Buffer;"); + .getMethodIDOf(_class.reference, r'clear', r'()Ljava/nio/Buffer;'); /// from: public java.nio.Buffer clear() /// The returned object must be released after use, by calling the [release] method. - Buffer clear() { - return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_clear, jni.JniCallType.objectType, []).object); - } + Buffer clear() => + const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_clear, jni.JniCallType.objectType, []).object); static final _id_flip = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"flip", r"()Ljava/nio/Buffer;"); + .getMethodIDOf(_class.reference, r'flip', r'()Ljava/nio/Buffer;'); /// from: public java.nio.Buffer flip() /// The returned object must be released after use, by calling the [release] method. - Buffer flip() { - return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_flip, jni.JniCallType.objectType, []).object); - } + Buffer flip() => + const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_flip, jni.JniCallType.objectType, []).object); static final _id_rewind = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"rewind", r"()Ljava/nio/Buffer;"); + .getMethodIDOf(_class.reference, r'rewind', r'()Ljava/nio/Buffer;'); /// from: public java.nio.Buffer rewind() /// The returned object must be released after use, by calling the [release] method. - Buffer rewind() { - return const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_rewind, jni.JniCallType.objectType, []).object); - } + Buffer rewind() => + const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_rewind, jni.JniCallType.objectType, []).object); static final _id_compact = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"compact", r"()Ljava/nio/ByteBuffer;"); + .getMethodIDOf(_class.reference, r'compact', r'()Ljava/nio/ByteBuffer;'); /// from: public abstract java.nio.ByteBuffer compact() /// The returned object must be released after use, by calling the [release] method. - ByteBuffer compact() { - return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_compact, jni.JniCallType.objectType, []).object); - } + ByteBuffer compact() => + const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_compact, jni.JniCallType.objectType, []).object); static final _id_isDirect = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"isDirect", r"()Z"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'isDirect', r'()Z'); /// from: public abstract boolean isDirect() - bool isDirect() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_isDirect, jni.JniCallType.booleanType, []).boolean; - } + bool isDirect() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_isDirect, jni.JniCallType.booleanType, []).boolean; static final _id_toString1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"toString", r"()Ljava/lang/String;"); + .getMethodIDOf(_class.reference, r'toString', r'()Ljava/lang/String;'); /// from: public java.lang.String toString() /// The returned object must be released after use, by calling the [release] method. - jni.JString toString1() { - return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_toString1, jni.JniCallType.objectType, []).object); - } + jni.JString toString1() => + const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_toString1, jni.JniCallType.objectType, []).object); static final _id_hashCode1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"hashCode", r"()I"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'hashCode', r'()I'); /// from: public int hashCode() - int hashCode1() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_hashCode1, jni.JniCallType.intType, []).integer; - } + int hashCode1() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_hashCode1, jni.JniCallType.intType, []).integer; static final _id_equals1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"equals", r"(Ljava/lang/Object;)Z"); + .getMethodIDOf(_class.reference, r'equals', r'(Ljava/lang/Object;)Z'); /// from: public boolean equals(java.lang.Object object) bool equals1( jni.JObject object, - ) { - return jni.Jni.accessors.callMethodWithArgs(reference, _id_equals1, - jni.JniCallType.booleanType, [object.reference]).boolean; - } + ) => + jni.Jni.accessors.callMethodWithArgs(reference, _id_equals1, + jni.JniCallType.booleanType, [object.reference]).boolean; static final _id_compareTo = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"compareTo", r"(Ljava/nio/ByteBuffer;)I"); + _class.reference, r'compareTo', r'(Ljava/nio/ByteBuffer;)I'); /// from: public int compareTo(java.nio.ByteBuffer byteBuffer) int compareTo( ByteBuffer byteBuffer, - ) { - return jni.Jni.accessors.callMethodWithArgs(reference, _id_compareTo, - jni.JniCallType.intType, [byteBuffer.reference]).integer; - } + ) => + jni.Jni.accessors.callMethodWithArgs(reference, _id_compareTo, + jni.JniCallType.intType, [byteBuffer.reference]).integer; static final _id_order = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"order", r"()Ljava/nio/ByteOrder;"); + .getMethodIDOf(_class.reference, r'order', r'()Ljava/nio/ByteOrder;'); /// from: public final java.nio.ByteOrder order() /// The returned object must be released after use, by calling the [release] method. - jni.JObject order() { - return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_order, jni.JniCallType.objectType, []).object); - } + jni.JObject order() => + const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_order, jni.JniCallType.objectType, []).object); static final _id_order1 = jni.Jni.accessors.getMethodIDOf(_class.reference, - r"order", r"(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;"); + r'order', r'(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;'); /// from: public final java.nio.ByteBuffer order(java.nio.ByteOrder byteOrder) /// The returned object must be released after use, by calling the [release] method. ByteBuffer order1( jni.JObject byteOrder, - ) { - return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_order1, - jni.JniCallType.objectType, - [byteOrder.reference]).object); - } + ) => + const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_order1, + jni.JniCallType.objectType, + [byteOrder.reference]).object); static final _id_alignmentOffset = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"alignmentOffset", r"(II)I"); + .getMethodIDOf(_class.reference, r'alignmentOffset', r'(II)I'); /// from: public final int alignmentOffset(int i, int i1) int alignmentOffset( int i, int i1, - ) { - return jni.Jni.accessors.callMethodWithArgs(reference, _id_alignmentOffset, - jni.JniCallType.intType, [jni.JValueInt(i), jni.JValueInt(i1)]).integer; - } + ) => + jni.Jni.accessors.callMethodWithArgs( + reference, + _id_alignmentOffset, + jni.JniCallType.intType, + [jni.JValueInt(i), jni.JValueInt(i1)]).integer; static final _id_alignedSlice = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"alignedSlice", r"(I)Ljava/nio/ByteBuffer;"); + _class.reference, r'alignedSlice', r'(I)Ljava/nio/ByteBuffer;'); /// from: public final java.nio.ByteBuffer alignedSlice(int i) /// The returned object must be released after use, by calling the [release] method. ByteBuffer alignedSlice( int i, - ) { - return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_alignedSlice, - jni.JniCallType.objectType, - [jni.JValueInt(i)]).object); - } + ) => + const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_alignedSlice, + jni.JniCallType.objectType, + [jni.JValueInt(i)]).object); static final _id_getChar = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"getChar", r"()C"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'getChar', r'()C'); /// from: public abstract char getChar() - int getChar() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_getChar, jni.JniCallType.charType, []).char; - } + int getChar() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_getChar, jni.JniCallType.charType, []).char; static final _id_putChar = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"putChar", r"(C)Ljava/nio/ByteBuffer;"); + .getMethodIDOf(_class.reference, r'putChar', r'(C)Ljava/nio/ByteBuffer;'); /// from: public abstract java.nio.ByteBuffer putChar(char c) /// The returned object must be released after use, by calling the [release] method. ByteBuffer putChar( int c, - ) { - return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putChar, - jni.JniCallType.objectType, - [jni.JValueChar(c)]).object); - } + ) => + const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_putChar, + jni.JniCallType.objectType, + [jni.JValueChar(c)]).object); static final _id_getChar1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"getChar", r"(I)C"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'getChar', r'(I)C'); /// from: public abstract char getChar(int i) int getChar1( int i, - ) { - return jni.Jni.accessors.callMethodWithArgs(reference, _id_getChar1, - jni.JniCallType.charType, [jni.JValueInt(i)]).char; - } + ) => + jni.Jni.accessors.callMethodWithArgs(reference, _id_getChar1, + jni.JniCallType.charType, [jni.JValueInt(i)]).char; static final _id_putChar1 = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"putChar", r"(IC)Ljava/nio/ByteBuffer;"); + _class.reference, r'putChar', r'(IC)Ljava/nio/ByteBuffer;'); /// from: public abstract java.nio.ByteBuffer putChar(int i, char c) /// The returned object must be released after use, by calling the [release] method. ByteBuffer putChar1( int i, int c, - ) { - return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putChar1, - jni.JniCallType.objectType, - [jni.JValueInt(i), jni.JValueChar(c)]).object); - } + ) => + const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_putChar1, + jni.JniCallType.objectType, + [jni.JValueInt(i), jni.JValueChar(c)]).object); static final _id_asCharBuffer = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"asCharBuffer", r"()Ljava/nio/CharBuffer;"); + _class.reference, r'asCharBuffer', r'()Ljava/nio/CharBuffer;'); /// from: public abstract java.nio.CharBuffer asCharBuffer() /// The returned object must be released after use, by calling the [release] method. - jni.JObject asCharBuffer() { - return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_asCharBuffer, jni.JniCallType.objectType, []).object); - } + jni.JObject asCharBuffer() => + const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_asCharBuffer, jni.JniCallType.objectType, []).object); static final _id_getShort = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"getShort", r"()S"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'getShort', r'()S'); /// from: public abstract short getShort() - int getShort() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_getShort, jni.JniCallType.shortType, []).short; - } + int getShort() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_getShort, jni.JniCallType.shortType, []).short; static final _id_putShort = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"putShort", r"(S)Ljava/nio/ByteBuffer;"); + _class.reference, r'putShort', r'(S)Ljava/nio/ByteBuffer;'); /// from: public abstract java.nio.ByteBuffer putShort(short s) /// The returned object must be released after use, by calling the [release] method. ByteBuffer putShort( int s, - ) { - return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putShort, - jni.JniCallType.objectType, - [jni.JValueShort(s)]).object); - } + ) => + const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_putShort, + jni.JniCallType.objectType, + [jni.JValueShort(s)]).object); static final _id_getShort1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"getShort", r"(I)S"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'getShort', r'(I)S'); /// from: public abstract short getShort(int i) int getShort1( int i, - ) { - return jni.Jni.accessors.callMethodWithArgs(reference, _id_getShort1, - jni.JniCallType.shortType, [jni.JValueInt(i)]).short; - } + ) => + jni.Jni.accessors.callMethodWithArgs(reference, _id_getShort1, + jni.JniCallType.shortType, [jni.JValueInt(i)]).short; static final _id_putShort1 = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"putShort", r"(IS)Ljava/nio/ByteBuffer;"); + _class.reference, r'putShort', r'(IS)Ljava/nio/ByteBuffer;'); /// from: public abstract java.nio.ByteBuffer putShort(int i, short s) /// The returned object must be released after use, by calling the [release] method. ByteBuffer putShort1( int i, int s, - ) { - return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putShort1, - jni.JniCallType.objectType, - [jni.JValueInt(i), jni.JValueShort(s)]).object); - } + ) => + const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_putShort1, + jni.JniCallType.objectType, + [jni.JValueInt(i), jni.JValueShort(s)]).object); static final _id_asShortBuffer = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"asShortBuffer", r"()Ljava/nio/ShortBuffer;"); + _class.reference, r'asShortBuffer', r'()Ljava/nio/ShortBuffer;'); /// from: public abstract java.nio.ShortBuffer asShortBuffer() /// The returned object must be released after use, by calling the [release] method. - jni.JObject asShortBuffer() { - return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_asShortBuffer, jni.JniCallType.objectType, []).object); - } + jni.JObject asShortBuffer() => + const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_asShortBuffer, jni.JniCallType.objectType, []).object); static final _id_getInt = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"getInt", r"()I"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'getInt', r'()I'); /// from: public abstract int getInt() - int getInt() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_getInt, jni.JniCallType.intType, []).integer; - } + int getInt() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_getInt, jni.JniCallType.intType, []).integer; static final _id_putInt = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"putInt", r"(I)Ljava/nio/ByteBuffer;"); + .getMethodIDOf(_class.reference, r'putInt', r'(I)Ljava/nio/ByteBuffer;'); /// from: public abstract java.nio.ByteBuffer putInt(int i) /// The returned object must be released after use, by calling the [release] method. ByteBuffer putInt( int i, - ) { - return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putInt, - jni.JniCallType.objectType, - [jni.JValueInt(i)]).object); - } + ) => + const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_putInt, + jni.JniCallType.objectType, + [jni.JValueInt(i)]).object); static final _id_getInt1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"getInt", r"(I)I"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'getInt', r'(I)I'); /// from: public abstract int getInt(int i) int getInt1( int i, - ) { - return jni.Jni.accessors.callMethodWithArgs(reference, _id_getInt1, - jni.JniCallType.intType, [jni.JValueInt(i)]).integer; - } + ) => + jni.Jni.accessors.callMethodWithArgs(reference, _id_getInt1, + jni.JniCallType.intType, [jni.JValueInt(i)]).integer; static final _id_putInt1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"putInt", r"(II)Ljava/nio/ByteBuffer;"); + .getMethodIDOf(_class.reference, r'putInt', r'(II)Ljava/nio/ByteBuffer;'); /// from: public abstract java.nio.ByteBuffer putInt(int i, int i1) /// The returned object must be released after use, by calling the [release] method. ByteBuffer putInt1( int i, int i1, - ) { - return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putInt1, - jni.JniCallType.objectType, - [jni.JValueInt(i), jni.JValueInt(i1)]).object); - } + ) => + const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_putInt1, + jni.JniCallType.objectType, + [jni.JValueInt(i), jni.JValueInt(i1)]).object); static final _id_asIntBuffer = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"asIntBuffer", r"()Ljava/nio/IntBuffer;"); + _class.reference, r'asIntBuffer', r'()Ljava/nio/IntBuffer;'); /// from: public abstract java.nio.IntBuffer asIntBuffer() /// The returned object must be released after use, by calling the [release] method. - jni.JObject asIntBuffer() { - return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_asIntBuffer, jni.JniCallType.objectType, []).object); - } + jni.JObject asIntBuffer() => + const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_asIntBuffer, jni.JniCallType.objectType, []).object); static final _id_getLong = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"getLong", r"()J"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'getLong', r'()J'); /// from: public abstract long getLong() - int getLong() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_getLong, jni.JniCallType.longType, []).long; - } + int getLong() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_getLong, jni.JniCallType.longType, []).long; static final _id_putLong = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"putLong", r"(J)Ljava/nio/ByteBuffer;"); + .getMethodIDOf(_class.reference, r'putLong', r'(J)Ljava/nio/ByteBuffer;'); /// from: public abstract java.nio.ByteBuffer putLong(long j) /// The returned object must be released after use, by calling the [release] method. ByteBuffer putLong( int j, - ) { - return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_putLong, jni.JniCallType.objectType, [j]).object); - } + ) => + const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_putLong, jni.JniCallType.objectType, [j]).object); static final _id_getLong1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"getLong", r"(I)J"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'getLong', r'(I)J'); /// from: public abstract long getLong(int i) int getLong1( int i, - ) { - return jni.Jni.accessors.callMethodWithArgs(reference, _id_getLong1, - jni.JniCallType.longType, [jni.JValueInt(i)]).long; - } + ) => + jni.Jni.accessors.callMethodWithArgs(reference, _id_getLong1, + jni.JniCallType.longType, [jni.JValueInt(i)]).long; static final _id_putLong1 = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"putLong", r"(IJ)Ljava/nio/ByteBuffer;"); + _class.reference, r'putLong', r'(IJ)Ljava/nio/ByteBuffer;'); /// from: public abstract java.nio.ByteBuffer putLong(int i, long j) /// The returned object must be released after use, by calling the [release] method. ByteBuffer putLong1( int i, int j, - ) { - return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putLong1, - jni.JniCallType.objectType, - [jni.JValueInt(i), j]).object); - } + ) => + const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_putLong1, + jni.JniCallType.objectType, + [jni.JValueInt(i), j]).object); static final _id_asLongBuffer = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"asLongBuffer", r"()Ljava/nio/LongBuffer;"); + _class.reference, r'asLongBuffer', r'()Ljava/nio/LongBuffer;'); /// from: public abstract java.nio.LongBuffer asLongBuffer() /// The returned object must be released after use, by calling the [release] method. - jni.JObject asLongBuffer() { - return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_asLongBuffer, jni.JniCallType.objectType, []).object); - } + jni.JObject asLongBuffer() => + const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_asLongBuffer, jni.JniCallType.objectType, []).object); static final _id_getFloat = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"getFloat", r"()F"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'getFloat', r'()F'); /// from: public abstract float getFloat() - double getFloat() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_getFloat, jni.JniCallType.floatType, []).float; - } + double getFloat() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_getFloat, jni.JniCallType.floatType, []).float; static final _id_putFloat = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"putFloat", r"(F)Ljava/nio/ByteBuffer;"); + _class.reference, r'putFloat', r'(F)Ljava/nio/ByteBuffer;'); /// from: public abstract java.nio.ByteBuffer putFloat(float f) /// The returned object must be released after use, by calling the [release] method. ByteBuffer putFloat( double f, - ) { - return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putFloat, - jni.JniCallType.objectType, - [jni.JValueFloat(f)]).object); - } + ) => + const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_putFloat, + jni.JniCallType.objectType, + [jni.JValueFloat(f)]).object); static final _id_getFloat1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"getFloat", r"(I)F"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'getFloat', r'(I)F'); /// from: public abstract float getFloat(int i) double getFloat1( int i, - ) { - return jni.Jni.accessors.callMethodWithArgs(reference, _id_getFloat1, - jni.JniCallType.floatType, [jni.JValueInt(i)]).float; - } + ) => + jni.Jni.accessors.callMethodWithArgs(reference, _id_getFloat1, + jni.JniCallType.floatType, [jni.JValueInt(i)]).float; static final _id_putFloat1 = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"putFloat", r"(IF)Ljava/nio/ByteBuffer;"); + _class.reference, r'putFloat', r'(IF)Ljava/nio/ByteBuffer;'); /// from: public abstract java.nio.ByteBuffer putFloat(int i, float f) /// The returned object must be released after use, by calling the [release] method. ByteBuffer putFloat1( int i, double f, - ) { - return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putFloat1, - jni.JniCallType.objectType, - [jni.JValueInt(i), jni.JValueFloat(f)]).object); - } + ) => + const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_putFloat1, + jni.JniCallType.objectType, + [jni.JValueInt(i), jni.JValueFloat(f)]).object); static final _id_asFloatBuffer = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"asFloatBuffer", r"()Ljava/nio/FloatBuffer;"); + _class.reference, r'asFloatBuffer', r'()Ljava/nio/FloatBuffer;'); /// from: public abstract java.nio.FloatBuffer asFloatBuffer() /// The returned object must be released after use, by calling the [release] method. - jni.JObject asFloatBuffer() { - return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_asFloatBuffer, jni.JniCallType.objectType, []).object); - } + jni.JObject asFloatBuffer() => + const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_asFloatBuffer, jni.JniCallType.objectType, []).object); static final _id_getDouble = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"getDouble", r"()D"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'getDouble', r'()D'); /// from: public abstract double getDouble() - double getDouble() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_getDouble, jni.JniCallType.doubleType, []).doubleFloat; - } + double getDouble() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_getDouble, jni.JniCallType.doubleType, []).doubleFloat; static final _id_putDouble = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"putDouble", r"(D)Ljava/nio/ByteBuffer;"); + _class.reference, r'putDouble', r'(D)Ljava/nio/ByteBuffer;'); /// from: public abstract java.nio.ByteBuffer putDouble(double d) /// The returned object must be released after use, by calling the [release] method. ByteBuffer putDouble( double d, - ) { - return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_putDouble, jni.JniCallType.objectType, [d]).object); - } + ) => + const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_putDouble, jni.JniCallType.objectType, [d]).object); static final _id_getDouble1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"getDouble", r"(I)D"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'getDouble', r'(I)D'); /// from: public abstract double getDouble(int i) double getDouble1( int i, - ) { - return jni.Jni.accessors.callMethodWithArgs(reference, _id_getDouble1, - jni.JniCallType.doubleType, [jni.JValueInt(i)]).doubleFloat; - } + ) => + jni.Jni.accessors.callMethodWithArgs(reference, _id_getDouble1, + jni.JniCallType.doubleType, [jni.JValueInt(i)]).doubleFloat; static final _id_putDouble1 = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"putDouble", r"(ID)Ljava/nio/ByteBuffer;"); + _class.reference, r'putDouble', r'(ID)Ljava/nio/ByteBuffer;'); /// from: public abstract java.nio.ByteBuffer putDouble(int i, double d) /// The returned object must be released after use, by calling the [release] method. ByteBuffer putDouble1( int i, double d, - ) { - return const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putDouble1, - jni.JniCallType.objectType, - [jni.JValueInt(i), d]).object); - } + ) => + const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_putDouble1, + jni.JniCallType.objectType, + [jni.JValueInt(i), d]).object); static final _id_asDoubleBuffer = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"asDoubleBuffer", r"()Ljava/nio/DoubleBuffer;"); + _class.reference, r'asDoubleBuffer', r'()Ljava/nio/DoubleBuffer;'); /// from: public abstract java.nio.DoubleBuffer asDoubleBuffer() /// The returned object must be released after use, by calling the [release] method. - jni.JObject asDoubleBuffer() { - return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_asDoubleBuffer, jni.JniCallType.objectType, []).object); - } + jni.JObject asDoubleBuffer() => + const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_asDoubleBuffer, + jni.JniCallType.objectType, []).object); static final _id_array = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"array", r"()Ljava/lang/Object;"); + .getMethodIDOf(_class.reference, r'array', r'()Ljava/lang/Object;'); /// from: public java.lang.Object array() /// The returned object must be released after use, by calling the [release] method. - jni.JObject array() { - return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_array, jni.JniCallType.objectType, []).object); - } + jni.JObject array() => + const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_array, jni.JniCallType.objectType, []).object); static final _id_compareTo1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"compareTo", r"(Ljava/lang/Object;)I"); + .getMethodIDOf(_class.reference, r'compareTo', r'(Ljava/lang/Object;)I'); /// from: public int compareTo(java.lang.Object object) int compareTo1( jni.JObject object, - ) { - return jni.Jni.accessors.callMethodWithArgs(reference, _id_compareTo1, - jni.JniCallType.intType, [object.reference]).integer; - } + ) => + jni.Jni.accessors.callMethodWithArgs(reference, _id_compareTo1, + jni.JniCallType.intType, [object.reference]).integer; } final class $ByteBufferType extends jni.JObjType { const $ByteBufferType(); @override - String get signature => r"Ljava/nio/ByteBuffer;"; + String get signature => r'Ljava/nio/ByteBuffer;'; @override ByteBuffer fromRef(jni.JObjectPtr ref) => ByteBuffer.fromRef(ref); @@ -1964,9 +1816,8 @@ final class $ByteBufferType extends jni.JObjType { int get hashCode => ($ByteBufferType).hashCode; @override - bool operator ==(Object other) { - return other.runtimeType == ($ByteBufferType) && other is $ByteBufferType; - } + bool operator ==(Object other) => + other.runtimeType == $ByteBufferType && other is $ByteBufferType; } /// from: java.util.concurrent.Executors @@ -1975,266 +1826,248 @@ class Executors extends jni.JObject { late final jni.JObjType $type = type; Executors.fromRef( - jni.JObjectPtr ref, - ) : super.fromRef(ref); + super.ref, + ) : super.fromRef(); - static final _class = jni.Jni.findJClass(r"java/util/concurrent/Executors"); + static final _class = jni.Jni.findJClass(r'java/util/concurrent/Executors'); /// The type which includes information such as the signature of this class. static const type = $ExecutorsType(); static final _id_newFixedThreadPool = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r"newFixedThreadPool", - r"(I)Ljava/util/concurrent/ExecutorService;"); + r'newFixedThreadPool', + r'(I)Ljava/util/concurrent/ExecutorService;'); /// from: static public java.util.concurrent.ExecutorService newFixedThreadPool(int i) /// The returned object must be released after use, by calling the [release] method. static jni.JObject newFixedThreadPool( int i, - ) { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_newFixedThreadPool, - jni.JniCallType.objectType, [jni.JValueInt(i)]).object); - } + ) => + const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_newFixedThreadPool, + jni.JniCallType.objectType, [jni.JValueInt(i)]).object); static final _id_newWorkStealingPool = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r"newWorkStealingPool", - r"(I)Ljava/util/concurrent/ExecutorService;"); + r'newWorkStealingPool', + r'(I)Ljava/util/concurrent/ExecutorService;'); /// from: static public java.util.concurrent.ExecutorService newWorkStealingPool(int i) /// The returned object must be released after use, by calling the [release] method. static jni.JObject newWorkStealingPool( int i, - ) { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_newWorkStealingPool, - jni.JniCallType.objectType, [jni.JValueInt(i)]).object); - } + ) => + const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_newWorkStealingPool, + jni.JniCallType.objectType, [jni.JValueInt(i)]).object); static final _id_newWorkStealingPool1 = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r"newWorkStealingPool", - r"()Ljava/util/concurrent/ExecutorService;"); + r'newWorkStealingPool', + r'()Ljava/util/concurrent/ExecutorService;'); /// from: static public java.util.concurrent.ExecutorService newWorkStealingPool() /// The returned object must be released after use, by calling the [release] method. - static jni.JObject newWorkStealingPool1() { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_newWorkStealingPool1, - jni.JniCallType.objectType, []).object); - } + static jni.JObject newWorkStealingPool1() => const jni.JObjectType().fromRef( + jni.Jni.accessors.callStaticMethodWithArgs(_class.reference, + _id_newWorkStealingPool1, jni.JniCallType.objectType, []).object); static final _id_newFixedThreadPool1 = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r"newFixedThreadPool", - r"(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;"); + r'newFixedThreadPool', + r'(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;'); /// from: static public java.util.concurrent.ExecutorService newFixedThreadPool(int i, java.util.concurrent.ThreadFactory threadFactory) /// The returned object must be released after use, by calling the [release] method. static jni.JObject newFixedThreadPool1( int i, jni.JObject threadFactory, - ) { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_newFixedThreadPool1, - jni.JniCallType.objectType, - [jni.JValueInt(i), threadFactory.reference]).object); - } + ) => + const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs( + _class.reference, + _id_newFixedThreadPool1, + jni.JniCallType.objectType, + [jni.JValueInt(i), threadFactory.reference]).object); static final _id_newSingleThreadExecutor = jni.Jni.accessors - .getStaticMethodIDOf(_class.reference, r"newSingleThreadExecutor", - r"()Ljava/util/concurrent/ExecutorService;"); + .getStaticMethodIDOf(_class.reference, r'newSingleThreadExecutor', + r'()Ljava/util/concurrent/ExecutorService;'); /// from: static public java.util.concurrent.ExecutorService newSingleThreadExecutor() /// The returned object must be released after use, by calling the [release] method. - static jni.JObject newSingleThreadExecutor() { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_newSingleThreadExecutor, - jni.JniCallType.objectType, []).object); - } + static jni.JObject newSingleThreadExecutor() => const jni.JObjectType() + .fromRef(jni.Jni.accessors.callStaticMethodWithArgs(_class.reference, + _id_newSingleThreadExecutor, jni.JniCallType.objectType, []).object); static final _id_newSingleThreadExecutor1 = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r"newSingleThreadExecutor", - r"(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;"); + r'newSingleThreadExecutor', + r'(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;'); /// from: static public java.util.concurrent.ExecutorService newSingleThreadExecutor(java.util.concurrent.ThreadFactory threadFactory) /// The returned object must be released after use, by calling the [release] method. static jni.JObject newSingleThreadExecutor1( jni.JObject threadFactory, - ) { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_newSingleThreadExecutor1, - jni.JniCallType.objectType, - [threadFactory.reference]).object); - } + ) => + const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs( + _class.reference, + _id_newSingleThreadExecutor1, + jni.JniCallType.objectType, + [threadFactory.reference]).object); static final _id_newCachedThreadPool = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r"newCachedThreadPool", - r"()Ljava/util/concurrent/ExecutorService;"); + r'newCachedThreadPool', + r'()Ljava/util/concurrent/ExecutorService;'); /// from: static public java.util.concurrent.ExecutorService newCachedThreadPool() /// The returned object must be released after use, by calling the [release] method. - static jni.JObject newCachedThreadPool() { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_newCachedThreadPool, - jni.JniCallType.objectType, []).object); - } + static jni.JObject newCachedThreadPool() => const jni.JObjectType().fromRef( + jni.Jni.accessors.callStaticMethodWithArgs(_class.reference, + _id_newCachedThreadPool, jni.JniCallType.objectType, []).object); static final _id_newCachedThreadPool1 = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r"newCachedThreadPool", - r"(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;"); + r'newCachedThreadPool', + r'(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;'); /// from: static public java.util.concurrent.ExecutorService newCachedThreadPool(java.util.concurrent.ThreadFactory threadFactory) /// The returned object must be released after use, by calling the [release] method. static jni.JObject newCachedThreadPool1( jni.JObject threadFactory, - ) { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_newCachedThreadPool1, - jni.JniCallType.objectType, [threadFactory.reference]).object); - } + ) => + const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_newCachedThreadPool1, + jni.JniCallType.objectType, [threadFactory.reference]).object); static final _id_newSingleThreadScheduledExecutor = jni.Jni.accessors .getStaticMethodIDOf( _class.reference, - r"newSingleThreadScheduledExecutor", - r"()Ljava/util/concurrent/ScheduledExecutorService;"); + r'newSingleThreadScheduledExecutor', + r'()Ljava/util/concurrent/ScheduledExecutorService;'); /// from: static public java.util.concurrent.ScheduledExecutorService newSingleThreadScheduledExecutor() /// The returned object must be released after use, by calling the [release] method. - static jni.JObject newSingleThreadScheduledExecutor() { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_newSingleThreadScheduledExecutor, - jni.JniCallType.objectType, []).object); - } + static jni.JObject newSingleThreadScheduledExecutor() => + const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs( + _class.reference, + _id_newSingleThreadScheduledExecutor, + jni.JniCallType.objectType, []).object); static final _id_newSingleThreadScheduledExecutor1 = jni.Jni.accessors .getStaticMethodIDOf( _class.reference, - r"newSingleThreadScheduledExecutor", - r"(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;"); + r'newSingleThreadScheduledExecutor', + r'(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;'); /// from: static public java.util.concurrent.ScheduledExecutorService newSingleThreadScheduledExecutor(java.util.concurrent.ThreadFactory threadFactory) /// The returned object must be released after use, by calling the [release] method. static jni.JObject newSingleThreadScheduledExecutor1( jni.JObject threadFactory, - ) { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_newSingleThreadScheduledExecutor1, - jni.JniCallType.objectType, - [threadFactory.reference]).object); - } + ) => + const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs( + _class.reference, + _id_newSingleThreadScheduledExecutor1, + jni.JniCallType.objectType, + [threadFactory.reference]).object); static final _id_newScheduledThreadPool = jni.Jni.accessors - .getStaticMethodIDOf(_class.reference, r"newScheduledThreadPool", - r"(I)Ljava/util/concurrent/ScheduledExecutorService;"); + .getStaticMethodIDOf(_class.reference, r'newScheduledThreadPool', + r'(I)Ljava/util/concurrent/ScheduledExecutorService;'); /// from: static public java.util.concurrent.ScheduledExecutorService newScheduledThreadPool(int i) /// The returned object must be released after use, by calling the [release] method. static jni.JObject newScheduledThreadPool( int i, - ) { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_newScheduledThreadPool, - jni.JniCallType.objectType, [jni.JValueInt(i)]).object); - } + ) => + const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs( + _class.reference, + _id_newScheduledThreadPool, + jni.JniCallType.objectType, + [jni.JValueInt(i)]).object); static final _id_newScheduledThreadPool1 = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r"newScheduledThreadPool", - r"(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;"); + r'newScheduledThreadPool', + r'(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;'); /// from: static public java.util.concurrent.ScheduledExecutorService newScheduledThreadPool(int i, java.util.concurrent.ThreadFactory threadFactory) /// The returned object must be released after use, by calling the [release] method. static jni.JObject newScheduledThreadPool1( int i, jni.JObject threadFactory, - ) { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_newScheduledThreadPool1, - jni.JniCallType.objectType, - [jni.JValueInt(i), threadFactory.reference]).object); - } + ) => + const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs( + _class.reference, + _id_newScheduledThreadPool1, + jni.JniCallType.objectType, + [jni.JValueInt(i), threadFactory.reference]).object); static final _id_unconfigurableExecutorService = jni.Jni.accessors - .getStaticMethodIDOf(_class.reference, r"unconfigurableExecutorService", - r"(Ljava/util/concurrent/ExecutorService;)Ljava/util/concurrent/ExecutorService;"); + .getStaticMethodIDOf(_class.reference, r'unconfigurableExecutorService', + r'(Ljava/util/concurrent/ExecutorService;)Ljava/util/concurrent/ExecutorService;'); /// from: static public java.util.concurrent.ExecutorService unconfigurableExecutorService(java.util.concurrent.ExecutorService executorService) /// The returned object must be released after use, by calling the [release] method. static jni.JObject unconfigurableExecutorService( jni.JObject executorService, - ) { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_unconfigurableExecutorService, - jni.JniCallType.objectType, - [executorService.reference]).object); - } + ) => + const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs( + _class.reference, + _id_unconfigurableExecutorService, + jni.JniCallType.objectType, + [executorService.reference]).object); static final _id_unconfigurableScheduledExecutorService = jni.Jni.accessors .getStaticMethodIDOf( _class.reference, - r"unconfigurableScheduledExecutorService", - r"(Ljava/util/concurrent/ScheduledExecutorService;)Ljava/util/concurrent/ScheduledExecutorService;"); + r'unconfigurableScheduledExecutorService', + r'(Ljava/util/concurrent/ScheduledExecutorService;)Ljava/util/concurrent/ScheduledExecutorService;'); /// from: static public java.util.concurrent.ScheduledExecutorService unconfigurableScheduledExecutorService(java.util.concurrent.ScheduledExecutorService scheduledExecutorService) /// The returned object must be released after use, by calling the [release] method. static jni.JObject unconfigurableScheduledExecutorService( jni.JObject scheduledExecutorService, - ) { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_unconfigurableScheduledExecutorService, - jni.JniCallType.objectType, - [scheduledExecutorService.reference]).object); - } + ) => + const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs( + _class.reference, + _id_unconfigurableScheduledExecutorService, + jni.JniCallType.objectType, + [scheduledExecutorService.reference]).object); static final _id_defaultThreadFactory = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r"defaultThreadFactory", - r"()Ljava/util/concurrent/ThreadFactory;"); + r'defaultThreadFactory', + r'()Ljava/util/concurrent/ThreadFactory;'); /// from: static public java.util.concurrent.ThreadFactory defaultThreadFactory() /// The returned object must be released after use, by calling the [release] method. - static jni.JObject defaultThreadFactory() { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_defaultThreadFactory, - jni.JniCallType.objectType, []).object); - } + static jni.JObject defaultThreadFactory() => const jni.JObjectType().fromRef( + jni.Jni.accessors.callStaticMethodWithArgs(_class.reference, + _id_defaultThreadFactory, jni.JniCallType.objectType, []).object); static final _id_privilegedThreadFactory = jni.Jni.accessors - .getStaticMethodIDOf(_class.reference, r"privilegedThreadFactory", - r"()Ljava/util/concurrent/ThreadFactory;"); + .getStaticMethodIDOf(_class.reference, r'privilegedThreadFactory', + r'()Ljava/util/concurrent/ThreadFactory;'); /// from: static public java.util.concurrent.ThreadFactory privilegedThreadFactory() /// The returned object must be released after use, by calling the [release] method. - static jni.JObject privilegedThreadFactory() { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_privilegedThreadFactory, - jni.JniCallType.objectType, []).object); - } + static jni.JObject privilegedThreadFactory() => const jni.JObjectType() + .fromRef(jni.Jni.accessors.callStaticMethodWithArgs(_class.reference, + _id_privilegedThreadFactory, jni.JniCallType.objectType, []).object); static final _id_callable = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r"callable", - r"(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Callable;"); + r'callable', + r'(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Callable;'); /// from: static public java.util.concurrent.Callable callable(java.lang.Runnable runnable, T object) /// The returned object must be released after use, by calling the [release] method. @@ -2256,73 +2089,69 @@ class Executors extends jni.JObject { static final _id_callable1 = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r"callable", - r"(Ljava/lang/Runnable;)Ljava/util/concurrent/Callable;"); + r'callable', + r'(Ljava/lang/Runnable;)Ljava/util/concurrent/Callable;'); /// from: static public java.util.concurrent.Callable callable(java.lang.Runnable runnable) /// The returned object must be released after use, by calling the [release] method. static jni.JObject callable1( jni.JObject runnable, - ) { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_callable1, - jni.JniCallType.objectType, [runnable.reference]).object); - } + ) => + const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_callable1, + jni.JniCallType.objectType, [runnable.reference]).object); static final _id_callable2 = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r"callable", - r"(Ljava/security/PrivilegedAction;)Ljava/util/concurrent/Callable;"); + r'callable', + r'(Ljava/security/PrivilegedAction;)Ljava/util/concurrent/Callable;'); /// from: static public java.util.concurrent.Callable callable(java.security.PrivilegedAction privilegedAction) /// The returned object must be released after use, by calling the [release] method. static jni.JObject callable2( jni.JObject privilegedAction, - ) { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_callable2, - jni.JniCallType.objectType, [privilegedAction.reference]).object); - } + ) => + const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_callable2, + jni.JniCallType.objectType, [privilegedAction.reference]).object); static final _id_callable3 = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r"callable", - r"(Ljava/security/PrivilegedExceptionAction;)Ljava/util/concurrent/Callable;"); + r'callable', + r'(Ljava/security/PrivilegedExceptionAction;)Ljava/util/concurrent/Callable;'); /// from: static public java.util.concurrent.Callable callable(java.security.PrivilegedExceptionAction privilegedExceptionAction) /// The returned object must be released after use, by calling the [release] method. static jni.JObject callable3( jni.JObject privilegedExceptionAction, - ) { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_callable3, - jni.JniCallType.objectType, - [privilegedExceptionAction.reference]).object); - } + ) => + const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs( + _class.reference, + _id_callable3, + jni.JniCallType.objectType, + [privilegedExceptionAction.reference]).object); static final _id_privilegedCallable = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r"privilegedCallable", - r"(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Callable;"); + r'privilegedCallable', + r'(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Callable;'); /// from: static public java.util.concurrent.Callable privilegedCallable(java.util.concurrent.Callable callable) /// The returned object must be released after use, by calling the [release] method. static jni.JObject privilegedCallable<$T extends jni.JObject>( jni.JObject callable, { required jni.JObjType<$T> T, - }) { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_privilegedCallable, - jni.JniCallType.objectType, [callable.reference]).object); - } + }) => + const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_privilegedCallable, + jni.JniCallType.objectType, [callable.reference]).object); static final _id_privilegedCallableUsingCurrentClassLoader = jni.Jni.accessors .getStaticMethodIDOf( _class.reference, - r"privilegedCallableUsingCurrentClassLoader", - r"(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Callable;"); + r'privilegedCallableUsingCurrentClassLoader', + r'(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Callable;'); /// from: static public java.util.concurrent.Callable privilegedCallableUsingCurrentClassLoader(java.util.concurrent.Callable callable) /// The returned object must be released after use, by calling the [release] method. @@ -2330,21 +2159,20 @@ class Executors extends jni.JObject { privilegedCallableUsingCurrentClassLoader<$T extends jni.JObject>( jni.JObject callable, { required jni.JObjType<$T> T, - }) { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_privilegedCallableUsingCurrentClassLoader, - jni.JniCallType.objectType, - [callable.reference]).object); - } + }) => + const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs( + _class.reference, + _id_privilegedCallableUsingCurrentClassLoader, + jni.JniCallType.objectType, + [callable.reference]).object); } final class $ExecutorsType extends jni.JObjType { const $ExecutorsType(); @override - String get signature => r"Ljava/util/concurrent/Executors;"; + String get signature => r'Ljava/util/concurrent/Executors;'; @override Executors fromRef(jni.JObjectPtr ref) => Executors.fromRef(ref); @@ -2359,9 +2187,8 @@ final class $ExecutorsType extends jni.JObjType { int get hashCode => ($ExecutorsType).hashCode; @override - bool operator ==(Object other) { - return other.runtimeType == ($ExecutorsType) && other is $ExecutorsType; - } + bool operator ==(Object other) => + other.runtimeType == $ExecutorsType && other is $ExecutorsType; } /// from: org.chromium.net.CronetEngine$Builder$LibraryLoader @@ -2370,34 +2197,32 @@ class CronetEngine_Builder_LibraryLoader extends jni.JObject { late final jni.JObjType $type = type; CronetEngine_Builder_LibraryLoader.fromRef( - jni.JObjectPtr ref, - ) : super.fromRef(ref); + super.ref, + ) : super.fromRef(); static final _class = jni.Jni.findJClass( - r"org/chromium/net/CronetEngine$Builder$LibraryLoader"); + r'org/chromium/net/CronetEngine$Builder$LibraryLoader'); /// The type which includes information such as the signature of this class. static const type = $CronetEngine_Builder_LibraryLoaderType(); static final _id_new0 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"", r"()V"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'', r'()V'); /// from: public void () /// The returned object must be released after use, by calling the [release] method. - factory CronetEngine_Builder_LibraryLoader() { - return CronetEngine_Builder_LibraryLoader.fromRef(jni.Jni.accessors - .newObjectWithArgs(_class.reference, _id_new0, []).object); - } + factory CronetEngine_Builder_LibraryLoader() => + CronetEngine_Builder_LibraryLoader.fromRef(jni.Jni.accessors + .newObjectWithArgs(_class.reference, _id_new0, []).object); static final _id_loadLibrary = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"loadLibrary", r"(Ljava/lang/String;)V"); + _class.reference, r'loadLibrary', r'(Ljava/lang/String;)V'); /// from: public abstract void loadLibrary(java.lang.String string) void loadLibrary( jni.JString string, - ) { - return jni.Jni.accessors.callMethodWithArgs(reference, _id_loadLibrary, - jni.JniCallType.voidType, [string.reference]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs(reference, _id_loadLibrary, + jni.JniCallType.voidType, [string.reference]).check(); } final class $CronetEngine_Builder_LibraryLoaderType @@ -2406,7 +2231,7 @@ final class $CronetEngine_Builder_LibraryLoaderType @override String get signature => - r"Lorg/chromium/net/CronetEngine$Builder$LibraryLoader;"; + r'Lorg/chromium/net/CronetEngine$Builder$LibraryLoader;'; @override CronetEngine_Builder_LibraryLoader fromRef(jni.JObjectPtr ref) => @@ -2422,10 +2247,9 @@ final class $CronetEngine_Builder_LibraryLoaderType int get hashCode => ($CronetEngine_Builder_LibraryLoaderType).hashCode; @override - bool operator ==(Object other) { - return other.runtimeType == ($CronetEngine_Builder_LibraryLoaderType) && - other is $CronetEngine_Builder_LibraryLoaderType; - } + bool operator ==(Object other) => + other.runtimeType == $CronetEngine_Builder_LibraryLoaderType && + other is $CronetEngine_Builder_LibraryLoaderType; } /// from: org.chromium.net.CronetEngine$Builder @@ -2434,18 +2258,18 @@ class CronetEngine_Builder extends jni.JObject { late final jni.JObjType $type = type; CronetEngine_Builder.fromRef( - jni.JObjectPtr ref, - ) : super.fromRef(ref); + super.ref, + ) : super.fromRef(); static final _class = - jni.Jni.findJClass(r"org/chromium/net/CronetEngine$Builder"); + jni.Jni.findJClass(r'org/chromium/net/CronetEngine$Builder'); /// The type which includes information such as the signature of this class. static const type = $CronetEngine_BuilderType(); static final _id_mBuilderDelegate = jni.Jni.accessors.getFieldIDOf( _class.reference, - r"mBuilderDelegate", - r"Lorg/chromium/net/ICronetEngineBuilder;", + r'mBuilderDelegate', + r'Lorg/chromium/net/ICronetEngineBuilder;', ); /// from: protected final org.chromium.net.ICronetEngineBuilder mBuilderDelegate @@ -2468,166 +2292,155 @@ class CronetEngine_Builder extends jni.JObject { static const HTTP_CACHE_DISK = 3; static final _id_new0 = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"", r"(Landroid/content/Context;)V"); + _class.reference, r'', r'(Landroid/content/Context;)V'); /// from: public void (android.content.Context context) /// The returned object must be released after use, by calling the [release] method. factory CronetEngine_Builder( jni.JObject context, - ) { - return CronetEngine_Builder.fromRef(jni.Jni.accessors.newObjectWithArgs( - _class.reference, _id_new0, [context.reference]).object); - } + ) => + CronetEngine_Builder.fromRef(jni.Jni.accessors.newObjectWithArgs( + _class.reference, _id_new0, [context.reference]).object); static final _id_new1 = jni.Jni.accessors.getMethodIDOf(_class.reference, - r"", r"(Lorg/chromium/net/ICronetEngineBuilder;)V"); + r'', r'(Lorg/chromium/net/ICronetEngineBuilder;)V'); /// from: public void (org.chromium.net.ICronetEngineBuilder iCronetEngineBuilder) /// The returned object must be released after use, by calling the [release] method. factory CronetEngine_Builder.new1( jni.JObject iCronetEngineBuilder, - ) { - return CronetEngine_Builder.fromRef(jni.Jni.accessors.newObjectWithArgs( - _class.reference, _id_new1, [iCronetEngineBuilder.reference]).object); - } + ) => + CronetEngine_Builder.fromRef(jni.Jni.accessors.newObjectWithArgs( + _class.reference, _id_new1, [iCronetEngineBuilder.reference]).object); static final _id_getDefaultUserAgent = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"getDefaultUserAgent", r"()Ljava/lang/String;"); + _class.reference, r'getDefaultUserAgent', r'()Ljava/lang/String;'); /// from: public java.lang.String getDefaultUserAgent() /// The returned object must be released after use, by calling the [release] method. - jni.JString getDefaultUserAgent() { - return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_getDefaultUserAgent, - jni.JniCallType.objectType, []).object); - } + jni.JString getDefaultUserAgent() => + const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_getDefaultUserAgent, + jni.JniCallType.objectType, []).object); static final _id_setUserAgent = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"setUserAgent", - r"(Ljava/lang/String;)Lorg/chromium/net/CronetEngine$Builder;"); + r'setUserAgent', + r'(Ljava/lang/String;)Lorg/chromium/net/CronetEngine$Builder;'); /// from: public org.chromium.net.CronetEngine$Builder setUserAgent(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder setUserAgent( jni.JString string, - ) { - return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setUserAgent, - jni.JniCallType.objectType, [string.reference]).object); - } + ) => + const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setUserAgent, + jni.JniCallType.objectType, [string.reference]).object); static final _id_setStoragePath = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"setStoragePath", - r"(Ljava/lang/String;)Lorg/chromium/net/CronetEngine$Builder;"); + r'setStoragePath', + r'(Ljava/lang/String;)Lorg/chromium/net/CronetEngine$Builder;'); /// from: public org.chromium.net.CronetEngine$Builder setStoragePath(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder setStoragePath( jni.JString string, - ) { - return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setStoragePath, - jni.JniCallType.objectType, [string.reference]).object); - } + ) => + const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setStoragePath, + jni.JniCallType.objectType, [string.reference]).object); static final _id_setLibraryLoader = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"setLibraryLoader", - r"(Lorg/chromium/net/CronetEngine$Builder$LibraryLoader;)Lorg/chromium/net/CronetEngine$Builder;"); + r'setLibraryLoader', + r'(Lorg/chromium/net/CronetEngine$Builder$LibraryLoader;)Lorg/chromium/net/CronetEngine$Builder;'); /// from: public org.chromium.net.CronetEngine$Builder setLibraryLoader(org.chromium.net.CronetEngine$Builder$LibraryLoader libraryLoader) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder setLibraryLoader( CronetEngine_Builder_LibraryLoader libraryLoader, - ) { - return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setLibraryLoader, - jni.JniCallType.objectType, [libraryLoader.reference]).object); - } + ) => + const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setLibraryLoader, + jni.JniCallType.objectType, [libraryLoader.reference]).object); static final _id_enableQuic = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"enableQuic", - r"(Z)Lorg/chromium/net/CronetEngine$Builder;"); + r'enableQuic', + r'(Z)Lorg/chromium/net/CronetEngine$Builder;'); /// from: public org.chromium.net.CronetEngine$Builder enableQuic(boolean z) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder enableQuic( bool z, - ) { - return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_enableQuic, - jni.JniCallType.objectType, [z ? 1 : 0]).object); - } + ) => + const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_enableQuic, + jni.JniCallType.objectType, [z ? 1 : 0]).object); static final _id_enableHttp2 = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"enableHttp2", - r"(Z)Lorg/chromium/net/CronetEngine$Builder;"); + r'enableHttp2', + r'(Z)Lorg/chromium/net/CronetEngine$Builder;'); /// from: public org.chromium.net.CronetEngine$Builder enableHttp2(boolean z) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder enableHttp2( bool z, - ) { - return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_enableHttp2, - jni.JniCallType.objectType, [z ? 1 : 0]).object); - } + ) => + const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_enableHttp2, + jni.JniCallType.objectType, [z ? 1 : 0]).object); static final _id_enableSdch = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"enableSdch", - r"(Z)Lorg/chromium/net/CronetEngine$Builder;"); + r'enableSdch', + r'(Z)Lorg/chromium/net/CronetEngine$Builder;'); /// from: public org.chromium.net.CronetEngine$Builder enableSdch(boolean z) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder enableSdch( bool z, - ) { - return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_enableSdch, - jni.JniCallType.objectType, [z ? 1 : 0]).object); - } + ) => + const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_enableSdch, + jni.JniCallType.objectType, [z ? 1 : 0]).object); static final _id_enableBrotli = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"enableBrotli", - r"(Z)Lorg/chromium/net/CronetEngine$Builder;"); + r'enableBrotli', + r'(Z)Lorg/chromium/net/CronetEngine$Builder;'); /// from: public org.chromium.net.CronetEngine$Builder enableBrotli(boolean z) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder enableBrotli( bool z, - ) { - return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_enableBrotli, - jni.JniCallType.objectType, [z ? 1 : 0]).object); - } + ) => + const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_enableBrotli, + jni.JniCallType.objectType, [z ? 1 : 0]).object); static final _id_enableHttpCache = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"enableHttpCache", - r"(IJ)Lorg/chromium/net/CronetEngine$Builder;"); + r'enableHttpCache', + r'(IJ)Lorg/chromium/net/CronetEngine$Builder;'); /// from: public org.chromium.net.CronetEngine$Builder enableHttpCache(int i, long j) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder enableHttpCache( int i, int j, - ) { - return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_enableHttpCache, - jni.JniCallType.objectType, [jni.JValueInt(i), j]).object); - } + ) => + const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_enableHttpCache, + jni.JniCallType.objectType, [jni.JValueInt(i), j]).object); static final _id_addQuicHint = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"addQuicHint", - r"(Ljava/lang/String;II)Lorg/chromium/net/CronetEngine$Builder;"); + r'addQuicHint', + r'(Ljava/lang/String;II)Lorg/chromium/net/CronetEngine$Builder;'); /// from: public org.chromium.net.CronetEngine$Builder addQuicHint(java.lang.String string, int i, int i1) /// The returned object must be released after use, by calling the [release] method. @@ -2635,19 +2448,18 @@ class CronetEngine_Builder extends jni.JObject { jni.JString string, int i, int i1, - ) { - return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs( - reference, - _id_addQuicHint, - jni.JniCallType.objectType, - [string.reference, jni.JValueInt(i), jni.JValueInt(i1)]).object); - } + ) => + const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs( + reference, + _id_addQuicHint, + jni.JniCallType.objectType, + [string.reference, jni.JValueInt(i), jni.JValueInt(i1)]).object); static final _id_addPublicKeyPins = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"addPublicKeyPins", - r"(Ljava/lang/String;Ljava/util/Set;ZLjava/util/Date;)Lorg/chromium/net/CronetEngine$Builder;"); + r'addPublicKeyPins', + r'(Ljava/lang/String;Ljava/util/Set;ZLjava/util/Date;)Lorg/chromium/net/CronetEngine$Builder;'); /// from: public org.chromium.net.CronetEngine$Builder addPublicKeyPins(java.lang.String string, java.util.Set set, boolean z, java.util.Date date) /// The returned object must be released after use, by calling the [release] method. @@ -2656,168 +2468,156 @@ class CronetEngine_Builder extends jni.JObject { jni.JSet> set0, bool z, jni.JObject date, - ) { - return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs( - reference, _id_addPublicKeyPins, jni.JniCallType.objectType, [ - string.reference, - set0.reference, - z ? 1 : 0, - date.reference - ]).object); - } + ) => + const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs( + reference, _id_addPublicKeyPins, jni.JniCallType.objectType, [ + string.reference, + set0.reference, + z ? 1 : 0, + date.reference + ]).object); static final _id_enablePublicKeyPinningBypassForLocalTrustAnchors = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"enablePublicKeyPinningBypassForLocalTrustAnchors", - r"(Z)Lorg/chromium/net/CronetEngine$Builder;"); + r'enablePublicKeyPinningBypassForLocalTrustAnchors', + r'(Z)Lorg/chromium/net/CronetEngine$Builder;'); /// from: public org.chromium.net.CronetEngine$Builder enablePublicKeyPinningBypassForLocalTrustAnchors(boolean z) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder enablePublicKeyPinningBypassForLocalTrustAnchors( bool z, - ) { - return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs( - reference, - _id_enablePublicKeyPinningBypassForLocalTrustAnchors, - jni.JniCallType.objectType, - [z ? 1 : 0]).object); - } + ) => + const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs( + reference, + _id_enablePublicKeyPinningBypassForLocalTrustAnchors, + jni.JniCallType.objectType, + [z ? 1 : 0]).object); static final _id_setThreadPriority = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"setThreadPriority", - r"(I)Lorg/chromium/net/CronetEngine$Builder;"); + r'setThreadPriority', + r'(I)Lorg/chromium/net/CronetEngine$Builder;'); /// from: public org.chromium.net.CronetEngine$Builder setThreadPriority(int i) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder setThreadPriority( int i, - ) { - return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setThreadPriority, - jni.JniCallType.objectType, [jni.JValueInt(i)]).object); - } + ) => + const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setThreadPriority, + jni.JniCallType.objectType, [jni.JValueInt(i)]).object); static final _id_enableNetworkQualityEstimator = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"enableNetworkQualityEstimator", - r"(Z)Lorg/chromium/net/CronetEngine$Builder;"); + .getMethodIDOf(_class.reference, r'enableNetworkQualityEstimator', + r'(Z)Lorg/chromium/net/CronetEngine$Builder;'); /// from: public org.chromium.net.CronetEngine$Builder enableNetworkQualityEstimator(boolean z) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder enableNetworkQualityEstimator( bool z, - ) { - return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_enableNetworkQualityEstimator, - jni.JniCallType.objectType, [z ? 1 : 0]).object); - } + ) => + const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_enableNetworkQualityEstimator, + jni.JniCallType.objectType, [z ? 1 : 0]).object); static final _id_setQuicOptions = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"setQuicOptions", - r"(Lorg/chromium/net/QuicOptions;)Lorg/chromium/net/CronetEngine$Builder;"); + r'setQuicOptions', + r'(Lorg/chromium/net/QuicOptions;)Lorg/chromium/net/CronetEngine$Builder;'); /// from: public org.chromium.net.CronetEngine$Builder setQuicOptions(org.chromium.net.QuicOptions quicOptions) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder setQuicOptions( jni.JObject quicOptions, - ) { - return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setQuicOptions, - jni.JniCallType.objectType, [quicOptions.reference]).object); - } + ) => + const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setQuicOptions, + jni.JniCallType.objectType, [quicOptions.reference]).object); static final _id_setQuicOptions1 = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"setQuicOptions", - r"(Lorg/chromium/net/QuicOptions$Builder;)Lorg/chromium/net/CronetEngine$Builder;"); + r'setQuicOptions', + r'(Lorg/chromium/net/QuicOptions$Builder;)Lorg/chromium/net/CronetEngine$Builder;'); /// from: public org.chromium.net.CronetEngine$Builder setQuicOptions(org.chromium.net.QuicOptions$Builder builder) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder setQuicOptions1( jni.JObject builder, - ) { - return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setQuicOptions1, - jni.JniCallType.objectType, [builder.reference]).object); - } + ) => + const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setQuicOptions1, + jni.JniCallType.objectType, [builder.reference]).object); static final _id_setDnsOptions = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"setDnsOptions", - r"(Lorg/chromium/net/DnsOptions;)Lorg/chromium/net/CronetEngine$Builder;"); + r'setDnsOptions', + r'(Lorg/chromium/net/DnsOptions;)Lorg/chromium/net/CronetEngine$Builder;'); /// from: public org.chromium.net.CronetEngine$Builder setDnsOptions(org.chromium.net.DnsOptions dnsOptions) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder setDnsOptions( jni.JObject dnsOptions, - ) { - return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setDnsOptions, - jni.JniCallType.objectType, [dnsOptions.reference]).object); - } + ) => + const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setDnsOptions, + jni.JniCallType.objectType, [dnsOptions.reference]).object); static final _id_setDnsOptions1 = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"setDnsOptions", - r"(Lorg/chromium/net/DnsOptions$Builder;)Lorg/chromium/net/CronetEngine$Builder;"); + r'setDnsOptions', + r'(Lorg/chromium/net/DnsOptions$Builder;)Lorg/chromium/net/CronetEngine$Builder;'); /// from: public org.chromium.net.CronetEngine$Builder setDnsOptions(org.chromium.net.DnsOptions$Builder builder) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder setDnsOptions1( jni.JObject builder, - ) { - return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setDnsOptions1, - jni.JniCallType.objectType, [builder.reference]).object); - } + ) => + const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setDnsOptions1, + jni.JniCallType.objectType, [builder.reference]).object); static final _id_setConnectionMigrationOptions = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"setConnectionMigrationOptions", - r"(Lorg/chromium/net/ConnectionMigrationOptions;)Lorg/chromium/net/CronetEngine$Builder;"); + r'setConnectionMigrationOptions', + r'(Lorg/chromium/net/ConnectionMigrationOptions;)Lorg/chromium/net/CronetEngine$Builder;'); /// from: public org.chromium.net.CronetEngine$Builder setConnectionMigrationOptions(org.chromium.net.ConnectionMigrationOptions connectionMigrationOptions) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder setConnectionMigrationOptions( jni.JObject connectionMigrationOptions, - ) { - return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs( - reference, - _id_setConnectionMigrationOptions, - jni.JniCallType.objectType, - [connectionMigrationOptions.reference]).object); - } + ) => + const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs( + reference, + _id_setConnectionMigrationOptions, + jni.JniCallType.objectType, + [connectionMigrationOptions.reference]).object); static final _id_setConnectionMigrationOptions1 = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"setConnectionMigrationOptions", - r"(Lorg/chromium/net/ConnectionMigrationOptions$Builder;)Lorg/chromium/net/CronetEngine$Builder;"); + r'setConnectionMigrationOptions', + r'(Lorg/chromium/net/ConnectionMigrationOptions$Builder;)Lorg/chromium/net/CronetEngine$Builder;'); /// from: public org.chromium.net.CronetEngine$Builder setConnectionMigrationOptions(org.chromium.net.ConnectionMigrationOptions$Builder builder) /// The returned object must be released after use, by calling the [release] method. CronetEngine_Builder setConnectionMigrationOptions1( jni.JObject builder, - ) { - return const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setConnectionMigrationOptions1, - jni.JniCallType.objectType, [builder.reference]).object); - } + ) => + const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setConnectionMigrationOptions1, + jni.JniCallType.objectType, [builder.reference]).object); static final _id_build = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"build", r"()Lorg/chromium/net/CronetEngine;"); + _class.reference, r'build', r'()Lorg/chromium/net/CronetEngine;'); /// from: public org.chromium.net.CronetEngine build() /// The returned object must be released after use, by calling the [release] method. - CronetEngine build() { - return const $CronetEngineType().fromRef(jni.Jni.accessors - .callMethodWithArgs( - reference, _id_build, jni.JniCallType.objectType, []).object); - } + CronetEngine build() => + const $CronetEngineType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_build, jni.JniCallType.objectType, []).object); } final class $CronetEngine_BuilderType @@ -2825,7 +2625,7 @@ final class $CronetEngine_BuilderType const $CronetEngine_BuilderType(); @override - String get signature => r"Lorg/chromium/net/CronetEngine$Builder;"; + String get signature => r'Lorg/chromium/net/CronetEngine$Builder;'; @override CronetEngine_Builder fromRef(jni.JObjectPtr ref) => @@ -2841,10 +2641,9 @@ final class $CronetEngine_BuilderType int get hashCode => ($CronetEngine_BuilderType).hashCode; @override - bool operator ==(Object other) { - return other.runtimeType == ($CronetEngine_BuilderType) && - other is $CronetEngine_BuilderType; - } + bool operator ==(Object other) => + other.runtimeType == $CronetEngine_BuilderType && + other is $CronetEngine_BuilderType; } /// from: org.chromium.net.CronetEngine @@ -2853,10 +2652,10 @@ class CronetEngine extends jni.JObject { late final jni.JObjType $type = type; CronetEngine.fromRef( - jni.JObjectPtr ref, - ) : super.fromRef(ref); + super.ref, + ) : super.fromRef(); - static final _class = jni.Jni.findJClass(r"org/chromium/net/CronetEngine"); + static final _class = jni.Jni.findJClass(r'org/chromium/net/CronetEngine'); /// The type which includes information such as the signature of this class. static const type = $CronetEngineType(); @@ -2886,105 +2685,91 @@ class CronetEngine extends jni.JObject { static const EFFECTIVE_CONNECTION_TYPE_4G = 5; static final _id_new0 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"", r"()V"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'', r'()V'); /// from: public void () /// The returned object must be released after use, by calling the [release] method. - factory CronetEngine() { - return CronetEngine.fromRef(jni.Jni.accessors - .newObjectWithArgs(_class.reference, _id_new0, []).object); - } + factory CronetEngine() => CronetEngine.fromRef(jni.Jni.accessors + .newObjectWithArgs(_class.reference, _id_new0, []).object); static final _id_getVersionString = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"getVersionString", r"()Ljava/lang/String;"); + _class.reference, r'getVersionString', r'()Ljava/lang/String;'); /// from: public abstract java.lang.String getVersionString() /// The returned object must be released after use, by calling the [release] method. - jni.JString getVersionString() { - return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_getVersionString, - jni.JniCallType.objectType, []).object); - } + jni.JString getVersionString() => + const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_getVersionString, + jni.JniCallType.objectType, []).object); static final _id_shutdown = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"shutdown", r"()V"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'shutdown', r'()V'); /// from: public abstract void shutdown() - void shutdown() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_shutdown, jni.JniCallType.voidType, []).check(); - } + void shutdown() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_shutdown, jni.JniCallType.voidType, []).check(); static final _id_startNetLogToFile = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"startNetLogToFile", r"(Ljava/lang/String;Z)V"); + _class.reference, r'startNetLogToFile', r'(Ljava/lang/String;Z)V'); /// from: public abstract void startNetLogToFile(java.lang.String string, boolean z) void startNetLogToFile( jni.JString string, bool z, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, - _id_startNetLogToFile, - jni.JniCallType.voidType, - [string.reference, z ? 1 : 0]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs(reference, _id_startNetLogToFile, + jni.JniCallType.voidType, [string.reference, z ? 1 : 0]).check(); static final _id_stopNetLog = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"stopNetLog", r"()V"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'stopNetLog', r'()V'); /// from: public abstract void stopNetLog() - void stopNetLog() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_stopNetLog, jni.JniCallType.voidType, []).check(); - } + void stopNetLog() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_stopNetLog, jni.JniCallType.voidType, []).check(); static final _id_getGlobalMetricsDeltas = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"getGlobalMetricsDeltas", r"()[B"); + .getMethodIDOf(_class.reference, r'getGlobalMetricsDeltas', r'()[B'); /// from: public abstract byte[] getGlobalMetricsDeltas() /// The returned object must be released after use, by calling the [release] method. - jni.JArray getGlobalMetricsDeltas() { - return const jni.JArrayType(jni.jbyteType()).fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_getGlobalMetricsDeltas, - jni.JniCallType.objectType, []).object); - } + jni.JArray getGlobalMetricsDeltas() => + const jni.JArrayType(jni.jbyteType()).fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_getGlobalMetricsDeltas, + jni.JniCallType.objectType, []).object); static final _id_openConnection = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"openConnection", - r"(Ljava/net/URL;)Ljava/net/URLConnection;"); + r'openConnection', + r'(Ljava/net/URL;)Ljava/net/URLConnection;'); /// from: public abstract java.net.URLConnection openConnection(java.net.URL uRL) /// The returned object must be released after use, by calling the [release] method. jni.JObject openConnection( URL uRL, - ) { - return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_openConnection, - jni.JniCallType.objectType, - [uRL.reference]).object); - } + ) => + const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_openConnection, + jni.JniCallType.objectType, + [uRL.reference]).object); static final _id_createURLStreamHandlerFactory = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"createURLStreamHandlerFactory", - r"()Ljava/net/URLStreamHandlerFactory;"); + .getMethodIDOf(_class.reference, r'createURLStreamHandlerFactory', + r'()Ljava/net/URLStreamHandlerFactory;'); /// from: public abstract java.net.URLStreamHandlerFactory createURLStreamHandlerFactory() /// The returned object must be released after use, by calling the [release] method. - jni.JObject createURLStreamHandlerFactory() { - return const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_createURLStreamHandlerFactory, - jni.JniCallType.objectType, []).object); - } + jni.JObject createURLStreamHandlerFactory() => + const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_createURLStreamHandlerFactory, + jni.JniCallType.objectType, []).object); static final _id_newUrlRequestBuilder = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"newUrlRequestBuilder", - r"(Ljava/lang/String;Lorg/chromium/net/UrlRequest$Callback;Ljava/util/concurrent/Executor;)Lorg/chromium/net/UrlRequest$Builder;"); + r'newUrlRequestBuilder', + r'(Ljava/lang/String;Lorg/chromium/net/UrlRequest$Callback;Ljava/util/concurrent/Executor;)Lorg/chromium/net/UrlRequest$Builder;'); /// from: public abstract org.chromium.net.UrlRequest$Builder newUrlRequestBuilder(java.lang.String string, org.chromium.net.UrlRequest$Callback callback, java.util.concurrent.Executor executor) /// The returned object must be released after use, by calling the [release] method. @@ -2992,194 +2777,180 @@ class CronetEngine extends jni.JObject { jni.JString string, UrlRequest_Callback callback, jni.JObject executor, - ) { - return const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs( - reference, - _id_newUrlRequestBuilder, - jni.JniCallType.objectType, - [string.reference, callback.reference, executor.reference]).object); - } + ) => + const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs( + reference, _id_newUrlRequestBuilder, jni.JniCallType.objectType, [ + string.reference, + callback.reference, + executor.reference + ]).object); static final _id_getActiveRequestCount = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"getActiveRequestCount", r"()I"); + .getMethodIDOf(_class.reference, r'getActiveRequestCount', r'()I'); /// from: public int getActiveRequestCount() - int getActiveRequestCount() { - return jni.Jni.accessors.callMethodWithArgs(reference, - _id_getActiveRequestCount, jni.JniCallType.intType, []).integer; - } + int getActiveRequestCount() => jni.Jni.accessors.callMethodWithArgs(reference, + _id_getActiveRequestCount, jni.JniCallType.intType, []).integer; static final _id_addRequestFinishedListener = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"addRequestFinishedListener", - r"(Lorg/chromium/net/RequestFinishedInfo$Listener;)V"); + r'addRequestFinishedListener', + r'(Lorg/chromium/net/RequestFinishedInfo$Listener;)V'); /// from: public void addRequestFinishedListener(org.chromium.net.RequestFinishedInfo$Listener listener) void addRequestFinishedListener( jni.JObject listener, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, - _id_addRequestFinishedListener, - jni.JniCallType.voidType, - [listener.reference]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs( + reference, + _id_addRequestFinishedListener, + jni.JniCallType.voidType, + [listener.reference]).check(); static final _id_removeRequestFinishedListener = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"removeRequestFinishedListener", - r"(Lorg/chromium/net/RequestFinishedInfo$Listener;)V"); + .getMethodIDOf(_class.reference, r'removeRequestFinishedListener', + r'(Lorg/chromium/net/RequestFinishedInfo$Listener;)V'); /// from: public void removeRequestFinishedListener(org.chromium.net.RequestFinishedInfo$Listener listener) void removeRequestFinishedListener( jni.JObject listener, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, - _id_removeRequestFinishedListener, - jni.JniCallType.voidType, - [listener.reference]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs( + reference, + _id_removeRequestFinishedListener, + jni.JniCallType.voidType, + [listener.reference]).check(); static final _id_getHttpRttMs = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"getHttpRttMs", r"()I"); + .getMethodIDOf(_class.reference, r'getHttpRttMs', r'()I'); /// from: public int getHttpRttMs() - int getHttpRttMs() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_getHttpRttMs, jni.JniCallType.intType, []).integer; - } + int getHttpRttMs() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_getHttpRttMs, jni.JniCallType.intType, []).integer; static final _id_getTransportRttMs = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"getTransportRttMs", r"()I"); + .getMethodIDOf(_class.reference, r'getTransportRttMs', r'()I'); /// from: public int getTransportRttMs() - int getTransportRttMs() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_getTransportRttMs, jni.JniCallType.intType, []).integer; - } + int getTransportRttMs() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_getTransportRttMs, jni.JniCallType.intType, []).integer; static final _id_getDownstreamThroughputKbps = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"getDownstreamThroughputKbps", r"()I"); + .getMethodIDOf(_class.reference, r'getDownstreamThroughputKbps', r'()I'); /// from: public int getDownstreamThroughputKbps() - int getDownstreamThroughputKbps() { - return jni.Jni.accessors.callMethodWithArgs(reference, - _id_getDownstreamThroughputKbps, jni.JniCallType.intType, []).integer; - } + int getDownstreamThroughputKbps() => jni.Jni.accessors.callMethodWithArgs( + reference, + _id_getDownstreamThroughputKbps, + jni.JniCallType.intType, []).integer; static final _id_startNetLogToDisk = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"startNetLogToDisk", r"(Ljava/lang/String;ZI)V"); + _class.reference, r'startNetLogToDisk', r'(Ljava/lang/String;ZI)V'); /// from: public void startNetLogToDisk(java.lang.String string, boolean z, int i) void startNetLogToDisk( jni.JString string, bool z, int i, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, - _id_startNetLogToDisk, - jni.JniCallType.voidType, - [string.reference, z ? 1 : 0, jni.JValueInt(i)]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs( + reference, + _id_startNetLogToDisk, + jni.JniCallType.voidType, + [string.reference, z ? 1 : 0, jni.JValueInt(i)]).check(); static final _id_getEffectiveConnectionType = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"getEffectiveConnectionType", r"()I"); + .getMethodIDOf(_class.reference, r'getEffectiveConnectionType', r'()I'); /// from: public int getEffectiveConnectionType() - int getEffectiveConnectionType() { - return jni.Jni.accessors.callMethodWithArgs(reference, - _id_getEffectiveConnectionType, jni.JniCallType.intType, []).integer; - } + int getEffectiveConnectionType() => jni.Jni.accessors.callMethodWithArgs( + reference, + _id_getEffectiveConnectionType, + jni.JniCallType.intType, []).integer; static final _id_configureNetworkQualityEstimatorForTesting = jni.Jni.accessors.getMethodIDOf(_class.reference, - r"configureNetworkQualityEstimatorForTesting", r"(ZZZ)V"); + r'configureNetworkQualityEstimatorForTesting', r'(ZZZ)V'); /// from: public void configureNetworkQualityEstimatorForTesting(boolean z, boolean z1, boolean z2) void configureNetworkQualityEstimatorForTesting( bool z, bool z1, bool z2, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, - _id_configureNetworkQualityEstimatorForTesting, - jni.JniCallType.voidType, - [z ? 1 : 0, z1 ? 1 : 0, z2 ? 1 : 0]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs( + reference, + _id_configureNetworkQualityEstimatorForTesting, + jni.JniCallType.voidType, + [z ? 1 : 0, z1 ? 1 : 0, z2 ? 1 : 0]).check(); static final _id_addRttListener = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"addRttListener", - r"(Lorg/chromium/net/NetworkQualityRttListener;)V"); + r'addRttListener', + r'(Lorg/chromium/net/NetworkQualityRttListener;)V'); /// from: public void addRttListener(org.chromium.net.NetworkQualityRttListener networkQualityRttListener) void addRttListener( jni.JObject networkQualityRttListener, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, - _id_addRttListener, - jni.JniCallType.voidType, - [networkQualityRttListener.reference]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs( + reference, + _id_addRttListener, + jni.JniCallType.voidType, + [networkQualityRttListener.reference]).check(); static final _id_removeRttListener = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"removeRttListener", - r"(Lorg/chromium/net/NetworkQualityRttListener;)V"); + r'removeRttListener', + r'(Lorg/chromium/net/NetworkQualityRttListener;)V'); /// from: public void removeRttListener(org.chromium.net.NetworkQualityRttListener networkQualityRttListener) void removeRttListener( jni.JObject networkQualityRttListener, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, - _id_removeRttListener, - jni.JniCallType.voidType, - [networkQualityRttListener.reference]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs( + reference, + _id_removeRttListener, + jni.JniCallType.voidType, + [networkQualityRttListener.reference]).check(); static final _id_addThroughputListener = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"addThroughputListener", - r"(Lorg/chromium/net/NetworkQualityThroughputListener;)V"); + r'addThroughputListener', + r'(Lorg/chromium/net/NetworkQualityThroughputListener;)V'); /// from: public void addThroughputListener(org.chromium.net.NetworkQualityThroughputListener networkQualityThroughputListener) void addThroughputListener( jni.JObject networkQualityThroughputListener, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, - _id_addThroughputListener, - jni.JniCallType.voidType, - [networkQualityThroughputListener.reference]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs( + reference, + _id_addThroughputListener, + jni.JniCallType.voidType, + [networkQualityThroughputListener.reference]).check(); static final _id_removeThroughputListener = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"removeThroughputListener", - r"(Lorg/chromium/net/NetworkQualityThroughputListener;)V"); + r'removeThroughputListener', + r'(Lorg/chromium/net/NetworkQualityThroughputListener;)V'); /// from: public void removeThroughputListener(org.chromium.net.NetworkQualityThroughputListener networkQualityThroughputListener) void removeThroughputListener( jni.JObject networkQualityThroughputListener, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, - _id_removeThroughputListener, - jni.JniCallType.voidType, - [networkQualityThroughputListener.reference]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs( + reference, + _id_removeThroughputListener, + jni.JniCallType.voidType, + [networkQualityThroughputListener.reference]).check(); } final class $CronetEngineType extends jni.JObjType { const $CronetEngineType(); @override - String get signature => r"Lorg/chromium/net/CronetEngine;"; + String get signature => r'Lorg/chromium/net/CronetEngine;'; @override CronetEngine fromRef(jni.JObjectPtr ref) => CronetEngine.fromRef(ref); @@ -3194,10 +2965,8 @@ final class $CronetEngineType extends jni.JObjType { int get hashCode => ($CronetEngineType).hashCode; @override - bool operator ==(Object other) { - return other.runtimeType == ($CronetEngineType) && - other is $CronetEngineType; - } + bool operator ==(Object other) => + other.runtimeType == $CronetEngineType && other is $CronetEngineType; } /// from: org.chromium.net.CronetException @@ -3206,34 +2975,33 @@ class CronetException extends jni.JObject { late final jni.JObjType $type = type; CronetException.fromRef( - jni.JObjectPtr ref, - ) : super.fromRef(ref); + super.ref, + ) : super.fromRef(); - static final _class = jni.Jni.findJClass(r"org/chromium/net/CronetException"); + static final _class = jni.Jni.findJClass(r'org/chromium/net/CronetException'); /// The type which includes information such as the signature of this class. static const type = $CronetExceptionType(); static final _id_new0 = jni.Jni.accessors.getMethodIDOf(_class.reference, - r"", r"(Ljava/lang/String;Ljava/lang/Throwable;)V"); + r'', r'(Ljava/lang/String;Ljava/lang/Throwable;)V'); /// from: protected void (java.lang.String string, java.lang.Throwable throwable) /// The returned object must be released after use, by calling the [release] method. factory CronetException( jni.JString string, jni.JObject throwable, - ) { - return CronetException.fromRef(jni.Jni.accessors.newObjectWithArgs( - _class.reference, - _id_new0, - [string.reference, throwable.reference]).object); - } + ) => + CronetException.fromRef(jni.Jni.accessors.newObjectWithArgs( + _class.reference, + _id_new0, + [string.reference, throwable.reference]).object); } final class $CronetExceptionType extends jni.JObjType { const $CronetExceptionType(); @override - String get signature => r"Lorg/chromium/net/CronetException;"; + String get signature => r'Lorg/chromium/net/CronetException;'; @override CronetException fromRef(jni.JObjectPtr ref) => CronetException.fromRef(ref); @@ -3248,10 +3016,9 @@ final class $CronetExceptionType extends jni.JObjType { int get hashCode => ($CronetExceptionType).hashCode; @override - bool operator ==(Object other) { - return other.runtimeType == ($CronetExceptionType) && - other is $CronetExceptionType; - } + bool operator ==(Object other) => + other.runtimeType == $CronetExceptionType && + other is $CronetExceptionType; } /// from: org.chromium.net.UploadDataProviders @@ -3260,66 +3027,63 @@ class UploadDataProviders extends jni.JObject { late final jni.JObjType $type = type; UploadDataProviders.fromRef( - jni.JObjectPtr ref, - ) : super.fromRef(ref); + super.ref, + ) : super.fromRef(); static final _class = - jni.Jni.findJClass(r"org/chromium/net/UploadDataProviders"); + jni.Jni.findJClass(r'org/chromium/net/UploadDataProviders'); /// The type which includes information such as the signature of this class. static const type = $UploadDataProvidersType(); static final _id_create = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r"create", - r"(Ljava/io/File;)Lorg/chromium/net/UploadDataProvider;"); + r'create', + r'(Ljava/io/File;)Lorg/chromium/net/UploadDataProvider;'); /// from: static public org.chromium.net.UploadDataProvider create(java.io.File file) /// The returned object must be released after use, by calling the [release] method. static jni.JObject create( jni.JObject file, - ) { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_create, - jni.JniCallType.objectType, [file.reference]).object); - } + ) => + const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_create, + jni.JniCallType.objectType, [file.reference]).object); static final _id_create1 = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r"create", - r"(Landroid/os/ParcelFileDescriptor;)Lorg/chromium/net/UploadDataProvider;"); + r'create', + r'(Landroid/os/ParcelFileDescriptor;)Lorg/chromium/net/UploadDataProvider;'); /// from: static public org.chromium.net.UploadDataProvider create(android.os.ParcelFileDescriptor parcelFileDescriptor) /// The returned object must be released after use, by calling the [release] method. static jni.JObject create1( jni.JObject parcelFileDescriptor, - ) { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_create1, - jni.JniCallType.objectType, - [parcelFileDescriptor.reference]).object); - } + ) => + const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs( + _class.reference, + _id_create1, + jni.JniCallType.objectType, + [parcelFileDescriptor.reference]).object); static final _id_create2 = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r"create", - r"(Ljava/nio/ByteBuffer;)Lorg/chromium/net/UploadDataProvider;"); + r'create', + r'(Ljava/nio/ByteBuffer;)Lorg/chromium/net/UploadDataProvider;'); /// from: static public org.chromium.net.UploadDataProvider create(java.nio.ByteBuffer byteBuffer) /// The returned object must be released after use, by calling the [release] method. static jni.JObject create2( ByteBuffer byteBuffer, - ) { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_create2, - jni.JniCallType.objectType, [byteBuffer.reference]).object); - } + ) => + const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_create2, + jni.JniCallType.objectType, [byteBuffer.reference]).object); static final _id_create3 = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r"create", - r"([BII)Lorg/chromium/net/UploadDataProvider;"); + r'create', + r'([BII)Lorg/chromium/net/UploadDataProvider;'); /// from: static public org.chromium.net.UploadDataProvider create(byte[] bs, int i, int i1) /// The returned object must be released after use, by calling the [release] method. @@ -3327,36 +3091,34 @@ class UploadDataProviders extends jni.JObject { jni.JArray bs, int i, int i1, - ) { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_create3, - jni.JniCallType.objectType, - [bs.reference, jni.JValueInt(i), jni.JValueInt(i1)]).object); - } + ) => + const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs( + _class.reference, + _id_create3, + jni.JniCallType.objectType, + [bs.reference, jni.JValueInt(i), jni.JValueInt(i1)]).object); static final _id_create4 = jni.Jni.accessors.getStaticMethodIDOf( _class.reference, - r"create", - r"([B)Lorg/chromium/net/UploadDataProvider;"); + r'create', + r'([B)Lorg/chromium/net/UploadDataProvider;'); /// from: static public org.chromium.net.UploadDataProvider create(byte[] bs) /// The returned object must be released after use, by calling the [release] method. static jni.JObject create4( jni.JArray bs, - ) { - return const jni.JObjectType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_create4, - jni.JniCallType.objectType, [bs.reference]).object); - } + ) => + const jni.JObjectType().fromRef(jni.Jni.accessors + .callStaticMethodWithArgs(_class.reference, _id_create4, + jni.JniCallType.objectType, [bs.reference]).object); } final class $UploadDataProvidersType extends jni.JObjType { const $UploadDataProvidersType(); @override - String get signature => r"Lorg/chromium/net/UploadDataProviders;"; + String get signature => r'Lorg/chromium/net/UploadDataProviders;'; @override UploadDataProviders fromRef(jni.JObjectPtr ref) => @@ -3372,10 +3134,9 @@ final class $UploadDataProvidersType extends jni.JObjType { int get hashCode => ($UploadDataProvidersType).hashCode; @override - bool operator ==(Object other) { - return other.runtimeType == ($UploadDataProvidersType) && - other is $UploadDataProvidersType; - } + bool operator ==(Object other) => + other.runtimeType == $UploadDataProvidersType && + other is $UploadDataProvidersType; } /// from: org.chromium.net.UrlRequest$Builder @@ -3384,11 +3145,11 @@ class UrlRequest_Builder extends jni.JObject { late final jni.JObjType $type = type; UrlRequest_Builder.fromRef( - jni.JObjectPtr ref, - ) : super.fromRef(ref); + super.ref, + ) : super.fromRef(); static final _class = - jni.Jni.findJClass(r"org/chromium/net/UrlRequest$Builder"); + jni.Jni.findJClass(r'org/chromium/net/UrlRequest$Builder'); /// The type which includes information such as the signature of this class. static const type = $UrlRequest_BuilderType(); @@ -3409,185 +3170,170 @@ class UrlRequest_Builder extends jni.JObject { static const REQUEST_PRIORITY_HIGHEST = 4; static final _id_new0 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"", r"()V"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'', r'()V'); /// from: public void () /// The returned object must be released after use, by calling the [release] method. - factory UrlRequest_Builder() { - return UrlRequest_Builder.fromRef(jni.Jni.accessors - .newObjectWithArgs(_class.reference, _id_new0, []).object); - } + factory UrlRequest_Builder() => UrlRequest_Builder.fromRef(jni.Jni.accessors + .newObjectWithArgs(_class.reference, _id_new0, []).object); static final _id_setHttpMethod = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"setHttpMethod", - r"(Ljava/lang/String;)Lorg/chromium/net/UrlRequest$Builder;"); + r'setHttpMethod', + r'(Ljava/lang/String;)Lorg/chromium/net/UrlRequest$Builder;'); /// from: public abstract org.chromium.net.UrlRequest$Builder setHttpMethod(java.lang.String string) /// The returned object must be released after use, by calling the [release] method. UrlRequest_Builder setHttpMethod( jni.JString string, - ) { - return const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setHttpMethod, - jni.JniCallType.objectType, [string.reference]).object); - } + ) => + const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setHttpMethod, + jni.JniCallType.objectType, [string.reference]).object); static final _id_addHeader = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"addHeader", - r"(Ljava/lang/String;Ljava/lang/String;)Lorg/chromium/net/UrlRequest$Builder;"); + r'addHeader', + r'(Ljava/lang/String;Ljava/lang/String;)Lorg/chromium/net/UrlRequest$Builder;'); /// from: public abstract org.chromium.net.UrlRequest$Builder addHeader(java.lang.String string, java.lang.String string1) /// The returned object must be released after use, by calling the [release] method. UrlRequest_Builder addHeader( jni.JString string, jni.JString string1, - ) { - return const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs( - reference, - _id_addHeader, - jni.JniCallType.objectType, - [string.reference, string1.reference]).object); - } + ) => + const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs( + reference, + _id_addHeader, + jni.JniCallType.objectType, + [string.reference, string1.reference]).object); static final _id_disableCache = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"disableCache", - r"()Lorg/chromium/net/UrlRequest$Builder;"); + r'disableCache', + r'()Lorg/chromium/net/UrlRequest$Builder;'); /// from: public abstract org.chromium.net.UrlRequest$Builder disableCache() /// The returned object must be released after use, by calling the [release] method. - UrlRequest_Builder disableCache() { - return const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_disableCache, - jni.JniCallType.objectType, []).object); - } + UrlRequest_Builder disableCache() => const $UrlRequest_BuilderType().fromRef( + jni.Jni.accessors.callMethodWithArgs( + reference, _id_disableCache, jni.JniCallType.objectType, []).object); static final _id_setPriority = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"setPriority", - r"(I)Lorg/chromium/net/UrlRequest$Builder;"); + r'setPriority', + r'(I)Lorg/chromium/net/UrlRequest$Builder;'); /// from: public abstract org.chromium.net.UrlRequest$Builder setPriority(int i) /// The returned object must be released after use, by calling the [release] method. UrlRequest_Builder setPriority( int i, - ) { - return const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setPriority, - jni.JniCallType.objectType, [jni.JValueInt(i)]).object); - } + ) => + const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setPriority, + jni.JniCallType.objectType, [jni.JValueInt(i)]).object); static final _id_setUploadDataProvider = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"setUploadDataProvider", - r"(Lorg/chromium/net/UploadDataProvider;Ljava/util/concurrent/Executor;)Lorg/chromium/net/UrlRequest$Builder;"); + r'setUploadDataProvider', + r'(Lorg/chromium/net/UploadDataProvider;Ljava/util/concurrent/Executor;)Lorg/chromium/net/UrlRequest$Builder;'); /// from: public abstract org.chromium.net.UrlRequest$Builder setUploadDataProvider(org.chromium.net.UploadDataProvider uploadDataProvider, java.util.concurrent.Executor executor) /// The returned object must be released after use, by calling the [release] method. UrlRequest_Builder setUploadDataProvider( jni.JObject uploadDataProvider, jni.JObject executor, - ) { - return const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs( - reference, - _id_setUploadDataProvider, - jni.JniCallType.objectType, - [uploadDataProvider.reference, executor.reference]).object); - } + ) => + const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs( + reference, + _id_setUploadDataProvider, + jni.JniCallType.objectType, + [uploadDataProvider.reference, executor.reference]).object); static final _id_allowDirectExecutor = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"allowDirectExecutor", - r"()Lorg/chromium/net/UrlRequest$Builder;"); + r'allowDirectExecutor', + r'()Lorg/chromium/net/UrlRequest$Builder;'); /// from: public abstract org.chromium.net.UrlRequest$Builder allowDirectExecutor() /// The returned object must be released after use, by calling the [release] method. - UrlRequest_Builder allowDirectExecutor() { - return const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_allowDirectExecutor, - jni.JniCallType.objectType, []).object); - } + UrlRequest_Builder allowDirectExecutor() => const $UrlRequest_BuilderType() + .fromRef(jni.Jni.accessors.callMethodWithArgs(reference, + _id_allowDirectExecutor, jni.JniCallType.objectType, []).object); static final _id_addRequestAnnotation = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"addRequestAnnotation", - r"(Ljava/lang/Object;)Lorg/chromium/net/UrlRequest$Builder;"); + r'addRequestAnnotation', + r'(Ljava/lang/Object;)Lorg/chromium/net/UrlRequest$Builder;'); /// from: public org.chromium.net.UrlRequest$Builder addRequestAnnotation(java.lang.Object object) /// The returned object must be released after use, by calling the [release] method. UrlRequest_Builder addRequestAnnotation( jni.JObject object, - ) { - return const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_addRequestAnnotation, - jni.JniCallType.objectType, [object.reference]).object); - } + ) => + const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_addRequestAnnotation, + jni.JniCallType.objectType, [object.reference]).object); static final _id_setTrafficStatsTag = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"setTrafficStatsTag", - r"(I)Lorg/chromium/net/UrlRequest$Builder;"); + r'setTrafficStatsTag', + r'(I)Lorg/chromium/net/UrlRequest$Builder;'); /// from: public org.chromium.net.UrlRequest$Builder setTrafficStatsTag(int i) /// The returned object must be released after use, by calling the [release] method. UrlRequest_Builder setTrafficStatsTag( int i, - ) { - return const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setTrafficStatsTag, - jni.JniCallType.objectType, [jni.JValueInt(i)]).object); - } + ) => + const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setTrafficStatsTag, + jni.JniCallType.objectType, [jni.JValueInt(i)]).object); static final _id_setTrafficStatsUid = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"setTrafficStatsUid", - r"(I)Lorg/chromium/net/UrlRequest$Builder;"); + r'setTrafficStatsUid', + r'(I)Lorg/chromium/net/UrlRequest$Builder;'); /// from: public org.chromium.net.UrlRequest$Builder setTrafficStatsUid(int i) /// The returned object must be released after use, by calling the [release] method. UrlRequest_Builder setTrafficStatsUid( int i, - ) { - return const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setTrafficStatsUid, - jni.JniCallType.objectType, [jni.JValueInt(i)]).object); - } + ) => + const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setTrafficStatsUid, + jni.JniCallType.objectType, [jni.JValueInt(i)]).object); static final _id_setRequestFinishedListener = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"setRequestFinishedListener", - r"(Lorg/chromium/net/RequestFinishedInfo$Listener;)Lorg/chromium/net/UrlRequest$Builder;"); + r'setRequestFinishedListener', + r'(Lorg/chromium/net/RequestFinishedInfo$Listener;)Lorg/chromium/net/UrlRequest$Builder;'); /// from: public org.chromium.net.UrlRequest$Builder setRequestFinishedListener(org.chromium.net.RequestFinishedInfo$Listener listener) /// The returned object must be released after use, by calling the [release] method. UrlRequest_Builder setRequestFinishedListener( jni.JObject listener, - ) { - return const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setRequestFinishedListener, - jni.JniCallType.objectType, [listener.reference]).object); - } + ) => + const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_setRequestFinishedListener, + jni.JniCallType.objectType, [listener.reference]).object); static final _id_build = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"build", r"()Lorg/chromium/net/UrlRequest;"); + _class.reference, r'build', r'()Lorg/chromium/net/UrlRequest;'); /// from: public abstract org.chromium.net.UrlRequest build() /// The returned object must be released after use, by calling the [release] method. - UrlRequest build() { - return const $UrlRequestType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_build, jni.JniCallType.objectType, []).object); - } + UrlRequest build() => + const $UrlRequestType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_build, jni.JniCallType.objectType, []).object); } final class $UrlRequest_BuilderType extends jni.JObjType { const $UrlRequest_BuilderType(); @override - String get signature => r"Lorg/chromium/net/UrlRequest$Builder;"; + String get signature => r'Lorg/chromium/net/UrlRequest$Builder;'; @override UrlRequest_Builder fromRef(jni.JObjectPtr ref) => @@ -3603,10 +3349,9 @@ final class $UrlRequest_BuilderType extends jni.JObjType { int get hashCode => ($UrlRequest_BuilderType).hashCode; @override - bool operator ==(Object other) { - return other.runtimeType == ($UrlRequest_BuilderType) && - other is $UrlRequest_BuilderType; - } + bool operator ==(Object other) => + other.runtimeType == $UrlRequest_BuilderType && + other is $UrlRequest_BuilderType; } /// from: org.chromium.net.UrlRequest$Callback @@ -3615,138 +3360,130 @@ class UrlRequest_Callback extends jni.JObject { late final jni.JObjType $type = type; UrlRequest_Callback.fromRef( - jni.JObjectPtr ref, - ) : super.fromRef(ref); + super.ref, + ) : super.fromRef(); static final _class = - jni.Jni.findJClass(r"org/chromium/net/UrlRequest$Callback"); + jni.Jni.findJClass(r'org/chromium/net/UrlRequest$Callback'); /// The type which includes information such as the signature of this class. static const type = $UrlRequest_CallbackType(); static final _id_new0 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"", r"()V"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'', r'()V'); /// from: public void () /// The returned object must be released after use, by calling the [release] method. - factory UrlRequest_Callback() { - return UrlRequest_Callback.fromRef(jni.Jni.accessors - .newObjectWithArgs(_class.reference, _id_new0, []).object); - } + factory UrlRequest_Callback() => UrlRequest_Callback.fromRef(jni.Jni.accessors + .newObjectWithArgs(_class.reference, _id_new0, []).object); static final _id_onRedirectReceived = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"onRedirectReceived", - r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/lang/String;)V"); + r'onRedirectReceived', + r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/lang/String;)V'); /// from: public abstract void onRedirectReceived(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, java.lang.String string) void onRedirectReceived( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, jni.JString string, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_onRedirectReceived, jni.JniCallType.voidType, [ - urlRequest.reference, - urlResponseInfo.reference, - string.reference - ]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs( + reference, _id_onRedirectReceived, jni.JniCallType.voidType, [ + urlRequest.reference, + urlResponseInfo.reference, + string.reference + ]).check(); static final _id_onResponseStarted = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"onResponseStarted", - r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V"); + r'onResponseStarted', + r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V'); /// from: public abstract void onResponseStarted(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo) void onResponseStarted( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, - _id_onResponseStarted, - jni.JniCallType.voidType, - [urlRequest.reference, urlResponseInfo.reference]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs( + reference, + _id_onResponseStarted, + jni.JniCallType.voidType, + [urlRequest.reference, urlResponseInfo.reference]).check(); static final _id_onReadCompleted = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"onReadCompleted", - r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/nio/ByteBuffer;)V"); + r'onReadCompleted', + r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/nio/ByteBuffer;)V'); /// from: public abstract void onReadCompleted(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, java.nio.ByteBuffer byteBuffer) void onReadCompleted( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, ByteBuffer byteBuffer, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_onReadCompleted, jni.JniCallType.voidType, [ - urlRequest.reference, - urlResponseInfo.reference, - byteBuffer.reference - ]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs( + reference, _id_onReadCompleted, jni.JniCallType.voidType, [ + urlRequest.reference, + urlResponseInfo.reference, + byteBuffer.reference + ]).check(); static final _id_onSucceeded = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"onSucceeded", - r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V"); + r'onSucceeded', + r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V'); /// from: public abstract void onSucceeded(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo) void onSucceeded( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, - _id_onSucceeded, - jni.JniCallType.voidType, - [urlRequest.reference, urlResponseInfo.reference]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs( + reference, + _id_onSucceeded, + jni.JniCallType.voidType, + [urlRequest.reference, urlResponseInfo.reference]).check(); static final _id_onFailed = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"onFailed", - r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Lorg/chromium/net/CronetException;)V"); + r'onFailed', + r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Lorg/chromium/net/CronetException;)V'); /// from: public abstract void onFailed(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, org.chromium.net.CronetException cronetException) void onFailed( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, CronetException cronetException, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_onFailed, jni.JniCallType.voidType, [ - urlRequest.reference, - urlResponseInfo.reference, - cronetException.reference - ]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs( + reference, _id_onFailed, jni.JniCallType.voidType, [ + urlRequest.reference, + urlResponseInfo.reference, + cronetException.reference + ]).check(); static final _id_onCanceled = jni.Jni.accessors.getMethodIDOf( _class.reference, - r"onCanceled", - r"(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V"); + r'onCanceled', + r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V'); /// from: public void onCanceled(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo) void onCanceled( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - ) { - return jni.Jni.accessors.callMethodWithArgs( - reference, - _id_onCanceled, - jni.JniCallType.voidType, - [urlRequest.reference, urlResponseInfo.reference]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs( + reference, + _id_onCanceled, + jni.JniCallType.voidType, + [urlRequest.reference, urlResponseInfo.reference]).check(); } final class $UrlRequest_CallbackType extends jni.JObjType { const $UrlRequest_CallbackType(); @override - String get signature => r"Lorg/chromium/net/UrlRequest$Callback;"; + String get signature => r'Lorg/chromium/net/UrlRequest$Callback;'; @override UrlRequest_Callback fromRef(jni.JObjectPtr ref) => @@ -3762,10 +3499,9 @@ final class $UrlRequest_CallbackType extends jni.JObjType { int get hashCode => ($UrlRequest_CallbackType).hashCode; @override - bool operator ==(Object other) { - return other.runtimeType == ($UrlRequest_CallbackType) && - other is $UrlRequest_CallbackType; - } + bool operator ==(Object other) => + other.runtimeType == $UrlRequest_CallbackType && + other is $UrlRequest_CallbackType; } /// from: org.chromium.net.UrlRequest$Status @@ -3774,11 +3510,11 @@ class UrlRequest_Status extends jni.JObject { late final jni.JObjType $type = type; UrlRequest_Status.fromRef( - jni.JObjectPtr ref, - ) : super.fromRef(ref); + super.ref, + ) : super.fromRef(); static final _class = - jni.Jni.findJClass(r"org/chromium/net/UrlRequest$Status"); + jni.Jni.findJClass(r'org/chromium/net/UrlRequest$Status'); /// The type which includes information such as the signature of this class. static const type = $UrlRequest_StatusType(); @@ -3836,7 +3572,7 @@ final class $UrlRequest_StatusType extends jni.JObjType { const $UrlRequest_StatusType(); @override - String get signature => r"Lorg/chromium/net/UrlRequest$Status;"; + String get signature => r'Lorg/chromium/net/UrlRequest$Status;'; @override UrlRequest_Status fromRef(jni.JObjectPtr ref) => @@ -3852,10 +3588,9 @@ final class $UrlRequest_StatusType extends jni.JObjType { int get hashCode => ($UrlRequest_StatusType).hashCode; @override - bool operator ==(Object other) { - return other.runtimeType == ($UrlRequest_StatusType) && - other is $UrlRequest_StatusType; - } + bool operator ==(Object other) => + other.runtimeType == $UrlRequest_StatusType && + other is $UrlRequest_StatusType; } /// from: org.chromium.net.UrlRequest$StatusListener @@ -3864,34 +3599,32 @@ class UrlRequest_StatusListener extends jni.JObject { late final jni.JObjType $type = type; UrlRequest_StatusListener.fromRef( - jni.JObjectPtr ref, - ) : super.fromRef(ref); + super.ref, + ) : super.fromRef(); static final _class = - jni.Jni.findJClass(r"org/chromium/net/UrlRequest$StatusListener"); + jni.Jni.findJClass(r'org/chromium/net/UrlRequest$StatusListener'); /// The type which includes information such as the signature of this class. static const type = $UrlRequest_StatusListenerType(); static final _id_new0 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"", r"()V"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'', r'()V'); /// from: public void () /// The returned object must be released after use, by calling the [release] method. - factory UrlRequest_StatusListener() { - return UrlRequest_StatusListener.fromRef(jni.Jni.accessors - .newObjectWithArgs(_class.reference, _id_new0, []).object); - } + factory UrlRequest_StatusListener() => + UrlRequest_StatusListener.fromRef(jni.Jni.accessors + .newObjectWithArgs(_class.reference, _id_new0, []).object); static final _id_onStatus = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"onStatus", r"(I)V"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'onStatus', r'(I)V'); /// from: public abstract void onStatus(int i) void onStatus( int i, - ) { - return jni.Jni.accessors.callMethodWithArgs(reference, _id_onStatus, - jni.JniCallType.voidType, [jni.JValueInt(i)]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs(reference, _id_onStatus, + jni.JniCallType.voidType, [jni.JValueInt(i)]).check(); } final class $UrlRequest_StatusListenerType @@ -3899,7 +3632,7 @@ final class $UrlRequest_StatusListenerType const $UrlRequest_StatusListenerType(); @override - String get signature => r"Lorg/chromium/net/UrlRequest$StatusListener;"; + String get signature => r'Lorg/chromium/net/UrlRequest$StatusListener;'; @override UrlRequest_StatusListener fromRef(jni.JObjectPtr ref) => @@ -3915,10 +3648,9 @@ final class $UrlRequest_StatusListenerType int get hashCode => ($UrlRequest_StatusListenerType).hashCode; @override - bool operator ==(Object other) { - return other.runtimeType == ($UrlRequest_StatusListenerType) && - other is $UrlRequest_StatusListenerType; - } + bool operator ==(Object other) => + other.runtimeType == $UrlRequest_StatusListenerType && + other is $UrlRequest_StatusListenerType; } /// from: org.chromium.net.UrlRequest @@ -3927,87 +3659,75 @@ class UrlRequest extends jni.JObject { late final jni.JObjType $type = type; UrlRequest.fromRef( - jni.JObjectPtr ref, - ) : super.fromRef(ref); + super.ref, + ) : super.fromRef(); - static final _class = jni.Jni.findJClass(r"org/chromium/net/UrlRequest"); + static final _class = jni.Jni.findJClass(r'org/chromium/net/UrlRequest'); /// The type which includes information such as the signature of this class. static const type = $UrlRequestType(); static final _id_new0 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"", r"()V"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'', r'()V'); /// from: public void () /// The returned object must be released after use, by calling the [release] method. - factory UrlRequest() { - return UrlRequest.fromRef(jni.Jni.accessors - .newObjectWithArgs(_class.reference, _id_new0, []).object); - } + factory UrlRequest() => UrlRequest.fromRef(jni.Jni.accessors + .newObjectWithArgs(_class.reference, _id_new0, []).object); static final _id_start = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"start", r"()V"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'start', r'()V'); /// from: public abstract void start() - void start() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_start, jni.JniCallType.voidType, []).check(); - } + void start() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_start, jni.JniCallType.voidType, []).check(); static final _id_followRedirect = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"followRedirect", r"()V"); + .getMethodIDOf(_class.reference, r'followRedirect', r'()V'); /// from: public abstract void followRedirect() - void followRedirect() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_followRedirect, jni.JniCallType.voidType, []).check(); - } + void followRedirect() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_followRedirect, jni.JniCallType.voidType, []).check(); static final _id_read = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"read", r"(Ljava/nio/ByteBuffer;)V"); + .getMethodIDOf(_class.reference, r'read', r'(Ljava/nio/ByteBuffer;)V'); /// from: public abstract void read(java.nio.ByteBuffer byteBuffer) void read( ByteBuffer byteBuffer, - ) { - return jni.Jni.accessors.callMethodWithArgs(reference, _id_read, - jni.JniCallType.voidType, [byteBuffer.reference]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs(reference, _id_read, + jni.JniCallType.voidType, [byteBuffer.reference]).check(); static final _id_cancel = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"cancel", r"()V"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'cancel', r'()V'); /// from: public abstract void cancel() - void cancel() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_cancel, jni.JniCallType.voidType, []).check(); - } + void cancel() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_cancel, jni.JniCallType.voidType, []).check(); static final _id_isDone = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"isDone", r"()Z"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'isDone', r'()Z'); /// from: public abstract boolean isDone() - bool isDone() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_isDone, jni.JniCallType.booleanType, []).boolean; - } + bool isDone() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_isDone, jni.JniCallType.booleanType, []).boolean; static final _id_getStatus = jni.Jni.accessors.getMethodIDOf(_class.reference, - r"getStatus", r"(Lorg/chromium/net/UrlRequest$StatusListener;)V"); + r'getStatus', r'(Lorg/chromium/net/UrlRequest$StatusListener;)V'); /// from: public abstract void getStatus(org.chromium.net.UrlRequest$StatusListener statusListener) void getStatus( UrlRequest_StatusListener statusListener, - ) { - return jni.Jni.accessors.callMethodWithArgs(reference, _id_getStatus, - jni.JniCallType.voidType, [statusListener.reference]).check(); - } + ) => + jni.Jni.accessors.callMethodWithArgs(reference, _id_getStatus, + jni.JniCallType.voidType, [statusListener.reference]).check(); } final class $UrlRequestType extends jni.JObjType { const $UrlRequestType(); @override - String get signature => r"Lorg/chromium/net/UrlRequest;"; + String get signature => r'Lorg/chromium/net/UrlRequest;'; @override UrlRequest fromRef(jni.JObjectPtr ref) => UrlRequest.fromRef(ref); @@ -4022,9 +3742,8 @@ final class $UrlRequestType extends jni.JObjType { int get hashCode => ($UrlRequestType).hashCode; @override - bool operator ==(Object other) { - return other.runtimeType == ($UrlRequestType) && other is $UrlRequestType; - } + bool operator ==(Object other) => + other.runtimeType == $UrlRequestType && other is $UrlRequestType; } /// from: org.chromium.net.UrlResponseInfo$HeaderBlock @@ -4033,46 +3752,41 @@ class UrlResponseInfo_HeaderBlock extends jni.JObject { late final jni.JObjType $type = type; UrlResponseInfo_HeaderBlock.fromRef( - jni.JObjectPtr ref, - ) : super.fromRef(ref); + super.ref, + ) : super.fromRef(); static final _class = - jni.Jni.findJClass(r"org/chromium/net/UrlResponseInfo$HeaderBlock"); + jni.Jni.findJClass(r'org/chromium/net/UrlResponseInfo$HeaderBlock'); /// The type which includes information such as the signature of this class. static const type = $UrlResponseInfo_HeaderBlockType(); static final _id_new0 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"", r"()V"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'', r'()V'); /// from: public void () /// The returned object must be released after use, by calling the [release] method. - factory UrlResponseInfo_HeaderBlock() { - return UrlResponseInfo_HeaderBlock.fromRef(jni.Jni.accessors - .newObjectWithArgs(_class.reference, _id_new0, []).object); - } + factory UrlResponseInfo_HeaderBlock() => + UrlResponseInfo_HeaderBlock.fromRef(jni.Jni.accessors + .newObjectWithArgs(_class.reference, _id_new0, []).object); static final _id_getAsList = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"getAsList", r"()Ljava/util/List;"); + .getMethodIDOf(_class.reference, r'getAsList', r'()Ljava/util/List;'); /// from: public abstract java.util.List getAsList() /// The returned object must be released after use, by calling the [release] method. - jni.JList getAsList() { - return const jni.JListType(jni.JObjectType()).fromRef(jni.Jni.accessors - .callMethodWithArgs( - reference, _id_getAsList, jni.JniCallType.objectType, []).object); - } + jni.JList getAsList() => const jni.JListType(jni.JObjectType()) + .fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getAsList, jni.JniCallType.objectType, []).object); static final _id_getAsMap = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"getAsMap", r"()Ljava/util/Map;"); + .getMethodIDOf(_class.reference, r'getAsMap', r'()Ljava/util/Map;'); /// from: public abstract java.util.Map getAsMap() /// The returned object must be released after use, by calling the [release] method. - jni.JMap> getAsMap() { - return const jni.JMapType( - jni.JStringType(), jni.JListType(jni.JStringType())) - .fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getAsMap, jni.JniCallType.objectType, []).object); - } + jni.JMap> getAsMap() => + const jni.JMapType(jni.JStringType(), jni.JListType(jni.JStringType())) + .fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getAsMap, jni.JniCallType.objectType, []).object); } final class $UrlResponseInfo_HeaderBlockType @@ -4080,7 +3794,7 @@ final class $UrlResponseInfo_HeaderBlockType const $UrlResponseInfo_HeaderBlockType(); @override - String get signature => r"Lorg/chromium/net/UrlResponseInfo$HeaderBlock;"; + String get signature => r'Lorg/chromium/net/UrlResponseInfo$HeaderBlock;'; @override UrlResponseInfo_HeaderBlock fromRef(jni.JObjectPtr ref) => @@ -4096,10 +3810,9 @@ final class $UrlResponseInfo_HeaderBlockType int get hashCode => ($UrlResponseInfo_HeaderBlockType).hashCode; @override - bool operator ==(Object other) { - return other.runtimeType == ($UrlResponseInfo_HeaderBlockType) && - other is $UrlResponseInfo_HeaderBlockType; - } + bool operator ==(Object other) => + other.runtimeType == $UrlResponseInfo_HeaderBlockType && + other is $UrlResponseInfo_HeaderBlockType; } /// from: org.chromium.net.UrlResponseInfo @@ -4108,134 +3821,119 @@ class UrlResponseInfo extends jni.JObject { late final jni.JObjType $type = type; UrlResponseInfo.fromRef( - jni.JObjectPtr ref, - ) : super.fromRef(ref); + super.ref, + ) : super.fromRef(); - static final _class = jni.Jni.findJClass(r"org/chromium/net/UrlResponseInfo"); + static final _class = jni.Jni.findJClass(r'org/chromium/net/UrlResponseInfo'); /// The type which includes information such as the signature of this class. static const type = $UrlResponseInfoType(); static final _id_new0 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"", r"()V"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'', r'()V'); /// from: public void () /// The returned object must be released after use, by calling the [release] method. - factory UrlResponseInfo() { - return UrlResponseInfo.fromRef(jni.Jni.accessors - .newObjectWithArgs(_class.reference, _id_new0, []).object); - } + factory UrlResponseInfo() => UrlResponseInfo.fromRef(jni.Jni.accessors + .newObjectWithArgs(_class.reference, _id_new0, []).object); static final _id_getUrl = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"getUrl", r"()Ljava/lang/String;"); + .getMethodIDOf(_class.reference, r'getUrl', r'()Ljava/lang/String;'); /// from: public abstract java.lang.String getUrl() /// The returned object must be released after use, by calling the [release] method. - jni.JString getUrl() { - return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getUrl, jni.JniCallType.objectType, []).object); - } + jni.JString getUrl() => + const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getUrl, jni.JniCallType.objectType, []).object); static final _id_getUrlChain = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"getUrlChain", r"()Ljava/util/List;"); + .getMethodIDOf(_class.reference, r'getUrlChain', r'()Ljava/util/List;'); /// from: public abstract java.util.List getUrlChain() /// The returned object must be released after use, by calling the [release] method. - jni.JList getUrlChain() { - return const jni.JListType(jni.JStringType()).fromRef(jni.Jni.accessors - .callMethodWithArgs( - reference, _id_getUrlChain, jni.JniCallType.objectType, []).object); - } + jni.JList getUrlChain() => const jni.JListType(jni.JStringType()) + .fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, _id_getUrlChain, jni.JniCallType.objectType, []).object); static final _id_getHttpStatusCode = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"getHttpStatusCode", r"()I"); + .getMethodIDOf(_class.reference, r'getHttpStatusCode', r'()I'); /// from: public abstract int getHttpStatusCode() - int getHttpStatusCode() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_getHttpStatusCode, jni.JniCallType.intType, []).integer; - } + int getHttpStatusCode() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_getHttpStatusCode, jni.JniCallType.intType, []).integer; static final _id_getHttpStatusText = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"getHttpStatusText", r"()Ljava/lang/String;"); + _class.reference, r'getHttpStatusText', r'()Ljava/lang/String;'); /// from: public abstract java.lang.String getHttpStatusText() /// The returned object must be released after use, by calling the [release] method. - jni.JString getHttpStatusText() { - return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_getHttpStatusText, - jni.JniCallType.objectType, []).object); - } + jni.JString getHttpStatusText() => + const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_getHttpStatusText, + jni.JniCallType.objectType, []).object); static final _id_getAllHeadersAsList = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"getAllHeadersAsList", r"()Ljava/util/List;"); + _class.reference, r'getAllHeadersAsList', r'()Ljava/util/List;'); /// from: public abstract java.util.List getAllHeadersAsList() /// The returned object must be released after use, by calling the [release] method. - jni.JList getAllHeadersAsList() { - return const jni.JListType(jni.JObjectType()).fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_getAllHeadersAsList, - jni.JniCallType.objectType, []).object); - } + jni.JList getAllHeadersAsList() => + const jni.JListType(jni.JObjectType()).fromRef(jni.Jni.accessors + .callMethodWithArgs(reference, _id_getAllHeadersAsList, + jni.JniCallType.objectType, []).object); static final _id_getAllHeaders = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"getAllHeaders", r"()Ljava/util/Map;"); + .getMethodIDOf(_class.reference, r'getAllHeaders', r'()Ljava/util/Map;'); /// from: public abstract java.util.Map getAllHeaders() /// The returned object must be released after use, by calling the [release] method. - jni.JMap> getAllHeaders() { - return const jni.JMapType( - jni.JStringType(), jni.JListType(jni.JStringType())) - .fromRef(jni.Jni.accessors.callMethodWithArgs(reference, - _id_getAllHeaders, jni.JniCallType.objectType, []).object); - } + jni.JMap> getAllHeaders() => + const jni.JMapType(jni.JStringType(), jni.JListType(jni.JStringType())) + .fromRef(jni.Jni.accessors.callMethodWithArgs(reference, + _id_getAllHeaders, jni.JniCallType.objectType, []).object); static final _id_wasCached = - jni.Jni.accessors.getMethodIDOf(_class.reference, r"wasCached", r"()Z"); + jni.Jni.accessors.getMethodIDOf(_class.reference, r'wasCached', r'()Z'); /// from: public abstract boolean wasCached() - bool wasCached() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_wasCached, jni.JniCallType.booleanType, []).boolean; - } + bool wasCached() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_wasCached, jni.JniCallType.booleanType, []).boolean; static final _id_getNegotiatedProtocol = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"getNegotiatedProtocol", r"()Ljava/lang/String;"); + _class.reference, r'getNegotiatedProtocol', r'()Ljava/lang/String;'); /// from: public abstract java.lang.String getNegotiatedProtocol() /// The returned object must be released after use, by calling the [release] method. - jni.JString getNegotiatedProtocol() { - return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_getNegotiatedProtocol, - jni.JniCallType.objectType, []).object); - } + jni.JString getNegotiatedProtocol() => + const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_getNegotiatedProtocol, + jni.JniCallType.objectType, []).object); static final _id_getProxyServer = jni.Jni.accessors.getMethodIDOf( - _class.reference, r"getProxyServer", r"()Ljava/lang/String;"); + _class.reference, r'getProxyServer', r'()Ljava/lang/String;'); /// from: public abstract java.lang.String getProxyServer() /// The returned object must be released after use, by calling the [release] method. - jni.JString getProxyServer() { - return const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_getProxyServer, jni.JniCallType.objectType, []).object); - } + jni.JString getProxyServer() => + const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( + reference, + _id_getProxyServer, + jni.JniCallType.objectType, []).object); static final _id_getReceivedByteCount = jni.Jni.accessors - .getMethodIDOf(_class.reference, r"getReceivedByteCount", r"()J"); + .getMethodIDOf(_class.reference, r'getReceivedByteCount', r'()J'); /// from: public abstract long getReceivedByteCount() - int getReceivedByteCount() { - return jni.Jni.accessors.callMethodWithArgs( - reference, _id_getReceivedByteCount, jni.JniCallType.longType, []).long; - } + int getReceivedByteCount() => jni.Jni.accessors.callMethodWithArgs( + reference, _id_getReceivedByteCount, jni.JniCallType.longType, []).long; } final class $UrlResponseInfoType extends jni.JObjType { const $UrlResponseInfoType(); @override - String get signature => r"Lorg/chromium/net/UrlResponseInfo;"; + String get signature => r'Lorg/chromium/net/UrlResponseInfo;'; @override UrlResponseInfo fromRef(jni.JObjectPtr ref) => UrlResponseInfo.fromRef(ref); @@ -4250,8 +3948,7 @@ final class $UrlResponseInfoType extends jni.JObjType { int get hashCode => ($UrlResponseInfoType).hashCode; @override - bool operator ==(Object other) { - return other.runtimeType == ($UrlResponseInfoType) && - other is $UrlResponseInfoType; - } + bool operator ==(Object other) => + other.runtimeType == $UrlResponseInfoType && + other is $UrlResponseInfoType; } From f8baabcb1f117a88cc8e72cdcea9bb330892f79f Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Wed, 13 Sep 2023 16:14:39 -0700 Subject: [PATCH 4/4] Review fix --- pkgs/cronet_http/android/build.gradle | 10 + pkgs/cronet_http/android/consumer-rules.pro | 1 + .../example/android/app/build.gradle | 3 + pkgs/cronet_http/jnigen.yaml | 4 - pkgs/cronet_http/lib/src/cronet_client.dart | 8 +- .../cronet_http/lib/src/jni/jni_bindings.dart | 1341 +---------------- 6 files changed, 28 insertions(+), 1339 deletions(-) create mode 100644 pkgs/cronet_http/android/consumer-rules.pro diff --git a/pkgs/cronet_http/android/build.gradle b/pkgs/cronet_http/android/build.gradle index bf79214106..3a91d8a295 100644 --- a/pkgs/cronet_http/android/build.gradle +++ b/pkgs/cronet_http/android/build.gradle @@ -43,6 +43,16 @@ android { defaultConfig { minSdkVersion 16 } + + defaultConfig { + consumerProguardFiles 'consumer-rules.pro' + } + + buildTypes { + release { + minifyEnabled false + } + } } dependencies { diff --git a/pkgs/cronet_http/android/consumer-rules.pro b/pkgs/cronet_http/android/consumer-rules.pro new file mode 100644 index 0000000000..00f4f3efe1 --- /dev/null +++ b/pkgs/cronet_http/android/consumer-rules.pro @@ -0,0 +1 @@ +-keep class io.flutter.plugins.cronet_http.** { *; } diff --git a/pkgs/cronet_http/example/android/app/build.gradle b/pkgs/cronet_http/example/android/app/build.gradle index d42d02a0da..88b33564c3 100644 --- a/pkgs/cronet_http/example/android/app/build.gradle +++ b/pkgs/cronet_http/example/android/app/build.gradle @@ -67,4 +67,7 @@ flutter { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" + // ""com.google.android.gms:play-services-cronet" is only present so that + // `jnigen` will work. Applications should not include this line. + implementation "com.google.android.gms:play-services-cronet:18.0.1" } diff --git a/pkgs/cronet_http/jnigen.yaml b/pkgs/cronet_http/jnigen.yaml index 1b2f2a7490..a16d38f48d 100644 --- a/pkgs/cronet_http/jnigen.yaml +++ b/pkgs/cronet_http/jnigen.yaml @@ -7,8 +7,6 @@ android_sdk_config: add_gradle_deps: true android_example: 'example/' -suspend_fun_to_async: true - output: bindings_type: dart_only dart: @@ -18,8 +16,6 @@ output: classes: - 'io.flutter.plugins.cronet_http.UrlRequestCallbackProxy' - 'java.net.URL' - - 'java.nio.Buffer' - - 'java.nio.ByteBuffer' - 'java.util.concurrent.Executors' - 'org.chromium.net.CronetEngine' - 'org.chromium.net.CronetException' diff --git a/pkgs/cronet_http/lib/src/cronet_client.dart b/pkgs/cronet_http/lib/src/cronet_client.dart index f12ecef6ca..69143208fc 100644 --- a/pkgs/cronet_http/lib/src/cronet_client.dart +++ b/pkgs/cronet_http/lib/src/cronet_client.dart @@ -176,7 +176,7 @@ jb.UrlRequestCallbackProxy_UrlRequestCallbackInterface _urlRequestCallbacks( )); jByteBuffer = JByteBuffer.allocateDirect(_bufferSize); - urlRequest.read(jByteBuffer!.castTo(const jb.$ByteBufferType())); + urlRequest.read(jByteBuffer!); }, onRedirectReceived: (urlRequest, responseInfo, newLocationUrl) { if (!request.followRedirects) { @@ -205,7 +205,7 @@ jb.UrlRequestCallbackProxy_UrlRequestCallbackInterface _urlRequestCallbacks( onReadCompleted: (urlRequest, responseInfo, byteBuffer) { byteBuffer.flip(); responseStream! - .add(jByteBuffer!.asUint8List().sublist(0, byteBuffer.remaining())); + .add(jByteBuffer!.asUint8List().sublist(0, byteBuffer.remaining)); byteBuffer.clear(); urlRequest.read(byteBuffer); @@ -329,10 +329,8 @@ class CronetClient extends BaseClient { headers.forEach((k, v) => builder.addHeader(k.toJString(), v.toJString())); if (body.isNotEmpty) { - final bodyBuffer = - body.toJByteBuffer().castTo(const jb.$ByteBufferType()); builder.setUploadDataProvider( - jb.UploadDataProviders.create2(bodyBuffer), _executor); + jb.UploadDataProviders.create2(body.toJByteBuffer()), _executor); } builder.build().start(); return responseCompleter.future; diff --git a/pkgs/cronet_http/lib/src/jni/jni_bindings.dart b/pkgs/cronet_http/lib/src/jni/jni_bindings.dart index 3c36a448c8..c8df6936f2 100644 --- a/pkgs/cronet_http/lib/src/jni/jni_bindings.dart +++ b/pkgs/cronet_http/lib/src/jni/jni_bindings.dart @@ -80,7 +80,7 @@ class UrlRequestCallbackProxy_UrlRequestCallbackInterface extends jni.JObject { void onReadCompleted( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - ByteBuffer byteBuffer, + jni.JByteBuffer byteBuffer, ) => jni.Jni.accessors.callMethodWithArgs( reference, _id_onReadCompleted, jni.JniCallType.voidType, [ @@ -177,7 +177,7 @@ class UrlRequestCallbackProxy_UrlRequestCallbackInterface extends jni.JObject { _$impls[$p]!.onReadCompleted( $a[0].castTo(const $UrlRequestType(), releaseOriginal: true), $a[1].castTo(const $UrlResponseInfoType(), releaseOriginal: true), - $a[2].castTo(const $ByteBufferType(), releaseOriginal: true), + $a[2].castTo(const jni.JByteBufferType(), releaseOriginal: true), ); return jni.nullptr; } @@ -240,7 +240,7 @@ abstract class $UrlRequestCallbackProxy_UrlRequestCallbackInterfaceImpl { UrlRequest urlRequest, UrlResponseInfo urlResponseInfo) onResponseStarted, required void Function(UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, ByteBuffer byteBuffer) + UrlResponseInfo urlResponseInfo, jni.JByteBuffer byteBuffer) onReadCompleted, required void Function( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo) @@ -255,7 +255,7 @@ abstract class $UrlRequestCallbackProxy_UrlRequestCallbackInterfaceImpl { void onResponseStarted( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo); void onReadCompleted(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - ByteBuffer byteBuffer); + jni.JByteBuffer byteBuffer); void onSucceeded(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo); void onFailed(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, CronetException cronetException); @@ -271,7 +271,7 @@ class _$UrlRequestCallbackProxy_UrlRequestCallbackInterfaceImpl UrlRequest urlRequest, UrlResponseInfo urlResponseInfo) onResponseStarted, required void Function(UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, ByteBuffer byteBuffer) + UrlResponseInfo urlResponseInfo, jni.JByteBuffer byteBuffer) onReadCompleted, required void Function( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo) @@ -290,7 +290,7 @@ class _$UrlRequestCallbackProxy_UrlRequestCallbackInterfaceImpl final void Function(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo) _onResponseStarted; final void Function(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - ByteBuffer byteBuffer) _onReadCompleted; + jni.JByteBuffer byteBuffer) _onReadCompleted; final void Function(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo) _onSucceeded; final void Function(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, @@ -305,7 +305,7 @@ class _$UrlRequestCallbackProxy_UrlRequestCallbackInterfaceImpl _onResponseStarted(urlRequest, urlResponseInfo); void onReadCompleted(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - ByteBuffer byteBuffer) => + jni.JByteBuffer byteBuffer) => _onReadCompleted(urlRequest, urlResponseInfo, byteBuffer); void onSucceeded(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo) => @@ -431,7 +431,7 @@ class UrlRequestCallbackProxy extends UrlRequest_Callback { void onReadCompleted( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - ByteBuffer byteBuffer, + jni.JByteBuffer byteBuffer, ) => jni.Jni.accessors.callMethodWithArgs( reference, _id_onReadCompleted, jni.JniCallType.voidType, [ @@ -855,971 +855,6 @@ final class $URLType extends jni.JObjType { other.runtimeType == $URLType && other is $URLType; } -/// from: java.nio.Buffer -class Buffer extends jni.JObject { - @override - late final jni.JObjType $type = type; - - Buffer.fromRef( - super.ref, - ) : super.fromRef(); - - static final _class = jni.Jni.findJClass(r'java/nio/Buffer'); - - /// The type which includes information such as the signature of this class. - static const type = $BufferType(); - static final _id_capacity = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'capacity', r'()I'); - - /// from: public final int capacity() - int capacity() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_capacity, jni.JniCallType.intType, []).integer; - - static final _id_position = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'position', r'()I'); - - /// from: public final int position() - int position() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_position, jni.JniCallType.intType, []).integer; - - static final _id_position1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'position', r'(I)Ljava/nio/Buffer;'); - - /// from: public java.nio.Buffer position(int i) - /// The returned object must be released after use, by calling the [release] method. - Buffer position1( - int i, - ) => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_position1, - jni.JniCallType.objectType, - [jni.JValueInt(i)]).object); - - static final _id_limit = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'limit', r'()I'); - - /// from: public final int limit() - int limit() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_limit, jni.JniCallType.intType, []).integer; - - static final _id_limit1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'limit', r'(I)Ljava/nio/Buffer;'); - - /// from: public java.nio.Buffer limit(int i) - /// The returned object must be released after use, by calling the [release] method. - Buffer limit1( - int i, - ) => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_limit1, - jni.JniCallType.objectType, - [jni.JValueInt(i)]).object); - - static final _id_mark = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'mark', r'()Ljava/nio/Buffer;'); - - /// from: public java.nio.Buffer mark() - /// The returned object must be released after use, by calling the [release] method. - Buffer mark() => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_mark, jni.JniCallType.objectType, []).object); - - static final _id_reset = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'reset', r'()Ljava/nio/Buffer;'); - - /// from: public java.nio.Buffer reset() - /// The returned object must be released after use, by calling the [release] method. - Buffer reset() => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_reset, jni.JniCallType.objectType, []).object); - - static final _id_clear = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'clear', r'()Ljava/nio/Buffer;'); - - /// from: public java.nio.Buffer clear() - /// The returned object must be released after use, by calling the [release] method. - Buffer clear() => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_clear, jni.JniCallType.objectType, []).object); - - static final _id_flip = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'flip', r'()Ljava/nio/Buffer;'); - - /// from: public java.nio.Buffer flip() - /// The returned object must be released after use, by calling the [release] method. - Buffer flip() => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_flip, jni.JniCallType.objectType, []).object); - - static final _id_rewind = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'rewind', r'()Ljava/nio/Buffer;'); - - /// from: public java.nio.Buffer rewind() - /// The returned object must be released after use, by calling the [release] method. - Buffer rewind() => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_rewind, jni.JniCallType.objectType, []).object); - - static final _id_remaining = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'remaining', r'()I'); - - /// from: public final int remaining() - int remaining() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_remaining, jni.JniCallType.intType, []).integer; - - static final _id_hasRemaining = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'hasRemaining', r'()Z'); - - /// from: public final boolean hasRemaining() - bool hasRemaining() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_hasRemaining, jni.JniCallType.booleanType, []).boolean; - - static final _id_isReadOnly = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'isReadOnly', r'()Z'); - - /// from: public abstract boolean isReadOnly() - bool isReadOnly() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_isReadOnly, jni.JniCallType.booleanType, []).boolean; - - static final _id_hasArray = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'hasArray', r'()Z'); - - /// from: public abstract boolean hasArray() - bool hasArray() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_hasArray, jni.JniCallType.booleanType, []).boolean; - - static final _id_array = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'array', r'()Ljava/lang/Object;'); - - /// from: public abstract java.lang.Object array() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject array() => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_array, jni.JniCallType.objectType, []).object); - - static final _id_arrayOffset = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'arrayOffset', r'()I'); - - /// from: public abstract int arrayOffset() - int arrayOffset() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_arrayOffset, jni.JniCallType.intType, []).integer; - - static final _id_isDirect = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'isDirect', r'()Z'); - - /// from: public abstract boolean isDirect() - bool isDirect() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_isDirect, jni.JniCallType.booleanType, []).boolean; -} - -final class $BufferType extends jni.JObjType { - const $BufferType(); - - @override - String get signature => r'Ljava/nio/Buffer;'; - - @override - Buffer fromRef(jni.JObjectPtr ref) => Buffer.fromRef(ref); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override - final superCount = 1; - - @override - int get hashCode => ($BufferType).hashCode; - - @override - bool operator ==(Object other) => - other.runtimeType == $BufferType && other is $BufferType; -} - -/// from: java.nio.ByteBuffer -class ByteBuffer extends Buffer { - @override - late final jni.JObjType $type = type; - - ByteBuffer.fromRef( - super.ref, - ) : super.fromRef(); - - static final _class = jni.Jni.findJClass(r'java/nio/ByteBuffer'); - - /// The type which includes information such as the signature of this class. - static const type = $ByteBufferType(); - static final _id_allocateDirect = jni.Jni.accessors.getStaticMethodIDOf( - _class.reference, r'allocateDirect', r'(I)Ljava/nio/ByteBuffer;'); - - /// from: static public java.nio.ByteBuffer allocateDirect(int i) - /// The returned object must be released after use, by calling the [release] method. - static ByteBuffer allocateDirect( - int i, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_allocateDirect, - jni.JniCallType.objectType, [jni.JValueInt(i)]).object); - - static final _id_allocate = jni.Jni.accessors.getStaticMethodIDOf( - _class.reference, r'allocate', r'(I)Ljava/nio/ByteBuffer;'); - - /// from: static public java.nio.ByteBuffer allocate(int i) - /// The returned object must be released after use, by calling the [release] method. - static ByteBuffer allocate( - int i, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_allocate, - jni.JniCallType.objectType, [jni.JValueInt(i)]).object); - - static final _id_wrap = jni.Jni.accessors.getStaticMethodIDOf( - _class.reference, r'wrap', r'([BII)Ljava/nio/ByteBuffer;'); - - /// from: static public java.nio.ByteBuffer wrap(byte[] bs, int i, int i1) - /// The returned object must be released after use, by calling the [release] method. - static ByteBuffer wrap( - jni.JArray bs, - int i, - int i1, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs( - _class.reference, - _id_wrap, - jni.JniCallType.objectType, - [bs.reference, jni.JValueInt(i), jni.JValueInt(i1)]).object); - - static final _id_wrap1 = jni.Jni.accessors.getStaticMethodIDOf( - _class.reference, r'wrap', r'([B)Ljava/nio/ByteBuffer;'); - - /// from: static public java.nio.ByteBuffer wrap(byte[] bs) - /// The returned object must be released after use, by calling the [release] method. - static ByteBuffer wrap1( - jni.JArray bs, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors - .callStaticMethodWithArgs(_class.reference, _id_wrap1, - jni.JniCallType.objectType, [bs.reference]).object); - - static final _id_slice = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'slice', r'()Ljava/nio/ByteBuffer;'); - - /// from: public abstract java.nio.ByteBuffer slice() - /// The returned object must be released after use, by calling the [release] method. - ByteBuffer slice() => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_slice, jni.JniCallType.objectType, []).object); - - static final _id_duplicate = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'duplicate', r'()Ljava/nio/ByteBuffer;'); - - /// from: public abstract java.nio.ByteBuffer duplicate() - /// The returned object must be released after use, by calling the [release] method. - ByteBuffer duplicate() => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_duplicate, jni.JniCallType.objectType, []).object); - - static final _id_asReadOnlyBuffer = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'asReadOnlyBuffer', r'()Ljava/nio/ByteBuffer;'); - - /// from: public abstract java.nio.ByteBuffer asReadOnlyBuffer() - /// The returned object must be released after use, by calling the [release] method. - ByteBuffer asReadOnlyBuffer() => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_asReadOnlyBuffer, - jni.JniCallType.objectType, []).object); - - static final _id_get0 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'get', r'()B'); - - /// from: public abstract byte get() - int get0() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_get0, jni.JniCallType.byteType, []).byte; - - static final _id_put = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'put', r'(B)Ljava/nio/ByteBuffer;'); - - /// from: public abstract java.nio.ByteBuffer put(byte b) - /// The returned object must be released after use, by calling the [release] method. - ByteBuffer put( - int b, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_put, - jni.JniCallType.objectType, - [jni.JValueByte(b)]).object); - - static final _id_get1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'get', r'(I)B'); - - /// from: public abstract byte get(int i) - int get1( - int i, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_get1, - jni.JniCallType.byteType, [jni.JValueInt(i)]).byte; - - static final _id_put1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'put', r'(IB)Ljava/nio/ByteBuffer;'); - - /// from: public abstract java.nio.ByteBuffer put(int i, byte b) - /// The returned object must be released after use, by calling the [release] method. - ByteBuffer put1( - int i, - int b, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_put1, - jni.JniCallType.objectType, - [jni.JValueInt(i), jni.JValueByte(b)]).object); - - static final _id_get2 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'get', r'([BII)Ljava/nio/ByteBuffer;'); - - /// from: public java.nio.ByteBuffer get(byte[] bs, int i, int i1) - /// The returned object must be released after use, by calling the [release] method. - ByteBuffer get2( - jni.JArray bs, - int i, - int i1, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_get2, - jni.JniCallType.objectType, - [bs.reference, jni.JValueInt(i), jni.JValueInt(i1)]).object); - - static final _id_get3 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'get', r'([B)Ljava/nio/ByteBuffer;'); - - /// from: public java.nio.ByteBuffer get(byte[] bs) - /// The returned object must be released after use, by calling the [release] method. - ByteBuffer get3( - jni.JArray bs, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_get3, - jni.JniCallType.objectType, - [bs.reference]).object); - - static final _id_put2 = jni.Jni.accessors.getMethodIDOf(_class.reference, - r'put', r'(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;'); - - /// from: public java.nio.ByteBuffer put(java.nio.ByteBuffer byteBuffer) - /// The returned object must be released after use, by calling the [release] method. - ByteBuffer put2( - ByteBuffer byteBuffer, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_put2, - jni.JniCallType.objectType, - [byteBuffer.reference]).object); - - static final _id_put3 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'put', r'([BII)Ljava/nio/ByteBuffer;'); - - /// from: public java.nio.ByteBuffer put(byte[] bs, int i, int i1) - /// The returned object must be released after use, by calling the [release] method. - ByteBuffer put3( - jni.JArray bs, - int i, - int i1, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_put3, - jni.JniCallType.objectType, - [bs.reference, jni.JValueInt(i), jni.JValueInt(i1)]).object); - - static final _id_put4 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'put', r'([B)Ljava/nio/ByteBuffer;'); - - /// from: public final java.nio.ByteBuffer put(byte[] bs) - /// The returned object must be released after use, by calling the [release] method. - ByteBuffer put4( - jni.JArray bs, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_put4, - jni.JniCallType.objectType, - [bs.reference]).object); - - static final _id_hasArray = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'hasArray', r'()Z'); - - /// from: public final boolean hasArray() - bool hasArray() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_hasArray, jni.JniCallType.booleanType, []).boolean; - - static final _id_array1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'array', r'()[B'); - - /// from: public final byte[] array() - /// The returned object must be released after use, by calling the [release] method. - jni.JArray array1() => const jni.JArrayType(jni.jbyteType()) - .fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_array1, jni.JniCallType.objectType, []).object); - - static final _id_arrayOffset = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'arrayOffset', r'()I'); - - /// from: public final int arrayOffset() - int arrayOffset() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_arrayOffset, jni.JniCallType.intType, []).integer; - - static final _id_position1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'position', r'(I)Ljava/nio/Buffer;'); - - /// from: public java.nio.Buffer position(int i) - /// The returned object must be released after use, by calling the [release] method. - Buffer position1( - int i, - ) => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_position1, - jni.JniCallType.objectType, - [jni.JValueInt(i)]).object); - - static final _id_limit1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'limit', r'(I)Ljava/nio/Buffer;'); - - /// from: public java.nio.Buffer limit(int i) - /// The returned object must be released after use, by calling the [release] method. - Buffer limit1( - int i, - ) => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_limit1, - jni.JniCallType.objectType, - [jni.JValueInt(i)]).object); - - static final _id_mark = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'mark', r'()Ljava/nio/Buffer;'); - - /// from: public java.nio.Buffer mark() - /// The returned object must be released after use, by calling the [release] method. - Buffer mark() => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_mark, jni.JniCallType.objectType, []).object); - - static final _id_reset = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'reset', r'()Ljava/nio/Buffer;'); - - /// from: public java.nio.Buffer reset() - /// The returned object must be released after use, by calling the [release] method. - Buffer reset() => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_reset, jni.JniCallType.objectType, []).object); - - static final _id_clear = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'clear', r'()Ljava/nio/Buffer;'); - - /// from: public java.nio.Buffer clear() - /// The returned object must be released after use, by calling the [release] method. - Buffer clear() => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_clear, jni.JniCallType.objectType, []).object); - - static final _id_flip = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'flip', r'()Ljava/nio/Buffer;'); - - /// from: public java.nio.Buffer flip() - /// The returned object must be released after use, by calling the [release] method. - Buffer flip() => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_flip, jni.JniCallType.objectType, []).object); - - static final _id_rewind = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'rewind', r'()Ljava/nio/Buffer;'); - - /// from: public java.nio.Buffer rewind() - /// The returned object must be released after use, by calling the [release] method. - Buffer rewind() => - const $BufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_rewind, jni.JniCallType.objectType, []).object); - - static final _id_compact = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'compact', r'()Ljava/nio/ByteBuffer;'); - - /// from: public abstract java.nio.ByteBuffer compact() - /// The returned object must be released after use, by calling the [release] method. - ByteBuffer compact() => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_compact, jni.JniCallType.objectType, []).object); - - static final _id_isDirect = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'isDirect', r'()Z'); - - /// from: public abstract boolean isDirect() - bool isDirect() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_isDirect, jni.JniCallType.booleanType, []).boolean; - - static final _id_toString1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'toString', r'()Ljava/lang/String;'); - - /// from: public java.lang.String toString() - /// The returned object must be released after use, by calling the [release] method. - jni.JString toString1() => - const jni.JStringType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_toString1, jni.JniCallType.objectType, []).object); - - static final _id_hashCode1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'hashCode', r'()I'); - - /// from: public int hashCode() - int hashCode1() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_hashCode1, jni.JniCallType.intType, []).integer; - - static final _id_equals1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'equals', r'(Ljava/lang/Object;)Z'); - - /// from: public boolean equals(java.lang.Object object) - bool equals1( - jni.JObject object, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_equals1, - jni.JniCallType.booleanType, [object.reference]).boolean; - - static final _id_compareTo = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'compareTo', r'(Ljava/nio/ByteBuffer;)I'); - - /// from: public int compareTo(java.nio.ByteBuffer byteBuffer) - int compareTo( - ByteBuffer byteBuffer, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_compareTo, - jni.JniCallType.intType, [byteBuffer.reference]).integer; - - static final _id_order = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'order', r'()Ljava/nio/ByteOrder;'); - - /// from: public final java.nio.ByteOrder order() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject order() => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_order, jni.JniCallType.objectType, []).object); - - static final _id_order1 = jni.Jni.accessors.getMethodIDOf(_class.reference, - r'order', r'(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;'); - - /// from: public final java.nio.ByteBuffer order(java.nio.ByteOrder byteOrder) - /// The returned object must be released after use, by calling the [release] method. - ByteBuffer order1( - jni.JObject byteOrder, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_order1, - jni.JniCallType.objectType, - [byteOrder.reference]).object); - - static final _id_alignmentOffset = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'alignmentOffset', r'(II)I'); - - /// from: public final int alignmentOffset(int i, int i1) - int alignmentOffset( - int i, - int i1, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, - _id_alignmentOffset, - jni.JniCallType.intType, - [jni.JValueInt(i), jni.JValueInt(i1)]).integer; - - static final _id_alignedSlice = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'alignedSlice', r'(I)Ljava/nio/ByteBuffer;'); - - /// from: public final java.nio.ByteBuffer alignedSlice(int i) - /// The returned object must be released after use, by calling the [release] method. - ByteBuffer alignedSlice( - int i, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_alignedSlice, - jni.JniCallType.objectType, - [jni.JValueInt(i)]).object); - - static final _id_getChar = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'getChar', r'()C'); - - /// from: public abstract char getChar() - int getChar() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_getChar, jni.JniCallType.charType, []).char; - - static final _id_putChar = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'putChar', r'(C)Ljava/nio/ByteBuffer;'); - - /// from: public abstract java.nio.ByteBuffer putChar(char c) - /// The returned object must be released after use, by calling the [release] method. - ByteBuffer putChar( - int c, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putChar, - jni.JniCallType.objectType, - [jni.JValueChar(c)]).object); - - static final _id_getChar1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'getChar', r'(I)C'); - - /// from: public abstract char getChar(int i) - int getChar1( - int i, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_getChar1, - jni.JniCallType.charType, [jni.JValueInt(i)]).char; - - static final _id_putChar1 = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'putChar', r'(IC)Ljava/nio/ByteBuffer;'); - - /// from: public abstract java.nio.ByteBuffer putChar(int i, char c) - /// The returned object must be released after use, by calling the [release] method. - ByteBuffer putChar1( - int i, - int c, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putChar1, - jni.JniCallType.objectType, - [jni.JValueInt(i), jni.JValueChar(c)]).object); - - static final _id_asCharBuffer = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'asCharBuffer', r'()Ljava/nio/CharBuffer;'); - - /// from: public abstract java.nio.CharBuffer asCharBuffer() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject asCharBuffer() => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_asCharBuffer, jni.JniCallType.objectType, []).object); - - static final _id_getShort = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'getShort', r'()S'); - - /// from: public abstract short getShort() - int getShort() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_getShort, jni.JniCallType.shortType, []).short; - - static final _id_putShort = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'putShort', r'(S)Ljava/nio/ByteBuffer;'); - - /// from: public abstract java.nio.ByteBuffer putShort(short s) - /// The returned object must be released after use, by calling the [release] method. - ByteBuffer putShort( - int s, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putShort, - jni.JniCallType.objectType, - [jni.JValueShort(s)]).object); - - static final _id_getShort1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'getShort', r'(I)S'); - - /// from: public abstract short getShort(int i) - int getShort1( - int i, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_getShort1, - jni.JniCallType.shortType, [jni.JValueInt(i)]).short; - - static final _id_putShort1 = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'putShort', r'(IS)Ljava/nio/ByteBuffer;'); - - /// from: public abstract java.nio.ByteBuffer putShort(int i, short s) - /// The returned object must be released after use, by calling the [release] method. - ByteBuffer putShort1( - int i, - int s, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putShort1, - jni.JniCallType.objectType, - [jni.JValueInt(i), jni.JValueShort(s)]).object); - - static final _id_asShortBuffer = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'asShortBuffer', r'()Ljava/nio/ShortBuffer;'); - - /// from: public abstract java.nio.ShortBuffer asShortBuffer() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject asShortBuffer() => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_asShortBuffer, jni.JniCallType.objectType, []).object); - - static final _id_getInt = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'getInt', r'()I'); - - /// from: public abstract int getInt() - int getInt() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_getInt, jni.JniCallType.intType, []).integer; - - static final _id_putInt = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'putInt', r'(I)Ljava/nio/ByteBuffer;'); - - /// from: public abstract java.nio.ByteBuffer putInt(int i) - /// The returned object must be released after use, by calling the [release] method. - ByteBuffer putInt( - int i, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putInt, - jni.JniCallType.objectType, - [jni.JValueInt(i)]).object); - - static final _id_getInt1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'getInt', r'(I)I'); - - /// from: public abstract int getInt(int i) - int getInt1( - int i, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_getInt1, - jni.JniCallType.intType, [jni.JValueInt(i)]).integer; - - static final _id_putInt1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'putInt', r'(II)Ljava/nio/ByteBuffer;'); - - /// from: public abstract java.nio.ByteBuffer putInt(int i, int i1) - /// The returned object must be released after use, by calling the [release] method. - ByteBuffer putInt1( - int i, - int i1, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putInt1, - jni.JniCallType.objectType, - [jni.JValueInt(i), jni.JValueInt(i1)]).object); - - static final _id_asIntBuffer = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'asIntBuffer', r'()Ljava/nio/IntBuffer;'); - - /// from: public abstract java.nio.IntBuffer asIntBuffer() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject asIntBuffer() => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_asIntBuffer, jni.JniCallType.objectType, []).object); - - static final _id_getLong = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'getLong', r'()J'); - - /// from: public abstract long getLong() - int getLong() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_getLong, jni.JniCallType.longType, []).long; - - static final _id_putLong = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'putLong', r'(J)Ljava/nio/ByteBuffer;'); - - /// from: public abstract java.nio.ByteBuffer putLong(long j) - /// The returned object must be released after use, by calling the [release] method. - ByteBuffer putLong( - int j, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_putLong, jni.JniCallType.objectType, [j]).object); - - static final _id_getLong1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'getLong', r'(I)J'); - - /// from: public abstract long getLong(int i) - int getLong1( - int i, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_getLong1, - jni.JniCallType.longType, [jni.JValueInt(i)]).long; - - static final _id_putLong1 = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'putLong', r'(IJ)Ljava/nio/ByteBuffer;'); - - /// from: public abstract java.nio.ByteBuffer putLong(int i, long j) - /// The returned object must be released after use, by calling the [release] method. - ByteBuffer putLong1( - int i, - int j, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putLong1, - jni.JniCallType.objectType, - [jni.JValueInt(i), j]).object); - - static final _id_asLongBuffer = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'asLongBuffer', r'()Ljava/nio/LongBuffer;'); - - /// from: public abstract java.nio.LongBuffer asLongBuffer() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject asLongBuffer() => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_asLongBuffer, jni.JniCallType.objectType, []).object); - - static final _id_getFloat = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'getFloat', r'()F'); - - /// from: public abstract float getFloat() - double getFloat() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_getFloat, jni.JniCallType.floatType, []).float; - - static final _id_putFloat = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'putFloat', r'(F)Ljava/nio/ByteBuffer;'); - - /// from: public abstract java.nio.ByteBuffer putFloat(float f) - /// The returned object must be released after use, by calling the [release] method. - ByteBuffer putFloat( - double f, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putFloat, - jni.JniCallType.objectType, - [jni.JValueFloat(f)]).object); - - static final _id_getFloat1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'getFloat', r'(I)F'); - - /// from: public abstract float getFloat(int i) - double getFloat1( - int i, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_getFloat1, - jni.JniCallType.floatType, [jni.JValueInt(i)]).float; - - static final _id_putFloat1 = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'putFloat', r'(IF)Ljava/nio/ByteBuffer;'); - - /// from: public abstract java.nio.ByteBuffer putFloat(int i, float f) - /// The returned object must be released after use, by calling the [release] method. - ByteBuffer putFloat1( - int i, - double f, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putFloat1, - jni.JniCallType.objectType, - [jni.JValueInt(i), jni.JValueFloat(f)]).object); - - static final _id_asFloatBuffer = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'asFloatBuffer', r'()Ljava/nio/FloatBuffer;'); - - /// from: public abstract java.nio.FloatBuffer asFloatBuffer() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject asFloatBuffer() => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_asFloatBuffer, jni.JniCallType.objectType, []).object); - - static final _id_getDouble = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'getDouble', r'()D'); - - /// from: public abstract double getDouble() - double getDouble() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_getDouble, jni.JniCallType.doubleType, []).doubleFloat; - - static final _id_putDouble = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'putDouble', r'(D)Ljava/nio/ByteBuffer;'); - - /// from: public abstract java.nio.ByteBuffer putDouble(double d) - /// The returned object must be released after use, by calling the [release] method. - ByteBuffer putDouble( - double d, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_putDouble, jni.JniCallType.objectType, [d]).object); - - static final _id_getDouble1 = - jni.Jni.accessors.getMethodIDOf(_class.reference, r'getDouble', r'(I)D'); - - /// from: public abstract double getDouble(int i) - double getDouble1( - int i, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_getDouble1, - jni.JniCallType.doubleType, [jni.JValueInt(i)]).doubleFloat; - - static final _id_putDouble1 = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'putDouble', r'(ID)Ljava/nio/ByteBuffer;'); - - /// from: public abstract java.nio.ByteBuffer putDouble(int i, double d) - /// The returned object must be released after use, by calling the [release] method. - ByteBuffer putDouble1( - int i, - double d, - ) => - const $ByteBufferType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_putDouble1, - jni.JniCallType.objectType, - [jni.JValueInt(i), d]).object); - - static final _id_asDoubleBuffer = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'asDoubleBuffer', r'()Ljava/nio/DoubleBuffer;'); - - /// from: public abstract java.nio.DoubleBuffer asDoubleBuffer() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject asDoubleBuffer() => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, - _id_asDoubleBuffer, - jni.JniCallType.objectType, []).object); - - static final _id_array = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'array', r'()Ljava/lang/Object;'); - - /// from: public java.lang.Object array() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject array() => - const jni.JObjectType().fromRef(jni.Jni.accessors.callMethodWithArgs( - reference, _id_array, jni.JniCallType.objectType, []).object); - - static final _id_compareTo1 = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'compareTo', r'(Ljava/lang/Object;)I'); - - /// from: public int compareTo(java.lang.Object object) - int compareTo1( - jni.JObject object, - ) => - jni.Jni.accessors.callMethodWithArgs(reference, _id_compareTo1, - jni.JniCallType.intType, [object.reference]).integer; -} - -final class $ByteBufferType extends jni.JObjType { - const $ByteBufferType(); - - @override - String get signature => r'Ljava/nio/ByteBuffer;'; - - @override - ByteBuffer fromRef(jni.JObjectPtr ref) => ByteBuffer.fromRef(ref); - - @override - jni.JObjType get superType => const $BufferType(); - - @override - final superCount = 2; - - @override - int get hashCode => ($ByteBufferType).hashCode; - - @override - bool operator ==(Object other) => - other.runtimeType == $ByteBufferType && other is $ByteBufferType; -} - /// from: java.util.concurrent.Executors class Executors extends jni.JObject { @override @@ -2496,120 +1531,6 @@ class CronetEngine_Builder extends jni.JObject { jni.JniCallType.objectType, [z ? 1 : 0]).object); - static final _id_setThreadPriority = jni.Jni.accessors.getMethodIDOf( - _class.reference, - r'setThreadPriority', - r'(I)Lorg/chromium/net/CronetEngine$Builder;'); - - /// from: public org.chromium.net.CronetEngine$Builder setThreadPriority(int i) - /// The returned object must be released after use, by calling the [release] method. - CronetEngine_Builder setThreadPriority( - int i, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setThreadPriority, - jni.JniCallType.objectType, [jni.JValueInt(i)]).object); - - static final _id_enableNetworkQualityEstimator = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'enableNetworkQualityEstimator', - r'(Z)Lorg/chromium/net/CronetEngine$Builder;'); - - /// from: public org.chromium.net.CronetEngine$Builder enableNetworkQualityEstimator(boolean z) - /// The returned object must be released after use, by calling the [release] method. - CronetEngine_Builder enableNetworkQualityEstimator( - bool z, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_enableNetworkQualityEstimator, - jni.JniCallType.objectType, [z ? 1 : 0]).object); - - static final _id_setQuicOptions = jni.Jni.accessors.getMethodIDOf( - _class.reference, - r'setQuicOptions', - r'(Lorg/chromium/net/QuicOptions;)Lorg/chromium/net/CronetEngine$Builder;'); - - /// from: public org.chromium.net.CronetEngine$Builder setQuicOptions(org.chromium.net.QuicOptions quicOptions) - /// The returned object must be released after use, by calling the [release] method. - CronetEngine_Builder setQuicOptions( - jni.JObject quicOptions, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setQuicOptions, - jni.JniCallType.objectType, [quicOptions.reference]).object); - - static final _id_setQuicOptions1 = jni.Jni.accessors.getMethodIDOf( - _class.reference, - r'setQuicOptions', - r'(Lorg/chromium/net/QuicOptions$Builder;)Lorg/chromium/net/CronetEngine$Builder;'); - - /// from: public org.chromium.net.CronetEngine$Builder setQuicOptions(org.chromium.net.QuicOptions$Builder builder) - /// The returned object must be released after use, by calling the [release] method. - CronetEngine_Builder setQuicOptions1( - jni.JObject builder, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setQuicOptions1, - jni.JniCallType.objectType, [builder.reference]).object); - - static final _id_setDnsOptions = jni.Jni.accessors.getMethodIDOf( - _class.reference, - r'setDnsOptions', - r'(Lorg/chromium/net/DnsOptions;)Lorg/chromium/net/CronetEngine$Builder;'); - - /// from: public org.chromium.net.CronetEngine$Builder setDnsOptions(org.chromium.net.DnsOptions dnsOptions) - /// The returned object must be released after use, by calling the [release] method. - CronetEngine_Builder setDnsOptions( - jni.JObject dnsOptions, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setDnsOptions, - jni.JniCallType.objectType, [dnsOptions.reference]).object); - - static final _id_setDnsOptions1 = jni.Jni.accessors.getMethodIDOf( - _class.reference, - r'setDnsOptions', - r'(Lorg/chromium/net/DnsOptions$Builder;)Lorg/chromium/net/CronetEngine$Builder;'); - - /// from: public org.chromium.net.CronetEngine$Builder setDnsOptions(org.chromium.net.DnsOptions$Builder builder) - /// The returned object must be released after use, by calling the [release] method. - CronetEngine_Builder setDnsOptions1( - jni.JObject builder, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setDnsOptions1, - jni.JniCallType.objectType, [builder.reference]).object); - - static final _id_setConnectionMigrationOptions = jni.Jni.accessors.getMethodIDOf( - _class.reference, - r'setConnectionMigrationOptions', - r'(Lorg/chromium/net/ConnectionMigrationOptions;)Lorg/chromium/net/CronetEngine$Builder;'); - - /// from: public org.chromium.net.CronetEngine$Builder setConnectionMigrationOptions(org.chromium.net.ConnectionMigrationOptions connectionMigrationOptions) - /// The returned object must be released after use, by calling the [release] method. - CronetEngine_Builder setConnectionMigrationOptions( - jni.JObject connectionMigrationOptions, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs( - reference, - _id_setConnectionMigrationOptions, - jni.JniCallType.objectType, - [connectionMigrationOptions.reference]).object); - - static final _id_setConnectionMigrationOptions1 = jni.Jni.accessors.getMethodIDOf( - _class.reference, - r'setConnectionMigrationOptions', - r'(Lorg/chromium/net/ConnectionMigrationOptions$Builder;)Lorg/chromium/net/CronetEngine$Builder;'); - - /// from: public org.chromium.net.CronetEngine$Builder setConnectionMigrationOptions(org.chromium.net.ConnectionMigrationOptions$Builder builder) - /// The returned object must be released after use, by calling the [release] method. - CronetEngine_Builder setConnectionMigrationOptions1( - jni.JObject builder, - ) => - const $CronetEngine_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setConnectionMigrationOptions1, - jni.JniCallType.objectType, [builder.reference]).object); - static final _id_build = jni.Jni.accessors.getMethodIDOf( _class.reference, r'build', r'()Lorg/chromium/net/CronetEngine;'); @@ -2659,31 +1580,6 @@ class CronetEngine extends jni.JObject { /// The type which includes information such as the signature of this class. static const type = $CronetEngineType(); - - /// from: static public final int ACTIVE_REQUEST_COUNT_UNKNOWN - static const ACTIVE_REQUEST_COUNT_UNKNOWN = -1; - - /// from: static public final int CONNECTION_METRIC_UNKNOWN - static const CONNECTION_METRIC_UNKNOWN = -1; - - /// from: static public final int EFFECTIVE_CONNECTION_TYPE_UNKNOWN - static const EFFECTIVE_CONNECTION_TYPE_UNKNOWN = 0; - - /// from: static public final int EFFECTIVE_CONNECTION_TYPE_OFFLINE - static const EFFECTIVE_CONNECTION_TYPE_OFFLINE = 1; - - /// from: static public final int EFFECTIVE_CONNECTION_TYPE_SLOW_2G - static const EFFECTIVE_CONNECTION_TYPE_SLOW_2G = 2; - - /// from: static public final int EFFECTIVE_CONNECTION_TYPE_2G - static const EFFECTIVE_CONNECTION_TYPE_2G = 3; - - /// from: static public final int EFFECTIVE_CONNECTION_TYPE_3G - static const EFFECTIVE_CONNECTION_TYPE_3G = 4; - - /// from: static public final int EFFECTIVE_CONNECTION_TYPE_4G - static const EFFECTIVE_CONNECTION_TYPE_4G = 5; - static final _id_new0 = jni.Jni.accessors.getMethodIDOf(_class.reference, r'', r'()V'); @@ -2785,165 +1681,6 @@ class CronetEngine extends jni.JObject { callback.reference, executor.reference ]).object); - - static final _id_getActiveRequestCount = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getActiveRequestCount', r'()I'); - - /// from: public int getActiveRequestCount() - int getActiveRequestCount() => jni.Jni.accessors.callMethodWithArgs(reference, - _id_getActiveRequestCount, jni.JniCallType.intType, []).integer; - - static final _id_addRequestFinishedListener = jni.Jni.accessors.getMethodIDOf( - _class.reference, - r'addRequestFinishedListener', - r'(Lorg/chromium/net/RequestFinishedInfo$Listener;)V'); - - /// from: public void addRequestFinishedListener(org.chromium.net.RequestFinishedInfo$Listener listener) - void addRequestFinishedListener( - jni.JObject listener, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, - _id_addRequestFinishedListener, - jni.JniCallType.voidType, - [listener.reference]).check(); - - static final _id_removeRequestFinishedListener = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'removeRequestFinishedListener', - r'(Lorg/chromium/net/RequestFinishedInfo$Listener;)V'); - - /// from: public void removeRequestFinishedListener(org.chromium.net.RequestFinishedInfo$Listener listener) - void removeRequestFinishedListener( - jni.JObject listener, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, - _id_removeRequestFinishedListener, - jni.JniCallType.voidType, - [listener.reference]).check(); - - static final _id_getHttpRttMs = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getHttpRttMs', r'()I'); - - /// from: public int getHttpRttMs() - int getHttpRttMs() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_getHttpRttMs, jni.JniCallType.intType, []).integer; - - static final _id_getTransportRttMs = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getTransportRttMs', r'()I'); - - /// from: public int getTransportRttMs() - int getTransportRttMs() => jni.Jni.accessors.callMethodWithArgs( - reference, _id_getTransportRttMs, jni.JniCallType.intType, []).integer; - - static final _id_getDownstreamThroughputKbps = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getDownstreamThroughputKbps', r'()I'); - - /// from: public int getDownstreamThroughputKbps() - int getDownstreamThroughputKbps() => jni.Jni.accessors.callMethodWithArgs( - reference, - _id_getDownstreamThroughputKbps, - jni.JniCallType.intType, []).integer; - - static final _id_startNetLogToDisk = jni.Jni.accessors.getMethodIDOf( - _class.reference, r'startNetLogToDisk', r'(Ljava/lang/String;ZI)V'); - - /// from: public void startNetLogToDisk(java.lang.String string, boolean z, int i) - void startNetLogToDisk( - jni.JString string, - bool z, - int i, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, - _id_startNetLogToDisk, - jni.JniCallType.voidType, - [string.reference, z ? 1 : 0, jni.JValueInt(i)]).check(); - - static final _id_getEffectiveConnectionType = jni.Jni.accessors - .getMethodIDOf(_class.reference, r'getEffectiveConnectionType', r'()I'); - - /// from: public int getEffectiveConnectionType() - int getEffectiveConnectionType() => jni.Jni.accessors.callMethodWithArgs( - reference, - _id_getEffectiveConnectionType, - jni.JniCallType.intType, []).integer; - - static final _id_configureNetworkQualityEstimatorForTesting = - jni.Jni.accessors.getMethodIDOf(_class.reference, - r'configureNetworkQualityEstimatorForTesting', r'(ZZZ)V'); - - /// from: public void configureNetworkQualityEstimatorForTesting(boolean z, boolean z1, boolean z2) - void configureNetworkQualityEstimatorForTesting( - bool z, - bool z1, - bool z2, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, - _id_configureNetworkQualityEstimatorForTesting, - jni.JniCallType.voidType, - [z ? 1 : 0, z1 ? 1 : 0, z2 ? 1 : 0]).check(); - - static final _id_addRttListener = jni.Jni.accessors.getMethodIDOf( - _class.reference, - r'addRttListener', - r'(Lorg/chromium/net/NetworkQualityRttListener;)V'); - - /// from: public void addRttListener(org.chromium.net.NetworkQualityRttListener networkQualityRttListener) - void addRttListener( - jni.JObject networkQualityRttListener, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, - _id_addRttListener, - jni.JniCallType.voidType, - [networkQualityRttListener.reference]).check(); - - static final _id_removeRttListener = jni.Jni.accessors.getMethodIDOf( - _class.reference, - r'removeRttListener', - r'(Lorg/chromium/net/NetworkQualityRttListener;)V'); - - /// from: public void removeRttListener(org.chromium.net.NetworkQualityRttListener networkQualityRttListener) - void removeRttListener( - jni.JObject networkQualityRttListener, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, - _id_removeRttListener, - jni.JniCallType.voidType, - [networkQualityRttListener.reference]).check(); - - static final _id_addThroughputListener = jni.Jni.accessors.getMethodIDOf( - _class.reference, - r'addThroughputListener', - r'(Lorg/chromium/net/NetworkQualityThroughputListener;)V'); - - /// from: public void addThroughputListener(org.chromium.net.NetworkQualityThroughputListener networkQualityThroughputListener) - void addThroughputListener( - jni.JObject networkQualityThroughputListener, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, - _id_addThroughputListener, - jni.JniCallType.voidType, - [networkQualityThroughputListener.reference]).check(); - - static final _id_removeThroughputListener = jni.Jni.accessors.getMethodIDOf( - _class.reference, - r'removeThroughputListener', - r'(Lorg/chromium/net/NetworkQualityThroughputListener;)V'); - - /// from: public void removeThroughputListener(org.chromium.net.NetworkQualityThroughputListener networkQualityThroughputListener) - void removeThroughputListener( - jni.JObject networkQualityThroughputListener, - ) => - jni.Jni.accessors.callMethodWithArgs( - reference, - _id_removeThroughputListener, - jni.JniCallType.voidType, - [networkQualityThroughputListener.reference]).check(); } final class $CronetEngineType extends jni.JObjType { @@ -3074,7 +1811,7 @@ class UploadDataProviders extends jni.JObject { /// from: static public org.chromium.net.UploadDataProvider create(java.nio.ByteBuffer byteBuffer) /// The returned object must be released after use, by calling the [release] method. static jni.JObject create2( - ByteBuffer byteBuffer, + jni.JByteBuffer byteBuffer, ) => const jni.JObjectType().fromRef(jni.Jni.accessors .callStaticMethodWithArgs(_class.reference, _id_create2, @@ -3263,62 +2000,6 @@ class UrlRequest_Builder extends jni.JObject { .fromRef(jni.Jni.accessors.callMethodWithArgs(reference, _id_allowDirectExecutor, jni.JniCallType.objectType, []).object); - static final _id_addRequestAnnotation = jni.Jni.accessors.getMethodIDOf( - _class.reference, - r'addRequestAnnotation', - r'(Ljava/lang/Object;)Lorg/chromium/net/UrlRequest$Builder;'); - - /// from: public org.chromium.net.UrlRequest$Builder addRequestAnnotation(java.lang.Object object) - /// The returned object must be released after use, by calling the [release] method. - UrlRequest_Builder addRequestAnnotation( - jni.JObject object, - ) => - const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_addRequestAnnotation, - jni.JniCallType.objectType, [object.reference]).object); - - static final _id_setTrafficStatsTag = jni.Jni.accessors.getMethodIDOf( - _class.reference, - r'setTrafficStatsTag', - r'(I)Lorg/chromium/net/UrlRequest$Builder;'); - - /// from: public org.chromium.net.UrlRequest$Builder setTrafficStatsTag(int i) - /// The returned object must be released after use, by calling the [release] method. - UrlRequest_Builder setTrafficStatsTag( - int i, - ) => - const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setTrafficStatsTag, - jni.JniCallType.objectType, [jni.JValueInt(i)]).object); - - static final _id_setTrafficStatsUid = jni.Jni.accessors.getMethodIDOf( - _class.reference, - r'setTrafficStatsUid', - r'(I)Lorg/chromium/net/UrlRequest$Builder;'); - - /// from: public org.chromium.net.UrlRequest$Builder setTrafficStatsUid(int i) - /// The returned object must be released after use, by calling the [release] method. - UrlRequest_Builder setTrafficStatsUid( - int i, - ) => - const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setTrafficStatsUid, - jni.JniCallType.objectType, [jni.JValueInt(i)]).object); - - static final _id_setRequestFinishedListener = jni.Jni.accessors.getMethodIDOf( - _class.reference, - r'setRequestFinishedListener', - r'(Lorg/chromium/net/RequestFinishedInfo$Listener;)Lorg/chromium/net/UrlRequest$Builder;'); - - /// from: public org.chromium.net.UrlRequest$Builder setRequestFinishedListener(org.chromium.net.RequestFinishedInfo$Listener listener) - /// The returned object must be released after use, by calling the [release] method. - UrlRequest_Builder setRequestFinishedListener( - jni.JObject listener, - ) => - const $UrlRequest_BuilderType().fromRef(jni.Jni.accessors - .callMethodWithArgs(reference, _id_setRequestFinishedListener, - jni.JniCallType.objectType, [listener.reference]).object); - static final _id_build = jni.Jni.accessors.getMethodIDOf( _class.reference, r'build', r'()Lorg/chromium/net/UrlRequest;'); @@ -3419,7 +2100,7 @@ class UrlRequest_Callback extends jni.JObject { void onReadCompleted( UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - ByteBuffer byteBuffer, + jni.JByteBuffer byteBuffer, ) => jni.Jni.accessors.callMethodWithArgs( reference, _id_onReadCompleted, jni.JniCallType.voidType, [ @@ -3693,7 +2374,7 @@ class UrlRequest extends jni.JObject { /// from: public abstract void read(java.nio.ByteBuffer byteBuffer) void read( - ByteBuffer byteBuffer, + jni.JByteBuffer byteBuffer, ) => jni.Jni.accessors.callMethodWithArgs(reference, _id_read, jni.JniCallType.voidType, [byteBuffer.reference]).check();