From 89e8899a6108b782d56d5de86b093f2f274f9b98 Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Thu, 6 Aug 2026 14:54:44 -0700 Subject: [PATCH 1/3] chore: upgrade to jnigen 0.17.0 --- .github/workflows/cronet.yml | 2 - pkgs/cronet_http/CHANGELOG.md | 4 + .../example/android/gradle.properties | 4 + pkgs/cronet_http/lib/src/cronet_client.dart | 6 +- .../cronet_http/lib/src/jni/jni_bindings.dart | 1570 +- pkgs/cronet_http/pubspec.yaml | 4 +- pkgs/ok_http/CHANGELOG.md | 1 + .../ok_http/example/android/gradle.properties | 4 + pkgs/ok_http/example/android/settings.gradle | 4 +- .../integration_test/certificate_test.dart | 4 +- pkgs/ok_http/example/pubspec.yaml | 1 + pkgs/ok_http/lib/src/jni/bindings.dart | 34519 +++++++--------- pkgs/ok_http/lib/src/ok_http_client.dart | 63 +- pkgs/ok_http/lib/src/ok_http_web_socket.dart | 2 +- pkgs/ok_http/pubspec.yaml | 5 +- 15 files changed, 17041 insertions(+), 19152 deletions(-) diff --git a/.github/workflows/cronet.yml b/.github/workflows/cronet.yml index 77483b1a33..aa67a9962a 100644 --- a/.github/workflows/cronet.yml +++ b/.github/workflows/cronet.yml @@ -39,8 +39,6 @@ jobs: - id: install name: Install dependencies run: flutter pub get - - name: Build APK - run: cd example && flutter build apk && cd .. - name: Upgrade # Set this to `true` if you are using this workflow to regenerate the jni # bindings. diff --git a/pkgs/cronet_http/CHANGELOG.md b/pkgs/cronet_http/CHANGELOG.md index 24171067fd..0ca08de713 100644 --- a/pkgs/cronet_http/CHANGELOG.md +++ b/pkgs/cronet_http/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.9.1-wip + +* Upgrade `package:jnigen` to 0.17.0. + ## 1.9.0 * Add `CronetEngine.startNetLogToFile` and `CronetEngine.stopNetLog`. diff --git a/pkgs/cronet_http/example/android/gradle.properties b/pkgs/cronet_http/example/android/gradle.properties index 988bcc6f83..cc738c5387 100644 --- a/pkgs/cronet_http/example/android/gradle.properties +++ b/pkgs/cronet_http/example/android/gradle.properties @@ -2,3 +2,7 @@ org.gradle.jvmargs=-Xmx12800M org.gradle.caching=true android.useAndroidX=true android.enableJetifier=true +# This builtInKotlin flag was added automatically by Flutter migrator +android.builtInKotlin=false +# This newDsl flag was added automatically by Flutter migrator +android.newDsl=false diff --git a/pkgs/cronet_http/lib/src/cronet_client.dart b/pkgs/cronet_http/lib/src/cronet_client.dart index 6ccce6eb59..04bcbfaf1c 100644 --- a/pkgs/cronet_http/lib/src/cronet_client.dart +++ b/pkgs/cronet_http/lib/src/cronet_client.dart @@ -259,7 +259,7 @@ class CronetEngine { try { return using((arena) { final builder = jb.CronetEngine$Builder( - androidApplicationContext..releasedBy(arena)) + (androidApplicationContext as jb.Context)..releasedBy(arena)) ..releasedBy(arena); if (storagePath != null) { @@ -696,7 +696,7 @@ class CronetClient extends BaseClient { jUrl, jb.UrlRequestCallbackProxy( _urlRequestCallbacks(request, responseCompleter, profile)), - _executor, + _executor as jb.Executor, )! ..releasedBy(arena) ..setHttpMethod(jMethod); @@ -728,7 +728,7 @@ class CronetClient extends BaseClient { } builder.setUploadDataProvider( - jb.UploadDataProviders.create$2(data), _executor); + jb.UploadDataProviders.create$2(data), _executor as jb.Executor); } // Not releasing `cronetRequest` as it's used in `whenComplete` callback. diff --git a/pkgs/cronet_http/lib/src/jni/jni_bindings.dart b/pkgs/cronet_http/lib/src/jni/jni_bindings.dart index 77011c1c35..89338835ab 100644 --- a/pkgs/cronet_http/lib/src/jni/jni_bindings.dart +++ b/pkgs/cronet_http/lib/src/jni/jni_bindings.dart @@ -1,4 +1,4 @@ -// AUTO GENERATED BY JNIGEN 0.16.0. DO NOT EDIT! +// AUTO GENERATED BY JNIGEN 0.17.0. DO NOT EDIT! // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable @@ -150,6 +150,7 @@ extension type UrlRequestCallbackProxy$UrlRequestCallbackInterface._( } final $i = jni$_.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); + $i.args?.release(); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( @@ -218,11 +219,12 @@ extension UrlRequestCallbackProxy$UrlRequestCallbackInterface$$Methods UrlResponseInfo? urlResponseInfo, jni$_.JString? string, ) { + final _$$selfRef = reference; final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; final _$urlResponseInfo = urlResponseInfo?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; - _onRedirectReceived(reference.pointer, _id_onRedirectReceived.pointer, + _onRedirectReceived(_$$selfRef.pointer, _id_onRedirectReceived.pointer, _$urlRequest.pointer, _$urlResponseInfo.pointer, _$string.pointer) .check(); } @@ -256,10 +258,11 @@ extension UrlRequestCallbackProxy$UrlRequestCallbackInterface$$Methods UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo, ) { + final _$$selfRef = reference; final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; final _$urlResponseInfo = urlResponseInfo?.reference ?? jni$_.jNullReference; - _onResponseStarted(reference.pointer, _id_onResponseStarted.pointer, + _onResponseStarted(_$$selfRef.pointer, _id_onResponseStarted.pointer, _$urlRequest.pointer, _$urlResponseInfo.pointer) .check(); } @@ -296,12 +299,13 @@ extension UrlRequestCallbackProxy$UrlRequestCallbackInterface$$Methods UrlResponseInfo? urlResponseInfo, jni$_.JByteBuffer? byteBuffer, ) { + final _$$selfRef = reference; final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; final _$urlResponseInfo = urlResponseInfo?.reference ?? jni$_.jNullReference; final _$byteBuffer = byteBuffer?.reference ?? jni$_.jNullReference; _onReadCompleted( - reference.pointer, + _$$selfRef.pointer, _id_onReadCompleted.pointer, _$urlRequest.pointer, _$urlResponseInfo.pointer, @@ -338,10 +342,11 @@ extension UrlRequestCallbackProxy$UrlRequestCallbackInterface$$Methods UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo, ) { + final _$$selfRef = reference; final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; final _$urlResponseInfo = urlResponseInfo?.reference ?? jni$_.jNullReference; - _onSucceeded(reference.pointer, _id_onSucceeded.pointer, + _onSucceeded(_$$selfRef.pointer, _id_onSucceeded.pointer, _$urlRequest.pointer, _$urlResponseInfo.pointer) .check(); } @@ -375,11 +380,12 @@ extension UrlRequestCallbackProxy$UrlRequestCallbackInterface$$Methods UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo, ) { + final _$$selfRef = reference; final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; final _$urlResponseInfo = urlResponseInfo?.reference ?? jni$_.jNullReference; - _onCanceled(reference.pointer, _id_onCanceled.pointer, _$urlRequest.pointer, - _$urlResponseInfo.pointer) + _onCanceled(_$$selfRef.pointer, _id_onCanceled.pointer, + _$urlRequest.pointer, _$urlResponseInfo.pointer) .check(); } @@ -415,12 +421,13 @@ extension UrlRequestCallbackProxy$UrlRequestCallbackInterface$$Methods UrlResponseInfo? urlResponseInfo, CronetException? cronetException, ) { + final _$$selfRef = reference; final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; final _$urlResponseInfo = urlResponseInfo?.reference ?? jni$_.jNullReference; final _$cronetException = cronetException?.reference ?? jni$_.jNullReference; - _onFailed(reference.pointer, _id_onFailed.pointer, _$urlRequest.pointer, + _onFailed(_$$selfRef.pointer, _id_onFailed.pointer, _$urlRequest.pointer, _$urlResponseInfo.pointer, _$cronetException.pointer) .check(); } @@ -595,8 +602,9 @@ extension type UrlRequestCallbackProxy._(jni$_.JObject _$this) UrlRequestCallbackProxy$UrlRequestCallbackInterface urlRequestCallbackInterface, ) { + final _$$classRef = _class.reference; final _$urlRequestCallbackInterface = urlRequestCallbackInterface.reference; - return _new$(_class.reference.pointer, _id_new$.pointer, + return _new$(_$$classRef.pointer, _id_new$.pointer, _$urlRequestCallbackInterface.pointer) .object(); } @@ -624,7 +632,8 @@ extension UrlRequestCallbackProxy$$Methods on UrlRequestCallbackProxy { /// 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 get callback { - return _get$callback(reference.pointer, _id_get$callback.pointer) + final _$$selfRef = reference; + return _get$callback(_$$selfRef.pointer, _id_get$callback.pointer) .object(); } @@ -659,11 +668,12 @@ extension UrlRequestCallbackProxy$$Methods on UrlRequestCallbackProxy { UrlResponseInfo? urlResponseInfo, jni$_.JString? string, ) { + final _$$selfRef = reference; final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; final _$urlResponseInfo = urlResponseInfo?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; - _onRedirectReceived(reference.pointer, _id_onRedirectReceived.pointer, + _onRedirectReceived(_$$selfRef.pointer, _id_onRedirectReceived.pointer, _$urlRequest.pointer, _$urlResponseInfo.pointer, _$string.pointer) .check(); } @@ -696,10 +706,11 @@ extension UrlRequestCallbackProxy$$Methods on UrlRequestCallbackProxy { UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo, ) { + final _$$selfRef = reference; final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; final _$urlResponseInfo = urlResponseInfo?.reference ?? jni$_.jNullReference; - _onResponseStarted(reference.pointer, _id_onResponseStarted.pointer, + _onResponseStarted(_$$selfRef.pointer, _id_onResponseStarted.pointer, _$urlRequest.pointer, _$urlResponseInfo.pointer) .check(); } @@ -735,12 +746,13 @@ extension UrlRequestCallbackProxy$$Methods on UrlRequestCallbackProxy { UrlResponseInfo? urlResponseInfo, jni$_.JByteBuffer? byteBuffer, ) { + final _$$selfRef = reference; final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; final _$urlResponseInfo = urlResponseInfo?.reference ?? jni$_.jNullReference; final _$byteBuffer = byteBuffer?.reference ?? jni$_.jNullReference; _onReadCompleted( - reference.pointer, + _$$selfRef.pointer, _id_onReadCompleted.pointer, _$urlRequest.pointer, _$urlResponseInfo.pointer, @@ -776,10 +788,11 @@ extension UrlRequestCallbackProxy$$Methods on UrlRequestCallbackProxy { UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo, ) { + final _$$selfRef = reference; final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; final _$urlResponseInfo = urlResponseInfo?.reference ?? jni$_.jNullReference; - _onSucceeded(reference.pointer, _id_onSucceeded.pointer, + _onSucceeded(_$$selfRef.pointer, _id_onSucceeded.pointer, _$urlRequest.pointer, _$urlResponseInfo.pointer) .check(); } @@ -811,11 +824,12 @@ extension UrlRequestCallbackProxy$$Methods on UrlRequestCallbackProxy { UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo, ) { + final _$$selfRef = reference; final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; final _$urlResponseInfo = urlResponseInfo?.reference ?? jni$_.jNullReference; - _onCanceled(reference.pointer, _id_onCanceled.pointer, _$urlRequest.pointer, - _$urlResponseInfo.pointer) + _onCanceled(_$$selfRef.pointer, _id_onCanceled.pointer, + _$urlRequest.pointer, _$urlResponseInfo.pointer) .check(); } @@ -849,12 +863,13 @@ extension UrlRequestCallbackProxy$$Methods on UrlRequestCallbackProxy { UrlResponseInfo? urlResponseInfo, CronetException? cronetException, ) { + final _$$selfRef = reference; final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; final _$urlResponseInfo = urlResponseInfo?.reference ?? jni$_.jNullReference; final _$cronetException = cronetException?.reference ?? jni$_.jNullReference; - _onFailed(reference.pointer, _id_onFailed.pointer, _$urlRequest.pointer, + _onFailed(_$$selfRef.pointer, _id_onFailed.pointer, _$urlRequest.pointer, _$urlResponseInfo.pointer, _$cronetException.pointer) .check(); } @@ -896,8 +911,8 @@ extension type IOException._(jni$_.JObject _$this) implements Exception { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory IOException() { - return _new$(_class.reference.pointer, _id_new$.pointer) - .object(); + final _$$classRef = _class.reference; + return _new$(_$$classRef.pointer, _id_new$.pointer).object(); } static final _id_new1 = _class.constructorId( @@ -920,8 +935,9 @@ extension type IOException._(jni$_.JObject _$this) implements Exception { factory IOException.new1( jni$_.JString? string, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; - return _new1(_class.reference.pointer, _id_new1.pointer, _$string.pointer) + return _new1(_$$classRef.pointer, _id_new1.pointer, _$string.pointer) .object(); } @@ -952,9 +968,10 @@ extension type IOException._(jni$_.JObject _$this) implements Exception { jni$_.JString? string, Throwable? throwable, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$throwable = throwable?.reference ?? jni$_.jNullReference; - return _new2(_class.reference.pointer, _id_new2.pointer, _$string.pointer, + return _new2(_$$classRef.pointer, _id_new2.pointer, _$string.pointer, _$throwable.pointer) .object(); } @@ -979,9 +996,9 @@ extension type IOException._(jni$_.JObject _$this) implements Exception { factory IOException.new3( Throwable? throwable, ) { + final _$$classRef = _class.reference; final _$throwable = throwable?.reference ?? jni$_.jNullReference; - return _new3( - _class.reference.pointer, _id_new3.pointer, _$throwable.pointer) + return _new3(_$$classRef.pointer, _id_new3.pointer, _$throwable.pointer) .object(); } } @@ -1020,8 +1037,8 @@ extension type Exception._(jni$_.JObject _$this) implements Throwable { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory Exception() { - return _new$(_class.reference.pointer, _id_new$.pointer) - .object(); + final _$$classRef = _class.reference; + return _new$(_$$classRef.pointer, _id_new$.pointer).object(); } static final _id_new1 = _class.constructorId( @@ -1044,8 +1061,9 @@ extension type Exception._(jni$_.JObject _$this) implements Throwable { factory Exception.new1( jni$_.JString? string, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; - return _new1(_class.reference.pointer, _id_new1.pointer, _$string.pointer) + return _new1(_$$classRef.pointer, _id_new1.pointer, _$string.pointer) .object(); } @@ -1076,9 +1094,10 @@ extension type Exception._(jni$_.JObject _$this) implements Throwable { jni$_.JString? string, Throwable? throwable, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$throwable = throwable?.reference ?? jni$_.jNullReference; - return _new2(_class.reference.pointer, _id_new2.pointer, _$string.pointer, + return _new2(_$$classRef.pointer, _id_new2.pointer, _$string.pointer, _$throwable.pointer) .object(); } @@ -1103,9 +1122,9 @@ extension type Exception._(jni$_.JObject _$this) implements Throwable { factory Exception.new3( Throwable? throwable, ) { + final _$$classRef = _class.reference; final _$throwable = throwable?.reference ?? jni$_.jNullReference; - return _new3( - _class.reference.pointer, _id_new3.pointer, _$throwable.pointer) + return _new3(_$$classRef.pointer, _id_new3.pointer, _$throwable.pointer) .object(); } } @@ -1120,7 +1139,8 @@ final class $Exception$Type$ extends jni$_.JType { } /// from: `java.lang.Throwable` -extension type Throwable._(jni$_.JObject _$this) implements jni$_.JObject { +extension type Throwable._(jni$_.JObject _$this) + implements jni$_.JObject, Serializable { static final _class = jni$_.JClass.forName(r'java/lang/Throwable'); /// The type which includes information such as the signature of this class. @@ -1144,8 +1164,8 @@ extension type Throwable._(jni$_.JObject _$this) implements jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory Throwable() { - return _new$(_class.reference.pointer, _id_new$.pointer) - .object(); + final _$$classRef = _class.reference; + return _new$(_$$classRef.pointer, _id_new$.pointer).object(); } static final _id_new$1 = _class.constructorId( @@ -1168,8 +1188,9 @@ extension type Throwable._(jni$_.JObject _$this) implements jni$_.JObject { factory Throwable.new$1( jni$_.JString? string, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; - return _new$1(_class.reference.pointer, _id_new$1.pointer, _$string.pointer) + return _new$1(_$$classRef.pointer, _id_new$1.pointer, _$string.pointer) .object(); } @@ -1200,9 +1221,10 @@ extension type Throwable._(jni$_.JObject _$this) implements jni$_.JObject { jni$_.JString? string, Throwable? throwable, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$throwable = throwable?.reference ?? jni$_.jNullReference; - return _new$2(_class.reference.pointer, _id_new$2.pointer, _$string.pointer, + return _new$2(_$$classRef.pointer, _id_new$2.pointer, _$string.pointer, _$throwable.pointer) .object(); } @@ -1227,9 +1249,9 @@ extension type Throwable._(jni$_.JObject _$this) implements jni$_.JObject { factory Throwable.new$3( Throwable? throwable, ) { + final _$$classRef = _class.reference; final _$throwable = throwable?.reference ?? jni$_.jNullReference; - return _new$3( - _class.reference.pointer, _id_new$3.pointer, _$throwable.pointer) + return _new$3(_$$classRef.pointer, _id_new$3.pointer, _$throwable.pointer) .object(); } } @@ -1255,9 +1277,10 @@ extension Throwable$$Methods on Throwable { void addSuppressed( Throwable? throwable, ) { + final _$$selfRef = reference; final _$throwable = throwable?.reference ?? jni$_.jNullReference; _addSuppressed( - reference.pointer, _id_addSuppressed.pointer, _$throwable.pointer) + _$$selfRef.pointer, _id_addSuppressed.pointer, _$throwable.pointer) .check(); } @@ -1281,7 +1304,8 @@ extension Throwable$$Methods on Throwable { /// from: `public java.lang.Throwable fillInStackTrace()` /// The returned object must be released after use, by calling the [release] method. Throwable? fillInStackTrace() { - return _fillInStackTrace(reference.pointer, _id_fillInStackTrace.pointer) + final _$$selfRef = reference; + return _fillInStackTrace(_$$selfRef.pointer, _id_fillInStackTrace.pointer) .object(); } @@ -1305,7 +1329,8 @@ extension Throwable$$Methods on Throwable { /// from: `public java.lang.Throwable getCause()` /// The returned object must be released after use, by calling the [release] method. Throwable? get cause { - return _get$cause(reference.pointer, _id_get$cause.pointer) + final _$$selfRef = reference; + return _get$cause(_$$selfRef.pointer, _id_get$cause.pointer) .object(); } @@ -1329,8 +1354,9 @@ extension Throwable$$Methods on Throwable { /// from: `public java.lang.String getLocalizedMessage()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? get localizedMessage { + final _$$selfRef = reference; return _get$localizedMessage( - reference.pointer, _id_get$localizedMessage.pointer) + _$$selfRef.pointer, _id_get$localizedMessage.pointer) .object(); } @@ -1354,7 +1380,8 @@ extension Throwable$$Methods on Throwable { /// from: `public java.lang.String getMessage()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? get message { - return _get$message(reference.pointer, _id_get$message.pointer) + final _$$selfRef = reference; + return _get$message(_$$selfRef.pointer, _id_get$message.pointer) .object(); } @@ -1377,9 +1404,10 @@ extension Throwable$$Methods on Throwable { /// from: `public java.lang.StackTraceElement[] getStackTrace()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JArray? get stackTrace { - return _get$stackTrace(reference.pointer, _id_get$stackTrace.pointer) - .object?>(); + jni$_.JArray? get stackTrace { + final _$$selfRef = reference; + return _get$stackTrace(_$$selfRef.pointer, _id_get$stackTrace.pointer) + .object?>(); } static final _id_get$suppressed = Throwable._class.instanceMethodId( @@ -1402,7 +1430,8 @@ extension Throwable$$Methods on Throwable { /// from: `public final java.lang.Throwable[] getSuppressed()` /// The returned object must be released after use, by calling the [release] method. jni$_.JArray? get suppressed { - return _get$suppressed(reference.pointer, _id_get$suppressed.pointer) + final _$$selfRef = reference; + return _get$suppressed(_$$selfRef.pointer, _id_get$suppressed.pointer) .object?>(); } @@ -1427,9 +1456,10 @@ extension Throwable$$Methods on Throwable { Throwable? initCause( Throwable? throwable, ) { + final _$$selfRef = reference; final _$throwable = throwable?.reference ?? jni$_.jNullReference; return _initCause( - reference.pointer, _id_initCause.pointer, _$throwable.pointer) + _$$selfRef.pointer, _id_initCause.pointer, _$throwable.pointer) .object(); } @@ -1452,7 +1482,8 @@ extension Throwable$$Methods on Throwable { /// from: `public void printStackTrace()` void printStackTrace() { - _printStackTrace(reference.pointer, _id_printStackTrace.pointer).check(); + final _$$selfRef = reference; + _printStackTrace(_$$selfRef.pointer, _id_printStackTrace.pointer).check(); } static final _id_printStackTrace$1 = Throwable._class.instanceMethodId( @@ -1473,10 +1504,11 @@ extension Throwable$$Methods on Throwable { /// from: `public void printStackTrace(java.io.PrintStream printStream)` void printStackTrace$1( - jni$_.JObject? printStream, + PrintStream? printStream, ) { + final _$$selfRef = reference; final _$printStream = printStream?.reference ?? jni$_.jNullReference; - _printStackTrace$1(reference.pointer, _id_printStackTrace$1.pointer, + _printStackTrace$1(_$$selfRef.pointer, _id_printStackTrace$1.pointer, _$printStream.pointer) .check(); } @@ -1499,10 +1531,11 @@ extension Throwable$$Methods on Throwable { /// from: `public void printStackTrace(java.io.PrintWriter printWriter)` void printStackTrace$2( - jni$_.JObject? printWriter, + PrintWriter? printWriter, ) { + final _$$selfRef = reference; final _$printWriter = printWriter?.reference ?? jni$_.jNullReference; - _printStackTrace$2(reference.pointer, _id_printStackTrace$2.pointer, + _printStackTrace$2(_$$selfRef.pointer, _id_printStackTrace$2.pointer, _$printWriter.pointer) .check(); } @@ -1524,10 +1557,11 @@ extension Throwable$$Methods on Throwable { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void setStackTrace(java.lang.StackTraceElement[] stackTraceElements)` - set stackTrace(jni$_.JArray? stackTraceElements) { + set stackTrace(jni$_.JArray? stackTraceElements) { + final _$$selfRef = reference; final _$stackTraceElements = stackTraceElements?.reference ?? jni$_.jNullReference; - _set$stackTrace(reference.pointer, _id_set$stackTrace.pointer, + _set$stackTrace(_$$selfRef.pointer, _id_set$stackTrace.pointer, _$stackTraceElements.pointer) .check(); } @@ -1552,7 +1586,8 @@ extension Throwable$$Methods on Throwable { /// from: `public java.lang.String toString()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? toString$1() { - return _toString$1(reference.pointer, _id_toString$1.pointer) + final _$$selfRef = reference; + return _toString$1(_$$selfRef.pointer, _id_toString$1.pointer) .object(); } } @@ -1567,7 +1602,8 @@ final class $Throwable$Type$ extends jni$_.JType { } /// from: `java.net.URL` -extension type URL._(jni$_.JObject _$this) implements jni$_.JObject { +extension type URL._(jni$_.JObject _$this) + implements jni$_.JObject, Serializable { static final _class = jni$_.JClass.forName(r'java/net/URL'); /// The type which includes information such as the signature of this class. @@ -1592,8 +1628,9 @@ extension type URL._(jni$_.JObject _$this) implements jni$_.JObject { factory URL( jni$_.JString? string, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; - return _new$(_class.reference.pointer, _id_new$.pointer, _$string.pointer) + return _new$(_$$classRef.pointer, _id_new$.pointer, _$string.pointer) .object(); } @@ -1630,10 +1667,11 @@ extension type URL._(jni$_.JObject _$this) implements jni$_.JObject { core$_.int i, jni$_.JString? string2, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; final _$string2 = string2?.reference ?? jni$_.jNullReference; - return _new$1(_class.reference.pointer, _id_new$1.pointer, _$string.pointer, + return _new$1(_$$classRef.pointer, _id_new$1.pointer, _$string.pointer, _$string1.pointer, i, _$string2.pointer) .object(); } @@ -1672,14 +1710,15 @@ extension type URL._(jni$_.JObject _$this) implements jni$_.JObject { jni$_.JString? string1, core$_.int i, jni$_.JString? string2, - jni$_.JObject? uRLStreamHandler, + URLStreamHandler? uRLStreamHandler, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; final _$string2 = string2?.reference ?? jni$_.jNullReference; final _$uRLStreamHandler = uRLStreamHandler?.reference ?? jni$_.jNullReference; - return _new$2(_class.reference.pointer, _id_new$2.pointer, _$string.pointer, + return _new$2(_$$classRef.pointer, _id_new$2.pointer, _$string.pointer, _$string1.pointer, i, _$string2.pointer, _$uRLStreamHandler.pointer) .object(); } @@ -1714,10 +1753,11 @@ extension type URL._(jni$_.JObject _$this) implements jni$_.JObject { jni$_.JString? string1, jni$_.JString? string2, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; final _$string2 = string2?.reference ?? jni$_.jNullReference; - return _new$3(_class.reference.pointer, _id_new$3.pointer, _$string.pointer, + return _new$3(_$$classRef.pointer, _id_new$3.pointer, _$string.pointer, _$string1.pointer, _$string2.pointer) .object(); } @@ -1749,9 +1789,10 @@ extension type URL._(jni$_.JObject _$this) implements jni$_.JObject { URL? uRL, jni$_.JString? string, ) { + final _$$classRef = _class.reference; final _$uRL = uRL?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; - return _new$4(_class.reference.pointer, _id_new$4.pointer, _$uRL.pointer, + return _new$4(_$$classRef.pointer, _id_new$4.pointer, _$uRL.pointer, _$string.pointer) .object(); } @@ -1784,13 +1825,14 @@ extension type URL._(jni$_.JObject _$this) implements jni$_.JObject { factory URL.new$5( URL? uRL, jni$_.JString? string, - jni$_.JObject? uRLStreamHandler, + URLStreamHandler? uRLStreamHandler, ) { + final _$$classRef = _class.reference; final _$uRL = uRL?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; final _$uRLStreamHandler = uRLStreamHandler?.reference ?? jni$_.jNullReference; - return _new$5(_class.reference.pointer, _id_new$5.pointer, _$uRL.pointer, + return _new$5(_$$classRef.pointer, _id_new$5.pointer, _$uRL.pointer, _$string.pointer, _$uRLStreamHandler.pointer) .object(); } @@ -1813,11 +1855,13 @@ extension type URL._(jni$_.JObject _$this) implements jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `static public void setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory uRLStreamHandlerFactory)` - static set uRLStreamHandlerFactory(jni$_.JObject? uRLStreamHandlerFactory) { + static set uRLStreamHandlerFactory( + URLStreamHandlerFactory? uRLStreamHandlerFactory) { + final _$$classRef = _class.reference; final _$uRLStreamHandlerFactory = uRLStreamHandlerFactory?.reference ?? jni$_.jNullReference; _set$uRLStreamHandlerFactory( - _class.reference.pointer, + _$$classRef.pointer, _id_set$uRLStreamHandlerFactory.pointer, _$uRLStreamHandlerFactory.pointer) .check(); @@ -1845,8 +1889,9 @@ extension URL$$Methods on URL { core$_.bool equals( jni$_.JObject? object, ) { + final _$$selfRef = reference; final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals.pointer, _$object.pointer) + return _equals(_$$selfRef.pointer, _id_equals.pointer, _$object.pointer) .boolean; } @@ -1870,7 +1915,8 @@ extension URL$$Methods on URL { /// from: `public java.lang.String getAuthority()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? get authority { - return _get$authority(reference.pointer, _id_get$authority.pointer) + final _$$selfRef = reference; + return _get$authority(_$$selfRef.pointer, _id_get$authority.pointer) .object(); } @@ -1894,7 +1940,8 @@ extension URL$$Methods on URL { /// from: `public java.lang.Object getContent()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? get content { - return _get$content(reference.pointer, _id_get$content.pointer) + final _$$selfRef = reference; + return _get$content(_$$selfRef.pointer, _id_get$content.pointer) .object(); } @@ -1917,11 +1964,12 @@ extension URL$$Methods on URL { /// 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? getContent( - jni$_.JArray? classs, + jni$_.JArray? classs, ) { + final _$$selfRef = reference; final _$classs = classs?.reference ?? jni$_.jNullReference; return _getContent( - reference.pointer, _id_getContent.pointer, _$classs.pointer) + _$$selfRef.pointer, _id_getContent.pointer, _$classs.pointer) .object(); } @@ -1944,7 +1992,8 @@ extension URL$$Methods on URL { /// from: `public int getDefaultPort()` core$_.int get defaultPort { - return _get$defaultPort(reference.pointer, _id_get$defaultPort.pointer) + final _$$selfRef = reference; + return _get$defaultPort(_$$selfRef.pointer, _id_get$defaultPort.pointer) .integer; } @@ -1968,7 +2017,8 @@ extension URL$$Methods on URL { /// from: `public java.lang.String getFile()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? get file { - return _get$file(reference.pointer, _id_get$file.pointer) + final _$$selfRef = reference; + return _get$file(_$$selfRef.pointer, _id_get$file.pointer) .object(); } @@ -1992,7 +2042,8 @@ extension URL$$Methods on URL { /// from: `public java.lang.String getHost()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? get host { - return _get$host(reference.pointer, _id_get$host.pointer) + final _$$selfRef = reference; + return _get$host(_$$selfRef.pointer, _id_get$host.pointer) .object(); } @@ -2016,7 +2067,8 @@ extension URL$$Methods on URL { /// from: `public java.lang.String getPath()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? get path { - return _get$path(reference.pointer, _id_get$path.pointer) + final _$$selfRef = reference; + return _get$path(_$$selfRef.pointer, _id_get$path.pointer) .object(); } @@ -2039,7 +2091,8 @@ extension URL$$Methods on URL { /// from: `public int getPort()` core$_.int get port { - return _get$port(reference.pointer, _id_get$port.pointer).integer; + final _$$selfRef = reference; + return _get$port(_$$selfRef.pointer, _id_get$port.pointer).integer; } static final _id_get$protocol = URL._class.instanceMethodId( @@ -2062,7 +2115,8 @@ extension URL$$Methods on URL { /// from: `public java.lang.String getProtocol()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? get protocol { - return _get$protocol(reference.pointer, _id_get$protocol.pointer) + final _$$selfRef = reference; + return _get$protocol(_$$selfRef.pointer, _id_get$protocol.pointer) .object(); } @@ -2086,7 +2140,8 @@ extension URL$$Methods on URL { /// from: `public java.lang.String getQuery()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? get query { - return _get$query(reference.pointer, _id_get$query.pointer) + final _$$selfRef = reference; + return _get$query(_$$selfRef.pointer, _id_get$query.pointer) .object(); } @@ -2110,7 +2165,8 @@ extension URL$$Methods on URL { /// from: `public java.lang.String getRef()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? get ref { - return _get$ref(reference.pointer, _id_get$ref.pointer) + final _$$selfRef = reference; + return _get$ref(_$$selfRef.pointer, _id_get$ref.pointer) .object(); } @@ -2134,7 +2190,8 @@ extension URL$$Methods on URL { /// from: `public java.lang.String getUserInfo()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? get userInfo { - return _get$userInfo(reference.pointer, _id_get$userInfo.pointer) + final _$$selfRef = reference; + return _get$userInfo(_$$selfRef.pointer, _id_get$userInfo.pointer) .object(); } @@ -2157,7 +2214,8 @@ extension URL$$Methods on URL { /// from: `public int hashCode()` core$_.int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1.pointer).integer; + final _$$selfRef = reference; + return _hashCode$1(_$$selfRef.pointer, _id_hashCode$1.pointer).integer; } static final _id_openConnection = URL._class.instanceMethodId( @@ -2179,9 +2237,10 @@ extension URL$$Methods on URL { /// from: `public java.net.URLConnection openConnection()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? openConnection() { - return _openConnection(reference.pointer, _id_openConnection.pointer) - .object(); + URLConnection? openConnection() { + final _$$selfRef = reference; + return _openConnection(_$$selfRef.pointer, _id_openConnection.pointer) + .object(); } static final _id_openConnection$1 = URL._class.instanceMethodId( @@ -2202,13 +2261,14 @@ extension URL$$Methods on URL { /// 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? openConnection$1( - jni$_.JObject? proxy, + URLConnection? openConnection$1( + Proxy? proxy, ) { + final _$$selfRef = reference; final _$proxy = proxy?.reference ?? jni$_.jNullReference; return _openConnection$1( - reference.pointer, _id_openConnection$1.pointer, _$proxy.pointer) - .object(); + _$$selfRef.pointer, _id_openConnection$1.pointer, _$proxy.pointer) + .object(); } static final _id_openStream = URL._class.instanceMethodId( @@ -2230,9 +2290,10 @@ extension URL$$Methods on URL { /// from: `public java.io.InputStream openStream()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? openStream() { - return _openStream(reference.pointer, _id_openStream.pointer) - .object(); + InputStream? openStream() { + final _$$selfRef = reference; + return _openStream(_$$selfRef.pointer, _id_openStream.pointer) + .object(); } static final _id_sameFile = URL._class.instanceMethodId( @@ -2255,8 +2316,9 @@ extension URL$$Methods on URL { core$_.bool sameFile( URL? uRL, ) { + final _$$selfRef = reference; final _$uRL = uRL?.reference ?? jni$_.jNullReference; - return _sameFile(reference.pointer, _id_sameFile.pointer, _$uRL.pointer) + return _sameFile(_$$selfRef.pointer, _id_sameFile.pointer, _$uRL.pointer) .boolean; } @@ -2280,7 +2342,8 @@ extension URL$$Methods on URL { /// from: `public java.lang.String toExternalForm()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? toExternalForm() { - return _toExternalForm(reference.pointer, _id_toExternalForm.pointer) + final _$$selfRef = reference; + return _toExternalForm(_$$selfRef.pointer, _id_toExternalForm.pointer) .object(); } @@ -2304,7 +2367,8 @@ extension URL$$Methods on URL { /// from: `public java.lang.String toString()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? toString$1() { - return _toString$1(reference.pointer, _id_toString$1.pointer) + final _$$selfRef = reference; + return _toString$1(_$$selfRef.pointer, _id_toString$1.pointer) .object(); } @@ -2327,9 +2391,9 @@ extension URL$$Methods on URL { /// from: `public java.net.URI toURI()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? toURI() { - return _toURI(reference.pointer, _id_toURI.pointer) - .object(); + URI? toURI() { + final _$$selfRef = reference; + return _toURI(_$$selfRef.pointer, _id_toURI.pointer).object(); } } @@ -2366,13 +2430,14 @@ extension type Executors._(jni$_.JObject _$this) implements jni$_.JObject { /// 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? callable( - jni$_.JObject? runnable, + static Callable? callable( + Runnable? runnable, ) { + final _$$classRef = _class.reference; final _$runnable = runnable?.reference ?? jni$_.jNullReference; return _callable( - _class.reference.pointer, _id_callable.pointer, _$runnable.pointer) - .object(); + _$$classRef.pointer, _id_callable.pointer, _$runnable.pointer) + .object(); } static final _id_callable$1 = _class.staticMethodId( @@ -2399,15 +2464,16 @@ extension type Executors._(jni$_.JObject _$this) implements jni$_.JObject { /// 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. - static jni$_.JObject? callable$1<$T extends jni$_.JObject?>( - jni$_.JObject? runnable, + static Callable? callable$1<$T extends jni$_.JObject?>( + Runnable? runnable, $T? object, ) { + final _$$classRef = _class.reference; final _$runnable = runnable?.reference ?? jni$_.jNullReference; final _$object = object?.reference ?? jni$_.jNullReference; - return _callable$1(_class.reference.pointer, _id_callable$1.pointer, + return _callable$1(_$$classRef.pointer, _id_callable$1.pointer, _$runnable.pointer, _$object.pointer) - .object(); + .object(); } static final _id_callable$2 = _class.staticMethodId( @@ -2428,14 +2494,15 @@ extension type Executors._(jni$_.JObject _$this) implements jni$_.JObject { /// 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? callable$2( - jni$_.JObject? privilegedAction, + static Callable? callable$2( + PrivilegedAction? privilegedAction, ) { + final _$$classRef = _class.reference; final _$privilegedAction = privilegedAction?.reference ?? jni$_.jNullReference; - return _callable$2(_class.reference.pointer, _id_callable$2.pointer, + return _callable$2(_$$classRef.pointer, _id_callable$2.pointer, _$privilegedAction.pointer) - .object(); + .object(); } static final _id_callable$3 = _class.staticMethodId( @@ -2456,14 +2523,15 @@ extension type Executors._(jni$_.JObject _$this) implements jni$_.JObject { /// 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? callable$3( - jni$_.JObject? privilegedExceptionAction, + static Callable? callable$3( + PrivilegedExceptionAction? privilegedExceptionAction, ) { + final _$$classRef = _class.reference; final _$privilegedExceptionAction = privilegedExceptionAction?.reference ?? jni$_.jNullReference; - return _callable$3(_class.reference.pointer, _id_callable$3.pointer, + return _callable$3(_$$classRef.pointer, _id_callable$3.pointer, _$privilegedExceptionAction.pointer) - .object(); + .object(); } static final _id_defaultThreadFactory = _class.staticMethodId( @@ -2485,10 +2553,11 @@ extension type Executors._(jni$_.JObject _$this) implements jni$_.JObject { /// 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() { + static ThreadFactory? defaultThreadFactory() { + final _$$classRef = _class.reference; return _defaultThreadFactory( - _class.reference.pointer, _id_defaultThreadFactory.pointer) - .object(); + _$$classRef.pointer, _id_defaultThreadFactory.pointer) + .object(); } static final _id_newCachedThreadPool = _class.staticMethodId( @@ -2510,10 +2579,11 @@ extension type Executors._(jni$_.JObject _$this) implements jni$_.JObject { /// 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() { + static ExecutorService? newCachedThreadPool() { + final _$$classRef = _class.reference; return _newCachedThreadPool( - _class.reference.pointer, _id_newCachedThreadPool.pointer) - .object(); + _$$classRef.pointer, _id_newCachedThreadPool.pointer) + .object(); } static final _id_newCachedThreadPool$1 = _class.staticMethodId( @@ -2534,13 +2604,14 @@ extension type Executors._(jni$_.JObject _$this) implements jni$_.JObject { /// 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? newCachedThreadPool$1( - jni$_.JObject? threadFactory, + static ExecutorService? newCachedThreadPool$1( + ThreadFactory? threadFactory, ) { + final _$$classRef = _class.reference; final _$threadFactory = threadFactory?.reference ?? jni$_.jNullReference; - return _newCachedThreadPool$1(_class.reference.pointer, + return _newCachedThreadPool$1(_$$classRef.pointer, _id_newCachedThreadPool$1.pointer, _$threadFactory.pointer) - .object(); + .object(); } static final _id_newFixedThreadPool = _class.staticMethodId( @@ -2559,12 +2630,13 @@ extension type Executors._(jni$_.JObject _$this) implements jni$_.JObject { /// 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( + static ExecutorService? newFixedThreadPool( core$_.int i, ) { + final _$$classRef = _class.reference; return _newFixedThreadPool( - _class.reference.pointer, _id_newFixedThreadPool.pointer, i) - .object(); + _$$classRef.pointer, _id_newFixedThreadPool.pointer, i) + .object(); } static final _id_newFixedThreadPool$1 = _class.staticMethodId( @@ -2586,14 +2658,15 @@ extension type Executors._(jni$_.JObject _$this) implements jni$_.JObject { /// 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? newFixedThreadPool$1( + static ExecutorService? newFixedThreadPool$1( core$_.int i, - jni$_.JObject? threadFactory, + ThreadFactory? threadFactory, ) { + final _$$classRef = _class.reference; final _$threadFactory = threadFactory?.reference ?? jni$_.jNullReference; - return _newFixedThreadPool$1(_class.reference.pointer, + return _newFixedThreadPool$1(_$$classRef.pointer, _id_newFixedThreadPool$1.pointer, i, _$threadFactory.pointer) - .object(); + .object(); } static final _id_newScheduledThreadPool = _class.staticMethodId( @@ -2612,12 +2685,13 @@ extension type Executors._(jni$_.JObject _$this) implements jni$_.JObject { /// 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( + static ScheduledExecutorService? newScheduledThreadPool( core$_.int i, ) { + final _$$classRef = _class.reference; return _newScheduledThreadPool( - _class.reference.pointer, _id_newScheduledThreadPool.pointer, i) - .object(); + _$$classRef.pointer, _id_newScheduledThreadPool.pointer, i) + .object(); } static final _id_newScheduledThreadPool$1 = _class.staticMethodId( @@ -2639,14 +2713,15 @@ extension type Executors._(jni$_.JObject _$this) implements jni$_.JObject { /// 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? newScheduledThreadPool$1( + static ScheduledExecutorService? newScheduledThreadPool$1( core$_.int i, - jni$_.JObject? threadFactory, + ThreadFactory? threadFactory, ) { + final _$$classRef = _class.reference; final _$threadFactory = threadFactory?.reference ?? jni$_.jNullReference; - return _newScheduledThreadPool$1(_class.reference.pointer, + return _newScheduledThreadPool$1(_$$classRef.pointer, _id_newScheduledThreadPool$1.pointer, i, _$threadFactory.pointer) - .object(); + .object(); } static final _id_newSingleThreadExecutor = _class.staticMethodId( @@ -2668,10 +2743,11 @@ extension type Executors._(jni$_.JObject _$this) implements jni$_.JObject { /// 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() { + static ExecutorService? newSingleThreadExecutor() { + final _$$classRef = _class.reference; return _newSingleThreadExecutor( - _class.reference.pointer, _id_newSingleThreadExecutor.pointer) - .object(); + _$$classRef.pointer, _id_newSingleThreadExecutor.pointer) + .object(); } static final _id_newSingleThreadExecutor$1 = _class.staticMethodId( @@ -2692,13 +2768,14 @@ extension type Executors._(jni$_.JObject _$this) implements jni$_.JObject { /// 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? newSingleThreadExecutor$1( - jni$_.JObject? threadFactory, + static ExecutorService? newSingleThreadExecutor$1( + ThreadFactory? threadFactory, ) { + final _$$classRef = _class.reference; final _$threadFactory = threadFactory?.reference ?? jni$_.jNullReference; - return _newSingleThreadExecutor$1(_class.reference.pointer, + return _newSingleThreadExecutor$1(_$$classRef.pointer, _id_newSingleThreadExecutor$1.pointer, _$threadFactory.pointer) - .object(); + .object(); } static final _id_newSingleThreadScheduledExecutor = _class.staticMethodId( @@ -2721,10 +2798,11 @@ extension type Executors._(jni$_.JObject _$this) implements jni$_.JObject { /// 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 _newSingleThreadScheduledExecutor(_class.reference.pointer, - _id_newSingleThreadScheduledExecutor.pointer) - .object(); + static ScheduledExecutorService? newSingleThreadScheduledExecutor() { + final _$$classRef = _class.reference; + return _newSingleThreadScheduledExecutor( + _$$classRef.pointer, _id_newSingleThreadScheduledExecutor.pointer) + .object(); } static final _id_newSingleThreadScheduledExecutor$1 = _class.staticMethodId( @@ -2746,15 +2824,16 @@ extension type Executors._(jni$_.JObject _$this) implements jni$_.JObject { /// 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? newSingleThreadScheduledExecutor$1( - jni$_.JObject? threadFactory, + static ScheduledExecutorService? newSingleThreadScheduledExecutor$1( + ThreadFactory? threadFactory, ) { + final _$$classRef = _class.reference; final _$threadFactory = threadFactory?.reference ?? jni$_.jNullReference; return _newSingleThreadScheduledExecutor$1( - _class.reference.pointer, + _$$classRef.pointer, _id_newSingleThreadScheduledExecutor$1.pointer, _$threadFactory.pointer) - .object(); + .object(); } static final _id_newWorkStealingPool = _class.staticMethodId( @@ -2776,10 +2855,11 @@ extension type Executors._(jni$_.JObject _$this) implements jni$_.JObject { /// from: `static public java.util.concurrent.ExecutorService newWorkStealingPool()` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? newWorkStealingPool() { + static ExecutorService? newWorkStealingPool() { + final _$$classRef = _class.reference; return _newWorkStealingPool( - _class.reference.pointer, _id_newWorkStealingPool.pointer) - .object(); + _$$classRef.pointer, _id_newWorkStealingPool.pointer) + .object(); } static final _id_newWorkStealingPool$1 = _class.staticMethodId( @@ -2798,12 +2878,13 @@ extension type Executors._(jni$_.JObject _$this) implements jni$_.JObject { /// 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$1( + static ExecutorService? newWorkStealingPool$1( core$_.int i, ) { + final _$$classRef = _class.reference; return _newWorkStealingPool$1( - _class.reference.pointer, _id_newWorkStealingPool$1.pointer, i) - .object(); + _$$classRef.pointer, _id_newWorkStealingPool$1.pointer, i) + .object(); } static final _id_privilegedCallable = _class.staticMethodId( @@ -2824,13 +2905,15 @@ extension type Executors._(jni$_.JObject _$this) implements jni$_.JObject { /// 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, + @core$_.Deprecated('This Java method is deprecated.') + static Callable? privilegedCallable<$T extends jni$_.JObject?>( + Callable? callable, ) { + final _$$classRef = _class.reference; final _$callable = callable?.reference ?? jni$_.jNullReference; - return _privilegedCallable(_class.reference.pointer, + return _privilegedCallable(_$$classRef.pointer, _id_privilegedCallable.pointer, _$callable.pointer) - .object(); + .object(); } static final _id_privilegedCallableUsingCurrentClassLoader = @@ -2853,16 +2936,18 @@ extension type Executors._(jni$_.JObject _$this) implements jni$_.JObject { /// 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. - static jni$_.JObject? + @core$_.Deprecated('This Java method is deprecated.') + static Callable? privilegedCallableUsingCurrentClassLoader<$T extends jni$_.JObject?>( - jni$_.JObject? callable, + Callable? callable, ) { + final _$$classRef = _class.reference; final _$callable = callable?.reference ?? jni$_.jNullReference; return _privilegedCallableUsingCurrentClassLoader( - _class.reference.pointer, + _$$classRef.pointer, _id_privilegedCallableUsingCurrentClassLoader.pointer, _$callable.pointer) - .object(); + .object(); } static final _id_privilegedThreadFactory = _class.staticMethodId( @@ -2884,10 +2969,12 @@ extension type Executors._(jni$_.JObject _$this) implements jni$_.JObject { /// 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() { + @core$_.Deprecated('This Java method is deprecated.') + static ThreadFactory? privilegedThreadFactory() { + final _$$classRef = _class.reference; return _privilegedThreadFactory( - _class.reference.pointer, _id_privilegedThreadFactory.pointer) - .object(); + _$$classRef.pointer, _id_privilegedThreadFactory.pointer) + .object(); } static final _id_unconfigurableExecutorService = _class.staticMethodId( @@ -2909,16 +2996,17 @@ extension type Executors._(jni$_.JObject _$this) implements jni$_.JObject { /// 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, + static ExecutorService? unconfigurableExecutorService( + ExecutorService? executorService, ) { + final _$$classRef = _class.reference; final _$executorService = executorService?.reference ?? jni$_.jNullReference; return _unconfigurableExecutorService( - _class.reference.pointer, + _$$classRef.pointer, _id_unconfigurableExecutorService.pointer, _$executorService.pointer) - .object(); + .object(); } static final _id_unconfigurableScheduledExecutorService = @@ -2941,16 +3029,17 @@ extension type Executors._(jni$_.JObject _$this) implements jni$_.JObject { /// 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, + static ScheduledExecutorService? unconfigurableScheduledExecutorService( + ScheduledExecutorService? scheduledExecutorService, ) { + final _$$classRef = _class.reference; final _$scheduledExecutorService = scheduledExecutorService?.reference ?? jni$_.jNullReference; return _unconfigurableScheduledExecutorService( - _class.reference.pointer, + _$$classRef.pointer, _id_unconfigurableScheduledExecutorService.pointer, _$scheduledExecutorService.pointer) - .object(); + .object(); } } @@ -2997,8 +3086,9 @@ extension CronetEngine$Builder$LibraryLoader$$Methods void loadLibrary( jni$_.JString? libName, ) { + final _$$selfRef = reference; final _$libName = libName?.reference ?? jni$_.jNullReference; - _loadLibrary(reference.pointer, _id_loadLibrary.pointer, _$libName.pointer) + _loadLibrary(_$$selfRef.pointer, _id_loadLibrary.pointer, _$libName.pointer) .check(); } } @@ -3053,10 +3143,11 @@ extension type CronetEngine$Builder._(jni$_.JObject _$this) /// 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, + Context? context, ) { + final _$$classRef = _class.reference; final _$context = context?.reference ?? jni$_.jNullReference; - return _new$(_class.reference.pointer, _id_new$.pointer, _$context.pointer) + return _new$(_$$classRef.pointer, _id_new$.pointer, _$context.pointer) .object(); } @@ -3078,12 +3169,13 @@ extension type CronetEngine$Builder._(jni$_.JObject _$this) /// from: `public void (org.chromium.net.ICronetEngineBuilder builderDelegate)` /// The returned object must be released after use, by calling the [release] method. factory CronetEngine$Builder.new$1( - jni$_.JObject? builderDelegate, + ICronetEngineBuilder? builderDelegate, ) { + final _$$classRef = _class.reference; final _$builderDelegate = builderDelegate?.reference ?? jni$_.jNullReference; - return _new$1(_class.reference.pointer, _id_new$1.pointer, - _$builderDelegate.pointer) + return _new$1( + _$$classRef.pointer, _id_new$1.pointer, _$builderDelegate.pointer) .object(); } } @@ -3110,8 +3202,9 @@ extension CronetEngine$Builder$$Methods on CronetEngine$Builder { /// from: `public java.lang.String getDefaultUserAgent()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? get defaultUserAgent { + final _$$selfRef = reference; return _get$defaultUserAgent( - reference.pointer, _id_get$defaultUserAgent.pointer) + _$$selfRef.pointer, _id_get$defaultUserAgent.pointer) .object(); } @@ -3136,9 +3229,10 @@ extension CronetEngine$Builder$$Methods on CronetEngine$Builder { CronetEngine$Builder? setUserAgent( jni$_.JString? userAgent, ) { + final _$$selfRef = reference; final _$userAgent = userAgent?.reference ?? jni$_.jNullReference; return _setUserAgent( - reference.pointer, _id_setUserAgent.pointer, _$userAgent.pointer) + _$$selfRef.pointer, _id_setUserAgent.pointer, _$userAgent.pointer) .object(); } @@ -3164,9 +3258,10 @@ extension CronetEngine$Builder$$Methods on CronetEngine$Builder { CronetEngine$Builder? setStoragePath( jni$_.JString? value, ) { + final _$$selfRef = reference; final _$value = value?.reference ?? jni$_.jNullReference; return _setStoragePath( - reference.pointer, _id_setStoragePath.pointer, _$value.pointer) + _$$selfRef.pointer, _id_setStoragePath.pointer, _$value.pointer) .object(); } @@ -3192,9 +3287,10 @@ extension CronetEngine$Builder$$Methods on CronetEngine$Builder { CronetEngine$Builder? setLibraryLoader( CronetEngine$Builder$LibraryLoader? loader, ) { + final _$$selfRef = reference; final _$loader = loader?.reference ?? jni$_.jNullReference; return _setLibraryLoader( - reference.pointer, _id_setLibraryLoader.pointer, _$loader.pointer) + _$$selfRef.pointer, _id_setLibraryLoader.pointer, _$loader.pointer) .object(); } @@ -3218,7 +3314,9 @@ extension CronetEngine$Builder$$Methods on CronetEngine$Builder { CronetEngine$Builder? enableQuic( core$_.bool value, ) { - return _enableQuic(reference.pointer, _id_enableQuic.pointer, value ? 1 : 0) + final _$$selfRef = reference; + return _enableQuic( + _$$selfRef.pointer, _id_enableQuic.pointer, value ? 1 : 0) .object(); } @@ -3242,8 +3340,9 @@ extension CronetEngine$Builder$$Methods on CronetEngine$Builder { CronetEngine$Builder? enableHttp2( core$_.bool value, ) { + final _$$selfRef = reference; return _enableHttp2( - reference.pointer, _id_enableHttp2.pointer, value ? 1 : 0) + _$$selfRef.pointer, _id_enableHttp2.pointer, value ? 1 : 0) .object(); } @@ -3264,10 +3363,13 @@ extension CronetEngine$Builder$$Methods on CronetEngine$Builder { /// from: `public org.chromium.net.CronetEngine$Builder enableSdch(boolean value)` /// The returned object must be released after use, by calling the [release] method. + @core$_.Deprecated('This Java method is deprecated.') CronetEngine$Builder? enableSdch( core$_.bool value, ) { - return _enableSdch(reference.pointer, _id_enableSdch.pointer, value ? 1 : 0) + final _$$selfRef = reference; + return _enableSdch( + _$$selfRef.pointer, _id_enableSdch.pointer, value ? 1 : 0) .object(); } @@ -3291,8 +3393,9 @@ extension CronetEngine$Builder$$Methods on CronetEngine$Builder { CronetEngine$Builder? enableBrotli( core$_.bool value, ) { + final _$$selfRef = reference; return _enableBrotli( - reference.pointer, _id_enableBrotli.pointer, value ? 1 : 0) + _$$selfRef.pointer, _id_enableBrotli.pointer, value ? 1 : 0) .object(); } @@ -3319,8 +3422,9 @@ extension CronetEngine$Builder$$Methods on CronetEngine$Builder { core$_.int cacheMode, core$_.int maxSize, ) { + final _$$selfRef = reference; return _enableHttpCache( - reference.pointer, _id_enableHttpCache.pointer, cacheMode, maxSize) + _$$selfRef.pointer, _id_enableHttpCache.pointer, cacheMode, maxSize) .object(); } @@ -3355,8 +3459,9 @@ extension CronetEngine$Builder$$Methods on CronetEngine$Builder { core$_.int port, core$_.int alternatePort, ) { + final _$$selfRef = reference; final _$host = host?.reference ?? jni$_.jNullReference; - return _addQuicHint(reference.pointer, _id_addQuicHint.pointer, + return _addQuicHint(_$$selfRef.pointer, _id_addQuicHint.pointer, _$host.pointer, port, alternatePort) .object(); } @@ -3394,13 +3499,14 @@ extension CronetEngine$Builder$$Methods on CronetEngine$Builder { jni$_.JString? hostName, jni$_.JSet? pinsSha256, core$_.bool includeSubdomains, - jni$_.JObject? expirationDate, + Date? expirationDate, ) { + final _$$selfRef = reference; final _$hostName = hostName?.reference ?? jni$_.jNullReference; final _$pinsSha256 = pinsSha256?.reference ?? jni$_.jNullReference; final _$expirationDate = expirationDate?.reference ?? jni$_.jNullReference; return _addPublicKeyPins( - reference.pointer, + _$$selfRef.pointer, _id_addPublicKeyPins.pointer, _$hostName.pointer, _$pinsSha256.pointer, @@ -3430,8 +3536,9 @@ extension CronetEngine$Builder$$Methods on CronetEngine$Builder { CronetEngine$Builder? enablePublicKeyPinningBypassForLocalTrustAnchors( core$_.bool value, ) { + final _$$selfRef = reference; return _enablePublicKeyPinningBypassForLocalTrustAnchors( - reference.pointer, + _$$selfRef.pointer, _id_enablePublicKeyPinningBypassForLocalTrustAnchors.pointer, value ? 1 : 0) .object(); @@ -3455,11 +3562,13 @@ extension CronetEngine$Builder$$Methods on CronetEngine$Builder { /// from: `public org.chromium.net.CronetEngine$Builder setThreadPriority(int priority)` /// The returned object must be released after use, by calling the [release] method. + @core$_.Deprecated('This Java method is deprecated.') CronetEngine$Builder? setThreadPriority( core$_.int priority, ) { + final _$$selfRef = reference; return _setThreadPriority( - reference.pointer, _id_setThreadPriority.pointer, priority) + _$$selfRef.pointer, _id_setThreadPriority.pointer, priority) .object(); } @@ -3484,7 +3593,8 @@ extension CronetEngine$Builder$$Methods on CronetEngine$Builder { CronetEngine$Builder? enableNetworkQualityEstimator( core$_.bool value, ) { - return _enableNetworkQualityEstimator(reference.pointer, + final _$$selfRef = reference; + return _enableNetworkQualityEstimator(_$$selfRef.pointer, _id_enableNetworkQualityEstimator.pointer, value ? 1 : 0) .object(); } @@ -3509,10 +3619,11 @@ extension CronetEngine$Builder$$Methods on 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, + QuicOptions? quicOptions, ) { + final _$$selfRef = reference; final _$quicOptions = quicOptions?.reference ?? jni$_.jNullReference; - return _setQuicOptions(reference.pointer, _id_setQuicOptions.pointer, + return _setQuicOptions(_$$selfRef.pointer, _id_setQuicOptions.pointer, _$quicOptions.pointer) .object(); } @@ -3537,11 +3648,12 @@ extension CronetEngine$Builder$$Methods on CronetEngine$Builder { /// from: `public org.chromium.net.CronetEngine$Builder setQuicOptions(org.chromium.net.QuicOptions$Builder quicOptionsBuilder)` /// The returned object must be released after use, by calling the [release] method. CronetEngine$Builder? setQuicOptions$1( - jni$_.JObject? quicOptionsBuilder, + QuicOptions$$Builder? quicOptionsBuilder, ) { + final _$$selfRef = reference; final _$quicOptionsBuilder = quicOptionsBuilder?.reference ?? jni$_.jNullReference; - return _setQuicOptions$1(reference.pointer, _id_setQuicOptions$1.pointer, + return _setQuicOptions$1(_$$selfRef.pointer, _id_setQuicOptions$1.pointer, _$quicOptionsBuilder.pointer) .object(); } @@ -3565,11 +3677,12 @@ extension CronetEngine$Builder$$Methods on 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, + DnsOptions? dnsOptions, ) { + final _$$selfRef = reference; final _$dnsOptions = dnsOptions?.reference ?? jni$_.jNullReference; return _setDnsOptions( - reference.pointer, _id_setDnsOptions.pointer, _$dnsOptions.pointer) + _$$selfRef.pointer, _id_setDnsOptions.pointer, _$dnsOptions.pointer) .object(); } @@ -3593,10 +3706,11 @@ extension CronetEngine$Builder$$Methods on CronetEngine$Builder { /// from: `public org.chromium.net.CronetEngine$Builder setDnsOptions(org.chromium.net.DnsOptions$Builder dnsOptions)` /// The returned object must be released after use, by calling the [release] method. CronetEngine$Builder? setDnsOptions$1( - jni$_.JObject? dnsOptions, + DnsOptions$$Builder? dnsOptions, ) { + final _$$selfRef = reference; final _$dnsOptions = dnsOptions?.reference ?? jni$_.jNullReference; - return _setDnsOptions$1(reference.pointer, _id_setDnsOptions$1.pointer, + return _setDnsOptions$1(_$$selfRef.pointer, _id_setDnsOptions$1.pointer, _$dnsOptions.pointer) .object(); } @@ -3622,12 +3736,13 @@ extension CronetEngine$Builder$$Methods on 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, + ConnectionMigrationOptions? connectionMigrationOptions, ) { + final _$$selfRef = reference; final _$connectionMigrationOptions = connectionMigrationOptions?.reference ?? jni$_.jNullReference; return _setConnectionMigrationOptions( - reference.pointer, + _$$selfRef.pointer, _id_setConnectionMigrationOptions.pointer, _$connectionMigrationOptions.pointer) .object(); @@ -3654,12 +3769,13 @@ extension CronetEngine$Builder$$Methods on CronetEngine$Builder { /// from: `public org.chromium.net.CronetEngine$Builder setConnectionMigrationOptions(org.chromium.net.ConnectionMigrationOptions$Builder connectionMigrationOptionsBuilder)` /// The returned object must be released after use, by calling the [release] method. CronetEngine$Builder? setConnectionMigrationOptions$1( - jni$_.JObject? connectionMigrationOptionsBuilder, + ConnectionMigrationOptions$$Builder? connectionMigrationOptionsBuilder, ) { + final _$$selfRef = reference; final _$connectionMigrationOptionsBuilder = connectionMigrationOptionsBuilder?.reference ?? jni$_.jNullReference; return _setConnectionMigrationOptions$1( - reference.pointer, + _$$selfRef.pointer, _id_setConnectionMigrationOptions$1.pointer, _$connectionMigrationOptionsBuilder.pointer) .object(); @@ -3685,10 +3801,11 @@ extension CronetEngine$Builder$$Methods on CronetEngine$Builder { /// from: `public org.chromium.net.CronetEngine$Builder setProxyOptions(org.chromium.net.ProxyOptions proxyOptions)` /// The returned object must be released after use, by calling the [release] method. CronetEngine$Builder? setProxyOptions( - jni$_.JObject? proxyOptions, + ProxyOptions? proxyOptions, ) { + final _$$selfRef = reference; final _$proxyOptions = proxyOptions?.reference ?? jni$_.jNullReference; - return _setProxyOptions(reference.pointer, _id_setProxyOptions.pointer, + return _setProxyOptions(_$$selfRef.pointer, _id_setProxyOptions.pointer, _$proxyOptions.pointer) .object(); } @@ -3713,7 +3830,9 @@ extension CronetEngine$Builder$$Methods on CronetEngine$Builder { /// from: `public org.chromium.net.CronetEngine build()` /// The returned object must be released after use, by calling the [release] method. CronetEngine? build() { - return _build(reference.pointer, _id_build.pointer).object(); + final _$$selfRef = reference; + return _build(_$$selfRef.pointer, _id_build.pointer) + .object(); } } @@ -3783,7 +3902,8 @@ extension CronetEngine$$Methods on CronetEngine { /// from: `public abstract java.lang.String getVersionString()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? get versionString { - return _get$versionString(reference.pointer, _id_get$versionString.pointer) + final _$$selfRef = reference; + return _get$versionString(_$$selfRef.pointer, _id_get$versionString.pointer) .object(); } @@ -3806,7 +3926,8 @@ extension CronetEngine$$Methods on CronetEngine { /// from: `public abstract void shutdown()` void shutdown() { - _shutdown(reference.pointer, _id_shutdown.pointer).check(); + final _$$selfRef = reference; + _shutdown(_$$selfRef.pointer, _id_shutdown.pointer).check(); } static final _id_startNetLogToFile = CronetEngine._class.instanceMethodId( @@ -3831,8 +3952,9 @@ extension CronetEngine$$Methods on CronetEngine { jni$_.JString? fileName, core$_.bool logAll, ) { + final _$$selfRef = reference; final _$fileName = fileName?.reference ?? jni$_.jNullReference; - _startNetLogToFile(reference.pointer, _id_startNetLogToFile.pointer, + _startNetLogToFile(_$$selfRef.pointer, _id_startNetLogToFile.pointer, _$fileName.pointer, logAll ? 1 : 0) .check(); } @@ -3856,7 +3978,8 @@ extension CronetEngine$$Methods on CronetEngine { /// from: `public abstract void stopNetLog()` void stopNetLog() { - _stopNetLog(reference.pointer, _id_stopNetLog.pointer).check(); + final _$$selfRef = reference; + _stopNetLog(_$$selfRef.pointer, _id_stopNetLog.pointer).check(); } static final _id_get$globalMetricsDeltas = @@ -3879,9 +4002,11 @@ extension CronetEngine$$Methods on CronetEngine { /// from: `public abstract byte[] getGlobalMetricsDeltas()` /// The returned object must be released after use, by calling the [release] method. + @core$_.Deprecated('This Java method is deprecated.') jni$_.JByteArray? get globalMetricsDeltas { + final _$$selfRef = reference; return _get$globalMetricsDeltas( - reference.pointer, _id_get$globalMetricsDeltas.pointer) + _$$selfRef.pointer, _id_get$globalMetricsDeltas.pointer) .object(); } @@ -3903,13 +4028,14 @@ extension CronetEngine$$Methods on CronetEngine { /// 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( + URLConnection? openConnection( URL? url, ) { + final _$$selfRef = reference; final _$url = url?.reference ?? jni$_.jNullReference; return _openConnection( - reference.pointer, _id_openConnection.pointer, _$url.pointer) - .object(); + _$$selfRef.pointer, _id_openConnection.pointer, _$url.pointer) + .object(); } static final _id_createURLStreamHandlerFactory = @@ -3933,10 +4059,11 @@ extension CronetEngine$$Methods on CronetEngine { /// from: `public abstract java.net.URLStreamHandlerFactory createURLStreamHandlerFactory()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? createURLStreamHandlerFactory() { + URLStreamHandlerFactory? createURLStreamHandlerFactory() { + final _$$selfRef = reference; return _createURLStreamHandlerFactory( - reference.pointer, _id_createURLStreamHandlerFactory.pointer) - .object(); + _$$selfRef.pointer, _id_createURLStreamHandlerFactory.pointer) + .object(); } static final _id_newUrlRequestBuilder = CronetEngine._class.instanceMethodId( @@ -3968,13 +4095,14 @@ extension CronetEngine$$Methods on CronetEngine { UrlRequest$Builder? newUrlRequestBuilder( jni$_.JString? url, UrlRequest$Callback? callback, - jni$_.JObject? executor, + Executor? executor, ) { + final _$$selfRef = reference; final _$url = url?.reference ?? jni$_.jNullReference; final _$callback = callback?.reference ?? jni$_.jNullReference; final _$executor = executor?.reference ?? jni$_.jNullReference; return _newUrlRequestBuilder( - reference.pointer, + _$$selfRef.pointer, _id_newUrlRequestBuilder.pointer, _$url.pointer, _$callback.pointer, @@ -4010,21 +4138,22 @@ extension CronetEngine$$Methods on CronetEngine { /// from: `public org.chromium.net.BidirectionalStream$Builder newBidirectionalStreamBuilder(java.lang.String url, org.chromium.net.BidirectionalStream$Callback callback, java.util.concurrent.Executor executor)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? newBidirectionalStreamBuilder( + BidirectionalStream$$Builder? newBidirectionalStreamBuilder( jni$_.JString? url, - jni$_.JObject? callback, - jni$_.JObject? executor, + BidirectionalStream$$Callback? callback, + Executor? executor, ) { + final _$$selfRef = reference; final _$url = url?.reference ?? jni$_.jNullReference; final _$callback = callback?.reference ?? jni$_.jNullReference; final _$executor = executor?.reference ?? jni$_.jNullReference; return _newBidirectionalStreamBuilder( - reference.pointer, + _$$selfRef.pointer, _id_newBidirectionalStreamBuilder.pointer, _$url.pointer, _$callback.pointer, _$executor.pointer) - .object(); + .object(); } static final _id_get$activeRequestCount = @@ -4047,8 +4176,9 @@ extension CronetEngine$$Methods on CronetEngine { /// from: `public int getActiveRequestCount()` core$_.int get activeRequestCount { + final _$$selfRef = reference; return _get$activeRequestCount( - reference.pointer, _id_get$activeRequestCount.pointer) + _$$selfRef.pointer, _id_get$activeRequestCount.pointer) .integer; } @@ -4072,10 +4202,11 @@ extension CronetEngine$$Methods on CronetEngine { /// from: `public void addRequestFinishedListener(org.chromium.net.RequestFinishedInfo$Listener listener)` void addRequestFinishedListener( - jni$_.JObject? listener, + RequestFinishedInfo$$Listener? listener, ) { + final _$$selfRef = reference; final _$listener = listener?.reference ?? jni$_.jNullReference; - _addRequestFinishedListener(reference.pointer, + _addRequestFinishedListener(_$$selfRef.pointer, _id_addRequestFinishedListener.pointer, _$listener.pointer) .check(); } @@ -4100,10 +4231,11 @@ extension CronetEngine$$Methods on CronetEngine { /// from: `public void removeRequestFinishedListener(org.chromium.net.RequestFinishedInfo$Listener listener)` void removeRequestFinishedListener( - jni$_.JObject? listener, + RequestFinishedInfo$$Listener? listener, ) { + final _$$selfRef = reference; final _$listener = listener?.reference ?? jni$_.jNullReference; - _removeRequestFinishedListener(reference.pointer, + _removeRequestFinishedListener(_$$selfRef.pointer, _id_removeRequestFinishedListener.pointer, _$listener.pointer) .check(); } @@ -4127,7 +4259,9 @@ extension CronetEngine$$Methods on CronetEngine { /// from: `public int getHttpRttMs()` core$_.int get httpRttMs { - return _get$httpRttMs(reference.pointer, _id_get$httpRttMs.pointer).integer; + final _$$selfRef = reference; + return _get$httpRttMs(_$$selfRef.pointer, _id_get$httpRttMs.pointer) + .integer; } static final _id_get$transportRttMs = CronetEngine._class.instanceMethodId( @@ -4149,8 +4283,9 @@ extension CronetEngine$$Methods on CronetEngine { /// from: `public int getTransportRttMs()` core$_.int get transportRttMs { + final _$$selfRef = reference; return _get$transportRttMs( - reference.pointer, _id_get$transportRttMs.pointer) + _$$selfRef.pointer, _id_get$transportRttMs.pointer) .integer; } @@ -4175,8 +4310,9 @@ extension CronetEngine$$Methods on CronetEngine { /// from: `public int getDownstreamThroughputKbps()` core$_.int get downstreamThroughputKbps { + final _$$selfRef = reference; return _get$downstreamThroughputKbps( - reference.pointer, _id_get$downstreamThroughputKbps.pointer) + _$$selfRef.pointer, _id_get$downstreamThroughputKbps.pointer) .integer; } @@ -4210,8 +4346,9 @@ extension CronetEngine$$Methods on CronetEngine { core$_.bool logAll, core$_.int maxSize, ) { + final _$$selfRef = reference; final _$dirPath = dirPath?.reference ?? jni$_.jNullReference; - _startNetLogToDisk(reference.pointer, _id_startNetLogToDisk.pointer, + _startNetLogToDisk(_$$selfRef.pointer, _id_startNetLogToDisk.pointer, _$dirPath.pointer, logAll ? 1 : 0, maxSize) .check(); } @@ -4235,7 +4372,8 @@ extension CronetEngine$$Methods on CronetEngine { void bindToNetwork( core$_.int networkHandle, ) { - _bindToNetwork(reference.pointer, _id_bindToNetwork.pointer, networkHandle) + final _$$selfRef = reference; + _bindToNetwork(_$$selfRef.pointer, _id_bindToNetwork.pointer, networkHandle) .check(); } @@ -4260,8 +4398,9 @@ extension CronetEngine$$Methods on CronetEngine { /// from: `public int getEffectiveConnectionType()` core$_.int get effectiveConnectionType { + final _$$selfRef = reference; return _get$effectiveConnectionType( - reference.pointer, _id_get$effectiveConnectionType.pointer) + _$$selfRef.pointer, _id_get$effectiveConnectionType.pointer) .integer; } @@ -4293,8 +4432,9 @@ extension CronetEngine$$Methods on CronetEngine { core$_.bool useSmallerResponses, core$_.bool disableOfflineCheck, ) { + final _$$selfRef = reference; _configureNetworkQualityEstimatorForTesting( - reference.pointer, + _$$selfRef.pointer, _id_configureNetworkQualityEstimatorForTesting.pointer, useLocalHostRequests ? 1 : 0, useSmallerResponses ? 1 : 0, @@ -4320,11 +4460,12 @@ extension CronetEngine$$Methods on CronetEngine { /// from: `public void addRttListener(org.chromium.net.NetworkQualityRttListener listener)` void addRttListener( - jni$_.JObject? listener, + NetworkQualityRttListener? listener, ) { + final _$$selfRef = reference; final _$listener = listener?.reference ?? jni$_.jNullReference; _addRttListener( - reference.pointer, _id_addRttListener.pointer, _$listener.pointer) + _$$selfRef.pointer, _id_addRttListener.pointer, _$listener.pointer) .check(); } @@ -4346,10 +4487,11 @@ extension CronetEngine$$Methods on CronetEngine { /// from: `public void removeRttListener(org.chromium.net.NetworkQualityRttListener listener)` void removeRttListener( - jni$_.JObject? listener, + NetworkQualityRttListener? listener, ) { + final _$$selfRef = reference; final _$listener = listener?.reference ?? jni$_.jNullReference; - _removeRttListener(reference.pointer, _id_removeRttListener.pointer, + _removeRttListener(_$$selfRef.pointer, _id_removeRttListener.pointer, _$listener.pointer) .check(); } @@ -4372,11 +4514,12 @@ extension CronetEngine$$Methods on CronetEngine { /// from: `public void addThroughputListener(org.chromium.net.NetworkQualityThroughputListener listener)` void addThroughputListener( - jni$_.JObject? listener, + NetworkQualityThroughputListener? listener, ) { + final _$$selfRef = reference; final _$listener = listener?.reference ?? jni$_.jNullReference; - _addThroughputListener(reference.pointer, _id_addThroughputListener.pointer, - _$listener.pointer) + _addThroughputListener(_$$selfRef.pointer, + _id_addThroughputListener.pointer, _$listener.pointer) .check(); } @@ -4399,10 +4542,11 @@ extension CronetEngine$$Methods on CronetEngine { /// from: `public void removeThroughputListener(org.chromium.net.NetworkQualityThroughputListener listener)` void removeThroughputListener( - jni$_.JObject? listener, + NetworkQualityThroughputListener? listener, ) { + final _$$selfRef = reference; final _$listener = listener?.reference ?? jni$_.jNullReference; - _removeThroughputListener(reference.pointer, + _removeThroughputListener(_$$selfRef.pointer, _id_removeThroughputListener.pointer, _$listener.pointer) .check(); } @@ -4517,7 +4661,9 @@ extension NetworkException$$Methods on NetworkException { /// from: `public abstract int getErrorCode()` core$_.int get errorCode { - return _get$errorCode(reference.pointer, _id_get$errorCode.pointer).integer; + final _$$selfRef = reference; + return _get$errorCode(_$$selfRef.pointer, _id_get$errorCode.pointer) + .integer; } static final _id_get$cronetInternalErrorCode = @@ -4541,8 +4687,9 @@ extension NetworkException$$Methods on NetworkException { /// from: `public abstract int getCronetInternalErrorCode()` core$_.int get cronetInternalErrorCode { + final _$$selfRef = reference; return _get$cronetInternalErrorCode( - reference.pointer, _id_get$cronetInternalErrorCode.pointer) + _$$selfRef.pointer, _id_get$cronetInternalErrorCode.pointer) .integer; } @@ -4566,8 +4713,9 @@ extension NetworkException$$Methods on NetworkException { /// from: `public abstract boolean immediatelyRetryable()` core$_.bool immediatelyRetryable() { + final _$$selfRef = reference; return _immediatelyRetryable( - reference.pointer, _id_immediatelyRetryable.pointer) + _$$selfRef.pointer, _id_immediatelyRetryable.pointer) .boolean; } } @@ -4611,8 +4759,9 @@ extension QuicException$$Methods on QuicException { /// from: `public abstract int getQuicDetailedErrorCode()` core$_.int get quicDetailedErrorCode { + final _$$selfRef = reference; return _get$quicDetailedErrorCode( - reference.pointer, _id_get$quicDetailedErrorCode.pointer) + _$$selfRef.pointer, _id_get$quicDetailedErrorCode.pointer) .integer; } @@ -4636,8 +4785,9 @@ extension QuicException$$Methods on QuicException { /// from: `public int getConnectionCloseSource()` core$_.int get connectionCloseSource { + final _$$selfRef = reference; return _get$connectionCloseSource( - reference.pointer, _id_get$connectionCloseSource.pointer) + _$$selfRef.pointer, _id_get$connectionCloseSource.pointer) .integer; } } @@ -4678,12 +4828,13 @@ extension type UploadDataProviders._(jni$_.JObject _$this) /// 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, + static UploadDataProvider? create( + File? file, ) { + final _$$classRef = _class.reference; final _$file = file?.reference ?? jni$_.jNullReference; - return _create(_class.reference.pointer, _id_create.pointer, _$file.pointer) - .object(); + return _create(_$$classRef.pointer, _id_create.pointer, _$file.pointer) + .object(); } static final _id_create$1 = _class.staticMethodId( @@ -4704,13 +4855,13 @@ extension type UploadDataProviders._(jni$_.JObject _$this) /// from: `static public org.chromium.net.UploadDataProvider create(android.os.ParcelFileDescriptor fd)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? create$1( - jni$_.JObject? fd, + static UploadDataProvider? create$1( + ParcelFileDescriptor? fd, ) { + final _$$classRef = _class.reference; final _$fd = fd?.reference ?? jni$_.jNullReference; - return _create$1( - _class.reference.pointer, _id_create$1.pointer, _$fd.pointer) - .object(); + return _create$1(_$$classRef.pointer, _id_create$1.pointer, _$fd.pointer) + .object(); } static final _id_create$2 = _class.staticMethodId( @@ -4731,13 +4882,14 @@ extension type UploadDataProviders._(jni$_.JObject _$this) /// from: `static public org.chromium.net.UploadDataProvider create(java.nio.ByteBuffer buffer)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? create$2( + static UploadDataProvider? create$2( jni$_.JByteBuffer? buffer, ) { + final _$$classRef = _class.reference; final _$buffer = buffer?.reference ?? jni$_.jNullReference; return _create$2( - _class.reference.pointer, _id_create$2.pointer, _$buffer.pointer) - .object(); + _$$classRef.pointer, _id_create$2.pointer, _$buffer.pointer) + .object(); } static final _id_create$3 = _class.staticMethodId( @@ -4766,15 +4918,16 @@ extension type UploadDataProviders._(jni$_.JObject _$this) /// from: `static public org.chromium.net.UploadDataProvider create(byte[] data, int offset, int length)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? create$3( + static UploadDataProvider? create$3( jni$_.JByteArray? data, core$_.int offset, core$_.int length, ) { + final _$$classRef = _class.reference; final _$data = data?.reference ?? jni$_.jNullReference; - return _create$3(_class.reference.pointer, _id_create$3.pointer, - _$data.pointer, offset, length) - .object(); + return _create$3(_$$classRef.pointer, _id_create$3.pointer, _$data.pointer, + offset, length) + .object(); } static final _id_create$4 = _class.staticMethodId( @@ -4795,13 +4948,13 @@ extension type UploadDataProviders._(jni$_.JObject _$this) /// from: `static public org.chromium.net.UploadDataProvider create(byte[] data)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? create$4( + static UploadDataProvider? create$4( jni$_.JByteArray? data, ) { + final _$$classRef = _class.reference; final _$data = data?.reference ?? jni$_.jNullReference; - return _create$4( - _class.reference.pointer, _id_create$4.pointer, _$data.pointer) - .object(); + return _create$4(_$$classRef.pointer, _id_create$4.pointer, _$data.pointer) + .object(); } } @@ -4863,9 +5016,10 @@ extension UrlRequest$Builder$$Methods on UrlRequest$Builder { UrlRequest$Builder? setHttpMethod( jni$_.JString? method, ) { + final _$$selfRef = reference; final _$method = method?.reference ?? jni$_.jNullReference; return _setHttpMethod( - reference.pointer, _id_setHttpMethod.pointer, _$method.pointer) + _$$selfRef.pointer, _id_setHttpMethod.pointer, _$method.pointer) .object(); } @@ -4897,9 +5051,10 @@ extension UrlRequest$Builder$$Methods on UrlRequest$Builder { jni$_.JString? header, jni$_.JString? value, ) { + final _$$selfRef = reference; final _$header = header?.reference ?? jni$_.jNullReference; final _$value = value?.reference ?? jni$_.jNullReference; - return _addHeader(reference.pointer, _id_addHeader.pointer, + return _addHeader(_$$selfRef.pointer, _id_addHeader.pointer, _$header.pointer, _$value.pointer) .object(); } @@ -4924,7 +5079,8 @@ extension UrlRequest$Builder$$Methods on 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 _disableCache(reference.pointer, _id_disableCache.pointer) + final _$$selfRef = reference; + return _disableCache(_$$selfRef.pointer, _id_disableCache.pointer) .object(); } @@ -4948,7 +5104,8 @@ extension UrlRequest$Builder$$Methods on UrlRequest$Builder { UrlRequest$Builder? setPriority( core$_.int priority, ) { - return _setPriority(reference.pointer, _id_setPriority.pointer, priority) + final _$$selfRef = reference; + return _setPriority(_$$selfRef.pointer, _id_setPriority.pointer, priority) .object(); } @@ -4978,14 +5135,15 @@ extension UrlRequest$Builder$$Methods on 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, + UploadDataProvider? uploadDataProvider, + Executor? executor, ) { + final _$$selfRef = reference; final _$uploadDataProvider = uploadDataProvider?.reference ?? jni$_.jNullReference; final _$executor = executor?.reference ?? jni$_.jNullReference; return _setUploadDataProvider( - reference.pointer, + _$$selfRef.pointer, _id_setUploadDataProvider.pointer, _$uploadDataProvider.pointer, _$executor.pointer) @@ -5013,8 +5171,9 @@ extension UrlRequest$Builder$$Methods on 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() { + final _$$selfRef = reference; return _allowDirectExecutor( - reference.pointer, _id_allowDirectExecutor.pointer) + _$$selfRef.pointer, _id_allowDirectExecutor.pointer) .object(); } @@ -5040,8 +5199,9 @@ extension UrlRequest$Builder$$Methods on UrlRequest$Builder { UrlRequest$Builder? addRequestAnnotation( jni$_.JObject? annotation, ) { + final _$$selfRef = reference; final _$annotation = annotation?.reference ?? jni$_.jNullReference; - return _addRequestAnnotation(reference.pointer, + return _addRequestAnnotation(_$$selfRef.pointer, _id_addRequestAnnotation.pointer, _$annotation.pointer) .object(); } @@ -5066,8 +5226,9 @@ extension UrlRequest$Builder$$Methods on UrlRequest$Builder { UrlRequest$Builder? bindToNetwork( core$_.int networkHandle, ) { + final _$$selfRef = reference; return _bindToNetwork( - reference.pointer, _id_bindToNetwork.pointer, networkHandle) + _$$selfRef.pointer, _id_bindToNetwork.pointer, networkHandle) .object(); } @@ -5092,8 +5253,9 @@ extension UrlRequest$Builder$$Methods on UrlRequest$Builder { UrlRequest$Builder? setTrafficStatsTag( core$_.int tag, ) { + final _$$selfRef = reference; return _setTrafficStatsTag( - reference.pointer, _id_setTrafficStatsTag.pointer, tag) + _$$selfRef.pointer, _id_setTrafficStatsTag.pointer, tag) .object(); } @@ -5118,8 +5280,9 @@ extension UrlRequest$Builder$$Methods on UrlRequest$Builder { UrlRequest$Builder? setTrafficStatsUid( core$_.int uid, ) { + final _$$selfRef = reference; return _setTrafficStatsUid( - reference.pointer, _id_setTrafficStatsUid.pointer, uid) + _$$selfRef.pointer, _id_setTrafficStatsUid.pointer, uid) .object(); } @@ -5144,10 +5307,11 @@ extension UrlRequest$Builder$$Methods on 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, + RequestFinishedInfo$$Listener? listener, ) { + final _$$selfRef = reference; final _$listener = listener?.reference ?? jni$_.jNullReference; - return _setRequestFinishedListener(reference.pointer, + return _setRequestFinishedListener(_$$selfRef.pointer, _id_setRequestFinishedListener.pointer, _$listener.pointer) .object(); } @@ -5185,12 +5349,13 @@ extension UrlRequest$Builder$$Methods on UrlRequest$Builder { jni$_.JByteBuffer? dictionary, jni$_.JString? dictionaryId, ) { + final _$$selfRef = reference; final _$dictionarySha256Hash = dictionarySha256Hash?.reference ?? jni$_.jNullReference; final _$dictionary = dictionary?.reference ?? jni$_.jNullReference; final _$dictionaryId = dictionaryId?.reference ?? jni$_.jNullReference; return _setRawCompressionDictionary( - reference.pointer, + _$$selfRef.pointer, _id_setRawCompressionDictionary.pointer, _$dictionarySha256Hash.pointer, _$dictionary.pointer, @@ -5218,7 +5383,8 @@ extension UrlRequest$Builder$$Methods on UrlRequest$Builder { /// from: `public abstract org.chromium.net.UrlRequest build()` /// The returned object must be released after use, by calling the [release] method. UrlRequest? build() { - return _build(reference.pointer, _id_build.pointer).object(); + final _$$selfRef = reference; + return _build(_$$selfRef.pointer, _id_build.pointer).object(); } } @@ -5274,10 +5440,11 @@ extension UrlRequest$Callback$$Methods on UrlRequest$Callback { UrlResponseInfo? info, jni$_.JString? newLocationUrl, ) { + final _$$selfRef = reference; final _$request = request?.reference ?? jni$_.jNullReference; final _$info = info?.reference ?? jni$_.jNullReference; final _$newLocationUrl = newLocationUrl?.reference ?? jni$_.jNullReference; - _onRedirectReceived(reference.pointer, _id_onRedirectReceived.pointer, + _onRedirectReceived(_$$selfRef.pointer, _id_onRedirectReceived.pointer, _$request.pointer, _$info.pointer, _$newLocationUrl.pointer) .check(); } @@ -5310,9 +5477,10 @@ extension UrlRequest$Callback$$Methods on UrlRequest$Callback { UrlRequest? request, UrlResponseInfo? info, ) { + final _$$selfRef = reference; final _$request = request?.reference ?? jni$_.jNullReference; final _$info = info?.reference ?? jni$_.jNullReference; - _onResponseStarted(reference.pointer, _id_onResponseStarted.pointer, + _onResponseStarted(_$$selfRef.pointer, _id_onResponseStarted.pointer, _$request.pointer, _$info.pointer) .check(); } @@ -5348,10 +5516,11 @@ extension UrlRequest$Callback$$Methods on UrlRequest$Callback { UrlResponseInfo? info, jni$_.JByteBuffer? byteBuffer, ) { + final _$$selfRef = reference; final _$request = request?.reference ?? jni$_.jNullReference; final _$info = info?.reference ?? jni$_.jNullReference; final _$byteBuffer = byteBuffer?.reference ?? jni$_.jNullReference; - _onReadCompleted(reference.pointer, _id_onReadCompleted.pointer, + _onReadCompleted(_$$selfRef.pointer, _id_onReadCompleted.pointer, _$request.pointer, _$info.pointer, _$byteBuffer.pointer) .check(); } @@ -5383,9 +5552,10 @@ extension UrlRequest$Callback$$Methods on UrlRequest$Callback { UrlRequest? request, UrlResponseInfo? info, ) { + final _$$selfRef = reference; final _$request = request?.reference ?? jni$_.jNullReference; final _$info = info?.reference ?? jni$_.jNullReference; - _onSucceeded(reference.pointer, _id_onSucceeded.pointer, _$request.pointer, + _onSucceeded(_$$selfRef.pointer, _id_onSucceeded.pointer, _$request.pointer, _$info.pointer) .check(); } @@ -5420,10 +5590,11 @@ extension UrlRequest$Callback$$Methods on UrlRequest$Callback { UrlResponseInfo? info, CronetException? error, ) { + final _$$selfRef = reference; final _$request = request?.reference ?? jni$_.jNullReference; final _$info = info?.reference ?? jni$_.jNullReference; final _$error = error?.reference ?? jni$_.jNullReference; - _onFailed(reference.pointer, _id_onFailed.pointer, _$request.pointer, + _onFailed(_$$selfRef.pointer, _id_onFailed.pointer, _$request.pointer, _$info.pointer, _$error.pointer) .check(); } @@ -5455,9 +5626,10 @@ extension UrlRequest$Callback$$Methods on UrlRequest$Callback { UrlRequest? request, UrlResponseInfo? info, ) { + final _$$selfRef = reference; final _$request = request?.reference ?? jni$_.jNullReference; final _$info = info?.reference ?? jni$_.jNullReference; - _onCanceled(reference.pointer, _id_onCanceled.pointer, _$request.pointer, + _onCanceled(_$$selfRef.pointer, _id_onCanceled.pointer, _$request.pointer, _$info.pointer) .check(); } @@ -5475,7 +5647,7 @@ final class $UrlRequest$Callback$Type$ /// from: `org.chromium.net.UrlRequest$Experimental` extension type UrlRequest$Experimental._(jni$_.JObject _$this) - implements jni$_.JObject { + implements jni$_.JObject, Annotation { static final _class = jni$_.JClass.forName(r'org/chromium/net/UrlRequest$Experimental'); @@ -5532,6 +5704,7 @@ extension type UrlRequest$Experimental._(jni$_.JObject _$this) } final $i = jni$_.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); + $i.args?.release(); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( @@ -5669,7 +5842,8 @@ extension UrlRequest$StatusListener$$Methods on UrlRequest$StatusListener { void onStatus( core$_.int status, ) { - _onStatus(reference.pointer, _id_onStatus.pointer, status).check(); + final _$$selfRef = reference; + _onStatus(_$$selfRef.pointer, _id_onStatus.pointer, status).check(); } } @@ -5711,7 +5885,8 @@ extension UrlRequest$$Methods on UrlRequest { /// from: `public abstract void start()` void start() { - _start(reference.pointer, _id_start.pointer).check(); + final _$$selfRef = reference; + _start(_$$selfRef.pointer, _id_start.pointer).check(); } static final _id_followRedirect = UrlRequest._class.instanceMethodId( @@ -5733,7 +5908,8 @@ extension UrlRequest$$Methods on UrlRequest { /// from: `public abstract void followRedirect()` void followRedirect() { - _followRedirect(reference.pointer, _id_followRedirect.pointer).check(); + final _$$selfRef = reference; + _followRedirect(_$$selfRef.pointer, _id_followRedirect.pointer).check(); } static final _id_read = UrlRequest._class.instanceMethodId( @@ -5756,8 +5932,9 @@ extension UrlRequest$$Methods on UrlRequest { void read( jni$_.JByteBuffer? buffer, ) { + final _$$selfRef = reference; final _$buffer = buffer?.reference ?? jni$_.jNullReference; - _read(reference.pointer, _id_read.pointer, _$buffer.pointer).check(); + _read(_$$selfRef.pointer, _id_read.pointer, _$buffer.pointer).check(); } static final _id_cancel = UrlRequest._class.instanceMethodId( @@ -5779,7 +5956,8 @@ extension UrlRequest$$Methods on UrlRequest { /// from: `public abstract void cancel()` void cancel() { - _cancel(reference.pointer, _id_cancel.pointer).check(); + final _$$selfRef = reference; + _cancel(_$$selfRef.pointer, _id_cancel.pointer).check(); } static final _id_get$isDone = UrlRequest._class.instanceMethodId( @@ -5801,7 +5979,8 @@ extension UrlRequest$$Methods on UrlRequest { /// from: `public abstract boolean isDone()` core$_.bool get isDone { - return _get$isDone(reference.pointer, _id_get$isDone.pointer).boolean; + final _$$selfRef = reference; + return _get$isDone(_$$selfRef.pointer, _id_get$isDone.pointer).boolean; } static final _id_getStatus = UrlRequest._class.instanceMethodId( @@ -5824,8 +6003,9 @@ extension UrlRequest$$Methods on UrlRequest { void getStatus( UrlRequest$StatusListener? listener, ) { + final _$$selfRef = reference; final _$listener = listener?.reference ?? jni$_.jNullReference; - _getStatus(reference.pointer, _id_getStatus.pointer, _$listener.pointer) + _getStatus(_$$selfRef.pointer, _id_getStatus.pointer, _$listener.pointer) .check(); } } @@ -5871,9 +6051,10 @@ extension UrlResponseInfo$HeaderBlock$$Methods on UrlResponseInfo$HeaderBlock { /// from: `public abstract java.util.List> getAsList()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? get asList { - return _get$asList(reference.pointer, _id_get$asList.pointer) - .object?>(); + jni$_.JList? get asList { + final _$$selfRef = reference; + return _get$asList(_$$selfRef.pointer, _id_get$asList.pointer) + .object?>(); } static final _id_get$asMap = @@ -5897,7 +6078,8 @@ extension UrlResponseInfo$HeaderBlock$$Methods on UrlResponseInfo$HeaderBlock { /// from: `public abstract java.util.Map> getAsMap()` /// The returned object must be released after use, by calling the [release] method. jni$_.JMap?>? get asMap { - return _get$asMap(reference.pointer, _id_get$asMap.pointer) + final _$$selfRef = reference; + return _get$asMap(_$$selfRef.pointer, _id_get$asMap.pointer) .object?>?>(); } } @@ -5943,7 +6125,8 @@ extension UrlResponseInfo$$Methods on UrlResponseInfo { /// from: `public abstract java.lang.String getUrl()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? get url { - return _get$url(reference.pointer, _id_get$url.pointer) + final _$$selfRef = reference; + return _get$url(_$$selfRef.pointer, _id_get$url.pointer) .object(); } @@ -5967,7 +6150,8 @@ extension UrlResponseInfo$$Methods on UrlResponseInfo { /// from: `public abstract java.util.List getUrlChain()` /// The returned object must be released after use, by calling the [release] method. jni$_.JList? get urlChain { - return _get$urlChain(reference.pointer, _id_get$urlChain.pointer) + final _$$selfRef = reference; + return _get$urlChain(_$$selfRef.pointer, _id_get$urlChain.pointer) .object?>(); } @@ -5990,8 +6174,9 @@ extension UrlResponseInfo$$Methods on UrlResponseInfo { /// from: `public abstract int getHttpStatusCode()` core$_.int get httpStatusCode { + final _$$selfRef = reference; return _get$httpStatusCode( - reference.pointer, _id_get$httpStatusCode.pointer) + _$$selfRef.pointer, _id_get$httpStatusCode.pointer) .integer; } @@ -6015,8 +6200,9 @@ extension UrlResponseInfo$$Methods on UrlResponseInfo { /// from: `public abstract java.lang.String getHttpStatusText()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? get httpStatusText { + final _$$selfRef = reference; return _get$httpStatusText( - reference.pointer, _id_get$httpStatusText.pointer) + _$$selfRef.pointer, _id_get$httpStatusText.pointer) .object(); } @@ -6040,10 +6226,11 @@ extension UrlResponseInfo$$Methods on UrlResponseInfo { /// from: `public abstract java.util.List> getAllHeadersAsList()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? get allHeadersAsList { + jni$_.JList? get allHeadersAsList { + final _$$selfRef = reference; return _get$allHeadersAsList( - reference.pointer, _id_get$allHeadersAsList.pointer) - .object?>(); + _$$selfRef.pointer, _id_get$allHeadersAsList.pointer) + .object?>(); } static final _id_get$allHeaders = UrlResponseInfo._class.instanceMethodId( @@ -6066,7 +6253,8 @@ extension UrlResponseInfo$$Methods on UrlResponseInfo { /// from: `public abstract java.util.Map> getAllHeaders()` /// The returned object must be released after use, by calling the [release] method. jni$_.JMap?>? get allHeaders { - return _get$allHeaders(reference.pointer, _id_get$allHeaders.pointer) + final _$$selfRef = reference; + return _get$allHeaders(_$$selfRef.pointer, _id_get$allHeaders.pointer) .object?>?>(); } @@ -6089,7 +6277,8 @@ extension UrlResponseInfo$$Methods on UrlResponseInfo { /// from: `public abstract boolean wasCached()` core$_.bool wasCached() { - return _wasCached(reference.pointer, _id_wasCached.pointer).boolean; + final _$$selfRef = reference; + return _wasCached(_$$selfRef.pointer, _id_wasCached.pointer).boolean; } static final _id_get$negotiatedProtocol = @@ -6113,8 +6302,9 @@ extension UrlResponseInfo$$Methods on UrlResponseInfo { /// from: `public abstract java.lang.String getNegotiatedProtocol()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? get negotiatedProtocol { + final _$$selfRef = reference; return _get$negotiatedProtocol( - reference.pointer, _id_get$negotiatedProtocol.pointer) + _$$selfRef.pointer, _id_get$negotiatedProtocol.pointer) .object(); } @@ -6138,7 +6328,8 @@ extension UrlResponseInfo$$Methods on UrlResponseInfo { /// from: `public abstract java.lang.String getProxyServer()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? get proxyServer { - return _get$proxyServer(reference.pointer, _id_get$proxyServer.pointer) + final _$$selfRef = reference; + return _get$proxyServer(_$$selfRef.pointer, _id_get$proxyServer.pointer) .object(); } @@ -6162,8 +6353,9 @@ extension UrlResponseInfo$$Methods on UrlResponseInfo { /// from: `public abstract long getReceivedByteCount()` core$_.int get receivedByteCount { + final _$$selfRef = reference; return _get$receivedByteCount( - reference.pointer, _id_get$receivedByteCount.pointer) + _$$selfRef.pointer, _id_get$receivedByteCount.pointer) .long; } } @@ -6176,3 +6368,737 @@ final class $UrlResponseInfo$Type$ extends jni$_.JType { @core$_.override String get signature => r'Lorg/chromium/net/UrlResponseInfo;'; } + +/// from: `java.lang.StackTraceElement` +/// +/// WARNING: StackTraceElement is a stub. To generate bindings for this class, include +/// java.lang.StackTraceElement in your config's classes list. +/// +extension type StackTraceElement._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = $StackTraceElement$Type$(); +} + +final class $StackTraceElement$Type$ extends jni$_.JType { + @jni$_.internal + const $StackTraceElement$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/lang/StackTraceElement;'; +} + +/// from: `java.io.PrintStream` +/// +/// WARNING: PrintStream is a stub. To generate bindings for this class, include +/// java.io.PrintStream in your config's classes list. +/// +extension type PrintStream._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $PrintStream$Type$(); +} + +final class $PrintStream$Type$ extends jni$_.JType { + @jni$_.internal + const $PrintStream$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/io/PrintStream;'; +} + +/// from: `java.io.PrintWriter` +/// +/// WARNING: PrintWriter is a stub. To generate bindings for this class, include +/// java.io.PrintWriter in your config's classes list. +/// +extension type PrintWriter._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $PrintWriter$Type$(); +} + +final class $PrintWriter$Type$ extends jni$_.JType { + @jni$_.internal + const $PrintWriter$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/io/PrintWriter;'; +} + +/// from: `java.io.Serializable` +/// +/// WARNING: Serializable is a stub. To generate bindings for this class, include +/// java.io.Serializable in your config's classes list. +/// +extension type Serializable._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Serializable$Type$(); +} + +final class $Serializable$Type$ extends jni$_.JType { + @jni$_.internal + const $Serializable$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/io/Serializable;'; +} + +/// from: `java.net.URLStreamHandler` +/// +/// WARNING: URLStreamHandler is a stub. To generate bindings for this class, include +/// java.net.URLStreamHandler in your config's classes list. +/// +extension type URLStreamHandler._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = $URLStreamHandler$Type$(); +} + +final class $URLStreamHandler$Type$ extends jni$_.JType { + @jni$_.internal + const $URLStreamHandler$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/net/URLStreamHandler;'; +} + +/// from: `java.net.URLConnection` +/// +/// WARNING: URLConnection is a stub. To generate bindings for this class, include +/// java.net.URLConnection in your config's classes list. +/// +extension type URLConnection._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $URLConnection$Type$(); +} + +final class $URLConnection$Type$ extends jni$_.JType { + @jni$_.internal + const $URLConnection$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/net/URLConnection;'; +} + +/// from: `java.net.Proxy` +/// +/// WARNING: Proxy is a stub. To generate bindings for this class, include +/// java.net.Proxy in your config's classes list. +/// +extension type Proxy._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Proxy$Type$(); +} + +final class $Proxy$Type$ extends jni$_.JType { + @jni$_.internal + const $Proxy$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/net/Proxy;'; +} + +/// from: `java.io.InputStream` +/// +/// WARNING: InputStream is a stub. To generate bindings for this class, include +/// java.io.InputStream in your config's classes list. +/// +extension type InputStream._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $InputStream$Type$(); +} + +final class $InputStream$Type$ extends jni$_.JType { + @jni$_.internal + const $InputStream$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/io/InputStream;'; +} + +/// from: `java.net.URLStreamHandlerFactory` +/// +/// WARNING: URLStreamHandlerFactory is a stub. To generate bindings for this class, include +/// java.net.URLStreamHandlerFactory in your config's classes list. +/// +extension type URLStreamHandlerFactory._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $URLStreamHandlerFactory$Type$(); +} + +final class $URLStreamHandlerFactory$Type$ + extends jni$_.JType { + @jni$_.internal + const $URLStreamHandlerFactory$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/net/URLStreamHandlerFactory;'; +} + +/// from: `java.net.URI` +/// +/// WARNING: URI is a stub. To generate bindings for this class, include +/// java.net.URI in your config's classes list. +/// +extension type URI._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $URI$Type$(); +} + +final class $URI$Type$ extends jni$_.JType { + @jni$_.internal + const $URI$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/net/URI;'; +} + +/// from: `java.util.concurrent.Callable` +/// +/// WARNING: Callable is a stub. To generate bindings for this class, include +/// java.util.concurrent.Callable in your config's classes list. +/// +extension type Callable._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Callable$Type$(); +} + +final class $Callable$Type$ extends jni$_.JType { + @jni$_.internal + const $Callable$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/util/concurrent/Callable;'; +} + +/// from: `java.lang.Runnable` +/// +/// WARNING: Runnable is a stub. To generate bindings for this class, include +/// java.lang.Runnable in your config's classes list. +/// +extension type Runnable._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Runnable$Type$(); +} + +final class $Runnable$Type$ extends jni$_.JType { + @jni$_.internal + const $Runnable$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/lang/Runnable;'; +} + +/// from: `java.security.PrivilegedAction` +/// +/// WARNING: PrivilegedAction is a stub. To generate bindings for this class, include +/// java.security.PrivilegedAction in your config's classes list. +/// +extension type PrivilegedAction._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = $PrivilegedAction$Type$(); +} + +final class $PrivilegedAction$Type$ extends jni$_.JType { + @jni$_.internal + const $PrivilegedAction$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/security/PrivilegedAction;'; +} + +/// from: `java.security.PrivilegedExceptionAction` +/// +/// WARNING: PrivilegedExceptionAction is a stub. To generate bindings for this class, include +/// java.security.PrivilegedExceptionAction in your config's classes list. +/// +extension type PrivilegedExceptionAction._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $PrivilegedExceptionAction$Type$(); +} + +final class $PrivilegedExceptionAction$Type$ + extends jni$_.JType { + @jni$_.internal + const $PrivilegedExceptionAction$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/security/PrivilegedExceptionAction;'; +} + +/// from: `java.util.concurrent.ThreadFactory` +/// +/// WARNING: ThreadFactory is a stub. To generate bindings for this class, include +/// java.util.concurrent.ThreadFactory in your config's classes list. +/// +extension type ThreadFactory._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $ThreadFactory$Type$(); +} + +final class $ThreadFactory$Type$ extends jni$_.JType { + @jni$_.internal + const $ThreadFactory$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/util/concurrent/ThreadFactory;'; +} + +/// from: `java.util.concurrent.ExecutorService` +/// +/// WARNING: ExecutorService is a stub. To generate bindings for this class, include +/// java.util.concurrent.ExecutorService in your config's classes list. +/// +extension type ExecutorService._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = $ExecutorService$Type$(); +} + +final class $ExecutorService$Type$ extends jni$_.JType { + @jni$_.internal + const $ExecutorService$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/util/concurrent/ExecutorService;'; +} + +/// from: `java.util.concurrent.ScheduledExecutorService` +/// +/// WARNING: ScheduledExecutorService is a stub. To generate bindings for this class, include +/// java.util.concurrent.ScheduledExecutorService in your config's classes list. +/// +extension type ScheduledExecutorService._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $ScheduledExecutorService$Type$(); +} + +final class $ScheduledExecutorService$Type$ + extends jni$_.JType { + @jni$_.internal + const $ScheduledExecutorService$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/util/concurrent/ScheduledExecutorService;'; +} + +/// from: `java.util.concurrent.Executor` +/// +/// WARNING: Executor is a stub. To generate bindings for this class, include +/// java.util.concurrent.Executor in your config's classes list. +/// +extension type Executor._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Executor$Type$(); +} + +final class $Executor$Type$ extends jni$_.JType { + @jni$_.internal + const $Executor$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/util/concurrent/Executor;'; +} + +/// from: `org.chromium.net.BidirectionalStream$Builder` +/// +/// WARNING: BidirectionalStream$$Builder is a stub. To generate bindings for this class, include +/// org.chromium.net.BidirectionalStream$Builder in your config's classes list. +/// +extension type BidirectionalStream$$Builder._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $BidirectionalStream$$Builder$Type$(); +} + +final class $BidirectionalStream$$Builder$Type$ + extends jni$_.JType { + @jni$_.internal + const $BidirectionalStream$$Builder$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lorg/chromium/net/BidirectionalStream$Builder;'; +} + +/// from: `org.chromium.net.BidirectionalStream$Callback` +/// +/// WARNING: BidirectionalStream$$Callback is a stub. To generate bindings for this class, include +/// org.chromium.net.BidirectionalStream$Callback in your config's classes list. +/// +extension type BidirectionalStream$$Callback._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $BidirectionalStream$$Callback$Type$(); +} + +final class $BidirectionalStream$$Callback$Type$ + extends jni$_.JType { + @jni$_.internal + const $BidirectionalStream$$Callback$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lorg/chromium/net/BidirectionalStream$Callback;'; +} + +/// from: `org.chromium.net.RequestFinishedInfo$Listener` +/// +/// WARNING: RequestFinishedInfo$$Listener is a stub. To generate bindings for this class, include +/// org.chromium.net.RequestFinishedInfo$Listener in your config's classes list. +/// +extension type RequestFinishedInfo$$Listener._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $RequestFinishedInfo$$Listener$Type$(); +} + +final class $RequestFinishedInfo$$Listener$Type$ + extends jni$_.JType { + @jni$_.internal + const $RequestFinishedInfo$$Listener$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lorg/chromium/net/RequestFinishedInfo$Listener;'; +} + +/// from: `org.chromium.net.NetworkQualityRttListener` +/// +/// WARNING: NetworkQualityRttListener is a stub. To generate bindings for this class, include +/// org.chromium.net.NetworkQualityRttListener in your config's classes list. +/// +extension type NetworkQualityRttListener._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $NetworkQualityRttListener$Type$(); +} + +final class $NetworkQualityRttListener$Type$ + extends jni$_.JType { + @jni$_.internal + const $NetworkQualityRttListener$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lorg/chromium/net/NetworkQualityRttListener;'; +} + +/// from: `org.chromium.net.NetworkQualityThroughputListener` +/// +/// WARNING: NetworkQualityThroughputListener is a stub. To generate bindings for this class, include +/// org.chromium.net.NetworkQualityThroughputListener in your config's classes list. +/// +extension type NetworkQualityThroughputListener._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $NetworkQualityThroughputListener$Type$(); +} + +final class $NetworkQualityThroughputListener$Type$ + extends jni$_.JType { + @jni$_.internal + const $NetworkQualityThroughputListener$Type$(); + + @jni$_.internal + @core$_.override + String get signature => + r'Lorg/chromium/net/NetworkQualityThroughputListener;'; +} + +/// from: `android.content.Context` +/// +/// WARNING: Context is a stub. To generate bindings for this class, include +/// android.content.Context in your config's classes list. +/// +extension type Context._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Context$Type$(); +} + +final class $Context$Type$ extends jni$_.JType { + @jni$_.internal + const $Context$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Landroid/content/Context;'; +} + +/// from: `org.chromium.net.ICronetEngineBuilder` +/// +/// WARNING: ICronetEngineBuilder is a stub. To generate bindings for this class, include +/// org.chromium.net.ICronetEngineBuilder in your config's classes list. +/// +extension type ICronetEngineBuilder._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $ICronetEngineBuilder$Type$(); +} + +final class $ICronetEngineBuilder$Type$ + extends jni$_.JType { + @jni$_.internal + const $ICronetEngineBuilder$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lorg/chromium/net/ICronetEngineBuilder;'; +} + +/// from: `java.util.Date` +/// +/// WARNING: Date is a stub. To generate bindings for this class, include +/// java.util.Date in your config's classes list. +/// +extension type Date._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Date$Type$(); +} + +final class $Date$Type$ extends jni$_.JType { + @jni$_.internal + const $Date$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/util/Date;'; +} + +/// from: `org.chromium.net.QuicOptions` +/// +/// WARNING: QuicOptions is a stub. To generate bindings for this class, include +/// org.chromium.net.QuicOptions in your config's classes list. +/// +extension type QuicOptions._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $QuicOptions$Type$(); +} + +final class $QuicOptions$Type$ extends jni$_.JType { + @jni$_.internal + const $QuicOptions$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lorg/chromium/net/QuicOptions;'; +} + +/// from: `org.chromium.net.QuicOptions$Builder` +/// +/// WARNING: QuicOptions$$Builder is a stub. To generate bindings for this class, include +/// org.chromium.net.QuicOptions$Builder in your config's classes list. +/// +extension type QuicOptions$$Builder._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $QuicOptions$$Builder$Type$(); +} + +final class $QuicOptions$$Builder$Type$ + extends jni$_.JType { + @jni$_.internal + const $QuicOptions$$Builder$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lorg/chromium/net/QuicOptions$Builder;'; +} + +/// from: `org.chromium.net.DnsOptions` +/// +/// WARNING: DnsOptions is a stub. To generate bindings for this class, include +/// org.chromium.net.DnsOptions in your config's classes list. +/// +extension type DnsOptions._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $DnsOptions$Type$(); +} + +final class $DnsOptions$Type$ extends jni$_.JType { + @jni$_.internal + const $DnsOptions$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lorg/chromium/net/DnsOptions;'; +} + +/// from: `org.chromium.net.DnsOptions$Builder` +/// +/// WARNING: DnsOptions$$Builder is a stub. To generate bindings for this class, include +/// org.chromium.net.DnsOptions$Builder in your config's classes list. +/// +extension type DnsOptions$$Builder._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $DnsOptions$$Builder$Type$(); +} + +final class $DnsOptions$$Builder$Type$ + extends jni$_.JType { + @jni$_.internal + const $DnsOptions$$Builder$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lorg/chromium/net/DnsOptions$Builder;'; +} + +/// from: `org.chromium.net.ConnectionMigrationOptions` +/// +/// WARNING: ConnectionMigrationOptions is a stub. To generate bindings for this class, include +/// org.chromium.net.ConnectionMigrationOptions in your config's classes list. +/// +extension type ConnectionMigrationOptions._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $ConnectionMigrationOptions$Type$(); +} + +final class $ConnectionMigrationOptions$Type$ + extends jni$_.JType { + @jni$_.internal + const $ConnectionMigrationOptions$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lorg/chromium/net/ConnectionMigrationOptions;'; +} + +/// from: `org.chromium.net.ConnectionMigrationOptions$Builder` +/// +/// WARNING: ConnectionMigrationOptions$$Builder is a stub. To generate bindings for this class, include +/// org.chromium.net.ConnectionMigrationOptions$Builder in your config's classes list. +/// +extension type ConnectionMigrationOptions$$Builder._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $ConnectionMigrationOptions$$Builder$Type$(); +} + +final class $ConnectionMigrationOptions$$Builder$Type$ + extends jni$_.JType { + @jni$_.internal + const $ConnectionMigrationOptions$$Builder$Type$(); + + @jni$_.internal + @core$_.override + String get signature => + r'Lorg/chromium/net/ConnectionMigrationOptions$Builder;'; +} + +/// from: `org.chromium.net.ProxyOptions` +/// +/// WARNING: ProxyOptions is a stub. To generate bindings for this class, include +/// org.chromium.net.ProxyOptions in your config's classes list. +/// +extension type ProxyOptions._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $ProxyOptions$Type$(); +} + +final class $ProxyOptions$Type$ extends jni$_.JType { + @jni$_.internal + const $ProxyOptions$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lorg/chromium/net/ProxyOptions;'; +} + +/// from: `org.chromium.net.UploadDataProvider` +/// +/// WARNING: UploadDataProvider is a stub. To generate bindings for this class, include +/// org.chromium.net.UploadDataProvider in your config's classes list. +/// +extension type UploadDataProvider._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $UploadDataProvider$Type$(); +} + +final class $UploadDataProvider$Type$ extends jni$_.JType { + @jni$_.internal + const $UploadDataProvider$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lorg/chromium/net/UploadDataProvider;'; +} + +/// from: `java.io.File` +/// +/// WARNING: File is a stub. To generate bindings for this class, include +/// java.io.File in your config's classes list. +/// +extension type File._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $File$Type$(); +} + +final class $File$Type$ extends jni$_.JType { + @jni$_.internal + const $File$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/io/File;'; +} + +/// from: `android.os.ParcelFileDescriptor` +/// +/// WARNING: ParcelFileDescriptor is a stub. To generate bindings for this class, include +/// android.os.ParcelFileDescriptor in your config's classes list. +/// +extension type ParcelFileDescriptor._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $ParcelFileDescriptor$Type$(); +} + +final class $ParcelFileDescriptor$Type$ + extends jni$_.JType { + @jni$_.internal + const $ParcelFileDescriptor$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Landroid/os/ParcelFileDescriptor;'; +} + +/// from: `java.lang.annotation.Annotation` +/// +/// WARNING: Annotation is a stub. To generate bindings for this class, include +/// java.lang.annotation.Annotation in your config's classes list. +/// +extension type Annotation._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Annotation$Type$(); +} + +final class $Annotation$Type$ extends jni$_.JType { + @jni$_.internal + const $Annotation$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/lang/annotation/Annotation;'; +} + +/// from: `java.util.Map$Entry` +/// +/// WARNING: Map$$Entry is a stub. To generate bindings for this class, include +/// java.util.Map$Entry in your config's classes list. +/// +extension type Map$$Entry._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Map$$Entry$Type$(); +} + +final class $Map$$Entry$Type$ extends jni$_.JType { + @jni$_.internal + const $Map$$Entry$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/util/Map$Entry;'; +} diff --git a/pkgs/cronet_http/pubspec.yaml b/pkgs/cronet_http/pubspec.yaml index 45e97af8ec..13e7631132 100644 --- a/pkgs/cronet_http/pubspec.yaml +++ b/pkgs/cronet_http/pubspec.yaml @@ -1,5 +1,5 @@ name: cronet_http -version: 1.9.0 +version: 1.9.1-wip description: >- An Android Flutter plugin that provides access to the Cronet HTTP client. repository: https://github.com/dart-lang/http/tree/master/pkgs/cronet_http @@ -18,7 +18,7 @@ dependencies: dev_dependencies: dart_flutter_team_lints: ^3.0.0 - jnigen: ^0.16.0 + jnigen: ^0.17.0 xml: ^6.1.0 yaml_edit: ^2.0.3 diff --git a/pkgs/ok_http/CHANGELOG.md b/pkgs/ok_http/CHANGELOG.md index f3d011414f..22b520dbde 100644 --- a/pkgs/ok_http/CHANGELOG.md +++ b/pkgs/ok_http/CHANGELOG.md @@ -1,5 +1,6 @@ ## 0.1.1-wip +- Upgrade to `jni` 1.0.0 and `jnigen` 0.17.0. - `OkHttpClient` now receives an `OkHttpClientConfiguration` to configure the client on a per-call basis. - `OkHttpClient` supports setting four types of timeouts: [`connectTimeout`](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-ok-http-client/-builder/connect-timeout.html), [`readTimeout`](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-ok-http-client/-builder/read-timeout.html), [`writeTimeout`](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-ok-http-client/-builder/write-timeout.html), and [`callTimeout`](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-ok-http-client/-builder/call-timeout.html), using the `OkHttpClientConfiguration`. - Upgrade to `jni` 0.14.0 diff --git a/pkgs/ok_http/example/android/gradle.properties b/pkgs/ok_http/example/android/gradle.properties index 3b5b324f6e..1551eb0806 100644 --- a/pkgs/ok_http/example/android/gradle.properties +++ b/pkgs/ok_http/example/android/gradle.properties @@ -1,3 +1,7 @@ org.gradle.jvmargs=-Xmx4G -XX:+HeapDumpOnOutOfMemoryError android.useAndroidX=true android.enableJetifier=true +# This builtInKotlin flag was added automatically by Flutter migrator +android.builtInKotlin=false +# This newDsl flag was added automatically by Flutter migrator +android.newDsl=false diff --git a/pkgs/ok_http/example/android/settings.gradle b/pkgs/ok_http/example/android/settings.gradle index 6943dc9110..4f520718dc 100644 --- a/pkgs/ok_http/example/android/settings.gradle +++ b/pkgs/ok_http/example/android/settings.gradle @@ -18,8 +18,8 @@ pluginManagement { plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" - id "com.android.application" version "8.2.1" apply false - id "org.jetbrains.kotlin.android" version "1.9.23" apply false + id "com.android.application" version "8.6.0" apply false + id "org.jetbrains.kotlin.android" version "2.1.0" apply false } include ":app" diff --git a/pkgs/ok_http/example/integration_test/certificate_test.dart b/pkgs/ok_http/example/integration_test/certificate_test.dart index da2d29b3a8..51b0f9c665 100644 --- a/pkgs/ok_http/example/integration_test/certificate_test.dart +++ b/pkgs/ok_http/example/integration_test/certificate_test.dart @@ -9,9 +9,9 @@ import 'dart:typed_data'; import 'package:flutter/services.dart' show rootBundle; import 'package:http/http.dart'; import 'package:integration_test/integration_test.dart'; +import 'package:jni/jni.dart'; import 'package:ok_http/ok_http.dart'; import 'package:ok_http/src/jni/bindings.dart' as bindings; - import 'package:test/test.dart'; Future loadCertificateBytes(String path) async { @@ -35,7 +35,7 @@ void main() async { .toDartString(releaseOriginal: true), 'PKCS#8'); expect(chain.length, 1); - expect(chain[0].getType()!.toDartString(), 'X.509'); + expect(chain[0].type$1!.toDartString(releaseOriginal: true), 'X.509'); }); test('no key', () async { diff --git a/pkgs/ok_http/example/pubspec.yaml b/pkgs/ok_http/example/pubspec.yaml index 319c5faf5d..df2097c18d 100644 --- a/pkgs/ok_http/example/pubspec.yaml +++ b/pkgs/ok_http/example/pubspec.yaml @@ -27,6 +27,7 @@ dev_dependencies: http_profile: ^0.1.0 integration_test: sdk: flutter + jni: ^1.0.0 test: ^1.23.1 web_socket_conformance_tests: path: ../../web_socket_conformance_tests/ diff --git a/pkgs/ok_http/lib/src/jni/bindings.dart b/pkgs/ok_http/lib/src/jni/bindings.dart index 06df64657f..b3d01af948 100644 --- a/pkgs/ok_http/lib/src/jni/bindings.dart +++ b/pkgs/ok_http/lib/src/jni/bindings.dart @@ -1,12 +1,13 @@ -// ignore_for_file: prefer_expression_function_bodies +// AUTO GENERATED BY JNIGEN 0.17.0. DO NOT EDIT! -// Autogenerated by jnigen. DO NOT EDIT! +// ignore_for_file: prefer_expression_function_bodies // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions // ignore_for_file: camel_case_types // ignore_for_file: constant_identifier_names +// ignore_for_file: comment_references // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names // ignore_for_file: inference_failure_on_untyped_parameter @@ -31,29 +32,21 @@ // ignore_for_file: unused_shown_name // ignore_for_file: use_super_parameters -import 'dart:core' show Object, String, bool, double, int; import 'dart:core' as core$_; +import 'dart:core' show Object, String; import 'package:jni/_internal.dart' as jni$_; import 'package:jni/jni.dart' as jni$_; -/// from: `okhttp3.Request$Builder` -class Request$Builder extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Request$Builder.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); +const _$jniVersionCheck = jni$_.JniVersionCheck(1, 0); +/// from: `okhttp3.Request$Builder` +extension type Request$Builder._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'okhttp3/Request$Builder'); /// The type which includes information such as the signature of this class. - static const nullableType = $Request$Builder$NullableType(); - static const type = $Request$Builder$Type(); + static const jni$_.JType type = $Request$Builder$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -73,9 +66,9 @@ class Request$Builder extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory Request$Builder() { - return Request$Builder.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + final _$$classRef = _class.reference; + return _new$(_$$classRef.pointer, _id_new$.pointer) + .object(); } static final _id_new$1 = _class.constructorId( @@ -98,13 +91,15 @@ class Request$Builder extends jni$_.JObject { factory Request$Builder.new$1( Request request, ) { + final _$$classRef = _class.reference; final _$request = request.reference; - return Request$Builder.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, _$request.pointer) - .reference); + return _new$1(_$$classRef.pointer, _id_new$1.pointer, _$request.pointer) + .object(); } +} - static final _id_url = _class.instanceMethodId( +extension Request$Builder$$Methods on Request$Builder { + static final _id_url = Request$Builder._class.instanceMethodId( r'url', r'(Lokhttp3/HttpUrl;)Lokhttp3/Request$Builder;', ); @@ -120,18 +115,18 @@ class Request$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public okhttp3.Request$Builder url(okhttp3.HttpUrl httpUrl)` + /// from: `public fun url(url: okhttp3.HttpUrl): okhttp3.Request.Builder` /// The returned object must be released after use, by calling the [release] method. Request$Builder url( - jni$_.JObject httpUrl, + HttpUrl httpUrl, ) { + final _$$selfRef = reference; final _$httpUrl = httpUrl.reference; - return _url( - reference.pointer, _id_url as jni$_.JMethodIDPtr, _$httpUrl.pointer) - .object(const $Request$Builder$Type()); + return _url(_$$selfRef.pointer, _id_url.pointer, _$httpUrl.pointer) + .object(); } - static final _id_url$1 = _class.instanceMethodId( + static final _id_url$1 = Request$Builder._class.instanceMethodId( r'url', r'(Ljava/lang/String;)Lokhttp3/Request$Builder;', ); @@ -147,18 +142,18 @@ class Request$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public okhttp3.Request$Builder url(java.lang.String string)` + /// from: `public fun url(url: kotlin.String): okhttp3.Request.Builder` /// The returned object must be released after use, by calling the [release] method. Request$Builder url$1( jni$_.JString string, ) { + final _$$selfRef = reference; final _$string = string.reference; - return _url$1(reference.pointer, _id_url$1 as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const $Request$Builder$Type()); + return _url$1(_$$selfRef.pointer, _id_url$1.pointer, _$string.pointer) + .object(); } - static final _id_url$2 = _class.instanceMethodId( + static final _id_url$2 = Request$Builder._class.instanceMethodId( r'url', r'(Ljava/net/URL;)Lokhttp3/Request$Builder;', ); @@ -174,18 +169,18 @@ class Request$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public okhttp3.Request$Builder url(java.net.URL uRL)` + /// from: `public fun url(url: java.net.URL): okhttp3.Request.Builder` /// The returned object must be released after use, by calling the [release] method. Request$Builder url$2( - jni$_.JObject uRL, + URL uRL, ) { + final _$$selfRef = reference; final _$uRL = uRL.reference; - return _url$2( - reference.pointer, _id_url$2 as jni$_.JMethodIDPtr, _$uRL.pointer) - .object(const $Request$Builder$Type()); + return _url$2(_$$selfRef.pointer, _id_url$2.pointer, _$uRL.pointer) + .object(); } - static final _id_header = _class.instanceMethodId( + static final _id_header = Request$Builder._class.instanceMethodId( r'header', r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Request$Builder;', ); @@ -207,20 +202,21 @@ class Request$Builder extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public okhttp3.Request$Builder header(java.lang.String string, java.lang.String string1)` + /// from: `public fun header(name: kotlin.String, value: kotlin.String): okhttp3.Request.Builder` /// The returned object must be released after use, by calling the [release] method. Request$Builder header( jni$_.JString string, jni$_.JString string1, ) { + final _$$selfRef = reference; final _$string = string.reference; final _$string1 = string1.reference; - return _header(reference.pointer, _id_header as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) - .object(const $Request$Builder$Type()); + return _header(_$$selfRef.pointer, _id_header.pointer, _$string.pointer, + _$string1.pointer) + .object(); } - static final _id_addHeader = _class.instanceMethodId( + static final _id_addHeader = Request$Builder._class.instanceMethodId( r'addHeader', r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Request$Builder;', ); @@ -242,20 +238,21 @@ class Request$Builder extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public okhttp3.Request$Builder addHeader(java.lang.String string, java.lang.String string1)` + /// from: `public fun addHeader(name: kotlin.String, value: kotlin.String): okhttp3.Request.Builder` /// The returned object must be released after use, by calling the [release] method. Request$Builder addHeader( jni$_.JString string, jni$_.JString string1, ) { + final _$$selfRef = reference; final _$string = string.reference; final _$string1 = string1.reference; - return _addHeader(reference.pointer, _id_addHeader as jni$_.JMethodIDPtr, + return _addHeader(_$$selfRef.pointer, _id_addHeader.pointer, _$string.pointer, _$string1.pointer) - .object(const $Request$Builder$Type()); + .object(); } - static final _id_removeHeader = _class.instanceMethodId( + static final _id_removeHeader = Request$Builder._class.instanceMethodId( r'removeHeader', r'(Ljava/lang/String;)Lokhttp3/Request$Builder;', ); @@ -271,18 +268,19 @@ class Request$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public okhttp3.Request$Builder removeHeader(java.lang.String string)` + /// from: `public fun removeHeader(name: kotlin.String): okhttp3.Request.Builder` /// The returned object must be released after use, by calling the [release] method. Request$Builder removeHeader( jni$_.JString string, ) { + final _$$selfRef = reference; final _$string = string.reference; - return _removeHeader(reference.pointer, - _id_removeHeader as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $Request$Builder$Type()); + return _removeHeader( + _$$selfRef.pointer, _id_removeHeader.pointer, _$string.pointer) + .object(); } - static final _id_headers = _class.instanceMethodId( + static final _id_headers = Request$Builder._class.instanceMethodId( r'headers', r'(Lokhttp3/Headers;)Lokhttp3/Request$Builder;', ); @@ -298,18 +296,18 @@ class Request$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public okhttp3.Request$Builder headers(okhttp3.Headers headers)` + /// from: `public fun headers(headers: okhttp3.Headers): okhttp3.Request.Builder` /// The returned object must be released after use, by calling the [release] method. Request$Builder headers( Headers headers, ) { + final _$$selfRef = reference; final _$headers = headers.reference; - return _headers(reference.pointer, _id_headers as jni$_.JMethodIDPtr, - _$headers.pointer) - .object(const $Request$Builder$Type()); + return _headers(_$$selfRef.pointer, _id_headers.pointer, _$headers.pointer) + .object(); } - static final _id_cacheControl = _class.instanceMethodId( + static final _id_cacheControl = Request$Builder._class.instanceMethodId( r'cacheControl', r'(Lokhttp3/CacheControl;)Lokhttp3/Request$Builder;', ); @@ -325,18 +323,19 @@ class Request$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public okhttp3.Request$Builder cacheControl(okhttp3.CacheControl cacheControl)` + /// from: `public fun cacheControl(cacheControl: okhttp3.CacheControl): okhttp3.Request.Builder` /// The returned object must be released after use, by calling the [release] method. Request$Builder cacheControl( - jni$_.JObject cacheControl, + CacheControl cacheControl, ) { + final _$$selfRef = reference; final _$cacheControl = cacheControl.reference; - return _cacheControl(reference.pointer, - _id_cacheControl as jni$_.JMethodIDPtr, _$cacheControl.pointer) - .object(const $Request$Builder$Type()); + return _cacheControl(_$$selfRef.pointer, _id_cacheControl.pointer, + _$cacheControl.pointer) + .object(); } - static final _id_get = _class.instanceMethodId( + static final _id_get = Request$Builder._class.instanceMethodId( r'get', r'()Lokhttp3/Request$Builder;', ); @@ -353,14 +352,14 @@ class Request$Builder extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public okhttp3.Request$Builder get()` + /// from: `public fun get(): okhttp3.Request.Builder` /// The returned object must be released after use, by calling the [release] method. Request$Builder get() { - return _get(reference.pointer, _id_get as jni$_.JMethodIDPtr) - .object(const $Request$Builder$Type()); + final _$$selfRef = reference; + return _get(_$$selfRef.pointer, _id_get.pointer).object(); } - static final _id_head = _class.instanceMethodId( + static final _id_head = Request$Builder._class.instanceMethodId( r'head', r'()Lokhttp3/Request$Builder;', ); @@ -377,14 +376,15 @@ class Request$Builder extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public okhttp3.Request$Builder head()` + /// from: `public fun head(): okhttp3.Request.Builder` /// The returned object must be released after use, by calling the [release] method. Request$Builder head() { - return _head(reference.pointer, _id_head as jni$_.JMethodIDPtr) - .object(const $Request$Builder$Type()); + final _$$selfRef = reference; + return _head(_$$selfRef.pointer, _id_head.pointer) + .object(); } - static final _id_post = _class.instanceMethodId( + static final _id_post = Request$Builder._class.instanceMethodId( r'post', r'(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;', ); @@ -400,18 +400,18 @@ class Request$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public okhttp3.Request$Builder post(okhttp3.RequestBody requestBody)` + /// from: `public fun post(body: okhttp3.RequestBody): okhttp3.Request.Builder` /// The returned object must be released after use, by calling the [release] method. Request$Builder post( RequestBody requestBody, ) { + final _$$selfRef = reference; final _$requestBody = requestBody.reference; - return _post(reference.pointer, _id_post as jni$_.JMethodIDPtr, - _$requestBody.pointer) - .object(const $Request$Builder$Type()); + return _post(_$$selfRef.pointer, _id_post.pointer, _$requestBody.pointer) + .object(); } - static final _id_delete = _class.instanceMethodId( + static final _id_delete = Request$Builder._class.instanceMethodId( r'delete', r'(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;', ); @@ -427,18 +427,19 @@ class Request$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public okhttp3.Request$Builder delete(okhttp3.RequestBody requestBody)` + /// from: `public fun delete(body: okhttp3.RequestBody?): okhttp3.Request.Builder` /// The returned object must be released after use, by calling the [release] method. Request$Builder delete( RequestBody? requestBody, ) { + final _$$selfRef = reference; final _$requestBody = requestBody?.reference ?? jni$_.jNullReference; - return _delete(reference.pointer, _id_delete as jni$_.JMethodIDPtr, - _$requestBody.pointer) - .object(const $Request$Builder$Type()); + return _delete( + _$$selfRef.pointer, _id_delete.pointer, _$requestBody.pointer) + .object(); } - static final _id_put = _class.instanceMethodId( + static final _id_put = Request$Builder._class.instanceMethodId( r'put', r'(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;', ); @@ -454,18 +455,18 @@ class Request$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public okhttp3.Request$Builder put(okhttp3.RequestBody requestBody)` + /// from: `public fun put(body: okhttp3.RequestBody): okhttp3.Request.Builder` /// The returned object must be released after use, by calling the [release] method. Request$Builder put( RequestBody requestBody, ) { + final _$$selfRef = reference; final _$requestBody = requestBody.reference; - return _put(reference.pointer, _id_put as jni$_.JMethodIDPtr, - _$requestBody.pointer) - .object(const $Request$Builder$Type()); + return _put(_$$selfRef.pointer, _id_put.pointer, _$requestBody.pointer) + .object(); } - static final _id_patch = _class.instanceMethodId( + static final _id_patch = Request$Builder._class.instanceMethodId( r'patch', r'(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;', ); @@ -481,18 +482,18 @@ class Request$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public okhttp3.Request$Builder patch(okhttp3.RequestBody requestBody)` + /// from: `public fun patch(body: okhttp3.RequestBody): okhttp3.Request.Builder` /// The returned object must be released after use, by calling the [release] method. Request$Builder patch( RequestBody requestBody, ) { + final _$$selfRef = reference; final _$requestBody = requestBody.reference; - return _patch(reference.pointer, _id_patch as jni$_.JMethodIDPtr, - _$requestBody.pointer) - .object(const $Request$Builder$Type()); + return _patch(_$$selfRef.pointer, _id_patch.pointer, _$requestBody.pointer) + .object(); } - static final _id_method = _class.instanceMethodId( + static final _id_method = Request$Builder._class.instanceMethodId( r'method', r'(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;', ); @@ -514,20 +515,21 @@ class Request$Builder extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public okhttp3.Request$Builder method(java.lang.String string, okhttp3.RequestBody requestBody)` + /// from: `public fun method(method: kotlin.String, body: okhttp3.RequestBody?): okhttp3.Request.Builder` /// The returned object must be released after use, by calling the [release] method. Request$Builder method( jni$_.JString string, RequestBody? requestBody, ) { + final _$$selfRef = reference; final _$string = string.reference; final _$requestBody = requestBody?.reference ?? jni$_.jNullReference; - return _method(reference.pointer, _id_method as jni$_.JMethodIDPtr, - _$string.pointer, _$requestBody.pointer) - .object(const $Request$Builder$Type()); + return _method(_$$selfRef.pointer, _id_method.pointer, _$string.pointer, + _$requestBody.pointer) + .object(); } - static final _id_tag = _class.instanceMethodId( + static final _id_tag = Request$Builder._class.instanceMethodId( r'tag', r'(Ljava/lang/Object;)Lokhttp3/Request$Builder;', ); @@ -543,18 +545,18 @@ class Request$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public okhttp3.Request$Builder tag(java.lang.Object object)` + /// from: `public fun tag(tag: kotlin.Any?): okhttp3.Request.Builder` /// The returned object must be released after use, by calling the [release] method. Request$Builder tag( jni$_.JObject? object, ) { + final _$$selfRef = reference; final _$object = object?.reference ?? jni$_.jNullReference; - return _tag( - reference.pointer, _id_tag as jni$_.JMethodIDPtr, _$object.pointer) - .object(const $Request$Builder$Type()); + return _tag(_$$selfRef.pointer, _id_tag.pointer, _$object.pointer) + .object(); } - static final _id_tag$1 = _class.instanceMethodId( + static final _id_tag$1 = Request$Builder._class.instanceMethodId( r'tag', r'(Ljava/lang/Class;Ljava/lang/Object;)Lokhttp3/Request$Builder;', ); @@ -576,21 +578,21 @@ class Request$Builder extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public okhttp3.Request$Builder tag(java.lang.Class class, T object)` + /// from: `public fun tag(type: java.lang.Class, tag: T?): okhttp3.Request.Builder` /// The returned object must be released after use, by calling the [release] method. Request$Builder tag$1<$T extends jni$_.JObject?>( - jni$_.JObject class$, - $T? object, { - required jni$_.JObjType<$T> T, - }) { + jni$_.JClass class$, + $T? object, + ) { + final _$$selfRef = reference; final _$class$ = class$.reference; final _$object = object?.reference ?? jni$_.jNullReference; - return _tag$1(reference.pointer, _id_tag$1 as jni$_.JMethodIDPtr, - _$class$.pointer, _$object.pointer) - .object(const $Request$Builder$Type()); + return _tag$1(_$$selfRef.pointer, _id_tag$1.pointer, _$class$.pointer, + _$object.pointer) + .object(); } - static final _id_build = _class.instanceMethodId( + static final _id_build = Request$Builder._class.instanceMethodId( r'build', r'()Lokhttp3/Request;', ); @@ -607,14 +609,14 @@ class Request$Builder extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public okhttp3.Request build()` + /// from: `public fun build(): okhttp3.Request` /// The returned object must be released after use, by calling the [release] method. Request build() { - return _build(reference.pointer, _id_build as jni$_.JMethodIDPtr) - .object(const $Request$Type()); + final _$$selfRef = reference; + return _build(_$$selfRef.pointer, _id_build.pointer).object(); } - static final _id_delete$1 = _class.instanceMethodId( + static final _id_delete$1 = Request$Builder._class.instanceMethodId( r'delete', r'()Lokhttp3/Request$Builder;', ); @@ -634,103 +636,27 @@ class Request$Builder extends jni$_.JObject { /// from: `public final okhttp3.Request$Builder delete()` /// The returned object must be released after use, by calling the [release] method. Request$Builder delete$1() { - return _delete$1(reference.pointer, _id_delete$1 as jni$_.JMethodIDPtr) - .object(const $Request$Builder$Type()); - } -} - -final class $Request$Builder$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $Request$Builder$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/Request$Builder;'; - - @jni$_.internal - @core$_.override - Request$Builder? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Request$Builder.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Request$Builder$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Request$Builder$NullableType) && - other is $Request$Builder$NullableType; + final _$$selfRef = reference; + return _delete$1(_$$selfRef.pointer, _id_delete$1.pointer) + .object(); } } -final class $Request$Builder$Type extends jni$_.JObjType { +final class $Request$Builder$Type$ extends jni$_.JType { @jni$_.internal - const $Request$Builder$Type(); + const $Request$Builder$Type$(); @jni$_.internal @core$_.override String get signature => r'Lokhttp3/Request$Builder;'; - - @jni$_.internal - @core$_.override - Request$Builder fromReference(jni$_.JReference reference) => - Request$Builder.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $Request$Builder$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Request$Builder$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Request$Builder$Type) && - other is $Request$Builder$Type; - } } /// from: `okhttp3.Request` -class Request extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Request.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type Request._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'okhttp3/Request'); /// The type which includes information such as the signature of this class. - static const nullableType = $Request$NullableType(); - static const type = $Request$Type(); + static const jni$_.JType type = $Request$Type$(); static final _id_new$ = _class.constructorId( r'(Lokhttp3/HttpUrl;Ljava/lang/String;Lokhttp3/Headers;Lokhttp3/RequestBody;Ljava/util/Map;)V', ); @@ -758,32 +684,35 @@ class Request extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public void (okhttp3.HttpUrl httpUrl, java.lang.String string, okhttp3.Headers headers, okhttp3.RequestBody requestBody, java.util.Map map)` + /// from: `public void (okhttp3.HttpUrl httpUrl, java.lang.String string, okhttp3.Headers headers, okhttp3.RequestBody requestBody, java.util.Map, ? extends java.lang.Object> map)` /// The returned object must be released after use, by calling the [release] method. factory Request( - jni$_.JObject httpUrl, + HttpUrl httpUrl, jni$_.JString string, Headers headers, RequestBody? requestBody, - jni$_.JMap map, + jni$_.JMap map, ) { + final _$$classRef = _class.reference; final _$httpUrl = httpUrl.reference; final _$string = string.reference; final _$headers = headers.reference; final _$requestBody = requestBody?.reference ?? jni$_.jNullReference; final _$map = map.reference; - return Request.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, + return _new$( + _$$classRef.pointer, + _id_new$.pointer, _$httpUrl.pointer, _$string.pointer, _$headers.pointer, _$requestBody.pointer, _$map.pointer) - .reference); + .object(); } +} - static final _id_url = _class.instanceMethodId( +extension Request$$Methods on Request { + static final _id_url = Request._class.instanceMethodId( r'url', r'()Lokhttp3/HttpUrl;', ); @@ -802,12 +731,12 @@ class Request extends jni$_.JObject { /// from: `public final okhttp3.HttpUrl url()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject url() { - return _url(reference.pointer, _id_url as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + HttpUrl url() { + final _$$selfRef = reference; + return _url(_$$selfRef.pointer, _id_url.pointer).object(); } - static final _id_method = _class.instanceMethodId( + static final _id_method = Request._class.instanceMethodId( r'method', r'()Ljava/lang/String;', ); @@ -827,11 +756,12 @@ class Request extends jni$_.JObject { /// from: `public final java.lang.String method()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString method() { - return _method(reference.pointer, _id_method as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + final _$$selfRef = reference; + return _method(_$$selfRef.pointer, _id_method.pointer) + .object(); } - static final _id_headers = _class.instanceMethodId( + static final _id_headers = Request._class.instanceMethodId( r'headers', r'()Lokhttp3/Headers;', ); @@ -851,11 +781,11 @@ class Request extends jni$_.JObject { /// from: `public final okhttp3.Headers headers()` /// The returned object must be released after use, by calling the [release] method. Headers headers() { - return _headers(reference.pointer, _id_headers as jni$_.JMethodIDPtr) - .object(const $Headers$Type()); + final _$$selfRef = reference; + return _headers(_$$selfRef.pointer, _id_headers.pointer).object(); } - static final _id_body = _class.instanceMethodId( + static final _id_body = Request._class.instanceMethodId( r'body', r'()Lokhttp3/RequestBody;', ); @@ -875,16 +805,16 @@ class Request extends jni$_.JObject { /// from: `public final okhttp3.RequestBody body()` /// The returned object must be released after use, by calling the [release] method. RequestBody? body() { - return _body(reference.pointer, _id_body as jni$_.JMethodIDPtr) - .object(const $RequestBody$NullableType()); + final _$$selfRef = reference; + return _body(_$$selfRef.pointer, _id_body.pointer).object(); } - static final _id_isHttps = _class.instanceMethodId( + static final _id_get$isHttps = Request._class.instanceMethodId( r'isHttps', r'()Z', ); - static final _isHttps = jni$_.ProtectedJniExtensions.lookup< + static final _get$isHttps = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -897,12 +827,12 @@ class Request extends jni$_.JObject { )>(); /// from: `public final boolean isHttps()` - bool isHttps() { - return _isHttps(reference.pointer, _id_isHttps as jni$_.JMethodIDPtr) - .boolean; + core$_.bool get isHttps { + final _$$selfRef = reference; + return _get$isHttps(_$$selfRef.pointer, _id_get$isHttps.pointer).boolean; } - static final _id_header = _class.instanceMethodId( + static final _id_header = Request._class.instanceMethodId( r'header', r'(Ljava/lang/String;)Ljava/lang/String;', ); @@ -918,18 +848,18 @@ class Request extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final java.lang.String header(java.lang.String string)` + /// from: `public fun header(name: kotlin.String): kotlin.String?` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? header( jni$_.JString string, ) { + final _$$selfRef = reference; final _$string = string.reference; - return _header(reference.pointer, _id_header as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const jni$_.JStringNullableType()); + return _header(_$$selfRef.pointer, _id_header.pointer, _$string.pointer) + .object(); } - static final _id_headers$1 = _class.instanceMethodId( + static final _id_headers$1 = Request._class.instanceMethodId( r'headers', r'(Ljava/lang/String;)Ljava/util/List;', ); @@ -945,19 +875,19 @@ class Request extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final java.util.List headers(java.lang.String string)` + /// from: `public fun headers(name: kotlin.String): kotlin.collections.List` /// The returned object must be released after use, by calling the [release] method. jni$_.JList headers$1( jni$_.JString string, ) { + final _$$selfRef = reference; final _$string = string.reference; - return _headers$1(reference.pointer, _id_headers$1 as jni$_.JMethodIDPtr, - _$string.pointer) - .object>( - const jni$_.JListType(jni$_.JStringType())); + return _headers$1( + _$$selfRef.pointer, _id_headers$1.pointer, _$string.pointer) + .object>(); } - static final _id_tag = _class.instanceMethodId( + static final _id_tag = Request._class.instanceMethodId( r'tag', r'()Ljava/lang/Object;', ); @@ -974,14 +904,14 @@ class Request extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final java.lang.Object tag()` + /// from: `public fun tag(): kotlin.Any?` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? tag() { - return _tag(reference.pointer, _id_tag as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + final _$$selfRef = reference; + return _tag(_$$selfRef.pointer, _id_tag.pointer).object(); } - static final _id_tag$1 = _class.instanceMethodId( + static final _id_tag$1 = Request._class.instanceMethodId( r'tag', r'(Ljava/lang/Class;)Ljava/lang/Object;', ); @@ -997,19 +927,18 @@ class Request extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final T tag(java.lang.Class class)` + /// from: `public fun tag(type: java.lang.Class): T?` /// The returned object must be released after use, by calling the [release] method. $T? tag$1<$T extends jni$_.JObject?>( - jni$_.JObject class$, { - required jni$_.JObjType<$T> T, - }) { + jni$_.JClass class$, + ) { + final _$$selfRef = reference; final _$class$ = class$.reference; - return _tag$1(reference.pointer, _id_tag$1 as jni$_.JMethodIDPtr, - _$class$.pointer) - .object<$T?>(T.nullableType); + return _tag$1(_$$selfRef.pointer, _id_tag$1.pointer, _$class$.pointer) + .object<$T?>(); } - static final _id_newBuilder = _class.instanceMethodId( + static final _id_newBuilder = Request._class.instanceMethodId( r'newBuilder', r'()Lokhttp3/Request$Builder;', ); @@ -1026,14 +955,15 @@ class Request extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final okhttp3.Request$Builder newBuilder()` + /// from: `public fun newBuilder(): okhttp3.Request.Builder` /// The returned object must be released after use, by calling the [release] method. Request$Builder newBuilder() { - return _newBuilder(reference.pointer, _id_newBuilder as jni$_.JMethodIDPtr) - .object(const $Request$Builder$Type()); + final _$$selfRef = reference; + return _newBuilder(_$$selfRef.pointer, _id_newBuilder.pointer) + .object(); } - static final _id_cacheControl = _class.instanceMethodId( + static final _id_cacheControl = Request._class.instanceMethodId( r'cacheControl', r'()Lokhttp3/CacheControl;', ); @@ -1052,13 +982,13 @@ class Request extends jni$_.JObject { /// from: `public final okhttp3.CacheControl cacheControl()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject cacheControl() { - return _cacheControl( - reference.pointer, _id_cacheControl as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + CacheControl cacheControl() { + final _$$selfRef = reference; + return _cacheControl(_$$selfRef.pointer, _id_cacheControl.pointer) + .object(); } - static final _id_toString$1 = _class.instanceMethodId( + static final _id_toString$1 = Request._class.instanceMethodId( r'toString', r'()Ljava/lang/String;', ); @@ -1075,103 +1005,63 @@ class Request extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public java.lang.String toString()` + /// from: `public fun toString(): kotlin.String` /// The returned object must be released after use, by calling the [release] method. jni$_.JString toString$1() { - return _toString$1(reference.pointer, _id_toString$1 as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + final _$$selfRef = reference; + return _toString$1(_$$selfRef.pointer, _id_toString$1.pointer) + .object(); } } -final class $Request$NullableType extends jni$_.JObjType { +final class $Request$Type$ extends jni$_.JType { @jni$_.internal - const $Request$NullableType(); + const $Request$Type$(); @jni$_.internal @core$_.override String get signature => r'Lokhttp3/Request;'; - - @jni$_.internal - @core$_.override - Request? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Request.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Request$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Request$NullableType) && - other is $Request$NullableType; - } } -final class $Request$Type extends jni$_.JObjType { - @jni$_.internal - const $Request$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/Request;'; - - @jni$_.internal - @core$_.override - Request fromReference(jni$_.JReference reference) => Request.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => const $Request$NullableType(); +/// from: `okhttp3.RequestBody$Companion` +extension type RequestBody$Companion._(jni$_.JObject _$this) + implements jni$_.JObject { + static final _class = jni$_.JClass.forName(r'okhttp3/RequestBody$Companion'); - @jni$_.internal - @core$_.override - final superCount = 1; + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = + $RequestBody$Companion$Type$(); + static final _id_new$ = _class.constructorId( + r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', + ); - @core$_.override - int get hashCode => ($Request$Type).hashCode; + static final _new$ = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Request$Type) && other is $Request$Type; + /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` + /// The returned object must be released after use, by calling the [release] method. + factory RequestBody$Companion( + DefaultConstructorMarker? defaultConstructorMarker, + ) { + final _$$classRef = _class.reference; + final _$defaultConstructorMarker = + defaultConstructorMarker?.reference ?? jni$_.jNullReference; + return _new$(_$$classRef.pointer, _id_new$.pointer, + _$defaultConstructorMarker.pointer) + .object(); } } -/// from: `okhttp3.RequestBody$Companion` -class RequestBody$Companion extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - RequestBody$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = jni$_.JClass.forName(r'okhttp3/RequestBody$Companion'); - - /// The type which includes information such as the signature of this class. - static const nullableType = $RequestBody$Companion$NullableType(); - static const type = $RequestBody$Companion$Type(); - static final _id_create = _class.instanceMethodId( +extension RequestBody$Companion$$Methods on RequestBody$Companion { + static final _id_create = RequestBody$Companion._class.instanceMethodId( r'create', r'(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/RequestBody;', ); @@ -1193,20 +1083,21 @@ class RequestBody$Companion extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final okhttp3.RequestBody create(java.lang.String string, okhttp3.MediaType mediaType)` + /// from: `public fun toRequestBody(contentType: okhttp3.MediaType?): okhttp3.RequestBody` /// The returned object must be released after use, by calling the [release] method. RequestBody create( jni$_.JString string, - jni$_.JObject? mediaType, + MediaType? mediaType, ) { + final _$$selfRef = reference; final _$string = string.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create(reference.pointer, _id_create as jni$_.JMethodIDPtr, - _$string.pointer, _$mediaType.pointer) - .object(const $RequestBody$Type()); + return _create(_$$selfRef.pointer, _id_create.pointer, _$string.pointer, + _$mediaType.pointer) + .object(); } - static final _id_create$1 = _class.instanceMethodId( + static final _id_create$1 = RequestBody$Companion._class.instanceMethodId( r'create', r'(Lokio/ByteString;Lokhttp3/MediaType;)Lokhttp3/RequestBody;', ); @@ -1228,20 +1119,21 @@ class RequestBody$Companion extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final okhttp3.RequestBody create(okio.ByteString byteString, okhttp3.MediaType mediaType)` + /// from: `public fun toRequestBody(contentType: okhttp3.MediaType?): okhttp3.RequestBody` /// The returned object must be released after use, by calling the [release] method. RequestBody create$1( ByteString byteString, - jni$_.JObject? mediaType, + MediaType? mediaType, ) { + final _$$selfRef = reference; final _$byteString = byteString.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create$1(reference.pointer, _id_create$1 as jni$_.JMethodIDPtr, + return _create$1(_$$selfRef.pointer, _id_create$1.pointer, _$byteString.pointer, _$mediaType.pointer) - .object(const $RequestBody$Type()); + .object(); } - static final _id_create$2 = _class.instanceMethodId( + static final _id_create$2 = RequestBody$Companion._class.instanceMethodId( r'create', r'([BLokhttp3/MediaType;II)Lokhttp3/RequestBody;', ); @@ -1264,25 +1156,26 @@ class RequestBody$Companion extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int, - int)>(); + core$_.int, + core$_.int)>(); - /// from: `public final okhttp3.RequestBody create(byte[] bs, okhttp3.MediaType mediaType, int i, int i1)` + /// from: `public fun toRequestBody(contentType: okhttp3.MediaType?, offset: kotlin.Int, byteCount: kotlin.Int): okhttp3.RequestBody` /// The returned object must be released after use, by calling the [release] method. RequestBody create$2( jni$_.JByteArray bs, - jni$_.JObject? mediaType, - int i, - int i1, + MediaType? mediaType, + core$_.int i, + core$_.int i1, ) { + final _$$selfRef = reference; final _$bs = bs.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create$2(reference.pointer, _id_create$2 as jni$_.JMethodIDPtr, - _$bs.pointer, _$mediaType.pointer, i, i1) - .object(const $RequestBody$Type()); + return _create$2(_$$selfRef.pointer, _id_create$2.pointer, _$bs.pointer, + _$mediaType.pointer, i, i1) + .object(); } - static final _id_create$3 = _class.instanceMethodId( + static final _id_create$3 = RequestBody$Companion._class.instanceMethodId( r'create', r'(Ljava/io/File;Lokhttp3/MediaType;)Lokhttp3/RequestBody;', ); @@ -1304,20 +1197,21 @@ class RequestBody$Companion extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final okhttp3.RequestBody create(java.io.File file, okhttp3.MediaType mediaType)` + /// from: `public fun asRequestBody(contentType: okhttp3.MediaType?): okhttp3.RequestBody` /// The returned object must be released after use, by calling the [release] method. RequestBody create$3( - jni$_.JObject file, - jni$_.JObject? mediaType, + File file, + MediaType? mediaType, ) { + final _$$selfRef = reference; final _$file = file.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create$3(reference.pointer, _id_create$3 as jni$_.JMethodIDPtr, - _$file.pointer, _$mediaType.pointer) - .object(const $RequestBody$Type()); + return _create$3(_$$selfRef.pointer, _id_create$3.pointer, _$file.pointer, + _$mediaType.pointer) + .object(); } - static final _id_create$4 = _class.instanceMethodId( + static final _id_create$4 = RequestBody$Companion._class.instanceMethodId( r'create', r'(Lokhttp3/MediaType;Ljava/lang/String;)Lokhttp3/RequestBody;', ); @@ -1339,20 +1233,21 @@ class RequestBody$Companion extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, java.lang.String string)` + /// from: `public fun create(contentType: okhttp3.MediaType?, content: kotlin.String): okhttp3.RequestBody` /// The returned object must be released after use, by calling the [release] method. RequestBody create$4( - jni$_.JObject? mediaType, + MediaType? mediaType, jni$_.JString string, ) { + final _$$selfRef = reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$string = string.reference; - return _create$4(reference.pointer, _id_create$4 as jni$_.JMethodIDPtr, + return _create$4(_$$selfRef.pointer, _id_create$4.pointer, _$mediaType.pointer, _$string.pointer) - .object(const $RequestBody$Type()); + .object(); } - static final _id_create$5 = _class.instanceMethodId( + static final _id_create$5 = RequestBody$Companion._class.instanceMethodId( r'create', r'(Lokhttp3/MediaType;Lokio/ByteString;)Lokhttp3/RequestBody;', ); @@ -1374,20 +1269,21 @@ class RequestBody$Companion extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, okio.ByteString byteString)` + /// from: `public fun create(contentType: okhttp3.MediaType?, content: okio.ByteString): okhttp3.RequestBody` /// The returned object must be released after use, by calling the [release] method. RequestBody create$5( - jni$_.JObject? mediaType, + MediaType? mediaType, ByteString byteString, ) { + final _$$selfRef = reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$byteString = byteString.reference; - return _create$5(reference.pointer, _id_create$5 as jni$_.JMethodIDPtr, + return _create$5(_$$selfRef.pointer, _id_create$5.pointer, _$mediaType.pointer, _$byteString.pointer) - .object(const $RequestBody$Type()); + .object(); } - static final _id_create$6 = _class.instanceMethodId( + static final _id_create$6 = RequestBody$Companion._class.instanceMethodId( r'create', r'(Lokhttp3/MediaType;[BII)Lokhttp3/RequestBody;', ); @@ -1410,25 +1306,26 @@ class RequestBody$Companion extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int, - int)>(); + core$_.int, + core$_.int)>(); - /// from: `public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, byte[] bs, int i, int i1)` + /// from: `public fun create(contentType: okhttp3.MediaType?, content: kotlin.ByteArray, offset: kotlin.Int, byteCount: kotlin.Int): okhttp3.RequestBody` /// The returned object must be released after use, by calling the [release] method. RequestBody create$6( - jni$_.JObject? mediaType, + MediaType? mediaType, jni$_.JByteArray bs, - int i, - int i1, + core$_.int i, + core$_.int i1, ) { + final _$$selfRef = reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$bs = bs.reference; - return _create$6(reference.pointer, _id_create$6 as jni$_.JMethodIDPtr, + return _create$6(_$$selfRef.pointer, _id_create$6.pointer, _$mediaType.pointer, _$bs.pointer, i, i1) - .object(const $RequestBody$Type()); + .object(); } - static final _id_create$7 = _class.instanceMethodId( + static final _id_create$7 = RequestBody$Companion._class.instanceMethodId( r'create', r'(Lokhttp3/MediaType;Ljava/io/File;)Lokhttp3/RequestBody;', ); @@ -1450,20 +1347,21 @@ class RequestBody$Companion extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, java.io.File file)` + /// from: `public fun create(contentType: okhttp3.MediaType?, file: java.io.File): okhttp3.RequestBody` /// The returned object must be released after use, by calling the [release] method. RequestBody create$7( - jni$_.JObject? mediaType, - jni$_.JObject file, + MediaType? mediaType, + File file, ) { + final _$$selfRef = reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$file = file.reference; - return _create$7(reference.pointer, _id_create$7 as jni$_.JMethodIDPtr, + return _create$7(_$$selfRef.pointer, _id_create$7.pointer, _$mediaType.pointer, _$file.pointer) - .object(const $RequestBody$Type()); + .object(); } - static final _id_create$8 = _class.instanceMethodId( + static final _id_create$8 = RequestBody$Companion._class.instanceMethodId( r'create', r'([BLokhttp3/MediaType;I)Lokhttp3/RequestBody;', ); @@ -1485,23 +1383,24 @@ class RequestBody$Companion extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int)>(); + core$_.int)>(); /// from: `public final okhttp3.RequestBody create(byte[] bs, okhttp3.MediaType mediaType, int i)` /// The returned object must be released after use, by calling the [release] method. RequestBody create$8( jni$_.JByteArray bs, - jni$_.JObject? mediaType, - int i, + MediaType? mediaType, + core$_.int i, ) { + final _$$selfRef = reference; final _$bs = bs.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create$8(reference.pointer, _id_create$8 as jni$_.JMethodIDPtr, - _$bs.pointer, _$mediaType.pointer, i) - .object(const $RequestBody$Type()); + return _create$8(_$$selfRef.pointer, _id_create$8.pointer, _$bs.pointer, + _$mediaType.pointer, i) + .object(); } - static final _id_create$9 = _class.instanceMethodId( + static final _id_create$9 = RequestBody$Companion._class.instanceMethodId( r'create', r'([BLokhttp3/MediaType;)Lokhttp3/RequestBody;', ); @@ -1527,16 +1426,17 @@ class RequestBody$Companion extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. RequestBody create$9( jni$_.JByteArray bs, - jni$_.JObject? mediaType, + MediaType? mediaType, ) { + final _$$selfRef = reference; final _$bs = bs.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create$9(reference.pointer, _id_create$9 as jni$_.JMethodIDPtr, - _$bs.pointer, _$mediaType.pointer) - .object(const $RequestBody$Type()); + return _create$9(_$$selfRef.pointer, _id_create$9.pointer, _$bs.pointer, + _$mediaType.pointer) + .object(); } - static final _id_create$10 = _class.instanceMethodId( + static final _id_create$10 = RequestBody$Companion._class.instanceMethodId( r'create', r'([B)Lokhttp3/RequestBody;', ); @@ -1557,13 +1457,13 @@ class RequestBody$Companion extends jni$_.JObject { RequestBody create$10( jni$_.JByteArray bs, ) { + final _$$selfRef = reference; final _$bs = bs.reference; - return _create$10(reference.pointer, _id_create$10 as jni$_.JMethodIDPtr, - _$bs.pointer) - .object(const $RequestBody$Type()); + return _create$10(_$$selfRef.pointer, _id_create$10.pointer, _$bs.pointer) + .object(); } - static final _id_create$11 = _class.instanceMethodId( + static final _id_create$11 = RequestBody$Companion._class.instanceMethodId( r'create', r'(Lokhttp3/MediaType;[BI)Lokhttp3/RequestBody;', ); @@ -1585,23 +1485,24 @@ class RequestBody$Companion extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int)>(); + core$_.int)>(); /// from: `public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, byte[] bs, int i)` /// The returned object must be released after use, by calling the [release] method. RequestBody create$11( - jni$_.JObject? mediaType, + MediaType? mediaType, jni$_.JByteArray bs, - int i, + core$_.int i, ) { + final _$$selfRef = reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$bs = bs.reference; - return _create$11(reference.pointer, _id_create$11 as jni$_.JMethodIDPtr, + return _create$11(_$$selfRef.pointer, _id_create$11.pointer, _$mediaType.pointer, _$bs.pointer, i) - .object(const $RequestBody$Type()); + .object(); } - static final _id_create$12 = _class.instanceMethodId( + static final _id_create$12 = RequestBody$Companion._class.instanceMethodId( r'create', r'(Lokhttp3/MediaType;[B)Lokhttp3/RequestBody;', ); @@ -1626,138 +1527,34 @@ class RequestBody$Companion extends jni$_.JObject { /// from: `public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, byte[] bs)` /// The returned object must be released after use, by calling the [release] method. RequestBody create$12( - jni$_.JObject? mediaType, + MediaType? mediaType, jni$_.JByteArray bs, ) { + final _$$selfRef = reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$bs = bs.reference; - return _create$12(reference.pointer, _id_create$12 as jni$_.JMethodIDPtr, + return _create$12(_$$selfRef.pointer, _id_create$12.pointer, _$mediaType.pointer, _$bs.pointer) - .object(const $RequestBody$Type()); - } - - static final _id_new$ = _class.constructorId( - r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', - ); - - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` - /// The returned object must be released after use, by calling the [release] method. - factory RequestBody$Companion( - jni$_.JObject? defaultConstructorMarker, - ) { - final _$defaultConstructorMarker = - defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return RequestBody$Companion.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$defaultConstructorMarker.pointer) - .reference); - } -} - -final class $RequestBody$Companion$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $RequestBody$Companion$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/RequestBody$Companion;'; - - @jni$_.internal - @core$_.override - RequestBody$Companion? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : RequestBody$Companion.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($RequestBody$Companion$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($RequestBody$Companion$NullableType) && - other is $RequestBody$Companion$NullableType; + .object(); } } -final class $RequestBody$Companion$Type - extends jni$_.JObjType { +final class $RequestBody$Companion$Type$ + extends jni$_.JType { @jni$_.internal - const $RequestBody$Companion$Type(); + const $RequestBody$Companion$Type$(); @jni$_.internal @core$_.override String get signature => r'Lokhttp3/RequestBody$Companion;'; - - @jni$_.internal - @core$_.override - RequestBody$Companion fromReference(jni$_.JReference reference) => - RequestBody$Companion.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $RequestBody$Companion$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($RequestBody$Companion$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($RequestBody$Companion$Type) && - other is $RequestBody$Companion$Type; - } } /// from: `okhttp3.RequestBody` -class RequestBody extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - RequestBody.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type RequestBody._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'okhttp3/RequestBody'); /// The type which includes information such as the signature of this class. - static const nullableType = $RequestBody$NullableType(); - static const type = $RequestBody$Type(); + static const jni$_.JType type = $RequestBody$Type$(); static final _id_Companion = _class.staticFieldId( r'Companion', r'Lokhttp3/RequestBody$Companion;', @@ -1766,179 +1563,60 @@ class RequestBody extends jni$_.JObject { /// from: `static public final okhttp3.RequestBody$Companion Companion` /// The returned object must be released after use, by calling the [release] method. static RequestBody$Companion get Companion => - _id_Companion.get(_class, const $RequestBody$Companion$Type()); + _id_Companion.get(_class, RequestBody$Companion.type) + as RequestBody$Companion; - static final _id_contentType = _class.instanceMethodId( - r'contentType', - r'()Lokhttp3/MediaType;', + static final _id_create = _class.staticMethodId( + r'create', + r'(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/RequestBody;', ); - static final _contentType = jni$_.ProtectedJniExtensions.lookup< + static final _create = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - /// from: `public abstract okhttp3.MediaType contentType()` + /// from: `static public final okhttp3.RequestBody create(java.lang.String string, okhttp3.MediaType mediaType)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? contentType() { - return _contentType( - reference.pointer, _id_contentType as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + static RequestBody create( + jni$_.JString string, + MediaType? mediaType, + ) { + final _$$classRef = _class.reference; + final _$string = string.reference; + final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; + return _create(_$$classRef.pointer, _id_create.pointer, _$string.pointer, + _$mediaType.pointer) + .object(); } - static final _id_contentLength = _class.instanceMethodId( - r'contentLength', - r'()J', + static final _id_create$1 = _class.staticMethodId( + r'create', + r'(Lokio/ByteString;Lokhttp3/MediaType;)Lokhttp3/RequestBody;', ); - static final _contentLength = jni$_.ProtectedJniExtensions.lookup< + static final _create$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public long contentLength()` - int contentLength() { - return _contentLength( - reference.pointer, _id_contentLength as jni$_.JMethodIDPtr) - .long; - } - - static final _id_writeTo = _class.instanceMethodId( - r'writeTo', - r'(Lokio/BufferedSink;)V', - ); - - static final _writeTo = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public abstract void writeTo(okio.BufferedSink bufferedSink)` - void writeTo( - jni$_.JObject bufferedSink, - ) { - final _$bufferedSink = bufferedSink.reference; - _writeTo(reference.pointer, _id_writeTo as jni$_.JMethodIDPtr, - _$bufferedSink.pointer) - .check(); - } - - static final _id_isDuplex = _class.instanceMethodId( - r'isDuplex', - r'()Z', - ); - - static final _isDuplex = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public boolean isDuplex()` - bool isDuplex() { - return _isDuplex(reference.pointer, _id_isDuplex as jni$_.JMethodIDPtr) - .boolean; - } - - static final _id_isOneShot = _class.instanceMethodId( - r'isOneShot', - r'()Z', - ); - - static final _isOneShot = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public boolean isOneShot()` - bool isOneShot() { - return _isOneShot(reference.pointer, _id_isOneShot as jni$_.JMethodIDPtr) - .boolean; - } - - static final _id_create = _class.staticMethodId( - r'create', - r'(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/RequestBody;', - ); - - static final _create = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); - - /// from: `static public final okhttp3.RequestBody create(java.lang.String string, okhttp3.MediaType mediaType)` - /// The returned object must be released after use, by calling the [release] method. - static RequestBody create( - jni$_.JString string, - jni$_.JObject? mediaType, - ) { - final _$string = string.reference; - final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create(_class.reference.pointer, _id_create as jni$_.JMethodIDPtr, - _$string.pointer, _$mediaType.pointer) - .object(const $RequestBody$Type()); - } - - static final _id_create$1 = _class.staticMethodId( - r'create', - r'(Lokio/ByteString;Lokhttp3/MediaType;)Lokhttp3/RequestBody;', - ); - - static final _create$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -1950,16 +1628,14 @@ class RequestBody extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static RequestBody create$1( ByteString byteString, - jni$_.JObject? mediaType, + MediaType? mediaType, ) { + final _$$classRef = _class.reference; final _$byteString = byteString.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create$1( - _class.reference.pointer, - _id_create$1 as jni$_.JMethodIDPtr, - _$byteString.pointer, - _$mediaType.pointer) - .object(const $RequestBody$Type()); + return _create$1(_$$classRef.pointer, _id_create$1.pointer, + _$byteString.pointer, _$mediaType.pointer) + .object(); } static final _id_create$2 = _class.staticMethodId( @@ -1985,27 +1661,23 @@ class RequestBody extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int, - int)>(); + core$_.int, + core$_.int)>(); /// from: `static public final okhttp3.RequestBody create(byte[] bs, okhttp3.MediaType mediaType, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. static RequestBody create$2( jni$_.JByteArray bs, - jni$_.JObject? mediaType, - int i, - int i1, + MediaType? mediaType, + core$_.int i, + core$_.int i1, ) { + final _$$classRef = _class.reference; final _$bs = bs.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create$2( - _class.reference.pointer, - _id_create$2 as jni$_.JMethodIDPtr, - _$bs.pointer, - _$mediaType.pointer, - i, - i1) - .object(const $RequestBody$Type()); + return _create$2(_$$classRef.pointer, _id_create$2.pointer, _$bs.pointer, + _$mediaType.pointer, i, i1) + .object(); } static final _id_create$3 = _class.staticMethodId( @@ -2033,17 +1705,15 @@ class RequestBody extends jni$_.JObject { /// from: `static public final okhttp3.RequestBody create(java.io.File file, okhttp3.MediaType mediaType)` /// The returned object must be released after use, by calling the [release] method. static RequestBody create$3( - jni$_.JObject file, - jni$_.JObject? mediaType, + File file, + MediaType? mediaType, ) { + final _$$classRef = _class.reference; final _$file = file.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create$3( - _class.reference.pointer, - _id_create$3 as jni$_.JMethodIDPtr, - _$file.pointer, + return _create$3(_$$classRef.pointer, _id_create$3.pointer, _$file.pointer, _$mediaType.pointer) - .object(const $RequestBody$Type()); + .object(); } static final _id_create$4 = _class.staticMethodId( @@ -2071,17 +1741,15 @@ class RequestBody extends jni$_.JObject { /// from: `static public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. static RequestBody create$4( - jni$_.JObject? mediaType, + MediaType? mediaType, jni$_.JString string, ) { + final _$$classRef = _class.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$string = string.reference; - return _create$4( - _class.reference.pointer, - _id_create$4 as jni$_.JMethodIDPtr, - _$mediaType.pointer, - _$string.pointer) - .object(const $RequestBody$Type()); + return _create$4(_$$classRef.pointer, _id_create$4.pointer, + _$mediaType.pointer, _$string.pointer) + .object(); } static final _id_create$5 = _class.staticMethodId( @@ -2109,17 +1777,15 @@ class RequestBody extends jni$_.JObject { /// from: `static public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, okio.ByteString byteString)` /// The returned object must be released after use, by calling the [release] method. static RequestBody create$5( - jni$_.JObject? mediaType, + MediaType? mediaType, ByteString byteString, ) { + final _$$classRef = _class.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$byteString = byteString.reference; - return _create$5( - _class.reference.pointer, - _id_create$5 as jni$_.JMethodIDPtr, - _$mediaType.pointer, - _$byteString.pointer) - .object(const $RequestBody$Type()); + return _create$5(_$$classRef.pointer, _id_create$5.pointer, + _$mediaType.pointer, _$byteString.pointer) + .object(); } static final _id_create$6 = _class.staticMethodId( @@ -2145,27 +1811,23 @@ class RequestBody extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int, - int)>(); + core$_.int, + core$_.int)>(); /// from: `static public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, byte[] bs, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. static RequestBody create$6( - jni$_.JObject? mediaType, + MediaType? mediaType, jni$_.JByteArray bs, - int i, - int i1, + core$_.int i, + core$_.int i1, ) { + final _$$classRef = _class.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$bs = bs.reference; - return _create$6( - _class.reference.pointer, - _id_create$6 as jni$_.JMethodIDPtr, - _$mediaType.pointer, - _$bs.pointer, - i, - i1) - .object(const $RequestBody$Type()); + return _create$6(_$$classRef.pointer, _id_create$6.pointer, + _$mediaType.pointer, _$bs.pointer, i, i1) + .object(); } static final _id_create$7 = _class.staticMethodId( @@ -2193,17 +1855,15 @@ class RequestBody extends jni$_.JObject { /// from: `static public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, java.io.File file)` /// The returned object must be released after use, by calling the [release] method. static RequestBody create$7( - jni$_.JObject? mediaType, - jni$_.JObject file, + MediaType? mediaType, + File file, ) { + final _$$classRef = _class.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$file = file.reference; - return _create$7( - _class.reference.pointer, - _id_create$7 as jni$_.JMethodIDPtr, - _$mediaType.pointer, - _$file.pointer) - .object(const $RequestBody$Type()); + return _create$7(_$$classRef.pointer, _id_create$7.pointer, + _$mediaType.pointer, _$file.pointer) + .object(); } static final _id_create$8 = _class.staticMethodId( @@ -2228,24 +1888,21 @@ class RequestBody extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int)>(); + core$_.int)>(); /// from: `static public final okhttp3.RequestBody create(byte[] bs, okhttp3.MediaType mediaType, int i)` /// The returned object must be released after use, by calling the [release] method. static RequestBody create$8( jni$_.JByteArray bs, - jni$_.JObject? mediaType, - int i, + MediaType? mediaType, + core$_.int i, ) { + final _$$classRef = _class.reference; final _$bs = bs.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create$8( - _class.reference.pointer, - _id_create$8 as jni$_.JMethodIDPtr, - _$bs.pointer, - _$mediaType.pointer, - i) - .object(const $RequestBody$Type()); + return _create$8(_$$classRef.pointer, _id_create$8.pointer, _$bs.pointer, + _$mediaType.pointer, i) + .object(); } static final _id_create$9 = _class.staticMethodId( @@ -2274,16 +1931,14 @@ class RequestBody extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static RequestBody create$9( jni$_.JByteArray bs, - jni$_.JObject? mediaType, + MediaType? mediaType, ) { + final _$$classRef = _class.reference; final _$bs = bs.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create$9( - _class.reference.pointer, - _id_create$9 as jni$_.JMethodIDPtr, - _$bs.pointer, + return _create$9(_$$classRef.pointer, _id_create$9.pointer, _$bs.pointer, _$mediaType.pointer) - .object(const $RequestBody$Type()); + .object(); } static final _id_create$10 = _class.staticMethodId( @@ -2307,10 +1962,10 @@ class RequestBody extends jni$_.JObject { static RequestBody create$10( jni$_.JByteArray bs, ) { + final _$$classRef = _class.reference; final _$bs = bs.reference; - return _create$10(_class.reference.pointer, - _id_create$10 as jni$_.JMethodIDPtr, _$bs.pointer) - .object(const $RequestBody$Type()); + return _create$10(_$$classRef.pointer, _id_create$10.pointer, _$bs.pointer) + .object(); } static final _id_create$11 = _class.staticMethodId( @@ -2335,24 +1990,21 @@ class RequestBody extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int)>(); + core$_.int)>(); /// from: `static public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, byte[] bs, int i)` /// The returned object must be released after use, by calling the [release] method. static RequestBody create$11( - jni$_.JObject? mediaType, + MediaType? mediaType, jni$_.JByteArray bs, - int i, + core$_.int i, ) { + final _$$classRef = _class.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$bs = bs.reference; - return _create$11( - _class.reference.pointer, - _id_create$11 as jni$_.JMethodIDPtr, - _$mediaType.pointer, - _$bs.pointer, - i) - .object(const $RequestBody$Type()); + return _create$11(_$$classRef.pointer, _id_create$11.pointer, + _$mediaType.pointer, _$bs.pointer, i) + .object(); } static final _id_create$12 = _class.staticMethodId( @@ -2380,111 +2032,157 @@ class RequestBody extends jni$_.JObject { /// from: `static public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, byte[] bs)` /// The returned object must be released after use, by calling the [release] method. static RequestBody create$12( - jni$_.JObject? mediaType, + MediaType? mediaType, jni$_.JByteArray bs, ) { + final _$$classRef = _class.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$bs = bs.reference; - return _create$12( - _class.reference.pointer, - _id_create$12 as jni$_.JMethodIDPtr, - _$mediaType.pointer, - _$bs.pointer) - .object(const $RequestBody$Type()); + return _create$12(_$$classRef.pointer, _id_create$12.pointer, + _$mediaType.pointer, _$bs.pointer) + .object(); } } -final class $RequestBody$NullableType extends jni$_.JObjType { - @jni$_.internal - const $RequestBody$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/RequestBody;'; +extension RequestBody$$Methods on RequestBody { + static final _id_contentType = RequestBody._class.instanceMethodId( + r'contentType', + r'()Lokhttp3/MediaType;', + ); - @jni$_.internal - @core$_.override - RequestBody? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : RequestBody.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); + static final _contentType = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; + /// from: `public fun contentType(): okhttp3.MediaType?` + /// The returned object must be released after use, by calling the [release] method. + MediaType? contentType() { + final _$$selfRef = reference; + return _contentType(_$$selfRef.pointer, _id_contentType.pointer) + .object(); + } - @jni$_.internal - @core$_.override - final superCount = 1; + static final _id_contentLength = RequestBody._class.instanceMethodId( + r'contentLength', + r'()J', + ); - @core$_.override - int get hashCode => ($RequestBody$NullableType).hashCode; + static final _contentLength = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($RequestBody$NullableType) && - other is $RequestBody$NullableType; + /// from: `public fun contentLength(): kotlin.Long` + core$_.int contentLength() { + final _$$selfRef = reference; + return _contentLength(_$$selfRef.pointer, _id_contentLength.pointer).long; } -} -final class $RequestBody$Type extends jni$_.JObjType { - @jni$_.internal - const $RequestBody$Type(); + static final _id_writeTo = RequestBody._class.instanceMethodId( + r'writeTo', + r'(Lokio/BufferedSink;)V', + ); - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/RequestBody;'; + static final _writeTo = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - @jni$_.internal - @core$_.override - RequestBody fromReference(jni$_.JReference reference) => - RequestBody.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); + /// from: `public fun writeTo(sink: okio.BufferedSink): kotlin.Unit` + void writeTo( + BufferedSink bufferedSink, + ) { + final _$$selfRef = reference; + final _$bufferedSink = bufferedSink.reference; + _writeTo(_$$selfRef.pointer, _id_writeTo.pointer, _$bufferedSink.pointer) + .check(); + } - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $RequestBody$NullableType(); + static final _id_get$isDuplex = RequestBody._class.instanceMethodId( + r'isDuplex', + r'()Z', + ); - @jni$_.internal - @core$_.override - final superCount = 1; + static final _get$isDuplex = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - @core$_.override - int get hashCode => ($RequestBody$Type).hashCode; + /// from: `public fun isDuplex(): kotlin.Boolean` + core$_.bool get isDuplex { + final _$$selfRef = reference; + return _get$isDuplex(_$$selfRef.pointer, _id_get$isDuplex.pointer).boolean; + } - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($RequestBody$Type) && - other is $RequestBody$Type; + static final _id_get$isOneShot = RequestBody._class.instanceMethodId( + r'isOneShot', + r'()Z', + ); + + static final _get$isOneShot = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public fun isOneShot(): kotlin.Boolean` + core$_.bool get isOneShot { + final _$$selfRef = reference; + return _get$isOneShot(_$$selfRef.pointer, _id_get$isOneShot.pointer) + .boolean; } } -/// from: `okhttp3.Response$Builder` -class Response$Builder extends jni$_.JObject { +final class $RequestBody$Type$ extends jni$_.JType { @jni$_.internal - @core$_.override - final jni$_.JObjType $type; + const $RequestBody$Type$(); @jni$_.internal - Response$Builder.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + @core$_.override + String get signature => r'Lokhttp3/RequestBody;'; +} +/// from: `okhttp3.Response$Builder` +extension type Response$Builder._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'okhttp3/Response$Builder'); /// The type which includes information such as the signature of this class. - static const nullableType = $Response$Builder$NullableType(); - static const type = $Response$Builder$Type(); + static const jni$_.JType type = $Response$Builder$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -2504,9 +2202,9 @@ class Response$Builder extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory Response$Builder() { - return Response$Builder.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + final _$$classRef = _class.reference; + return _new$(_$$classRef.pointer, _id_new$.pointer) + .object(); } static final _id_new$1 = _class.constructorId( @@ -2529,13 +2227,15 @@ class Response$Builder extends jni$_.JObject { factory Response$Builder.new$1( Response response, ) { + final _$$classRef = _class.reference; final _$response = response.reference; - return Response$Builder.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, _$response.pointer) - .reference); + return _new$1(_$$classRef.pointer, _id_new$1.pointer, _$response.pointer) + .object(); } +} - static final _id_request = _class.instanceMethodId( +extension Response$Builder$$Methods on Response$Builder { + static final _id_request = Response$Builder._class.instanceMethodId( r'request', r'(Lokhttp3/Request;)Lokhttp3/Response$Builder;', ); @@ -2551,18 +2251,18 @@ class Response$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public okhttp3.Response$Builder request(okhttp3.Request request)` + /// from: `public fun request(request: okhttp3.Request): okhttp3.Response.Builder` /// The returned object must be released after use, by calling the [release] method. Response$Builder request( Request request, ) { + final _$$selfRef = reference; final _$request = request.reference; - return _request(reference.pointer, _id_request as jni$_.JMethodIDPtr, - _$request.pointer) - .object(const $Response$Builder$Type()); + return _request(_$$selfRef.pointer, _id_request.pointer, _$request.pointer) + .object(); } - static final _id_protocol = _class.instanceMethodId( + static final _id_protocol = Response$Builder._class.instanceMethodId( r'protocol', r'(Lokhttp3/Protocol;)Lokhttp3/Response$Builder;', ); @@ -2578,18 +2278,19 @@ class Response$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public okhttp3.Response$Builder protocol(okhttp3.Protocol protocol)` + /// from: `public fun protocol(protocol: okhttp3.Protocol): okhttp3.Response.Builder` /// The returned object must be released after use, by calling the [release] method. Response$Builder protocol( - jni$_.JObject protocol, + Protocol protocol, ) { + final _$$selfRef = reference; final _$protocol = protocol.reference; - return _protocol(reference.pointer, _id_protocol as jni$_.JMethodIDPtr, - _$protocol.pointer) - .object(const $Response$Builder$Type()); + return _protocol( + _$$selfRef.pointer, _id_protocol.pointer, _$protocol.pointer) + .object(); } - static final _id_code = _class.instanceMethodId( + static final _id_code = Response$Builder._class.instanceMethodId( r'code', r'(I)Lokhttp3/Response$Builder;', ); @@ -2602,18 +2303,19 @@ class Response$Builder extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); - /// from: `public okhttp3.Response$Builder code(int i)` + /// from: `public fun code(code: kotlin.Int): okhttp3.Response.Builder` /// The returned object must be released after use, by calling the [release] method. Response$Builder code( - int i, + core$_.int i, ) { - return _code(reference.pointer, _id_code as jni$_.JMethodIDPtr, i) - .object(const $Response$Builder$Type()); + final _$$selfRef = reference; + return _code(_$$selfRef.pointer, _id_code.pointer, i) + .object(); } - static final _id_message = _class.instanceMethodId( + static final _id_message = Response$Builder._class.instanceMethodId( r'message', r'(Ljava/lang/String;)Lokhttp3/Response$Builder;', ); @@ -2629,18 +2331,18 @@ class Response$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public okhttp3.Response$Builder message(java.lang.String string)` + /// from: `public fun message(message: kotlin.String): okhttp3.Response.Builder` /// The returned object must be released after use, by calling the [release] method. Response$Builder message( jni$_.JString string, ) { + final _$$selfRef = reference; final _$string = string.reference; - return _message(reference.pointer, _id_message as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const $Response$Builder$Type()); + return _message(_$$selfRef.pointer, _id_message.pointer, _$string.pointer) + .object(); } - static final _id_handshake = _class.instanceMethodId( + static final _id_handshake = Response$Builder._class.instanceMethodId( r'handshake', r'(Lokhttp3/Handshake;)Lokhttp3/Response$Builder;', ); @@ -2656,18 +2358,19 @@ class Response$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public okhttp3.Response$Builder handshake(okhttp3.Handshake handshake)` + /// from: `public fun handshake(handshake: okhttp3.Handshake?): okhttp3.Response.Builder` /// The returned object must be released after use, by calling the [release] method. Response$Builder handshake( - jni$_.JObject? handshake, + Handshake? handshake, ) { + final _$$selfRef = reference; final _$handshake = handshake?.reference ?? jni$_.jNullReference; - return _handshake(reference.pointer, _id_handshake as jni$_.JMethodIDPtr, - _$handshake.pointer) - .object(const $Response$Builder$Type()); + return _handshake( + _$$selfRef.pointer, _id_handshake.pointer, _$handshake.pointer) + .object(); } - static final _id_header = _class.instanceMethodId( + static final _id_header = Response$Builder._class.instanceMethodId( r'header', r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Response$Builder;', ); @@ -2689,20 +2392,21 @@ class Response$Builder extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public okhttp3.Response$Builder header(java.lang.String string, java.lang.String string1)` + /// from: `public fun header(name: kotlin.String, value: kotlin.String): okhttp3.Response.Builder` /// The returned object must be released after use, by calling the [release] method. Response$Builder header( jni$_.JString string, jni$_.JString string1, ) { + final _$$selfRef = reference; final _$string = string.reference; final _$string1 = string1.reference; - return _header(reference.pointer, _id_header as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) - .object(const $Response$Builder$Type()); + return _header(_$$selfRef.pointer, _id_header.pointer, _$string.pointer, + _$string1.pointer) + .object(); } - static final _id_addHeader = _class.instanceMethodId( + static final _id_addHeader = Response$Builder._class.instanceMethodId( r'addHeader', r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Response$Builder;', ); @@ -2724,20 +2428,21 @@ class Response$Builder extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public okhttp3.Response$Builder addHeader(java.lang.String string, java.lang.String string1)` + /// from: `public fun addHeader(name: kotlin.String, value: kotlin.String): okhttp3.Response.Builder` /// The returned object must be released after use, by calling the [release] method. Response$Builder addHeader( jni$_.JString string, jni$_.JString string1, ) { + final _$$selfRef = reference; final _$string = string.reference; final _$string1 = string1.reference; - return _addHeader(reference.pointer, _id_addHeader as jni$_.JMethodIDPtr, + return _addHeader(_$$selfRef.pointer, _id_addHeader.pointer, _$string.pointer, _$string1.pointer) - .object(const $Response$Builder$Type()); + .object(); } - static final _id_removeHeader = _class.instanceMethodId( + static final _id_removeHeader = Response$Builder._class.instanceMethodId( r'removeHeader', r'(Ljava/lang/String;)Lokhttp3/Response$Builder;', ); @@ -2753,18 +2458,19 @@ class Response$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public okhttp3.Response$Builder removeHeader(java.lang.String string)` + /// from: `public fun removeHeader(name: kotlin.String): okhttp3.Response.Builder` /// The returned object must be released after use, by calling the [release] method. Response$Builder removeHeader( jni$_.JString string, ) { + final _$$selfRef = reference; final _$string = string.reference; - return _removeHeader(reference.pointer, - _id_removeHeader as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $Response$Builder$Type()); + return _removeHeader( + _$$selfRef.pointer, _id_removeHeader.pointer, _$string.pointer) + .object(); } - static final _id_headers = _class.instanceMethodId( + static final _id_headers = Response$Builder._class.instanceMethodId( r'headers', r'(Lokhttp3/Headers;)Lokhttp3/Response$Builder;', ); @@ -2780,18 +2486,18 @@ class Response$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public okhttp3.Response$Builder headers(okhttp3.Headers headers)` + /// from: `public fun headers(headers: okhttp3.Headers): okhttp3.Response.Builder` /// The returned object must be released after use, by calling the [release] method. Response$Builder headers( Headers headers, ) { + final _$$selfRef = reference; final _$headers = headers.reference; - return _headers(reference.pointer, _id_headers as jni$_.JMethodIDPtr, - _$headers.pointer) - .object(const $Response$Builder$Type()); + return _headers(_$$selfRef.pointer, _id_headers.pointer, _$headers.pointer) + .object(); } - static final _id_body = _class.instanceMethodId( + static final _id_body = Response$Builder._class.instanceMethodId( r'body', r'(Lokhttp3/ResponseBody;)Lokhttp3/Response$Builder;', ); @@ -2807,18 +2513,18 @@ class Response$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public okhttp3.Response$Builder body(okhttp3.ResponseBody responseBody)` + /// from: `public fun body(body: okhttp3.ResponseBody?): okhttp3.Response.Builder` /// The returned object must be released after use, by calling the [release] method. Response$Builder body( ResponseBody? responseBody, ) { + final _$$selfRef = reference; final _$responseBody = responseBody?.reference ?? jni$_.jNullReference; - return _body(reference.pointer, _id_body as jni$_.JMethodIDPtr, - _$responseBody.pointer) - .object(const $Response$Builder$Type()); + return _body(_$$selfRef.pointer, _id_body.pointer, _$responseBody.pointer) + .object(); } - static final _id_networkResponse = _class.instanceMethodId( + static final _id_networkResponse = Response$Builder._class.instanceMethodId( r'networkResponse', r'(Lokhttp3/Response;)Lokhttp3/Response$Builder;', ); @@ -2834,18 +2540,19 @@ class Response$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public okhttp3.Response$Builder networkResponse(okhttp3.Response response)` + /// from: `public fun networkResponse(networkResponse: okhttp3.Response?): okhttp3.Response.Builder` /// The returned object must be released after use, by calling the [release] method. Response$Builder networkResponse( Response? response, ) { + final _$$selfRef = reference; final _$response = response?.reference ?? jni$_.jNullReference; - return _networkResponse(reference.pointer, - _id_networkResponse as jni$_.JMethodIDPtr, _$response.pointer) - .object(const $Response$Builder$Type()); + return _networkResponse( + _$$selfRef.pointer, _id_networkResponse.pointer, _$response.pointer) + .object(); } - static final _id_cacheResponse = _class.instanceMethodId( + static final _id_cacheResponse = Response$Builder._class.instanceMethodId( r'cacheResponse', r'(Lokhttp3/Response;)Lokhttp3/Response$Builder;', ); @@ -2861,18 +2568,19 @@ class Response$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public okhttp3.Response$Builder cacheResponse(okhttp3.Response response)` + /// from: `public fun cacheResponse(cacheResponse: okhttp3.Response?): okhttp3.Response.Builder` /// The returned object must be released after use, by calling the [release] method. Response$Builder cacheResponse( Response? response, ) { + final _$$selfRef = reference; final _$response = response?.reference ?? jni$_.jNullReference; - return _cacheResponse(reference.pointer, - _id_cacheResponse as jni$_.JMethodIDPtr, _$response.pointer) - .object(const $Response$Builder$Type()); + return _cacheResponse( + _$$selfRef.pointer, _id_cacheResponse.pointer, _$response.pointer) + .object(); } - static final _id_priorResponse = _class.instanceMethodId( + static final _id_priorResponse = Response$Builder._class.instanceMethodId( r'priorResponse', r'(Lokhttp3/Response;)Lokhttp3/Response$Builder;', ); @@ -2888,18 +2596,20 @@ class Response$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public okhttp3.Response$Builder priorResponse(okhttp3.Response response)` + /// from: `public fun priorResponse(priorResponse: okhttp3.Response?): okhttp3.Response.Builder` /// The returned object must be released after use, by calling the [release] method. Response$Builder priorResponse( Response? response, ) { + final _$$selfRef = reference; final _$response = response?.reference ?? jni$_.jNullReference; - return _priorResponse(reference.pointer, - _id_priorResponse as jni$_.JMethodIDPtr, _$response.pointer) - .object(const $Response$Builder$Type()); + return _priorResponse( + _$$selfRef.pointer, _id_priorResponse.pointer, _$response.pointer) + .object(); } - static final _id_sentRequestAtMillis = _class.instanceMethodId( + static final _id_sentRequestAtMillis = + Response$Builder._class.instanceMethodId( r'sentRequestAtMillis', r'(J)Lokhttp3/Response$Builder;', ); @@ -2912,19 +2622,21 @@ class Response$Builder extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); - /// from: `public okhttp3.Response$Builder sentRequestAtMillis(long j)` + /// from: `public fun sentRequestAtMillis(sentRequestAtMillis: kotlin.Long): okhttp3.Response.Builder` /// The returned object must be released after use, by calling the [release] method. Response$Builder sentRequestAtMillis( - int j, + core$_.int j, ) { + final _$$selfRef = reference; return _sentRequestAtMillis( - reference.pointer, _id_sentRequestAtMillis as jni$_.JMethodIDPtr, j) - .object(const $Response$Builder$Type()); + _$$selfRef.pointer, _id_sentRequestAtMillis.pointer, j) + .object(); } - static final _id_receivedResponseAtMillis = _class.instanceMethodId( + static final _id_receivedResponseAtMillis = + Response$Builder._class.instanceMethodId( r'receivedResponseAtMillis', r'(J)Lokhttp3/Response$Builder;', ); @@ -2937,19 +2649,20 @@ class Response$Builder extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); - /// from: `public okhttp3.Response$Builder receivedResponseAtMillis(long j)` + /// from: `public fun receivedResponseAtMillis(receivedResponseAtMillis: kotlin.Long): okhttp3.Response.Builder` /// The returned object must be released after use, by calling the [release] method. Response$Builder receivedResponseAtMillis( - int j, + core$_.int j, ) { - return _receivedResponseAtMillis(reference.pointer, - _id_receivedResponseAtMillis as jni$_.JMethodIDPtr, j) - .object(const $Response$Builder$Type()); + final _$$selfRef = reference; + return _receivedResponseAtMillis( + _$$selfRef.pointer, _id_receivedResponseAtMillis.pointer, j) + .object(); } - static final _id_build = _class.instanceMethodId( + static final _id_build = Response$Builder._class.instanceMethodId( r'build', r'()Lokhttp3/Response;', ); @@ -2966,107 +2679,30 @@ class Response$Builder extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public okhttp3.Response build()` + /// from: `public fun build(): okhttp3.Response` /// The returned object must be released after use, by calling the [release] method. Response build() { - return _build(reference.pointer, _id_build as jni$_.JMethodIDPtr) - .object(const $Response$Type()); + final _$$selfRef = reference; + return _build(_$$selfRef.pointer, _id_build.pointer).object(); } } -final class $Response$Builder$NullableType - extends jni$_.JObjType { +final class $Response$Builder$Type$ extends jni$_.JType { @jni$_.internal - const $Response$Builder$NullableType(); + const $Response$Builder$Type$(); @jni$_.internal @core$_.override String get signature => r'Lokhttp3/Response$Builder;'; - - @jni$_.internal - @core$_.override - Response$Builder? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : Response$Builder.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Response$Builder$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Response$Builder$NullableType) && - other is $Response$Builder$NullableType; - } -} - -final class $Response$Builder$Type extends jni$_.JObjType { - @jni$_.internal - const $Response$Builder$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/Response$Builder;'; - - @jni$_.internal - @core$_.override - Response$Builder fromReference(jni$_.JReference reference) => - Response$Builder.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $Response$Builder$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Response$Builder$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Response$Builder$Type) && - other is $Response$Builder$Type; - } -} +} /// from: `okhttp3.Response` -class Response extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Response.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type Response._(jni$_.JObject _$this) + implements jni$_.JObject, Closeable { static final _class = jni$_.JClass.forName(r'okhttp3/Response'); /// The type which includes information such as the signature of this class. - static const nullableType = $Response$NullableType(); - static const type = $Response$Type(); + static const jni$_.JType type = $Response$Type$(); static final _id_new$ = _class.constructorId( r'(Lokhttp3/Request;Lokhttp3/Protocol;Ljava/lang/String;ILokhttp3/Handshake;Lokhttp3/Headers;Lokhttp3/ResponseBody;Lokhttp3/Response;Lokhttp3/Response;Lokhttp3/Response;JJLokhttp3/internal/connection/Exchange;)V', ); @@ -3099,34 +2735,35 @@ class Response extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - int, - int, + core$_.int, + core$_.int, jni$_.Pointer)>(); /// from: `public void (okhttp3.Request request, okhttp3.Protocol protocol, java.lang.String string, int i, okhttp3.Handshake handshake, okhttp3.Headers headers, okhttp3.ResponseBody responseBody, okhttp3.Response response, okhttp3.Response response1, okhttp3.Response response2, long j, long j1, okhttp3.internal.connection.Exchange exchange)` /// The returned object must be released after use, by calling the [release] method. factory Response( Request request, - jni$_.JObject protocol, + Protocol protocol, jni$_.JString string, - int i, - jni$_.JObject? handshake, + core$_.int i, + Handshake? handshake, Headers headers, ResponseBody? responseBody, Response? response, Response? response1, Response? response2, - int j, - int j1, - jni$_.JObject? exchange, + core$_.int j, + core$_.int j1, + Exchange? exchange, ) { + final _$$classRef = _class.reference; final _$request = request.reference; final _$protocol = protocol.reference; final _$string = string.reference; @@ -3137,9 +2774,9 @@ class Response extends jni$_.JObject { final _$response1 = response1?.reference ?? jni$_.jNullReference; final _$response2 = response2?.reference ?? jni$_.jNullReference; final _$exchange = exchange?.reference ?? jni$_.jNullReference; - return Response.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, + return _new$( + _$$classRef.pointer, + _id_new$.pointer, _$request.pointer, _$protocol.pointer, _$string.pointer, @@ -3153,10 +2790,12 @@ class Response extends jni$_.JObject { j, j1, _$exchange.pointer) - .reference); + .object(); } +} - static final _id_request = _class.instanceMethodId( +extension Response$$Methods on Response { + static final _id_request = Response._class.instanceMethodId( r'request', r'()Lokhttp3/Request;', ); @@ -3176,11 +2815,11 @@ class Response extends jni$_.JObject { /// from: `public final okhttp3.Request request()` /// The returned object must be released after use, by calling the [release] method. Request request() { - return _request(reference.pointer, _id_request as jni$_.JMethodIDPtr) - .object(const $Request$Type()); + final _$$selfRef = reference; + return _request(_$$selfRef.pointer, _id_request.pointer).object(); } - static final _id_protocol = _class.instanceMethodId( + static final _id_protocol = Response._class.instanceMethodId( r'protocol', r'()Lokhttp3/Protocol;', ); @@ -3199,12 +2838,13 @@ class Response extends jni$_.JObject { /// from: `public final okhttp3.Protocol protocol()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject protocol() { - return _protocol(reference.pointer, _id_protocol as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + Protocol protocol() { + final _$$selfRef = reference; + return _protocol(_$$selfRef.pointer, _id_protocol.pointer) + .object(); } - static final _id_message = _class.instanceMethodId( + static final _id_message = Response._class.instanceMethodId( r'message', r'()Ljava/lang/String;', ); @@ -3224,11 +2864,12 @@ class Response extends jni$_.JObject { /// from: `public final java.lang.String message()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString message() { - return _message(reference.pointer, _id_message as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + final _$$selfRef = reference; + return _message(_$$selfRef.pointer, _id_message.pointer) + .object(); } - static final _id_code = _class.instanceMethodId( + static final _id_code = Response._class.instanceMethodId( r'code', r'()I', ); @@ -3246,11 +2887,12 @@ class Response extends jni$_.JObject { )>(); /// from: `public final int code()` - int code() { - return _code(reference.pointer, _id_code as jni$_.JMethodIDPtr).integer; + core$_.int code() { + final _$$selfRef = reference; + return _code(_$$selfRef.pointer, _id_code.pointer).integer; } - static final _id_handshake = _class.instanceMethodId( + static final _id_handshake = Response._class.instanceMethodId( r'handshake', r'()Lokhttp3/Handshake;', ); @@ -3269,12 +2911,13 @@ class Response extends jni$_.JObject { /// from: `public final okhttp3.Handshake handshake()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? handshake() { - return _handshake(reference.pointer, _id_handshake as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + Handshake? handshake() { + final _$$selfRef = reference; + return _handshake(_$$selfRef.pointer, _id_handshake.pointer) + .object(); } - static final _id_headers = _class.instanceMethodId( + static final _id_headers = Response._class.instanceMethodId( r'headers', r'()Lokhttp3/Headers;', ); @@ -3294,11 +2937,11 @@ class Response extends jni$_.JObject { /// from: `public final okhttp3.Headers headers()` /// The returned object must be released after use, by calling the [release] method. Headers headers() { - return _headers(reference.pointer, _id_headers as jni$_.JMethodIDPtr) - .object(const $Headers$Type()); + final _$$selfRef = reference; + return _headers(_$$selfRef.pointer, _id_headers.pointer).object(); } - static final _id_body = _class.instanceMethodId( + static final _id_body = Response._class.instanceMethodId( r'body', r'()Lokhttp3/ResponseBody;', ); @@ -3318,11 +2961,11 @@ class Response extends jni$_.JObject { /// from: `public final okhttp3.ResponseBody body()` /// The returned object must be released after use, by calling the [release] method. ResponseBody? body() { - return _body(reference.pointer, _id_body as jni$_.JMethodIDPtr) - .object(const $ResponseBody$NullableType()); + final _$$selfRef = reference; + return _body(_$$selfRef.pointer, _id_body.pointer).object(); } - static final _id_networkResponse = _class.instanceMethodId( + static final _id_networkResponse = Response._class.instanceMethodId( r'networkResponse', r'()Lokhttp3/Response;', ); @@ -3342,12 +2985,12 @@ class Response extends jni$_.JObject { /// from: `public final okhttp3.Response networkResponse()` /// The returned object must be released after use, by calling the [release] method. Response? networkResponse() { - return _networkResponse( - reference.pointer, _id_networkResponse as jni$_.JMethodIDPtr) - .object(const $Response$NullableType()); + final _$$selfRef = reference; + return _networkResponse(_$$selfRef.pointer, _id_networkResponse.pointer) + .object(); } - static final _id_cacheResponse = _class.instanceMethodId( + static final _id_cacheResponse = Response._class.instanceMethodId( r'cacheResponse', r'()Lokhttp3/Response;', ); @@ -3367,12 +3010,12 @@ class Response extends jni$_.JObject { /// from: `public final okhttp3.Response cacheResponse()` /// The returned object must be released after use, by calling the [release] method. Response? cacheResponse() { - return _cacheResponse( - reference.pointer, _id_cacheResponse as jni$_.JMethodIDPtr) - .object(const $Response$NullableType()); + final _$$selfRef = reference; + return _cacheResponse(_$$selfRef.pointer, _id_cacheResponse.pointer) + .object(); } - static final _id_priorResponse = _class.instanceMethodId( + static final _id_priorResponse = Response._class.instanceMethodId( r'priorResponse', r'()Lokhttp3/Response;', ); @@ -3392,12 +3035,12 @@ class Response extends jni$_.JObject { /// from: `public final okhttp3.Response priorResponse()` /// The returned object must be released after use, by calling the [release] method. Response? priorResponse() { - return _priorResponse( - reference.pointer, _id_priorResponse as jni$_.JMethodIDPtr) - .object(const $Response$NullableType()); + final _$$selfRef = reference; + return _priorResponse(_$$selfRef.pointer, _id_priorResponse.pointer) + .object(); } - static final _id_sentRequestAtMillis = _class.instanceMethodId( + static final _id_sentRequestAtMillis = Response._class.instanceMethodId( r'sentRequestAtMillis', r'()J', ); @@ -3415,13 +3058,14 @@ class Response extends jni$_.JObject { )>(); /// from: `public final long sentRequestAtMillis()` - int sentRequestAtMillis() { + core$_.int sentRequestAtMillis() { + final _$$selfRef = reference; return _sentRequestAtMillis( - reference.pointer, _id_sentRequestAtMillis as jni$_.JMethodIDPtr) + _$$selfRef.pointer, _id_sentRequestAtMillis.pointer) .long; } - static final _id_receivedResponseAtMillis = _class.instanceMethodId( + static final _id_receivedResponseAtMillis = Response._class.instanceMethodId( r'receivedResponseAtMillis', r'()J', ); @@ -3439,13 +3083,14 @@ class Response extends jni$_.JObject { )>(); /// from: `public final long receivedResponseAtMillis()` - int receivedResponseAtMillis() { - return _receivedResponseAtMillis(reference.pointer, - _id_receivedResponseAtMillis as jni$_.JMethodIDPtr) + core$_.int receivedResponseAtMillis() { + final _$$selfRef = reference; + return _receivedResponseAtMillis( + _$$selfRef.pointer, _id_receivedResponseAtMillis.pointer) .long; } - static final _id_exchange = _class.instanceMethodId( + static final _id_exchange = Response._class.instanceMethodId( r'exchange', r'()Lokhttp3/internal/connection/Exchange;', ); @@ -3464,17 +3109,18 @@ class Response extends jni$_.JObject { /// from: `public final okhttp3.internal.connection.Exchange exchange()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? exchange() { - return _exchange(reference.pointer, _id_exchange as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + Exchange? exchange() { + final _$$selfRef = reference; + return _exchange(_$$selfRef.pointer, _id_exchange.pointer) + .object(); } - static final _id_isSuccessful = _class.instanceMethodId( + static final _id_get$isSuccessful = Response._class.instanceMethodId( r'isSuccessful', r'()Z', ); - static final _isSuccessful = jni$_.ProtectedJniExtensions.lookup< + static final _get$isSuccessful = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -3487,13 +3133,13 @@ class Response extends jni$_.JObject { )>(); /// from: `public final boolean isSuccessful()` - bool isSuccessful() { - return _isSuccessful( - reference.pointer, _id_isSuccessful as jni$_.JMethodIDPtr) + core$_.bool get isSuccessful { + final _$$selfRef = reference; + return _get$isSuccessful(_$$selfRef.pointer, _id_get$isSuccessful.pointer) .boolean; } - static final _id_headers$1 = _class.instanceMethodId( + static final _id_headers$1 = Response._class.instanceMethodId( r'headers', r'(Ljava/lang/String;)Ljava/util/List;', ); @@ -3509,19 +3155,19 @@ class Response extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final java.util.List headers(java.lang.String string)` + /// from: `public fun headers(name: kotlin.String): kotlin.collections.List` /// The returned object must be released after use, by calling the [release] method. jni$_.JList headers$1( jni$_.JString string, ) { + final _$$selfRef = reference; final _$string = string.reference; - return _headers$1(reference.pointer, _id_headers$1 as jni$_.JMethodIDPtr, - _$string.pointer) - .object>( - const jni$_.JListType(jni$_.JStringType())); + return _headers$1( + _$$selfRef.pointer, _id_headers$1.pointer, _$string.pointer) + .object>(); } - static final _id_header = _class.instanceMethodId( + static final _id_header = Response._class.instanceMethodId( r'header', r'(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;', ); @@ -3543,20 +3189,21 @@ class Response extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final java.lang.String header(java.lang.String string, java.lang.String string1)` + /// from: `public fun header(name: kotlin.String, defaultValue: kotlin.String?): kotlin.String?` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? header( jni$_.JString string, jni$_.JString? string1, ) { + final _$$selfRef = reference; final _$string = string.reference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - return _header(reference.pointer, _id_header as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) - .object(const jni$_.JStringNullableType()); + return _header(_$$selfRef.pointer, _id_header.pointer, _$string.pointer, + _$string1.pointer) + .object(); } - static final _id_trailers = _class.instanceMethodId( + static final _id_trailers = Response._class.instanceMethodId( r'trailers', r'()Lokhttp3/Headers;', ); @@ -3573,14 +3220,15 @@ class Response extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final okhttp3.Headers trailers()` + /// from: `public fun trailers(): okhttp3.Headers` /// The returned object must be released after use, by calling the [release] method. Headers trailers() { - return _trailers(reference.pointer, _id_trailers as jni$_.JMethodIDPtr) - .object(const $Headers$Type()); + final _$$selfRef = reference; + return _trailers(_$$selfRef.pointer, _id_trailers.pointer) + .object(); } - static final _id_peekBody = _class.instanceMethodId( + static final _id_peekBody = Response._class.instanceMethodId( r'peekBody', r'(J)Lokhttp3/ResponseBody;', ); @@ -3593,18 +3241,19 @@ class Response extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); - /// from: `public final okhttp3.ResponseBody peekBody(long j)` + /// from: `public fun peekBody(byteCount: kotlin.Long): okhttp3.ResponseBody` /// The returned object must be released after use, by calling the [release] method. ResponseBody peekBody( - int j, + core$_.int j, ) { - return _peekBody(reference.pointer, _id_peekBody as jni$_.JMethodIDPtr, j) - .object(const $ResponseBody$Type()); + final _$$selfRef = reference; + return _peekBody(_$$selfRef.pointer, _id_peekBody.pointer, j) + .object(); } - static final _id_newBuilder = _class.instanceMethodId( + static final _id_newBuilder = Response._class.instanceMethodId( r'newBuilder', r'()Lokhttp3/Response$Builder;', ); @@ -3621,19 +3270,20 @@ class Response extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final okhttp3.Response$Builder newBuilder()` + /// from: `public fun newBuilder(): okhttp3.Response.Builder` /// The returned object must be released after use, by calling the [release] method. Response$Builder newBuilder() { - return _newBuilder(reference.pointer, _id_newBuilder as jni$_.JMethodIDPtr) - .object(const $Response$Builder$Type()); + final _$$selfRef = reference; + return _newBuilder(_$$selfRef.pointer, _id_newBuilder.pointer) + .object(); } - static final _id_isRedirect = _class.instanceMethodId( + static final _id_get$isRedirect = Response._class.instanceMethodId( r'isRedirect', r'()Z', ); - static final _isRedirect = jni$_.ProtectedJniExtensions.lookup< + static final _get$isRedirect = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -3646,12 +3296,13 @@ class Response extends jni$_.JObject { )>(); /// from: `public final boolean isRedirect()` - bool isRedirect() { - return _isRedirect(reference.pointer, _id_isRedirect as jni$_.JMethodIDPtr) + core$_.bool get isRedirect { + final _$$selfRef = reference; + return _get$isRedirect(_$$selfRef.pointer, _id_get$isRedirect.pointer) .boolean; } - static final _id_challenges = _class.instanceMethodId( + static final _id_challenges = Response._class.instanceMethodId( r'challenges', r'()Ljava/util/List;', ); @@ -3668,15 +3319,15 @@ class Response extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final java.util.List challenges()` + /// from: `public fun challenges(): kotlin.collections.List` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList challenges() { - return _challenges(reference.pointer, _id_challenges as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JObjectType())); + jni$_.JList challenges() { + final _$$selfRef = reference; + return _challenges(_$$selfRef.pointer, _id_challenges.pointer) + .object>(); } - static final _id_cacheControl = _class.instanceMethodId( + static final _id_cacheControl = Response._class.instanceMethodId( r'cacheControl', r'()Lokhttp3/CacheControl;', ); @@ -3695,13 +3346,13 @@ class Response extends jni$_.JObject { /// from: `public final okhttp3.CacheControl cacheControl()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject cacheControl() { - return _cacheControl( - reference.pointer, _id_cacheControl as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + CacheControl cacheControl() { + final _$$selfRef = reference; + return _cacheControl(_$$selfRef.pointer, _id_cacheControl.pointer) + .object(); } - static final _id_close = _class.instanceMethodId( + static final _id_close = Response._class.instanceMethodId( r'close', r'()V', ); @@ -3718,12 +3369,13 @@ class Response extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public void close()` + /// from: `public fun close(): kotlin.Unit` void close() { - _close(reference.pointer, _id_close as jni$_.JMethodIDPtr).check(); + final _$$selfRef = reference; + _close(_$$selfRef.pointer, _id_close.pointer).check(); } - static final _id_toString$1 = _class.instanceMethodId( + static final _id_toString$1 = Response._class.instanceMethodId( r'toString', r'()Ljava/lang/String;', ); @@ -3740,14 +3392,15 @@ class Response extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public java.lang.String toString()` + /// from: `public fun toString(): kotlin.String` /// The returned object must be released after use, by calling the [release] method. jni$_.JString toString$1() { - return _toString$1(reference.pointer, _id_toString$1 as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + final _$$selfRef = reference; + return _toString$1(_$$selfRef.pointer, _id_toString$1.pointer) + .object(); } - static final _id_header$1 = _class.instanceMethodId( + static final _id_header$1 = Response._class.instanceMethodId( r'header', r'(Ljava/lang/String;)Ljava/lang/String;', ); @@ -3768,102 +3421,31 @@ class Response extends jni$_.JObject { jni$_.JString? header$1( jni$_.JString string, ) { + final _$$selfRef = reference; final _$string = string.reference; - return _header$1(reference.pointer, _id_header$1 as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const jni$_.JStringNullableType()); - } -} - -final class $Response$NullableType extends jni$_.JObjType { - @jni$_.internal - const $Response$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/Response;'; - - @jni$_.internal - @core$_.override - Response? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Response.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Response$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Response$NullableType) && - other is $Response$NullableType; + return _header$1(_$$selfRef.pointer, _id_header$1.pointer, _$string.pointer) + .object(); } } -final class $Response$Type extends jni$_.JObjType { +final class $Response$Type$ extends jni$_.JType { @jni$_.internal - const $Response$Type(); + const $Response$Type$(); @jni$_.internal @core$_.override String get signature => r'Lokhttp3/Response;'; - - @jni$_.internal - @core$_.override - Response fromReference(jni$_.JReference reference) => Response.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => const $Response$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Response$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Response$Type) && other is $Response$Type; - } } /// from: `okhttp3.ResponseBody$BomAwareReader` -class ResponseBody$BomAwareReader extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - ResponseBody$BomAwareReader.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type ResponseBody$BomAwareReader._(jni$_.JObject _$this) + implements Reader { static final _class = jni$_.JClass.forName(r'okhttp3/ResponseBody$BomAwareReader'); /// The type which includes information such as the signature of this class. - static const nullableType = $ResponseBody$BomAwareReader$NullableType(); - static const type = $ResponseBody$BomAwareReader$Type(); + static const jni$_.JType type = + $ResponseBody$BomAwareReader$Type$(); static final _id_new$ = _class.constructorId( r'(Lokio/BufferedSource;Ljava/nio/charset/Charset;)V', ); @@ -3888,20 +3470,20 @@ class ResponseBody$BomAwareReader extends jni$_.JObject { /// from: `public void (okio.BufferedSource bufferedSource, java.nio.charset.Charset charset)` /// The returned object must be released after use, by calling the [release] method. factory ResponseBody$BomAwareReader( - jni$_.JObject bufferedSource, - jni$_.JObject charset, + BufferedSource bufferedSource, + Charset charset, ) { + final _$$classRef = _class.reference; final _$bufferedSource = bufferedSource.reference; final _$charset = charset.reference; - return ResponseBody$BomAwareReader.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$bufferedSource.pointer, - _$charset.pointer) - .reference); + return _new$(_$$classRef.pointer, _id_new$.pointer, + _$bufferedSource.pointer, _$charset.pointer) + .object(); } +} - static final _id_read = _class.instanceMethodId( +extension ResponseBody$BomAwareReader$$Methods on ResponseBody$BomAwareReader { + static final _id_read = ResponseBody$BomAwareReader._class.instanceMethodId( r'read', r'([CII)I', ); @@ -3918,22 +3500,26 @@ class ResponseBody$BomAwareReader extends jni$_.JObject { jni$_.Int32 )>)>>('globalEnv_CallIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `public int read(char[] cs, int i, int i1)` - int read( + /// from: `public fun read(cbuf: kotlin.CharArray, off: kotlin.Int, len: kotlin.Int): kotlin.Int` + core$_.int read( jni$_.JCharArray cs, - int i, - int i1, + core$_.int i, + core$_.int i1, ) { + final _$$selfRef = reference; final _$cs = cs.reference; - return _read(reference.pointer, _id_read as jni$_.JMethodIDPtr, - _$cs.pointer, i, i1) + return _read(_$$selfRef.pointer, _id_read.pointer, _$cs.pointer, i, i1) .integer; } - static final _id_close = _class.instanceMethodId( + static final _id_close = ResponseBody$BomAwareReader._class.instanceMethodId( r'close', r'()V', ); @@ -3950,107 +3536,62 @@ class ResponseBody$BomAwareReader extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public void close()` + /// from: `public fun close(): kotlin.Unit` void close() { - _close(reference.pointer, _id_close as jni$_.JMethodIDPtr).check(); + final _$$selfRef = reference; + _close(_$$selfRef.pointer, _id_close.pointer).check(); } } -final class $ResponseBody$BomAwareReader$NullableType - extends jni$_.JObjType { +final class $ResponseBody$BomAwareReader$Type$ + extends jni$_.JType { @jni$_.internal - const $ResponseBody$BomAwareReader$NullableType(); + const $ResponseBody$BomAwareReader$Type$(); @jni$_.internal @core$_.override String get signature => r'Lokhttp3/ResponseBody$BomAwareReader;'; - - @jni$_.internal - @core$_.override - ResponseBody$BomAwareReader? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : ResponseBody$BomAwareReader.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ResponseBody$BomAwareReader$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ResponseBody$BomAwareReader$NullableType) && - other is $ResponseBody$BomAwareReader$NullableType; - } } -final class $ResponseBody$BomAwareReader$Type - extends jni$_.JObjType { - @jni$_.internal - const $ResponseBody$BomAwareReader$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/ResponseBody$BomAwareReader;'; - - @jni$_.internal - @core$_.override - ResponseBody$BomAwareReader fromReference(jni$_.JReference reference) => - ResponseBody$BomAwareReader.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $ResponseBody$BomAwareReader$NullableType(); +/// from: `okhttp3.ResponseBody$Companion` +extension type ResponseBody$Companion._(jni$_.JObject _$this) + implements jni$_.JObject { + static final _class = jni$_.JClass.forName(r'okhttp3/ResponseBody$Companion'); - @jni$_.internal - @core$_.override - final superCount = 1; + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = + $ResponseBody$Companion$Type$(); + static final _id_new$ = _class.constructorId( + r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', + ); - @core$_.override - int get hashCode => ($ResponseBody$BomAwareReader$Type).hashCode; + static final _new$ = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ResponseBody$BomAwareReader$Type) && - other is $ResponseBody$BomAwareReader$Type; + /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` + /// The returned object must be released after use, by calling the [release] method. + factory ResponseBody$Companion( + DefaultConstructorMarker? defaultConstructorMarker, + ) { + final _$$classRef = _class.reference; + final _$defaultConstructorMarker = + defaultConstructorMarker?.reference ?? jni$_.jNullReference; + return _new$(_$$classRef.pointer, _id_new$.pointer, + _$defaultConstructorMarker.pointer) + .object(); } } -/// from: `okhttp3.ResponseBody$Companion` -class ResponseBody$Companion extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - ResponseBody$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = jni$_.JClass.forName(r'okhttp3/ResponseBody$Companion'); - - /// The type which includes information such as the signature of this class. - static const nullableType = $ResponseBody$Companion$NullableType(); - static const type = $ResponseBody$Companion$Type(); - static final _id_create = _class.instanceMethodId( +extension ResponseBody$Companion$$Methods on ResponseBody$Companion { + static final _id_create = ResponseBody$Companion._class.instanceMethodId( r'create', r'(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/ResponseBody;', ); @@ -4072,20 +3613,21 @@ class ResponseBody$Companion extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final okhttp3.ResponseBody create(java.lang.String string, okhttp3.MediaType mediaType)` + /// from: `public fun toResponseBody(contentType: okhttp3.MediaType?): okhttp3.ResponseBody` /// The returned object must be released after use, by calling the [release] method. ResponseBody create( jni$_.JString string, - jni$_.JObject? mediaType, + MediaType? mediaType, ) { + final _$$selfRef = reference; final _$string = string.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create(reference.pointer, _id_create as jni$_.JMethodIDPtr, - _$string.pointer, _$mediaType.pointer) - .object(const $ResponseBody$Type()); + return _create(_$$selfRef.pointer, _id_create.pointer, _$string.pointer, + _$mediaType.pointer) + .object(); } - static final _id_create$1 = _class.instanceMethodId( + static final _id_create$1 = ResponseBody$Companion._class.instanceMethodId( r'create', r'([BLokhttp3/MediaType;)Lokhttp3/ResponseBody;', ); @@ -4107,20 +3649,21 @@ class ResponseBody$Companion extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final okhttp3.ResponseBody create(byte[] bs, okhttp3.MediaType mediaType)` + /// from: `public fun toResponseBody(contentType: okhttp3.MediaType?): okhttp3.ResponseBody` /// The returned object must be released after use, by calling the [release] method. ResponseBody create$1( jni$_.JByteArray bs, - jni$_.JObject? mediaType, + MediaType? mediaType, ) { + final _$$selfRef = reference; final _$bs = bs.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create$1(reference.pointer, _id_create$1 as jni$_.JMethodIDPtr, - _$bs.pointer, _$mediaType.pointer) - .object(const $ResponseBody$Type()); + return _create$1(_$$selfRef.pointer, _id_create$1.pointer, _$bs.pointer, + _$mediaType.pointer) + .object(); } - static final _id_create$2 = _class.instanceMethodId( + static final _id_create$2 = ResponseBody$Companion._class.instanceMethodId( r'create', r'(Lokio/ByteString;Lokhttp3/MediaType;)Lokhttp3/ResponseBody;', ); @@ -4142,20 +3685,21 @@ class ResponseBody$Companion extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final okhttp3.ResponseBody create(okio.ByteString byteString, okhttp3.MediaType mediaType)` + /// from: `public fun toResponseBody(contentType: okhttp3.MediaType?): okhttp3.ResponseBody` /// The returned object must be released after use, by calling the [release] method. ResponseBody create$2( ByteString byteString, - jni$_.JObject? mediaType, + MediaType? mediaType, ) { + final _$$selfRef = reference; final _$byteString = byteString.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create$2(reference.pointer, _id_create$2 as jni$_.JMethodIDPtr, + return _create$2(_$$selfRef.pointer, _id_create$2.pointer, _$byteString.pointer, _$mediaType.pointer) - .object(const $ResponseBody$Type()); + .object(); } - static final _id_create$3 = _class.instanceMethodId( + static final _id_create$3 = ResponseBody$Companion._class.instanceMethodId( r'create', r'(Lokio/BufferedSource;Lokhttp3/MediaType;J)Lokhttp3/ResponseBody;', ); @@ -4177,23 +3721,24 @@ class ResponseBody$Companion extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int)>(); + core$_.int)>(); - /// from: `public final okhttp3.ResponseBody create(okio.BufferedSource bufferedSource, okhttp3.MediaType mediaType, long j)` + /// from: `public fun asResponseBody(contentType: okhttp3.MediaType?, contentLength: kotlin.Long): okhttp3.ResponseBody` /// The returned object must be released after use, by calling the [release] method. ResponseBody create$3( - jni$_.JObject bufferedSource, - jni$_.JObject? mediaType, - int j, + BufferedSource bufferedSource, + MediaType? mediaType, + core$_.int j, ) { + final _$$selfRef = reference; final _$bufferedSource = bufferedSource.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create$3(reference.pointer, _id_create$3 as jni$_.JMethodIDPtr, + return _create$3(_$$selfRef.pointer, _id_create$3.pointer, _$bufferedSource.pointer, _$mediaType.pointer, j) - .object(const $ResponseBody$Type()); + .object(); } - static final _id_create$4 = _class.instanceMethodId( + static final _id_create$4 = ResponseBody$Companion._class.instanceMethodId( r'create', r'(Lokhttp3/MediaType;Ljava/lang/String;)Lokhttp3/ResponseBody;', ); @@ -4215,20 +3760,21 @@ class ResponseBody$Companion extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, java.lang.String string)` + /// from: `public fun create(contentType: okhttp3.MediaType?, content: kotlin.String): okhttp3.ResponseBody` /// The returned object must be released after use, by calling the [release] method. ResponseBody create$4( - jni$_.JObject? mediaType, + MediaType? mediaType, jni$_.JString string, ) { + final _$$selfRef = reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$string = string.reference; - return _create$4(reference.pointer, _id_create$4 as jni$_.JMethodIDPtr, + return _create$4(_$$selfRef.pointer, _id_create$4.pointer, _$mediaType.pointer, _$string.pointer) - .object(const $ResponseBody$Type()); + .object(); } - static final _id_create$5 = _class.instanceMethodId( + static final _id_create$5 = ResponseBody$Companion._class.instanceMethodId( r'create', r'(Lokhttp3/MediaType;[B)Lokhttp3/ResponseBody;', ); @@ -4250,20 +3796,21 @@ class ResponseBody$Companion extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, byte[] bs)` + /// from: `public fun create(contentType: okhttp3.MediaType?, content: kotlin.ByteArray): okhttp3.ResponseBody` /// The returned object must be released after use, by calling the [release] method. ResponseBody create$5( - jni$_.JObject? mediaType, + MediaType? mediaType, jni$_.JByteArray bs, ) { + final _$$selfRef = reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$bs = bs.reference; - return _create$5(reference.pointer, _id_create$5 as jni$_.JMethodIDPtr, + return _create$5(_$$selfRef.pointer, _id_create$5.pointer, _$mediaType.pointer, _$bs.pointer) - .object(const $ResponseBody$Type()); + .object(); } - static final _id_create$6 = _class.instanceMethodId( + static final _id_create$6 = ResponseBody$Companion._class.instanceMethodId( r'create', r'(Lokhttp3/MediaType;Lokio/ByteString;)Lokhttp3/ResponseBody;', ); @@ -4285,20 +3832,21 @@ class ResponseBody$Companion extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, okio.ByteString byteString)` + /// from: `public fun create(contentType: okhttp3.MediaType?, content: okio.ByteString): okhttp3.ResponseBody` /// The returned object must be released after use, by calling the [release] method. ResponseBody create$6( - jni$_.JObject? mediaType, + MediaType? mediaType, ByteString byteString, ) { + final _$$selfRef = reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$byteString = byteString.reference; - return _create$6(reference.pointer, _id_create$6 as jni$_.JMethodIDPtr, + return _create$6(_$$selfRef.pointer, _id_create$6.pointer, _$mediaType.pointer, _$byteString.pointer) - .object(const $ResponseBody$Type()); + .object(); } - static final _id_create$7 = _class.instanceMethodId( + static final _id_create$7 = ResponseBody$Companion._class.instanceMethodId( r'create', r'(Lokhttp3/MediaType;JLokio/BufferedSource;)Lokhttp3/ResponseBody;', ); @@ -4319,145 +3867,42 @@ class ResponseBody$Companion extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer)>(); - /// from: `public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, long j, okio.BufferedSource bufferedSource)` + /// from: `public fun create(contentType: okhttp3.MediaType?, contentLength: kotlin.Long, content: okio.BufferedSource): okhttp3.ResponseBody` /// The returned object must be released after use, by calling the [release] method. ResponseBody create$7( - jni$_.JObject? mediaType, - int j, - jni$_.JObject bufferedSource, + MediaType? mediaType, + core$_.int j, + BufferedSource bufferedSource, ) { + final _$$selfRef = reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$bufferedSource = bufferedSource.reference; - return _create$7(reference.pointer, _id_create$7 as jni$_.JMethodIDPtr, + return _create$7(_$$selfRef.pointer, _id_create$7.pointer, _$mediaType.pointer, j, _$bufferedSource.pointer) - .object(const $ResponseBody$Type()); - } - - static final _id_new$ = _class.constructorId( - r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', - ); - - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` - /// The returned object must be released after use, by calling the [release] method. - factory ResponseBody$Companion( - jni$_.JObject? defaultConstructorMarker, - ) { - final _$defaultConstructorMarker = - defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return ResponseBody$Companion.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$defaultConstructorMarker.pointer) - .reference); - } -} - -final class $ResponseBody$Companion$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $ResponseBody$Companion$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/ResponseBody$Companion;'; - - @jni$_.internal - @core$_.override - ResponseBody$Companion? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : ResponseBody$Companion.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ResponseBody$Companion$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ResponseBody$Companion$NullableType) && - other is $ResponseBody$Companion$NullableType; + .object(); } } -final class $ResponseBody$Companion$Type - extends jni$_.JObjType { +final class $ResponseBody$Companion$Type$ + extends jni$_.JType { @jni$_.internal - const $ResponseBody$Companion$Type(); + const $ResponseBody$Companion$Type$(); @jni$_.internal @core$_.override String get signature => r'Lokhttp3/ResponseBody$Companion;'; - - @jni$_.internal - @core$_.override - ResponseBody$Companion fromReference(jni$_.JReference reference) => - ResponseBody$Companion.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $ResponseBody$Companion$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ResponseBody$Companion$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ResponseBody$Companion$Type) && - other is $ResponseBody$Companion$Type; - } } /// from: `okhttp3.ResponseBody` -class ResponseBody extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - ResponseBody.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type ResponseBody._(jni$_.JObject _$this) + implements jni$_.JObject, Closeable { static final _class = jni$_.JClass.forName(r'okhttp3/ResponseBody'); /// The type which includes information such as the signature of this class. - static const nullableType = $ResponseBody$NullableType(); - static const type = $ResponseBody$Type(); + static const jni$_.JType type = $ResponseBody$Type$(); static final _id_Companion = _class.staticFieldId( r'Companion', r'Lokhttp3/ResponseBody$Companion;', @@ -4466,238 +3911,24 @@ class ResponseBody extends jni$_.JObject { /// from: `static public final okhttp3.ResponseBody$Companion Companion` /// The returned object must be released after use, by calling the [release] method. static ResponseBody$Companion get Companion => - _id_Companion.get(_class, const $ResponseBody$Companion$Type()); + _id_Companion.get(_class, ResponseBody$Companion.type) + as ResponseBody$Companion; - static final _id_contentType = _class.instanceMethodId( - r'contentType', - r'()Lokhttp3/MediaType;', + static final _id_create = _class.staticMethodId( + r'create', + r'(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/ResponseBody;', ); - static final _contentType = jni$_.ProtectedJniExtensions.lookup< + static final _create = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public abstract okhttp3.MediaType contentType()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? contentType() { - return _contentType( - reference.pointer, _id_contentType as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); - } - - static final _id_contentLength = _class.instanceMethodId( - r'contentLength', - r'()J', - ); - - static final _contentLength = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public abstract long contentLength()` - int contentLength() { - return _contentLength( - reference.pointer, _id_contentLength as jni$_.JMethodIDPtr) - .long; - } - - static final _id_byteStream = _class.instanceMethodId( - r'byteStream', - r'()Ljava/io/InputStream;', - ); - - static final _byteStream = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public final java.io.InputStream byteStream()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject byteStream() { - return _byteStream(reference.pointer, _id_byteStream as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); - } - - static final _id_source = _class.instanceMethodId( - r'source', - r'()Lokio/BufferedSource;', - ); - - static final _source = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public abstract okio.BufferedSource source()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject source() { - return _source(reference.pointer, _id_source as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); - } - - static final _id_bytes = _class.instanceMethodId( - r'bytes', - r'()[B', - ); - - static final _bytes = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public final byte[] bytes()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JByteArray bytes() { - return _bytes(reference.pointer, _id_bytes as jni$_.JMethodIDPtr) - .object(const jni$_.JByteArrayType()); - } - - static final _id_byteString = _class.instanceMethodId( - r'byteString', - r'()Lokio/ByteString;', - ); - - static final _byteString = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public final okio.ByteString byteString()` - /// The returned object must be released after use, by calling the [release] method. - ByteString byteString() { - return _byteString(reference.pointer, _id_byteString as jni$_.JMethodIDPtr) - .object(const $ByteString$Type()); - } - - static final _id_charStream = _class.instanceMethodId( - r'charStream', - r'()Ljava/io/Reader;', - ); - - static final _charStream = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public final java.io.Reader charStream()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject charStream() { - return _charStream(reference.pointer, _id_charStream as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); - } - - static final _id_string = _class.instanceMethodId( - r'string', - r'()Ljava/lang/String;', - ); - - static final _string = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public final java.lang.String string()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JString string() { - return _string(reference.pointer, _id_string as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); - } - - static final _id_close = _class.instanceMethodId( - r'close', - r'()V', - ); - - static final _close = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public void close()` - void close() { - _close(reference.pointer, _id_close as jni$_.JMethodIDPtr).check(); - } - - static final _id_create = _class.staticMethodId( - r'create', - r'(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/ResponseBody;', - ); - - static final _create = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -4709,13 +3940,14 @@ class ResponseBody extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static ResponseBody create( jni$_.JString string, - jni$_.JObject? mediaType, + MediaType? mediaType, ) { + final _$$classRef = _class.reference; final _$string = string.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create(_class.reference.pointer, _id_create as jni$_.JMethodIDPtr, - _$string.pointer, _$mediaType.pointer) - .object(const $ResponseBody$Type()); + return _create(_$$classRef.pointer, _id_create.pointer, _$string.pointer, + _$mediaType.pointer) + .object(); } static final _id_create$1 = _class.staticMethodId( @@ -4744,16 +3976,14 @@ class ResponseBody extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static ResponseBody create$1( jni$_.JByteArray bs, - jni$_.JObject? mediaType, + MediaType? mediaType, ) { + final _$$classRef = _class.reference; final _$bs = bs.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create$1( - _class.reference.pointer, - _id_create$1 as jni$_.JMethodIDPtr, - _$bs.pointer, + return _create$1(_$$classRef.pointer, _id_create$1.pointer, _$bs.pointer, _$mediaType.pointer) - .object(const $ResponseBody$Type()); + .object(); } static final _id_create$2 = _class.staticMethodId( @@ -4782,16 +4012,14 @@ class ResponseBody extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static ResponseBody create$2( ByteString byteString, - jni$_.JObject? mediaType, + MediaType? mediaType, ) { + final _$$classRef = _class.reference; final _$byteString = byteString.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create$2( - _class.reference.pointer, - _id_create$2 as jni$_.JMethodIDPtr, - _$byteString.pointer, - _$mediaType.pointer) - .object(const $ResponseBody$Type()); + return _create$2(_$$classRef.pointer, _id_create$2.pointer, + _$byteString.pointer, _$mediaType.pointer) + .object(); } static final _id_create$3 = _class.staticMethodId( @@ -4816,24 +4044,21 @@ class ResponseBody extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int)>(); + core$_.int)>(); /// from: `static public final okhttp3.ResponseBody create(okio.BufferedSource bufferedSource, okhttp3.MediaType mediaType, long j)` /// The returned object must be released after use, by calling the [release] method. static ResponseBody create$3( - jni$_.JObject bufferedSource, - jni$_.JObject? mediaType, - int j, + BufferedSource bufferedSource, + MediaType? mediaType, + core$_.int j, ) { + final _$$classRef = _class.reference; final _$bufferedSource = bufferedSource.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create$3( - _class.reference.pointer, - _id_create$3 as jni$_.JMethodIDPtr, - _$bufferedSource.pointer, - _$mediaType.pointer, - j) - .object(const $ResponseBody$Type()); + return _create$3(_$$classRef.pointer, _id_create$3.pointer, + _$bufferedSource.pointer, _$mediaType.pointer, j) + .object(); } static final _id_create$4 = _class.staticMethodId( @@ -4861,17 +4086,15 @@ class ResponseBody extends jni$_.JObject { /// from: `static public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. static ResponseBody create$4( - jni$_.JObject? mediaType, + MediaType? mediaType, jni$_.JString string, ) { + final _$$classRef = _class.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$string = string.reference; - return _create$4( - _class.reference.pointer, - _id_create$4 as jni$_.JMethodIDPtr, - _$mediaType.pointer, - _$string.pointer) - .object(const $ResponseBody$Type()); + return _create$4(_$$classRef.pointer, _id_create$4.pointer, + _$mediaType.pointer, _$string.pointer) + .object(); } static final _id_create$5 = _class.staticMethodId( @@ -4899,17 +4122,15 @@ class ResponseBody extends jni$_.JObject { /// from: `static public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, byte[] bs)` /// The returned object must be released after use, by calling the [release] method. static ResponseBody create$5( - jni$_.JObject? mediaType, + MediaType? mediaType, jni$_.JByteArray bs, ) { + final _$$classRef = _class.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$bs = bs.reference; - return _create$5( - _class.reference.pointer, - _id_create$5 as jni$_.JMethodIDPtr, - _$mediaType.pointer, - _$bs.pointer) - .object(const $ResponseBody$Type()); + return _create$5(_$$classRef.pointer, _id_create$5.pointer, + _$mediaType.pointer, _$bs.pointer) + .object(); } static final _id_create$6 = _class.staticMethodId( @@ -4937,17 +4158,15 @@ class ResponseBody extends jni$_.JObject { /// from: `static public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, okio.ByteString byteString)` /// The returned object must be released after use, by calling the [release] method. static ResponseBody create$6( - jni$_.JObject? mediaType, + MediaType? mediaType, ByteString byteString, ) { + final _$$classRef = _class.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$byteString = byteString.reference; - return _create$6( - _class.reference.pointer, - _id_create$6 as jni$_.JMethodIDPtr, - _$mediaType.pointer, - _$byteString.pointer) - .object(const $ResponseBody$Type()); + return _create$6(_$$classRef.pointer, _id_create$6.pointer, + _$mediaType.pointer, _$byteString.pointer) + .object(); } static final _id_create$7 = _class.staticMethodId( @@ -4971,141 +4190,287 @@ class ResponseBody extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer)>(); /// from: `static public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, long j, okio.BufferedSource bufferedSource)` /// The returned object must be released after use, by calling the [release] method. static ResponseBody create$7( - jni$_.JObject? mediaType, - int j, - jni$_.JObject bufferedSource, + MediaType? mediaType, + core$_.int j, + BufferedSource bufferedSource, ) { + final _$$classRef = _class.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$bufferedSource = bufferedSource.reference; - return _create$7( - _class.reference.pointer, - _id_create$7 as jni$_.JMethodIDPtr, - _$mediaType.pointer, - j, - _$bufferedSource.pointer) - .object(const $ResponseBody$Type()); - } -} - -final class $ResponseBody$NullableType extends jni$_.JObjType { - @jni$_.internal - const $ResponseBody$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/ResponseBody;'; - - @jni$_.internal - @core$_.override - ResponseBody? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : ResponseBody.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ResponseBody$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ResponseBody$NullableType) && - other is $ResponseBody$NullableType; - } -} - -final class $ResponseBody$Type extends jni$_.JObjType { - @jni$_.internal - const $ResponseBody$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/ResponseBody;'; - - @jni$_.internal - @core$_.override - ResponseBody fromReference(jni$_.JReference reference) => - ResponseBody.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $ResponseBody$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ResponseBody$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ResponseBody$Type) && - other is $ResponseBody$Type; + return _create$7(_$$classRef.pointer, _id_create$7.pointer, + _$mediaType.pointer, j, _$bufferedSource.pointer) + .object(); } } -/// from: `okhttp3.OkHttpClient$Builder` -class OkHttpClient$Builder extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - OkHttpClient$Builder.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = jni$_.JClass.forName(r'okhttp3/OkHttpClient$Builder'); - - /// The type which includes information such as the signature of this class. - static const nullableType = $OkHttpClient$Builder$NullableType(); - static const type = $OkHttpClient$Builder$Type(); - static final _id_new$ = _class.constructorId( - r'()V', +extension ResponseBody$$Methods on ResponseBody { + static final _id_contentType = ResponseBody._class.instanceMethodId( + r'contentType', + r'()Lokhttp3/MediaType;', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< + static final _contentType = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_NewObject') + )>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, )>(); - /// from: `public void ()` + /// from: `public fun contentType(): okhttp3.MediaType?` /// The returned object must be released after use, by calling the [release] method. - factory OkHttpClient$Builder() { - return OkHttpClient$Builder.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + MediaType? contentType() { + final _$$selfRef = reference; + return _contentType(_$$selfRef.pointer, _id_contentType.pointer) + .object(); + } + + static final _id_contentLength = ResponseBody._class.instanceMethodId( + r'contentLength', + r'()J', + ); + + static final _contentLength = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public fun contentLength(): kotlin.Long` + core$_.int contentLength() { + final _$$selfRef = reference; + return _contentLength(_$$selfRef.pointer, _id_contentLength.pointer).long; + } + + static final _id_byteStream = ResponseBody._class.instanceMethodId( + r'byteStream', + r'()Ljava/io/InputStream;', + ); + + static final _byteStream = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public fun byteStream(): java.io.InputStream` + /// The returned object must be released after use, by calling the [release] method. + InputStream byteStream() { + final _$$selfRef = reference; + return _byteStream(_$$selfRef.pointer, _id_byteStream.pointer) + .object(); + } + + static final _id_source = ResponseBody._class.instanceMethodId( + r'source', + r'()Lokio/BufferedSource;', + ); + + static final _source = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public fun source(): okio.BufferedSource` + /// The returned object must be released after use, by calling the [release] method. + BufferedSource source() { + final _$$selfRef = reference; + return _source(_$$selfRef.pointer, _id_source.pointer) + .object(); + } + + static final _id_bytes = ResponseBody._class.instanceMethodId( + r'bytes', + r'()[B', + ); + + static final _bytes = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public fun bytes(): kotlin.ByteArray` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JByteArray bytes() { + final _$$selfRef = reference; + return _bytes(_$$selfRef.pointer, _id_bytes.pointer) + .object(); + } + + static final _id_byteString = ResponseBody._class.instanceMethodId( + r'byteString', + r'()Lokio/ByteString;', + ); + + static final _byteString = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public fun byteString(): okio.ByteString` + /// The returned object must be released after use, by calling the [release] method. + ByteString byteString() { + final _$$selfRef = reference; + return _byteString(_$$selfRef.pointer, _id_byteString.pointer) + .object(); + } + + static final _id_charStream = ResponseBody._class.instanceMethodId( + r'charStream', + r'()Ljava/io/Reader;', + ); + + static final _charStream = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public fun charStream(): java.io.Reader` + /// The returned object must be released after use, by calling the [release] method. + Reader charStream() { + final _$$selfRef = reference; + return _charStream(_$$selfRef.pointer, _id_charStream.pointer) + .object(); + } + + static final _id_string = ResponseBody._class.instanceMethodId( + r'string', + r'()Ljava/lang/String;', + ); + + static final _string = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public fun string(): kotlin.String` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JString string() { + final _$$selfRef = reference; + return _string(_$$selfRef.pointer, _id_string.pointer) + .object(); + } + + static final _id_close = ResponseBody._class.instanceMethodId( + r'close', + r'()V', + ); + + static final _close = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public fun close(): kotlin.Unit` + void close() { + final _$$selfRef = reference; + _close(_$$selfRef.pointer, _id_close.pointer).check(); + } +} + +final class $ResponseBody$Type$ extends jni$_.JType { + @jni$_.internal + const $ResponseBody$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokhttp3/ResponseBody;'; +} + +/// from: `okhttp3.OkHttpClient$Builder` +extension type OkHttpClient$Builder._(jni$_.JObject _$this) + implements jni$_.JObject { + static final _class = jni$_.JClass.forName(r'okhttp3/OkHttpClient$Builder'); + + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = + $OkHttpClient$Builder$Type$(); + static final _id_new$ = _class.constructorId( + r'()V', + ); + + static final _new$ = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public void ()` + /// The returned object must be released after use, by calling the [release] method. + factory OkHttpClient$Builder() { + final _$$classRef = _class.reference; + return _new$(_$$classRef.pointer, _id_new$.pointer) + .object(); } static final _id_new$1 = _class.constructorId( @@ -5128,13 +4493,16 @@ class OkHttpClient$Builder extends jni$_.JObject { factory OkHttpClient$Builder.new$1( OkHttpClient okHttpClient, ) { + final _$$classRef = _class.reference; final _$okHttpClient = okHttpClient.reference; - return OkHttpClient$Builder.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, _$okHttpClient.pointer) - .reference); + return _new$1( + _$$classRef.pointer, _id_new$1.pointer, _$okHttpClient.pointer) + .object(); } +} - static final _id_dispatcher = _class.instanceMethodId( +extension OkHttpClient$Builder$$Methods on OkHttpClient$Builder { + static final _id_dispatcher = OkHttpClient$Builder._class.instanceMethodId( r'dispatcher', r'(Lokhttp3/Dispatcher;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5150,18 +4518,20 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder dispatcher(okhttp3.Dispatcher dispatcher)` + /// from: `public fun dispatcher(dispatcher: okhttp3.Dispatcher): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder dispatcher( Dispatcher dispatcher, ) { + final _$$selfRef = reference; final _$dispatcher = dispatcher.reference; - return _dispatcher(reference.pointer, _id_dispatcher as jni$_.JMethodIDPtr, - _$dispatcher.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _dispatcher( + _$$selfRef.pointer, _id_dispatcher.pointer, _$dispatcher.pointer) + .object(); } - static final _id_connectionPool = _class.instanceMethodId( + static final _id_connectionPool = + OkHttpClient$Builder._class.instanceMethodId( r'connectionPool', r'(Lokhttp3/ConnectionPool;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5177,18 +4547,19 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder connectionPool(okhttp3.ConnectionPool connectionPool)` + /// from: `public fun connectionPool(connectionPool: okhttp3.ConnectionPool): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder connectionPool( ConnectionPool connectionPool, ) { + final _$$selfRef = reference; final _$connectionPool = connectionPool.reference; - return _connectionPool(reference.pointer, - _id_connectionPool as jni$_.JMethodIDPtr, _$connectionPool.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _connectionPool(_$$selfRef.pointer, _id_connectionPool.pointer, + _$connectionPool.pointer) + .object(); } - static final _id_interceptors = _class.instanceMethodId( + static final _id_interceptors = OkHttpClient$Builder._class.instanceMethodId( r'interceptors', r'()Ljava/util/List;', ); @@ -5205,16 +4576,16 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final java.util.List interceptors()` + /// from: `public fun interceptors(): kotlin.collections.MutableList` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList interceptors() { - return _interceptors( - reference.pointer, _id_interceptors as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JObjectType())); + jni$_.JList interceptors() { + final _$$selfRef = reference; + return _interceptors(_$$selfRef.pointer, _id_interceptors.pointer) + .object>(); } - static final _id_addInterceptor = _class.instanceMethodId( + static final _id_addInterceptor = + OkHttpClient$Builder._class.instanceMethodId( r'addInterceptor', r'(Lokhttp3/Interceptor;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5230,18 +4601,20 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder addInterceptor(okhttp3.Interceptor interceptor)` + /// from: `public fun addInterceptor(interceptor: okhttp3.Interceptor): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder addInterceptor( - jni$_.JObject interceptor, + Interceptor interceptor, ) { + final _$$selfRef = reference; final _$interceptor = interceptor.reference; - return _addInterceptor(reference.pointer, - _id_addInterceptor as jni$_.JMethodIDPtr, _$interceptor.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _addInterceptor(_$$selfRef.pointer, _id_addInterceptor.pointer, + _$interceptor.pointer) + .object(); } - static final _id_networkInterceptors = _class.instanceMethodId( + static final _id_networkInterceptors = + OkHttpClient$Builder._class.instanceMethodId( r'networkInterceptors', r'()Ljava/util/List;', ); @@ -5258,16 +4631,17 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final java.util.List networkInterceptors()` + /// from: `public fun networkInterceptors(): kotlin.collections.MutableList` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList networkInterceptors() { + jni$_.JList networkInterceptors() { + final _$$selfRef = reference; return _networkInterceptors( - reference.pointer, _id_networkInterceptors as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JObjectType())); + _$$selfRef.pointer, _id_networkInterceptors.pointer) + .object>(); } - static final _id_addNetworkInterceptor = _class.instanceMethodId( + static final _id_addNetworkInterceptor = + OkHttpClient$Builder._class.instanceMethodId( r'addNetworkInterceptor', r'(Lokhttp3/Interceptor;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5283,20 +4657,19 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder addNetworkInterceptor(okhttp3.Interceptor interceptor)` + /// from: `public fun addNetworkInterceptor(interceptor: okhttp3.Interceptor): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder addNetworkInterceptor( - jni$_.JObject interceptor, + Interceptor interceptor, ) { + final _$$selfRef = reference; final _$interceptor = interceptor.reference; - return _addNetworkInterceptor( - reference.pointer, - _id_addNetworkInterceptor as jni$_.JMethodIDPtr, - _$interceptor.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _addNetworkInterceptor(_$$selfRef.pointer, + _id_addNetworkInterceptor.pointer, _$interceptor.pointer) + .object(); } - static final _id_eventListener = _class.instanceMethodId( + static final _id_eventListener = OkHttpClient$Builder._class.instanceMethodId( r'eventListener', r'(Lokhttp3/EventListener;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5312,18 +4685,20 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder eventListener(okhttp3.EventListener eventListener)` + /// from: `public fun eventListener(eventListener: okhttp3.EventListener): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder eventListener( - jni$_.JObject eventListener, + EventListener eventListener, ) { + final _$$selfRef = reference; final _$eventListener = eventListener.reference; - return _eventListener(reference.pointer, - _id_eventListener as jni$_.JMethodIDPtr, _$eventListener.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _eventListener(_$$selfRef.pointer, _id_eventListener.pointer, + _$eventListener.pointer) + .object(); } - static final _id_eventListenerFactory = _class.instanceMethodId( + static final _id_eventListenerFactory = + OkHttpClient$Builder._class.instanceMethodId( r'eventListenerFactory', r'(Lokhttp3/EventListener$Factory;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5339,18 +4714,20 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder eventListenerFactory(okhttp3.EventListener$Factory factory)` + /// from: `public fun eventListenerFactory(eventListenerFactory: okhttp3.EventListener.Factory): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder eventListenerFactory( - jni$_.JObject factory, + EventListener$$Factory factory, ) { + final _$$selfRef = reference; final _$factory = factory.reference; - return _eventListenerFactory(reference.pointer, - _id_eventListenerFactory as jni$_.JMethodIDPtr, _$factory.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _eventListenerFactory(_$$selfRef.pointer, + _id_eventListenerFactory.pointer, _$factory.pointer) + .object(); } - static final _id_retryOnConnectionFailure = _class.instanceMethodId( + static final _id_retryOnConnectionFailure = + OkHttpClient$Builder._class.instanceMethodId( r'retryOnConnectionFailure', r'(Z)Lokhttp3/OkHttpClient$Builder;', ); @@ -5363,19 +4740,20 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); - /// from: `public final okhttp3.OkHttpClient$Builder retryOnConnectionFailure(boolean z)` + /// from: `public fun retryOnConnectionFailure(retryOnConnectionFailure: kotlin.Boolean): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder retryOnConnectionFailure( - bool z, + core$_.bool z, ) { - return _retryOnConnectionFailure(reference.pointer, - _id_retryOnConnectionFailure as jni$_.JMethodIDPtr, z ? 1 : 0) - .object(const $OkHttpClient$Builder$Type()); + final _$$selfRef = reference; + return _retryOnConnectionFailure( + _$$selfRef.pointer, _id_retryOnConnectionFailure.pointer, z ? 1 : 0) + .object(); } - static final _id_authenticator = _class.instanceMethodId( + static final _id_authenticator = OkHttpClient$Builder._class.instanceMethodId( r'authenticator', r'(Lokhttp3/Authenticator;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5391,18 +4769,20 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder authenticator(okhttp3.Authenticator authenticator)` + /// from: `public fun authenticator(authenticator: okhttp3.Authenticator): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder authenticator( - jni$_.JObject authenticator, + Authenticator authenticator, ) { + final _$$selfRef = reference; final _$authenticator = authenticator.reference; - return _authenticator(reference.pointer, - _id_authenticator as jni$_.JMethodIDPtr, _$authenticator.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _authenticator(_$$selfRef.pointer, _id_authenticator.pointer, + _$authenticator.pointer) + .object(); } - static final _id_followRedirects = _class.instanceMethodId( + static final _id_followRedirects = + OkHttpClient$Builder._class.instanceMethodId( r'followRedirects', r'(Z)Lokhttp3/OkHttpClient$Builder;', ); @@ -5415,19 +4795,21 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); - /// from: `public final okhttp3.OkHttpClient$Builder followRedirects(boolean z)` + /// from: `public fun followRedirects(followRedirects: kotlin.Boolean): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder followRedirects( - bool z, + core$_.bool z, ) { - return _followRedirects(reference.pointer, - _id_followRedirects as jni$_.JMethodIDPtr, z ? 1 : 0) - .object(const $OkHttpClient$Builder$Type()); + final _$$selfRef = reference; + return _followRedirects( + _$$selfRef.pointer, _id_followRedirects.pointer, z ? 1 : 0) + .object(); } - static final _id_followSslRedirects = _class.instanceMethodId( + static final _id_followSslRedirects = + OkHttpClient$Builder._class.instanceMethodId( r'followSslRedirects', r'(Z)Lokhttp3/OkHttpClient$Builder;', ); @@ -5440,19 +4822,20 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); - /// from: `public final okhttp3.OkHttpClient$Builder followSslRedirects(boolean z)` + /// from: `public fun followSslRedirects(followProtocolRedirects: kotlin.Boolean): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder followSslRedirects( - bool z, + core$_.bool z, ) { - return _followSslRedirects(reference.pointer, - _id_followSslRedirects as jni$_.JMethodIDPtr, z ? 1 : 0) - .object(const $OkHttpClient$Builder$Type()); + final _$$selfRef = reference; + return _followSslRedirects( + _$$selfRef.pointer, _id_followSslRedirects.pointer, z ? 1 : 0) + .object(); } - static final _id_cookieJar = _class.instanceMethodId( + static final _id_cookieJar = OkHttpClient$Builder._class.instanceMethodId( r'cookieJar', r'(Lokhttp3/CookieJar;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5468,18 +4851,19 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder cookieJar(okhttp3.CookieJar cookieJar)` + /// from: `public fun cookieJar(cookieJar: okhttp3.CookieJar): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder cookieJar( - jni$_.JObject cookieJar, + CookieJar cookieJar, ) { + final _$$selfRef = reference; final _$cookieJar = cookieJar.reference; - return _cookieJar(reference.pointer, _id_cookieJar as jni$_.JMethodIDPtr, - _$cookieJar.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _cookieJar( + _$$selfRef.pointer, _id_cookieJar.pointer, _$cookieJar.pointer) + .object(); } - static final _id_cache = _class.instanceMethodId( + static final _id_cache = OkHttpClient$Builder._class.instanceMethodId( r'cache', r'(Lokhttp3/Cache;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5495,18 +4879,18 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder cache(okhttp3.Cache cache)` + /// from: `public fun cache(cache: okhttp3.Cache?): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder cache( Cache? cache, ) { + final _$$selfRef = reference; final _$cache = cache?.reference ?? jni$_.jNullReference; - return _cache( - reference.pointer, _id_cache as jni$_.JMethodIDPtr, _$cache.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _cache(_$$selfRef.pointer, _id_cache.pointer, _$cache.pointer) + .object(); } - static final _id_dns = _class.instanceMethodId( + static final _id_dns = OkHttpClient$Builder._class.instanceMethodId( r'dns', r'(Lokhttp3/Dns;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5522,17 +4906,18 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder dns(okhttp3.Dns dns)` + /// from: `public fun dns(dns: okhttp3.Dns): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder dns( - jni$_.JObject dns, + Dns dns, ) { + final _$$selfRef = reference; final _$dns = dns.reference; - return _dns(reference.pointer, _id_dns as jni$_.JMethodIDPtr, _$dns.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _dns(_$$selfRef.pointer, _id_dns.pointer, _$dns.pointer) + .object(); } - static final _id_proxy = _class.instanceMethodId( + static final _id_proxy = OkHttpClient$Builder._class.instanceMethodId( r'proxy', r'(Ljava/net/Proxy;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5548,18 +4933,18 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder proxy(java.net.Proxy proxy)` + /// from: `public fun proxy(proxy: java.net.Proxy?): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder proxy( - jni$_.JObject? proxy, + Proxy? proxy, ) { + final _$$selfRef = reference; final _$proxy = proxy?.reference ?? jni$_.jNullReference; - return _proxy( - reference.pointer, _id_proxy as jni$_.JMethodIDPtr, _$proxy.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _proxy(_$$selfRef.pointer, _id_proxy.pointer, _$proxy.pointer) + .object(); } - static final _id_proxySelector = _class.instanceMethodId( + static final _id_proxySelector = OkHttpClient$Builder._class.instanceMethodId( r'proxySelector', r'(Ljava/net/ProxySelector;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5575,18 +4960,20 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder proxySelector(java.net.ProxySelector proxySelector)` + /// from: `public fun proxySelector(proxySelector: java.net.ProxySelector): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder proxySelector( - jni$_.JObject proxySelector, + ProxySelector proxySelector, ) { + final _$$selfRef = reference; final _$proxySelector = proxySelector.reference; - return _proxySelector(reference.pointer, - _id_proxySelector as jni$_.JMethodIDPtr, _$proxySelector.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _proxySelector(_$$selfRef.pointer, _id_proxySelector.pointer, + _$proxySelector.pointer) + .object(); } - static final _id_proxyAuthenticator = _class.instanceMethodId( + static final _id_proxyAuthenticator = + OkHttpClient$Builder._class.instanceMethodId( r'proxyAuthenticator', r'(Lokhttp3/Authenticator;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5602,20 +4989,19 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder proxyAuthenticator(okhttp3.Authenticator authenticator)` + /// from: `public fun proxyAuthenticator(proxyAuthenticator: okhttp3.Authenticator): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder proxyAuthenticator( - jni$_.JObject authenticator, + Authenticator authenticator, ) { + final _$$selfRef = reference; final _$authenticator = authenticator.reference; - return _proxyAuthenticator( - reference.pointer, - _id_proxyAuthenticator as jni$_.JMethodIDPtr, - _$authenticator.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _proxyAuthenticator(_$$selfRef.pointer, + _id_proxyAuthenticator.pointer, _$authenticator.pointer) + .object(); } - static final _id_socketFactory = _class.instanceMethodId( + static final _id_socketFactory = OkHttpClient$Builder._class.instanceMethodId( r'socketFactory', r'(Ljavax/net/SocketFactory;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5631,18 +5017,20 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder socketFactory(javax.net.SocketFactory socketFactory)` + /// from: `public fun socketFactory(socketFactory: javax.net.SocketFactory): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder socketFactory( SocketFactory socketFactory, ) { + final _$$selfRef = reference; final _$socketFactory = socketFactory.reference; - return _socketFactory(reference.pointer, - _id_socketFactory as jni$_.JMethodIDPtr, _$socketFactory.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _socketFactory(_$$selfRef.pointer, _id_socketFactory.pointer, + _$socketFactory.pointer) + .object(); } - static final _id_sslSocketFactory = _class.instanceMethodId( + static final _id_sslSocketFactory = + OkHttpClient$Builder._class.instanceMethodId( r'sslSocketFactory', r'(Ljavax/net/ssl/SSLSocketFactory;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5658,20 +5046,20 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder sslSocketFactory(javax.net.ssl.SSLSocketFactory sSLSocketFactory)` + /// from: `public fun sslSocketFactory(sslSocketFactory: javax.net.ssl.SSLSocketFactory): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder sslSocketFactory( SSLSocketFactory sSLSocketFactory, ) { + final _$$selfRef = reference; final _$sSLSocketFactory = sSLSocketFactory.reference; - return _sslSocketFactory( - reference.pointer, - _id_sslSocketFactory as jni$_.JMethodIDPtr, + return _sslSocketFactory(_$$selfRef.pointer, _id_sslSocketFactory.pointer, _$sSLSocketFactory.pointer) - .object(const $OkHttpClient$Builder$Type()); + .object(); } - static final _id_sslSocketFactory$1 = _class.instanceMethodId( + static final _id_sslSocketFactory$1 = + OkHttpClient$Builder._class.instanceMethodId( r'sslSocketFactory', r'(Ljavax/net/ssl/SSLSocketFactory;Ljavax/net/ssl/X509TrustManager;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5693,23 +5081,25 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder sslSocketFactory(javax.net.ssl.SSLSocketFactory sSLSocketFactory, javax.net.ssl.X509TrustManager x509TrustManager)` + /// from: `public fun sslSocketFactory(sslSocketFactory: javax.net.ssl.SSLSocketFactory, trustManager: javax.net.ssl.X509TrustManager): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder sslSocketFactory$1( SSLSocketFactory sSLSocketFactory, X509TrustManager x509TrustManager, ) { + final _$$selfRef = reference; final _$sSLSocketFactory = sSLSocketFactory.reference; final _$x509TrustManager = x509TrustManager.reference; return _sslSocketFactory$1( - reference.pointer, - _id_sslSocketFactory$1 as jni$_.JMethodIDPtr, + _$$selfRef.pointer, + _id_sslSocketFactory$1.pointer, _$sSLSocketFactory.pointer, _$x509TrustManager.pointer) - .object(const $OkHttpClient$Builder$Type()); + .object(); } - static final _id_connectionSpecs = _class.instanceMethodId( + static final _id_connectionSpecs = + OkHttpClient$Builder._class.instanceMethodId( r'connectionSpecs', r'(Ljava/util/List;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5725,18 +5115,19 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder connectionSpecs(java.util.List list)` + /// from: `public fun connectionSpecs(connectionSpecs: kotlin.collections.List): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder connectionSpecs( - jni$_.JList list, + jni$_.JList list, ) { + final _$$selfRef = reference; final _$list = list.reference; - return _connectionSpecs(reference.pointer, - _id_connectionSpecs as jni$_.JMethodIDPtr, _$list.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _connectionSpecs( + _$$selfRef.pointer, _id_connectionSpecs.pointer, _$list.pointer) + .object(); } - static final _id_protocols = _class.instanceMethodId( + static final _id_protocols = OkHttpClient$Builder._class.instanceMethodId( r'protocols', r'(Ljava/util/List;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5752,18 +5143,19 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder protocols(java.util.List list)` + /// from: `public fun protocols(protocols: kotlin.collections.List): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder protocols( - jni$_.JList list, + jni$_.JList list, ) { + final _$$selfRef = reference; final _$list = list.reference; - return _protocols(reference.pointer, _id_protocols as jni$_.JMethodIDPtr, - _$list.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _protocols(_$$selfRef.pointer, _id_protocols.pointer, _$list.pointer) + .object(); } - static final _id_hostnameVerifier = _class.instanceMethodId( + static final _id_hostnameVerifier = + OkHttpClient$Builder._class.instanceMethodId( r'hostnameVerifier', r'(Ljavax/net/ssl/HostnameVerifier;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5779,20 +5171,20 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder hostnameVerifier(javax.net.ssl.HostnameVerifier hostnameVerifier)` + /// from: `public fun hostnameVerifier(hostnameVerifier: javax.net.ssl.HostnameVerifier): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder hostnameVerifier( HostnameVerifier hostnameVerifier, ) { + final _$$selfRef = reference; final _$hostnameVerifier = hostnameVerifier.reference; - return _hostnameVerifier( - reference.pointer, - _id_hostnameVerifier as jni$_.JMethodIDPtr, + return _hostnameVerifier(_$$selfRef.pointer, _id_hostnameVerifier.pointer, _$hostnameVerifier.pointer) - .object(const $OkHttpClient$Builder$Type()); + .object(); } - static final _id_certificatePinner = _class.instanceMethodId( + static final _id_certificatePinner = + OkHttpClient$Builder._class.instanceMethodId( r'certificatePinner', r'(Lokhttp3/CertificatePinner;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5808,20 +5200,19 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder certificatePinner(okhttp3.CertificatePinner certificatePinner)` + /// from: `public fun certificatePinner(certificatePinner: okhttp3.CertificatePinner): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder certificatePinner( - jni$_.JObject certificatePinner, + CertificatePinner certificatePinner, ) { + final _$$selfRef = reference; final _$certificatePinner = certificatePinner.reference; - return _certificatePinner( - reference.pointer, - _id_certificatePinner as jni$_.JMethodIDPtr, + return _certificatePinner(_$$selfRef.pointer, _id_certificatePinner.pointer, _$certificatePinner.pointer) - .object(const $OkHttpClient$Builder$Type()); + .object(); } - static final _id_callTimeout = _class.instanceMethodId( + static final _id_callTimeout = OkHttpClient$Builder._class.instanceMethodId( r'callTimeout', r'(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5836,21 +5227,22 @@ class OkHttpClient$Builder extends jni$_.JObject { 'globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + jni$_.JMethodIDPtr, core$_.int, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder callTimeout(long j, java.util.concurrent.TimeUnit timeUnit)` + /// from: `public fun callTimeout(timeout: kotlin.Long, unit: java.util.concurrent.TimeUnit): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder callTimeout( - int j, + core$_.int j, TimeUnit timeUnit, ) { + final _$$selfRef = reference; final _$timeUnit = timeUnit.reference; - return _callTimeout(reference.pointer, - _id_callTimeout as jni$_.JMethodIDPtr, j, _$timeUnit.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _callTimeout( + _$$selfRef.pointer, _id_callTimeout.pointer, j, _$timeUnit.pointer) + .object(); } - static final _id_callTimeout$1 = _class.instanceMethodId( + static final _id_callTimeout$1 = OkHttpClient$Builder._class.instanceMethodId( r'callTimeout', r'(Ljava/time/Duration;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5866,18 +5258,20 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder callTimeout(java.time.Duration duration)` + /// from: `public fun callTimeout(duration: java.time.Duration): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder callTimeout$1( - jni$_.JObject duration, + Duration duration, ) { + final _$$selfRef = reference; final _$duration = duration.reference; - return _callTimeout$1(reference.pointer, - _id_callTimeout$1 as jni$_.JMethodIDPtr, _$duration.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _callTimeout$1( + _$$selfRef.pointer, _id_callTimeout$1.pointer, _$duration.pointer) + .object(); } - static final _id_connectTimeout = _class.instanceMethodId( + static final _id_connectTimeout = + OkHttpClient$Builder._class.instanceMethodId( r'connectTimeout', r'(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5892,21 +5286,23 @@ class OkHttpClient$Builder extends jni$_.JObject { 'globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + jni$_.JMethodIDPtr, core$_.int, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder connectTimeout(long j, java.util.concurrent.TimeUnit timeUnit)` + /// from: `public fun connectTimeout(timeout: kotlin.Long, unit: java.util.concurrent.TimeUnit): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder connectTimeout( - int j, + core$_.int j, TimeUnit timeUnit, ) { + final _$$selfRef = reference; final _$timeUnit = timeUnit.reference; - return _connectTimeout(reference.pointer, - _id_connectTimeout as jni$_.JMethodIDPtr, j, _$timeUnit.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _connectTimeout(_$$selfRef.pointer, _id_connectTimeout.pointer, j, + _$timeUnit.pointer) + .object(); } - static final _id_connectTimeout$1 = _class.instanceMethodId( + static final _id_connectTimeout$1 = + OkHttpClient$Builder._class.instanceMethodId( r'connectTimeout', r'(Ljava/time/Duration;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5922,18 +5318,19 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder connectTimeout(java.time.Duration duration)` + /// from: `public fun connectTimeout(duration: java.time.Duration): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder connectTimeout$1( - jni$_.JObject duration, + Duration duration, ) { + final _$$selfRef = reference; final _$duration = duration.reference; - return _connectTimeout$1(reference.pointer, - _id_connectTimeout$1 as jni$_.JMethodIDPtr, _$duration.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _connectTimeout$1(_$$selfRef.pointer, _id_connectTimeout$1.pointer, + _$duration.pointer) + .object(); } - static final _id_readTimeout = _class.instanceMethodId( + static final _id_readTimeout = OkHttpClient$Builder._class.instanceMethodId( r'readTimeout', r'(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5948,21 +5345,22 @@ class OkHttpClient$Builder extends jni$_.JObject { 'globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + jni$_.JMethodIDPtr, core$_.int, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder readTimeout(long j, java.util.concurrent.TimeUnit timeUnit)` + /// from: `public fun readTimeout(timeout: kotlin.Long, unit: java.util.concurrent.TimeUnit): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder readTimeout( - int j, + core$_.int j, TimeUnit timeUnit, ) { + final _$$selfRef = reference; final _$timeUnit = timeUnit.reference; - return _readTimeout(reference.pointer, - _id_readTimeout as jni$_.JMethodIDPtr, j, _$timeUnit.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _readTimeout( + _$$selfRef.pointer, _id_readTimeout.pointer, j, _$timeUnit.pointer) + .object(); } - static final _id_readTimeout$1 = _class.instanceMethodId( + static final _id_readTimeout$1 = OkHttpClient$Builder._class.instanceMethodId( r'readTimeout', r'(Ljava/time/Duration;)Lokhttp3/OkHttpClient$Builder;', ); @@ -5978,18 +5376,19 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder readTimeout(java.time.Duration duration)` + /// from: `public fun readTimeout(duration: java.time.Duration): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder readTimeout$1( - jni$_.JObject duration, + Duration duration, ) { + final _$$selfRef = reference; final _$duration = duration.reference; - return _readTimeout$1(reference.pointer, - _id_readTimeout$1 as jni$_.JMethodIDPtr, _$duration.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _readTimeout$1( + _$$selfRef.pointer, _id_readTimeout$1.pointer, _$duration.pointer) + .object(); } - static final _id_writeTimeout = _class.instanceMethodId( + static final _id_writeTimeout = OkHttpClient$Builder._class.instanceMethodId( r'writeTimeout', r'(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;', ); @@ -6004,21 +5403,23 @@ class OkHttpClient$Builder extends jni$_.JObject { 'globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + jni$_.JMethodIDPtr, core$_.int, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder writeTimeout(long j, java.util.concurrent.TimeUnit timeUnit)` + /// from: `public fun writeTimeout(timeout: kotlin.Long, unit: java.util.concurrent.TimeUnit): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder writeTimeout( - int j, + core$_.int j, TimeUnit timeUnit, ) { + final _$$selfRef = reference; final _$timeUnit = timeUnit.reference; - return _writeTimeout(reference.pointer, - _id_writeTimeout as jni$_.JMethodIDPtr, j, _$timeUnit.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _writeTimeout( + _$$selfRef.pointer, _id_writeTimeout.pointer, j, _$timeUnit.pointer) + .object(); } - static final _id_writeTimeout$1 = _class.instanceMethodId( + static final _id_writeTimeout$1 = + OkHttpClient$Builder._class.instanceMethodId( r'writeTimeout', r'(Ljava/time/Duration;)Lokhttp3/OkHttpClient$Builder;', ); @@ -6034,18 +5435,19 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder writeTimeout(java.time.Duration duration)` + /// from: `public fun writeTimeout(duration: java.time.Duration): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder writeTimeout$1( - jni$_.JObject duration, + Duration duration, ) { + final _$$selfRef = reference; final _$duration = duration.reference; - return _writeTimeout$1(reference.pointer, - _id_writeTimeout$1 as jni$_.JMethodIDPtr, _$duration.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _writeTimeout$1( + _$$selfRef.pointer, _id_writeTimeout$1.pointer, _$duration.pointer) + .object(); } - static final _id_pingInterval = _class.instanceMethodId( + static final _id_pingInterval = OkHttpClient$Builder._class.instanceMethodId( r'pingInterval', r'(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;', ); @@ -6060,21 +5462,23 @@ class OkHttpClient$Builder extends jni$_.JObject { 'globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + jni$_.JMethodIDPtr, core$_.int, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder pingInterval(long j, java.util.concurrent.TimeUnit timeUnit)` + /// from: `public fun pingInterval(interval: kotlin.Long, unit: java.util.concurrent.TimeUnit): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder pingInterval( - int j, + core$_.int j, TimeUnit timeUnit, ) { + final _$$selfRef = reference; final _$timeUnit = timeUnit.reference; - return _pingInterval(reference.pointer, - _id_pingInterval as jni$_.JMethodIDPtr, j, _$timeUnit.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _pingInterval( + _$$selfRef.pointer, _id_pingInterval.pointer, j, _$timeUnit.pointer) + .object(); } - static final _id_pingInterval$1 = _class.instanceMethodId( + static final _id_pingInterval$1 = + OkHttpClient$Builder._class.instanceMethodId( r'pingInterval', r'(Ljava/time/Duration;)Lokhttp3/OkHttpClient$Builder;', ); @@ -6090,18 +5494,20 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder pingInterval(java.time.Duration duration)` + /// from: `public fun pingInterval(duration: java.time.Duration): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder pingInterval$1( - jni$_.JObject duration, + Duration duration, ) { + final _$$selfRef = reference; final _$duration = duration.reference; - return _pingInterval$1(reference.pointer, - _id_pingInterval$1 as jni$_.JMethodIDPtr, _$duration.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _pingInterval$1( + _$$selfRef.pointer, _id_pingInterval$1.pointer, _$duration.pointer) + .object(); } - static final _id_minWebSocketMessageToCompress = _class.instanceMethodId( + static final _id_minWebSocketMessageToCompress = + OkHttpClient$Builder._class.instanceMethodId( r'minWebSocketMessageToCompress', r'(J)Lokhttp3/OkHttpClient$Builder;', ); @@ -6114,19 +5520,20 @@ class OkHttpClient$Builder extends jni$_.JObject { 'globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); - /// from: `public final okhttp3.OkHttpClient$Builder minWebSocketMessageToCompress(long j)` + /// from: `public fun minWebSocketMessageToCompress(bytes: kotlin.Long): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder minWebSocketMessageToCompress( - int j, + core$_.int j, ) { - return _minWebSocketMessageToCompress(reference.pointer, - _id_minWebSocketMessageToCompress as jni$_.JMethodIDPtr, j) - .object(const $OkHttpClient$Builder$Type()); + final _$$selfRef = reference; + return _minWebSocketMessageToCompress( + _$$selfRef.pointer, _id_minWebSocketMessageToCompress.pointer, j) + .object(); } - static final _id_build = _class.instanceMethodId( + static final _id_build = OkHttpClient$Builder._class.instanceMethodId( r'build', r'()Lokhttp3/OkHttpClient;', ); @@ -6143,108 +5550,32 @@ class OkHttpClient$Builder extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final okhttp3.OkHttpClient build()` + /// from: `public fun build(): okhttp3.OkHttpClient` /// The returned object must be released after use, by calling the [release] method. OkHttpClient build() { - return _build(reference.pointer, _id_build as jni$_.JMethodIDPtr) - .object(const $OkHttpClient$Type()); - } -} - -final class $OkHttpClient$Builder$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $OkHttpClient$Builder$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/OkHttpClient$Builder;'; - - @jni$_.internal - @core$_.override - OkHttpClient$Builder? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : OkHttpClient$Builder.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($OkHttpClient$Builder$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($OkHttpClient$Builder$NullableType) && - other is $OkHttpClient$Builder$NullableType; + final _$$selfRef = reference; + return _build(_$$selfRef.pointer, _id_build.pointer).object(); } } -final class $OkHttpClient$Builder$Type - extends jni$_.JObjType { +final class $OkHttpClient$Builder$Type$ + extends jni$_.JType { @jni$_.internal - const $OkHttpClient$Builder$Type(); + const $OkHttpClient$Builder$Type$(); @jni$_.internal @core$_.override String get signature => r'Lokhttp3/OkHttpClient$Builder;'; - - @jni$_.internal - @core$_.override - OkHttpClient$Builder fromReference(jni$_.JReference reference) => - OkHttpClient$Builder.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $OkHttpClient$Builder$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($OkHttpClient$Builder$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($OkHttpClient$Builder$Type) && - other is $OkHttpClient$Builder$Type; - } } /// from: `okhttp3.OkHttpClient$Companion` -class OkHttpClient$Companion extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - OkHttpClient$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type OkHttpClient$Companion._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'okhttp3/OkHttpClient$Companion'); /// The type which includes information such as the signature of this class. - static const nullableType = $OkHttpClient$Companion$NullableType(); - static const type = $OkHttpClient$Companion$Type(); + static const jni$_.JType type = + $OkHttpClient$Companion$Type$(); static final _id_new$ = _class.constructorId( r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', ); @@ -6263,110 +5594,34 @@ class OkHttpClient$Companion extends jni$_.JObject { /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` /// The returned object must be released after use, by calling the [release] method. factory OkHttpClient$Companion( - jni$_.JObject? defaultConstructorMarker, + DefaultConstructorMarker? defaultConstructorMarker, ) { + final _$$classRef = _class.reference; final _$defaultConstructorMarker = defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return OkHttpClient$Companion.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$defaultConstructorMarker.pointer) - .reference); + return _new$(_$$classRef.pointer, _id_new$.pointer, + _$defaultConstructorMarker.pointer) + .object(); } } -final class $OkHttpClient$Companion$NullableType - extends jni$_.JObjType { +final class $OkHttpClient$Companion$Type$ + extends jni$_.JType { @jni$_.internal - const $OkHttpClient$Companion$NullableType(); + const $OkHttpClient$Companion$Type$(); @jni$_.internal @core$_.override String get signature => r'Lokhttp3/OkHttpClient$Companion;'; +} - @jni$_.internal - @core$_.override - OkHttpClient$Companion? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : OkHttpClient$Companion.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($OkHttpClient$Companion$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($OkHttpClient$Companion$NullableType) && - other is $OkHttpClient$Companion$NullableType; - } -} - -final class $OkHttpClient$Companion$Type - extends jni$_.JObjType { - @jni$_.internal - const $OkHttpClient$Companion$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/OkHttpClient$Companion;'; - - @jni$_.internal - @core$_.override - OkHttpClient$Companion fromReference(jni$_.JReference reference) => - OkHttpClient$Companion.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $OkHttpClient$Companion$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($OkHttpClient$Companion$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($OkHttpClient$Companion$Type) && - other is $OkHttpClient$Companion$Type; - } -} - -/// from: `okhttp3.OkHttpClient` -class OkHttpClient extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - OkHttpClient.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = jni$_.JClass.forName(r'okhttp3/OkHttpClient'); +/// from: `okhttp3.OkHttpClient` +extension type OkHttpClient._(jni$_.JObject _$this) + implements jni$_.JObject, Cloneable, Call$Factory, WebSocket$Factory { + static final _class = jni$_.JClass.forName(r'okhttp3/OkHttpClient'); /// The type which includes information such as the signature of this class. - static const nullableType = $OkHttpClient$NullableType(); - static const type = $OkHttpClient$Type(); + static const jni$_.JType type = $OkHttpClient$Type$(); static final _id_Companion = _class.staticFieldId( r'Companion', r'Lokhttp3/OkHttpClient$Companion;', @@ -6375,7 +5630,8 @@ class OkHttpClient extends jni$_.JObject { /// from: `static public final okhttp3.OkHttpClient$Companion Companion` /// The returned object must be released after use, by calling the [release] method. static OkHttpClient$Companion get Companion => - _id_Companion.get(_class, const $OkHttpClient$Companion$Type()); + _id_Companion.get(_class, OkHttpClient$Companion.type) + as OkHttpClient$Companion; static final _id_new$ = _class.constructorId( r'(Lokhttp3/OkHttpClient$Builder;)V', @@ -6397,13 +5653,39 @@ class OkHttpClient extends jni$_.JObject { factory OkHttpClient( OkHttpClient$Builder builder, ) { + final _$$classRef = _class.reference; final _$builder = builder.reference; - return OkHttpClient.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$builder.pointer) - .reference); + return _new$(_$$classRef.pointer, _id_new$.pointer, _$builder.pointer) + .object(); + } + + static final _id_new$1 = _class.constructorId( + r'()V', + ); + + static final _new$1 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public void ()` + /// The returned object must be released after use, by calling the [release] method. + factory OkHttpClient.new$1() { + final _$$classRef = _class.reference; + return _new$1(_$$classRef.pointer, _id_new$1.pointer) + .object(); } +} - static final _id_dispatcher = _class.instanceMethodId( +extension OkHttpClient$$Methods on OkHttpClient { + static final _id_dispatcher = OkHttpClient._class.instanceMethodId( r'dispatcher', r'()Lokhttp3/Dispatcher;', ); @@ -6423,11 +5705,12 @@ class OkHttpClient extends jni$_.JObject { /// from: `public final okhttp3.Dispatcher dispatcher()` /// The returned object must be released after use, by calling the [release] method. Dispatcher dispatcher() { - return _dispatcher(reference.pointer, _id_dispatcher as jni$_.JMethodIDPtr) - .object(const $Dispatcher$Type()); + final _$$selfRef = reference; + return _dispatcher(_$$selfRef.pointer, _id_dispatcher.pointer) + .object(); } - static final _id_connectionPool = _class.instanceMethodId( + static final _id_connectionPool = OkHttpClient._class.instanceMethodId( r'connectionPool', r'()Lokhttp3/ConnectionPool;', ); @@ -6447,12 +5730,12 @@ class OkHttpClient extends jni$_.JObject { /// from: `public final okhttp3.ConnectionPool connectionPool()` /// The returned object must be released after use, by calling the [release] method. ConnectionPool connectionPool() { - return _connectionPool( - reference.pointer, _id_connectionPool as jni$_.JMethodIDPtr) - .object(const $ConnectionPool$Type()); + final _$$selfRef = reference; + return _connectionPool(_$$selfRef.pointer, _id_connectionPool.pointer) + .object(); } - static final _id_interceptors = _class.instanceMethodId( + static final _id_interceptors = OkHttpClient._class.instanceMethodId( r'interceptors', r'()Ljava/util/List;', ); @@ -6469,16 +5752,15 @@ class OkHttpClient extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final java.util.List interceptors()` + /// from: `public final java.util.List interceptors()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList interceptors() { - return _interceptors( - reference.pointer, _id_interceptors as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JObjectType())); + jni$_.JList interceptors() { + final _$$selfRef = reference; + return _interceptors(_$$selfRef.pointer, _id_interceptors.pointer) + .object>(); } - static final _id_networkInterceptors = _class.instanceMethodId( + static final _id_networkInterceptors = OkHttpClient._class.instanceMethodId( r'networkInterceptors', r'()Ljava/util/List;', ); @@ -6495,16 +5777,16 @@ class OkHttpClient extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final java.util.List networkInterceptors()` + /// from: `public final java.util.List networkInterceptors()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList networkInterceptors() { + jni$_.JList networkInterceptors() { + final _$$selfRef = reference; return _networkInterceptors( - reference.pointer, _id_networkInterceptors as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JObjectType())); + _$$selfRef.pointer, _id_networkInterceptors.pointer) + .object>(); } - static final _id_eventListenerFactory = _class.instanceMethodId( + static final _id_eventListenerFactory = OkHttpClient._class.instanceMethodId( r'eventListenerFactory', r'()Lokhttp3/EventListener$Factory;', ); @@ -6523,13 +5805,15 @@ class OkHttpClient extends jni$_.JObject { /// from: `public final okhttp3.EventListener$Factory eventListenerFactory()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject eventListenerFactory() { + EventListener$$Factory eventListenerFactory() { + final _$$selfRef = reference; return _eventListenerFactory( - reference.pointer, _id_eventListenerFactory as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + _$$selfRef.pointer, _id_eventListenerFactory.pointer) + .object(); } - static final _id_retryOnConnectionFailure = _class.instanceMethodId( + static final _id_retryOnConnectionFailure = + OkHttpClient._class.instanceMethodId( r'retryOnConnectionFailure', r'()Z', ); @@ -6547,13 +5831,14 @@ class OkHttpClient extends jni$_.JObject { )>(); /// from: `public final boolean retryOnConnectionFailure()` - bool retryOnConnectionFailure() { - return _retryOnConnectionFailure(reference.pointer, - _id_retryOnConnectionFailure as jni$_.JMethodIDPtr) + core$_.bool retryOnConnectionFailure() { + final _$$selfRef = reference; + return _retryOnConnectionFailure( + _$$selfRef.pointer, _id_retryOnConnectionFailure.pointer) .boolean; } - static final _id_authenticator = _class.instanceMethodId( + static final _id_authenticator = OkHttpClient._class.instanceMethodId( r'authenticator', r'()Lokhttp3/Authenticator;', ); @@ -6572,13 +5857,13 @@ class OkHttpClient extends jni$_.JObject { /// from: `public final okhttp3.Authenticator authenticator()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject authenticator() { - return _authenticator( - reference.pointer, _id_authenticator as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + Authenticator authenticator() { + final _$$selfRef = reference; + return _authenticator(_$$selfRef.pointer, _id_authenticator.pointer) + .object(); } - static final _id_followRedirects = _class.instanceMethodId( + static final _id_followRedirects = OkHttpClient._class.instanceMethodId( r'followRedirects', r'()Z', ); @@ -6596,13 +5881,13 @@ class OkHttpClient extends jni$_.JObject { )>(); /// from: `public final boolean followRedirects()` - bool followRedirects() { - return _followRedirects( - reference.pointer, _id_followRedirects as jni$_.JMethodIDPtr) + core$_.bool followRedirects() { + final _$$selfRef = reference; + return _followRedirects(_$$selfRef.pointer, _id_followRedirects.pointer) .boolean; } - static final _id_followSslRedirects = _class.instanceMethodId( + static final _id_followSslRedirects = OkHttpClient._class.instanceMethodId( r'followSslRedirects', r'()Z', ); @@ -6620,13 +5905,14 @@ class OkHttpClient extends jni$_.JObject { )>(); /// from: `public final boolean followSslRedirects()` - bool followSslRedirects() { + core$_.bool followSslRedirects() { + final _$$selfRef = reference; return _followSslRedirects( - reference.pointer, _id_followSslRedirects as jni$_.JMethodIDPtr) + _$$selfRef.pointer, _id_followSslRedirects.pointer) .boolean; } - static final _id_cookieJar = _class.instanceMethodId( + static final _id_cookieJar = OkHttpClient._class.instanceMethodId( r'cookieJar', r'()Lokhttp3/CookieJar;', ); @@ -6645,12 +5931,13 @@ class OkHttpClient extends jni$_.JObject { /// from: `public final okhttp3.CookieJar cookieJar()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject cookieJar() { - return _cookieJar(reference.pointer, _id_cookieJar as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + CookieJar cookieJar() { + final _$$selfRef = reference; + return _cookieJar(_$$selfRef.pointer, _id_cookieJar.pointer) + .object(); } - static final _id_cache = _class.instanceMethodId( + static final _id_cache = OkHttpClient._class.instanceMethodId( r'cache', r'()Lokhttp3/Cache;', ); @@ -6670,11 +5957,11 @@ class OkHttpClient extends jni$_.JObject { /// from: `public final okhttp3.Cache cache()` /// The returned object must be released after use, by calling the [release] method. Cache? cache() { - return _cache(reference.pointer, _id_cache as jni$_.JMethodIDPtr) - .object(const $Cache$NullableType()); + final _$$selfRef = reference; + return _cache(_$$selfRef.pointer, _id_cache.pointer).object(); } - static final _id_dns = _class.instanceMethodId( + static final _id_dns = OkHttpClient._class.instanceMethodId( r'dns', r'()Lokhttp3/Dns;', ); @@ -6693,12 +5980,12 @@ class OkHttpClient extends jni$_.JObject { /// from: `public final okhttp3.Dns dns()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject dns() { - return _dns(reference.pointer, _id_dns as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + Dns dns() { + final _$$selfRef = reference; + return _dns(_$$selfRef.pointer, _id_dns.pointer).object(); } - static final _id_proxy = _class.instanceMethodId( + static final _id_proxy = OkHttpClient._class.instanceMethodId( r'proxy', r'()Ljava/net/Proxy;', ); @@ -6717,12 +6004,12 @@ class OkHttpClient extends jni$_.JObject { /// from: `public final java.net.Proxy proxy()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? proxy() { - return _proxy(reference.pointer, _id_proxy as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + Proxy? proxy() { + final _$$selfRef = reference; + return _proxy(_$$selfRef.pointer, _id_proxy.pointer).object(); } - static final _id_proxySelector = _class.instanceMethodId( + static final _id_proxySelector = OkHttpClient._class.instanceMethodId( r'proxySelector', r'()Ljava/net/ProxySelector;', ); @@ -6741,13 +6028,13 @@ class OkHttpClient extends jni$_.JObject { /// from: `public final java.net.ProxySelector proxySelector()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject proxySelector() { - return _proxySelector( - reference.pointer, _id_proxySelector as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + ProxySelector proxySelector() { + final _$$selfRef = reference; + return _proxySelector(_$$selfRef.pointer, _id_proxySelector.pointer) + .object(); } - static final _id_proxyAuthenticator = _class.instanceMethodId( + static final _id_proxyAuthenticator = OkHttpClient._class.instanceMethodId( r'proxyAuthenticator', r'()Lokhttp3/Authenticator;', ); @@ -6766,13 +6053,14 @@ class OkHttpClient extends jni$_.JObject { /// from: `public final okhttp3.Authenticator proxyAuthenticator()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject proxyAuthenticator() { + Authenticator proxyAuthenticator() { + final _$$selfRef = reference; return _proxyAuthenticator( - reference.pointer, _id_proxyAuthenticator as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + _$$selfRef.pointer, _id_proxyAuthenticator.pointer) + .object(); } - static final _id_socketFactory = _class.instanceMethodId( + static final _id_socketFactory = OkHttpClient._class.instanceMethodId( r'socketFactory', r'()Ljavax/net/SocketFactory;', ); @@ -6792,12 +6080,12 @@ class OkHttpClient extends jni$_.JObject { /// from: `public final javax.net.SocketFactory socketFactory()` /// The returned object must be released after use, by calling the [release] method. SocketFactory socketFactory() { - return _socketFactory( - reference.pointer, _id_socketFactory as jni$_.JMethodIDPtr) - .object(const $SocketFactory$Type()); + final _$$selfRef = reference; + return _socketFactory(_$$selfRef.pointer, _id_socketFactory.pointer) + .object(); } - static final _id_sslSocketFactory = _class.instanceMethodId( + static final _id_sslSocketFactory = OkHttpClient._class.instanceMethodId( r'sslSocketFactory', r'()Ljavax/net/ssl/SSLSocketFactory;', ); @@ -6817,12 +6105,12 @@ class OkHttpClient extends jni$_.JObject { /// from: `public final javax.net.ssl.SSLSocketFactory sslSocketFactory()` /// The returned object must be released after use, by calling the [release] method. SSLSocketFactory sslSocketFactory() { - return _sslSocketFactory( - reference.pointer, _id_sslSocketFactory as jni$_.JMethodIDPtr) - .object(const $SSLSocketFactory$Type()); + final _$$selfRef = reference; + return _sslSocketFactory(_$$selfRef.pointer, _id_sslSocketFactory.pointer) + .object(); } - static final _id_x509TrustManager = _class.instanceMethodId( + static final _id_x509TrustManager = OkHttpClient._class.instanceMethodId( r'x509TrustManager', r'()Ljavax/net/ssl/X509TrustManager;', ); @@ -6842,12 +6130,12 @@ class OkHttpClient extends jni$_.JObject { /// from: `public final javax.net.ssl.X509TrustManager x509TrustManager()` /// The returned object must be released after use, by calling the [release] method. X509TrustManager? x509TrustManager() { - return _x509TrustManager( - reference.pointer, _id_x509TrustManager as jni$_.JMethodIDPtr) - .object(const $X509TrustManager$NullableType()); + final _$$selfRef = reference; + return _x509TrustManager(_$$selfRef.pointer, _id_x509TrustManager.pointer) + .object(); } - static final _id_connectionSpecs = _class.instanceMethodId( + static final _id_connectionSpecs = OkHttpClient._class.instanceMethodId( r'connectionSpecs', r'()Ljava/util/List;', ); @@ -6864,16 +6152,15 @@ class OkHttpClient extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final java.util.List connectionSpecs()` + /// from: `public final java.util.List connectionSpecs()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList connectionSpecs() { - return _connectionSpecs( - reference.pointer, _id_connectionSpecs as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JObjectType())); + jni$_.JList connectionSpecs() { + final _$$selfRef = reference; + return _connectionSpecs(_$$selfRef.pointer, _id_connectionSpecs.pointer) + .object>(); } - static final _id_protocols = _class.instanceMethodId( + static final _id_protocols = OkHttpClient._class.instanceMethodId( r'protocols', r'()Ljava/util/List;', ); @@ -6890,15 +6177,15 @@ class OkHttpClient extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final java.util.List protocols()` + /// from: `public final java.util.List protocols()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList protocols() { - return _protocols(reference.pointer, _id_protocols as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JObjectType())); + jni$_.JList protocols() { + final _$$selfRef = reference; + return _protocols(_$$selfRef.pointer, _id_protocols.pointer) + .object>(); } - static final _id_hostnameVerifier = _class.instanceMethodId( + static final _id_hostnameVerifier = OkHttpClient._class.instanceMethodId( r'hostnameVerifier', r'()Ljavax/net/ssl/HostnameVerifier;', ); @@ -6918,12 +6205,12 @@ class OkHttpClient extends jni$_.JObject { /// from: `public final javax.net.ssl.HostnameVerifier hostnameVerifier()` /// The returned object must be released after use, by calling the [release] method. HostnameVerifier hostnameVerifier() { - return _hostnameVerifier( - reference.pointer, _id_hostnameVerifier as jni$_.JMethodIDPtr) - .object(const $HostnameVerifier$Type()); + final _$$selfRef = reference; + return _hostnameVerifier(_$$selfRef.pointer, _id_hostnameVerifier.pointer) + .object(); } - static final _id_certificatePinner = _class.instanceMethodId( + static final _id_certificatePinner = OkHttpClient._class.instanceMethodId( r'certificatePinner', r'()Lokhttp3/CertificatePinner;', ); @@ -6942,13 +6229,14 @@ class OkHttpClient extends jni$_.JObject { /// from: `public final okhttp3.CertificatePinner certificatePinner()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject certificatePinner() { - return _certificatePinner( - reference.pointer, _id_certificatePinner as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + CertificatePinner certificatePinner() { + final _$$selfRef = reference; + return _certificatePinner(_$$selfRef.pointer, _id_certificatePinner.pointer) + .object(); } - static final _id_certificateChainCleaner = _class.instanceMethodId( + static final _id_certificateChainCleaner = + OkHttpClient._class.instanceMethodId( r'certificateChainCleaner', r'()Lokhttp3/internal/tls/CertificateChainCleaner;', ); @@ -6967,13 +6255,14 @@ class OkHttpClient extends jni$_.JObject { /// from: `public final okhttp3.internal.tls.CertificateChainCleaner certificateChainCleaner()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? certificateChainCleaner() { - return _certificateChainCleaner(reference.pointer, - _id_certificateChainCleaner as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + CertificateChainCleaner? certificateChainCleaner() { + final _$$selfRef = reference; + return _certificateChainCleaner( + _$$selfRef.pointer, _id_certificateChainCleaner.pointer) + .object(); } - static final _id_callTimeoutMillis = _class.instanceMethodId( + static final _id_callTimeoutMillis = OkHttpClient._class.instanceMethodId( r'callTimeoutMillis', r'()I', ); @@ -6991,13 +6280,13 @@ class OkHttpClient extends jni$_.JObject { )>(); /// from: `public final int callTimeoutMillis()` - int callTimeoutMillis() { - return _callTimeoutMillis( - reference.pointer, _id_callTimeoutMillis as jni$_.JMethodIDPtr) + core$_.int callTimeoutMillis() { + final _$$selfRef = reference; + return _callTimeoutMillis(_$$selfRef.pointer, _id_callTimeoutMillis.pointer) .integer; } - static final _id_connectTimeoutMillis = _class.instanceMethodId( + static final _id_connectTimeoutMillis = OkHttpClient._class.instanceMethodId( r'connectTimeoutMillis', r'()I', ); @@ -7015,13 +6304,14 @@ class OkHttpClient extends jni$_.JObject { )>(); /// from: `public final int connectTimeoutMillis()` - int connectTimeoutMillis() { + core$_.int connectTimeoutMillis() { + final _$$selfRef = reference; return _connectTimeoutMillis( - reference.pointer, _id_connectTimeoutMillis as jni$_.JMethodIDPtr) + _$$selfRef.pointer, _id_connectTimeoutMillis.pointer) .integer; } - static final _id_readTimeoutMillis = _class.instanceMethodId( + static final _id_readTimeoutMillis = OkHttpClient._class.instanceMethodId( r'readTimeoutMillis', r'()I', ); @@ -7039,13 +6329,13 @@ class OkHttpClient extends jni$_.JObject { )>(); /// from: `public final int readTimeoutMillis()` - int readTimeoutMillis() { - return _readTimeoutMillis( - reference.pointer, _id_readTimeoutMillis as jni$_.JMethodIDPtr) + core$_.int readTimeoutMillis() { + final _$$selfRef = reference; + return _readTimeoutMillis(_$$selfRef.pointer, _id_readTimeoutMillis.pointer) .integer; } - static final _id_writeTimeoutMillis = _class.instanceMethodId( + static final _id_writeTimeoutMillis = OkHttpClient._class.instanceMethodId( r'writeTimeoutMillis', r'()I', ); @@ -7063,13 +6353,14 @@ class OkHttpClient extends jni$_.JObject { )>(); /// from: `public final int writeTimeoutMillis()` - int writeTimeoutMillis() { + core$_.int writeTimeoutMillis() { + final _$$selfRef = reference; return _writeTimeoutMillis( - reference.pointer, _id_writeTimeoutMillis as jni$_.JMethodIDPtr) + _$$selfRef.pointer, _id_writeTimeoutMillis.pointer) .integer; } - static final _id_pingIntervalMillis = _class.instanceMethodId( + static final _id_pingIntervalMillis = OkHttpClient._class.instanceMethodId( r'pingIntervalMillis', r'()I', ); @@ -7087,13 +6378,15 @@ class OkHttpClient extends jni$_.JObject { )>(); /// from: `public final int pingIntervalMillis()` - int pingIntervalMillis() { + core$_.int pingIntervalMillis() { + final _$$selfRef = reference; return _pingIntervalMillis( - reference.pointer, _id_pingIntervalMillis as jni$_.JMethodIDPtr) + _$$selfRef.pointer, _id_pingIntervalMillis.pointer) .integer; } - static final _id_minWebSocketMessageToCompress = _class.instanceMethodId( + static final _id_minWebSocketMessageToCompress = + OkHttpClient._class.instanceMethodId( r'minWebSocketMessageToCompress', r'()J', ); @@ -7112,18 +6405,19 @@ class OkHttpClient extends jni$_.JObject { )>(); /// from: `public final long minWebSocketMessageToCompress()` - int minWebSocketMessageToCompress() { - return _minWebSocketMessageToCompress(reference.pointer, - _id_minWebSocketMessageToCompress as jni$_.JMethodIDPtr) + core$_.int minWebSocketMessageToCompress() { + final _$$selfRef = reference; + return _minWebSocketMessageToCompress( + _$$selfRef.pointer, _id_minWebSocketMessageToCompress.pointer) .long; } - static final _id_getRouteDatabase = _class.instanceMethodId( + static final _id_get$routeDatabase = OkHttpClient._class.instanceMethodId( r'getRouteDatabase', r'()Lokhttp3/internal/connection/RouteDatabase;', ); - static final _getRouteDatabase = jni$_.ProtectedJniExtensions.lookup< + static final _get$routeDatabase = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -7137,37 +6431,13 @@ class OkHttpClient extends jni$_.JObject { /// from: `public final okhttp3.internal.connection.RouteDatabase getRouteDatabase()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getRouteDatabase() { - return _getRouteDatabase( - reference.pointer, _id_getRouteDatabase as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); - } - - static final _id_new$1 = _class.constructorId( - r'()V', - ); - - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public void ()` - /// The returned object must be released after use, by calling the [release] method. - factory OkHttpClient.new$1() { - return OkHttpClient.fromReference( - _new$1(_class.reference.pointer, _id_new$1 as jni$_.JMethodIDPtr) - .reference); + RouteDatabase get routeDatabase { + final _$$selfRef = reference; + return _get$routeDatabase(_$$selfRef.pointer, _id_get$routeDatabase.pointer) + .object(); } - static final _id_newCall = _class.instanceMethodId( + static final _id_newCall = OkHttpClient._class.instanceMethodId( r'newCall', r'(Lokhttp3/Request;)Lokhttp3/Call;', ); @@ -7183,18 +6453,18 @@ class OkHttpClient extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public okhttp3.Call newCall(okhttp3.Request request)` + /// from: `public fun newCall(request: okhttp3.Request): okhttp3.Call` /// The returned object must be released after use, by calling the [release] method. Call newCall( Request request, ) { + final _$$selfRef = reference; final _$request = request.reference; - return _newCall(reference.pointer, _id_newCall as jni$_.JMethodIDPtr, - _$request.pointer) - .object(const $Call$Type()); + return _newCall(_$$selfRef.pointer, _id_newCall.pointer, _$request.pointer) + .object(); } - static final _id_newWebSocket = _class.instanceMethodId( + static final _id_newWebSocket = OkHttpClient._class.instanceMethodId( r'newWebSocket', r'(Lokhttp3/Request;Lokhttp3/WebSocketListener;)Lokhttp3/WebSocket;', ); @@ -7216,23 +6486,21 @@ class OkHttpClient extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public okhttp3.WebSocket newWebSocket(okhttp3.Request request, okhttp3.WebSocketListener webSocketListener)` + /// from: `public fun newWebSocket(request: okhttp3.Request, listener: okhttp3.WebSocketListener): okhttp3.WebSocket` /// The returned object must be released after use, by calling the [release] method. WebSocket newWebSocket( Request request, - jni$_.JObject webSocketListener, + WebSocketListener webSocketListener, ) { + final _$$selfRef = reference; final _$request = request.reference; final _$webSocketListener = webSocketListener.reference; - return _newWebSocket( - reference.pointer, - _id_newWebSocket as jni$_.JMethodIDPtr, - _$request.pointer, - _$webSocketListener.pointer) - .object(const $WebSocket$Type()); + return _newWebSocket(_$$selfRef.pointer, _id_newWebSocket.pointer, + _$request.pointer, _$webSocketListener.pointer) + .object(); } - static final _id_newBuilder = _class.instanceMethodId( + static final _id_newBuilder = OkHttpClient._class.instanceMethodId( r'newBuilder', r'()Lokhttp3/OkHttpClient$Builder;', ); @@ -7249,14 +6517,15 @@ class OkHttpClient extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public okhttp3.OkHttpClient$Builder newBuilder()` + /// from: `public fun newBuilder(): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder newBuilder() { - return _newBuilder(reference.pointer, _id_newBuilder as jni$_.JMethodIDPtr) - .object(const $OkHttpClient$Builder$Type()); + final _$$selfRef = reference; + return _newBuilder(_$$selfRef.pointer, _id_newBuilder.pointer) + .object(); } - static final _id_clone = _class.instanceMethodId( + static final _id_clone = OkHttpClient._class.instanceMethodId( r'clone', r'()Ljava/lang/Object;', ); @@ -7276,133 +6545,32 @@ class OkHttpClient extends jni$_.JObject { /// from: `public java.lang.Object clone()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject clone() { - return _clone(reference.pointer, _id_clone as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); - } -} - -final class $OkHttpClient$NullableType extends jni$_.JObjType { - @jni$_.internal - const $OkHttpClient$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/OkHttpClient;'; - - @jni$_.internal - @core$_.override - OkHttpClient? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : OkHttpClient.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($OkHttpClient$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($OkHttpClient$NullableType) && - other is $OkHttpClient$NullableType; + final _$$selfRef = reference; + return _clone(_$$selfRef.pointer, _id_clone.pointer) + .object(); } } -final class $OkHttpClient$Type extends jni$_.JObjType { +final class $OkHttpClient$Type$ extends jni$_.JType { @jni$_.internal - const $OkHttpClient$Type(); + const $OkHttpClient$Type$(); @jni$_.internal @core$_.override String get signature => r'Lokhttp3/OkHttpClient;'; - - @jni$_.internal - @core$_.override - OkHttpClient fromReference(jni$_.JReference reference) => - OkHttpClient.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $OkHttpClient$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($OkHttpClient$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($OkHttpClient$Type) && - other is $OkHttpClient$Type; - } } /// from: `okhttp3.Call$Factory` -class Call$Factory extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Call$Factory.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type Call$Factory._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'okhttp3/Call$Factory'); /// The type which includes information such as the signature of this class. - static const nullableType = $Call$Factory$NullableType(); - static const type = $Call$Factory$Type(); - static final _id_newCall = _class.instanceMethodId( - r'newCall', - r'(Lokhttp3/Request;)Lokhttp3/Call;', - ); - - static final _newCall = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public abstract okhttp3.Call newCall(okhttp3.Request request)` - /// The returned object must be released after use, by calling the [release] method. - Call newCall( - Request request, - ) { - final _$request = request.reference; - return _newCall(reference.pointer, _id_newCall as jni$_.JMethodIDPtr, - _$request.pointer) - .object(const $Call$Type()); - } + static const jni$_.JType type = $Call$Factory$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; + static final core$_.Map _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -7423,7 +6591,7 @@ class Call$Factory extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -7431,10 +6599,10 @@ class Call$Factory extends jni$_.JObject { final $a = $i.args; if ($d == r'newCall(Lokhttp3/Request;)Lokhttp3/Call;') { final $r = _$impls[$p]!.newCall( - $a![0]!.as(const $Request$Type(), releaseOriginal: true), + ($a![0] as Request), ); return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) + ?.as(const jni$_.$JObject$Type$()) .reference .toPointer() ?? jni$_.nullptr; @@ -7458,6 +6626,7 @@ class Call$Factory extends jni$_.JObject { } final $i = jni$_.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); + $i.args?.release(); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( @@ -7475,9 +6644,36 @@ class Call$Factory extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return Call$Factory.fromReference( - $i.implementReference(), - ); + return $i.implement(); + } +} + +extension Call$Factory$$Methods on Call$Factory { + static final _id_newCall = Call$Factory._class.instanceMethodId( + r'newCall', + r'(Lokhttp3/Request;)Lokhttp3/Call;', + ); + + static final _newCall = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public fun newCall(request: okhttp3.Request): okhttp3.Call` + /// The returned object must be released after use, by calling the [release] method. + Call newCall( + Request request, + ) { + final _$$selfRef = reference; + final _$request = request.reference; + return _newCall(_$$selfRef.pointer, _id_newCall.pointer, _$request.pointer) + .object(); } } @@ -7501,130 +6697,181 @@ final class _$Call$Factory with $Call$Factory { } } -final class $Call$Factory$NullableType extends jni$_.JObjType { - @jni$_.internal - const $Call$Factory$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/Call$Factory;'; - - @jni$_.internal - @core$_.override - Call$Factory? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Call$Factory.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Call$Factory$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Call$Factory$NullableType) && - other is $Call$Factory$NullableType; - } -} - -final class $Call$Factory$Type extends jni$_.JObjType { +final class $Call$Factory$Type$ extends jni$_.JType { @jni$_.internal - const $Call$Factory$Type(); + const $Call$Factory$Type$(); @jni$_.internal @core$_.override String get signature => r'Lokhttp3/Call$Factory;'; - - @jni$_.internal - @core$_.override - Call$Factory fromReference(jni$_.JReference reference) => - Call$Factory.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $Call$Factory$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Call$Factory$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Call$Factory$Type) && - other is $Call$Factory$Type; - } } /// from: `okhttp3.Call` -class Call extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Call.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type Call._(jni$_.JObject _$this) + implements jni$_.JObject, Cloneable { static final _class = jni$_.JClass.forName(r'okhttp3/Call'); /// The type which includes information such as the signature of this class. - static const nullableType = $Call$NullableType(); - static const type = $Call$Type(); - static final _id_request = _class.instanceMethodId( - r'request', - r'()Lokhttp3/Request;', - ); - - static final _request = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + static const jni$_.JType type = $Call$Type$(); - /// from: `public abstract okhttp3.Request request()` - /// The returned object must be released after use, by calling the [release] method. - Request request() { - return _request(reference.pointer, _id_request as jni$_.JMethodIDPtr) - .object(const $Request$Type()); + /// Maps a specific port to the implemented interface. + static final core$_.Map _$impls = {}; + static jni$_.JObjectPtr _$invoke( + core$_.int port, + jni$_.JObjectPtr descriptor, + jni$_.JObjectPtr args, + ) { + return _$invokeMethod( + port, + jni$_.MethodInvocation.fromAddresses( + 0, + descriptor.address, + args.address, + ), + ); } - static final _id_execute = _class.instanceMethodId( - r'execute', - r'()Lokhttp3/Response;', - ); - - static final _execute = jni$_.ProtectedJniExtensions.lookup< + static final jni$_.Pointer< jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, + jni$_.JObjectPtr Function( + jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + + static jni$_.Pointer _$invokeMethod( + core$_.int $p, + jni$_.MethodInvocation $i, + ) { + try { + final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); + final $a = $i.args; + if ($d == r'request()Lokhttp3/Request;') { + final $r = _$impls[$p]!.request(); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } + if ($d == r'execute()Lokhttp3/Response;') { + final $r = _$impls[$p]!.execute(); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } + if ($d == r'enqueue(Lokhttp3/Callback;)V') { + _$impls[$p]!.enqueue( + ($a![0] as Callback), + ); + return jni$_.nullptr; + } + if ($d == r'cancel()V') { + _$impls[$p]!.cancel(); + return jni$_.nullptr; + } + if ($d == r'isExecuted()Z') { + final $r = _$impls[$p]!.isExecuted(); + return $r.toJBoolean().reference.toPointer(); + } + if ($d == r'isCanceled()Z') { + final $r = _$impls[$p]!.isCanceled(); + return $r.toJBoolean().reference.toPointer(); + } + if ($d == r'timeout()Lokio/Timeout;') { + final $r = _$impls[$p]!.timeout(); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } + if ($d == r'clone()Lokhttp3/Call;') { + final $r = _$impls[$p]!.clone(); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } + } catch (e) { + return jni$_.ProtectedJniExtensions.newDartException(e); + } + return jni$_.nullptr; + } + + static void implementIn( + jni$_.JImplementer implementer, + $Call $impl, + ) { + late final jni$_.RawReceivePort $p; + $p = jni$_.RawReceivePort(($m) { + if ($m == null) { + _$impls.remove($p.sendPort.nativePort); + $p.close(); + return; + } + final $i = jni$_.MethodInvocation.fromMessage($m); + final $r = _$invokeMethod($p.sendPort.nativePort, $i); + $i.args?.release(); + jni$_.ProtectedJniExtensions.returnResult($i.result, $r); + }); + implementer.add( + r'okhttp3.Call', + $p, + _$invokePointer, + [ + if ($impl.enqueue$async) r'enqueue(Lokhttp3/Callback;)V', + if ($impl.cancel$async) r'cancel()V', + ], + ); + final $a = $p.sendPort.nativePort; + _$impls[$a] = $impl; + } + + factory Call.implement( + $Call $impl, + ) { + final $i = jni$_.JImplementer(); + implementIn($i, $impl); + return $i.implement(); + } +} + +extension Call$$Methods on Call { + static final _id_request = Call._class.instanceMethodId( + r'request', + r'()Lokhttp3/Request;', + ); + + static final _request = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public fun request(): okhttp3.Request` + /// The returned object must be released after use, by calling the [release] method. + Request request() { + final _$$selfRef = reference; + return _request(_$$selfRef.pointer, _id_request.pointer).object(); + } + + static final _id_execute = Call._class.instanceMethodId( + r'execute', + r'()Lokhttp3/Response;', + ); + + static final _execute = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< @@ -7633,14 +6880,14 @@ class Call extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public abstract okhttp3.Response execute()` + /// from: `public fun execute(): okhttp3.Response` /// The returned object must be released after use, by calling the [release] method. Response execute() { - return _execute(reference.pointer, _id_execute as jni$_.JMethodIDPtr) - .object(const $Response$Type()); + final _$$selfRef = reference; + return _execute(_$$selfRef.pointer, _id_execute.pointer).object(); } - static final _id_enqueue = _class.instanceMethodId( + static final _id_enqueue = Call._class.instanceMethodId( r'enqueue', r'(Lokhttp3/Callback;)V', ); @@ -7656,17 +6903,17 @@ class Call extends jni$_.JObject { jni$_.JThrowablePtr Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public abstract void enqueue(okhttp3.Callback callback)` + /// from: `public fun enqueue(responseCallback: okhttp3.Callback): kotlin.Unit` void enqueue( Callback callback, ) { + final _$$selfRef = reference; final _$callback = callback.reference; - _enqueue(reference.pointer, _id_enqueue as jni$_.JMethodIDPtr, - _$callback.pointer) + _enqueue(_$$selfRef.pointer, _id_enqueue.pointer, _$callback.pointer) .check(); } - static final _id_cancel = _class.instanceMethodId( + static final _id_cancel = Call._class.instanceMethodId( r'cancel', r'()V', ); @@ -7683,12 +6930,13 @@ class Call extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public abstract void cancel()` + /// from: `public fun cancel(): kotlin.Unit` void cancel() { - _cancel(reference.pointer, _id_cancel as jni$_.JMethodIDPtr).check(); + final _$$selfRef = reference; + _cancel(_$$selfRef.pointer, _id_cancel.pointer).check(); } - static final _id_isExecuted = _class.instanceMethodId( + static final _id_isExecuted = Call._class.instanceMethodId( r'isExecuted', r'()Z', ); @@ -7705,13 +6953,13 @@ class Call extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public abstract boolean isExecuted()` - bool isExecuted() { - return _isExecuted(reference.pointer, _id_isExecuted as jni$_.JMethodIDPtr) - .boolean; + /// from: `public fun isExecuted(): kotlin.Boolean` + core$_.bool isExecuted() { + final _$$selfRef = reference; + return _isExecuted(_$$selfRef.pointer, _id_isExecuted.pointer).boolean; } - static final _id_isCanceled = _class.instanceMethodId( + static final _id_isCanceled = Call._class.instanceMethodId( r'isCanceled', r'()Z', ); @@ -7728,13 +6976,13 @@ class Call extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public abstract boolean isCanceled()` - bool isCanceled() { - return _isCanceled(reference.pointer, _id_isCanceled as jni$_.JMethodIDPtr) - .boolean; + /// from: `public fun isCanceled(): kotlin.Boolean` + core$_.bool isCanceled() { + final _$$selfRef = reference; + return _isCanceled(_$$selfRef.pointer, _id_isCanceled.pointer).boolean; } - static final _id_timeout = _class.instanceMethodId( + static final _id_timeout = Call._class.instanceMethodId( r'timeout', r'()Lokio/Timeout;', ); @@ -7751,14 +6999,14 @@ class Call extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public abstract okio.Timeout timeout()` + /// from: `public fun timeout(): okio.Timeout` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject timeout() { - return _timeout(reference.pointer, _id_timeout as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + Timeout timeout() { + final _$$selfRef = reference; + return _timeout(_$$selfRef.pointer, _id_timeout.pointer).object(); } - static final _id_clone = _class.instanceMethodId( + static final _id_clone = Call._class.instanceMethodId( r'clone', r'()Lokhttp3/Call;', ); @@ -7775,135 +7023,11 @@ class Call extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public abstract okhttp3.Call clone()` + /// from: `public fun clone(): okhttp3.Call` /// The returned object must be released after use, by calling the [release] method. Call clone() { - return _clone(reference.pointer, _id_clone as jni$_.JMethodIDPtr) - .object(const $Call$Type()); - } - - /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; - static jni$_.JObjectPtr _$invoke( - int port, - jni$_.JObjectPtr descriptor, - jni$_.JObjectPtr args, - ) { - return _$invokeMethod( - port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), - ); - } - - static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); - - static jni$_.Pointer _$invokeMethod( - int $p, - jni$_.MethodInvocation $i, - ) { - try { - final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); - final $a = $i.args; - if ($d == r'request()Lokhttp3/Request;') { - final $r = _$impls[$p]!.request(); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == r'execute()Lokhttp3/Response;') { - final $r = _$impls[$p]!.execute(); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == r'enqueue(Lokhttp3/Callback;)V') { - _$impls[$p]!.enqueue( - $a![0]!.as(const $Callback$Type(), releaseOriginal: true), - ); - return jni$_.nullptr; - } - if ($d == r'cancel()V') { - _$impls[$p]!.cancel(); - return jni$_.nullptr; - } - if ($d == r'isExecuted()Z') { - final $r = _$impls[$p]!.isExecuted(); - return jni$_.JBoolean($r).reference.toPointer(); - } - if ($d == r'isCanceled()Z') { - final $r = _$impls[$p]!.isCanceled(); - return jni$_.JBoolean($r).reference.toPointer(); - } - if ($d == r'timeout()Lokio/Timeout;') { - final $r = _$impls[$p]!.timeout(); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == r'clone()Lokhttp3/Call;') { - final $r = _$impls[$p]!.clone(); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - } catch (e) { - return jni$_.ProtectedJniExtensions.newDartException(e); - } - return jni$_.nullptr; - } - - static void implementIn( - jni$_.JImplementer implementer, - $Call $impl, - ) { - late final jni$_.RawReceivePort $p; - $p = jni$_.RawReceivePort(($m) { - if ($m == null) { - _$impls.remove($p.sendPort.nativePort); - $p.close(); - return; - } - final $i = jni$_.MethodInvocation.fromMessage($m); - final $r = _$invokeMethod($p.sendPort.nativePort, $i); - jni$_.ProtectedJniExtensions.returnResult($i.result, $r); - }); - implementer.add( - r'okhttp3.Call', - $p, - _$invokePointer, - [ - if ($impl.enqueue$async) r'enqueue(Lokhttp3/Callback;)V', - if ($impl.cancel$async) r'cancel()V', - ], - ); - final $a = $p.sendPort.nativePort; - _$impls[$a] = $impl; - } - - factory Call.implement( - $Call $impl, - ) { - final $i = jni$_.JImplementer(); - implementIn($i, $impl); - return Call.fromReference( - $i.implementReference(), - ); + final _$$selfRef = reference; + return _clone(_$$selfRef.pointer, _id_clone.pointer).object(); } } @@ -7912,24 +7036,24 @@ abstract base mixin class $Call { required Request Function() request, required Response Function() execute, required void Function(Callback callback) enqueue, - bool enqueue$async, + core$_.bool enqueue$async, required void Function() cancel, - bool cancel$async, - required bool Function() isExecuted, - required bool Function() isCanceled, - required jni$_.JObject Function() timeout, + core$_.bool cancel$async, + required core$_.bool Function() isExecuted, + required core$_.bool Function() isCanceled, + required Timeout Function() timeout, required Call Function() clone, }) = _$Call; Request request(); Response execute(); void enqueue(Callback callback); - bool get enqueue$async => false; + core$_.bool get enqueue$async => false; void cancel(); - bool get cancel$async => false; - bool isExecuted(); - bool isCanceled(); - jni$_.JObject timeout(); + core$_.bool get cancel$async => false; + core$_.bool isExecuted(); + core$_.bool isCanceled(); + Timeout timeout(); Call clone(); } @@ -7941,9 +7065,9 @@ final class _$Call with $Call { this.enqueue$async = false, required void Function() cancel, this.cancel$async = false, - required bool Function() isExecuted, - required bool Function() isCanceled, - required jni$_.JObject Function() timeout, + required core$_.bool Function() isExecuted, + required core$_.bool Function() isCanceled, + required Timeout Function() timeout, required Call Function() clone, }) : _request = request, _execute = execute, @@ -7957,12 +7081,12 @@ final class _$Call with $Call { final Request Function() _request; final Response Function() _execute; final void Function(Callback callback) _enqueue; - final bool enqueue$async; + final core$_.bool enqueue$async; final void Function() _cancel; - final bool cancel$async; - final bool Function() _isExecuted; - final bool Function() _isCanceled; - final jni$_.JObject Function() _timeout; + final core$_.bool cancel$async; + final core$_.bool Function() _isExecuted; + final core$_.bool Function() _isCanceled; + final Timeout Function() _timeout; final Call Function() _clone; Request request() { @@ -7981,15 +7105,15 @@ final class _$Call with $Call { return _cancel(); } - bool isExecuted() { + core$_.bool isExecuted() { return _isExecuted(); } - bool isCanceled() { + core$_.bool isCanceled() { return _isCanceled(); } - jni$_.JObject timeout() { + Timeout timeout() { return _timeout(); } @@ -7998,97 +7122,25 @@ final class _$Call with $Call { } } -final class $Call$NullableType extends jni$_.JObjType { +final class $Call$Type$ extends jni$_.JType { @jni$_.internal - const $Call$NullableType(); + const $Call$Type$(); @jni$_.internal @core$_.override String get signature => r'Lokhttp3/Call;'; +} - @jni$_.internal - @core$_.override - Call? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Call.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; +/// from: `okhttp3.Headers$Builder` +extension type Headers$Builder._(jni$_.JObject _$this) + implements jni$_.JObject { + static final _class = jni$_.JClass.forName(r'okhttp3/Headers$Builder'); - @core$_.override - int get hashCode => ($Call$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Call$NullableType) && - other is $Call$NullableType; - } -} - -final class $Call$Type extends jni$_.JObjType { - @jni$_.internal - const $Call$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/Call;'; - - @jni$_.internal - @core$_.override - Call fromReference(jni$_.JReference reference) => Call.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => const $Call$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Call$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Call$Type) && other is $Call$Type; - } -} - -/// from: `okhttp3.Headers$Builder` -class Headers$Builder extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Headers$Builder.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = jni$_.JClass.forName(r'okhttp3/Headers$Builder'); - - /// The type which includes information such as the signature of this class. - static const nullableType = $Headers$Builder$NullableType(); - static const type = $Headers$Builder$Type(); - static final _id_new$ = _class.constructorId( - r'()V', - ); + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = $Headers$Builder$Type$(); + static final _id_new$ = _class.constructorId( + r'()V', + ); static final _new$ = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< @@ -8105,12 +7157,14 @@ class Headers$Builder extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory Headers$Builder() { - return Headers$Builder.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + final _$$classRef = _class.reference; + return _new$(_$$classRef.pointer, _id_new$.pointer) + .object(); } +} - static final _id_add = _class.instanceMethodId( +extension Headers$Builder$$Methods on Headers$Builder { + static final _id_add = Headers$Builder._class.instanceMethodId( r'add', r'(Ljava/lang/String;)Lokhttp3/Headers$Builder;', ); @@ -8126,18 +7180,18 @@ class Headers$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.Headers$Builder add(java.lang.String string)` + /// from: `public fun add(line: kotlin.String): okhttp3.Headers.Builder` /// The returned object must be released after use, by calling the [release] method. Headers$Builder add( jni$_.JString string, ) { + final _$$selfRef = reference; final _$string = string.reference; - return _add( - reference.pointer, _id_add as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $Headers$Builder$Type()); + return _add(_$$selfRef.pointer, _id_add.pointer, _$string.pointer) + .object(); } - static final _id_add$1 = _class.instanceMethodId( + static final _id_add$1 = Headers$Builder._class.instanceMethodId( r'add', r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$Builder;', ); @@ -8159,20 +7213,21 @@ class Headers$Builder extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final okhttp3.Headers$Builder add(java.lang.String string, java.lang.String string1)` + /// from: `public fun add(name: kotlin.String, value: kotlin.String): okhttp3.Headers.Builder` /// The returned object must be released after use, by calling the [release] method. Headers$Builder add$1( jni$_.JString string, jni$_.JString string1, ) { + final _$$selfRef = reference; final _$string = string.reference; final _$string1 = string1.reference; - return _add$1(reference.pointer, _id_add$1 as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) - .object(const $Headers$Builder$Type()); + return _add$1(_$$selfRef.pointer, _id_add$1.pointer, _$string.pointer, + _$string1.pointer) + .object(); } - static final _id_addUnsafeNonAscii = _class.instanceMethodId( + static final _id_addUnsafeNonAscii = Headers$Builder._class.instanceMethodId( r'addUnsafeNonAscii', r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$Builder;', ); @@ -8194,23 +7249,21 @@ class Headers$Builder extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final okhttp3.Headers$Builder addUnsafeNonAscii(java.lang.String string, java.lang.String string1)` + /// from: `public fun addUnsafeNonAscii(name: kotlin.String, value: kotlin.String): okhttp3.Headers.Builder` /// The returned object must be released after use, by calling the [release] method. Headers$Builder addUnsafeNonAscii( jni$_.JString string, jni$_.JString string1, ) { + final _$$selfRef = reference; final _$string = string.reference; final _$string1 = string1.reference; - return _addUnsafeNonAscii( - reference.pointer, - _id_addUnsafeNonAscii as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer) - .object(const $Headers$Builder$Type()); + return _addUnsafeNonAscii(_$$selfRef.pointer, _id_addUnsafeNonAscii.pointer, + _$string.pointer, _$string1.pointer) + .object(); } - static final _id_addAll = _class.instanceMethodId( + static final _id_addAll = Headers$Builder._class.instanceMethodId( r'addAll', r'(Lokhttp3/Headers;)Lokhttp3/Headers$Builder;', ); @@ -8226,18 +7279,18 @@ class Headers$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.Headers$Builder addAll(okhttp3.Headers headers)` + /// from: `public fun addAll(headers: okhttp3.Headers): okhttp3.Headers.Builder` /// The returned object must be released after use, by calling the [release] method. Headers$Builder addAll( Headers headers, ) { + final _$$selfRef = reference; final _$headers = headers.reference; - return _addAll(reference.pointer, _id_addAll as jni$_.JMethodIDPtr, - _$headers.pointer) - .object(const $Headers$Builder$Type()); + return _addAll(_$$selfRef.pointer, _id_addAll.pointer, _$headers.pointer) + .object(); } - static final _id_add$2 = _class.instanceMethodId( + static final _id_add$2 = Headers$Builder._class.instanceMethodId( r'add', r'(Ljava/lang/String;Ljava/util/Date;)Lokhttp3/Headers$Builder;', ); @@ -8259,20 +7312,21 @@ class Headers$Builder extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final okhttp3.Headers$Builder add(java.lang.String string, java.util.Date date)` + /// from: `public fun add(name: kotlin.String, value: java.util.Date): okhttp3.Headers.Builder` /// The returned object must be released after use, by calling the [release] method. Headers$Builder add$2( jni$_.JString string, - jni$_.JObject date, + Date date, ) { + final _$$selfRef = reference; final _$string = string.reference; final _$date = date.reference; - return _add$2(reference.pointer, _id_add$2 as jni$_.JMethodIDPtr, - _$string.pointer, _$date.pointer) - .object(const $Headers$Builder$Type()); + return _add$2(_$$selfRef.pointer, _id_add$2.pointer, _$string.pointer, + _$date.pointer) + .object(); } - static final _id_add$3 = _class.instanceMethodId( + static final _id_add$3 = Headers$Builder._class.instanceMethodId( r'add', r'(Ljava/lang/String;Ljava/time/Instant;)Lokhttp3/Headers$Builder;', ); @@ -8294,20 +7348,21 @@ class Headers$Builder extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final okhttp3.Headers$Builder add(java.lang.String string, java.time.Instant instant)` + /// from: `public fun add(name: kotlin.String, value: java.time.Instant): okhttp3.Headers.Builder` /// The returned object must be released after use, by calling the [release] method. Headers$Builder add$3( jni$_.JString string, - jni$_.JObject instant, + Instant instant, ) { + final _$$selfRef = reference; final _$string = string.reference; final _$instant = instant.reference; - return _add$3(reference.pointer, _id_add$3 as jni$_.JMethodIDPtr, - _$string.pointer, _$instant.pointer) - .object(const $Headers$Builder$Type()); + return _add$3(_$$selfRef.pointer, _id_add$3.pointer, _$string.pointer, + _$instant.pointer) + .object(); } - static final _id_set = _class.instanceMethodId( + static final _id_set = Headers$Builder._class.instanceMethodId( r'set', r'(Ljava/lang/String;Ljava/util/Date;)Lokhttp3/Headers$Builder;', ); @@ -8329,20 +7384,21 @@ class Headers$Builder extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final okhttp3.Headers$Builder set(java.lang.String string, java.util.Date date)` + /// from: `public operator fun set(name: kotlin.String, value: java.util.Date): okhttp3.Headers.Builder` /// The returned object must be released after use, by calling the [release] method. Headers$Builder set( jni$_.JString string, - jni$_.JObject date, + Date date, ) { + final _$$selfRef = reference; final _$string = string.reference; final _$date = date.reference; - return _set(reference.pointer, _id_set as jni$_.JMethodIDPtr, - _$string.pointer, _$date.pointer) - .object(const $Headers$Builder$Type()); + return _set(_$$selfRef.pointer, _id_set.pointer, _$string.pointer, + _$date.pointer) + .object(); } - static final _id_set$1 = _class.instanceMethodId( + static final _id_set$1 = Headers$Builder._class.instanceMethodId( r'set', r'(Ljava/lang/String;Ljava/time/Instant;)Lokhttp3/Headers$Builder;', ); @@ -8364,20 +7420,21 @@ class Headers$Builder extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final okhttp3.Headers$Builder set(java.lang.String string, java.time.Instant instant)` + /// from: `public operator fun set(name: kotlin.String, value: java.time.Instant): okhttp3.Headers.Builder` /// The returned object must be released after use, by calling the [release] method. Headers$Builder set$1( jni$_.JString string, - jni$_.JObject instant, + Instant instant, ) { + final _$$selfRef = reference; final _$string = string.reference; final _$instant = instant.reference; - return _set$1(reference.pointer, _id_set$1 as jni$_.JMethodIDPtr, - _$string.pointer, _$instant.pointer) - .object(const $Headers$Builder$Type()); + return _set$1(_$$selfRef.pointer, _id_set$1.pointer, _$string.pointer, + _$instant.pointer) + .object(); } - static final _id_removeAll = _class.instanceMethodId( + static final _id_removeAll = Headers$Builder._class.instanceMethodId( r'removeAll', r'(Ljava/lang/String;)Lokhttp3/Headers$Builder;', ); @@ -8393,18 +7450,19 @@ class Headers$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.Headers$Builder removeAll(java.lang.String string)` + /// from: `public fun removeAll(name: kotlin.String): okhttp3.Headers.Builder` /// The returned object must be released after use, by calling the [release] method. Headers$Builder removeAll( jni$_.JString string, ) { + final _$$selfRef = reference; final _$string = string.reference; - return _removeAll(reference.pointer, _id_removeAll as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const $Headers$Builder$Type()); + return _removeAll( + _$$selfRef.pointer, _id_removeAll.pointer, _$string.pointer) + .object(); } - static final _id_set$2 = _class.instanceMethodId( + static final _id_set$2 = Headers$Builder._class.instanceMethodId( r'set', r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$Builder;', ); @@ -8426,20 +7484,21 @@ class Headers$Builder extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final okhttp3.Headers$Builder set(java.lang.String string, java.lang.String string1)` + /// from: `public operator fun set(name: kotlin.String, value: kotlin.String): okhttp3.Headers.Builder` /// The returned object must be released after use, by calling the [release] method. Headers$Builder set$2( jni$_.JString string, jni$_.JString string1, ) { + final _$$selfRef = reference; final _$string = string.reference; final _$string1 = string1.reference; - return _set$2(reference.pointer, _id_set$2 as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) - .object(const $Headers$Builder$Type()); + return _set$2(_$$selfRef.pointer, _id_set$2.pointer, _$string.pointer, + _$string1.pointer) + .object(); } - static final _id_get = _class.instanceMethodId( + static final _id_get = Headers$Builder._class.instanceMethodId( r'get', r'(Ljava/lang/String;)Ljava/lang/String;', ); @@ -8455,18 +7514,18 @@ class Headers$Builder extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final java.lang.String get(java.lang.String string)` + /// from: `public operator fun get(name: kotlin.String): kotlin.String?` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? get( jni$_.JString string, ) { + final _$$selfRef = reference; final _$string = string.reference; - return _get( - reference.pointer, _id_get as jni$_.JMethodIDPtr, _$string.pointer) - .object(const jni$_.JStringNullableType()); + return _get(_$$selfRef.pointer, _id_get.pointer, _$string.pointer) + .object(); } - static final _id_build = _class.instanceMethodId( + static final _id_build = Headers$Builder._class.instanceMethodId( r'build', r'()Lokhttp3/Headers;', ); @@ -8483,139 +7542,74 @@ class Headers$Builder extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final okhttp3.Headers build()` + /// from: `public fun build(): okhttp3.Headers` /// The returned object must be released after use, by calling the [release] method. Headers build() { - return _build(reference.pointer, _id_build as jni$_.JMethodIDPtr) - .object(const $Headers$Type()); + final _$$selfRef = reference; + return _build(_$$selfRef.pointer, _id_build.pointer).object(); } -} - -final class $Headers$Builder$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $Headers$Builder$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/Headers$Builder;'; - - @jni$_.internal - @core$_.override - Headers$Builder? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Headers$Builder.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - @core$_.override - int get hashCode => ($Headers$Builder$NullableType).hashCode; + void operator []=(jni$_.JString string, Date date) { + set(string, date); + } - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Headers$Builder$NullableType) && - other is $Headers$Builder$NullableType; + jni$_.JString? operator [](jni$_.JString string) { + return get(string); } } -final class $Headers$Builder$Type extends jni$_.JObjType { +final class $Headers$Builder$Type$ extends jni$_.JType { @jni$_.internal - const $Headers$Builder$Type(); + const $Headers$Builder$Type$(); @jni$_.internal @core$_.override String get signature => r'Lokhttp3/Headers$Builder;'; - - @jni$_.internal - @core$_.override - Headers$Builder fromReference(jni$_.JReference reference) => - Headers$Builder.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $Headers$Builder$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Headers$Builder$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Headers$Builder$Type) && - other is $Headers$Builder$Type; - } } /// from: `okhttp3.Headers$Companion` -class Headers$Companion extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Headers$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type Headers$Companion._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'okhttp3/Headers$Companion'); /// The type which includes information such as the signature of this class. - static const nullableType = $Headers$Companion$NullableType(); - static const type = $Headers$Companion$Type(); - static final _id_of = _class.instanceMethodId( - r'of', - r'([Ljava/lang/String;)Lokhttp3/Headers;', + static const jni$_.JType type = $Headers$Companion$Type$(); + static final _id_new$ = _class.constructorId( + r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', ); - static final _of = jni$_.ProtectedJniExtensions.lookup< + static final _new$ = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') + 'globalEnv_NewObject') .asFunction< jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.Headers of(java.lang.String[] strings)` + /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` /// The returned object must be released after use, by calling the [release] method. - Headers of( - jni$_.JArray strings, + factory Headers$Companion( + DefaultConstructorMarker? defaultConstructorMarker, ) { - final _$strings = strings.reference; - return _of( - reference.pointer, _id_of as jni$_.JMethodIDPtr, _$strings.pointer) - .object(const $Headers$Type()); + final _$$classRef = _class.reference; + final _$defaultConstructorMarker = + defaultConstructorMarker?.reference ?? jni$_.jNullReference; + return _new$(_$$classRef.pointer, _id_new$.pointer, + _$defaultConstructorMarker.pointer) + .object(); } +} - static final _id_of$1 = _class.instanceMethodId( +extension Headers$Companion$$Methods on Headers$Companion { + static final _id_of = Headers$Companion._class.instanceMethodId( r'of', - r'(Ljava/util/Map;)Lokhttp3/Headers;', + r'([Ljava/lang/String;)Lokhttp3/Headers;', ); - static final _of$1 = jni$_.ProtectedJniExtensions.lookup< + static final _of = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -8626,138 +7620,61 @@ class Headers$Companion extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okhttp3.Headers of(java.util.Map map)` + /// from: `public fun headersOf(vararg namesAndValues: kotlin.String): okhttp3.Headers` /// The returned object must be released after use, by calling the [release] method. - Headers of$1( - jni$_.JMap map, + Headers of( + jni$_.JArray strings, ) { - final _$map = map.reference; - return _of$1( - reference.pointer, _id_of$1 as jni$_.JMethodIDPtr, _$map.pointer) - .object(const $Headers$Type()); + final _$$selfRef = reference; + final _$strings = strings.reference; + return _of(_$$selfRef.pointer, _id_of.pointer, _$strings.pointer) + .object(); } - static final _id_new$ = _class.constructorId( - r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', + static final _id_of$1 = Headers$Companion._class.instanceMethodId( + r'of', + r'(Ljava/util/Map;)Lokhttp3/Headers;', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< + static final _of$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') + 'globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` + /// from: `public fun toHeaders(): okhttp3.Headers` /// The returned object must be released after use, by calling the [release] method. - factory Headers$Companion( - jni$_.JObject? defaultConstructorMarker, + Headers of$1( + jni$_.JMap map, ) { - final _$defaultConstructorMarker = - defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return Headers$Companion.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$defaultConstructorMarker.pointer) - .reference); - } -} - -final class $Headers$Companion$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $Headers$Companion$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/Headers$Companion;'; - - @jni$_.internal - @core$_.override - Headers$Companion? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : Headers$Companion.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Headers$Companion$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Headers$Companion$NullableType) && - other is $Headers$Companion$NullableType; + final _$$selfRef = reference; + final _$map = map.reference; + return _of$1(_$$selfRef.pointer, _id_of$1.pointer, _$map.pointer) + .object(); } } -final class $Headers$Companion$Type extends jni$_.JObjType { +final class $Headers$Companion$Type$ extends jni$_.JType { @jni$_.internal - const $Headers$Companion$Type(); + const $Headers$Companion$Type$(); @jni$_.internal @core$_.override String get signature => r'Lokhttp3/Headers$Companion;'; - - @jni$_.internal - @core$_.override - Headers$Companion fromReference(jni$_.JReference reference) => - Headers$Companion.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $Headers$Companion$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Headers$Companion$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Headers$Companion$Type) && - other is $Headers$Companion$Type; - } } /// from: `okhttp3.Headers` -class Headers extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Headers.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type Headers._(jni$_.JObject _$this) + implements jni$_.JObject, Iterable$1, KMappedMarker { static final _class = jni$_.JClass.forName(r'okhttp3/Headers'); /// The type which includes information such as the signature of this class. - static const nullableType = $Headers$NullableType(); - static const type = $Headers$Type(); + static const jni$_.JType type = $Headers$Type$(); static final _id_Companion = _class.staticFieldId( r'Companion', r'Lokhttp3/Headers$Companion;', @@ -8766,68 +7683,106 @@ class Headers extends jni$_.JObject { /// from: `static public final okhttp3.Headers$Companion Companion` /// The returned object must be released after use, by calling the [release] method. static Headers$Companion get Companion => - _id_Companion.get(_class, const $Headers$Companion$Type()); + _id_Companion.get(_class, Headers$Companion.type) as Headers$Companion; - static final _id_get = _class.instanceMethodId( - r'get', - r'(Ljava/lang/String;)Ljava/lang/String;', + static final _id_of = _class.staticMethodId( + r'of', + r'([Ljava/lang/String;)Lokhttp3/Headers;', ); - static final _get = jni$_.ProtectedJniExtensions.lookup< + static final _of = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') + 'globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final java.lang.String get(java.lang.String string)` + /// from: `static public final okhttp3.Headers of(java.lang.String[] strings)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? get( - jni$_.JString string, + static Headers of( + jni$_.JArray strings, ) { - final _$string = string.reference; - return _get( - reference.pointer, _id_get as jni$_.JMethodIDPtr, _$string.pointer) - .object(const jni$_.JStringNullableType()); + final _$$classRef = _class.reference; + final _$strings = strings.reference; + return _of(_$$classRef.pointer, _id_of.pointer, _$strings.pointer) + .object(); } - static final _id_getDate = _class.instanceMethodId( - r'getDate', - r'(Ljava/lang/String;)Ljava/util/Date;', + static final _id_of$1 = _class.staticMethodId( + r'of', + r'(Ljava/util/Map;)Lokhttp3/Headers;', ); - static final _getDate = jni$_.ProtectedJniExtensions.lookup< + static final _of$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') + 'globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final java.util.Date getDate(java.lang.String string)` + /// from: `static public final okhttp3.Headers of(java.util.Map map)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getDate( - jni$_.JString string, + static Headers of$1( + jni$_.JMap map, ) { - final _$string = string.reference; - return _getDate(reference.pointer, _id_getDate as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const jni$_.JObjectNullableType()); + final _$$classRef = _class.reference; + final _$map = map.reference; + return _of$1(_$$classRef.pointer, _id_of$1.pointer, _$map.pointer) + .object(); } - static final _id_getInstant = _class.instanceMethodId( - r'getInstant', - r'(Ljava/lang/String;)Ljava/time/Instant;', + static final _id_new$ = _class.constructorId( + r'([Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V', ); - static final _getInstant = jni$_.ProtectedJniExtensions.lookup< + static final _new$ = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); + + /// from: `synthetic public void (java.lang.String[] strings, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` + /// The returned object must be released after use, by calling the [release] method. + factory Headers( + jni$_.JArray? strings, + DefaultConstructorMarker? defaultConstructorMarker, + ) { + final _$$classRef = _class.reference; + final _$strings = strings?.reference ?? jni$_.jNullReference; + final _$defaultConstructorMarker = + defaultConstructorMarker?.reference ?? jni$_.jNullReference; + return _new$(_$$classRef.pointer, _id_new$.pointer, _$strings.pointer, + _$defaultConstructorMarker.pointer) + .object(); + } +} + +extension Headers$$Methods on Headers { + static final _id_get = Headers._class.instanceMethodId( + r'get', + r'(Ljava/lang/String;)Ljava/lang/String;', + ); + + static final _get = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -8838,24 +7793,79 @@ class Headers extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final java.time.Instant getInstant(java.lang.String string)` + /// from: `public operator fun get(name: kotlin.String): kotlin.String?` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getInstant( + jni$_.JString? get( jni$_.JString string, ) { + final _$$selfRef = reference; final _$string = string.reference; - return _getInstant(reference.pointer, _id_getInstant as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const jni$_.JObjectNullableType()); + return _get(_$$selfRef.pointer, _id_get.pointer, _$string.pointer) + .object(); } - static final _id_size = _class.instanceMethodId( - r'size', - r'()I', + static final _id_getDate = Headers._class.instanceMethodId( + r'getDate', + r'(Ljava/lang/String;)Ljava/util/Date;', ); - static final _size = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getDate = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public fun getDate(name: kotlin.String): java.util.Date?` + /// The returned object must be released after use, by calling the [release] method. + Date? getDate( + jni$_.JString string, + ) { + final _$$selfRef = reference; + final _$string = string.reference; + return _getDate(_$$selfRef.pointer, _id_getDate.pointer, _$string.pointer) + .object(); + } + + static final _id_getInstant = Headers._class.instanceMethodId( + r'getInstant', + r'(Ljava/lang/String;)Ljava/time/Instant;', + ); + + static final _getInstant = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public fun getInstant(name: kotlin.String): java.time.Instant?` + /// The returned object must be released after use, by calling the [release] method. + Instant? getInstant( + jni$_.JString string, + ) { + final _$$selfRef = reference; + final _$string = string.reference; + return _getInstant( + _$$selfRef.pointer, _id_getInstant.pointer, _$string.pointer) + .object(); + } + + static final _id_size = Headers._class.instanceMethodId( + r'size', + r'()I', + ); + + static final _size = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, @@ -8867,11 +7877,12 @@ class Headers extends jni$_.JObject { )>(); /// from: `public final int size()` - int size() { - return _size(reference.pointer, _id_size as jni$_.JMethodIDPtr).integer; + core$_.int size() { + final _$$selfRef = reference; + return _size(_$$selfRef.pointer, _id_size.pointer).integer; } - static final _id_name = _class.instanceMethodId( + static final _id_name = Headers._class.instanceMethodId( r'name', r'(I)Ljava/lang/String;', ); @@ -8884,18 +7895,19 @@ class Headers extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); - /// from: `public final java.lang.String name(int i)` + /// from: `public fun name(index: kotlin.Int): kotlin.String` /// The returned object must be released after use, by calling the [release] method. jni$_.JString name( - int i, + core$_.int i, ) { - return _name(reference.pointer, _id_name as jni$_.JMethodIDPtr, i) - .object(const jni$_.JStringType()); + final _$$selfRef = reference; + return _name(_$$selfRef.pointer, _id_name.pointer, i) + .object(); } - static final _id_value = _class.instanceMethodId( + static final _id_value = Headers._class.instanceMethodId( r'value', r'(I)Ljava/lang/String;', ); @@ -8908,18 +7920,19 @@ class Headers extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); - /// from: `public final java.lang.String value(int i)` + /// from: `public fun value(index: kotlin.Int): kotlin.String` /// The returned object must be released after use, by calling the [release] method. jni$_.JString value( - int i, + core$_.int i, ) { - return _value(reference.pointer, _id_value as jni$_.JMethodIDPtr, i) - .object(const jni$_.JStringType()); + final _$$selfRef = reference; + return _value(_$$selfRef.pointer, _id_value.pointer, i) + .object(); } - static final _id_names = _class.instanceMethodId( + static final _id_names = Headers._class.instanceMethodId( r'names', r'()Ljava/util/Set;', ); @@ -8936,15 +7949,15 @@ class Headers extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final java.util.Set names()` + /// from: `public fun names(): kotlin.collections.Set` /// The returned object must be released after use, by calling the [release] method. jni$_.JSet names() { - return _names(reference.pointer, _id_names as jni$_.JMethodIDPtr) - .object>( - const jni$_.JSetType(jni$_.JStringType())); + final _$$selfRef = reference; + return _names(_$$selfRef.pointer, _id_names.pointer) + .object>(); } - static final _id_values = _class.instanceMethodId( + static final _id_values = Headers._class.instanceMethodId( r'values', r'(Ljava/lang/String;)Ljava/util/List;', ); @@ -8960,19 +7973,18 @@ class Headers extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final java.util.List values(java.lang.String string)` + /// from: `public fun values(name: kotlin.String): kotlin.collections.List` /// The returned object must be released after use, by calling the [release] method. jni$_.JList values( jni$_.JString string, ) { + final _$$selfRef = reference; final _$string = string.reference; - return _values(reference.pointer, _id_values as jni$_.JMethodIDPtr, - _$string.pointer) - .object>( - const jni$_.JListType(jni$_.JStringType())); + return _values(_$$selfRef.pointer, _id_values.pointer, _$string.pointer) + .object>(); } - static final _id_byteCount = _class.instanceMethodId( + static final _id_byteCount = Headers._class.instanceMethodId( r'byteCount', r'()J', ); @@ -8989,13 +8001,13 @@ class Headers extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final long byteCount()` - int byteCount() { - return _byteCount(reference.pointer, _id_byteCount as jni$_.JMethodIDPtr) - .long; + /// from: `public fun byteCount(): kotlin.Long` + core$_.int byteCount() { + final _$$selfRef = reference; + return _byteCount(_$$selfRef.pointer, _id_byteCount.pointer).long; } - static final _id_iterator = _class.instanceMethodId( + static final _id_iterator = Headers._class.instanceMethodId( r'iterator', r'()Ljava/util/Iterator;', ); @@ -9012,15 +8024,15 @@ class Headers extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public java.util.Iterator iterator()` + /// from: `public operator fun iterator(): kotlin.collections.Iterator>` /// The returned object must be released after use, by calling the [release] method. - jni$_.JIterator iterator() { - return _iterator(reference.pointer, _id_iterator as jni$_.JMethodIDPtr) - .object>( - const jni$_.JIteratorType(jni$_.JObjectType())); + jni$_.JIterator iterator() { + final _$$selfRef = reference; + return _iterator(_$$selfRef.pointer, _id_iterator.pointer) + .object>(); } - static final _id_newBuilder = _class.instanceMethodId( + static final _id_newBuilder = Headers._class.instanceMethodId( r'newBuilder', r'()Lokhttp3/Headers$Builder;', ); @@ -9037,14 +8049,15 @@ class Headers extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final okhttp3.Headers$Builder newBuilder()` + /// from: `public fun newBuilder(): okhttp3.Headers.Builder` /// The returned object must be released after use, by calling the [release] method. Headers$Builder newBuilder() { - return _newBuilder(reference.pointer, _id_newBuilder as jni$_.JMethodIDPtr) - .object(const $Headers$Builder$Type()); + final _$$selfRef = reference; + return _newBuilder(_$$selfRef.pointer, _id_newBuilder.pointer) + .object(); } - static final _id_equals = _class.instanceMethodId( + static final _id_equals = Headers._class.instanceMethodId( r'equals', r'(Ljava/lang/Object;)Z', ); @@ -9060,17 +8073,17 @@ class Headers extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public boolean equals(java.lang.Object object)` - bool equals( + /// from: `public operator fun equals(other: kotlin.Any?): kotlin.Boolean` + core$_.bool equals( jni$_.JObject? object, ) { + final _$$selfRef = reference; final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) + return _equals(_$$selfRef.pointer, _id_equals.pointer, _$object.pointer) .boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( + static final _id_hashCode$1 = Headers._class.instanceMethodId( r'hashCode', r'()I', ); @@ -9087,13 +8100,13 @@ class Headers extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public int hashCode()` - int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + /// from: `public fun hashCode(): kotlin.Int` + core$_.int hashCode$1() { + final _$$selfRef = reference; + return _hashCode$1(_$$selfRef.pointer, _id_hashCode$1.pointer).integer; } - static final _id_toString$1 = _class.instanceMethodId( + static final _id_toString$1 = Headers._class.instanceMethodId( r'toString', r'()Ljava/lang/String;', ); @@ -9110,14 +8123,15 @@ class Headers extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public java.lang.String toString()` + /// from: `public fun toString(): kotlin.String` /// The returned object must be released after use, by calling the [release] method. jni$_.JString toString$1() { - return _toString$1(reference.pointer, _id_toString$1 as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + final _$$selfRef = reference; + return _toString$1(_$$selfRef.pointer, _id_toString$1.pointer) + .object(); } - static final _id_toMultimap = _class.instanceMethodId( + static final _id_toMultimap = Headers._class.instanceMethodId( r'toMultimap', r'()Ljava/util/Map;', ); @@ -9134,269 +8148,39 @@ class Headers extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final java.util.Map toMultimap()` + /// from: `public fun toMultimap(): kotlin.collections.Map>` /// The returned object must be released after use, by calling the [release] method. jni$_.JMap> toMultimap() { - return _toMultimap(reference.pointer, _id_toMultimap as jni$_.JMethodIDPtr) - .object>>( - const jni$_.JMapType>( - jni$_.JStringType(), - jni$_.JListType(jni$_.JStringType()))); - } - - static final _id_of = _class.staticMethodId( - r'of', - r'([Ljava/lang/String;)Lokhttp3/Headers;', - ); - - static final _of = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `static public final okhttp3.Headers of(java.lang.String[] strings)` - /// The returned object must be released after use, by calling the [release] method. - static Headers of( - jni$_.JArray strings, - ) { - final _$strings = strings.reference; - return _of(_class.reference.pointer, _id_of as jni$_.JMethodIDPtr, - _$strings.pointer) - .object(const $Headers$Type()); - } - - static final _id_of$1 = _class.staticMethodId( - r'of', - r'(Ljava/util/Map;)Lokhttp3/Headers;', - ); - - static final _of$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `static public final okhttp3.Headers of(java.util.Map map)` - /// The returned object must be released after use, by calling the [release] method. - static Headers of$1( - jni$_.JMap map, - ) { - final _$map = map.reference; - return _of$1(_class.reference.pointer, _id_of$1 as jni$_.JMethodIDPtr, - _$map.pointer) - .object(const $Headers$Type()); - } - - static final _id_new$ = _class.constructorId( - r'([Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V', - ); - - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); - - /// from: `synthetic public void (java.lang.String[] strings, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` - /// The returned object must be released after use, by calling the [release] method. - factory Headers( - jni$_.JArray? strings, - jni$_.JObject? defaultConstructorMarker, - ) { - final _$strings = strings?.reference ?? jni$_.jNullReference; - final _$defaultConstructorMarker = - defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return Headers.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$strings.pointer, - _$defaultConstructorMarker.pointer) - .reference); + final _$$selfRef = reference; + return _toMultimap(_$$selfRef.pointer, _id_toMultimap.pointer) + .object>>(); } -} - -final class $Headers$NullableType extends jni$_.JObjType { - @jni$_.internal - const $Headers$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/Headers;'; - - @jni$_.internal - @core$_.override - Headers? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Headers.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Headers$NullableType).hashCode; - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Headers$NullableType) && - other is $Headers$NullableType; + jni$_.JString? operator [](jni$_.JString string) { + return get(string); } } -final class $Headers$Type extends jni$_.JObjType { +final class $Headers$Type$ extends jni$_.JType { @jni$_.internal - const $Headers$Type(); + const $Headers$Type$(); @jni$_.internal @core$_.override String get signature => r'Lokhttp3/Headers;'; - - @jni$_.internal - @core$_.override - Headers fromReference(jni$_.JReference reference) => Headers.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => const $Headers$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Headers$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Headers$Type) && other is $Headers$Type; - } } /// from: `okhttp3.Callback` -class Callback extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Callback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type Callback._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'okhttp3/Callback'); /// The type which includes information such as the signature of this class. - static const nullableType = $Callback$NullableType(); - static const type = $Callback$Type(); - static final _id_onFailure = _class.instanceMethodId( - r'onFailure', - r'(Lokhttp3/Call;Ljava/io/IOException;)V', - ); - - static final _onFailure = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); - - /// from: `public abstract void onFailure(okhttp3.Call call, java.io.IOException iOException)` - void onFailure( - Call call, - jni$_.JObject iOException, - ) { - final _$call = call.reference; - final _$iOException = iOException.reference; - _onFailure(reference.pointer, _id_onFailure as jni$_.JMethodIDPtr, - _$call.pointer, _$iOException.pointer) - .check(); - } - - static final _id_onResponse = _class.instanceMethodId( - r'onResponse', - r'(Lokhttp3/Call;Lokhttp3/Response;)V', - ); - - static final _onResponse = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); - - /// from: `public abstract void onResponse(okhttp3.Call call, okhttp3.Response response)` - void onResponse( - Call call, - Response response, - ) { - final _$call = call.reference; - final _$response = response.reference; - _onResponse(reference.pointer, _id_onResponse as jni$_.JMethodIDPtr, - _$call.pointer, _$response.pointer) - .check(); - } + static const jni$_.JType type = $Callback$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; + static final core$_.Map _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -9417,7 +8201,7 @@ class Callback extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -9425,15 +8209,15 @@ class Callback extends jni$_.JObject { final $a = $i.args; if ($d == r'onFailure(Lokhttp3/Call;Ljava/io/IOException;)V') { _$impls[$p]!.onFailure( - $a![0]!.as(const $Call$Type(), releaseOriginal: true), - $a![1]!.as(const jni$_.JObjectType(), releaseOriginal: true), + ($a![0] as Call), + ($a![1] as IOException), ); return jni$_.nullptr; } if ($d == r'onResponse(Lokhttp3/Call;Lokhttp3/Response;)V') { _$impls[$p]!.onResponse( - $a![0]!.as(const $Call$Type(), releaseOriginal: true), - $a![1]!.as(const $Response$Type(), releaseOriginal: true), + ($a![0] as Call), + ($a![1] as Response), ); return jni$_.nullptr; } @@ -9456,6 +8240,7 @@ class Callback extends jni$_.JObject { } final $i = jni$_.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); + $i.args?.release(); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( @@ -9478,137 +8263,134 @@ class Callback extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return Callback.fromReference( - $i.implementReference(), - ); + return $i.implement(); } } -abstract base mixin class $Callback { - factory $Callback({ - required void Function(Call call, jni$_.JObject iOException) onFailure, - bool onFailure$async, - required void Function(Call call, Response response) onResponse, - bool onResponse$async, - }) = _$Callback; - - void onFailure(Call call, jni$_.JObject iOException); - bool get onFailure$async => false; - void onResponse(Call call, Response response); - bool get onResponse$async => false; -} - -final class _$Callback with $Callback { - _$Callback({ - required void Function(Call call, jni$_.JObject iOException) onFailure, - this.onFailure$async = false, - required void Function(Call call, Response response) onResponse, - this.onResponse$async = false, - }) : _onFailure = onFailure, - _onResponse = onResponse; - - final void Function(Call call, jni$_.JObject iOException) _onFailure; - final bool onFailure$async; - final void Function(Call call, Response response) _onResponse; - final bool onResponse$async; +extension Callback$$Methods on Callback { + static final _id_onFailure = Callback._class.instanceMethodId( + r'onFailure', + r'(Lokhttp3/Call;Ljava/io/IOException;)V', + ); - void onFailure(Call call, jni$_.JObject iOException) { - return _onFailure(call, iOException); - } + static final _onFailure = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - void onResponse(Call call, Response response) { - return _onResponse(call, response); + /// from: `public fun onFailure(call: okhttp3.Call, e: java.io.IOException): kotlin.Unit` + void onFailure( + Call call, + IOException iOException, + ) { + final _$$selfRef = reference; + final _$call = call.reference; + final _$iOException = iOException.reference; + _onFailure(_$$selfRef.pointer, _id_onFailure.pointer, _$call.pointer, + _$iOException.pointer) + .check(); } -} - -final class $Callback$NullableType extends jni$_.JObjType { - @jni$_.internal - const $Callback$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/Callback;'; - @jni$_.internal - @core$_.override - Callback? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Callback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; + static final _id_onResponse = Callback._class.instanceMethodId( + r'onResponse', + r'(Lokhttp3/Call;Lokhttp3/Response;)V', + ); - @core$_.override - int get hashCode => ($Callback$NullableType).hashCode; + static final _onResponse = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Callback$NullableType) && - other is $Callback$NullableType; + /// from: `public fun onResponse(call: okhttp3.Call, response: okhttp3.Response): kotlin.Unit` + void onResponse( + Call call, + Response response, + ) { + final _$$selfRef = reference; + final _$call = call.reference; + final _$response = response.reference; + _onResponse(_$$selfRef.pointer, _id_onResponse.pointer, _$call.pointer, + _$response.pointer) + .check(); } } -final class $Callback$Type extends jni$_.JObjType { - @jni$_.internal - const $Callback$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/Callback;'; +abstract base mixin class $Callback { + factory $Callback({ + required void Function(Call call, IOException iOException) onFailure, + core$_.bool onFailure$async, + required void Function(Call call, Response response) onResponse, + core$_.bool onResponse$async, + }) = _$Callback; - @jni$_.internal - @core$_.override - Callback fromReference(jni$_.JReference reference) => Callback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); + void onFailure(Call call, IOException iOException); + core$_.bool get onFailure$async => false; + void onResponse(Call call, Response response); + core$_.bool get onResponse$async => false; +} - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => const $Callback$NullableType(); +final class _$Callback with $Callback { + _$Callback({ + required void Function(Call call, IOException iOException) onFailure, + this.onFailure$async = false, + required void Function(Call call, Response response) onResponse, + this.onResponse$async = false, + }) : _onFailure = onFailure, + _onResponse = onResponse; - @jni$_.internal - @core$_.override - final superCount = 1; + final void Function(Call call, IOException iOException) _onFailure; + final core$_.bool onFailure$async; + final void Function(Call call, Response response) _onResponse; + final core$_.bool onResponse$async; - @core$_.override - int get hashCode => ($Callback$Type).hashCode; + void onFailure(Call call, IOException iOException) { + return _onFailure(call, iOException); + } - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Callback$Type) && other is $Callback$Type; + void onResponse(Call call, Response response) { + return _onResponse(call, response); } } -/// from: `okhttp3.ConnectionPool` -class ConnectionPool extends jni$_.JObject { +final class $Callback$Type$ extends jni$_.JType { @jni$_.internal - @core$_.override - final jni$_.JObjType $type; + const $Callback$Type$(); @jni$_.internal - ConnectionPool.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + @core$_.override + String get signature => r'Lokhttp3/Callback;'; +} +/// from: `okhttp3.ConnectionPool` +extension type ConnectionPool._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'okhttp3/ConnectionPool'); /// The type which includes information such as the signature of this class. - static const nullableType = $ConnectionPool$NullableType(); - static const type = $ConnectionPool$Type(); + static const jni$_.JType type = $ConnectionPool$Type$(); static final _id_new$ = _class.constructorId( r'(Lokhttp3/internal/connection/RealConnectionPool;)V', ); @@ -9627,12 +8409,13 @@ class ConnectionPool extends jni$_.JObject { /// from: `public void (okhttp3.internal.connection.RealConnectionPool realConnectionPool)` /// The returned object must be released after use, by calling the [release] method. factory ConnectionPool( - jni$_.JObject realConnectionPool, + RealConnectionPool realConnectionPool, ) { + final _$$classRef = _class.reference; final _$realConnectionPool = realConnectionPool.reference; - return ConnectionPool.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$realConnectionPool.pointer) - .reference); + return _new$( + _$$classRef.pointer, _id_new$.pointer, _$realConnectionPool.pointer) + .object(); } static final _id_new$1 = _class.constructorId( @@ -9651,20 +8434,25 @@ class ConnectionPool extends jni$_.JObject { jni$_.Pointer )>)>>('globalEnv_NewObject') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, int, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + core$_.int, + core$_.int, + jni$_.Pointer)>(); /// from: `public void (int i, long j, java.util.concurrent.TimeUnit timeUnit)` /// The returned object must be released after use, by calling the [release] method. factory ConnectionPool.new$1( - int i, - int j, + core$_.int i, + core$_.int j, TimeUnit timeUnit, ) { + final _$$classRef = _class.reference; final _$timeUnit = timeUnit.reference; - return ConnectionPool.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, i, j, _$timeUnit.pointer) - .reference); + return _new$1( + _$$classRef.pointer, _id_new$1.pointer, i, j, _$timeUnit.pointer) + .object(); } static final _id_new$2 = _class.constructorId( @@ -9686,12 +8474,14 @@ class ConnectionPool extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory ConnectionPool.new$2() { - return ConnectionPool.fromReference( - _new$2(_class.reference.pointer, _id_new$2 as jni$_.JMethodIDPtr) - .reference); + final _$$classRef = _class.reference; + return _new$2(_$$classRef.pointer, _id_new$2.pointer) + .object(); } +} - static final _id_idleConnectionCount = _class.instanceMethodId( +extension ConnectionPool$$Methods on ConnectionPool { + static final _id_idleConnectionCount = ConnectionPool._class.instanceMethodId( r'idleConnectionCount', r'()I', ); @@ -9708,14 +8498,15 @@ class ConnectionPool extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final int idleConnectionCount()` - int idleConnectionCount() { + /// from: `public fun idleConnectionCount(): kotlin.Int` + core$_.int idleConnectionCount() { + final _$$selfRef = reference; return _idleConnectionCount( - reference.pointer, _id_idleConnectionCount as jni$_.JMethodIDPtr) + _$$selfRef.pointer, _id_idleConnectionCount.pointer) .integer; } - static final _id_connectionCount = _class.instanceMethodId( + static final _id_connectionCount = ConnectionPool._class.instanceMethodId( r'connectionCount', r'()I', ); @@ -9732,14 +8523,14 @@ class ConnectionPool extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final int connectionCount()` - int connectionCount() { - return _connectionCount( - reference.pointer, _id_connectionCount as jni$_.JMethodIDPtr) + /// from: `public fun connectionCount(): kotlin.Int` + core$_.int connectionCount() { + final _$$selfRef = reference; + return _connectionCount(_$$selfRef.pointer, _id_connectionCount.pointer) .integer; } - static final _id_evictAll = _class.instanceMethodId( + static final _id_evictAll = ConnectionPool._class.instanceMethodId( r'evictAll', r'()V', ); @@ -9756,104 +8547,28 @@ class ConnectionPool extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final void evictAll()` + /// from: `public fun evictAll(): kotlin.Unit` void evictAll() { - _evictAll(reference.pointer, _id_evictAll as jni$_.JMethodIDPtr).check(); - } -} - -final class $ConnectionPool$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $ConnectionPool$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/ConnectionPool;'; - - @jni$_.internal - @core$_.override - ConnectionPool? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : ConnectionPool.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ConnectionPool$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ConnectionPool$NullableType) && - other is $ConnectionPool$NullableType; + final _$$selfRef = reference; + _evictAll(_$$selfRef.pointer, _id_evictAll.pointer).check(); } } -final class $ConnectionPool$Type extends jni$_.JObjType { +final class $ConnectionPool$Type$ extends jni$_.JType { @jni$_.internal - const $ConnectionPool$Type(); + const $ConnectionPool$Type$(); @jni$_.internal @core$_.override String get signature => r'Lokhttp3/ConnectionPool;'; - - @jni$_.internal - @core$_.override - ConnectionPool fromReference(jni$_.JReference reference) => - ConnectionPool.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $ConnectionPool$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ConnectionPool$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ConnectionPool$Type) && - other is $ConnectionPool$Type; - } } /// from: `okhttp3.Dispatcher` -class Dispatcher extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Dispatcher.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type Dispatcher._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'okhttp3/Dispatcher'); /// The type which includes information such as the signature of this class. - static const nullableType = $Dispatcher$NullableType(); - static const type = $Dispatcher$Type(); + static const jni$_.JType type = $Dispatcher$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -9873,17 +8588,45 @@ class Dispatcher extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory Dispatcher() { - return Dispatcher.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + final _$$classRef = _class.reference; + return _new$(_$$classRef.pointer, _id_new$.pointer).object(); + } + + static final _id_new$1 = _class.constructorId( + r'(Ljava/util/concurrent/ExecutorService;)V', + ); + + static final _new$1 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public void (java.util.concurrent.ExecutorService executorService)` + /// The returned object must be released after use, by calling the [release] method. + factory Dispatcher.new$1( + ExecutorService executorService, + ) { + final _$$classRef = _class.reference; + final _$executorService = executorService.reference; + return _new$1( + _$$classRef.pointer, _id_new$1.pointer, _$executorService.pointer) + .object(); } +} - static final _id_getMaxRequests = _class.instanceMethodId( +extension Dispatcher$$Methods on Dispatcher { + static final _id_get$maxRequests = Dispatcher._class.instanceMethodId( r'getMaxRequests', r'()I', ); - static final _getMaxRequests = jni$_.ProtectedJniExtensions.lookup< + static final _get$maxRequests = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -9896,18 +8639,18 @@ class Dispatcher extends jni$_.JObject { )>(); /// from: `public final int getMaxRequests()` - int getMaxRequests() { - return _getMaxRequests( - reference.pointer, _id_getMaxRequests as jni$_.JMethodIDPtr) + core$_.int get maxRequests { + final _$$selfRef = reference; + return _get$maxRequests(_$$selfRef.pointer, _id_get$maxRequests.pointer) .integer; } - static final _id_setMaxRequests = _class.instanceMethodId( + static final _id_set$maxRequests = Dispatcher._class.instanceMethodId( r'setMaxRequests', r'(I)V', ); - static final _setMaxRequests = jni$_.ProtectedJniExtensions.lookup< + static final _set$maxRequests = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -9915,23 +8658,21 @@ class Dispatcher extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public final void setMaxRequests(int i)` - void setMaxRequests( - int i, - ) { - _setMaxRequests( - reference.pointer, _id_setMaxRequests as jni$_.JMethodIDPtr, i) + set maxRequests(core$_.int i) { + final _$$selfRef = reference; + _set$maxRequests(_$$selfRef.pointer, _id_set$maxRequests.pointer, i) .check(); } - static final _id_getMaxRequestsPerHost = _class.instanceMethodId( + static final _id_get$maxRequestsPerHost = Dispatcher._class.instanceMethodId( r'getMaxRequestsPerHost', r'()I', ); - static final _getMaxRequestsPerHost = jni$_.ProtectedJniExtensions.lookup< + static final _get$maxRequestsPerHost = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -9944,18 +8685,19 @@ class Dispatcher extends jni$_.JObject { )>(); /// from: `public final int getMaxRequestsPerHost()` - int getMaxRequestsPerHost() { - return _getMaxRequestsPerHost( - reference.pointer, _id_getMaxRequestsPerHost as jni$_.JMethodIDPtr) + core$_.int get maxRequestsPerHost { + final _$$selfRef = reference; + return _get$maxRequestsPerHost( + _$$selfRef.pointer, _id_get$maxRequestsPerHost.pointer) .integer; } - static final _id_setMaxRequestsPerHost = _class.instanceMethodId( + static final _id_set$maxRequestsPerHost = Dispatcher._class.instanceMethodId( r'setMaxRequestsPerHost', r'(I)V', ); - static final _setMaxRequestsPerHost = jni$_.ProtectedJniExtensions.lookup< + static final _set$maxRequestsPerHost = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -9963,23 +8705,22 @@ class Dispatcher extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public final void setMaxRequestsPerHost(int i)` - void setMaxRequestsPerHost( - int i, - ) { - _setMaxRequestsPerHost(reference.pointer, - _id_setMaxRequestsPerHost as jni$_.JMethodIDPtr, i) + set maxRequestsPerHost(core$_.int i) { + final _$$selfRef = reference; + _set$maxRequestsPerHost( + _$$selfRef.pointer, _id_set$maxRequestsPerHost.pointer, i) .check(); } - static final _id_getIdleCallback = _class.instanceMethodId( + static final _id_get$idleCallback = Dispatcher._class.instanceMethodId( r'getIdleCallback', r'()Ljava/lang/Runnable;', ); - static final _getIdleCallback = jni$_.ProtectedJniExtensions.lookup< + static final _get$idleCallback = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -9993,18 +8734,18 @@ class Dispatcher extends jni$_.JObject { /// from: `public final java.lang.Runnable getIdleCallback()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getIdleCallback() { - return _getIdleCallback( - reference.pointer, _id_getIdleCallback as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + Runnable? get idleCallback { + final _$$selfRef = reference; + return _get$idleCallback(_$$selfRef.pointer, _id_get$idleCallback.pointer) + .object(); } - static final _id_setIdleCallback = _class.instanceMethodId( + static final _id_set$idleCallback = Dispatcher._class.instanceMethodId( r'setIdleCallback', r'(Ljava/lang/Runnable;)V', ); - static final _setIdleCallback = jni$_.ProtectedJniExtensions.lookup< + static final _set$idleCallback = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -10016,16 +8757,15 @@ class Dispatcher extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public final void setIdleCallback(java.lang.Runnable runnable)` - void setIdleCallback( - jni$_.JObject? runnable, - ) { + set idleCallback(Runnable? runnable) { + final _$$selfRef = reference; final _$runnable = runnable?.reference ?? jni$_.jNullReference; - _setIdleCallback(reference.pointer, - _id_setIdleCallback as jni$_.JMethodIDPtr, _$runnable.pointer) + _set$idleCallback(_$$selfRef.pointer, _id_set$idleCallback.pointer, + _$runnable.pointer) .check(); } - static final _id_executorService = _class.instanceMethodId( + static final _id_executorService = Dispatcher._class.instanceMethodId( r'executorService', r'()Ljava/util/concurrent/ExecutorService;', ); @@ -10045,38 +8785,12 @@ class Dispatcher extends jni$_.JObject { /// from: `public final java.util.concurrent.ExecutorService executorService()` /// The returned object must be released after use, by calling the [release] method. ExecutorService executorService() { - return _executorService( - reference.pointer, _id_executorService as jni$_.JMethodIDPtr) - .object(const $ExecutorService$Type()); - } - - static final _id_new$1 = _class.constructorId( - r'(Ljava/util/concurrent/ExecutorService;)V', - ); - - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public void (java.util.concurrent.ExecutorService executorService)` - /// The returned object must be released after use, by calling the [release] method. - factory Dispatcher.new$1( - ExecutorService executorService, - ) { - final _$executorService = executorService.reference; - return Dispatcher.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, _$executorService.pointer) - .reference); + final _$$selfRef = reference; + return _executorService(_$$selfRef.pointer, _id_executorService.pointer) + .object(); } - static final _id_cancelAll = _class.instanceMethodId( + static final _id_cancelAll = Dispatcher._class.instanceMethodId( r'cancelAll', r'()V', ); @@ -10093,12 +8807,13 @@ class Dispatcher extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final void cancelAll()` + /// from: `public fun cancelAll(): kotlin.Unit` void cancelAll() { - _cancelAll(reference.pointer, _id_cancelAll as jni$_.JMethodIDPtr).check(); + final _$$selfRef = reference; + _cancelAll(_$$selfRef.pointer, _id_cancelAll.pointer).check(); } - static final _id_queuedCalls = _class.instanceMethodId( + static final _id_queuedCalls = Dispatcher._class.instanceMethodId( r'queuedCalls', r'()Ljava/util/List;', ); @@ -10115,15 +8830,15 @@ class Dispatcher extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final java.util.List queuedCalls()` + /// from: `public fun queuedCalls(): kotlin.collections.List` /// The returned object must be released after use, by calling the [release] method. jni$_.JList queuedCalls() { - return _queuedCalls( - reference.pointer, _id_queuedCalls as jni$_.JMethodIDPtr) - .object>(const jni$_.JListType($Call$Type())); + final _$$selfRef = reference; + return _queuedCalls(_$$selfRef.pointer, _id_queuedCalls.pointer) + .object>(); } - static final _id_runningCalls = _class.instanceMethodId( + static final _id_runningCalls = Dispatcher._class.instanceMethodId( r'runningCalls', r'()Ljava/util/List;', ); @@ -10140,15 +8855,15 @@ class Dispatcher extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final java.util.List runningCalls()` + /// from: `public fun runningCalls(): kotlin.collections.List` /// The returned object must be released after use, by calling the [release] method. jni$_.JList runningCalls() { - return _runningCalls( - reference.pointer, _id_runningCalls as jni$_.JMethodIDPtr) - .object>(const jni$_.JListType($Call$Type())); + final _$$selfRef = reference; + return _runningCalls(_$$selfRef.pointer, _id_runningCalls.pointer) + .object>(); } - static final _id_queuedCallsCount = _class.instanceMethodId( + static final _id_queuedCallsCount = Dispatcher._class.instanceMethodId( r'queuedCallsCount', r'()I', ); @@ -10165,14 +8880,14 @@ class Dispatcher extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final int queuedCallsCount()` - int queuedCallsCount() { - return _queuedCallsCount( - reference.pointer, _id_queuedCallsCount as jni$_.JMethodIDPtr) + /// from: `public fun queuedCallsCount(): kotlin.Int` + core$_.int queuedCallsCount() { + final _$$selfRef = reference; + return _queuedCallsCount(_$$selfRef.pointer, _id_queuedCallsCount.pointer) .integer; } - static final _id_runningCallsCount = _class.instanceMethodId( + static final _id_runningCallsCount = Dispatcher._class.instanceMethodId( r'runningCallsCount', r'()I', ); @@ -10189,111 +8904,252 @@ class Dispatcher extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final int runningCallsCount()` - int runningCallsCount() { - return _runningCallsCount( - reference.pointer, _id_runningCallsCount as jni$_.JMethodIDPtr) + /// from: `public fun runningCallsCount(): kotlin.Int` + core$_.int runningCallsCount() { + final _$$selfRef = reference; + return _runningCallsCount(_$$selfRef.pointer, _id_runningCallsCount.pointer) .integer; } } -final class $Dispatcher$NullableType extends jni$_.JObjType { +final class $Dispatcher$Type$ extends jni$_.JType { @jni$_.internal - const $Dispatcher$NullableType(); + const $Dispatcher$Type$(); @jni$_.internal @core$_.override String get signature => r'Lokhttp3/Dispatcher;'; +} - @jni$_.internal - @core$_.override - Dispatcher? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Dispatcher.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; +/// from: `java.util.concurrent.ExecutorService` +extension type ExecutorService._(jni$_.JObject _$this) + implements jni$_.JObject, AutoCloseable, Executor { + static final _class = + jni$_.JClass.forName(r'java/util/concurrent/ExecutorService'); - @core$_.override - int get hashCode => ($Dispatcher$NullableType).hashCode; + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = $ExecutorService$Type$(); - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Dispatcher$NullableType) && - other is $Dispatcher$NullableType; + /// Maps a specific port to the implemented interface. + static final core$_.Map _$impls = {}; + static jni$_.JObjectPtr _$invoke( + core$_.int port, + jni$_.JObjectPtr descriptor, + jni$_.JObjectPtr args, + ) { + return _$invokeMethod( + port, + jni$_.MethodInvocation.fromAddresses( + 0, + descriptor.address, + args.address, + ), + ); } -} - -final class $Dispatcher$Type extends jni$_.JObjType { - @jni$_.internal - const $Dispatcher$Type(); - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/Dispatcher;'; + static final jni$_.Pointer< + jni$_.NativeFunction< + jni$_.JObjectPtr Function( + jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); - @jni$_.internal - @core$_.override - Dispatcher fromReference(jni$_.JReference reference) => - Dispatcher.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $Dispatcher$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; + static jni$_.Pointer _$invokeMethod( + core$_.int $p, + jni$_.MethodInvocation $i, + ) { + try { + final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); + final $a = $i.args; + if ($d == r'awaitTermination(JLjava/util/concurrent/TimeUnit;)Z') { + final $r = _$impls[$p]!.awaitTermination( + ($a![0] as jni$_.JLong).toDartInt(releaseOriginal: true), + ($a![1] as TimeUnit?), + ); + return $r.toJBoolean().reference.toPointer(); + } + if ($d == r'close()V') { + _$impls[$p]!.close(); + return jni$_.nullptr; + } + if ($d == r'invokeAll(Ljava/util/Collection;)Ljava/util/List;') { + final $r = _$impls[$p]!.invokeAll( + ($a![0] as jni$_.JCollection?), + ); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } + if ($d == + r'invokeAll(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/util/List;') { + final $r = _$impls[$p]!.invokeAll$1( + ($a![0] as jni$_.JCollection?), + ($a![1] as jni$_.JLong).toDartInt(releaseOriginal: true), + ($a![2] as TimeUnit?), + ); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } + if ($d == r'invokeAny(Ljava/util/Collection;)Ljava/lang/Object;') { + final $r = _$impls[$p]!.invokeAny( + ($a![0] as jni$_.JCollection?), + ); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } + if ($d == + r'invokeAny(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;') { + final $r = _$impls[$p]!.invokeAny$1( + ($a![0] as jni$_.JCollection?), + ($a![1] as jni$_.JLong).toDartInt(releaseOriginal: true), + ($a![2] as TimeUnit?), + ); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } + if ($d == r'isShutdown()Z') { + final $r = _$impls[$p]!.isShutdown(); + return $r.toJBoolean().reference.toPointer(); + } + if ($d == r'isTerminated()Z') { + final $r = _$impls[$p]!.isTerminated(); + return $r.toJBoolean().reference.toPointer(); + } + if ($d == r'shutdown()V') { + _$impls[$p]!.shutdown(); + return jni$_.nullptr; + } + if ($d == r'shutdownNow()Ljava/util/List;') { + final $r = _$impls[$p]!.shutdownNow(); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } + if ($d == r'submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;') { + final $r = _$impls[$p]!.submit( + ($a![0] as Runnable?), + ); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } + if ($d == + r'submit(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Future;') { + final $r = _$impls[$p]!.submit$1( + ($a![0] as Runnable?), + ($a![1] as jni$_.JObject?), + ); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } + if ($d == + r'submit(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;') { + final $r = _$impls[$p]!.submit$2( + ($a![0] as Callable?), + ); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } + } catch (e) { + return jni$_.ProtectedJniExtensions.newDartException(e); + } + return jni$_.nullptr; + } - @core$_.override - int get hashCode => ($Dispatcher$Type).hashCode; + static void implementIn( + jni$_.JImplementer implementer, + $ExecutorService $impl, + ) { + late final jni$_.RawReceivePort $p; + $p = jni$_.RawReceivePort(($m) { + if ($m == null) { + _$impls.remove($p.sendPort.nativePort); + $p.close(); + return; + } + final $i = jni$_.MethodInvocation.fromMessage($m); + final $r = _$invokeMethod($p.sendPort.nativePort, $i); + $i.args?.release(); + jni$_.ProtectedJniExtensions.returnResult($i.result, $r); + }); + implementer.add( + r'java.util.concurrent.ExecutorService', + $p, + _$invokePointer, + [ + if ($impl.close$async) r'close()V', + if ($impl.shutdown$async) r'shutdown()V', + ], + ); + final $a = $p.sendPort.nativePort; + _$impls[$a] = $impl; + } - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Dispatcher$Type) && other is $Dispatcher$Type; + factory ExecutorService.implement( + $ExecutorService $impl, + ) { + final $i = jni$_.JImplementer(); + implementIn($i, $impl); + return $i.implement(); } } -/// from: `java.util.concurrent.ExecutorService` -class ExecutorService extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; +extension ExecutorService$$Methods on ExecutorService { + static final _id_awaitTermination = ExecutorService._class.instanceMethodId( + r'awaitTermination', + r'(JLjava/util/concurrent/TimeUnit;)Z', + ); - @jni$_.internal - ExecutorService.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + static final _awaitTermination = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_ + .VarArgs<(jni$_.Int64, jni$_.Pointer)>)>>( + 'globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, core$_.int, jni$_.Pointer)>(); - static final _class = - jni$_.JClass.forName(r'java/util/concurrent/ExecutorService'); + /// from: `public abstract boolean awaitTermination(long j, java.util.concurrent.TimeUnit timeUnit)` + core$_.bool awaitTermination( + core$_.int j, + TimeUnit? timeUnit, + ) { + final _$$selfRef = reference; + final _$timeUnit = timeUnit?.reference ?? jni$_.jNullReference; + return _awaitTermination(_$$selfRef.pointer, _id_awaitTermination.pointer, + j, _$timeUnit.pointer) + .boolean; + } - /// The type which includes information such as the signature of this class. - static const nullableType = $ExecutorService$NullableType(); - static const type = $ExecutorService$Type(); - static final _id_shutdown = _class.instanceMethodId( - r'shutdown', + static final _id_close = ExecutorService._class.instanceMethodId( + r'close', r'()V', ); - static final _shutdown = jni$_.ProtectedJniExtensions.lookup< + static final _close = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -10305,116 +9161,243 @@ class ExecutorService extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public abstract void shutdown()` - void shutdown() { - _shutdown(reference.pointer, _id_shutdown as jni$_.JMethodIDPtr).check(); + /// from: `public void close()` + void close() { + final _$$selfRef = reference; + _close(_$$selfRef.pointer, _id_close.pointer).check(); } - static final _id_shutdownNow = _class.instanceMethodId( - r'shutdownNow', - r'()Ljava/util/List;', + static final _id_invokeAll = ExecutorService._class.instanceMethodId( + r'invokeAll', + r'(Ljava/util/Collection;)Ljava/util/List;', ); - static final _shutdownNow = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') + static final _invokeAll = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallObjectMethod') .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public abstract java.util.List shutdownNow()` + /// from: `public abstract java.util.List> invokeAll(java.util.Collection collection)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? shutdownNow() { - return _shutdownNow( - reference.pointer, _id_shutdownNow as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - jni$_.JObjectNullableType())); - } - - static final _id_isShutdown = _class.instanceMethodId( - r'isShutdown', - r'()Z', - ); - - static final _isShutdown = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public abstract boolean isShutdown()` - bool isShutdown() { - return _isShutdown(reference.pointer, _id_isShutdown as jni$_.JMethodIDPtr) - .boolean; + jni$_.JList? invokeAll<$T extends jni$_.JObject?>( + jni$_.JCollection? collection, + ) { + final _$$selfRef = reference; + final _$collection = collection?.reference ?? jni$_.jNullReference; + return _invokeAll( + _$$selfRef.pointer, _id_invokeAll.pointer, _$collection.pointer) + .object?>(); } - static final _id_isTerminated = _class.instanceMethodId( - r'isTerminated', - r'()Z', + static final _id_invokeAll$1 = ExecutorService._class.instanceMethodId( + r'invokeAll', + r'(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/util/List;', ); - static final _isTerminated = jni$_.ProtectedJniExtensions.lookup< + static final _invokeAll$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int64, + jni$_.Pointer + )>)>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + jni$_.Pointer)>(); - /// from: `public abstract boolean isTerminated()` - bool isTerminated() { - return _isTerminated( - reference.pointer, _id_isTerminated as jni$_.JMethodIDPtr) - .boolean; + /// from: `public abstract java.util.List> invokeAll(java.util.Collection collection, long j, java.util.concurrent.TimeUnit timeUnit)` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JList? invokeAll$1<$T extends jni$_.JObject?>( + jni$_.JCollection? collection, + core$_.int j, + TimeUnit? timeUnit, + ) { + final _$$selfRef = reference; + final _$collection = collection?.reference ?? jni$_.jNullReference; + final _$timeUnit = timeUnit?.reference ?? jni$_.jNullReference; + return _invokeAll$1(_$$selfRef.pointer, _id_invokeAll$1.pointer, + _$collection.pointer, j, _$timeUnit.pointer) + .object?>(); } - static final _id_awaitTermination = _class.instanceMethodId( - r'awaitTermination', - r'(JLjava/util/concurrent/TimeUnit;)Z', + static final _id_invokeAny = ExecutorService._class.instanceMethodId( + r'invokeAny', + r'(Ljava/util/Collection;)Ljava/lang/Object;', ); - static final _awaitTermination = jni$_.ProtectedJniExtensions.lookup< + static final _invokeAny = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Int64, jni$_.Pointer)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public abstract boolean awaitTermination(long j, java.util.concurrent.TimeUnit timeUnit)` - bool awaitTermination( - int j, + /// from: `public abstract T invokeAny(java.util.Collection collection)` + /// The returned object must be released after use, by calling the [release] method. + $T? invokeAny<$T extends jni$_.JObject?>( + jni$_.JCollection? collection, + ) { + final _$$selfRef = reference; + final _$collection = collection?.reference ?? jni$_.jNullReference; + return _invokeAny( + _$$selfRef.pointer, _id_invokeAny.pointer, _$collection.pointer) + .object<$T?>(); + } + + static final _id_invokeAny$1 = ExecutorService._class.instanceMethodId( + r'invokeAny', + r'(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;', + ); + + static final _invokeAny$1 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int64, + jni$_.Pointer + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + jni$_.Pointer)>(); + + /// from: `public abstract T invokeAny(java.util.Collection collection, long j, java.util.concurrent.TimeUnit timeUnit)` + /// The returned object must be released after use, by calling the [release] method. + $T? invokeAny$1<$T extends jni$_.JObject?>( + jni$_.JCollection? collection, + core$_.int j, TimeUnit? timeUnit, ) { + final _$$selfRef = reference; + final _$collection = collection?.reference ?? jni$_.jNullReference; final _$timeUnit = timeUnit?.reference ?? jni$_.jNullReference; - return _awaitTermination(reference.pointer, - _id_awaitTermination as jni$_.JMethodIDPtr, j, _$timeUnit.pointer) - .boolean; + return _invokeAny$1(_$$selfRef.pointer, _id_invokeAny$1.pointer, + _$collection.pointer, j, _$timeUnit.pointer) + .object<$T?>(); + } + + static final _id_isShutdown = ExecutorService._class.instanceMethodId( + r'isShutdown', + r'()Z', + ); + + static final _isShutdown = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public abstract boolean isShutdown()` + core$_.bool isShutdown() { + final _$$selfRef = reference; + return _isShutdown(_$$selfRef.pointer, _id_isShutdown.pointer).boolean; + } + + static final _id_isTerminated = ExecutorService._class.instanceMethodId( + r'isTerminated', + r'()Z', + ); + + static final _isTerminated = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public abstract boolean isTerminated()` + core$_.bool isTerminated() { + final _$$selfRef = reference; + return _isTerminated(_$$selfRef.pointer, _id_isTerminated.pointer).boolean; + } + + static final _id_shutdown = ExecutorService._class.instanceMethodId( + r'shutdown', + r'()V', + ); + + static final _shutdown = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public abstract void shutdown()` + void shutdown() { + final _$$selfRef = reference; + _shutdown(_$$selfRef.pointer, _id_shutdown.pointer).check(); + } + + static final _id_shutdownNow = ExecutorService._class.instanceMethodId( + r'shutdownNow', + r'()Ljava/util/List;', + ); + + static final _shutdownNow = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public abstract java.util.List shutdownNow()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JList? shutdownNow() { + final _$$selfRef = reference; + return _shutdownNow(_$$selfRef.pointer, _id_shutdownNow.pointer) + .object?>(); } - static final _id_submit = _class.instanceMethodId( + static final _id_submit = ExecutorService._class.instanceMethodId( r'submit', - r'(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;', + r'(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;', ); static final _submit = jni$_.ProtectedJniExtensions.lookup< @@ -10428,19 +9411,18 @@ class ExecutorService extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public abstract java.util.concurrent.Future submit(java.util.concurrent.Callable callable)` + /// from: `public abstract java.util.concurrent.Future submit(java.lang.Runnable runnable)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? submit<$T extends jni$_.JObject?>( - jni$_.JObject? callable, { - required jni$_.JObjType<$T> T, - }) { - final _$callable = callable?.reference ?? jni$_.jNullReference; - return _submit(reference.pointer, _id_submit as jni$_.JMethodIDPtr, - _$callable.pointer) - .object(const jni$_.JObjectNullableType()); + Future$1? submit( + Runnable? runnable, + ) { + final _$$selfRef = reference; + final _$runnable = runnable?.reference ?? jni$_.jNullReference; + return _submit(_$$selfRef.pointer, _id_submit.pointer, _$runnable.pointer) + .object(); } - static final _id_submit$1 = _class.instanceMethodId( + static final _id_submit$1 = ExecutorService._class.instanceMethodId( r'submit', r'(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Future;', ); @@ -10462,23 +9444,23 @@ class ExecutorService extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public abstract java.util.concurrent.Future submit(java.lang.Runnable runnable, T object)` + /// from: `public abstract java.util.concurrent.Future submit(java.lang.Runnable runnable, T object)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? submit$1<$T extends jni$_.JObject?>( - jni$_.JObject? runnable, - $T? object, { - required jni$_.JObjType<$T> T, - }) { + Future$1? submit$1<$T extends jni$_.JObject?>( + Runnable? runnable, + $T? object, + ) { + final _$$selfRef = reference; final _$runnable = runnable?.reference ?? jni$_.jNullReference; final _$object = object?.reference ?? jni$_.jNullReference; - return _submit$1(reference.pointer, _id_submit$1 as jni$_.JMethodIDPtr, + return _submit$1(_$$selfRef.pointer, _id_submit$1.pointer, _$runnable.pointer, _$object.pointer) - .object(const jni$_.JObjectNullableType()); + .object(); } - static final _id_submit$2 = _class.instanceMethodId( + static final _id_submit$2 = ExecutorService._class.instanceMethodId( r'submit', - r'(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;', + r'(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;', ); static final _submit$2 = jni$_.ProtectedJniExtensions.lookup< @@ -10492,23 +9474,240 @@ class ExecutorService extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public abstract java.util.concurrent.Future submit(java.lang.Runnable runnable)` + /// from: `public abstract java.util.concurrent.Future submit(java.util.concurrent.Callable callable)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? submit$2( - jni$_.JObject? runnable, + Future$1? submit$2<$T extends jni$_.JObject?>( + Callable? callable, ) { - final _$runnable = runnable?.reference ?? jni$_.jNullReference; - return _submit$2(reference.pointer, _id_submit$2 as jni$_.JMethodIDPtr, - _$runnable.pointer) - .object(const jni$_.JObjectNullableType()); + final _$$selfRef = reference; + final _$callable = callable?.reference ?? jni$_.jNullReference; + return _submit$2( + _$$selfRef.pointer, _id_submit$2.pointer, _$callable.pointer) + .object(); } +} - static final _id_invokeAll = _class.instanceMethodId( - r'invokeAll', - r'(Ljava/util/Collection;)Ljava/util/List;', +abstract base mixin class $ExecutorService { + factory $ExecutorService({ + required core$_.bool Function(core$_.int j, TimeUnit? timeUnit) + awaitTermination, + required void Function() close, + core$_.bool close$async, + required jni$_.JList? Function( + jni$_.JCollection? collection) + invokeAll, + required jni$_.JList? Function( + jni$_.JCollection? collection, + core$_.int j, + TimeUnit? timeUnit) + invokeAll$1, + required jni$_.JObject? Function(jni$_.JCollection? collection) + invokeAny, + required jni$_.JObject? Function(jni$_.JCollection? collection, + core$_.int j, TimeUnit? timeUnit) + invokeAny$1, + required core$_.bool Function() isShutdown, + required core$_.bool Function() isTerminated, + required void Function() shutdown, + core$_.bool shutdown$async, + required jni$_.JList? Function() shutdownNow, + required Future$1? Function(Runnable? runnable) submit, + required Future$1? Function(Runnable? runnable, jni$_.JObject? object) + submit$1, + required Future$1? Function(Callable? callable) submit$2, + }) = _$ExecutorService; + + core$_.bool awaitTermination(core$_.int j, TimeUnit? timeUnit); + void close(); + core$_.bool get close$async => false; + jni$_.JList? invokeAll(jni$_.JCollection? collection); + jni$_.JList? invokeAll$1(jni$_.JCollection? collection, + core$_.int j, TimeUnit? timeUnit); + jni$_.JObject? invokeAny(jni$_.JCollection? collection); + jni$_.JObject? invokeAny$1(jni$_.JCollection? collection, + core$_.int j, TimeUnit? timeUnit); + core$_.bool isShutdown(); + core$_.bool isTerminated(); + void shutdown(); + core$_.bool get shutdown$async => false; + jni$_.JList? shutdownNow(); + Future$1? submit(Runnable? runnable); + Future$1? submit$1(Runnable? runnable, jni$_.JObject? object); + Future$1? submit$2(Callable? callable); +} + +final class _$ExecutorService with $ExecutorService { + _$ExecutorService({ + required core$_.bool Function(core$_.int j, TimeUnit? timeUnit) + awaitTermination, + required void Function() close, + this.close$async = false, + required jni$_.JList? Function( + jni$_.JCollection? collection) + invokeAll, + required jni$_.JList? Function( + jni$_.JCollection? collection, + core$_.int j, + TimeUnit? timeUnit) + invokeAll$1, + required jni$_.JObject? Function(jni$_.JCollection? collection) + invokeAny, + required jni$_.JObject? Function(jni$_.JCollection? collection, + core$_.int j, TimeUnit? timeUnit) + invokeAny$1, + required core$_.bool Function() isShutdown, + required core$_.bool Function() isTerminated, + required void Function() shutdown, + this.shutdown$async = false, + required jni$_.JList? Function() shutdownNow, + required Future$1? Function(Runnable? runnable) submit, + required Future$1? Function(Runnable? runnable, jni$_.JObject? object) + submit$1, + required Future$1? Function(Callable? callable) submit$2, + }) : _awaitTermination = awaitTermination, + _close = close, + _invokeAll = invokeAll, + _invokeAll$1 = invokeAll$1, + _invokeAny = invokeAny, + _invokeAny$1 = invokeAny$1, + _isShutdown = isShutdown, + _isTerminated = isTerminated, + _shutdown = shutdown, + _shutdownNow = shutdownNow, + _submit = submit, + _submit$1 = submit$1, + _submit$2 = submit$2; + + final core$_.bool Function(core$_.int j, TimeUnit? timeUnit) + _awaitTermination; + final void Function() _close; + final core$_.bool close$async; + final jni$_.JList? Function( + jni$_.JCollection? collection) _invokeAll; + final jni$_.JList? Function( + jni$_.JCollection? collection, + core$_.int j, + TimeUnit? timeUnit) _invokeAll$1; + final jni$_.JObject? Function(jni$_.JCollection? collection) + _invokeAny; + final jni$_.JObject? Function(jni$_.JCollection? collection, + core$_.int j, TimeUnit? timeUnit) _invokeAny$1; + final core$_.bool Function() _isShutdown; + final core$_.bool Function() _isTerminated; + final void Function() _shutdown; + final core$_.bool shutdown$async; + final jni$_.JList? Function() _shutdownNow; + final Future$1? Function(Runnable? runnable) _submit; + final Future$1? Function(Runnable? runnable, jni$_.JObject? object) _submit$1; + final Future$1? Function(Callable? callable) _submit$2; + + core$_.bool awaitTermination(core$_.int j, TimeUnit? timeUnit) { + return _awaitTermination(j, timeUnit); + } + + void close() { + return _close(); + } + + jni$_.JList? invokeAll(jni$_.JCollection? collection) { + return _invokeAll(collection); + } + + jni$_.JList? invokeAll$1(jni$_.JCollection? collection, + core$_.int j, TimeUnit? timeUnit) { + return _invokeAll$1(collection, j, timeUnit); + } + + jni$_.JObject? invokeAny(jni$_.JCollection? collection) { + return _invokeAny(collection); + } + + jni$_.JObject? invokeAny$1(jni$_.JCollection? collection, + core$_.int j, TimeUnit? timeUnit) { + return _invokeAny$1(collection, j, timeUnit); + } + + core$_.bool isShutdown() { + return _isShutdown(); + } + + core$_.bool isTerminated() { + return _isTerminated(); + } + + void shutdown() { + return _shutdown(); + } + + jni$_.JList? shutdownNow() { + return _shutdownNow(); + } + + Future$1? submit(Runnable? runnable) { + return _submit(runnable); + } + + Future$1? submit$1(Runnable? runnable, jni$_.JObject? object) { + return _submit$1(runnable, object); + } + + Future$1? submit$2(Callable? callable) { + return _submit$2(callable); + } +} + +final class $ExecutorService$Type$ extends jni$_.JType { + @jni$_.internal + const $ExecutorService$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/util/concurrent/ExecutorService;'; +} + +/// from: `okhttp3.Cache$Companion` +extension type Cache$Companion._(jni$_.JObject _$this) + implements jni$_.JObject { + static final _class = jni$_.JClass.forName(r'okhttp3/Cache$Companion'); + + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = $Cache$Companion$Type$(); + static final _id_new$ = _class.constructorId( + r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', ); - static final _invokeAll = jni$_.ProtectedJniExtensions.lookup< + static final _new$ = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` + /// The returned object must be released after use, by calling the [release] method. + factory Cache$Companion( + DefaultConstructorMarker? defaultConstructorMarker, + ) { + final _$$classRef = _class.reference; + final _$defaultConstructorMarker = + defaultConstructorMarker?.reference ?? jni$_.jNullReference; + return _new$(_$$classRef.pointer, _id_new$.pointer, + _$defaultConstructorMarker.pointer) + .object(); + } +} + +extension Cache$Companion$$Methods on Cache$Companion { + static final _id_key = Cache$Companion._class.instanceMethodId( + r'key', + r'(Lokhttp3/HttpUrl;)Ljava/lang/String;', + ); + + static final _key = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -10519,26 +9718,23 @@ class ExecutorService extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public abstract java.util.List invokeAll(java.util.Collection collection)` + /// from: `public fun key(url: okhttp3.HttpUrl): kotlin.String` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? invokeAll<$T extends jni$_.JObject?>( - jni$_.JObject? collection, { - required jni$_.JObjType<$T> T, - }) { - final _$collection = collection?.reference ?? jni$_.jNullReference; - return _invokeAll(reference.pointer, _id_invokeAll as jni$_.JMethodIDPtr, - _$collection.pointer) - .object?>( - const jni$_.JListNullableType( - jni$_.JObjectNullableType())); + jni$_.JString key( + HttpUrl httpUrl, + ) { + final _$$selfRef = reference; + final _$httpUrl = httpUrl.reference; + return _key(_$$selfRef.pointer, _id_key.pointer, _$httpUrl.pointer) + .object(); } - static final _id_invokeAll$1 = _class.instanceMethodId( - r'invokeAll', - r'(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/util/List;', + static final _id_varyMatches = Cache$Companion._class.instanceMethodId( + r'varyMatches', + r'(Lokhttp3/Response;Lokhttp3/Headers;Lokhttp3/Request;)Z', ); - static final _invokeAll$1 = jni$_.ProtectedJniExtensions.lookup< + static final _varyMatches = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -10546,44 +9742,65 @@ class ExecutorService extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Int64, + jni$_.Pointer, jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') + )>)>>('globalEnv_CallBooleanMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, + jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public abstract java.util.List invokeAll(java.util.Collection collection, long j, java.util.concurrent.TimeUnit timeUnit)` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? invokeAll$1<$T extends jni$_.JObject?>( - jni$_.JObject? collection, - int j, - TimeUnit? timeUnit, { - required jni$_.JObjType<$T> T, - }) { - final _$collection = collection?.reference ?? jni$_.jNullReference; - final _$timeUnit = timeUnit?.reference ?? jni$_.jNullReference; - return _invokeAll$1( - reference.pointer, - _id_invokeAll$1 as jni$_.JMethodIDPtr, - _$collection.pointer, - j, - _$timeUnit.pointer) - .object?>( - const jni$_.JListNullableType( - jni$_.JObjectNullableType())); + /// from: `public fun varyMatches(cachedResponse: okhttp3.Response, cachedRequest: okhttp3.Headers, newRequest: okhttp3.Request): kotlin.Boolean` + core$_.bool varyMatches( + Response response, + Headers headers, + Request request, + ) { + final _$$selfRef = reference; + final _$response = response.reference; + final _$headers = headers.reference; + final _$request = request.reference; + return _varyMatches(_$$selfRef.pointer, _id_varyMatches.pointer, + _$response.pointer, _$headers.pointer, _$request.pointer) + .boolean; } - static final _id_invokeAny = _class.instanceMethodId( - r'invokeAny', - r'(Ljava/util/Collection;)Ljava/lang/Object;', + static final _id_hasVaryAll = Cache$Companion._class.instanceMethodId( + r'hasVaryAll', + r'(Lokhttp3/Response;)Z', ); - static final _invokeAny = jni$_.ProtectedJniExtensions.lookup< + static final _hasVaryAll = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public fun hasVaryAll(): kotlin.Boolean` + core$_.bool hasVaryAll( + Response response, + ) { + final _$$selfRef = reference; + final _$response = response.reference; + return _hasVaryAll( + _$$selfRef.pointer, _id_hasVaryAll.pointer, _$response.pointer) + .boolean; + } + + static final _id_varyHeaders = Cache$Companion._class.instanceMethodId( + r'varyHeaders', + r'(Lokhttp3/Response;)Lokhttp3/Headers;', + ); + + static final _varyHeaders = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -10594,24 +9811,97 @@ class ExecutorService extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public abstract T invokeAny(java.util.Collection collection)` + /// from: `public fun varyHeaders(): okhttp3.Headers` /// The returned object must be released after use, by calling the [release] method. - $T? invokeAny<$T extends jni$_.JObject?>( - jni$_.JObject? collection, { - required jni$_.JObjType<$T> T, - }) { - final _$collection = collection?.reference ?? jni$_.jNullReference; - return _invokeAny(reference.pointer, _id_invokeAny as jni$_.JMethodIDPtr, - _$collection.pointer) - .object<$T?>(T.nullableType); + Headers varyHeaders( + Response response, + ) { + final _$$selfRef = reference; + final _$response = response.reference; + return _varyHeaders( + _$$selfRef.pointer, _id_varyHeaders.pointer, _$response.pointer) + .object(); } +} - static final _id_invokeAny$1 = _class.instanceMethodId( - r'invokeAny', - r'(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;', +final class $Cache$Companion$Type$ extends jni$_.JType { + @jni$_.internal + const $Cache$Companion$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokhttp3/Cache$Companion;'; +} + +/// from: `okhttp3.Cache$Entry$Companion` +extension type Cache$Entry$Companion._(jni$_.JObject _$this) + implements jni$_.JObject { + static final _class = jni$_.JClass.forName(r'okhttp3/Cache$Entry$Companion'); + + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = + $Cache$Entry$Companion$Type$(); + static final _id_new$ = _class.constructorId( + r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', ); - static final _invokeAny$1 = jni$_.ProtectedJniExtensions.lookup< + static final _new$ = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` + /// The returned object must be released after use, by calling the [release] method. + factory Cache$Entry$Companion( + DefaultConstructorMarker? defaultConstructorMarker, + ) { + final _$$classRef = _class.reference; + final _$defaultConstructorMarker = + defaultConstructorMarker?.reference ?? jni$_.jNullReference; + return _new$(_$$classRef.pointer, _id_new$.pointer, + _$defaultConstructorMarker.pointer) + .object(); + } +} + +final class $Cache$Entry$Companion$Type$ + extends jni$_.JType { + @jni$_.internal + const $Cache$Entry$Companion$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokhttp3/Cache$Entry$Companion;'; +} + +/// from: `okhttp3.Cache` +extension type Cache._(jni$_.JObject _$this) + implements jni$_.JObject, Closeable, Flushable { + static final _class = jni$_.JClass.forName(r'okhttp3/Cache'); + + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = $Cache$Type$(); + static final _id_Companion = _class.staticFieldId( + r'Companion', + r'Lokhttp3/Cache$Companion;', + ); + + /// from: `static public final okhttp3.Cache$Companion Companion` + /// The returned object must be released after use, by calling the [release] method. + static Cache$Companion get Companion => + _id_Companion.get(_class, Cache$Companion.type) as Cache$Companion; + + static final _id_new$ = _class.constructorId( + r'(Ljava/io/File;JLokhttp3/internal/io/FileSystem;)V', + ); + + static final _new$ = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -10621,458 +9911,59 @@ class ExecutorService extends jni$_.JObject { jni$_.Pointer, jni$_.Int64, jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') + )>)>>('globalEnv_NewObject') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer)>(); - /// from: `public abstract T invokeAny(java.util.Collection collection, long j, java.util.concurrent.TimeUnit timeUnit)` + /// from: `public void (java.io.File file, long j, okhttp3.internal.io.FileSystem fileSystem)` /// The returned object must be released after use, by calling the [release] method. - $T? invokeAny$1<$T extends jni$_.JObject?>( - jni$_.JObject? collection, - int j, - TimeUnit? timeUnit, { - required jni$_.JObjType<$T> T, - }) { - final _$collection = collection?.reference ?? jni$_.jNullReference; - final _$timeUnit = timeUnit?.reference ?? jni$_.jNullReference; - return _invokeAny$1( - reference.pointer, - _id_invokeAny$1 as jni$_.JMethodIDPtr, - _$collection.pointer, - j, - _$timeUnit.pointer) - .object<$T?>(T.nullableType); - } - - /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; - static jni$_.JObjectPtr _$invoke( - int port, - jni$_.JObjectPtr descriptor, - jni$_.JObjectPtr args, + factory Cache( + File file, + core$_.int j, + FileSystem fileSystem, ) { - return _$invokeMethod( - port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), - ); + final _$$classRef = _class.reference; + final _$file = file.reference; + final _$fileSystem = fileSystem.reference; + return _new$(_$$classRef.pointer, _id_new$.pointer, _$file.pointer, j, + _$fileSystem.pointer) + .object(); } - static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + static final _id_new$1 = _class.constructorId( + r'(Ljava/io/File;J)V', + ); - static jni$_.Pointer _$invokeMethod( - int $p, - jni$_.MethodInvocation $i, + static final _new$1 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_ + .VarArgs<(jni$_.Pointer, jni$_.Int64)>)>>( + 'globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); + + /// from: `public void (java.io.File file, long j)` + /// The returned object must be released after use, by calling the [release] method. + factory Cache.new$1( + File file, + core$_.int j, ) { - try { - final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); - final $a = $i.args; - if ($d == r'shutdown()V') { - _$impls[$p]!.shutdown(); - return jni$_.nullptr; - } - if ($d == r'shutdownNow()Ljava/util/List;') { - final $r = _$impls[$p]!.shutdownNow(); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == r'isShutdown()Z') { - final $r = _$impls[$p]!.isShutdown(); - return jni$_.JBoolean($r).reference.toPointer(); - } - if ($d == r'isTerminated()Z') { - final $r = _$impls[$p]!.isTerminated(); - return jni$_.JBoolean($r).reference.toPointer(); - } - if ($d == r'awaitTermination(JLjava/util/concurrent/TimeUnit;)Z') { - final $r = _$impls[$p]!.awaitTermination( - $a![0]! - .as(const jni$_.JLongType(), releaseOriginal: true) - .longValue(releaseOriginal: true), - $a![1]?.as(const $TimeUnit$Type(), releaseOriginal: true), - ); - return jni$_.JBoolean($r).reference.toPointer(); - } - if ($d == - r'submit(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;') { - final $r = _$impls[$p]!.submit( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), - ); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == - r'submit(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Future;') { - final $r = _$impls[$p]!.submit$1( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), - $a![1]?.as(const jni$_.JObjectType(), releaseOriginal: true), - ); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == r'submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;') { - final $r = _$impls[$p]!.submit$2( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), - ); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == r'invokeAll(Ljava/util/Collection;)Ljava/util/List;') { - final $r = _$impls[$p]!.invokeAll( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), - ); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == - r'invokeAll(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/util/List;') { - final $r = _$impls[$p]!.invokeAll$1( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), - $a![1]! - .as(const jni$_.JLongType(), releaseOriginal: true) - .longValue(releaseOriginal: true), - $a![2]?.as(const $TimeUnit$Type(), releaseOriginal: true), - ); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == r'invokeAny(Ljava/util/Collection;)Ljava/lang/Object;') { - final $r = _$impls[$p]!.invokeAny( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), - ); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == - r'invokeAny(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;') { - final $r = _$impls[$p]!.invokeAny$1( - $a![0]?.as(const jni$_.JObjectType(), releaseOriginal: true), - $a![1]! - .as(const jni$_.JLongType(), releaseOriginal: true) - .longValue(releaseOriginal: true), - $a![2]?.as(const $TimeUnit$Type(), releaseOriginal: true), - ); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - } catch (e) { - return jni$_.ProtectedJniExtensions.newDartException(e); - } - return jni$_.nullptr; + final _$$classRef = _class.reference; + final _$file = file.reference; + return _new$1(_$$classRef.pointer, _id_new$1.pointer, _$file.pointer, j) + .object(); } - static void implementIn( - jni$_.JImplementer implementer, - $ExecutorService $impl, - ) { - late final jni$_.RawReceivePort $p; - $p = jni$_.RawReceivePort(($m) { - if ($m == null) { - _$impls.remove($p.sendPort.nativePort); - $p.close(); - return; - } - final $i = jni$_.MethodInvocation.fromMessage($m); - final $r = _$invokeMethod($p.sendPort.nativePort, $i); - jni$_.ProtectedJniExtensions.returnResult($i.result, $r); - }); - implementer.add( - r'java.util.concurrent.ExecutorService', - $p, - _$invokePointer, - [ - if ($impl.shutdown$async) r'shutdown()V', - ], - ); - final $a = $p.sendPort.nativePort; - _$impls[$a] = $impl; - } - - factory ExecutorService.implement( - $ExecutorService $impl, - ) { - final $i = jni$_.JImplementer(); - implementIn($i, $impl); - return ExecutorService.fromReference( - $i.implementReference(), - ); - } -} - -abstract base mixin class $ExecutorService { - factory $ExecutorService({ - required void Function() shutdown, - bool shutdown$async, - required jni$_.JList? Function() shutdownNow, - required bool Function() isShutdown, - required bool Function() isTerminated, - required bool Function(int j, TimeUnit? timeUnit) awaitTermination, - required jni$_.JObject? Function(jni$_.JObject? callable) submit, - required jni$_.JObject? Function( - jni$_.JObject? runnable, jni$_.JObject? object) - submit$1, - required jni$_.JObject? Function(jni$_.JObject? runnable) submit$2, - required jni$_.JList? Function(jni$_.JObject? collection) - invokeAll, - required jni$_.JList? Function( - jni$_.JObject? collection, int j, TimeUnit? timeUnit) - invokeAll$1, - required jni$_.JObject? Function(jni$_.JObject? collection) invokeAny, - required jni$_.JObject? Function( - jni$_.JObject? collection, int j, TimeUnit? timeUnit) - invokeAny$1, - }) = _$ExecutorService; - - void shutdown(); - bool get shutdown$async => false; - jni$_.JList? shutdownNow(); - bool isShutdown(); - bool isTerminated(); - bool awaitTermination(int j, TimeUnit? timeUnit); - jni$_.JObject? submit(jni$_.JObject? callable); - jni$_.JObject? submit$1(jni$_.JObject? runnable, jni$_.JObject? object); - jni$_.JObject? submit$2(jni$_.JObject? runnable); - jni$_.JList? invokeAll(jni$_.JObject? collection); - jni$_.JList? invokeAll$1( - jni$_.JObject? collection, int j, TimeUnit? timeUnit); - jni$_.JObject? invokeAny(jni$_.JObject? collection); - jni$_.JObject? invokeAny$1( - jni$_.JObject? collection, int j, TimeUnit? timeUnit); -} - -final class _$ExecutorService with $ExecutorService { - _$ExecutorService({ - required void Function() shutdown, - this.shutdown$async = false, - required jni$_.JList? Function() shutdownNow, - required bool Function() isShutdown, - required bool Function() isTerminated, - required bool Function(int j, TimeUnit? timeUnit) awaitTermination, - required jni$_.JObject? Function(jni$_.JObject? callable) submit, - required jni$_.JObject? Function( - jni$_.JObject? runnable, jni$_.JObject? object) - submit$1, - required jni$_.JObject? Function(jni$_.JObject? runnable) submit$2, - required jni$_.JList? Function(jni$_.JObject? collection) - invokeAll, - required jni$_.JList? Function( - jni$_.JObject? collection, int j, TimeUnit? timeUnit) - invokeAll$1, - required jni$_.JObject? Function(jni$_.JObject? collection) invokeAny, - required jni$_.JObject? Function( - jni$_.JObject? collection, int j, TimeUnit? timeUnit) - invokeAny$1, - }) : _shutdown = shutdown, - _shutdownNow = shutdownNow, - _isShutdown = isShutdown, - _isTerminated = isTerminated, - _awaitTermination = awaitTermination, - _submit = submit, - _submit$1 = submit$1, - _submit$2 = submit$2, - _invokeAll = invokeAll, - _invokeAll$1 = invokeAll$1, - _invokeAny = invokeAny, - _invokeAny$1 = invokeAny$1; - - final void Function() _shutdown; - final bool shutdown$async; - final jni$_.JList? Function() _shutdownNow; - final bool Function() _isShutdown; - final bool Function() _isTerminated; - final bool Function(int j, TimeUnit? timeUnit) _awaitTermination; - final jni$_.JObject? Function(jni$_.JObject? callable) _submit; - final jni$_.JObject? Function(jni$_.JObject? runnable, jni$_.JObject? object) - _submit$1; - final jni$_.JObject? Function(jni$_.JObject? runnable) _submit$2; - final jni$_.JList? Function(jni$_.JObject? collection) - _invokeAll; - final jni$_.JList? Function( - jni$_.JObject? collection, int j, TimeUnit? timeUnit) _invokeAll$1; - final jni$_.JObject? Function(jni$_.JObject? collection) _invokeAny; - final jni$_.JObject? Function( - jni$_.JObject? collection, int j, TimeUnit? timeUnit) _invokeAny$1; - - void shutdown() { - return _shutdown(); - } - - jni$_.JList? shutdownNow() { - return _shutdownNow(); - } - - bool isShutdown() { - return _isShutdown(); - } - - bool isTerminated() { - return _isTerminated(); - } - - bool awaitTermination(int j, TimeUnit? timeUnit) { - return _awaitTermination(j, timeUnit); - } - - jni$_.JObject? submit(jni$_.JObject? callable) { - return _submit(callable); - } - - jni$_.JObject? submit$1(jni$_.JObject? runnable, jni$_.JObject? object) { - return _submit$1(runnable, object); - } - - jni$_.JObject? submit$2(jni$_.JObject? runnable) { - return _submit$2(runnable); - } - - jni$_.JList? invokeAll(jni$_.JObject? collection) { - return _invokeAll(collection); - } - - jni$_.JList? invokeAll$1( - jni$_.JObject? collection, int j, TimeUnit? timeUnit) { - return _invokeAll$1(collection, j, timeUnit); - } - - jni$_.JObject? invokeAny(jni$_.JObject? collection) { - return _invokeAny(collection); - } - - jni$_.JObject? invokeAny$1( - jni$_.JObject? collection, int j, TimeUnit? timeUnit) { - return _invokeAny$1(collection, j, timeUnit); - } -} - -final class $ExecutorService$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $ExecutorService$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljava/util/concurrent/ExecutorService;'; - - @jni$_.internal - @core$_.override - ExecutorService? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : ExecutorService.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ExecutorService$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ExecutorService$NullableType) && - other is $ExecutorService$NullableType; - } -} - -final class $ExecutorService$Type extends jni$_.JObjType { - @jni$_.internal - const $ExecutorService$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljava/util/concurrent/ExecutorService;'; - - @jni$_.internal - @core$_.override - ExecutorService fromReference(jni$_.JReference reference) => - ExecutorService.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $ExecutorService$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ExecutorService$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ExecutorService$Type) && - other is $ExecutorService$Type; - } -} - -/// from: `okhttp3.Cache$Companion` -class Cache$Companion extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Cache$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = jni$_.JClass.forName(r'okhttp3/Cache$Companion'); - - /// The type which includes information such as the signature of this class. - static const nullableType = $Cache$Companion$NullableType(); - static const type = $Cache$Companion$Type(); - static final _id_key = _class.instanceMethodId( + static final _id_key = _class.staticMethodId( r'key', r'(Lokhttp3/HttpUrl;)Ljava/lang/String;', ); @@ -11083,645 +9974,236 @@ class Cache$Companion extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') + 'globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final java.lang.String key(okhttp3.HttpUrl httpUrl)` + /// from: `static public final java.lang.String key(okhttp3.HttpUrl httpUrl)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString key( - jni$_.JObject httpUrl, + static jni$_.JString key( + HttpUrl httpUrl, ) { + final _$$classRef = _class.reference; final _$httpUrl = httpUrl.reference; - return _key( - reference.pointer, _id_key as jni$_.JMethodIDPtr, _$httpUrl.pointer) - .object(const jni$_.JStringType()); + return _key(_$$classRef.pointer, _id_key.pointer, _$httpUrl.pointer) + .object(); } +} - static final _id_varyMatches = _class.instanceMethodId( - r'varyMatches', - r'(Lokhttp3/Response;Lokhttp3/Headers;Lokhttp3/Request;)Z', +extension Cache$$Methods on Cache { + static final _id_get$isClosed = Cache._class.instanceMethodId( + r'isClosed', + r'()Z', ); - static final _varyMatches = jni$_.ProtectedJniExtensions.lookup< + static final _get$isClosed = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallBooleanMethod') + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - /// from: `public final boolean varyMatches(okhttp3.Response response, okhttp3.Headers headers, okhttp3.Request request)` - bool varyMatches( - Response response, - Headers headers, - Request request, - ) { - final _$response = response.reference; - final _$headers = headers.reference; - final _$request = request.reference; - return _varyMatches( - reference.pointer, - _id_varyMatches as jni$_.JMethodIDPtr, - _$response.pointer, - _$headers.pointer, - _$request.pointer) - .boolean; + /// from: `public final boolean isClosed()` + core$_.bool get isClosed { + final _$$selfRef = reference; + return _get$isClosed(_$$selfRef.pointer, _id_get$isClosed.pointer).boolean; } - static final _id_hasVaryAll = _class.instanceMethodId( - r'hasVaryAll', - r'(Lokhttp3/Response;)Z', + static final _id_initialize = Cache._class.instanceMethodId( + r'initialize', + r'()V', ); - static final _hasVaryAll = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') + static final _initialize = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - /// from: `public final boolean hasVaryAll(okhttp3.Response response)` - bool hasVaryAll( - Response response, - ) { - final _$response = response.reference; - return _hasVaryAll(reference.pointer, _id_hasVaryAll as jni$_.JMethodIDPtr, - _$response.pointer) - .boolean; + /// from: `public fun initialize(): kotlin.Unit` + void initialize() { + final _$$selfRef = reference; + _initialize(_$$selfRef.pointer, _id_initialize.pointer).check(); } - static final _id_varyHeaders = _class.instanceMethodId( - r'varyHeaders', - r'(Lokhttp3/Response;)Lokhttp3/Headers;', + static final _id_delete = Cache._class.instanceMethodId( + r'delete', + r'()V', ); - static final _varyHeaders = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') + static final _delete = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - /// from: `public final okhttp3.Headers varyHeaders(okhttp3.Response response)` - /// The returned object must be released after use, by calling the [release] method. - Headers varyHeaders( - Response response, - ) { - final _$response = response.reference; - return _varyHeaders(reference.pointer, - _id_varyHeaders as jni$_.JMethodIDPtr, _$response.pointer) - .object(const $Headers$Type()); + /// from: `public fun delete(): kotlin.Unit` + void delete() { + final _$$selfRef = reference; + _delete(_$$selfRef.pointer, _id_delete.pointer).check(); } - static final _id_new$ = _class.constructorId( - r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', + static final _id_evictAll = Cache._class.instanceMethodId( + r'evictAll', + r'()V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') + static final _evictAll = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` - /// The returned object must be released after use, by calling the [release] method. - factory Cache$Companion( - jni$_.JObject? defaultConstructorMarker, - ) { - final _$defaultConstructorMarker = - defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return Cache$Companion.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$defaultConstructorMarker.pointer) - .reference); - } -} - -final class $Cache$Companion$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $Cache$Companion$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/Cache$Companion;'; - - @jni$_.internal - @core$_.override - Cache$Companion? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Cache$Companion.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Cache$Companion$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Cache$Companion$NullableType) && - other is $Cache$Companion$NullableType; - } -} - -final class $Cache$Companion$Type extends jni$_.JObjType { - @jni$_.internal - const $Cache$Companion$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/Cache$Companion;'; - - @jni$_.internal - @core$_.override - Cache$Companion fromReference(jni$_.JReference reference) => - Cache$Companion.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $Cache$Companion$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Cache$Companion$Type).hashCode; + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Cache$Companion$Type) && - other is $Cache$Companion$Type; + /// from: `public fun evictAll(): kotlin.Unit` + void evictAll() { + final _$$selfRef = reference; + _evictAll(_$$selfRef.pointer, _id_evictAll.pointer).check(); } -} - -/// from: `okhttp3.Cache$Entry$Companion` -class JObject$Companion extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - JObject$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - static final _class = jni$_.JClass.forName(r'okhttp3/Cache$Entry$Companion'); - - /// The type which includes information such as the signature of this class. - static const nullableType = $JObject$Companion$NullableType(); - static const type = $JObject$Companion$Type(); - static final _id_new$ = _class.constructorId( - r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', + static final _id_urls = Cache._class.instanceMethodId( + r'urls', + r'()Ljava/util/Iterator;', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') + static final _urls = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` + /// from: `public fun urls(): kotlin.collections.MutableIterator` /// The returned object must be released after use, by calling the [release] method. - factory JObject$Companion( - jni$_.JObject? defaultConstructorMarker, - ) { - final _$defaultConstructorMarker = - defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return JObject$Companion.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$defaultConstructorMarker.pointer) - .reference); - } -} - -final class $JObject$Companion$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $JObject$Companion$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/Cache$Entry$Companion;'; - - @jni$_.internal - @core$_.override - JObject$Companion? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : JObject$Companion.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($JObject$Companion$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($JObject$Companion$NullableType) && - other is $JObject$Companion$NullableType; - } -} - -final class $JObject$Companion$Type extends jni$_.JObjType { - @jni$_.internal - const $JObject$Companion$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/Cache$Entry$Companion;'; - - @jni$_.internal - @core$_.override - JObject$Companion fromReference(jni$_.JReference reference) => - JObject$Companion.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $JObject$Companion$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($JObject$Companion$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($JObject$Companion$Type) && - other is $JObject$Companion$Type; + jni$_.JIterator urls() { + final _$$selfRef = reference; + return _urls(_$$selfRef.pointer, _id_urls.pointer) + .object>(); } -} - -/// from: `okhttp3.Cache` -class Cache extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Cache.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - static final _class = jni$_.JClass.forName(r'okhttp3/Cache'); - - /// The type which includes information such as the signature of this class. - static const nullableType = $Cache$NullableType(); - static const type = $Cache$Type(); - static final _id_Companion = _class.staticFieldId( - r'Companion', - r'Lokhttp3/Cache$Companion;', - ); - - /// from: `static public final okhttp3.Cache$Companion Companion` - /// The returned object must be released after use, by calling the [release] method. - static Cache$Companion get Companion => - _id_Companion.get(_class, const $Cache$Companion$Type()); - - static final _id_new$ = _class.constructorId( - r'(Ljava/io/File;JLokhttp3/internal/io/FileSystem;)V', + static final _id_writeAbortCount = Cache._class.instanceMethodId( + r'writeAbortCount', + r'()I', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< + static final _writeAbortCount = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int64, - jni$_.Pointer - )>)>>('globalEnv_NewObject') + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - int, - jni$_.Pointer)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - /// from: `public void (java.io.File file, long j, okhttp3.internal.io.FileSystem fileSystem)` - /// The returned object must be released after use, by calling the [release] method. - factory Cache( - jni$_.JObject file, - int j, - jni$_.JObject fileSystem, - ) { - final _$file = file.reference; - final _$fileSystem = fileSystem.reference; - return Cache.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$file.pointer, - j, - _$fileSystem.pointer) - .reference); + /// from: `public fun writeAbortCount(): kotlin.Int` + core$_.int writeAbortCount() { + final _$$selfRef = reference; + return _writeAbortCount(_$$selfRef.pointer, _id_writeAbortCount.pointer) + .integer; } - static final _id_isClosed = _class.instanceMethodId( - r'isClosed', - r'()Z', + static final _id_writeSuccessCount = Cache._class.instanceMethodId( + r'writeSuccessCount', + r'()I', ); - static final _isClosed = jni$_.ProtectedJniExtensions.lookup< + static final _writeSuccessCount = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') + )>>('globalEnv_CallIntMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, )>(); - /// from: `public final boolean isClosed()` - bool isClosed() { - return _isClosed(reference.pointer, _id_isClosed as jni$_.JMethodIDPtr) - .boolean; + /// from: `public fun writeSuccessCount(): kotlin.Int` + core$_.int writeSuccessCount() { + final _$$selfRef = reference; + return _writeSuccessCount(_$$selfRef.pointer, _id_writeSuccessCount.pointer) + .integer; } - static final _id_new$1 = _class.constructorId( - r'(Ljava/io/File;J)V', + static final _id_size = Cache._class.instanceMethodId( + r'size', + r'()J', ); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int64)>)>>( - 'globalEnv_NewObject') + static final _size = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallLongMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - /// from: `public void (java.io.File file, long j)` - /// The returned object must be released after use, by calling the [release] method. - factory Cache.new$1( - jni$_.JObject file, - int j, - ) { - final _$file = file.reference; - return Cache.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, _$file.pointer, j) - .reference); + /// from: `public fun size(): kotlin.Long` + core$_.int size() { + final _$$selfRef = reference; + return _size(_$$selfRef.pointer, _id_size.pointer).long; } - static final _id_initialize = _class.instanceMethodId( - r'initialize', - r'()V', + static final _id_maxSize = Cache._class.instanceMethodId( + r'maxSize', + r'()J', ); - static final _initialize = jni$_.ProtectedJniExtensions.lookup< + static final _maxSize = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') + )>>('globalEnv_CallLongMethod') .asFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, )>(); - /// from: `public final void initialize()` - void initialize() { - _initialize(reference.pointer, _id_initialize as jni$_.JMethodIDPtr) - .check(); - } - - static final _id_delete = _class.instanceMethodId( - r'delete', - r'()V', - ); - - static final _delete = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public final void delete()` - void delete() { - _delete(reference.pointer, _id_delete as jni$_.JMethodIDPtr).check(); - } - - static final _id_evictAll = _class.instanceMethodId( - r'evictAll', - r'()V', - ); - - static final _evictAll = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public final void evictAll()` - void evictAll() { - _evictAll(reference.pointer, _id_evictAll as jni$_.JMethodIDPtr).check(); - } - - static final _id_urls = _class.instanceMethodId( - r'urls', - r'()Ljava/util/Iterator;', - ); - - static final _urls = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public final java.util.Iterator urls()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JIterator urls() { - return _urls(reference.pointer, _id_urls as jni$_.JMethodIDPtr) - .object>( - const jni$_.JIteratorType(jni$_.JStringType())); - } - - static final _id_writeAbortCount = _class.instanceMethodId( - r'writeAbortCount', - r'()I', - ); - - static final _writeAbortCount = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public final int writeAbortCount()` - int writeAbortCount() { - return _writeAbortCount( - reference.pointer, _id_writeAbortCount as jni$_.JMethodIDPtr) - .integer; - } - - static final _id_writeSuccessCount = _class.instanceMethodId( - r'writeSuccessCount', - r'()I', - ); - - static final _writeSuccessCount = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public final int writeSuccessCount()` - int writeSuccessCount() { - return _writeSuccessCount( - reference.pointer, _id_writeSuccessCount as jni$_.JMethodIDPtr) - .integer; - } - - static final _id_size = _class.instanceMethodId( - r'size', - r'()J', - ); - - static final _size = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public final long size()` - int size() { - return _size(reference.pointer, _id_size as jni$_.JMethodIDPtr).long; - } - - static final _id_maxSize = _class.instanceMethodId( - r'maxSize', - r'()J', - ); - - static final _maxSize = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public final long maxSize()` - int maxSize() { - return _maxSize(reference.pointer, _id_maxSize as jni$_.JMethodIDPtr).long; + /// from: `public fun maxSize(): kotlin.Long` + core$_.int maxSize() { + final _$$selfRef = reference; + return _maxSize(_$$selfRef.pointer, _id_maxSize.pointer).long; } - static final _id_flush = _class.instanceMethodId( + static final _id_flush = Cache._class.instanceMethodId( r'flush', r'()V', ); @@ -11738,12 +10220,13 @@ class Cache extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public void flush()` + /// from: `public fun flush(): kotlin.Unit` void flush() { - _flush(reference.pointer, _id_flush as jni$_.JMethodIDPtr).check(); + final _$$selfRef = reference; + _flush(_$$selfRef.pointer, _id_flush.pointer).check(); } - static final _id_close = _class.instanceMethodId( + static final _id_close = Cache._class.instanceMethodId( r'close', r'()V', ); @@ -11760,12 +10243,13 @@ class Cache extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public void close()` + /// from: `public fun close(): kotlin.Unit` void close() { - _close(reference.pointer, _id_close as jni$_.JMethodIDPtr).check(); + final _$$selfRef = reference; + _close(_$$selfRef.pointer, _id_close.pointer).check(); } - static final _id_directory = _class.instanceMethodId( + static final _id_directory = Cache._class.instanceMethodId( r'directory', r'()Ljava/io/File;', ); @@ -11784,12 +10268,12 @@ class Cache extends jni$_.JObject { /// from: `public final java.io.File directory()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject directory() { - return _directory(reference.pointer, _id_directory as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + File directory() { + final _$$selfRef = reference; + return _directory(_$$selfRef.pointer, _id_directory.pointer).object(); } - static final _id_networkCount = _class.instanceMethodId( + static final _id_networkCount = Cache._class.instanceMethodId( r'networkCount', r'()I', ); @@ -11806,14 +10290,13 @@ class Cache extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final int networkCount()` - int networkCount() { - return _networkCount( - reference.pointer, _id_networkCount as jni$_.JMethodIDPtr) - .integer; + /// from: `public fun networkCount(): kotlin.Int` + core$_.int networkCount() { + final _$$selfRef = reference; + return _networkCount(_$$selfRef.pointer, _id_networkCount.pointer).integer; } - static final _id_hitCount = _class.instanceMethodId( + static final _id_hitCount = Cache._class.instanceMethodId( r'hitCount', r'()I', ); @@ -11830,13 +10313,13 @@ class Cache extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final int hitCount()` - int hitCount() { - return _hitCount(reference.pointer, _id_hitCount as jni$_.JMethodIDPtr) - .integer; + /// from: `public fun hitCount(): kotlin.Int` + core$_.int hitCount() { + final _$$selfRef = reference; + return _hitCount(_$$selfRef.pointer, _id_hitCount.pointer).integer; } - static final _id_requestCount = _class.instanceMethodId( + static final _id_requestCount = Cache._class.instanceMethodId( r'requestCount', r'()I', ); @@ -11853,171 +10336,36 @@ class Cache extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final int requestCount()` - int requestCount() { - return _requestCount( - reference.pointer, _id_requestCount as jni$_.JMethodIDPtr) - .integer; - } - - static final _id_key = _class.staticMethodId( - r'key', - r'(Lokhttp3/HttpUrl;)Ljava/lang/String;', - ); - - static final _key = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `static public final java.lang.String key(okhttp3.HttpUrl httpUrl)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString key( - jni$_.JObject httpUrl, - ) { - final _$httpUrl = httpUrl.reference; - return _key(_class.reference.pointer, _id_key as jni$_.JMethodIDPtr, - _$httpUrl.pointer) - .object(const jni$_.JStringType()); - } -} - -final class $Cache$NullableType extends jni$_.JObjType { - @jni$_.internal - const $Cache$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/Cache;'; - - @jni$_.internal - @core$_.override - Cache? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Cache.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Cache$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Cache$NullableType) && - other is $Cache$NullableType; + /// from: `public fun requestCount(): kotlin.Int` + core$_.int requestCount() { + final _$$selfRef = reference; + return _requestCount(_$$selfRef.pointer, _id_requestCount.pointer).integer; } } -final class $Cache$Type extends jni$_.JObjType { +final class $Cache$Type$ extends jni$_.JType { @jni$_.internal - const $Cache$Type(); + const $Cache$Type$(); @jni$_.internal @core$_.override String get signature => r'Lokhttp3/Cache;'; - - @jni$_.internal - @core$_.override - Cache fromReference(jni$_.JReference reference) => Cache.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => const $Cache$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($Cache$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Cache$Type) && other is $Cache$Type; - } } /// from: `com.example.ok_http.RedirectReceivedCallback` -class RedirectReceivedCallback extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - RedirectReceivedCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type RedirectReceivedCallback._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'com/example/ok_http/RedirectReceivedCallback'); /// The type which includes information such as the signature of this class. - static const nullableType = $RedirectReceivedCallback$NullableType(); - static const type = $RedirectReceivedCallback$Type(); - static final _id_onRedirectReceived = _class.instanceMethodId( - r'onRedirectReceived', - r'(Lokhttp3/Response;Ljava/lang/String;)V', - ); - - static final _onRedirectReceived = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); - - /// from: `public abstract void onRedirectReceived(okhttp3.Response response, java.lang.String string)` - void onRedirectReceived( - Response response, - jni$_.JString string, - ) { - final _$response = response.reference; - final _$string = string.reference; - _onRedirectReceived( - reference.pointer, - _id_onRedirectReceived as jni$_.JMethodIDPtr, - _$response.pointer, - _$string.pointer) - .check(); - } + static const jni$_.JType type = + $RedirectReceivedCallback$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; + static final core$_.Map _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -12038,7 +10386,7 @@ class RedirectReceivedCallback extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -12046,8 +10394,8 @@ class RedirectReceivedCallback extends jni$_.JObject { final $a = $i.args; if ($d == r'onRedirectReceived(Lokhttp3/Response;Ljava/lang/String;)V') { _$impls[$p]!.onRedirectReceived( - $a![0]!.as(const $Response$Type(), releaseOriginal: true), - $a![1]!.as(const jni$_.JStringType(), releaseOriginal: true), + ($a![0] as Response), + ($a![1] as jni$_.JString), ); return jni$_.nullptr; } @@ -12070,6 +10418,7 @@ class RedirectReceivedCallback extends jni$_.JObject { } final $i = jni$_.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); + $i.args?.release(); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( @@ -12090,135 +10439,127 @@ class RedirectReceivedCallback extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return RedirectReceivedCallback.fromReference( - $i.implementReference(), - ); + return $i.implement(); } } -abstract base mixin class $RedirectReceivedCallback { - factory $RedirectReceivedCallback({ - required void Function(Response response, jni$_.JString string) - onRedirectReceived, - bool onRedirectReceived$async, - }) = _$RedirectReceivedCallback; - - void onRedirectReceived(Response response, jni$_.JString string); - bool get onRedirectReceived$async => false; -} - -final class _$RedirectReceivedCallback with $RedirectReceivedCallback { - _$RedirectReceivedCallback({ - required void Function(Response response, jni$_.JString string) - onRedirectReceived, - this.onRedirectReceived$async = false, - }) : _onRedirectReceived = onRedirectReceived; +extension RedirectReceivedCallback$$Methods on RedirectReceivedCallback { + static final _id_onRedirectReceived = + RedirectReceivedCallback._class.instanceMethodId( + r'onRedirectReceived', + r'(Lokhttp3/Response;Ljava/lang/String;)V', + ); - final void Function(Response response, jni$_.JString string) - _onRedirectReceived; - final bool onRedirectReceived$async; + static final _onRedirectReceived = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - void onRedirectReceived(Response response, jni$_.JString string) { - return _onRedirectReceived(response, string); + /// from: `public fun onRedirectReceived(response: okhttp3.Response, location: kotlin.String): kotlin.Unit` + void onRedirectReceived( + Response response, + jni$_.JString string, + ) { + final _$$selfRef = reference; + final _$response = response.reference; + final _$string = string.reference; + _onRedirectReceived(_$$selfRef.pointer, _id_onRedirectReceived.pointer, + _$response.pointer, _$string.pointer) + .check(); } } -final class $RedirectReceivedCallback$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $RedirectReceivedCallback$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lcom/example/ok_http/RedirectReceivedCallback;'; - - @jni$_.internal - @core$_.override - RedirectReceivedCallback? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : RedirectReceivedCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); +abstract base mixin class $RedirectReceivedCallback { + factory $RedirectReceivedCallback({ + required void Function(Response response, jni$_.JString string) + onRedirectReceived, + core$_.bool onRedirectReceived$async, + }) = _$RedirectReceivedCallback; - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; + void onRedirectReceived(Response response, jni$_.JString string); + core$_.bool get onRedirectReceived$async => false; +} - @jni$_.internal - @core$_.override - final superCount = 1; +final class _$RedirectReceivedCallback with $RedirectReceivedCallback { + _$RedirectReceivedCallback({ + required void Function(Response response, jni$_.JString string) + onRedirectReceived, + this.onRedirectReceived$async = false, + }) : _onRedirectReceived = onRedirectReceived; - @core$_.override - int get hashCode => ($RedirectReceivedCallback$NullableType).hashCode; + final void Function(Response response, jni$_.JString string) + _onRedirectReceived; + final core$_.bool onRedirectReceived$async; - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($RedirectReceivedCallback$NullableType) && - other is $RedirectReceivedCallback$NullableType; + void onRedirectReceived(Response response, jni$_.JString string) { + return _onRedirectReceived(response, string); } } -final class $RedirectReceivedCallback$Type - extends jni$_.JObjType { +final class $RedirectReceivedCallback$Type$ + extends jni$_.JType { @jni$_.internal - const $RedirectReceivedCallback$Type(); + const $RedirectReceivedCallback$Type$(); @jni$_.internal @core$_.override String get signature => r'Lcom/example/ok_http/RedirectReceivedCallback;'; - - @jni$_.internal - @core$_.override - RedirectReceivedCallback fromReference(jni$_.JReference reference) => - RedirectReceivedCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $RedirectReceivedCallback$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($RedirectReceivedCallback$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($RedirectReceivedCallback$Type) && - other is $RedirectReceivedCallback$Type; - } } /// from: `com.example.ok_http.RedirectInterceptor$Companion` -class RedirectInterceptor$Companion extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - RedirectInterceptor$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type RedirectInterceptor$Companion._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName( r'com/example/ok_http/RedirectInterceptor$Companion'); /// The type which includes information such as the signature of this class. - static const nullableType = $RedirectInterceptor$Companion$NullableType(); - static const type = $RedirectInterceptor$Companion$Type(); - static final _id_addRedirectInterceptor = _class.instanceMethodId( + static const jni$_.JType type = + $RedirectInterceptor$Companion$Type$(); + static final _id_new$ = _class.constructorId( + r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', + ); + + static final _new$ = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` + /// The returned object must be released after use, by calling the [release] method. + factory RedirectInterceptor$Companion( + DefaultConstructorMarker? defaultConstructorMarker, + ) { + final _$$classRef = _class.reference; + final _$defaultConstructorMarker = + defaultConstructorMarker?.reference ?? jni$_.jNullReference; + return _new$(_$$classRef.pointer, _id_new$.pointer, + _$defaultConstructorMarker.pointer) + .object(); + } +} + +extension RedirectInterceptor$Companion$$Methods + on RedirectInterceptor$Companion { + static final _id_addRedirectInterceptor = + RedirectInterceptor$Companion._class.instanceMethodId( r'addRedirectInterceptor', r'(Lokhttp3/OkHttpClient$Builder;IZLcom/example/ok_http/RedirectReceivedCallback;)Lokhttp3/OkHttpClient$Builder;', ); @@ -12240,157 +10581,52 @@ class RedirectInterceptor$Companion extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, + core$_.int, + core$_.int, jni$_.Pointer)>(); - /// from: `public final okhttp3.OkHttpClient$Builder addRedirectInterceptor(okhttp3.OkHttpClient$Builder builder, int i, boolean z, com.example.ok_http.RedirectReceivedCallback redirectReceivedCallback)` + /// from: `public fun addRedirectInterceptor(clientBuilder: okhttp3.OkHttpClient.Builder, maxRedirects: kotlin.Int, followRedirects: kotlin.Boolean, redirectCallback: com.example.ok_http.RedirectReceivedCallback): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder addRedirectInterceptor( OkHttpClient$Builder builder, - int i, - bool z, + core$_.int i, + core$_.bool z, RedirectReceivedCallback redirectReceivedCallback, ) { + final _$$selfRef = reference; final _$builder = builder.reference; final _$redirectReceivedCallback = redirectReceivedCallback.reference; return _addRedirectInterceptor( - reference.pointer, - _id_addRedirectInterceptor as jni$_.JMethodIDPtr, + _$$selfRef.pointer, + _id_addRedirectInterceptor.pointer, _$builder.pointer, i, z ? 1 : 0, _$redirectReceivedCallback.pointer) - .object(const $OkHttpClient$Builder$Type()); - } - - static final _id_new$ = _class.constructorId( - r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', - ); - - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` - /// The returned object must be released after use, by calling the [release] method. - factory RedirectInterceptor$Companion( - jni$_.JObject? defaultConstructorMarker, - ) { - final _$defaultConstructorMarker = - defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return RedirectInterceptor$Companion.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$defaultConstructorMarker.pointer) - .reference); - } -} - -final class $RedirectInterceptor$Companion$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $RedirectInterceptor$Companion$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => - r'Lcom/example/ok_http/RedirectInterceptor$Companion;'; - - @jni$_.internal - @core$_.override - RedirectInterceptor$Companion? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : RedirectInterceptor$Companion.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($RedirectInterceptor$Companion$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($RedirectInterceptor$Companion$NullableType) && - other is $RedirectInterceptor$Companion$NullableType; + .object(); } } -final class $RedirectInterceptor$Companion$Type - extends jni$_.JObjType { +final class $RedirectInterceptor$Companion$Type$ + extends jni$_.JType { @jni$_.internal - const $RedirectInterceptor$Companion$Type(); + const $RedirectInterceptor$Companion$Type$(); @jni$_.internal @core$_.override String get signature => r'Lcom/example/ok_http/RedirectInterceptor$Companion;'; - - @jni$_.internal - @core$_.override - RedirectInterceptor$Companion fromReference(jni$_.JReference reference) => - RedirectInterceptor$Companion.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $RedirectInterceptor$Companion$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($RedirectInterceptor$Companion$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($RedirectInterceptor$Companion$Type) && - other is $RedirectInterceptor$Companion$Type; - } } /// from: `com.example.ok_http.RedirectInterceptor` -class RedirectInterceptor extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - RedirectInterceptor.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type RedirectInterceptor._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'com/example/ok_http/RedirectInterceptor'); /// The type which includes information such as the signature of this class. - static const nullableType = $RedirectInterceptor$NullableType(); - static const type = $RedirectInterceptor$Type(); + static const jni$_.JType type = + $RedirectInterceptor$Type$(); static final _id_Companion = _class.staticFieldId( r'Companion', r'Lcom/example/ok_http/RedirectInterceptor$Companion;', @@ -12399,7 +10635,8 @@ class RedirectInterceptor extends jni$_.JObject { /// from: `static public final com.example.ok_http.RedirectInterceptor$Companion Companion` /// The returned object must be released after use, by calling the [release] method. static RedirectInterceptor$Companion get Companion => - _id_Companion.get(_class, const $RedirectInterceptor$Companion$Type()); + _id_Companion.get(_class, RedirectInterceptor$Companion.type) + as RedirectInterceptor$Companion; static final _id_new$ = _class.constructorId( r'()V', @@ -12420,107 +10657,31 @@ class RedirectInterceptor extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory RedirectInterceptor() { - return RedirectInterceptor.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); - } -} - -final class $RedirectInterceptor$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $RedirectInterceptor$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lcom/example/ok_http/RedirectInterceptor;'; - - @jni$_.internal - @core$_.override - RedirectInterceptor? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : RedirectInterceptor.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($RedirectInterceptor$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($RedirectInterceptor$NullableType) && - other is $RedirectInterceptor$NullableType; + final _$$classRef = _class.reference; + return _new$(_$$classRef.pointer, _id_new$.pointer) + .object(); } } -final class $RedirectInterceptor$Type - extends jni$_.JObjType { +final class $RedirectInterceptor$Type$ + extends jni$_.JType { @jni$_.internal - const $RedirectInterceptor$Type(); + const $RedirectInterceptor$Type$(); @jni$_.internal @core$_.override String get signature => r'Lcom/example/ok_http/RedirectInterceptor;'; - - @jni$_.internal - @core$_.override - RedirectInterceptor fromReference(jni$_.JReference reference) => - RedirectInterceptor.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $RedirectInterceptor$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($RedirectInterceptor$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($RedirectInterceptor$Type) && - other is $RedirectInterceptor$Type; - } } /// from: `com.example.ok_http.AsyncInputStreamReader` -class AsyncInputStreamReader extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - AsyncInputStreamReader.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type AsyncInputStreamReader._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'com/example/ok_http/AsyncInputStreamReader'); /// The type which includes information such as the signature of this class. - static const nullableType = $AsyncInputStreamReader$NullableType(); - static const type = $AsyncInputStreamReader$Type(); + static const jni$_.JType type = + $AsyncInputStreamReader$Type$(); static final _id_new$ = _class.constructorId( r'()V', ); @@ -12540,12 +10701,14 @@ class AsyncInputStreamReader extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory AsyncInputStreamReader() { - return AsyncInputStreamReader.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + final _$$classRef = _class.reference; + return _new$(_$$classRef.pointer, _id_new$.pointer) + .object(); } +} - static final _id_readAsync = _class.instanceMethodId( +extension AsyncInputStreamReader$$Methods on AsyncInputStreamReader { + static final _id_readAsync = AsyncInputStreamReader._class.instanceMethodId( r'readAsync', r'(Ljava/io/InputStream;Lcom/example/ok_http/DataCallback;)Ljava/util/concurrent/Future;', ); @@ -12567,20 +10730,21 @@ class AsyncInputStreamReader extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final java.util.concurrent.Future readAsync(java.io.InputStream inputStream, com.example.ok_http.DataCallback dataCallback)` + /// from: `public fun readAsync(inputStream: java.io.InputStream, callback: com.example.ok_http.DataCallback): java.util.concurrent.Future<*>` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject readAsync( - jni$_.JObject inputStream, + Future$1 readAsync( + InputStream inputStream, DataCallback dataCallback, ) { + final _$$selfRef = reference; final _$inputStream = inputStream.reference; final _$dataCallback = dataCallback.reference; - return _readAsync(reference.pointer, _id_readAsync as jni$_.JMethodIDPtr, + return _readAsync(_$$selfRef.pointer, _id_readAsync.pointer, _$inputStream.pointer, _$dataCallback.pointer) - .object(const jni$_.JObjectType()); + .object(); } - static final _id_shutdown = _class.instanceMethodId( + static final _id_shutdown = AsyncInputStreamReader._class.instanceMethodId( r'shutdown', r'()V', ); @@ -12597,197 +10761,46 @@ class AsyncInputStreamReader extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final void shutdown()` + /// from: `public fun shutdown(): kotlin.Unit` void shutdown() { - _shutdown(reference.pointer, _id_shutdown as jni$_.JMethodIDPtr).check(); + final _$$selfRef = reference; + _shutdown(_$$selfRef.pointer, _id_shutdown.pointer).check(); } } -final class $AsyncInputStreamReader$NullableType - extends jni$_.JObjType { +final class $AsyncInputStreamReader$Type$ + extends jni$_.JType { @jni$_.internal - const $AsyncInputStreamReader$NullableType(); + const $AsyncInputStreamReader$Type$(); @jni$_.internal @core$_.override String get signature => r'Lcom/example/ok_http/AsyncInputStreamReader;'; +} - @jni$_.internal - @core$_.override - AsyncInputStreamReader? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : AsyncInputStreamReader.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; +/// from: `com.example.ok_http.DataCallback` +extension type DataCallback._(jni$_.JObject _$this) implements jni$_.JObject { + static final _class = + jni$_.JClass.forName(r'com/example/ok_http/DataCallback'); - @core$_.override - int get hashCode => ($AsyncInputStreamReader$NullableType).hashCode; + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = $DataCallback$Type$(); - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($AsyncInputStreamReader$NullableType) && - other is $AsyncInputStreamReader$NullableType; - } -} - -final class $AsyncInputStreamReader$Type - extends jni$_.JObjType { - @jni$_.internal - const $AsyncInputStreamReader$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lcom/example/ok_http/AsyncInputStreamReader;'; - - @jni$_.internal - @core$_.override - AsyncInputStreamReader fromReference(jni$_.JReference reference) => - AsyncInputStreamReader.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $AsyncInputStreamReader$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($AsyncInputStreamReader$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($AsyncInputStreamReader$Type) && - other is $AsyncInputStreamReader$Type; - } -} - -/// from: `com.example.ok_http.DataCallback` -class DataCallback extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - DataCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = - jni$_.JClass.forName(r'com/example/ok_http/DataCallback'); - - /// The type which includes information such as the signature of this class. - static const nullableType = $DataCallback$NullableType(); - static const type = $DataCallback$Type(); - static final _id_onDataRead = _class.instanceMethodId( - r'onDataRead', - r'([B)V', - ); - - static final _onDataRead = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public abstract void onDataRead(byte[] bs)` - void onDataRead( - jni$_.JByteArray bs, - ) { - final _$bs = bs.reference; - _onDataRead(reference.pointer, _id_onDataRead as jni$_.JMethodIDPtr, - _$bs.pointer) - .check(); - } - - static final _id_onFinished = _class.instanceMethodId( - r'onFinished', - r'()V', - ); - - static final _onFinished = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public abstract void onFinished()` - void onFinished() { - _onFinished(reference.pointer, _id_onFinished as jni$_.JMethodIDPtr) - .check(); - } - - static final _id_onError = _class.instanceMethodId( - r'onError', - r'(Ljava/io/IOException;)V', - ); - - static final _onError = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public abstract void onError(java.io.IOException iOException)` - void onError( - jni$_.JObject iOException, - ) { - final _$iOException = iOException.reference; - _onError(reference.pointer, _id_onError as jni$_.JMethodIDPtr, - _$iOException.pointer) - .check(); - } - - /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; - static jni$_.JObjectPtr _$invoke( - int port, - jni$_.JObjectPtr descriptor, - jni$_.JObjectPtr args, - ) { - return _$invokeMethod( - port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), - ); + /// Maps a specific port to the implemented interface. + static final core$_.Map _$impls = {}; + static jni$_.JObjectPtr _$invoke( + core$_.int port, + jni$_.JObjectPtr descriptor, + jni$_.JObjectPtr args, + ) { + return _$invokeMethod( + port, + jni$_.MethodInvocation.fromAddresses( + 0, + descriptor.address, + args.address, + ), + ); } static final jni$_.Pointer< @@ -12797,7 +10810,7 @@ class DataCallback extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -12805,7 +10818,7 @@ class DataCallback extends jni$_.JObject { final $a = $i.args; if ($d == r'onDataRead([B)V') { _$impls[$p]!.onDataRead( - $a![0]!.as(const jni$_.JByteArrayType(), releaseOriginal: true), + ($a![0] as jni$_.JByteArray), ); return jni$_.nullptr; } @@ -12815,7 +10828,7 @@ class DataCallback extends jni$_.JObject { } if ($d == r'onError(Ljava/io/IOException;)V') { _$impls[$p]!.onError( - $a![0]!.as(const jni$_.JObjectType(), releaseOriginal: true), + ($a![0] as IOException), ); return jni$_.nullptr; } @@ -12838,6 +10851,7 @@ class DataCallback extends jni$_.JObject { } final $i = jni$_.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); + $i.args?.release(); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( @@ -12859,28 +10873,103 @@ class DataCallback extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return DataCallback.fromReference( - $i.implementReference(), - ); + return $i.implement(); + } +} + +extension DataCallback$$Methods on DataCallback { + static final _id_onDataRead = DataCallback._class.instanceMethodId( + r'onDataRead', + r'([B)V', + ); + + static final _onDataRead = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public fun onDataRead(data: kotlin.ByteArray): kotlin.Unit` + void onDataRead( + jni$_.JByteArray bs, + ) { + final _$$selfRef = reference; + final _$bs = bs.reference; + _onDataRead(_$$selfRef.pointer, _id_onDataRead.pointer, _$bs.pointer) + .check(); + } + + static final _id_onFinished = DataCallback._class.instanceMethodId( + r'onFinished', + r'()V', + ); + + static final _onFinished = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public fun onFinished(): kotlin.Unit` + void onFinished() { + final _$$selfRef = reference; + _onFinished(_$$selfRef.pointer, _id_onFinished.pointer).check(); + } + + static final _id_onError = DataCallback._class.instanceMethodId( + r'onError', + r'(Ljava/io/IOException;)V', + ); + + static final _onError = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public fun onError(e: java.io.IOException): kotlin.Unit` + void onError( + IOException iOException, + ) { + final _$$selfRef = reference; + final _$iOException = iOException.reference; + _onError(_$$selfRef.pointer, _id_onError.pointer, _$iOException.pointer) + .check(); } } abstract base mixin class $DataCallback { factory $DataCallback({ required void Function(jni$_.JByteArray bs) onDataRead, - bool onDataRead$async, + core$_.bool onDataRead$async, required void Function() onFinished, - bool onFinished$async, - required void Function(jni$_.JObject iOException) onError, - bool onError$async, + core$_.bool onFinished$async, + required void Function(IOException iOException) onError, + core$_.bool onError$async, }) = _$DataCallback; void onDataRead(jni$_.JByteArray bs); - bool get onDataRead$async => false; + core$_.bool get onDataRead$async => false; void onFinished(); - bool get onFinished$async => false; - void onError(jni$_.JObject iOException); - bool get onError$async => false; + core$_.bool get onFinished$async => false; + void onError(IOException iOException); + core$_.bool get onError$async => false; } final class _$DataCallback with $DataCallback { @@ -12889,18 +10978,18 @@ final class _$DataCallback with $DataCallback { this.onDataRead$async = false, required void Function() onFinished, this.onFinished$async = false, - required void Function(jni$_.JObject iOException) onError, + required void Function(IOException iOException) onError, this.onError$async = false, }) : _onDataRead = onDataRead, _onFinished = onFinished, _onError = onError; final void Function(jni$_.JByteArray bs) _onDataRead; - final bool onDataRead$async; + final core$_.bool onDataRead$async; final void Function() _onFinished; - final bool onFinished$async; - final void Function(jni$_.JObject iOException) _onError; - final bool onError$async; + final core$_.bool onFinished$async; + final void Function(IOException iOException) _onError; + final core$_.bool onError$async; void onDataRead(jni$_.JByteArray bs) { return _onDataRead(bs); @@ -12910,144 +10999,32 @@ final class _$DataCallback with $DataCallback { return _onFinished(); } - void onError(jni$_.JObject iOException) { + void onError(IOException iOException) { return _onError(iOException); } } -final class $DataCallback$NullableType extends jni$_.JObjType { - @jni$_.internal - const $DataCallback$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lcom/example/ok_http/DataCallback;'; - - @jni$_.internal - @core$_.override - DataCallback? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : DataCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($DataCallback$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($DataCallback$NullableType) && - other is $DataCallback$NullableType; - } -} - -final class $DataCallback$Type extends jni$_.JObjType { +final class $DataCallback$Type$ extends jni$_.JType { @jni$_.internal - const $DataCallback$Type(); + const $DataCallback$Type$(); @jni$_.internal @core$_.override String get signature => r'Lcom/example/ok_http/DataCallback;'; - - @jni$_.internal - @core$_.override - DataCallback fromReference(jni$_.JReference reference) => - DataCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $DataCallback$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($DataCallback$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($DataCallback$Type) && - other is $DataCallback$Type; - } } /// from: `okhttp3.WebSocket$Factory` -class WebSocket$Factory extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - WebSocket$Factory.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type WebSocket$Factory._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'okhttp3/WebSocket$Factory'); /// The type which includes information such as the signature of this class. - static const nullableType = $WebSocket$Factory$NullableType(); - static const type = $WebSocket$Factory$Type(); - static final _id_newWebSocket = _class.instanceMethodId( - r'newWebSocket', - r'(Lokhttp3/Request;Lokhttp3/WebSocketListener;)Lokhttp3/WebSocket;', - ); - - static final _newWebSocket = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); - - /// from: `public abstract okhttp3.WebSocket newWebSocket(okhttp3.Request request, okhttp3.WebSocketListener webSocketListener)` - /// The returned object must be released after use, by calling the [release] method. - WebSocket newWebSocket( - Request request, - jni$_.JObject webSocketListener, - ) { - final _$request = request.reference; - final _$webSocketListener = webSocketListener.reference; - return _newWebSocket( - reference.pointer, - _id_newWebSocket as jni$_.JMethodIDPtr, - _$request.pointer, - _$webSocketListener.pointer) - .object(const $WebSocket$Type()); - } + static const jni$_.JType type = $WebSocket$Factory$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; + static final core$_.Map _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -13068,7 +11045,7 @@ class WebSocket$Factory extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -13077,11 +11054,11 @@ class WebSocket$Factory extends jni$_.JObject { if ($d == r'newWebSocket(Lokhttp3/Request;Lokhttp3/WebSocketListener;)Lokhttp3/WebSocket;') { final $r = _$impls[$p]!.newWebSocket( - $a![0]!.as(const $Request$Type(), releaseOriginal: true), - $a![1]!.as(const jni$_.JObjectType(), releaseOriginal: true), + ($a![0] as Request), + ($a![1] as WebSocketListener), ); return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) + ?.as(const jni$_.$JObject$Type$()) .reference .toPointer() ?? jni$_.nullptr; @@ -13105,6 +11082,7 @@ class WebSocket$Factory extends jni$_.JObject { } final $i = jni$_.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); + $i.args?.release(); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( @@ -13122,131 +11100,199 @@ class WebSocket$Factory extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return WebSocket$Factory.fromReference( - $i.implementReference(), - ); + return $i.implement(); } } -abstract base mixin class $WebSocket$Factory { - factory $WebSocket$Factory({ - required WebSocket Function( - Request request, jni$_.JObject webSocketListener) - newWebSocket, - }) = _$WebSocket$Factory; - - WebSocket newWebSocket(Request request, jni$_.JObject webSocketListener); -} +extension WebSocket$Factory$$Methods on WebSocket$Factory { + static final _id_newWebSocket = WebSocket$Factory._class.instanceMethodId( + r'newWebSocket', + r'(Lokhttp3/Request;Lokhttp3/WebSocketListener;)Lokhttp3/WebSocket;', + ); + + static final _newWebSocket = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); + + /// from: `public fun newWebSocket(request: okhttp3.Request, listener: okhttp3.WebSocketListener): okhttp3.WebSocket` + /// The returned object must be released after use, by calling the [release] method. + WebSocket newWebSocket( + Request request, + WebSocketListener webSocketListener, + ) { + final _$$selfRef = reference; + final _$request = request.reference; + final _$webSocketListener = webSocketListener.reference; + return _newWebSocket(_$$selfRef.pointer, _id_newWebSocket.pointer, + _$request.pointer, _$webSocketListener.pointer) + .object(); + } +} + +abstract base mixin class $WebSocket$Factory { + factory $WebSocket$Factory({ + required WebSocket Function( + Request request, WebSocketListener webSocketListener) + newWebSocket, + }) = _$WebSocket$Factory; + + WebSocket newWebSocket(Request request, WebSocketListener webSocketListener); +} final class _$WebSocket$Factory with $WebSocket$Factory { _$WebSocket$Factory({ required WebSocket Function( - Request request, jni$_.JObject webSocketListener) + Request request, WebSocketListener webSocketListener) newWebSocket, }) : _newWebSocket = newWebSocket; - final WebSocket Function(Request request, jni$_.JObject webSocketListener) + final WebSocket Function(Request request, WebSocketListener webSocketListener) _newWebSocket; - WebSocket newWebSocket(Request request, jni$_.JObject webSocketListener) { + WebSocket newWebSocket(Request request, WebSocketListener webSocketListener) { return _newWebSocket(request, webSocketListener); } } -final class $WebSocket$Factory$NullableType - extends jni$_.JObjType { +final class $WebSocket$Factory$Type$ extends jni$_.JType { @jni$_.internal - const $WebSocket$Factory$NullableType(); + const $WebSocket$Factory$Type$(); @jni$_.internal @core$_.override String get signature => r'Lokhttp3/WebSocket$Factory;'; - - @jni$_.internal - @core$_.override - WebSocket$Factory? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : WebSocket$Factory.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($WebSocket$Factory$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($WebSocket$Factory$NullableType) && - other is $WebSocket$Factory$NullableType; - } } -final class $WebSocket$Factory$Type extends jni$_.JObjType { - @jni$_.internal - const $WebSocket$Factory$Type(); +/// from: `okhttp3.WebSocket` +extension type WebSocket._(jni$_.JObject _$this) implements jni$_.JObject { + static final _class = jni$_.JClass.forName(r'okhttp3/WebSocket'); - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/WebSocket$Factory;'; + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = $WebSocket$Type$(); - @jni$_.internal - @core$_.override - WebSocket$Factory fromReference(jni$_.JReference reference) => - WebSocket$Factory.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); + /// Maps a specific port to the implemented interface. + static final core$_.Map _$impls = {}; + static jni$_.JObjectPtr _$invoke( + core$_.int port, + jni$_.JObjectPtr descriptor, + jni$_.JObjectPtr args, + ) { + return _$invokeMethod( + port, + jni$_.MethodInvocation.fromAddresses( + 0, + descriptor.address, + args.address, + ), + ); + } - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $WebSocket$Factory$NullableType(); + static final jni$_.Pointer< + jni$_.NativeFunction< + jni$_.JObjectPtr Function( + jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); - @jni$_.internal - @core$_.override - final superCount = 1; + static jni$_.Pointer _$invokeMethod( + core$_.int $p, + jni$_.MethodInvocation $i, + ) { + try { + final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); + final $a = $i.args; + if ($d == r'request()Lokhttp3/Request;') { + final $r = _$impls[$p]!.request(); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } + if ($d == r'queueSize()J') { + final $r = _$impls[$p]!.queueSize(); + return $r.toJLong().reference.toPointer(); + } + if ($d == r'send(Ljava/lang/String;)Z') { + final $r = _$impls[$p]!.send( + ($a![0] as jni$_.JString), + ); + return $r.toJBoolean().reference.toPointer(); + } + if ($d == r'send(Lokio/ByteString;)Z') { + final $r = _$impls[$p]!.send$1( + ($a![0] as ByteString), + ); + return $r.toJBoolean().reference.toPointer(); + } + if ($d == r'close(ILjava/lang/String;)Z') { + final $r = _$impls[$p]!.close( + ($a![0] as jni$_.JInteger).toDartInt(releaseOriginal: true), + ($a![1] as jni$_.JString?), + ); + return $r.toJBoolean().reference.toPointer(); + } + if ($d == r'cancel()V') { + _$impls[$p]!.cancel(); + return jni$_.nullptr; + } + } catch (e) { + return jni$_.ProtectedJniExtensions.newDartException(e); + } + return jni$_.nullptr; + } - @core$_.override - int get hashCode => ($WebSocket$Factory$Type).hashCode; + static void implementIn( + jni$_.JImplementer implementer, + $WebSocket $impl, + ) { + late final jni$_.RawReceivePort $p; + $p = jni$_.RawReceivePort(($m) { + if ($m == null) { + _$impls.remove($p.sendPort.nativePort); + $p.close(); + return; + } + final $i = jni$_.MethodInvocation.fromMessage($m); + final $r = _$invokeMethod($p.sendPort.nativePort, $i); + $i.args?.release(); + jni$_.ProtectedJniExtensions.returnResult($i.result, $r); + }); + implementer.add( + r'okhttp3.WebSocket', + $p, + _$invokePointer, + [ + if ($impl.cancel$async) r'cancel()V', + ], + ); + final $a = $p.sendPort.nativePort; + _$impls[$a] = $impl; + } - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($WebSocket$Factory$Type) && - other is $WebSocket$Factory$Type; + factory WebSocket.implement( + $WebSocket $impl, + ) { + final $i = jni$_.JImplementer(); + implementIn($i, $impl); + return $i.implement(); } } -/// from: `okhttp3.WebSocket` -class WebSocket extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - WebSocket.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = jni$_.JClass.forName(r'okhttp3/WebSocket'); - - /// The type which includes information such as the signature of this class. - static const nullableType = $WebSocket$NullableType(); - static const type = $WebSocket$Type(); - static final _id_request = _class.instanceMethodId( +extension WebSocket$$Methods on WebSocket { + static final _id_request = WebSocket._class.instanceMethodId( r'request', r'()Lokhttp3/Request;', ); @@ -13263,14 +11309,14 @@ class WebSocket extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public abstract okhttp3.Request request()` + /// from: `public fun request(): okhttp3.Request` /// The returned object must be released after use, by calling the [release] method. Request request() { - return _request(reference.pointer, _id_request as jni$_.JMethodIDPtr) - .object(const $Request$Type()); + final _$$selfRef = reference; + return _request(_$$selfRef.pointer, _id_request.pointer).object(); } - static final _id_queueSize = _class.instanceMethodId( + static final _id_queueSize = WebSocket._class.instanceMethodId( r'queueSize', r'()J', ); @@ -13287,13 +11333,13 @@ class WebSocket extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public abstract long queueSize()` - int queueSize() { - return _queueSize(reference.pointer, _id_queueSize as jni$_.JMethodIDPtr) - .long; + /// from: `public fun queueSize(): kotlin.Long` + core$_.int queueSize() { + final _$$selfRef = reference; + return _queueSize(_$$selfRef.pointer, _id_queueSize.pointer).long; } - static final _id_send = _class.instanceMethodId( + static final _id_send = WebSocket._class.instanceMethodId( r'send', r'(Ljava/lang/String;)Z', ); @@ -13309,17 +11355,17 @@ class WebSocket extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public abstract boolean send(java.lang.String string)` - bool send( + /// from: `public fun send(text: kotlin.String): kotlin.Boolean` + core$_.bool send( jni$_.JString string, ) { + final _$$selfRef = reference; final _$string = string.reference; - return _send( - reference.pointer, _id_send as jni$_.JMethodIDPtr, _$string.pointer) + return _send(_$$selfRef.pointer, _id_send.pointer, _$string.pointer) .boolean; } - static final _id_send$1 = _class.instanceMethodId( + static final _id_send$1 = WebSocket._class.instanceMethodId( r'send', r'(Lokio/ByteString;)Z', ); @@ -13335,17 +11381,17 @@ class WebSocket extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public abstract boolean send(okio.ByteString byteString)` - bool send$1( + /// from: `public fun send(bytes: okio.ByteString): kotlin.Boolean` + core$_.bool send$1( ByteString byteString, ) { + final _$$selfRef = reference; final _$byteString = byteString.reference; - return _send$1(reference.pointer, _id_send$1 as jni$_.JMethodIDPtr, - _$byteString.pointer) + return _send$1(_$$selfRef.pointer, _id_send$1.pointer, _$byteString.pointer) .boolean; } - static final _id_close = _class.instanceMethodId( + static final _id_close = WebSocket._class.instanceMethodId( r'close', r'(ILjava/lang/String;)Z', ); @@ -13360,20 +11406,20 @@ class WebSocket extends jni$_.JObject { 'globalEnv_CallBooleanMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + jni$_.JMethodIDPtr, core$_.int, jni$_.Pointer)>(); - /// from: `public abstract boolean close(int i, java.lang.String string)` - bool close( - int i, + /// from: `public fun close(code: kotlin.Int, reason: kotlin.String?): kotlin.Boolean` + core$_.bool close( + core$_.int i, jni$_.JString? string, ) { + final _$$selfRef = reference; final _$string = string?.reference ?? jni$_.jNullReference; - return _close(reference.pointer, _id_close as jni$_.JMethodIDPtr, i, - _$string.pointer) + return _close(_$$selfRef.pointer, _id_close.pointer, i, _$string.pointer) .boolean; } - static final _id_cancel = _class.instanceMethodId( + static final _id_cancel = WebSocket._class.instanceMethodId( r'cancel', r'()V', ); @@ -13390,15 +11436,106 @@ class WebSocket extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public abstract void cancel()` + /// from: `public fun cancel(): kotlin.Unit` + void cancel() { + final _$$selfRef = reference; + _cancel(_$$selfRef.pointer, _id_cancel.pointer).check(); + } +} + +abstract base mixin class $WebSocket { + factory $WebSocket({ + required Request Function() request, + required core$_.int Function() queueSize, + required core$_.bool Function(jni$_.JString string) send, + required core$_.bool Function(ByteString byteString) send$1, + required core$_.bool Function(core$_.int i, jni$_.JString? string) close, + required void Function() cancel, + core$_.bool cancel$async, + }) = _$WebSocket; + + Request request(); + core$_.int queueSize(); + core$_.bool send(jni$_.JString string); + core$_.bool send$1(ByteString byteString); + core$_.bool close(core$_.int i, jni$_.JString? string); + void cancel(); + core$_.bool get cancel$async => false; +} + +final class _$WebSocket with $WebSocket { + _$WebSocket({ + required Request Function() request, + required core$_.int Function() queueSize, + required core$_.bool Function(jni$_.JString string) send, + required core$_.bool Function(ByteString byteString) send$1, + required core$_.bool Function(core$_.int i, jni$_.JString? string) close, + required void Function() cancel, + this.cancel$async = false, + }) : _request = request, + _queueSize = queueSize, + _send = send, + _send$1 = send$1, + _close = close, + _cancel = cancel; + + final Request Function() _request; + final core$_.int Function() _queueSize; + final core$_.bool Function(jni$_.JString string) _send; + final core$_.bool Function(ByteString byteString) _send$1; + final core$_.bool Function(core$_.int i, jni$_.JString? string) _close; + final void Function() _cancel; + final core$_.bool cancel$async; + + Request request() { + return _request(); + } + + core$_.int queueSize() { + return _queueSize(); + } + + core$_.bool send(jni$_.JString string) { + return _send(string); + } + + core$_.bool send$1(ByteString byteString) { + return _send$1(byteString); + } + + core$_.bool close(core$_.int i, jni$_.JString? string) { + return _close(i, string); + } + void cancel() { - _cancel(reference.pointer, _id_cancel as jni$_.JMethodIDPtr).check(); + return _cancel(); } +} + +final class $WebSocket$Type$ extends jni$_.JType { + @jni$_.internal + const $WebSocket$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokhttp3/WebSocket;'; +} + +/// from: `com.example.ok_http.WebSocketListenerProxy$WebSocketListener` +extension type WebSocketListenerProxy$WebSocketListener._(jni$_.JObject _$this) + implements jni$_.JObject { + static final _class = jni$_.JClass.forName( + r'com/example/ok_http/WebSocketListenerProxy$WebSocketListener'); + + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = + $WebSocketListenerProxy$WebSocketListener$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; + static final core$_.Map + _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -13419,47 +11556,48 @@ class WebSocket extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; - if ($d == r'request()Lokhttp3/Request;') { - final $r = _$impls[$p]!.request(); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == r'queueSize()J') { - final $r = _$impls[$p]!.queueSize(); - return jni$_.JLong($r).reference.toPointer(); - } - if ($d == r'send(Ljava/lang/String;)Z') { - final $r = _$impls[$p]!.send( - $a![0]!.as(const jni$_.JStringType(), releaseOriginal: true), + if ($d == r'onOpen(Lokhttp3/WebSocket;Lokhttp3/Response;)V') { + _$impls[$p]!.onOpen( + ($a![0] as WebSocket), + ($a![1] as Response), ); - return jni$_.JBoolean($r).reference.toPointer(); + return jni$_.nullptr; } - if ($d == r'send(Lokio/ByteString;)Z') { - final $r = _$impls[$p]!.send$1( - $a![0]!.as(const $ByteString$Type(), releaseOriginal: true), + if ($d == r'onMessage(Lokhttp3/WebSocket;Ljava/lang/String;)V') { + _$impls[$p]!.onMessage( + ($a![0] as WebSocket), + ($a![1] as jni$_.JString), ); - return jni$_.JBoolean($r).reference.toPointer(); + return jni$_.nullptr; } - if ($d == r'close(ILjava/lang/String;)Z') { - final $r = _$impls[$p]!.close( - $a![0]! - .as(const jni$_.JIntegerType(), releaseOriginal: true) - .intValue(releaseOriginal: true), - $a![1]?.as(const jni$_.JStringType(), releaseOriginal: true), + if ($d == r'onMessage(Lokhttp3/WebSocket;Lokio/ByteString;)V') { + _$impls[$p]!.onMessage$1( + ($a![0] as WebSocket), + ($a![1] as ByteString), ); - return jni$_.JBoolean($r).reference.toPointer(); + return jni$_.nullptr; } - if ($d == r'cancel()V') { - _$impls[$p]!.cancel(); + if ($d == r'onClosing(Lokhttp3/WebSocket;ILjava/lang/String;)V') { + _$impls[$p]!.onClosing( + ($a![0] as WebSocket), + ($a![1] as jni$_.JInteger).toDartInt(releaseOriginal: true), + ($a![2] as jni$_.JString), + ); + return jni$_.nullptr; + } + if ($d == + r'onFailure(Lokhttp3/WebSocket;Ljava/lang/Throwable;Lokhttp3/Response;)V') { + _$impls[$p]!.onFailure( + ($a![0] as WebSocket), + ($a![1] as Throwable), + ($a![2] as Response?), + ); return jni$_.nullptr; } } catch (e) { @@ -13470,7 +11608,7 @@ class WebSocket extends jni$_.JObject { static void implementIn( jni$_.JImplementer implementer, - $WebSocket $impl, + $WebSocketListenerProxy$WebSocketListener $impl, ) { late final jni$_.RawReceivePort $p; $p = jni$_.RawReceivePort(($m) { @@ -13481,193 +11619,43 @@ class WebSocket extends jni$_.JObject { } final $i = jni$_.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); + $i.args?.release(); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( - r'okhttp3.WebSocket', + r'com.example.ok_http.WebSocketListenerProxy$WebSocketListener', $p, _$invokePointer, [ - if ($impl.cancel$async) r'cancel()V', + if ($impl.onOpen$async) + r'onOpen(Lokhttp3/WebSocket;Lokhttp3/Response;)V', + if ($impl.onMessage$async) + r'onMessage(Lokhttp3/WebSocket;Ljava/lang/String;)V', + if ($impl.onMessage$1$async) + r'onMessage(Lokhttp3/WebSocket;Lokio/ByteString;)V', + if ($impl.onClosing$async) + r'onClosing(Lokhttp3/WebSocket;ILjava/lang/String;)V', + if ($impl.onFailure$async) + r'onFailure(Lokhttp3/WebSocket;Ljava/lang/Throwable;Lokhttp3/Response;)V', ], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } - factory WebSocket.implement( - $WebSocket $impl, + factory WebSocketListenerProxy$WebSocketListener.implement( + $WebSocketListenerProxy$WebSocketListener $impl, ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return WebSocket.fromReference( - $i.implementReference(), - ); - } -} - -abstract base mixin class $WebSocket { - factory $WebSocket({ - required Request Function() request, - required int Function() queueSize, - required bool Function(jni$_.JString string) send, - required bool Function(ByteString byteString) send$1, - required bool Function(int i, jni$_.JString? string) close, - required void Function() cancel, - bool cancel$async, - }) = _$WebSocket; - - Request request(); - int queueSize(); - bool send(jni$_.JString string); - bool send$1(ByteString byteString); - bool close(int i, jni$_.JString? string); - void cancel(); - bool get cancel$async => false; -} - -final class _$WebSocket with $WebSocket { - _$WebSocket({ - required Request Function() request, - required int Function() queueSize, - required bool Function(jni$_.JString string) send, - required bool Function(ByteString byteString) send$1, - required bool Function(int i, jni$_.JString? string) close, - required void Function() cancel, - this.cancel$async = false, - }) : _request = request, - _queueSize = queueSize, - _send = send, - _send$1 = send$1, - _close = close, - _cancel = cancel; - - final Request Function() _request; - final int Function() _queueSize; - final bool Function(jni$_.JString string) _send; - final bool Function(ByteString byteString) _send$1; - final bool Function(int i, jni$_.JString? string) _close; - final void Function() _cancel; - final bool cancel$async; - - Request request() { - return _request(); - } - - int queueSize() { - return _queueSize(); - } - - bool send(jni$_.JString string) { - return _send(string); - } - - bool send$1(ByteString byteString) { - return _send$1(byteString); - } - - bool close(int i, jni$_.JString? string) { - return _close(i, string); - } - - void cancel() { - return _cancel(); - } -} - -final class $WebSocket$NullableType extends jni$_.JObjType { - @jni$_.internal - const $WebSocket$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/WebSocket;'; - - @jni$_.internal - @core$_.override - WebSocket? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : WebSocket.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($WebSocket$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($WebSocket$NullableType) && - other is $WebSocket$NullableType; + return $i.implement(); } } -final class $WebSocket$Type extends jni$_.JObjType { - @jni$_.internal - const $WebSocket$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokhttp3/WebSocket;'; - - @jni$_.internal - @core$_.override - WebSocket fromReference(jni$_.JReference reference) => - WebSocket.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $WebSocket$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($WebSocket$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($WebSocket$Type) && other is $WebSocket$Type; - } -} - -/// from: `com.example.ok_http.WebSocketListenerProxy$WebSocketListener` -class WebSocketListenerProxy$WebSocketListener extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - WebSocketListenerProxy$WebSocketListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = jni$_.JClass.forName( - r'com/example/ok_http/WebSocketListenerProxy$WebSocketListener'); - - /// The type which includes information such as the signature of this class. - static const nullableType = - $WebSocketListenerProxy$WebSocketListener$NullableType(); - static const type = $WebSocketListenerProxy$WebSocketListener$Type(); - static final _id_onOpen = _class.instanceMethodId( +extension WebSocketListenerProxy$WebSocketListener$$Methods + on WebSocketListenerProxy$WebSocketListener { + static final _id_onOpen = + WebSocketListenerProxy$WebSocketListener._class.instanceMethodId( r'onOpen', r'(Lokhttp3/WebSocket;Lokhttp3/Response;)V', ); @@ -13689,19 +11677,21 @@ class WebSocketListenerProxy$WebSocketListener extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public abstract void onOpen(okhttp3.WebSocket webSocket, okhttp3.Response response)` + /// from: `public fun onOpen(webSocket: okhttp3.WebSocket, response: okhttp3.Response): kotlin.Unit` void onOpen( WebSocket webSocket, Response response, ) { + final _$$selfRef = reference; final _$webSocket = webSocket.reference; final _$response = response.reference; - _onOpen(reference.pointer, _id_onOpen as jni$_.JMethodIDPtr, - _$webSocket.pointer, _$response.pointer) + _onOpen(_$$selfRef.pointer, _id_onOpen.pointer, _$webSocket.pointer, + _$response.pointer) .check(); } - static final _id_onMessage = _class.instanceMethodId( + static final _id_onMessage = + WebSocketListenerProxy$WebSocketListener._class.instanceMethodId( r'onMessage', r'(Lokhttp3/WebSocket;Ljava/lang/String;)V', ); @@ -13723,19 +11713,21 @@ class WebSocketListenerProxy$WebSocketListener extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public abstract void onMessage(okhttp3.WebSocket webSocket, java.lang.String string)` + /// from: `public fun onMessage(webSocket: okhttp3.WebSocket, text: kotlin.String): kotlin.Unit` void onMessage( WebSocket webSocket, jni$_.JString string, ) { + final _$$selfRef = reference; final _$webSocket = webSocket.reference; final _$string = string.reference; - _onMessage(reference.pointer, _id_onMessage as jni$_.JMethodIDPtr, - _$webSocket.pointer, _$string.pointer) + _onMessage(_$$selfRef.pointer, _id_onMessage.pointer, _$webSocket.pointer, + _$string.pointer) .check(); } - static final _id_onMessage$1 = _class.instanceMethodId( + static final _id_onMessage$1 = + WebSocketListenerProxy$WebSocketListener._class.instanceMethodId( r'onMessage', r'(Lokhttp3/WebSocket;Lokio/ByteString;)V', ); @@ -13757,19 +11749,21 @@ class WebSocketListenerProxy$WebSocketListener extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public abstract void onMessage(okhttp3.WebSocket webSocket, okio.ByteString byteString)` + /// from: `public fun onMessage(webSocket: okhttp3.WebSocket, bytes: okio.ByteString): kotlin.Unit` void onMessage$1( WebSocket webSocket, ByteString byteString, ) { + final _$$selfRef = reference; final _$webSocket = webSocket.reference; final _$byteString = byteString.reference; - _onMessage$1(reference.pointer, _id_onMessage$1 as jni$_.JMethodIDPtr, + _onMessage$1(_$$selfRef.pointer, _id_onMessage$1.pointer, _$webSocket.pointer, _$byteString.pointer) .check(); } - static final _id_onClosing = _class.instanceMethodId( + static final _id_onClosing = + WebSocketListenerProxy$WebSocketListener._class.instanceMethodId( r'onClosing', r'(Lokhttp3/WebSocket;ILjava/lang/String;)V', ); @@ -13790,23 +11784,25 @@ class WebSocketListenerProxy$WebSocketListener extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer)>(); - /// from: `public abstract void onClosing(okhttp3.WebSocket webSocket, int i, java.lang.String string)` + /// from: `public fun onClosing(webSocket: okhttp3.WebSocket, code: kotlin.Int, reason: kotlin.String): kotlin.Unit` void onClosing( WebSocket webSocket, - int i, + core$_.int i, jni$_.JString string, ) { + final _$$selfRef = reference; final _$webSocket = webSocket.reference; final _$string = string.reference; - _onClosing(reference.pointer, _id_onClosing as jni$_.JMethodIDPtr, - _$webSocket.pointer, i, _$string.pointer) + _onClosing(_$$selfRef.pointer, _id_onClosing.pointer, _$webSocket.pointer, + i, _$string.pointer) .check(); } - static final _id_onFailure = _class.instanceMethodId( + static final _id_onFailure = + WebSocketListenerProxy$WebSocketListener._class.instanceMethodId( r'onFailure', r'(Lokhttp3/WebSocket;Ljava/lang/Throwable;Lokhttp3/Response;)V', ); @@ -13830,173 +11826,51 @@ class WebSocketListenerProxy$WebSocketListener extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public abstract void onFailure(okhttp3.WebSocket webSocket, java.lang.Throwable throwable, okhttp3.Response response)` + /// from: `public fun onFailure(webSocket: okhttp3.WebSocket, t: kotlin.Throwable, response: okhttp3.Response?): kotlin.Unit` void onFailure( WebSocket webSocket, - jni$_.JObject throwable, + Throwable throwable, Response? response, ) { + final _$$selfRef = reference; final _$webSocket = webSocket.reference; final _$throwable = throwable.reference; final _$response = response?.reference ?? jni$_.jNullReference; - _onFailure(reference.pointer, _id_onFailure as jni$_.JMethodIDPtr, - _$webSocket.pointer, _$throwable.pointer, _$response.pointer) + _onFailure(_$$selfRef.pointer, _id_onFailure.pointer, _$webSocket.pointer, + _$throwable.pointer, _$response.pointer) .check(); } - - /// Maps a specific port to the implemented interface. - static final core$_.Map - _$impls = {}; - static jni$_.JObjectPtr _$invoke( - int port, - jni$_.JObjectPtr descriptor, - jni$_.JObjectPtr args, - ) { - return _$invokeMethod( - port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), - ); - } - - static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); - - static jni$_.Pointer _$invokeMethod( - int $p, - jni$_.MethodInvocation $i, - ) { - try { - final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); - final $a = $i.args; - if ($d == r'onOpen(Lokhttp3/WebSocket;Lokhttp3/Response;)V') { - _$impls[$p]!.onOpen( - $a![0]!.as(const $WebSocket$Type(), releaseOriginal: true), - $a![1]!.as(const $Response$Type(), releaseOriginal: true), - ); - return jni$_.nullptr; - } - if ($d == r'onMessage(Lokhttp3/WebSocket;Ljava/lang/String;)V') { - _$impls[$p]!.onMessage( - $a![0]!.as(const $WebSocket$Type(), releaseOriginal: true), - $a![1]!.as(const jni$_.JStringType(), releaseOriginal: true), - ); - return jni$_.nullptr; - } - if ($d == r'onMessage(Lokhttp3/WebSocket;Lokio/ByteString;)V') { - _$impls[$p]!.onMessage$1( - $a![0]!.as(const $WebSocket$Type(), releaseOriginal: true), - $a![1]!.as(const $ByteString$Type(), releaseOriginal: true), - ); - return jni$_.nullptr; - } - if ($d == r'onClosing(Lokhttp3/WebSocket;ILjava/lang/String;)V') { - _$impls[$p]!.onClosing( - $a![0]!.as(const $WebSocket$Type(), releaseOriginal: true), - $a![1]! - .as(const jni$_.JIntegerType(), releaseOriginal: true) - .intValue(releaseOriginal: true), - $a![2]!.as(const jni$_.JStringType(), releaseOriginal: true), - ); - return jni$_.nullptr; - } - if ($d == - r'onFailure(Lokhttp3/WebSocket;Ljava/lang/Throwable;Lokhttp3/Response;)V') { - _$impls[$p]!.onFailure( - $a![0]!.as(const $WebSocket$Type(), releaseOriginal: true), - $a![1]!.as(const jni$_.JObjectType(), releaseOriginal: true), - $a![2]?.as(const $Response$Type(), releaseOriginal: true), - ); - return jni$_.nullptr; - } - } catch (e) { - return jni$_.ProtectedJniExtensions.newDartException(e); - } - return jni$_.nullptr; - } - - static void implementIn( - jni$_.JImplementer implementer, - $WebSocketListenerProxy$WebSocketListener $impl, - ) { - late final jni$_.RawReceivePort $p; - $p = jni$_.RawReceivePort(($m) { - if ($m == null) { - _$impls.remove($p.sendPort.nativePort); - $p.close(); - return; - } - final $i = jni$_.MethodInvocation.fromMessage($m); - final $r = _$invokeMethod($p.sendPort.nativePort, $i); - jni$_.ProtectedJniExtensions.returnResult($i.result, $r); - }); - implementer.add( - r'com.example.ok_http.WebSocketListenerProxy$WebSocketListener', - $p, - _$invokePointer, - [ - if ($impl.onOpen$async) - r'onOpen(Lokhttp3/WebSocket;Lokhttp3/Response;)V', - if ($impl.onMessage$async) - r'onMessage(Lokhttp3/WebSocket;Ljava/lang/String;)V', - if ($impl.onMessage$1$async) - r'onMessage(Lokhttp3/WebSocket;Lokio/ByteString;)V', - if ($impl.onClosing$async) - r'onClosing(Lokhttp3/WebSocket;ILjava/lang/String;)V', - if ($impl.onFailure$async) - r'onFailure(Lokhttp3/WebSocket;Ljava/lang/Throwable;Lokhttp3/Response;)V', - ], - ); - final $a = $p.sendPort.nativePort; - _$impls[$a] = $impl; - } - - factory WebSocketListenerProxy$WebSocketListener.implement( - $WebSocketListenerProxy$WebSocketListener $impl, - ) { - final $i = jni$_.JImplementer(); - implementIn($i, $impl); - return WebSocketListenerProxy$WebSocketListener.fromReference( - $i.implementReference(), - ); - } } abstract base mixin class $WebSocketListenerProxy$WebSocketListener { factory $WebSocketListenerProxy$WebSocketListener({ required void Function(WebSocket webSocket, Response response) onOpen, - bool onOpen$async, + core$_.bool onOpen$async, required void Function(WebSocket webSocket, jni$_.JString string) onMessage, - bool onMessage$async, + core$_.bool onMessage$async, required void Function(WebSocket webSocket, ByteString byteString) onMessage$1, - bool onMessage$1$async, - required void Function(WebSocket webSocket, int i, jni$_.JString string) + core$_.bool onMessage$1$async, + required void Function( + WebSocket webSocket, core$_.int i, jni$_.JString string) onClosing, - bool onClosing$async, + core$_.bool onClosing$async, required void Function( - WebSocket webSocket, jni$_.JObject throwable, Response? response) + WebSocket webSocket, Throwable throwable, Response? response) onFailure, - bool onFailure$async, + core$_.bool onFailure$async, }) = _$WebSocketListenerProxy$WebSocketListener; void onOpen(WebSocket webSocket, Response response); - bool get onOpen$async => false; + core$_.bool get onOpen$async => false; void onMessage(WebSocket webSocket, jni$_.JString string); - bool get onMessage$async => false; + core$_.bool get onMessage$async => false; void onMessage$1(WebSocket webSocket, ByteString byteString); - bool get onMessage$1$async => false; - void onClosing(WebSocket webSocket, int i, jni$_.JString string); - bool get onClosing$async => false; - void onFailure( - WebSocket webSocket, jni$_.JObject throwable, Response? response); - bool get onFailure$async => false; + core$_.bool get onMessage$1$async => false; + void onClosing(WebSocket webSocket, core$_.int i, jni$_.JString string); + core$_.bool get onClosing$async => false; + void onFailure(WebSocket webSocket, Throwable throwable, Response? response); + core$_.bool get onFailure$async => false; } final class _$WebSocketListenerProxy$WebSocketListener @@ -14009,11 +11883,12 @@ final class _$WebSocketListenerProxy$WebSocketListener required void Function(WebSocket webSocket, ByteString byteString) onMessage$1, this.onMessage$1$async = false, - required void Function(WebSocket webSocket, int i, jni$_.JString string) + required void Function( + WebSocket webSocket, core$_.int i, jni$_.JString string) onClosing, this.onClosing$async = false, required void Function( - WebSocket webSocket, jni$_.JObject throwable, Response? response) + WebSocket webSocket, Throwable throwable, Response? response) onFailure, this.onFailure$async = false, }) : _onOpen = onOpen, @@ -14023,18 +11898,17 @@ final class _$WebSocketListenerProxy$WebSocketListener _onFailure = onFailure; final void Function(WebSocket webSocket, Response response) _onOpen; - final bool onOpen$async; + final core$_.bool onOpen$async; final void Function(WebSocket webSocket, jni$_.JString string) _onMessage; - final bool onMessage$async; + final core$_.bool onMessage$async; final void Function(WebSocket webSocket, ByteString byteString) _onMessage$1; - final bool onMessage$1$async; - final void Function(WebSocket webSocket, int i, jni$_.JString string) + final core$_.bool onMessage$1$async; + final void Function(WebSocket webSocket, core$_.int i, jni$_.JString string) _onClosing; - final bool onClosing$async; + final core$_.bool onClosing$async; final void Function( - WebSocket webSocket, jni$_.JObject throwable, Response? response) - _onFailure; - final bool onFailure$async; + WebSocket webSocket, Throwable throwable, Response? response) _onFailure; + final core$_.bool onFailure$async; void onOpen(WebSocket webSocket, Response response) { return _onOpen(webSocket, response); @@ -14048,122 +11922,38 @@ final class _$WebSocketListenerProxy$WebSocketListener return _onMessage$1(webSocket, byteString); } - void onClosing(WebSocket webSocket, int i, jni$_.JString string) { + void onClosing(WebSocket webSocket, core$_.int i, jni$_.JString string) { return _onClosing(webSocket, i, string); } - void onFailure( - WebSocket webSocket, jni$_.JObject throwable, Response? response) { + void onFailure(WebSocket webSocket, Throwable throwable, Response? response) { return _onFailure(webSocket, throwable, response); } } -final class $WebSocketListenerProxy$WebSocketListener$NullableType - extends jni$_.JObjType { +final class $WebSocketListenerProxy$WebSocketListener$Type$ + extends jni$_.JType { @jni$_.internal - const $WebSocketListenerProxy$WebSocketListener$NullableType(); + const $WebSocketListenerProxy$WebSocketListener$Type$(); @jni$_.internal @core$_.override String get signature => r'Lcom/example/ok_http/WebSocketListenerProxy$WebSocketListener;'; +} - @jni$_.internal - @core$_.override - WebSocketListenerProxy$WebSocketListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : WebSocketListenerProxy$WebSocketListener.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - this; +/// from: `com.example.ok_http.WebSocketListenerProxy` +extension type WebSocketListenerProxy._(jni$_.JObject _$this) + implements WebSocketListener { + static final _class = + jni$_.JClass.forName(r'com/example/ok_http/WebSocketListenerProxy'); - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => - ($WebSocketListenerProxy$WebSocketListener$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($WebSocketListenerProxy$WebSocketListener$NullableType) && - other is $WebSocketListenerProxy$WebSocketListener$NullableType; - } -} - -final class $WebSocketListenerProxy$WebSocketListener$Type - extends jni$_.JObjType { - @jni$_.internal - const $WebSocketListenerProxy$WebSocketListener$Type(); - - @jni$_.internal - @core$_.override - String get signature => - r'Lcom/example/ok_http/WebSocketListenerProxy$WebSocketListener;'; - - @jni$_.internal - @core$_.override - WebSocketListenerProxy$WebSocketListener fromReference( - jni$_.JReference reference) => - WebSocketListenerProxy$WebSocketListener.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $WebSocketListenerProxy$WebSocketListener$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($WebSocketListenerProxy$WebSocketListener$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($WebSocketListenerProxy$WebSocketListener$Type) && - other is $WebSocketListenerProxy$WebSocketListener$Type; - } -} - -/// from: `com.example.ok_http.WebSocketListenerProxy` -class WebSocketListenerProxy extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - WebSocketListenerProxy.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = - jni$_.JClass.forName(r'com/example/ok_http/WebSocketListenerProxy'); - - /// The type which includes information such as the signature of this class. - static const nullableType = $WebSocketListenerProxy$NullableType(); - static const type = $WebSocketListenerProxy$Type(); - static final _id_new$ = _class.constructorId( - r'(Lcom/example/ok_http/WebSocketListenerProxy$WebSocketListener;)V', - ); + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = + $WebSocketListenerProxy$Type$(); + static final _id_new$ = _class.constructorId( + r'(Lcom/example/ok_http/WebSocketListenerProxy$WebSocketListener;)V', + ); static final _new$ = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< @@ -14181,13 +11971,16 @@ class WebSocketListenerProxy extends jni$_.JObject { factory WebSocketListenerProxy( WebSocketListenerProxy$WebSocketListener webSocketListener, ) { + final _$$classRef = _class.reference; final _$webSocketListener = webSocketListener.reference; - return WebSocketListenerProxy.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$webSocketListener.pointer) - .reference); + return _new$( + _$$classRef.pointer, _id_new$.pointer, _$webSocketListener.pointer) + .object(); } +} - static final _id_onOpen = _class.instanceMethodId( +extension WebSocketListenerProxy$$Methods on WebSocketListenerProxy { + static final _id_onOpen = WebSocketListenerProxy._class.instanceMethodId( r'onOpen', r'(Lokhttp3/WebSocket;Lokhttp3/Response;)V', ); @@ -14209,19 +12002,20 @@ class WebSocketListenerProxy extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public void onOpen(okhttp3.WebSocket webSocket, okhttp3.Response response)` + /// from: `public fun onOpen(webSocket: okhttp3.WebSocket, response: okhttp3.Response): kotlin.Unit` void onOpen( WebSocket webSocket, Response response, ) { + final _$$selfRef = reference; final _$webSocket = webSocket.reference; final _$response = response.reference; - _onOpen(reference.pointer, _id_onOpen as jni$_.JMethodIDPtr, - _$webSocket.pointer, _$response.pointer) + _onOpen(_$$selfRef.pointer, _id_onOpen.pointer, _$webSocket.pointer, + _$response.pointer) .check(); } - static final _id_onMessage = _class.instanceMethodId( + static final _id_onMessage = WebSocketListenerProxy._class.instanceMethodId( r'onMessage', r'(Lokhttp3/WebSocket;Ljava/lang/String;)V', ); @@ -14243,19 +12037,20 @@ class WebSocketListenerProxy extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public void onMessage(okhttp3.WebSocket webSocket, java.lang.String string)` + /// from: `public fun onMessage(webSocket: okhttp3.WebSocket, text: kotlin.String): kotlin.Unit` void onMessage( WebSocket webSocket, jni$_.JString string, ) { + final _$$selfRef = reference; final _$webSocket = webSocket.reference; final _$string = string.reference; - _onMessage(reference.pointer, _id_onMessage as jni$_.JMethodIDPtr, - _$webSocket.pointer, _$string.pointer) + _onMessage(_$$selfRef.pointer, _id_onMessage.pointer, _$webSocket.pointer, + _$string.pointer) .check(); } - static final _id_onMessage$1 = _class.instanceMethodId( + static final _id_onMessage$1 = WebSocketListenerProxy._class.instanceMethodId( r'onMessage', r'(Lokhttp3/WebSocket;Lokio/ByteString;)V', ); @@ -14277,19 +12072,20 @@ class WebSocketListenerProxy extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public void onMessage(okhttp3.WebSocket webSocket, okio.ByteString byteString)` + /// from: `public fun onMessage(webSocket: okhttp3.WebSocket, bytes: okio.ByteString): kotlin.Unit` void onMessage$1( WebSocket webSocket, ByteString byteString, ) { + final _$$selfRef = reference; final _$webSocket = webSocket.reference; final _$byteString = byteString.reference; - _onMessage$1(reference.pointer, _id_onMessage$1 as jni$_.JMethodIDPtr, + _onMessage$1(_$$selfRef.pointer, _id_onMessage$1.pointer, _$webSocket.pointer, _$byteString.pointer) .check(); } - static final _id_onClosing = _class.instanceMethodId( + static final _id_onClosing = WebSocketListenerProxy._class.instanceMethodId( r'onClosing', r'(Lokhttp3/WebSocket;ILjava/lang/String;)V', ); @@ -14310,23 +12106,24 @@ class WebSocketListenerProxy extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer)>(); - /// from: `public void onClosing(okhttp3.WebSocket webSocket, int i, java.lang.String string)` + /// from: `public fun onClosing(webSocket: okhttp3.WebSocket, code: kotlin.Int, reason: kotlin.String): kotlin.Unit` void onClosing( WebSocket webSocket, - int i, + core$_.int i, jni$_.JString string, ) { + final _$$selfRef = reference; final _$webSocket = webSocket.reference; final _$string = string.reference; - _onClosing(reference.pointer, _id_onClosing as jni$_.JMethodIDPtr, - _$webSocket.pointer, i, _$string.pointer) + _onClosing(_$$selfRef.pointer, _id_onClosing.pointer, _$webSocket.pointer, + i, _$string.pointer) .check(); } - static final _id_onFailure = _class.instanceMethodId( + static final _id_onFailure = WebSocketListenerProxy._class.instanceMethodId( r'onFailure', r'(Lokhttp3/WebSocket;Ljava/lang/Throwable;Lokhttp3/Response;)V', ); @@ -14350,117 +12147,41 @@ class WebSocketListenerProxy extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public void onFailure(okhttp3.WebSocket webSocket, java.lang.Throwable throwable, okhttp3.Response response)` + /// from: `public fun onFailure(webSocket: okhttp3.WebSocket, t: kotlin.Throwable, response: okhttp3.Response?): kotlin.Unit` void onFailure( WebSocket webSocket, - jni$_.JObject throwable, + Throwable throwable, Response? response, ) { + final _$$selfRef = reference; final _$webSocket = webSocket.reference; final _$throwable = throwable.reference; final _$response = response?.reference ?? jni$_.jNullReference; - _onFailure(reference.pointer, _id_onFailure as jni$_.JMethodIDPtr, - _$webSocket.pointer, _$throwable.pointer, _$response.pointer) + _onFailure(_$$selfRef.pointer, _id_onFailure.pointer, _$webSocket.pointer, + _$throwable.pointer, _$response.pointer) .check(); } } -final class $WebSocketListenerProxy$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $WebSocketListenerProxy$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lcom/example/ok_http/WebSocketListenerProxy;'; - - @jni$_.internal - @core$_.override - WebSocketListenerProxy? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : WebSocketListenerProxy.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($WebSocketListenerProxy$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($WebSocketListenerProxy$NullableType) && - other is $WebSocketListenerProxy$NullableType; - } -} - -final class $WebSocketListenerProxy$Type - extends jni$_.JObjType { +final class $WebSocketListenerProxy$Type$ + extends jni$_.JType { @jni$_.internal - const $WebSocketListenerProxy$Type(); + const $WebSocketListenerProxy$Type$(); @jni$_.internal @core$_.override String get signature => r'Lcom/example/ok_http/WebSocketListenerProxy;'; - - @jni$_.internal - @core$_.override - WebSocketListenerProxy fromReference(jni$_.JReference reference) => - WebSocketListenerProxy.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $WebSocketListenerProxy$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($WebSocketListenerProxy$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($WebSocketListenerProxy$Type) && - other is $WebSocketListenerProxy$Type; - } } /// from: `com.example.ok_http.FixedResponseX509ExtendedKeyManager` -class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - FixedResponseX509ExtendedKeyManager.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type FixedResponseX509ExtendedKeyManager._(jni$_.JObject _$this) + implements X509ExtendedKeyManager { static final _class = jni$_.JClass.forName( r'com/example/ok_http/FixedResponseX509ExtendedKeyManager'); /// The type which includes information such as the signature of this class. - static const nullableType = - $FixedResponseX509ExtendedKeyManager$NullableType(); - static const type = $FixedResponseX509ExtendedKeyManager$Type(); + static const jni$_.JType type = + $FixedResponseX509ExtendedKeyManager$Type$(); static final _id_new$ = _class.constructorId( r'([Ljava/security/cert/X509Certificate;Ljava/security/PrivateKey;Ljava/lang/String;)V', ); @@ -14491,19 +12212,20 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { PrivateKey privateKey, jni$_.JString string, ) { + final _$$classRef = _class.reference; final _$x509Certificates = x509Certificates.reference; final _$privateKey = privateKey.reference; final _$string = string.reference; - return FixedResponseX509ExtendedKeyManager.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$x509Certificates.pointer, - _$privateKey.pointer, - _$string.pointer) - .reference); + return _new$(_$$classRef.pointer, _id_new$.pointer, + _$x509Certificates.pointer, _$privateKey.pointer, _$string.pointer) + .object(); } +} - static final _id_getClientAliases = _class.instanceMethodId( +extension FixedResponseX509ExtendedKeyManager$$Methods + on FixedResponseX509ExtendedKeyManager { + static final _id_getClientAliases = + FixedResponseX509ExtendedKeyManager._class.instanceMethodId( r'getClientAliases', r'(Ljava/lang/String;[Ljava/security/Principal;)[Ljava/lang/String;', ); @@ -14525,24 +12247,22 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public java.lang.String[] getClientAliases(java.lang.String string, java.security.Principal[] principals)` + /// from: `public fun getClientAliases(keyType: kotlin.String, issuers: kotlin.Array?): kotlin.Array` /// The returned object must be released after use, by calling the [release] method. jni$_.JArray getClientAliases( jni$_.JString string, - jni$_.JArray? principals, + jni$_.JArray? principals, ) { + final _$$selfRef = reference; final _$string = string.reference; final _$principals = principals?.reference ?? jni$_.jNullReference; - return _getClientAliases( - reference.pointer, - _id_getClientAliases as jni$_.JMethodIDPtr, - _$string.pointer, - _$principals.pointer) - .object>( - const jni$_.JArrayType(jni$_.JStringType())); + return _getClientAliases(_$$selfRef.pointer, _id_getClientAliases.pointer, + _$string.pointer, _$principals.pointer) + .object>(); } - static final _id_chooseClientAlias = _class.instanceMethodId( + static final _id_chooseClientAlias = + FixedResponseX509ExtendedKeyManager._class.instanceMethodId( r'chooseClientAlias', r'([Ljava/lang/String;[Ljava/security/Principal;Ljava/net/Socket;)Ljava/lang/String;', ); @@ -14566,26 +12286,24 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public java.lang.String chooseClientAlias(java.lang.String[] strings, java.security.Principal[] principals, java.net.Socket socket)` + /// from: `public fun chooseClientAlias(keyType: kotlin.Array, issuers: kotlin.Array?, socket: java.net.Socket?): kotlin.String` /// The returned object must be released after use, by calling the [release] method. jni$_.JString chooseClientAlias( jni$_.JArray strings, - jni$_.JArray? principals, - jni$_.JObject? socket, + jni$_.JArray? principals, + Socket? socket, ) { + final _$$selfRef = reference; final _$strings = strings.reference; final _$principals = principals?.reference ?? jni$_.jNullReference; final _$socket = socket?.reference ?? jni$_.jNullReference; - return _chooseClientAlias( - reference.pointer, - _id_chooseClientAlias as jni$_.JMethodIDPtr, - _$strings.pointer, - _$principals.pointer, - _$socket.pointer) - .object(const jni$_.JStringType()); + return _chooseClientAlias(_$$selfRef.pointer, _id_chooseClientAlias.pointer, + _$strings.pointer, _$principals.pointer, _$socket.pointer) + .object(); } - static final _id_getServerAliases = _class.instanceMethodId( + static final _id_getServerAliases = + FixedResponseX509ExtendedKeyManager._class.instanceMethodId( r'getServerAliases', r'(Ljava/lang/String;[Ljava/security/Principal;)[Ljava/lang/String;', ); @@ -14607,24 +12325,22 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public java.lang.String[] getServerAliases(java.lang.String string, java.security.Principal[] principals)` + /// from: `public fun getServerAliases(keyType: kotlin.String, issuers: kotlin.Array?): kotlin.Array` /// The returned object must be released after use, by calling the [release] method. jni$_.JArray getServerAliases( jni$_.JString string, - jni$_.JArray? principals, + jni$_.JArray? principals, ) { + final _$$selfRef = reference; final _$string = string.reference; final _$principals = principals?.reference ?? jni$_.jNullReference; - return _getServerAliases( - reference.pointer, - _id_getServerAliases as jni$_.JMethodIDPtr, - _$string.pointer, - _$principals.pointer) - .object>( - const jni$_.JArrayType(jni$_.JStringType())); + return _getServerAliases(_$$selfRef.pointer, _id_getServerAliases.pointer, + _$string.pointer, _$principals.pointer) + .object>(); } - static final _id_chooseServerAlias = _class.instanceMethodId( + static final _id_chooseServerAlias = + FixedResponseX509ExtendedKeyManager._class.instanceMethodId( r'chooseServerAlias', r'(Ljava/lang/String;[Ljava/security/Principal;Ljava/net/Socket;)Ljava/lang/String;', ); @@ -14648,26 +12364,24 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public java.lang.String chooseServerAlias(java.lang.String string, java.security.Principal[] principals, java.net.Socket socket)` + /// from: `public fun chooseServerAlias(keyType: kotlin.String, issuers: kotlin.Array?, socket: java.net.Socket?): kotlin.String` /// The returned object must be released after use, by calling the [release] method. jni$_.JString chooseServerAlias( jni$_.JString string, - jni$_.JArray? principals, - jni$_.JObject? socket, + jni$_.JArray? principals, + Socket? socket, ) { + final _$$selfRef = reference; final _$string = string.reference; final _$principals = principals?.reference ?? jni$_.jNullReference; final _$socket = socket?.reference ?? jni$_.jNullReference; - return _chooseServerAlias( - reference.pointer, - _id_chooseServerAlias as jni$_.JMethodIDPtr, - _$string.pointer, - _$principals.pointer, - _$socket.pointer) - .object(const jni$_.JStringType()); + return _chooseServerAlias(_$$selfRef.pointer, _id_chooseServerAlias.pointer, + _$string.pointer, _$principals.pointer, _$socket.pointer) + .object(); } - static final _id_getCertificateChain = _class.instanceMethodId( + static final _id_getCertificateChain = + FixedResponseX509ExtendedKeyManager._class.instanceMethodId( r'getCertificateChain', r'(Ljava/lang/String;)[Ljava/security/cert/X509Certificate;', ); @@ -14683,19 +12397,20 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public java.security.cert.X509Certificate[] getCertificateChain(java.lang.String string)` + /// from: `public fun getCertificateChain(alias: kotlin.String): kotlin.Array` /// The returned object must be released after use, by calling the [release] method. jni$_.JArray getCertificateChain( jni$_.JString string, ) { + final _$$selfRef = reference; final _$string = string.reference; - return _getCertificateChain(reference.pointer, - _id_getCertificateChain as jni$_.JMethodIDPtr, _$string.pointer) - .object>( - const jni$_.JArrayType($X509Certificate$Type())); + return _getCertificateChain(_$$selfRef.pointer, + _id_getCertificateChain.pointer, _$string.pointer) + .object>(); } - static final _id_getPrivateKey = _class.instanceMethodId( + static final _id_getPrivateKey = + FixedResponseX509ExtendedKeyManager._class.instanceMethodId( r'getPrivateKey', r'(Ljava/lang/String;)Ljava/security/PrivateKey;', ); @@ -14711,18 +12426,20 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public java.security.PrivateKey getPrivateKey(java.lang.String string)` + /// from: `public fun getPrivateKey(alias: kotlin.String): java.security.PrivateKey` /// The returned object must be released after use, by calling the [release] method. PrivateKey getPrivateKey( jni$_.JString string, ) { + final _$$selfRef = reference; final _$string = string.reference; - return _getPrivateKey(reference.pointer, - _id_getPrivateKey as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $PrivateKey$Type()); + return _getPrivateKey( + _$$selfRef.pointer, _id_getPrivateKey.pointer, _$string.pointer) + .object(); } - static final _id_chooseEngineClientAlias = _class.instanceMethodId( + static final _id_chooseEngineClientAlias = + FixedResponseX509ExtendedKeyManager._class.instanceMethodId( r'chooseEngineClientAlias', r'([Ljava/lang/String;[Ljava/security/Principal;Ljavax/net/ssl/SSLEngine;)Ljava/lang/String;', ); @@ -14746,26 +12463,28 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public java.lang.String chooseEngineClientAlias(java.lang.String[] strings, java.security.Principal[] principals, javax.net.ssl.SSLEngine sSLEngine)` + /// from: `public fun chooseEngineClientAlias(keyType: kotlin.Array?, issuers: kotlin.Array?, engine: javax.net.ssl.SSLEngine?): kotlin.String` /// The returned object must be released after use, by calling the [release] method. jni$_.JString chooseEngineClientAlias( jni$_.JArray? strings, - jni$_.JArray? principals, - jni$_.JObject? sSLEngine, + jni$_.JArray? principals, + SSLEngine? sSLEngine, ) { + final _$$selfRef = reference; final _$strings = strings?.reference ?? jni$_.jNullReference; final _$principals = principals?.reference ?? jni$_.jNullReference; final _$sSLEngine = sSLEngine?.reference ?? jni$_.jNullReference; return _chooseEngineClientAlias( - reference.pointer, - _id_chooseEngineClientAlias as jni$_.JMethodIDPtr, + _$$selfRef.pointer, + _id_chooseEngineClientAlias.pointer, _$strings.pointer, _$principals.pointer, _$sSLEngine.pointer) - .object(const jni$_.JStringType()); + .object(); } - static final _id_chooseEngineServerAlias = _class.instanceMethodId( + static final _id_chooseEngineServerAlias = + FixedResponseX509ExtendedKeyManager._class.instanceMethodId( r'chooseEngineServerAlias', r'(Ljava/lang/String;[Ljava/security/Principal;Ljavax/net/ssl/SSLEngine;)Ljava/lang/String;', ); @@ -14789,127 +12508,77 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public java.lang.String chooseEngineServerAlias(java.lang.String string, java.security.Principal[] principals, javax.net.ssl.SSLEngine sSLEngine)` + /// from: `public fun chooseEngineServerAlias(keyType: kotlin.String?, issuers: kotlin.Array?, engine: javax.net.ssl.SSLEngine?): kotlin.String` /// The returned object must be released after use, by calling the [release] method. jni$_.JString chooseEngineServerAlias( jni$_.JString? string, - jni$_.JArray? principals, - jni$_.JObject? sSLEngine, + jni$_.JArray? principals, + SSLEngine? sSLEngine, ) { + final _$$selfRef = reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$principals = principals?.reference ?? jni$_.jNullReference; final _$sSLEngine = sSLEngine?.reference ?? jni$_.jNullReference; return _chooseEngineServerAlias( - reference.pointer, - _id_chooseEngineServerAlias as jni$_.JMethodIDPtr, + _$$selfRef.pointer, + _id_chooseEngineServerAlias.pointer, _$string.pointer, _$principals.pointer, _$sSLEngine.pointer) - .object(const jni$_.JStringType()); + .object(); } } -final class $FixedResponseX509ExtendedKeyManager$NullableType - extends jni$_.JObjType { +final class $FixedResponseX509ExtendedKeyManager$Type$ + extends jni$_.JType { @jni$_.internal - const $FixedResponseX509ExtendedKeyManager$NullableType(); + const $FixedResponseX509ExtendedKeyManager$Type$(); @jni$_.internal @core$_.override String get signature => r'Lcom/example/ok_http/FixedResponseX509ExtendedKeyManager;'; - - @jni$_.internal - @core$_.override - FixedResponseX509ExtendedKeyManager? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : FixedResponseX509ExtendedKeyManager.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const $X509ExtendedKeyManager$Type(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 2; - - @core$_.override - int get hashCode => - ($FixedResponseX509ExtendedKeyManager$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($FixedResponseX509ExtendedKeyManager$NullableType) && - other is $FixedResponseX509ExtendedKeyManager$NullableType; - } } -final class $FixedResponseX509ExtendedKeyManager$Type - extends jni$_.JObjType { - @jni$_.internal - const $FixedResponseX509ExtendedKeyManager$Type(); - - @jni$_.internal - @core$_.override - String get signature => - r'Lcom/example/ok_http/FixedResponseX509ExtendedKeyManager;'; - - @jni$_.internal - @core$_.override - FixedResponseX509ExtendedKeyManager fromReference( - jni$_.JReference reference) => - FixedResponseX509ExtendedKeyManager.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const $X509ExtendedKeyManager$Type(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $FixedResponseX509ExtendedKeyManager$NullableType(); +/// from: `okio.ByteString$Companion` +extension type ByteString$Companion._(jni$_.JObject _$this) + implements jni$_.JObject { + static final _class = jni$_.JClass.forName(r'okio/ByteString$Companion'); - @jni$_.internal - @core$_.override - final superCount = 2; + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = + $ByteString$Companion$Type$(); + static final _id_new$ = _class.constructorId( + r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', + ); - @core$_.override - int get hashCode => ($FixedResponseX509ExtendedKeyManager$Type).hashCode; + static final _new$ = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($FixedResponseX509ExtendedKeyManager$Type) && - other is $FixedResponseX509ExtendedKeyManager$Type; + /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` + /// The returned object must be released after use, by calling the [release] method. + factory ByteString$Companion( + DefaultConstructorMarker? defaultConstructorMarker, + ) { + final _$$classRef = _class.reference; + final _$defaultConstructorMarker = + defaultConstructorMarker?.reference ?? jni$_.jNullReference; + return _new$(_$$classRef.pointer, _id_new$.pointer, + _$defaultConstructorMarker.pointer) + .object(); } } -/// from: `okio.ByteString$Companion` -class ByteString$Companion extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - ByteString$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = jni$_.JClass.forName(r'okio/ByteString$Companion'); - - /// The type which includes information such as the signature of this class. - static const nullableType = $ByteString$Companion$NullableType(); - static const type = $ByteString$Companion$Type(); - static final _id_of = _class.instanceMethodId( +extension ByteString$Companion$$Methods on ByteString$Companion { + static final _id_of = ByteString$Companion._class.instanceMethodId( r'of', r'([B)Lokio/ByteString;', ); @@ -14925,17 +12594,18 @@ class ByteString$Companion extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okio.ByteString of(byte[] bs)` + /// from: `public fun of(vararg data: kotlin.Byte): okio.ByteString` /// The returned object must be released after use, by calling the [release] method. ByteString of( jni$_.JByteArray bs, ) { + final _$$selfRef = reference; final _$bs = bs.reference; - return _of(reference.pointer, _id_of as jni$_.JMethodIDPtr, _$bs.pointer) - .object(const $ByteString$Type()); + return _of(_$$selfRef.pointer, _id_of.pointer, _$bs.pointer) + .object(); } - static final _id_of$1 = _class.instanceMethodId( + static final _id_of$1 = ByteString$Companion._class.instanceMethodId( r'of', r'([BII)Lokio/ByteString;', ); @@ -14952,23 +12622,27 @@ class ByteString$Companion extends jni$_.JObject { jni$_.Int32 )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `public final okio.ByteString of(byte[] bs, int i, int i1)` + /// from: `public fun toByteString(offset: kotlin.Int, byteCount: kotlin.Int): okio.ByteString` /// The returned object must be released after use, by calling the [release] method. ByteString of$1( jni$_.JByteArray bs, - int i, - int i1, + core$_.int i, + core$_.int i1, ) { + final _$$selfRef = reference; final _$bs = bs.reference; - return _of$1(reference.pointer, _id_of$1 as jni$_.JMethodIDPtr, - _$bs.pointer, i, i1) - .object(const $ByteString$Type()); + return _of$1(_$$selfRef.pointer, _id_of$1.pointer, _$bs.pointer, i, i1) + .object(); } - static final _id_of$2 = _class.instanceMethodId( + static final _id_of$2 = ByteString$Companion._class.instanceMethodId( r'of', r'(Ljava/nio/ByteBuffer;)Lokio/ByteString;', ); @@ -14984,18 +12658,18 @@ class ByteString$Companion extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okio.ByteString of(java.nio.ByteBuffer byteBuffer)` + /// from: `public fun toByteString(): okio.ByteString` /// The returned object must be released after use, by calling the [release] method. ByteString of$2( jni$_.JByteBuffer byteBuffer, ) { + final _$$selfRef = reference; final _$byteBuffer = byteBuffer.reference; - return _of$2(reference.pointer, _id_of$2 as jni$_.JMethodIDPtr, - _$byteBuffer.pointer) - .object(const $ByteString$Type()); + return _of$2(_$$selfRef.pointer, _id_of$2.pointer, _$byteBuffer.pointer) + .object(); } - static final _id_encodeUtf8 = _class.instanceMethodId( + static final _id_encodeUtf8 = ByteString$Companion._class.instanceMethodId( r'encodeUtf8', r'(Ljava/lang/String;)Lokio/ByteString;', ); @@ -15011,18 +12685,19 @@ class ByteString$Companion extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okio.ByteString encodeUtf8(java.lang.String string)` + /// from: `public fun encodeUtf8(): okio.ByteString` /// The returned object must be released after use, by calling the [release] method. ByteString encodeUtf8( jni$_.JString string, ) { + final _$$selfRef = reference; final _$string = string.reference; - return _encodeUtf8(reference.pointer, _id_encodeUtf8 as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const $ByteString$Type()); + return _encodeUtf8( + _$$selfRef.pointer, _id_encodeUtf8.pointer, _$string.pointer) + .object(); } - static final _id_encodeString = _class.instanceMethodId( + static final _id_encodeString = ByteString$Companion._class.instanceMethodId( r'encodeString', r'(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/ByteString;', ); @@ -15044,23 +12719,21 @@ class ByteString$Companion extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final okio.ByteString encodeString(java.lang.String string, java.nio.charset.Charset charset)` + /// from: `public fun encode(charset: java.nio.charset.Charset): okio.ByteString` /// The returned object must be released after use, by calling the [release] method. ByteString encodeString( jni$_.JString string, - jni$_.JObject charset, + Charset charset, ) { + final _$$selfRef = reference; final _$string = string.reference; final _$charset = charset.reference; - return _encodeString( - reference.pointer, - _id_encodeString as jni$_.JMethodIDPtr, - _$string.pointer, - _$charset.pointer) - .object(const $ByteString$Type()); + return _encodeString(_$$selfRef.pointer, _id_encodeString.pointer, + _$string.pointer, _$charset.pointer) + .object(); } - static final _id_decodeBase64 = _class.instanceMethodId( + static final _id_decodeBase64 = ByteString$Companion._class.instanceMethodId( r'decodeBase64', r'(Ljava/lang/String;)Lokio/ByteString;', ); @@ -15076,18 +12749,19 @@ class ByteString$Companion extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okio.ByteString decodeBase64(java.lang.String string)` + /// from: `public fun decodeBase64(): okio.ByteString?` /// The returned object must be released after use, by calling the [release] method. ByteString? decodeBase64( jni$_.JString string, ) { + final _$$selfRef = reference; final _$string = string.reference; - return _decodeBase64(reference.pointer, - _id_decodeBase64 as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $ByteString$NullableType()); + return _decodeBase64( + _$$selfRef.pointer, _id_decodeBase64.pointer, _$string.pointer) + .object(); } - static final _id_decodeHex = _class.instanceMethodId( + static final _id_decodeHex = ByteString$Companion._class.instanceMethodId( r'decodeHex', r'(Ljava/lang/String;)Lokio/ByteString;', ); @@ -15103,18 +12777,19 @@ class ByteString$Companion extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final okio.ByteString decodeHex(java.lang.String string)` + /// from: `public fun decodeHex(): okio.ByteString` /// The returned object must be released after use, by calling the [release] method. ByteString decodeHex( jni$_.JString string, ) { + final _$$selfRef = reference; final _$string = string.reference; - return _decodeHex(reference.pointer, _id_decodeHex as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const $ByteString$Type()); + return _decodeHex( + _$$selfRef.pointer, _id_decodeHex.pointer, _$string.pointer) + .object(); } - static final _id_read = _class.instanceMethodId( + static final _id_read = ByteString$Companion._class.instanceMethodId( r'read', r'(Ljava/io/InputStream;I)Lokio/ByteString;', ); @@ -15129,142 +12804,38 @@ class ByteString$Companion extends jni$_.JObject { 'globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); - /// from: `public final okio.ByteString read(java.io.InputStream inputStream, int i)` + /// from: `public fun readByteString(byteCount: kotlin.Int): okio.ByteString` /// The returned object must be released after use, by calling the [release] method. ByteString read( - jni$_.JObject inputStream, - int i, + InputStream inputStream, + core$_.int i, ) { + final _$$selfRef = reference; final _$inputStream = inputStream.reference; - return _read(reference.pointer, _id_read as jni$_.JMethodIDPtr, - _$inputStream.pointer, i) - .object(const $ByteString$Type()); - } - - static final _id_new$ = _class.constructorId( - r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', - ); - - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` - /// The returned object must be released after use, by calling the [release] method. - factory ByteString$Companion( - jni$_.JObject? defaultConstructorMarker, - ) { - final _$defaultConstructorMarker = - defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return ByteString$Companion.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$defaultConstructorMarker.pointer) - .reference); - } -} - -final class $ByteString$Companion$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $ByteString$Companion$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokio/ByteString$Companion;'; - - @jni$_.internal - @core$_.override - ByteString$Companion? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : ByteString$Companion.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ByteString$Companion$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ByteString$Companion$NullableType) && - other is $ByteString$Companion$NullableType; + return _read(_$$selfRef.pointer, _id_read.pointer, _$inputStream.pointer, i) + .object(); } } -final class $ByteString$Companion$Type - extends jni$_.JObjType { +final class $ByteString$Companion$Type$ + extends jni$_.JType { @jni$_.internal - const $ByteString$Companion$Type(); + const $ByteString$Companion$Type$(); @jni$_.internal @core$_.override String get signature => r'Lokio/ByteString$Companion;'; - - @jni$_.internal - @core$_.override - ByteString$Companion fromReference(jni$_.JReference reference) => - ByteString$Companion.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $ByteString$Companion$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ByteString$Companion$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ByteString$Companion$Type) && - other is $ByteString$Companion$Type; - } } /// from: `okio.ByteString` -class ByteString extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - ByteString.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type ByteString._(jni$_.JObject _$this) + implements jni$_.JObject, Serializable, Comparable { static final _class = jni$_.JClass.forName(r'okio/ByteString'); /// The type which includes information such as the signature of this class. - static const nullableType = $ByteString$NullableType(); - static const type = $ByteString$Type(); + static const jni$_.JType type = $ByteString$Type$(); static final _id_Companion = _class.staticFieldId( r'Companion', r'Lokio/ByteString$Companion;', @@ -15273,7 +12844,8 @@ class ByteString extends jni$_.JObject { /// from: `static public final okio.ByteString$Companion Companion` /// The returned object must be released after use, by calling the [release] method. static ByteString$Companion get Companion => - _id_Companion.get(_class, const $ByteString$Companion$Type()); + _id_Companion.get(_class, ByteString$Companion.type) + as ByteString$Companion; static final _id_EMPTY = _class.staticFieldId( r'EMPTY', @@ -15283,7 +12855,7 @@ class ByteString extends jni$_.JObject { /// from: `static public final okio.ByteString EMPTY` /// The returned object must be released after use, by calling the [release] method. static ByteString get EMPTY => - _id_EMPTY.get(_class, const $ByteString$Type()); + _id_EMPTY.get(_class, ByteString.type) as ByteString; static final _id_new$ = _class.constructorId( r'([B)V', @@ -15305,37 +12877,280 @@ class ByteString extends jni$_.JObject { factory ByteString( jni$_.JByteArray bs, ) { + final _$$classRef = _class.reference; final _$bs = bs.reference; - return ByteString.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$bs.pointer) - .reference); + return _new$(_$$classRef.pointer, _id_new$.pointer, _$bs.pointer) + .object(); } - static final _id_utf8 = _class.instanceMethodId( - r'utf8', - r'()Ljava/lang/String;', + static final _id_of = _class.staticMethodId( + r'of', + r'([B)Lokio/ByteString;', ); - static final _utf8 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< + static final _of = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `static public final okio.ByteString of(byte[] bs)` + /// The returned object must be released after use, by calling the [release] method. + static ByteString of( + jni$_.JByteArray bs, + ) { + final _$$classRef = _class.reference; + final _$bs = bs.reference; + return _of(_$$classRef.pointer, _id_of.pointer, _$bs.pointer) + .object(); + } + + static final _id_of$1 = _class.staticMethodId( + r'of', + r'([BII)Lokio/ByteString;', + ); + + static final _of$1 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32 + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int)>(); + + /// from: `static public final okio.ByteString of(byte[] bs, int i, int i1)` + /// The returned object must be released after use, by calling the [release] method. + static ByteString of$1( + jni$_.JByteArray bs, + core$_.int i, + core$_.int i1, + ) { + final _$$classRef = _class.reference; + final _$bs = bs.reference; + return _of$1(_$$classRef.pointer, _id_of$1.pointer, _$bs.pointer, i, i1) + .object(); + } + + static final _id_of$2 = _class.staticMethodId( + r'of', + r'(Ljava/nio/ByteBuffer;)Lokio/ByteString;', + ); + + static final _of$2 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `static public final okio.ByteString of(java.nio.ByteBuffer byteBuffer)` + /// The returned object must be released after use, by calling the [release] method. + static ByteString of$2( + jni$_.JByteBuffer byteBuffer, + ) { + final _$$classRef = _class.reference; + final _$byteBuffer = byteBuffer.reference; + return _of$2(_$$classRef.pointer, _id_of$2.pointer, _$byteBuffer.pointer) + .object(); + } + + static final _id_encodeUtf8 = _class.staticMethodId( + r'encodeUtf8', + r'(Ljava/lang/String;)Lokio/ByteString;', + ); + + static final _encodeUtf8 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `static public final okio.ByteString encodeUtf8(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + static ByteString encodeUtf8( + jni$_.JString string, + ) { + final _$$classRef = _class.reference; + final _$string = string.reference; + return _encodeUtf8( + _$$classRef.pointer, _id_encodeUtf8.pointer, _$string.pointer) + .object(); + } + + static final _id_encodeString = _class.staticMethodId( + r'encodeString', + r'(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/ByteString;', + ); + + static final _encodeString = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); + + /// from: `static public final okio.ByteString encodeString(java.lang.String string, java.nio.charset.Charset charset)` + /// The returned object must be released after use, by calling the [release] method. + static ByteString encodeString( + jni$_.JString string, + Charset charset, + ) { + final _$$classRef = _class.reference; + final _$string = string.reference; + final _$charset = charset.reference; + return _encodeString(_$$classRef.pointer, _id_encodeString.pointer, + _$string.pointer, _$charset.pointer) + .object(); + } + + static final _id_decodeBase64 = _class.staticMethodId( + r'decodeBase64', + r'(Ljava/lang/String;)Lokio/ByteString;', + ); + + static final _decodeBase64 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `static public final okio.ByteString decodeBase64(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + static ByteString? decodeBase64( + jni$_.JString string, + ) { + final _$$classRef = _class.reference; + final _$string = string.reference; + return _decodeBase64( + _$$classRef.pointer, _id_decodeBase64.pointer, _$string.pointer) + .object(); + } + + static final _id_decodeHex = _class.staticMethodId( + r'decodeHex', + r'(Ljava/lang/String;)Lokio/ByteString;', + ); + + static final _decodeHex = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `static public final okio.ByteString decodeHex(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + static ByteString decodeHex( + jni$_.JString string, + ) { + final _$$classRef = _class.reference; + final _$string = string.reference; + return _decodeHex( + _$$classRef.pointer, _id_decodeHex.pointer, _$string.pointer) + .object(); + } + + static final _id_read = _class.staticMethodId( + r'read', + r'(Ljava/io/InputStream;I)Lokio/ByteString;', + ); + + static final _read = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_ + .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); + + /// from: `static public final okio.ByteString read(java.io.InputStream inputStream, int i)` + /// The returned object must be released after use, by calling the [release] method. + static ByteString read( + InputStream inputStream, + core$_.int i, + ) { + final _$$classRef = _class.reference; + final _$inputStream = inputStream.reference; + return _read( + _$$classRef.pointer, _id_read.pointer, _$inputStream.pointer, i) + .object(); + } +} + +extension ByteString$$Methods on ByteString { + static final _id_utf8 = ByteString._class.instanceMethodId( + r'utf8', + r'()Ljava/lang/String;', + ); + + static final _utf8 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, )>(); - /// from: `public java.lang.String utf8()` + /// from: `public fun utf8(): kotlin.String` /// The returned object must be released after use, by calling the [release] method. jni$_.JString utf8() { - return _utf8(reference.pointer, _id_utf8 as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + final _$$selfRef = reference; + return _utf8(_$$selfRef.pointer, _id_utf8.pointer).object(); } - static final _id_string = _class.instanceMethodId( + static final _id_string = ByteString._class.instanceMethodId( r'string', r'(Ljava/nio/charset/Charset;)Ljava/lang/String;', ); @@ -15351,18 +13166,18 @@ class ByteString extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public java.lang.String string(java.nio.charset.Charset charset)` + /// from: `public fun string(charset: java.nio.charset.Charset): kotlin.String` /// The returned object must be released after use, by calling the [release] method. jni$_.JString string( - jni$_.JObject charset, + Charset charset, ) { + final _$$selfRef = reference; final _$charset = charset.reference; - return _string(reference.pointer, _id_string as jni$_.JMethodIDPtr, - _$charset.pointer) - .object(const jni$_.JStringType()); + return _string(_$$selfRef.pointer, _id_string.pointer, _$charset.pointer) + .object(); } - static final _id_base64 = _class.instanceMethodId( + static final _id_base64 = ByteString._class.instanceMethodId( r'base64', r'()Ljava/lang/String;', ); @@ -15379,14 +13194,15 @@ class ByteString extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public java.lang.String base64()` + /// from: `public fun base64(): kotlin.String` /// The returned object must be released after use, by calling the [release] method. jni$_.JString base64() { - return _base64(reference.pointer, _id_base64 as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + final _$$selfRef = reference; + return _base64(_$$selfRef.pointer, _id_base64.pointer) + .object(); } - static final _id_md5 = _class.instanceMethodId( + static final _id_md5 = ByteString._class.instanceMethodId( r'md5', r'()Lokio/ByteString;', ); @@ -15403,14 +13219,14 @@ class ByteString extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final okio.ByteString md5()` + /// from: `public fun md5(): okio.ByteString` /// The returned object must be released after use, by calling the [release] method. ByteString md5() { - return _md5(reference.pointer, _id_md5 as jni$_.JMethodIDPtr) - .object(const $ByteString$Type()); + final _$$selfRef = reference; + return _md5(_$$selfRef.pointer, _id_md5.pointer).object(); } - static final _id_sha1 = _class.instanceMethodId( + static final _id_sha1 = ByteString._class.instanceMethodId( r'sha1', r'()Lokio/ByteString;', ); @@ -15427,14 +13243,14 @@ class ByteString extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final okio.ByteString sha1()` + /// from: `public fun sha1(): okio.ByteString` /// The returned object must be released after use, by calling the [release] method. ByteString sha1() { - return _sha1(reference.pointer, _id_sha1 as jni$_.JMethodIDPtr) - .object(const $ByteString$Type()); + final _$$selfRef = reference; + return _sha1(_$$selfRef.pointer, _id_sha1.pointer).object(); } - static final _id_sha256 = _class.instanceMethodId( + static final _id_sha256 = ByteString._class.instanceMethodId( r'sha256', r'()Lokio/ByteString;', ); @@ -15451,14 +13267,14 @@ class ByteString extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final okio.ByteString sha256()` + /// from: `public fun sha256(): okio.ByteString` /// The returned object must be released after use, by calling the [release] method. ByteString sha256() { - return _sha256(reference.pointer, _id_sha256 as jni$_.JMethodIDPtr) - .object(const $ByteString$Type()); + final _$$selfRef = reference; + return _sha256(_$$selfRef.pointer, _id_sha256.pointer).object(); } - static final _id_sha512 = _class.instanceMethodId( + static final _id_sha512 = ByteString._class.instanceMethodId( r'sha512', r'()Lokio/ByteString;', ); @@ -15475,14 +13291,14 @@ class ByteString extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final okio.ByteString sha512()` + /// from: `public fun sha512(): okio.ByteString` /// The returned object must be released after use, by calling the [release] method. ByteString sha512() { - return _sha512(reference.pointer, _id_sha512 as jni$_.JMethodIDPtr) - .object(const $ByteString$Type()); + final _$$selfRef = reference; + return _sha512(_$$selfRef.pointer, _id_sha512.pointer).object(); } - static final _id_hmacSha1 = _class.instanceMethodId( + static final _id_hmacSha1 = ByteString._class.instanceMethodId( r'hmacSha1', r'(Lokio/ByteString;)Lokio/ByteString;', ); @@ -15498,18 +13314,19 @@ class ByteString extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public okio.ByteString hmacSha1(okio.ByteString byteString)` + /// from: `public fun hmacSha1(key: okio.ByteString): okio.ByteString` /// The returned object must be released after use, by calling the [release] method. ByteString hmacSha1( ByteString byteString, ) { + final _$$selfRef = reference; final _$byteString = byteString.reference; - return _hmacSha1(reference.pointer, _id_hmacSha1 as jni$_.JMethodIDPtr, - _$byteString.pointer) - .object(const $ByteString$Type()); + return _hmacSha1( + _$$selfRef.pointer, _id_hmacSha1.pointer, _$byteString.pointer) + .object(); } - static final _id_hmacSha256 = _class.instanceMethodId( + static final _id_hmacSha256 = ByteString._class.instanceMethodId( r'hmacSha256', r'(Lokio/ByteString;)Lokio/ByteString;', ); @@ -15525,18 +13342,19 @@ class ByteString extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public okio.ByteString hmacSha256(okio.ByteString byteString)` + /// from: `public fun hmacSha256(key: okio.ByteString): okio.ByteString` /// The returned object must be released after use, by calling the [release] method. ByteString hmacSha256( ByteString byteString, ) { + final _$$selfRef = reference; final _$byteString = byteString.reference; - return _hmacSha256(reference.pointer, _id_hmacSha256 as jni$_.JMethodIDPtr, - _$byteString.pointer) - .object(const $ByteString$Type()); + return _hmacSha256( + _$$selfRef.pointer, _id_hmacSha256.pointer, _$byteString.pointer) + .object(); } - static final _id_hmacSha512 = _class.instanceMethodId( + static final _id_hmacSha512 = ByteString._class.instanceMethodId( r'hmacSha512', r'(Lokio/ByteString;)Lokio/ByteString;', ); @@ -15552,18 +13370,19 @@ class ByteString extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public okio.ByteString hmacSha512(okio.ByteString byteString)` + /// from: `public fun hmacSha512(key: okio.ByteString): okio.ByteString` /// The returned object must be released after use, by calling the [release] method. ByteString hmacSha512( ByteString byteString, ) { + final _$$selfRef = reference; final _$byteString = byteString.reference; - return _hmacSha512(reference.pointer, _id_hmacSha512 as jni$_.JMethodIDPtr, - _$byteString.pointer) - .object(const $ByteString$Type()); + return _hmacSha512( + _$$selfRef.pointer, _id_hmacSha512.pointer, _$byteString.pointer) + .object(); } - static final _id_base64Url = _class.instanceMethodId( + static final _id_base64Url = ByteString._class.instanceMethodId( r'base64Url', r'()Ljava/lang/String;', ); @@ -15580,14 +13399,15 @@ class ByteString extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public java.lang.String base64Url()` + /// from: `public fun base64Url(): kotlin.String` /// The returned object must be released after use, by calling the [release] method. jni$_.JString base64Url() { - return _base64Url(reference.pointer, _id_base64Url as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + final _$$selfRef = reference; + return _base64Url(_$$selfRef.pointer, _id_base64Url.pointer) + .object(); } - static final _id_hex = _class.instanceMethodId( + static final _id_hex = ByteString._class.instanceMethodId( r'hex', r'()Ljava/lang/String;', ); @@ -15604,14 +13424,14 @@ class ByteString extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public java.lang.String hex()` + /// from: `public fun hex(): kotlin.String` /// The returned object must be released after use, by calling the [release] method. jni$_.JString hex() { - return _hex(reference.pointer, _id_hex as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + final _$$selfRef = reference; + return _hex(_$$selfRef.pointer, _id_hex.pointer).object(); } - static final _id_toAsciiLowercase = _class.instanceMethodId( + static final _id_toAsciiLowercase = ByteString._class.instanceMethodId( r'toAsciiLowercase', r'()Lokio/ByteString;', ); @@ -15628,15 +13448,15 @@ class ByteString extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public okio.ByteString toAsciiLowercase()` + /// from: `public fun toAsciiLowercase(): okio.ByteString` /// The returned object must be released after use, by calling the [release] method. ByteString toAsciiLowercase() { - return _toAsciiLowercase( - reference.pointer, _id_toAsciiLowercase as jni$_.JMethodIDPtr) - .object(const $ByteString$Type()); + final _$$selfRef = reference; + return _toAsciiLowercase(_$$selfRef.pointer, _id_toAsciiLowercase.pointer) + .object(); } - static final _id_toAsciiUppercase = _class.instanceMethodId( + static final _id_toAsciiUppercase = ByteString._class.instanceMethodId( r'toAsciiUppercase', r'()Lokio/ByteString;', ); @@ -15653,15 +13473,15 @@ class ByteString extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public okio.ByteString toAsciiUppercase()` + /// from: `public fun toAsciiUppercase(): okio.ByteString` /// The returned object must be released after use, by calling the [release] method. ByteString toAsciiUppercase() { - return _toAsciiUppercase( - reference.pointer, _id_toAsciiUppercase as jni$_.JMethodIDPtr) - .object(const $ByteString$Type()); + final _$$selfRef = reference; + return _toAsciiUppercase(_$$selfRef.pointer, _id_toAsciiUppercase.pointer) + .object(); } - static final _id_substring = _class.instanceMethodId( + static final _id_substring = ByteString._class.instanceMethodId( r'substring', r'(II)Lokio/ByteString;', ); @@ -15674,21 +13494,21 @@ class ByteString extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32, jni$_.Int32)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int, int)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, core$_.int, core$_.int)>(); - /// from: `public okio.ByteString substring(int i, int i1)` + /// from: `public fun substring(beginIndex: kotlin.Int, endIndex: kotlin.Int): okio.ByteString` /// The returned object must be released after use, by calling the [release] method. ByteString substring( - int i, - int i1, + core$_.int i, + core$_.int i1, ) { - return _substring( - reference.pointer, _id_substring as jni$_.JMethodIDPtr, i, i1) - .object(const $ByteString$Type()); + final _$$selfRef = reference; + return _substring(_$$selfRef.pointer, _id_substring.pointer, i, i1) + .object(); } - static final _id_getByte = _class.instanceMethodId( + static final _id_getByte = ByteString._class.instanceMethodId( r'getByte', r'(I)B', ); @@ -15701,17 +13521,17 @@ class ByteString extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallByteMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); - /// from: `public final byte getByte(int i)` - int getByte( - int i, + /// from: `public operator fun get(index: kotlin.Int): kotlin.Byte` + core$_.int getByte( + core$_.int i, ) { - return _getByte(reference.pointer, _id_getByte as jni$_.JMethodIDPtr, i) - .byte; + final _$$selfRef = reference; + return _getByte(_$$selfRef.pointer, _id_getByte.pointer, i).byte; } - static final _id_size = _class.instanceMethodId( + static final _id_size = ByteString._class.instanceMethodId( r'size', r'()I', ); @@ -15729,11 +13549,12 @@ class ByteString extends jni$_.JObject { )>(); /// from: `public final int size()` - int size() { - return _size(reference.pointer, _id_size as jni$_.JMethodIDPtr).integer; + core$_.int size() { + final _$$selfRef = reference; + return _size(_$$selfRef.pointer, _id_size.pointer).integer; } - static final _id_toByteArray = _class.instanceMethodId( + static final _id_toByteArray = ByteString._class.instanceMethodId( r'toByteArray', r'()[B', ); @@ -15750,15 +13571,15 @@ class ByteString extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public byte[] toByteArray()` + /// from: `public fun toByteArray(): kotlin.ByteArray` /// The returned object must be released after use, by calling the [release] method. jni$_.JByteArray toByteArray() { - return _toByteArray( - reference.pointer, _id_toByteArray as jni$_.JMethodIDPtr) - .object(const jni$_.JByteArrayType()); + final _$$selfRef = reference; + return _toByteArray(_$$selfRef.pointer, _id_toByteArray.pointer) + .object(); } - static final _id_asByteBuffer = _class.instanceMethodId( + static final _id_asByteBuffer = ByteString._class.instanceMethodId( r'asByteBuffer', r'()Ljava/nio/ByteBuffer;', ); @@ -15775,15 +13596,15 @@ class ByteString extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public java.nio.ByteBuffer asByteBuffer()` + /// from: `public fun asByteBuffer(): java.nio.ByteBuffer` /// The returned object must be released after use, by calling the [release] method. jni$_.JByteBuffer asByteBuffer() { - return _asByteBuffer( - reference.pointer, _id_asByteBuffer as jni$_.JMethodIDPtr) - .object(const jni$_.JByteBufferType()); + final _$$selfRef = reference; + return _asByteBuffer(_$$selfRef.pointer, _id_asByteBuffer.pointer) + .object(); } - static final _id_write = _class.instanceMethodId( + static final _id_write = ByteString._class.instanceMethodId( r'write', r'(Ljava/io/OutputStream;)V', ); @@ -15799,17 +13620,17 @@ class ByteString extends jni$_.JObject { jni$_.JThrowablePtr Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public void write(java.io.OutputStream outputStream)` + /// from: `public fun write(out: java.io.OutputStream): kotlin.Unit` void write( - jni$_.JObject outputStream, + OutputStream outputStream, ) { + final _$$selfRef = reference; final _$outputStream = outputStream.reference; - _write(reference.pointer, _id_write as jni$_.JMethodIDPtr, - _$outputStream.pointer) + _write(_$$selfRef.pointer, _id_write.pointer, _$outputStream.pointer) .check(); } - static final _id_rangeEquals = _class.instanceMethodId( + static final _id_rangeEquals = ByteString._class.instanceMethodId( r'rangeEquals', r'(ILokio/ByteString;II)Z', ); @@ -15827,28 +13648,29 @@ class ByteString extends jni$_.JObject { jni$_.Int32 )>)>>('globalEnv_CallBooleanMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `public boolean rangeEquals(int i, okio.ByteString byteString, int i1, int i2)` - bool rangeEquals( - int i, + /// from: `public fun rangeEquals(offset: kotlin.Int, other: okio.ByteString, otherOffset: kotlin.Int, byteCount: kotlin.Int): kotlin.Boolean` + core$_.bool rangeEquals( + core$_.int i, ByteString byteString, - int i1, - int i2, + core$_.int i1, + core$_.int i2, ) { + final _$$selfRef = reference; final _$byteString = byteString.reference; - return _rangeEquals( - reference.pointer, - _id_rangeEquals as jni$_.JMethodIDPtr, - i, - _$byteString.pointer, - i1, - i2) + return _rangeEquals(_$$selfRef.pointer, _id_rangeEquals.pointer, i, + _$byteString.pointer, i1, i2) .boolean; } - static final _id_rangeEquals$1 = _class.instanceMethodId( + static final _id_rangeEquals$1 = ByteString._class.instanceMethodId( r'rangeEquals', r'(I[BII)Z', ); @@ -15866,23 +13688,29 @@ class ByteString extends jni$_.JObject { jni$_.Int32 )>)>>('globalEnv_CallBooleanMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `public boolean rangeEquals(int i, byte[] bs, int i1, int i2)` - bool rangeEquals$1( - int i, + /// from: `public fun rangeEquals(offset: kotlin.Int, other: kotlin.ByteArray, otherOffset: kotlin.Int, byteCount: kotlin.Int): kotlin.Boolean` + core$_.bool rangeEquals$1( + core$_.int i, jni$_.JByteArray bs, - int i1, - int i2, + core$_.int i1, + core$_.int i2, ) { + final _$$selfRef = reference; final _$bs = bs.reference; - return _rangeEquals$1(reference.pointer, - _id_rangeEquals$1 as jni$_.JMethodIDPtr, i, _$bs.pointer, i1, i2) + return _rangeEquals$1(_$$selfRef.pointer, _id_rangeEquals$1.pointer, i, + _$bs.pointer, i1, i2) .boolean; } - static final _id_copyInto = _class.instanceMethodId( + static final _id_copyInto = ByteString._class.instanceMethodId( r'copyInto', r'(I[BII)V', ); @@ -15900,23 +13728,28 @@ class ByteString extends jni$_.JObject { jni$_.Int32 )>)>>('globalEnv_CallVoidMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer, int, int)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `public void copyInto(int i, byte[] bs, int i1, int i2)` + /// from: `public fun copyInto(offset: kotlin.Int, target: kotlin.ByteArray, targetOffset: kotlin.Int, byteCount: kotlin.Int): kotlin.Unit` void copyInto( - int i, + core$_.int i, jni$_.JByteArray bs, - int i1, - int i2, + core$_.int i1, + core$_.int i2, ) { + final _$$selfRef = reference; final _$bs = bs.reference; - _copyInto(reference.pointer, _id_copyInto as jni$_.JMethodIDPtr, i, - _$bs.pointer, i1, i2) + _copyInto(_$$selfRef.pointer, _id_copyInto.pointer, i, _$bs.pointer, i1, i2) .check(); } - static final _id_startsWith = _class.instanceMethodId( + static final _id_startsWith = ByteString._class.instanceMethodId( r'startsWith', r'(Lokio/ByteString;)Z', ); @@ -15932,17 +13765,18 @@ class ByteString extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final boolean startsWith(okio.ByteString byteString)` - bool startsWith( + /// from: `public fun startsWith(prefix: okio.ByteString): kotlin.Boolean` + core$_.bool startsWith( ByteString byteString, ) { + final _$$selfRef = reference; final _$byteString = byteString.reference; - return _startsWith(reference.pointer, _id_startsWith as jni$_.JMethodIDPtr, - _$byteString.pointer) + return _startsWith( + _$$selfRef.pointer, _id_startsWith.pointer, _$byteString.pointer) .boolean; } - static final _id_startsWith$1 = _class.instanceMethodId( + static final _id_startsWith$1 = ByteString._class.instanceMethodId( r'startsWith', r'([B)Z', ); @@ -15958,17 +13792,18 @@ class ByteString extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final boolean startsWith(byte[] bs)` - bool startsWith$1( + /// from: `public fun startsWith(prefix: kotlin.ByteArray): kotlin.Boolean` + core$_.bool startsWith$1( jni$_.JByteArray bs, ) { + final _$$selfRef = reference; final _$bs = bs.reference; - return _startsWith$1(reference.pointer, - _id_startsWith$1 as jni$_.JMethodIDPtr, _$bs.pointer) + return _startsWith$1( + _$$selfRef.pointer, _id_startsWith$1.pointer, _$bs.pointer) .boolean; } - static final _id_endsWith = _class.instanceMethodId( + static final _id_endsWith = ByteString._class.instanceMethodId( r'endsWith', r'(Lokio/ByteString;)Z', ); @@ -15984,17 +13819,18 @@ class ByteString extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final boolean endsWith(okio.ByteString byteString)` - bool endsWith( + /// from: `public fun endsWith(suffix: okio.ByteString): kotlin.Boolean` + core$_.bool endsWith( ByteString byteString, ) { + final _$$selfRef = reference; final _$byteString = byteString.reference; - return _endsWith(reference.pointer, _id_endsWith as jni$_.JMethodIDPtr, - _$byteString.pointer) + return _endsWith( + _$$selfRef.pointer, _id_endsWith.pointer, _$byteString.pointer) .boolean; } - static final _id_endsWith$1 = _class.instanceMethodId( + static final _id_endsWith$1 = ByteString._class.instanceMethodId( r'endsWith', r'([B)Z', ); @@ -16010,17 +13846,17 @@ class ByteString extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final boolean endsWith(byte[] bs)` - bool endsWith$1( + /// from: `public fun endsWith(suffix: kotlin.ByteArray): kotlin.Boolean` + core$_.bool endsWith$1( jni$_.JByteArray bs, ) { + final _$$selfRef = reference; final _$bs = bs.reference; - return _endsWith$1(reference.pointer, _id_endsWith$1 as jni$_.JMethodIDPtr, - _$bs.pointer) + return _endsWith$1(_$$selfRef.pointer, _id_endsWith$1.pointer, _$bs.pointer) .boolean; } - static final _id_indexOf = _class.instanceMethodId( + static final _id_indexOf = ByteString._class.instanceMethodId( r'indexOf', r'(Lokio/ByteString;I)I', ); @@ -16035,20 +13871,21 @@ class ByteString extends jni$_.JObject { 'globalEnv_CallIntMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); - /// from: `public final int indexOf(okio.ByteString byteString, int i)` - int indexOf( + /// from: `public fun indexOf(other: okio.ByteString, fromIndex: kotlin.Int): kotlin.Int` + core$_.int indexOf( ByteString byteString, - int i, + core$_.int i, ) { + final _$$selfRef = reference; final _$byteString = byteString.reference; - return _indexOf(reference.pointer, _id_indexOf as jni$_.JMethodIDPtr, - _$byteString.pointer, i) + return _indexOf( + _$$selfRef.pointer, _id_indexOf.pointer, _$byteString.pointer, i) .integer; } - static final _id_indexOf$1 = _class.instanceMethodId( + static final _id_indexOf$1 = ByteString._class.instanceMethodId( r'indexOf', r'([BI)I', ); @@ -16063,20 +13900,21 @@ class ByteString extends jni$_.JObject { 'globalEnv_CallIntMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); - /// from: `public int indexOf(byte[] bs, int i)` - int indexOf$1( + /// from: `public fun indexOf(other: kotlin.ByteArray, fromIndex: kotlin.Int): kotlin.Int` + core$_.int indexOf$1( jni$_.JByteArray bs, - int i, + core$_.int i, ) { + final _$$selfRef = reference; final _$bs = bs.reference; - return _indexOf$1(reference.pointer, _id_indexOf$1 as jni$_.JMethodIDPtr, - _$bs.pointer, i) + return _indexOf$1( + _$$selfRef.pointer, _id_indexOf$1.pointer, _$bs.pointer, i) .integer; } - static final _id_lastIndexOf = _class.instanceMethodId( + static final _id_lastIndexOf = ByteString._class.instanceMethodId( r'lastIndexOf', r'(Lokio/ByteString;I)I', ); @@ -16091,20 +13929,21 @@ class ByteString extends jni$_.JObject { 'globalEnv_CallIntMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); - /// from: `public final int lastIndexOf(okio.ByteString byteString, int i)` - int lastIndexOf( + /// from: `public fun lastIndexOf(other: okio.ByteString, fromIndex: kotlin.Int): kotlin.Int` + core$_.int lastIndexOf( ByteString byteString, - int i, + core$_.int i, ) { + final _$$selfRef = reference; final _$byteString = byteString.reference; - return _lastIndexOf(reference.pointer, - _id_lastIndexOf as jni$_.JMethodIDPtr, _$byteString.pointer, i) + return _lastIndexOf(_$$selfRef.pointer, _id_lastIndexOf.pointer, + _$byteString.pointer, i) .integer; } - static final _id_lastIndexOf$1 = _class.instanceMethodId( + static final _id_lastIndexOf$1 = ByteString._class.instanceMethodId( r'lastIndexOf', r'([BI)I', ); @@ -16119,20 +13958,21 @@ class ByteString extends jni$_.JObject { 'globalEnv_CallIntMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); - /// from: `public int lastIndexOf(byte[] bs, int i)` - int lastIndexOf$1( + /// from: `public fun lastIndexOf(other: kotlin.ByteArray, fromIndex: kotlin.Int): kotlin.Int` + core$_.int lastIndexOf$1( jni$_.JByteArray bs, - int i, + core$_.int i, ) { + final _$$selfRef = reference; final _$bs = bs.reference; - return _lastIndexOf$1(reference.pointer, - _id_lastIndexOf$1 as jni$_.JMethodIDPtr, _$bs.pointer, i) + return _lastIndexOf$1( + _$$selfRef.pointer, _id_lastIndexOf$1.pointer, _$bs.pointer, i) .integer; } - static final _id_equals = _class.instanceMethodId( + static final _id_equals = ByteString._class.instanceMethodId( r'equals', r'(Ljava/lang/Object;)Z', ); @@ -16148,17 +13988,17 @@ class ByteString extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public boolean equals(java.lang.Object object)` - bool equals( + /// from: `public operator fun equals(other: kotlin.Any?): kotlin.Boolean` + core$_.bool equals( jni$_.JObject? object, ) { + final _$$selfRef = reference; final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) + return _equals(_$$selfRef.pointer, _id_equals.pointer, _$object.pointer) .boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( + static final _id_hashCode$1 = ByteString._class.instanceMethodId( r'hashCode', r'()I', ); @@ -16175,13 +14015,13 @@ class ByteString extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public int hashCode()` - int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; + /// from: `public fun hashCode(): kotlin.Int` + core$_.int hashCode$1() { + final _$$selfRef = reference; + return _hashCode$1(_$$selfRef.pointer, _id_hashCode$1.pointer).integer; } - static final _id_compareTo = _class.instanceMethodId( + static final _id_compareTo = ByteString._class.instanceMethodId( r'compareTo', r'(Lokio/ByteString;)I', ); @@ -16197,17 +14037,18 @@ class ByteString extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public int compareTo(okio.ByteString byteString)` - int compareTo( + /// from: `public operator fun compareTo(other: okio.ByteString): kotlin.Int` + core$_.int compareTo( ByteString byteString, ) { + final _$$selfRef = reference; final _$byteString = byteString.reference; - return _compareTo(reference.pointer, _id_compareTo as jni$_.JMethodIDPtr, - _$byteString.pointer) + return _compareTo( + _$$selfRef.pointer, _id_compareTo.pointer, _$byteString.pointer) .integer; } - static final _id_toString$1 = _class.instanceMethodId( + static final _id_toString$1 = ByteString._class.instanceMethodId( r'toString', r'()Ljava/lang/String;', ); @@ -16224,14 +14065,15 @@ class ByteString extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public java.lang.String toString()` + /// from: `public fun toString(): kotlin.String` /// The returned object must be released after use, by calling the [release] method. jni$_.JString toString$1() { - return _toString$1(reference.pointer, _id_toString$1 as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + final _$$selfRef = reference; + return _toString$1(_$$selfRef.pointer, _id_toString$1.pointer) + .object(); } - static final _id_substring$1 = _class.instanceMethodId( + static final _id_substring$1 = ByteString._class.instanceMethodId( r'substring', r'(I)Lokio/ByteString;', ); @@ -16244,19 +14086,19 @@ class ByteString extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public final okio.ByteString substring(int i)` /// The returned object must be released after use, by calling the [release] method. ByteString substring$1( - int i, + core$_.int i, ) { - return _substring$1( - reference.pointer, _id_substring$1 as jni$_.JMethodIDPtr, i) - .object(const $ByteString$Type()); + final _$$selfRef = reference; + return _substring$1(_$$selfRef.pointer, _id_substring$1.pointer, i) + .object(); } - static final _id_substring$2 = _class.instanceMethodId( + static final _id_substring$2 = ByteString._class.instanceMethodId( r'substring', r'()Lokio/ByteString;', ); @@ -16276,12 +14118,12 @@ class ByteString extends jni$_.JObject { /// from: `public final okio.ByteString substring()` /// The returned object must be released after use, by calling the [release] method. ByteString substring$2() { - return _substring$2( - reference.pointer, _id_substring$2 as jni$_.JMethodIDPtr) - .object(const $ByteString$Type()); + final _$$selfRef = reference; + return _substring$2(_$$selfRef.pointer, _id_substring$2.pointer) + .object(); } - static final _id_indexOf$2 = _class.instanceMethodId( + static final _id_indexOf$2 = ByteString._class.instanceMethodId( r'indexOf', r'(Lokio/ByteString;)I', ); @@ -16298,16 +14140,17 @@ class ByteString extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public final int indexOf(okio.ByteString byteString)` - int indexOf$2( + core$_.int indexOf$2( ByteString byteString, ) { + final _$$selfRef = reference; final _$byteString = byteString.reference; - return _indexOf$2(reference.pointer, _id_indexOf$2 as jni$_.JMethodIDPtr, - _$byteString.pointer) + return _indexOf$2( + _$$selfRef.pointer, _id_indexOf$2.pointer, _$byteString.pointer) .integer; } - static final _id_indexOf$3 = _class.instanceMethodId( + static final _id_indexOf$3 = ByteString._class.instanceMethodId( r'indexOf', r'([B)I', ); @@ -16324,16 +14167,16 @@ class ByteString extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public final int indexOf(byte[] bs)` - int indexOf$3( + core$_.int indexOf$3( jni$_.JByteArray bs, ) { + final _$$selfRef = reference; final _$bs = bs.reference; - return _indexOf$3(reference.pointer, _id_indexOf$3 as jni$_.JMethodIDPtr, - _$bs.pointer) + return _indexOf$3(_$$selfRef.pointer, _id_indexOf$3.pointer, _$bs.pointer) .integer; } - static final _id_lastIndexOf$2 = _class.instanceMethodId( + static final _id_lastIndexOf$2 = ByteString._class.instanceMethodId( r'lastIndexOf', r'(Lokio/ByteString;)I', ); @@ -16350,16 +14193,17 @@ class ByteString extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public final int lastIndexOf(okio.ByteString byteString)` - int lastIndexOf$2( + core$_.int lastIndexOf$2( ByteString byteString, ) { + final _$$selfRef = reference; final _$byteString = byteString.reference; - return _lastIndexOf$2(reference.pointer, - _id_lastIndexOf$2 as jni$_.JMethodIDPtr, _$byteString.pointer) + return _lastIndexOf$2( + _$$selfRef.pointer, _id_lastIndexOf$2.pointer, _$byteString.pointer) .integer; } - static final _id_lastIndexOf$3 = _class.instanceMethodId( + static final _id_lastIndexOf$3 = ByteString._class.instanceMethodId( r'lastIndexOf', r'([B)I', ); @@ -16376,173 +14220,283 @@ class ByteString extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public final int lastIndexOf(byte[] bs)` - int lastIndexOf$3( + core$_.int lastIndexOf$3( jni$_.JByteArray bs, ) { + final _$$selfRef = reference; final _$bs = bs.reference; - return _lastIndexOf$3(reference.pointer, - _id_lastIndexOf$3 as jni$_.JMethodIDPtr, _$bs.pointer) + return _lastIndexOf$3( + _$$selfRef.pointer, _id_lastIndexOf$3.pointer, _$bs.pointer) .integer; } - static final _id_of = _class.staticMethodId( - r'of', - r'([B)Lokio/ByteString;', - ); + core$_.bool operator <(ByteString byteString) { + return compareTo(byteString) < 0; + } - static final _of = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + core$_.bool operator <=(ByteString byteString) { + return compareTo(byteString) <= 0; + } - /// from: `static public final okio.ByteString of(byte[] bs)` - /// The returned object must be released after use, by calling the [release] method. - static ByteString of( - jni$_.JByteArray bs, - ) { - final _$bs = bs.reference; - return _of(_class.reference.pointer, _id_of as jni$_.JMethodIDPtr, - _$bs.pointer) - .object(const $ByteString$Type()); + core$_.bool operator >(ByteString byteString) { + return compareTo(byteString) > 0; } - static final _id_of$1 = _class.staticMethodId( - r'of', - r'([BII)Lokio/ByteString;', - ); + core$_.bool operator >=(ByteString byteString) { + return compareTo(byteString) >= 0; + } +} - static final _of$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); +final class $ByteString$Type$ extends jni$_.JType { + @jni$_.internal + const $ByteString$Type$(); - /// from: `static public final okio.ByteString of(byte[] bs, int i, int i1)` - /// The returned object must be released after use, by calling the [release] method. - static ByteString of$1( - jni$_.JByteArray bs, - int i, - int i1, - ) { - final _$bs = bs.reference; - return _of$1(_class.reference.pointer, _id_of$1 as jni$_.JMethodIDPtr, - _$bs.pointer, i, i1) - .object(const $ByteString$Type()); - } + @jni$_.internal + @core$_.override + String get signature => r'Lokio/ByteString;'; +} - static final _id_of$2 = _class.staticMethodId( - r'of', - r'(Ljava/nio/ByteBuffer;)Lokio/ByteString;', +/// from: `com.example.ok_http.WebSocketInterceptor$Companion` +extension type WebSocketInterceptor$Companion._(jni$_.JObject _$this) + implements jni$_.JObject { + static final _class = jni$_.JClass.forName( + r'com/example/ok_http/WebSocketInterceptor$Companion'); + + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = + $WebSocketInterceptor$Companion$Type$(); + static final _id_new$ = _class.constructorId( + r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', ); - static final _of$2 = jni$_.ProtectedJniExtensions.lookup< + static final _new$ = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') + 'globalEnv_NewObject') .asFunction< jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public final okio.ByteString of(java.nio.ByteBuffer byteBuffer)` + /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` /// The returned object must be released after use, by calling the [release] method. - static ByteString of$2( - jni$_.JByteBuffer byteBuffer, + factory WebSocketInterceptor$Companion( + DefaultConstructorMarker? defaultConstructorMarker, ) { - final _$byteBuffer = byteBuffer.reference; - return _of$2(_class.reference.pointer, _id_of$2 as jni$_.JMethodIDPtr, - _$byteBuffer.pointer) - .object(const $ByteString$Type()); + final _$$classRef = _class.reference; + final _$defaultConstructorMarker = + defaultConstructorMarker?.reference ?? jni$_.jNullReference; + return _new$(_$$classRef.pointer, _id_new$.pointer, + _$defaultConstructorMarker.pointer) + .object(); } +} - static final _id_encodeUtf8 = _class.staticMethodId( - r'encodeUtf8', - r'(Ljava/lang/String;)Lokio/ByteString;', +extension WebSocketInterceptor$Companion$$Methods + on WebSocketInterceptor$Companion { + static final _id_addWSInterceptor = + WebSocketInterceptor$Companion._class.instanceMethodId( + r'addWSInterceptor', + r'(Lokhttp3/OkHttpClient$Builder;)Lokhttp3/OkHttpClient$Builder;', ); - static final _encodeUtf8 = jni$_.ProtectedJniExtensions.lookup< + static final _addWSInterceptor = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') + 'globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public final okio.ByteString encodeUtf8(java.lang.String string)` + /// from: `public fun addWSInterceptor(clientBuilder: okhttp3.OkHttpClient.Builder): okhttp3.OkHttpClient.Builder` /// The returned object must be released after use, by calling the [release] method. - static ByteString encodeUtf8( - jni$_.JString string, + OkHttpClient$Builder addWSInterceptor( + OkHttpClient$Builder builder, ) { - final _$string = string.reference; - return _encodeUtf8(_class.reference.pointer, - _id_encodeUtf8 as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $ByteString$Type()); + final _$$selfRef = reference; + final _$builder = builder.reference; + return _addWSInterceptor( + _$$selfRef.pointer, _id_addWSInterceptor.pointer, _$builder.pointer) + .object(); } +} - static final _id_encodeString = _class.staticMethodId( - r'encodeString', - r'(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/ByteString;', +final class $WebSocketInterceptor$Companion$Type$ + extends jni$_.JType { + @jni$_.internal + const $WebSocketInterceptor$Companion$Type$(); + + @jni$_.internal + @core$_.override + String get signature => + r'Lcom/example/ok_http/WebSocketInterceptor$Companion;'; +} + +/// from: `com.example.ok_http.WebSocketInterceptor` +extension type WebSocketInterceptor._(jni$_.JObject _$this) + implements jni$_.JObject { + static final _class = + jni$_.JClass.forName(r'com/example/ok_http/WebSocketInterceptor'); + + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = + $WebSocketInterceptor$Type$(); + static final _id_Companion = _class.staticFieldId( + r'Companion', + r'Lcom/example/ok_http/WebSocketInterceptor$Companion;', ); - static final _encodeString = jni$_.ProtectedJniExtensions.lookup< + /// from: `static public final com.example.ok_http.WebSocketInterceptor$Companion Companion` + /// The returned object must be released after use, by calling the [release] method. + static WebSocketInterceptor$Companion get Companion => + _id_Companion.get(_class, WebSocketInterceptor$Companion.type) + as WebSocketInterceptor$Companion; + + static final _id_new$ = _class.constructorId( + r'()V', + ); + + static final _new$ = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_NewObject') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - /// from: `static public final okio.ByteString encodeString(java.lang.String string, java.nio.charset.Charset charset)` + /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. - static ByteString encodeString( - jni$_.JString string, - jni$_.JObject charset, - ) { - final _$string = string.reference; - final _$charset = charset.reference; - return _encodeString( - _class.reference.pointer, - _id_encodeString as jni$_.JMethodIDPtr, - _$string.pointer, - _$charset.pointer) - .object(const $ByteString$Type()); + factory WebSocketInterceptor() { + final _$$classRef = _class.reference; + return _new$(_$$classRef.pointer, _id_new$.pointer) + .object(); } +} - static final _id_decodeBase64 = _class.staticMethodId( - r'decodeBase64', - r'(Ljava/lang/String;)Lokio/ByteString;', +final class $WebSocketInterceptor$Type$ + extends jni$_.JType { + @jni$_.internal + const $WebSocketInterceptor$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lcom/example/ok_http/WebSocketInterceptor;'; +} + +/// from: `java.util.concurrent.TimeUnit` +extension type TimeUnit._(jni$_.JObject _$this) implements Enum { + static final _class = jni$_.JClass.forName(r'java/util/concurrent/TimeUnit'); + + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = $TimeUnit$Type$(); + static final _id_DAYS = _class.staticFieldId( + r'DAYS', + r'Ljava/util/concurrent/TimeUnit;', ); - static final _decodeBase64 = jni$_.ProtectedJniExtensions.lookup< + /// from: `static public final java.util.concurrent.TimeUnit DAYS` + /// The returned object must be released after use, by calling the [release] method. + static TimeUnit get DAYS => _id_DAYS.get(_class, TimeUnit.type) as TimeUnit; + + static final _id_HOURS = _class.staticFieldId( + r'HOURS', + r'Ljava/util/concurrent/TimeUnit;', + ); + + /// from: `static public final java.util.concurrent.TimeUnit HOURS` + /// The returned object must be released after use, by calling the [release] method. + static TimeUnit get HOURS => _id_HOURS.get(_class, TimeUnit.type) as TimeUnit; + + static final _id_MICROSECONDS = _class.staticFieldId( + r'MICROSECONDS', + r'Ljava/util/concurrent/TimeUnit;', + ); + + /// from: `static public final java.util.concurrent.TimeUnit MICROSECONDS` + /// The returned object must be released after use, by calling the [release] method. + static TimeUnit get MICROSECONDS => + _id_MICROSECONDS.get(_class, TimeUnit.type) as TimeUnit; + + static final _id_MILLISECONDS = _class.staticFieldId( + r'MILLISECONDS', + r'Ljava/util/concurrent/TimeUnit;', + ); + + /// from: `static public final java.util.concurrent.TimeUnit MILLISECONDS` + /// The returned object must be released after use, by calling the [release] method. + static TimeUnit get MILLISECONDS => + _id_MILLISECONDS.get(_class, TimeUnit.type) as TimeUnit; + + static final _id_MINUTES = _class.staticFieldId( + r'MINUTES', + r'Ljava/util/concurrent/TimeUnit;', + ); + + /// from: `static public final java.util.concurrent.TimeUnit MINUTES` + /// The returned object must be released after use, by calling the [release] method. + static TimeUnit get MINUTES => + _id_MINUTES.get(_class, TimeUnit.type) as TimeUnit; + + static final _id_NANOSECONDS = _class.staticFieldId( + r'NANOSECONDS', + r'Ljava/util/concurrent/TimeUnit;', + ); + + /// from: `static public final java.util.concurrent.TimeUnit NANOSECONDS` + /// The returned object must be released after use, by calling the [release] method. + static TimeUnit get NANOSECONDS => + _id_NANOSECONDS.get(_class, TimeUnit.type) as TimeUnit; + + static final _id_SECONDS = _class.staticFieldId( + r'SECONDS', + r'Ljava/util/concurrent/TimeUnit;', + ); + + /// from: `static public final java.util.concurrent.TimeUnit SECONDS` + /// The returned object must be released after use, by calling the [release] method. + static TimeUnit get SECONDS => + _id_SECONDS.get(_class, TimeUnit.type) as TimeUnit; + + static final _id_values = _class.staticMethodId( + r'values', + r'()[Ljava/util/concurrent/TimeUnit;', + ); + + static final _values = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `static public java.util.concurrent.TimeUnit[] values()` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JArray? values() { + final _$$classRef = _class.reference; + return _values(_$$classRef.pointer, _id_values.pointer) + .object?>(); + } + + static final _id_valueOf = _class.staticMethodId( + r'valueOf', + r'(Ljava/lang/String;)Ljava/util/concurrent/TimeUnit;', + ); + + static final _valueOf = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -16553,23 +14507,23 @@ class ByteString extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public final okio.ByteString decodeBase64(java.lang.String string)` + /// from: `static public java.util.concurrent.TimeUnit valueOf(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - static ByteString? decodeBase64( - jni$_.JString string, + static TimeUnit? valueOf( + jni$_.JString? string, ) { - final _$string = string.reference; - return _decodeBase64(_class.reference.pointer, - _id_decodeBase64 as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $ByteString$NullableType()); + final _$$classRef = _class.reference; + final _$string = string?.reference ?? jni$_.jNullReference; + return _valueOf(_$$classRef.pointer, _id_valueOf.pointer, _$string.pointer) + .object(); } - static final _id_decodeHex = _class.staticMethodId( - r'decodeHex', - r'(Ljava/lang/String;)Lokio/ByteString;', + static final _id_of = _class.staticMethodId( + r'of', + r'(Ljava/time/temporal/ChronoUnit;)Ljava/util/concurrent/TimeUnit;', ); - static final _decodeHex = jni$_.ProtectedJniExtensions.lookup< + static final _of = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -16580,603 +14534,207 @@ class ByteString extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public final okio.ByteString decodeHex(java.lang.String string)` + /// from: `static public java.util.concurrent.TimeUnit of(java.time.temporal.ChronoUnit chronoUnit)` /// The returned object must be released after use, by calling the [release] method. - static ByteString decodeHex( - jni$_.JString string, + static TimeUnit? of( + ChronoUnit? chronoUnit, ) { - final _$string = string.reference; - return _decodeHex(_class.reference.pointer, - _id_decodeHex as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $ByteString$Type()); + final _$$classRef = _class.reference; + final _$chronoUnit = chronoUnit?.reference ?? jni$_.jNullReference; + return _of(_$$classRef.pointer, _id_of.pointer, _$chronoUnit.pointer) + .object(); } +} - static final _id_read = _class.staticMethodId( - r'read', - r'(Ljava/io/InputStream;I)Lokio/ByteString;', +extension TimeUnit$$Methods on TimeUnit { + static final _id_convert = TimeUnit._class.instanceMethodId( + r'convert', + r'(Ljava/time/Duration;)J', ); - static final _read = jni$_.ProtectedJniExtensions.lookup< + static final _convert = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallLongMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public final okio.ByteString read(java.io.InputStream inputStream, int i)` - /// The returned object must be released after use, by calling the [release] method. - static ByteString read( - jni$_.JObject inputStream, - int i, + /// from: `public long convert(java.time.Duration duration)` + core$_.int convert( + Duration? duration, ) { - final _$inputStream = inputStream.reference; - return _read(_class.reference.pointer, _id_read as jni$_.JMethodIDPtr, - _$inputStream.pointer, i) - .object(const $ByteString$Type()); + final _$$selfRef = reference; + final _$duration = duration?.reference ?? jni$_.jNullReference; + return _convert(_$$selfRef.pointer, _id_convert.pointer, _$duration.pointer) + .long; } -} - -final class $ByteString$NullableType extends jni$_.JObjType { - @jni$_.internal - const $ByteString$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lokio/ByteString;'; - - @jni$_.internal - @core$_.override - ByteString? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : ByteString.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; + static final _id_convert$1 = TimeUnit._class.instanceMethodId( + r'convert', + r'(JLjava/util/concurrent/TimeUnit;)J', + ); - @core$_.override - int get hashCode => ($ByteString$NullableType).hashCode; + static final _convert$1 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_ + .VarArgs<(jni$_.Int64, jni$_.Pointer)>)>>( + 'globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, core$_.int, jni$_.Pointer)>(); - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ByteString$NullableType) && - other is $ByteString$NullableType; + /// from: `public long convert(long j, java.util.concurrent.TimeUnit timeUnit)` + core$_.int convert$1( + core$_.int j, + TimeUnit? timeUnit, + ) { + final _$$selfRef = reference; + final _$timeUnit = timeUnit?.reference ?? jni$_.jNullReference; + return _convert$1( + _$$selfRef.pointer, _id_convert$1.pointer, j, _$timeUnit.pointer) + .long; } -} - -final class $ByteString$Type extends jni$_.JObjType { - @jni$_.internal - const $ByteString$Type(); - @jni$_.internal - @core$_.override - String get signature => r'Lokio/ByteString;'; - - @jni$_.internal - @core$_.override - ByteString fromReference(jni$_.JReference reference) => - ByteString.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $ByteString$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; + static final _id_sleep = TimeUnit._class.instanceMethodId( + r'sleep', + r'(J)V', + ); - @core$_.override - int get hashCode => ($ByteString$Type).hashCode; + static final _sleep = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ByteString$Type) && other is $ByteString$Type; + /// from: `public void sleep(long j)` + void sleep( + core$_.int j, + ) { + final _$$selfRef = reference; + _sleep(_$$selfRef.pointer, _id_sleep.pointer, j).check(); } -} - -/// from: `com.example.ok_http.WebSocketInterceptor$Companion` -class WebSocketInterceptor$Companion extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - WebSocketInterceptor$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = jni$_.JClass.forName( - r'com/example/ok_http/WebSocketInterceptor$Companion'); - /// The type which includes information such as the signature of this class. - static const nullableType = $WebSocketInterceptor$Companion$NullableType(); - static const type = $WebSocketInterceptor$Companion$Type(); - static final _id_addWSInterceptor = _class.instanceMethodId( - r'addWSInterceptor', - r'(Lokhttp3/OkHttpClient$Builder;)Lokhttp3/OkHttpClient$Builder;', + static final _id_timedJoin = TimeUnit._class.instanceMethodId( + r'timedJoin', + r'(Ljava/lang/Thread;J)V', ); - static final _addWSInterceptor = jni$_.ProtectedJniExtensions.lookup< + static final _timedJoin = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') + jni$_ + .VarArgs<(jni$_.Pointer, jni$_.Int64)>)>>( + 'globalEnv_CallVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); - /// from: `public final okhttp3.OkHttpClient$Builder addWSInterceptor(okhttp3.OkHttpClient$Builder builder)` - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder addWSInterceptor( - OkHttpClient$Builder builder, + /// from: `public void timedJoin(java.lang.Thread thread, long j)` + void timedJoin( + Thread? thread, + core$_.int j, ) { - final _$builder = builder.reference; - return _addWSInterceptor(reference.pointer, - _id_addWSInterceptor as jni$_.JMethodIDPtr, _$builder.pointer) - .object(const $OkHttpClient$Builder$Type()); + final _$$selfRef = reference; + final _$thread = thread?.reference ?? jni$_.jNullReference; + _timedJoin(_$$selfRef.pointer, _id_timedJoin.pointer, _$thread.pointer, j) + .check(); } - static final _id_new$ = _class.constructorId( - r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', + static final _id_timedWait = TimeUnit._class.instanceMethodId( + r'timedWait', + r'(Ljava/lang/Object;J)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< + static final _timedWait = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') + jni$_ + .VarArgs<(jni$_.Pointer, jni$_.Int64)>)>>( + 'globalEnv_CallVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); - /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` - /// The returned object must be released after use, by calling the [release] method. - factory WebSocketInterceptor$Companion( - jni$_.JObject? defaultConstructorMarker, + /// from: `public void timedWait(java.lang.Object object, long j)` + void timedWait( + jni$_.JObject? object, + core$_.int j, ) { - final _$defaultConstructorMarker = - defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return WebSocketInterceptor$Companion.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$defaultConstructorMarker.pointer) - .reference); - } -} - -final class $WebSocketInterceptor$Companion$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $WebSocketInterceptor$Companion$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => - r'Lcom/example/ok_http/WebSocketInterceptor$Companion;'; - - @jni$_.internal - @core$_.override - WebSocketInterceptor$Companion? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : WebSocketInterceptor$Companion.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($WebSocketInterceptor$Companion$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($WebSocketInterceptor$Companion$NullableType) && - other is $WebSocketInterceptor$Companion$NullableType; - } -} - -final class $WebSocketInterceptor$Companion$Type - extends jni$_.JObjType { - @jni$_.internal - const $WebSocketInterceptor$Companion$Type(); - - @jni$_.internal - @core$_.override - String get signature => - r'Lcom/example/ok_http/WebSocketInterceptor$Companion;'; - - @jni$_.internal - @core$_.override - WebSocketInterceptor$Companion fromReference(jni$_.JReference reference) => - WebSocketInterceptor$Companion.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $WebSocketInterceptor$Companion$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($WebSocketInterceptor$Companion$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($WebSocketInterceptor$Companion$Type) && - other is $WebSocketInterceptor$Companion$Type; + final _$$selfRef = reference; + final _$object = object?.reference ?? jni$_.jNullReference; + _timedWait(_$$selfRef.pointer, _id_timedWait.pointer, _$object.pointer, j) + .check(); } -} - -/// from: `com.example.ok_http.WebSocketInterceptor` -class WebSocketInterceptor extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - WebSocketInterceptor.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = - jni$_.JClass.forName(r'com/example/ok_http/WebSocketInterceptor'); - - /// The type which includes information such as the signature of this class. - static const nullableType = $WebSocketInterceptor$NullableType(); - static const type = $WebSocketInterceptor$Type(); - static final _id_Companion = _class.staticFieldId( - r'Companion', - r'Lcom/example/ok_http/WebSocketInterceptor$Companion;', - ); - - /// from: `static public final com.example.ok_http.WebSocketInterceptor$Companion Companion` - /// The returned object must be released after use, by calling the [release] method. - static WebSocketInterceptor$Companion get Companion => - _id_Companion.get(_class, const $WebSocketInterceptor$Companion$Type()); - static final _id_new$ = _class.constructorId( - r'()V', + static final _id_toChronoUnit = TimeUnit._class.instanceMethodId( + r'toChronoUnit', + r'()Ljava/time/temporal/ChronoUnit;', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< + static final _toChronoUnit = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_NewObject') + )>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, )>(); - /// from: `public void ()` + /// from: `public java.time.temporal.ChronoUnit toChronoUnit()` /// The returned object must be released after use, by calling the [release] method. - factory WebSocketInterceptor() { - return WebSocketInterceptor.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + ChronoUnit? toChronoUnit() { + final _$$selfRef = reference; + return _toChronoUnit(_$$selfRef.pointer, _id_toChronoUnit.pointer) + .object(); } -} -final class $WebSocketInterceptor$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $WebSocketInterceptor$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Lcom/example/ok_http/WebSocketInterceptor;'; + static final _id_toDays = TimeUnit._class.instanceMethodId( + r'toDays', + r'(J)J', + ); - @jni$_.internal - @core$_.override - WebSocketInterceptor? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : WebSocketInterceptor.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); + static final _toDays = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($WebSocketInterceptor$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($WebSocketInterceptor$NullableType) && - other is $WebSocketInterceptor$NullableType; - } -} - -final class $WebSocketInterceptor$Type - extends jni$_.JObjType { - @jni$_.internal - const $WebSocketInterceptor$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Lcom/example/ok_http/WebSocketInterceptor;'; - - @jni$_.internal - @core$_.override - WebSocketInterceptor fromReference(jni$_.JReference reference) => - WebSocketInterceptor.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $WebSocketInterceptor$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($WebSocketInterceptor$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($WebSocketInterceptor$Type) && - other is $WebSocketInterceptor$Type; - } -} - -/// from: `java.util.concurrent.TimeUnit` -class TimeUnit extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - TimeUnit.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = jni$_.JClass.forName(r'java/util/concurrent/TimeUnit'); - - /// The type which includes information such as the signature of this class. - static const nullableType = $TimeUnit$NullableType(); - static const type = $TimeUnit$Type(); - static final _id_NANOSECONDS = _class.staticFieldId( - r'NANOSECONDS', - r'Ljava/util/concurrent/TimeUnit;', - ); - - /// from: `static public final java.util.concurrent.TimeUnit NANOSECONDS` - /// The returned object must be released after use, by calling the [release] method. - static TimeUnit get NANOSECONDS => - _id_NANOSECONDS.get(_class, const $TimeUnit$Type()); - - static final _id_MICROSECONDS = _class.staticFieldId( - r'MICROSECONDS', - r'Ljava/util/concurrent/TimeUnit;', - ); - - /// from: `static public final java.util.concurrent.TimeUnit MICROSECONDS` - /// The returned object must be released after use, by calling the [release] method. - static TimeUnit get MICROSECONDS => - _id_MICROSECONDS.get(_class, const $TimeUnit$Type()); - - static final _id_MILLISECONDS = _class.staticFieldId( - r'MILLISECONDS', - r'Ljava/util/concurrent/TimeUnit;', - ); - - /// from: `static public final java.util.concurrent.TimeUnit MILLISECONDS` - /// The returned object must be released after use, by calling the [release] method. - static TimeUnit get MILLISECONDS => - _id_MILLISECONDS.get(_class, const $TimeUnit$Type()); - - static final _id_SECONDS = _class.staticFieldId( - r'SECONDS', - r'Ljava/util/concurrent/TimeUnit;', - ); - - /// from: `static public final java.util.concurrent.TimeUnit SECONDS` - /// The returned object must be released after use, by calling the [release] method. - static TimeUnit get SECONDS => - _id_SECONDS.get(_class, const $TimeUnit$Type()); - - static final _id_MINUTES = _class.staticFieldId( - r'MINUTES', - r'Ljava/util/concurrent/TimeUnit;', - ); - - /// from: `static public final java.util.concurrent.TimeUnit MINUTES` - /// The returned object must be released after use, by calling the [release] method. - static TimeUnit get MINUTES => - _id_MINUTES.get(_class, const $TimeUnit$Type()); - - static final _id_HOURS = _class.staticFieldId( - r'HOURS', - r'Ljava/util/concurrent/TimeUnit;', - ); - - /// from: `static public final java.util.concurrent.TimeUnit HOURS` - /// The returned object must be released after use, by calling the [release] method. - static TimeUnit get HOURS => _id_HOURS.get(_class, const $TimeUnit$Type()); - - static final _id_DAYS = _class.staticFieldId( - r'DAYS', - r'Ljava/util/concurrent/TimeUnit;', - ); - - /// from: `static public final java.util.concurrent.TimeUnit DAYS` - /// The returned object must be released after use, by calling the [release] method. - static TimeUnit get DAYS => _id_DAYS.get(_class, const $TimeUnit$Type()); - - static final _id_values = _class.staticMethodId( - r'values', - r'()[Ljava/util/concurrent/TimeUnit;', - ); - - static final _values = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `static public java.util.concurrent.TimeUnit[] values()` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JArray? values() { - return _values(_class.reference.pointer, _id_values as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - $TimeUnit$NullableType())); - } - - static final _id_valueOf = _class.staticMethodId( - r'valueOf', - r'(Ljava/lang/String;)Ljava/util/concurrent/TimeUnit;', - ); - - static final _valueOf = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `static public java.util.concurrent.TimeUnit valueOf(java.lang.String synthetic)` - /// The returned object must be released after use, by calling the [release] method. - static TimeUnit? valueOf( - jni$_.JString? synthetic, - ) { - final _$synthetic = synthetic?.reference ?? jni$_.jNullReference; - return _valueOf(_class.reference.pointer, _id_valueOf as jni$_.JMethodIDPtr, - _$synthetic.pointer) - .object(const $TimeUnit$NullableType()); - } - - static final _id_convert = _class.instanceMethodId( - r'convert', - r'(JLjava/util/concurrent/TimeUnit;)J', - ); - - static final _convert = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Int64, jni$_.Pointer)>)>>( - 'globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); - - /// from: `public long convert(long j, java.util.concurrent.TimeUnit timeUnit)` - int convert( - int j, - TimeUnit? timeUnit, - ) { - final _$timeUnit = timeUnit?.reference ?? jni$_.jNullReference; - return _convert(reference.pointer, _id_convert as jni$_.JMethodIDPtr, j, - _$timeUnit.pointer) - .long; - } - - static final _id_convert$1 = _class.instanceMethodId( - r'convert', - r'(Ljava/time/Duration;)J', - ); - - static final _convert$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public long convert(java.time.Duration duration)` - int convert$1( - jni$_.JObject? duration, + /// from: `public long toDays(long j)` + core$_.int toDays( + core$_.int j, ) { - final _$duration = duration?.reference ?? jni$_.jNullReference; - return _convert$1(reference.pointer, _id_convert$1 as jni$_.JMethodIDPtr, - _$duration.pointer) - .long; + final _$$selfRef = reference; + return _toDays(_$$selfRef.pointer, _id_toDays.pointer, j).long; } - static final _id_toNanos = _class.instanceMethodId( - r'toNanos', + static final _id_toHours = TimeUnit._class.instanceMethodId( + r'toHours', r'(J)J', ); - static final _toNanos = jni$_.ProtectedJniExtensions.lookup< + static final _toHours = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -17184,17 +14742,17 @@ class TimeUnit extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallLongMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); - /// from: `public long toNanos(long j)` - int toNanos( - int j, + /// from: `public long toHours(long j)` + core$_.int toHours( + core$_.int j, ) { - return _toNanos(reference.pointer, _id_toNanos as jni$_.JMethodIDPtr, j) - .long; + final _$$selfRef = reference; + return _toHours(_$$selfRef.pointer, _id_toHours.pointer, j).long; } - static final _id_toMicros = _class.instanceMethodId( + static final _id_toMicros = TimeUnit._class.instanceMethodId( r'toMicros', r'(J)J', ); @@ -17207,17 +14765,17 @@ class TimeUnit extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallLongMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public long toMicros(long j)` - int toMicros( - int j, + core$_.int toMicros( + core$_.int j, ) { - return _toMicros(reference.pointer, _id_toMicros as jni$_.JMethodIDPtr, j) - .long; + final _$$selfRef = reference; + return _toMicros(_$$selfRef.pointer, _id_toMicros.pointer, j).long; } - static final _id_toMillis = _class.instanceMethodId( + static final _id_toMillis = TimeUnit._class.instanceMethodId( r'toMillis', r'(J)J', ); @@ -17230,40 +14788,17 @@ class TimeUnit extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallLongMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public long toMillis(long j)` - int toMillis( - int j, - ) { - return _toMillis(reference.pointer, _id_toMillis as jni$_.JMethodIDPtr, j) - .long; - } - - static final _id_toSeconds = _class.instanceMethodId( - r'toSeconds', - r'(J)J', - ); - - static final _toSeconds = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); - - /// from: `public long toSeconds(long j)` - int toSeconds( - int j, + core$_.int toMillis( + core$_.int j, ) { - return _toSeconds(reference.pointer, _id_toSeconds as jni$_.JMethodIDPtr, j) - .long; + final _$$selfRef = reference; + return _toMillis(_$$selfRef.pointer, _id_toMillis.pointer, j).long; } - static final _id_toMinutes = _class.instanceMethodId( + static final _id_toMinutes = TimeUnit._class.instanceMethodId( r'toMinutes', r'(J)J', ); @@ -17276,22 +14811,22 @@ class TimeUnit extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallLongMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public long toMinutes(long j)` - int toMinutes( - int j, + core$_.int toMinutes( + core$_.int j, ) { - return _toMinutes(reference.pointer, _id_toMinutes as jni$_.JMethodIDPtr, j) - .long; + final _$$selfRef = reference; + return _toMinutes(_$$selfRef.pointer, _id_toMinutes.pointer, j).long; } - static final _id_toHours = _class.instanceMethodId( - r'toHours', + static final _id_toNanos = TimeUnit._class.instanceMethodId( + r'toNanos', r'(J)J', ); - static final _toHours = jni$_.ProtectedJniExtensions.lookup< + static final _toNanos = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -17299,22 +14834,22 @@ class TimeUnit extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallLongMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); - /// from: `public long toHours(long j)` - int toHours( - int j, + /// from: `public long toNanos(long j)` + core$_.int toNanos( + core$_.int j, ) { - return _toHours(reference.pointer, _id_toHours as jni$_.JMethodIDPtr, j) - .long; + final _$$selfRef = reference; + return _toNanos(_$$selfRef.pointer, _id_toNanos.pointer, j).long; } - static final _id_toDays = _class.instanceMethodId( - r'toDays', + static final _id_toSeconds = TimeUnit._class.instanceMethodId( + r'toSeconds', r'(J)J', ); - static final _toDays = jni$_.ProtectedJniExtensions.lookup< + static final _toSeconds = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -17322,235 +14857,137 @@ class TimeUnit extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallLongMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); - /// from: `public long toDays(long j)` - int toDays( - int j, + /// from: `public long toSeconds(long j)` + core$_.int toSeconds( + core$_.int j, ) { - return _toDays(reference.pointer, _id_toDays as jni$_.JMethodIDPtr, j).long; + final _$$selfRef = reference; + return _toSeconds(_$$selfRef.pointer, _id_toSeconds.pointer, j).long; } +} - static final _id_timedWait = _class.instanceMethodId( - r'timedWait', - r'(Ljava/lang/Object;J)V', - ); +final class $TimeUnit$Type$ extends jni$_.JType { + @jni$_.internal + const $TimeUnit$Type$(); - static final _timedWait = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int64)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + @jni$_.internal + @core$_.override + String get signature => r'Ljava/util/concurrent/TimeUnit;'; +} - /// from: `public void timedWait(java.lang.Object object, long j)` - void timedWait( - jni$_.JObject? object, - int j, - ) { - final _$object = object?.reference ?? jni$_.jNullReference; - _timedWait(reference.pointer, _id_timedWait as jni$_.JMethodIDPtr, - _$object.pointer, j) - .check(); - } - - static final _id_timedJoin = _class.instanceMethodId( - r'timedJoin', - r'(Ljava/lang/Thread;J)V', - ); +/// from: `javax.net.ssl.X509TrustManager` +extension type X509TrustManager._(jni$_.JObject _$this) + implements jni$_.JObject, TrustManager { + static final _class = jni$_.JClass.forName(r'javax/net/ssl/X509TrustManager'); - static final _timedJoin = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int64)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = $X509TrustManager$Type$(); - /// from: `public void timedJoin(java.lang.Thread thread, long j)` - void timedJoin( - jni$_.JObject? thread, - int j, + /// Maps a specific port to the implemented interface. + static final core$_.Map _$impls = {}; + static jni$_.JObjectPtr _$invoke( + core$_.int port, + jni$_.JObjectPtr descriptor, + jni$_.JObjectPtr args, ) { - final _$thread = thread?.reference ?? jni$_.jNullReference; - _timedJoin(reference.pointer, _id_timedJoin as jni$_.JMethodIDPtr, - _$thread.pointer, j) - .check(); + return _$invokeMethod( + port, + jni$_.MethodInvocation.fromAddresses( + 0, + descriptor.address, + args.address, + ), + ); } - static final _id_sleep = _class.instanceMethodId( - r'sleep', - r'(J)V', - ); - - static final _sleep = jni$_.ProtectedJniExtensions.lookup< + static final jni$_.Pointer< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.JObjectPtr Function( + jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); - /// from: `public void sleep(long j)` - void sleep( - int j, + static jni$_.Pointer _$invokeMethod( + core$_.int $p, + jni$_.MethodInvocation $i, ) { - _sleep(reference.pointer, _id_sleep as jni$_.JMethodIDPtr, j).check(); - } - - static final _id_toChronoUnit = _class.instanceMethodId( - r'toChronoUnit', - r'()Ljava/time/temporal/ChronoUnit;', - ); - - static final _toChronoUnit = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public java.time.temporal.ChronoUnit toChronoUnit()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? toChronoUnit() { - return _toChronoUnit( - reference.pointer, _id_toChronoUnit as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + try { + final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); + final $a = $i.args; + if ($d == + r'checkClientTrusted([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V') { + _$impls[$p]!.checkClientTrusted( + ($a![0] as jni$_.JArray?), + ($a![1] as jni$_.JString?), + ); + return jni$_.nullptr; + } + if ($d == + r'checkServerTrusted([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V') { + _$impls[$p]!.checkServerTrusted( + ($a![0] as jni$_.JArray?), + ($a![1] as jni$_.JString?), + ); + return jni$_.nullptr; + } + if ($d == r'getAcceptedIssuers()[Ljava/security/cert/X509Certificate;') { + final $r = _$impls[$p]!.getAcceptedIssuers(); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } + } catch (e) { + return jni$_.ProtectedJniExtensions.newDartException(e); + } + return jni$_.nullptr; } - static final _id_of = _class.staticMethodId( - r'of', - r'(Ljava/time/temporal/ChronoUnit;)Ljava/util/concurrent/TimeUnit;', - ); - - static final _of = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `static public java.util.concurrent.TimeUnit of(java.time.temporal.ChronoUnit chronoUnit)` - /// The returned object must be released after use, by calling the [release] method. - static TimeUnit? of( - jni$_.JObject? chronoUnit, + static void implementIn( + jni$_.JImplementer implementer, + $X509TrustManager $impl, ) { - final _$chronoUnit = chronoUnit?.reference ?? jni$_.jNullReference; - return _of(_class.reference.pointer, _id_of as jni$_.JMethodIDPtr, - _$chronoUnit.pointer) - .object(const $TimeUnit$NullableType()); - } -} - -final class $TimeUnit$NullableType extends jni$_.JObjType { - @jni$_.internal - const $TimeUnit$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljava/util/concurrent/TimeUnit;'; - - @jni$_.internal - @core$_.override - TimeUnit? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : TimeUnit.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($TimeUnit$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($TimeUnit$NullableType) && - other is $TimeUnit$NullableType; + late final jni$_.RawReceivePort $p; + $p = jni$_.RawReceivePort(($m) { + if ($m == null) { + _$impls.remove($p.sendPort.nativePort); + $p.close(); + return; + } + final $i = jni$_.MethodInvocation.fromMessage($m); + final $r = _$invokeMethod($p.sendPort.nativePort, $i); + $i.args?.release(); + jni$_.ProtectedJniExtensions.returnResult($i.result, $r); + }); + implementer.add( + r'javax.net.ssl.X509TrustManager', + $p, + _$invokePointer, + [ + if ($impl.checkClientTrusted$async) + r'checkClientTrusted([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V', + if ($impl.checkServerTrusted$async) + r'checkServerTrusted([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V', + ], + ); + final $a = $p.sendPort.nativePort; + _$impls[$a] = $impl; } -} - -final class $TimeUnit$Type extends jni$_.JObjType { - @jni$_.internal - const $TimeUnit$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljava/util/concurrent/TimeUnit;'; - - @jni$_.internal - @core$_.override - TimeUnit fromReference(jni$_.JReference reference) => TimeUnit.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => const $TimeUnit$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($TimeUnit$Type).hashCode; - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($TimeUnit$Type) && other is $TimeUnit$Type; + factory X509TrustManager.implement( + $X509TrustManager $impl, + ) { + final $i = jni$_.JImplementer(); + implementIn($i, $impl); + return $i.implement(); } } -/// from: `javax.net.ssl.X509TrustManager` -class X509TrustManager extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - X509TrustManager.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = jni$_.JClass.forName(r'javax/net/ssl/X509TrustManager'); - - /// The type which includes information such as the signature of this class. - static const nullableType = $X509TrustManager$NullableType(); - static const type = $X509TrustManager$Type(); - static final _id_checkClientTrusted = _class.instanceMethodId( +extension X509TrustManager$$Methods on X509TrustManager { + static final _id_checkClientTrusted = + X509TrustManager._class.instanceMethodId( r'checkClientTrusted', r'([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V', ); @@ -17577,18 +15014,17 @@ class X509TrustManager extends jni$_.JObject { jni$_.JArray? x509Certificates, jni$_.JString? string, ) { + final _$$selfRef = reference; final _$x509Certificates = x509Certificates?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; - _checkClientTrusted( - reference.pointer, - _id_checkClientTrusted as jni$_.JMethodIDPtr, - _$x509Certificates.pointer, - _$string.pointer) + _checkClientTrusted(_$$selfRef.pointer, _id_checkClientTrusted.pointer, + _$x509Certificates.pointer, _$string.pointer) .check(); } - static final _id_checkServerTrusted = _class.instanceMethodId( + static final _id_checkServerTrusted = + X509TrustManager._class.instanceMethodId( r'checkServerTrusted', r'([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V', ); @@ -17615,18 +15051,17 @@ class X509TrustManager extends jni$_.JObject { jni$_.JArray? x509Certificates, jni$_.JString? string, ) { + final _$$selfRef = reference; final _$x509Certificates = x509Certificates?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; - _checkServerTrusted( - reference.pointer, - _id_checkServerTrusted as jni$_.JMethodIDPtr, - _$x509Certificates.pointer, - _$string.pointer) + _checkServerTrusted(_$$selfRef.pointer, _id_checkServerTrusted.pointer, + _$x509Certificates.pointer, _$string.pointer) .check(); } - static final _id_getAcceptedIssuers = _class.instanceMethodId( + static final _id_getAcceptedIssuers = + X509TrustManager._class.instanceMethodId( r'getAcceptedIssuers', r'()[Ljava/security/cert/X509Certificate;', ); @@ -17646,141 +15081,34 @@ class X509TrustManager extends jni$_.JObject { /// from: `public abstract java.security.cert.X509Certificate[] getAcceptedIssuers()` /// The returned object must be released after use, by calling the [release] method. jni$_.JArray? getAcceptedIssuers() { + final _$$selfRef = reference; return _getAcceptedIssuers( - reference.pointer, _id_getAcceptedIssuers as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - $X509Certificate$NullableType())); + _$$selfRef.pointer, _id_getAcceptedIssuers.pointer) + .object?>(); } +} - /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; - static jni$_.JObjectPtr _$invoke( - int port, - jni$_.JObjectPtr descriptor, - jni$_.JObjectPtr args, - ) { - return _$invokeMethod( - port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), - ); - } +abstract base mixin class $X509TrustManager { + factory $X509TrustManager({ + required void Function(jni$_.JArray? x509Certificates, + jni$_.JString? string) + checkClientTrusted, + core$_.bool checkClientTrusted$async, + required void Function(jni$_.JArray? x509Certificates, + jni$_.JString? string) + checkServerTrusted, + core$_.bool checkServerTrusted$async, + required jni$_.JArray? Function() getAcceptedIssuers, + }) = _$X509TrustManager; - static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); - - static jni$_.Pointer _$invokeMethod( - int $p, - jni$_.MethodInvocation $i, - ) { - try { - final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); - final $a = $i.args; - if ($d == - r'checkClientTrusted([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V') { - _$impls[$p]!.checkClientTrusted( - $a![0]?.as( - const jni$_.JArrayType( - $X509Certificate$NullableType()), - releaseOriginal: true), - $a![1]?.as(const jni$_.JStringType(), releaseOriginal: true), - ); - return jni$_.nullptr; - } - if ($d == - r'checkServerTrusted([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V') { - _$impls[$p]!.checkServerTrusted( - $a![0]?.as( - const jni$_.JArrayType( - $X509Certificate$NullableType()), - releaseOriginal: true), - $a![1]?.as(const jni$_.JStringType(), releaseOriginal: true), - ); - return jni$_.nullptr; - } - if ($d == r'getAcceptedIssuers()[Ljava/security/cert/X509Certificate;') { - final $r = _$impls[$p]!.getAcceptedIssuers(); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - } catch (e) { - return jni$_.ProtectedJniExtensions.newDartException(e); - } - return jni$_.nullptr; - } - - static void implementIn( - jni$_.JImplementer implementer, - $X509TrustManager $impl, - ) { - late final jni$_.RawReceivePort $p; - $p = jni$_.RawReceivePort(($m) { - if ($m == null) { - _$impls.remove($p.sendPort.nativePort); - $p.close(); - return; - } - final $i = jni$_.MethodInvocation.fromMessage($m); - final $r = _$invokeMethod($p.sendPort.nativePort, $i); - jni$_.ProtectedJniExtensions.returnResult($i.result, $r); - }); - implementer.add( - r'javax.net.ssl.X509TrustManager', - $p, - _$invokePointer, - [ - if ($impl.checkClientTrusted$async) - r'checkClientTrusted([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V', - if ($impl.checkServerTrusted$async) - r'checkServerTrusted([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V', - ], - ); - final $a = $p.sendPort.nativePort; - _$impls[$a] = $impl; - } - - factory X509TrustManager.implement( - $X509TrustManager $impl, - ) { - final $i = jni$_.JImplementer(); - implementIn($i, $impl); - return X509TrustManager.fromReference( - $i.implementReference(), - ); - } -} - -abstract base mixin class $X509TrustManager { - factory $X509TrustManager({ - required void Function(jni$_.JArray? x509Certificates, - jni$_.JString? string) - checkClientTrusted, - bool checkClientTrusted$async, - required void Function(jni$_.JArray? x509Certificates, - jni$_.JString? string) - checkServerTrusted, - bool checkServerTrusted$async, - required jni$_.JArray? Function() getAcceptedIssuers, - }) = _$X509TrustManager; - - void checkClientTrusted( - jni$_.JArray? x509Certificates, jni$_.JString? string); - bool get checkClientTrusted$async => false; - void checkServerTrusted( - jni$_.JArray? x509Certificates, jni$_.JString? string); - bool get checkServerTrusted$async => false; - jni$_.JArray? getAcceptedIssuers(); -} + void checkClientTrusted( + jni$_.JArray? x509Certificates, jni$_.JString? string); + core$_.bool get checkClientTrusted$async => false; + void checkServerTrusted( + jni$_.JArray? x509Certificates, jni$_.JString? string); + core$_.bool get checkServerTrusted$async => false; + jni$_.JArray? getAcceptedIssuers(); +} final class _$X509TrustManager with $X509TrustManager { _$X509TrustManager({ @@ -17799,10 +15127,10 @@ final class _$X509TrustManager with $X509TrustManager { final void Function(jni$_.JArray? x509Certificates, jni$_.JString? string) _checkClientTrusted; - final bool checkClientTrusted$async; + final core$_.bool checkClientTrusted$async; final void Function(jni$_.JArray? x509Certificates, jni$_.JString? string) _checkServerTrusted; - final bool checkServerTrusted$async; + final core$_.bool checkServerTrusted$async; final jni$_.JArray? Function() _getAcceptedIssuers; void checkClientTrusted( @@ -17820,105 +15148,27 @@ final class _$X509TrustManager with $X509TrustManager { } } -final class $X509TrustManager$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $X509TrustManager$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljavax/net/ssl/X509TrustManager;'; - - @jni$_.internal - @core$_.override - X509TrustManager? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : X509TrustManager.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($X509TrustManager$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($X509TrustManager$NullableType) && - other is $X509TrustManager$NullableType; - } -} - -final class $X509TrustManager$Type extends jni$_.JObjType { +final class $X509TrustManager$Type$ extends jni$_.JType { @jni$_.internal - const $X509TrustManager$Type(); + const $X509TrustManager$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljavax/net/ssl/X509TrustManager;'; - - @jni$_.internal - @core$_.override - X509TrustManager fromReference(jni$_.JReference reference) => - X509TrustManager.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $X509TrustManager$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($X509TrustManager$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($X509TrustManager$Type) && - other is $X509TrustManager$Type; - } } /// from: `javax.net.SocketFactory` -class SocketFactory extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SocketFactory.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SocketFactory._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'javax/net/SocketFactory'); /// The type which includes information such as the signature of this class. - static const nullableType = $SocketFactory$NullableType(); - static const type = $SocketFactory$Type(); - static final _id_getDefault = _class.staticMethodId( + static const jni$_.JType type = $SocketFactory$Type$(); + static final _id_get$default$ = _class.staticMethodId( r'getDefault', r'()Ljavax/net/SocketFactory;', ); - static final _getDefault = jni$_.ProtectedJniExtensions.lookup< + static final _get$default$ = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -17932,13 +15182,15 @@ class SocketFactory extends jni$_.JObject { /// from: `static public javax.net.SocketFactory getDefault()` /// The returned object must be released after use, by calling the [release] method. - static SocketFactory? getDefault() { - return _getDefault( - _class.reference.pointer, _id_getDefault as jni$_.JMethodIDPtr) - .object(const $SocketFactory$NullableType()); + static SocketFactory? get default$ { + final _$$classRef = _class.reference; + return _get$default$(_$$classRef.pointer, _id_get$default$.pointer) + .object(); } +} - static final _id_createSocket = _class.instanceMethodId( +extension SocketFactory$$Methods on SocketFactory { + static final _id_createSocket = SocketFactory._class.instanceMethodId( r'createSocket', r'()Ljava/net/Socket;', ); @@ -17957,13 +15209,13 @@ class SocketFactory extends jni$_.JObject { /// from: `public java.net.Socket createSocket()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? createSocket() { - return _createSocket( - reference.pointer, _id_createSocket as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + Socket? createSocket() { + final _$$selfRef = reference; + return _createSocket(_$$selfRef.pointer, _id_createSocket.pointer) + .object(); } - static final _id_createSocket$1 = _class.instanceMethodId( + static final _id_createSocket$1 = SocketFactory._class.instanceMethodId( r'createSocket', r'(Ljava/lang/String;I)Ljava/net/Socket;', ); @@ -17978,21 +15230,22 @@ class SocketFactory extends jni$_.JObject { 'globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); /// from: `public abstract java.net.Socket createSocket(java.lang.String string, int i)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? createSocket$1( + Socket? createSocket$1( jni$_.JString? string, - int i, + core$_.int i, ) { + final _$$selfRef = reference; final _$string = string?.reference ?? jni$_.jNullReference; - return _createSocket$1(reference.pointer, - _id_createSocket$1 as jni$_.JMethodIDPtr, _$string.pointer, i) - .object(const jni$_.JObjectNullableType()); + return _createSocket$1( + _$$selfRef.pointer, _id_createSocket$1.pointer, _$string.pointer, i) + .object(); } - static final _id_createSocket$2 = _class.instanceMethodId( + static final _id_createSocket$2 = SocketFactory._class.instanceMethodId( r'createSocket', r'(Ljava/lang/String;ILjava/net/InetAddress;I)Ljava/net/Socket;', ); @@ -18014,31 +15267,27 @@ class SocketFactory extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer, - int)>(); + core$_.int)>(); /// from: `public abstract java.net.Socket createSocket(java.lang.String string, int i, java.net.InetAddress inetAddress, int i1)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? createSocket$2( + Socket? createSocket$2( jni$_.JString? string, - int i, - jni$_.JObject? inetAddress, - int i1, + core$_.int i, + InetAddress? inetAddress, + core$_.int i1, ) { + final _$$selfRef = reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$inetAddress = inetAddress?.reference ?? jni$_.jNullReference; - return _createSocket$2( - reference.pointer, - _id_createSocket$2 as jni$_.JMethodIDPtr, - _$string.pointer, - i, - _$inetAddress.pointer, - i1) - .object(const jni$_.JObjectNullableType()); + return _createSocket$2(_$$selfRef.pointer, _id_createSocket$2.pointer, + _$string.pointer, i, _$inetAddress.pointer, i1) + .object(); } - static final _id_createSocket$3 = _class.instanceMethodId( + static final _id_createSocket$3 = SocketFactory._class.instanceMethodId( r'createSocket', r'(Ljava/net/InetAddress;I)Ljava/net/Socket;', ); @@ -18053,21 +15302,22 @@ class SocketFactory extends jni$_.JObject { 'globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); /// from: `public abstract java.net.Socket createSocket(java.net.InetAddress inetAddress, int i)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? createSocket$3( - jni$_.JObject? inetAddress, - int i, + Socket? createSocket$3( + InetAddress? inetAddress, + core$_.int i, ) { + final _$$selfRef = reference; final _$inetAddress = inetAddress?.reference ?? jni$_.jNullReference; - return _createSocket$3(reference.pointer, - _id_createSocket$3 as jni$_.JMethodIDPtr, _$inetAddress.pointer, i) - .object(const jni$_.JObjectNullableType()); + return _createSocket$3(_$$selfRef.pointer, _id_createSocket$3.pointer, + _$inetAddress.pointer, i) + .object(); } - static final _id_createSocket$4 = _class.instanceMethodId( + static final _id_createSocket$4 = SocketFactory._class.instanceMethodId( r'createSocket', r'(Ljava/net/InetAddress;ILjava/net/InetAddress;I)Ljava/net/Socket;', ); @@ -18089,128 +15339,49 @@ class SocketFactory extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, + core$_.int, jni$_.Pointer, - int)>(); + core$_.int)>(); /// from: `public abstract java.net.Socket createSocket(java.net.InetAddress inetAddress, int i, java.net.InetAddress inetAddress1, int i1)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? createSocket$4( - jni$_.JObject? inetAddress, - int i, - jni$_.JObject? inetAddress1, - int i1, + Socket? createSocket$4( + InetAddress? inetAddress, + core$_.int i, + InetAddress? inetAddress1, + core$_.int i1, ) { + final _$$selfRef = reference; final _$inetAddress = inetAddress?.reference ?? jni$_.jNullReference; final _$inetAddress1 = inetAddress1?.reference ?? jni$_.jNullReference; - return _createSocket$4( - reference.pointer, - _id_createSocket$4 as jni$_.JMethodIDPtr, - _$inetAddress.pointer, - i, - _$inetAddress1.pointer, - i1) - .object(const jni$_.JObjectNullableType()); - } -} - -final class $SocketFactory$NullableType extends jni$_.JObjType { - @jni$_.internal - const $SocketFactory$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljavax/net/SocketFactory;'; - - @jni$_.internal - @core$_.override - SocketFactory? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : SocketFactory.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SocketFactory$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SocketFactory$NullableType) && - other is $SocketFactory$NullableType; + return _createSocket$4(_$$selfRef.pointer, _id_createSocket$4.pointer, + _$inetAddress.pointer, i, _$inetAddress1.pointer, i1) + .object(); } } -final class $SocketFactory$Type extends jni$_.JObjType { +final class $SocketFactory$Type$ extends jni$_.JType { @jni$_.internal - const $SocketFactory$Type(); + const $SocketFactory$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljavax/net/SocketFactory;'; - - @jni$_.internal - @core$_.override - SocketFactory fromReference(jni$_.JReference reference) => - SocketFactory.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SocketFactory$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SocketFactory$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SocketFactory$Type) && - other is $SocketFactory$Type; - } } /// from: `javax.net.ssl.SSLSocketFactory` -class SSLSocketFactory extends SocketFactory { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SSLSocketFactory.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type SSLSocketFactory._(jni$_.JObject _$this) + implements SocketFactory { static final _class = jni$_.JClass.forName(r'javax/net/ssl/SSLSocketFactory'); /// The type which includes information such as the signature of this class. - static const nullableType = $SSLSocketFactory$NullableType(); - static const type = $SSLSocketFactory$Type(); - static final _id_getDefault = _class.staticMethodId( + static const jni$_.JType type = $SSLSocketFactory$Type$(); + static final _id_get$default$ = _class.staticMethodId( r'getDefault', r'()Ljavax/net/SocketFactory;', ); - static final _getDefault = jni$_.ProtectedJniExtensions.lookup< + static final _get$default$ = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -18224,18 +15395,63 @@ class SSLSocketFactory extends SocketFactory { /// from: `static public javax.net.SocketFactory getDefault()` /// The returned object must be released after use, by calling the [release] method. - static SocketFactory? getDefault() { - return _getDefault( - _class.reference.pointer, _id_getDefault as jni$_.JMethodIDPtr) - .object(const $SocketFactory$NullableType()); + static SocketFactory? get default$ { + final _$$classRef = _class.reference; + return _get$default$(_$$classRef.pointer, _id_get$default$.pointer) + .object(); + } +} + +extension SSLSocketFactory$$Methods on SSLSocketFactory { + static final _id_createSocket$5 = SSLSocketFactory._class.instanceMethodId( + r'createSocket', + r'(Ljava/net/Socket;Ljava/lang/String;IZ)Ljava/net/Socket;', + ); + + static final _createSocket$5 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32 + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, + core$_.int, + core$_.int)>(); + + /// from: `public abstract java.net.Socket createSocket(java.net.Socket socket, java.lang.String string, int i, boolean z)` + /// The returned object must be released after use, by calling the [release] method. + Socket? createSocket$5( + Socket? socket, + jni$_.JString? string, + core$_.int i, + core$_.bool z, + ) { + final _$$selfRef = reference; + final _$socket = socket?.reference ?? jni$_.jNullReference; + final _$string = string?.reference ?? jni$_.jNullReference; + return _createSocket$5(_$$selfRef.pointer, _id_createSocket$5.pointer, + _$socket.pointer, _$string.pointer, i, z ? 1 : 0) + .object(); } - static final _id_getDefaultCipherSuites = _class.instanceMethodId( + static final _id_get$defaultCipherSuites = + SSLSocketFactory._class.instanceMethodId( r'getDefaultCipherSuites', r'()[Ljava/lang/String;', ); - static final _getDefaultCipherSuites = jni$_.ProtectedJniExtensions.lookup< + static final _get$defaultCipherSuites = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -18249,20 +15465,20 @@ class SSLSocketFactory extends SocketFactory { /// from: `public abstract java.lang.String[] getDefaultCipherSuites()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JArray? getDefaultCipherSuites() { - return _getDefaultCipherSuites( - reference.pointer, _id_getDefaultCipherSuites as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - jni$_.JStringNullableType())); + jni$_.JArray? get defaultCipherSuites { + final _$$selfRef = reference; + return _get$defaultCipherSuites( + _$$selfRef.pointer, _id_get$defaultCipherSuites.pointer) + .object?>(); } - static final _id_getSupportedCipherSuites = _class.instanceMethodId( + static final _id_get$supportedCipherSuites = + SSLSocketFactory._class.instanceMethodId( r'getSupportedCipherSuites', r'()[Ljava/lang/String;', ); - static final _getSupportedCipherSuites = jni$_.ProtectedJniExtensions.lookup< + static final _get$supportedCipherSuites = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -18276,209 +15492,58 @@ class SSLSocketFactory extends SocketFactory { /// from: `public abstract java.lang.String[] getSupportedCipherSuites()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JArray? getSupportedCipherSuites() { - return _getSupportedCipherSuites(reference.pointer, - _id_getSupportedCipherSuites as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - jni$_.JStringNullableType())); + jni$_.JArray? get supportedCipherSuites { + final _$$selfRef = reference; + return _get$supportedCipherSuites( + _$$selfRef.pointer, _id_get$supportedCipherSuites.pointer) + .object?>(); } +} - static final _id_createSocket$5 = _class.instanceMethodId( - r'createSocket', - r'(Ljava/net/Socket;Ljava/lang/String;IZ)Ljava/net/Socket;', +final class $SSLSocketFactory$Type$ extends jni$_.JType { + @jni$_.internal + const $SSLSocketFactory$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljavax/net/ssl/SSLSocketFactory;'; +} + +/// from: `javax.net.ssl.SSLContext` +extension type SSLContext._(jni$_.JObject _$this) implements jni$_.JObject { + static final _class = jni$_.JClass.forName(r'javax/net/ssl/SSLContext'); + + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = $SSLContext$Type$(); + static final _id_get$default$ = _class.staticMethodId( + r'getDefault', + r'()Ljavax/net/ssl/SSLContext;', ); - static final _createSocket$5 = jni$_.ProtectedJniExtensions.lookup< + static final _get$default$ = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallObjectMethod') + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer, - int, - int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - /// from: `public abstract java.net.Socket createSocket(java.net.Socket socket, java.lang.String string, int i, boolean z)` + /// from: `static public javax.net.ssl.SSLContext getDefault()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? createSocket$5( - jni$_.JObject? socket, - jni$_.JString? string, - int i, - bool z, - ) { - final _$socket = socket?.reference ?? jni$_.jNullReference; - final _$string = string?.reference ?? jni$_.jNullReference; - return _createSocket$5( - reference.pointer, - _id_createSocket$5 as jni$_.JMethodIDPtr, - _$socket.pointer, - _$string.pointer, - i, - z ? 1 : 0) - .object(const jni$_.JObjectNullableType()); + static SSLContext? get default$ { + final _$$classRef = _class.reference; + return _get$default$(_$$classRef.pointer, _id_get$default$.pointer) + .object(); } -} - -final class $SSLSocketFactory$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $SSLSocketFactory$NullableType(); - @jni$_.internal - @core$_.override - String get signature => r'Ljavax/net/ssl/SSLSocketFactory;'; - - @jni$_.internal - @core$_.override - SSLSocketFactory? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SSLSocketFactory.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const $SocketFactory$NullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 2; - - @core$_.override - int get hashCode => ($SSLSocketFactory$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SSLSocketFactory$NullableType) && - other is $SSLSocketFactory$NullableType; - } -} - -final class $SSLSocketFactory$Type extends jni$_.JObjType { - @jni$_.internal - const $SSLSocketFactory$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljavax/net/ssl/SSLSocketFactory;'; - - @jni$_.internal - @core$_.override - SSLSocketFactory fromReference(jni$_.JReference reference) => - SSLSocketFactory.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const $SocketFactory$NullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SSLSocketFactory$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 2; - - @core$_.override - int get hashCode => ($SSLSocketFactory$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SSLSocketFactory$Type) && - other is $SSLSocketFactory$Type; - } -} - -/// from: `javax.net.ssl.SSLContext` -class SSLContext extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SSLContext.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = jni$_.JClass.forName(r'javax/net/ssl/SSLContext'); - - /// The type which includes information such as the signature of this class. - static const nullableType = $SSLContext$NullableType(); - static const type = $SSLContext$Type(); - static final _id_getDefault = _class.staticMethodId( - r'getDefault', - r'()Ljavax/net/ssl/SSLContext;', - ); - - static final _getDefault = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `static public javax.net.ssl.SSLContext getDefault()` - /// The returned object must be released after use, by calling the [release] method. - static SSLContext? getDefault() { - return _getDefault( - _class.reference.pointer, _id_getDefault as jni$_.JMethodIDPtr) - .object(const $SSLContext$NullableType()); - } - - static final _id_setDefault = _class.staticMethodId( - r'setDefault', - r'(Ljavax/net/ssl/SSLContext;)V', - ); - - static final _setDefault = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `static public void setDefault(javax.net.ssl.SSLContext sSLContext)` - static void setDefault( - SSLContext? sSLContext, - ) { - final _$sSLContext = sSLContext?.reference ?? jni$_.jNullReference; - _setDefault(_class.reference.pointer, _id_setDefault as jni$_.JMethodIDPtr, - _$sSLContext.pointer) - .check(); - } - - static final _id_getInstance = _class.staticMethodId( - r'getInstance', - r'(Ljava/lang/String;)Ljavax/net/ssl/SSLContext;', - ); + static final _id_getInstance = _class.staticMethodId( + r'getInstance', + r'(Ljava/lang/String;)Ljavax/net/ssl/SSLContext;', + ); static final _getInstance = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< @@ -18496,10 +15561,11 @@ class SSLContext extends jni$_.JObject { static SSLContext? getInstance( jni$_.JString? string, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; - return _getInstance(_class.reference.pointer, - _id_getInstance as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $SSLContext$NullableType()); + return _getInstance( + _$$classRef.pointer, _id_getInstance.pointer, _$string.pointer) + .object(); } static final _id_getInstance$1 = _class.staticMethodId( @@ -18530,14 +15596,12 @@ class SSLContext extends jni$_.JObject { jni$_.JString? string, jni$_.JString? string1, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - return _getInstance$1( - _class.reference.pointer, - _id_getInstance$1 as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer) - .object(const $SSLContext$NullableType()); + return _getInstance$1(_$$classRef.pointer, _id_getInstance$1.pointer, + _$string.pointer, _$string1.pointer) + .object(); } static final _id_getInstance$2 = _class.staticMethodId( @@ -18566,49 +15630,49 @@ class SSLContext extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static SSLContext? getInstance$2( jni$_.JString? string, - jni$_.JObject? provider, + Provider? provider, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$provider = provider?.reference ?? jni$_.jNullReference; - return _getInstance$2( - _class.reference.pointer, - _id_getInstance$2 as jni$_.JMethodIDPtr, - _$string.pointer, - _$provider.pointer) - .object(const $SSLContext$NullableType()); + return _getInstance$2(_$$classRef.pointer, _id_getInstance$2.pointer, + _$string.pointer, _$provider.pointer) + .object(); } - static final _id_getProtocol = _class.instanceMethodId( - r'getProtocol', - r'()Ljava/lang/String;', + static final _id_set$default$ = _class.staticMethodId( + r'setDefault', + r'(Ljavax/net/ssl/SSLContext;)V', ); - static final _getProtocol = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') + static final _set$default$ = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final java.lang.String getProtocol()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getProtocol() { - return _getProtocol( - reference.pointer, _id_getProtocol as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + /// from: `static public void setDefault(javax.net.ssl.SSLContext sSLContext)` + static set default$(SSLContext? sSLContext) { + final _$$classRef = _class.reference; + final _$sSLContext = sSLContext?.reference ?? jni$_.jNullReference; + _set$default$( + _$$classRef.pointer, _id_set$default$.pointer, _$sSLContext.pointer) + .check(); } +} - static final _id_getProvider = _class.instanceMethodId( - r'getProvider', - r'()Ljava/security/Provider;', +extension SSLContext$$Methods on SSLContext { + static final _id_createSSLEngine = SSLContext._class.instanceMethodId( + r'createSSLEngine', + r'()Ljavax/net/ssl/SSLEngine;', ); - static final _getProvider = jni$_.ProtectedJniExtensions.lookup< + static final _createSSLEngine = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -18620,62 +15684,51 @@ class SSLContext extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final java.security.Provider getProvider()` + /// from: `public final javax.net.ssl.SSLEngine createSSLEngine()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getProvider() { - return _getProvider( - reference.pointer, _id_getProvider as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + SSLEngine? createSSLEngine() { + final _$$selfRef = reference; + return _createSSLEngine(_$$selfRef.pointer, _id_createSSLEngine.pointer) + .object(); } - static final _id_init = _class.instanceMethodId( - r'init', - r'([Ljavax/net/ssl/KeyManager;[Ljavax/net/ssl/TrustManager;Ljava/security/SecureRandom;)V', + static final _id_createSSLEngine$1 = SSLContext._class.instanceMethodId( + r'createSSLEngine', + r'(Ljava/lang/String;I)Ljavax/net/ssl/SSLEngine;', ); - static final _init = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') + static final _createSSLEngine$1 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_ + .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( + 'globalEnv_CallObjectMethod') .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); - /// from: `public final void init(javax.net.ssl.KeyManager[] keyManagers, javax.net.ssl.TrustManager[] trustManagers, java.security.SecureRandom secureRandom)` - void init( - jni$_.JArray? keyManagers, - jni$_.JArray? trustManagers, - SecureRandom? secureRandom, + /// from: `public final javax.net.ssl.SSLEngine createSSLEngine(java.lang.String string, int i)` + /// The returned object must be released after use, by calling the [release] method. + SSLEngine? createSSLEngine$1( + jni$_.JString? string, + core$_.int i, ) { - final _$keyManagers = keyManagers?.reference ?? jni$_.jNullReference; - final _$trustManagers = trustManagers?.reference ?? jni$_.jNullReference; - final _$secureRandom = secureRandom?.reference ?? jni$_.jNullReference; - _init( - reference.pointer, - _id_init as jni$_.JMethodIDPtr, - _$keyManagers.pointer, - _$trustManagers.pointer, - _$secureRandom.pointer) - .check(); + final _$$selfRef = reference; + final _$string = string?.reference ?? jni$_.jNullReference; + return _createSSLEngine$1(_$$selfRef.pointer, _id_createSSLEngine$1.pointer, + _$string.pointer, i) + .object(); } - static final _id_getSocketFactory = _class.instanceMethodId( - r'getSocketFactory', - r'()Ljavax/net/ssl/SSLSocketFactory;', + static final _id_get$clientSessionContext = + SSLContext._class.instanceMethodId( + r'getClientSessionContext', + r'()Ljavax/net/ssl/SSLSessionContext;', ); - static final _getSocketFactory = jni$_.ProtectedJniExtensions.lookup< + static final _get$clientSessionContext = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -18687,20 +15740,22 @@ class SSLContext extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final javax.net.ssl.SSLSocketFactory getSocketFactory()` + /// from: `public final javax.net.ssl.SSLSessionContext getClientSessionContext()` /// The returned object must be released after use, by calling the [release] method. - SSLSocketFactory? getSocketFactory() { - return _getSocketFactory( - reference.pointer, _id_getSocketFactory as jni$_.JMethodIDPtr) - .object(const $SSLSocketFactory$NullableType()); + SSLSessionContext? get clientSessionContext { + final _$$selfRef = reference; + return _get$clientSessionContext( + _$$selfRef.pointer, _id_get$clientSessionContext.pointer) + .object(); } - static final _id_getServerSocketFactory = _class.instanceMethodId( - r'getServerSocketFactory', - r'()Ljavax/net/ssl/SSLServerSocketFactory;', + static final _id_get$defaultSSLParameters = + SSLContext._class.instanceMethodId( + r'getDefaultSSLParameters', + r'()Ljavax/net/ssl/SSLParameters;', ); - static final _getServerSocketFactory = jni$_.ProtectedJniExtensions.lookup< + static final _get$defaultSSLParameters = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -18712,20 +15767,21 @@ class SSLContext extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final javax.net.ssl.SSLServerSocketFactory getServerSocketFactory()` + /// from: `public final javax.net.ssl.SSLParameters getDefaultSSLParameters()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getServerSocketFactory() { - return _getServerSocketFactory( - reference.pointer, _id_getServerSocketFactory as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + SSLParameters? get defaultSSLParameters { + final _$$selfRef = reference; + return _get$defaultSSLParameters( + _$$selfRef.pointer, _id_get$defaultSSLParameters.pointer) + .object(); } - static final _id_createSSLEngine = _class.instanceMethodId( - r'createSSLEngine', - r'()Ljavax/net/ssl/SSLEngine;', + static final _id_get$protocol = SSLContext._class.instanceMethodId( + r'getProtocol', + r'()Ljava/lang/String;', ); - static final _createSSLEngine = jni$_.ProtectedJniExtensions.lookup< + static final _get$protocol = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -18737,49 +15793,46 @@ class SSLContext extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final javax.net.ssl.SSLEngine createSSLEngine()` + /// from: `public final java.lang.String getProtocol()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? createSSLEngine() { - return _createSSLEngine( - reference.pointer, _id_createSSLEngine as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JString? get protocol { + final _$$selfRef = reference; + return _get$protocol(_$$selfRef.pointer, _id_get$protocol.pointer) + .object(); } - static final _id_createSSLEngine$1 = _class.instanceMethodId( - r'createSSLEngine', - r'(Ljava/lang/String;I)Ljavax/net/ssl/SSLEngine;', + static final _id_get$provider = SSLContext._class.instanceMethodId( + r'getProvider', + r'()Ljava/security/Provider;', ); - static final _createSSLEngine$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallObjectMethod') + static final _get$provider = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - /// from: `public final javax.net.ssl.SSLEngine createSSLEngine(java.lang.String string, int i)` + /// from: `public final java.security.Provider getProvider()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? createSSLEngine$1( - jni$_.JString? string, - int i, - ) { - final _$string = string?.reference ?? jni$_.jNullReference; - return _createSSLEngine$1(reference.pointer, - _id_createSSLEngine$1 as jni$_.JMethodIDPtr, _$string.pointer, i) - .object(const jni$_.JObjectNullableType()); + Provider? get provider { + final _$$selfRef = reference; + return _get$provider(_$$selfRef.pointer, _id_get$provider.pointer) + .object(); } - static final _id_getServerSessionContext = _class.instanceMethodId( + static final _id_get$serverSessionContext = + SSLContext._class.instanceMethodId( r'getServerSessionContext', r'()Ljavax/net/ssl/SSLSessionContext;', ); - static final _getServerSessionContext = jni$_.ProtectedJniExtensions.lookup< + static final _get$serverSessionContext = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -18793,18 +15846,19 @@ class SSLContext extends jni$_.JObject { /// from: `public final javax.net.ssl.SSLSessionContext getServerSessionContext()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getServerSessionContext() { - return _getServerSessionContext(reference.pointer, - _id_getServerSessionContext as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + SSLSessionContext? get serverSessionContext { + final _$$selfRef = reference; + return _get$serverSessionContext( + _$$selfRef.pointer, _id_get$serverSessionContext.pointer) + .object(); } - static final _id_getClientSessionContext = _class.instanceMethodId( - r'getClientSessionContext', - r'()Ljavax/net/ssl/SSLSessionContext;', + static final _id_get$serverSocketFactory = SSLContext._class.instanceMethodId( + r'getServerSocketFactory', + r'()Ljavax/net/ssl/SSLServerSocketFactory;', ); - static final _getClientSessionContext = jni$_.ProtectedJniExtensions.lookup< + static final _get$serverSocketFactory = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -18816,20 +15870,21 @@ class SSLContext extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final javax.net.ssl.SSLSessionContext getClientSessionContext()` + /// from: `public final javax.net.ssl.SSLServerSocketFactory getServerSocketFactory()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getClientSessionContext() { - return _getClientSessionContext(reference.pointer, - _id_getClientSessionContext as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + SSLServerSocketFactory? get serverSocketFactory { + final _$$selfRef = reference; + return _get$serverSocketFactory( + _$$selfRef.pointer, _id_get$serverSocketFactory.pointer) + .object(); } - static final _id_getDefaultSSLParameters = _class.instanceMethodId( - r'getDefaultSSLParameters', - r'()Ljavax/net/ssl/SSLParameters;', + static final _id_get$socketFactory = SSLContext._class.instanceMethodId( + r'getSocketFactory', + r'()Ljavax/net/ssl/SSLSocketFactory;', ); - static final _getDefaultSSLParameters = jni$_.ProtectedJniExtensions.lookup< + static final _get$socketFactory = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -18841,137 +15896,106 @@ class SSLContext extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final javax.net.ssl.SSLParameters getDefaultSSLParameters()` + /// from: `public final javax.net.ssl.SSLSocketFactory getSocketFactory()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getDefaultSSLParameters() { - return _getDefaultSSLParameters(reference.pointer, - _id_getDefaultSSLParameters as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + SSLSocketFactory? get socketFactory { + final _$$selfRef = reference; + return _get$socketFactory(_$$selfRef.pointer, _id_get$socketFactory.pointer) + .object(); } - static final _id_getSupportedSSLParameters = _class.instanceMethodId( + static final _id_get$supportedSSLParameters = + SSLContext._class.instanceMethodId( r'getSupportedSSLParameters', r'()Ljavax/net/ssl/SSLParameters;', ); - static final _getSupportedSSLParameters = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$supportedSSLParameters = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); /// from: `public final javax.net.ssl.SSLParameters getSupportedSSLParameters()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getSupportedSSLParameters() { - return _getSupportedSSLParameters(reference.pointer, - _id_getSupportedSSLParameters as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + SSLParameters? get supportedSSLParameters { + final _$$selfRef = reference; + return _get$supportedSSLParameters( + _$$selfRef.pointer, _id_get$supportedSSLParameters.pointer) + .object(); } -} -final class $SSLContext$NullableType extends jni$_.JObjType { - @jni$_.internal - const $SSLContext$NullableType(); + static final _id_init = SSLContext._class.instanceMethodId( + r'init', + r'([Ljavax/net/ssl/KeyManager;[Ljavax/net/ssl/TrustManager;Ljava/security/SecureRandom;)V', + ); - @jni$_.internal - @core$_.override - String get signature => r'Ljavax/net/ssl/SSLContext;'; - - @jni$_.internal - @core$_.override - SSLContext? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : SSLContext.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SSLContext$NullableType).hashCode; + static final _init = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer)>(); - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SSLContext$NullableType) && - other is $SSLContext$NullableType; + /// from: `public final void init(javax.net.ssl.KeyManager[] keyManagers, javax.net.ssl.TrustManager[] trustManagers, java.security.SecureRandom secureRandom)` + void init( + jni$_.JArray? keyManagers, + jni$_.JArray? trustManagers, + SecureRandom? secureRandom, + ) { + final _$$selfRef = reference; + final _$keyManagers = keyManagers?.reference ?? jni$_.jNullReference; + final _$trustManagers = trustManagers?.reference ?? jni$_.jNullReference; + final _$secureRandom = secureRandom?.reference ?? jni$_.jNullReference; + _init(_$$selfRef.pointer, _id_init.pointer, _$keyManagers.pointer, + _$trustManagers.pointer, _$secureRandom.pointer) + .check(); } } -final class $SSLContext$Type extends jni$_.JObjType { +final class $SSLContext$Type$ extends jni$_.JType { @jni$_.internal - const $SSLContext$Type(); + const $SSLContext$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljavax/net/ssl/SSLContext;'; - - @jni$_.internal - @core$_.override - SSLContext fromReference(jni$_.JReference reference) => - SSLContext.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SSLContext$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SSLContext$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SSLContext$Type) && other is $SSLContext$Type; - } } /// from: `javax.net.ssl.TrustManagerFactory` -class TrustManagerFactory extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - TrustManagerFactory.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type TrustManagerFactory._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'javax/net/ssl/TrustManagerFactory'); /// The type which includes information such as the signature of this class. - static const nullableType = $TrustManagerFactory$NullableType(); - static const type = $TrustManagerFactory$Type(); - static final _id_getDefaultAlgorithm = _class.staticMethodId( + static const jni$_.JType type = + $TrustManagerFactory$Type$(); + static final _id_get$defaultAlgorithm = _class.staticMethodId( r'getDefaultAlgorithm', r'()Ljava/lang/String;', ); - static final _getDefaultAlgorithm = jni$_.ProtectedJniExtensions.lookup< + static final _get$defaultAlgorithm = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -18985,35 +16009,11 @@ class TrustManagerFactory extends jni$_.JObject { /// from: `static public final java.lang.String getDefaultAlgorithm()` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? getDefaultAlgorithm() { - return _getDefaultAlgorithm(_class.reference.pointer, - _id_getDefaultAlgorithm as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); - } - - static final _id_getAlgorithm = _class.instanceMethodId( - r'getAlgorithm', - r'()Ljava/lang/String;', - ); - - static final _getAlgorithm = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public final java.lang.String getAlgorithm()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getAlgorithm() { - return _getAlgorithm( - reference.pointer, _id_getAlgorithm as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + static jni$_.JString? get defaultAlgorithm { + final _$$classRef = _class.reference; + return _get$defaultAlgorithm( + _$$classRef.pointer, _id_get$defaultAlgorithm.pointer) + .object(); } static final _id_getInstance = _class.staticMethodId( @@ -19037,11 +16037,11 @@ class TrustManagerFactory extends jni$_.JObject { static TrustManagerFactory? getInstance( jni$_.JString? string, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; - return _getInstance(_class.reference.pointer, - _id_getInstance as jni$_.JMethodIDPtr, _$string.pointer) - .object( - const $TrustManagerFactory$NullableType()); + return _getInstance( + _$$classRef.pointer, _id_getInstance.pointer, _$string.pointer) + .object(); } static final _id_getInstance$1 = _class.staticMethodId( @@ -19072,15 +16072,12 @@ class TrustManagerFactory extends jni$_.JObject { jni$_.JString? string, jni$_.JString? string1, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - return _getInstance$1( - _class.reference.pointer, - _id_getInstance$1 as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer) - .object( - const $TrustManagerFactory$NullableType()); + return _getInstance$1(_$$classRef.pointer, _id_getInstance$1.pointer, + _$string.pointer, _$string1.pointer) + .object(); } static final _id_getInstance$2 = _class.staticMethodId( @@ -19109,25 +16106,49 @@ class TrustManagerFactory extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static TrustManagerFactory? getInstance$2( jni$_.JString? string, - jni$_.JObject? provider, + Provider? provider, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$provider = provider?.reference ?? jni$_.jNullReference; - return _getInstance$2( - _class.reference.pointer, - _id_getInstance$2 as jni$_.JMethodIDPtr, - _$string.pointer, - _$provider.pointer) - .object( - const $TrustManagerFactory$NullableType()); + return _getInstance$2(_$$classRef.pointer, _id_getInstance$2.pointer, + _$string.pointer, _$provider.pointer) + .object(); + } +} + +extension TrustManagerFactory$$Methods on TrustManagerFactory { + static final _id_get$algorithm = TrustManagerFactory._class.instanceMethodId( + r'getAlgorithm', + r'()Ljava/lang/String;', + ); + + static final _get$algorithm = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public final java.lang.String getAlgorithm()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JString? get algorithm { + final _$$selfRef = reference; + return _get$algorithm(_$$selfRef.pointer, _id_get$algorithm.pointer) + .object(); } - static final _id_getProvider = _class.instanceMethodId( + static final _id_get$provider = TrustManagerFactory._class.instanceMethodId( r'getProvider', r'()Ljava/security/Provider;', ); - static final _getProvider = jni$_.ProtectedJniExtensions.lookup< + static final _get$provider = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -19141,13 +16162,39 @@ class TrustManagerFactory extends jni$_.JObject { /// from: `public final java.security.Provider getProvider()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getProvider() { - return _getProvider( - reference.pointer, _id_getProvider as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + Provider? get provider { + final _$$selfRef = reference; + return _get$provider(_$$selfRef.pointer, _id_get$provider.pointer) + .object(); + } + + static final _id_get$trustManagers = + TrustManagerFactory._class.instanceMethodId( + r'getTrustManagers', + r'()[Ljavax/net/ssl/TrustManager;', + ); + + static final _get$trustManagers = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public final javax.net.ssl.TrustManager[] getTrustManagers()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JArray? get trustManagers { + final _$$selfRef = reference; + return _get$trustManagers(_$$selfRef.pointer, _id_get$trustManagers.pointer) + .object?>(); } - static final _id_init = _class.instanceMethodId( + static final _id_init = TrustManagerFactory._class.instanceMethodId( r'init', r'(Ljava/security/KeyStore;)V', ); @@ -19167,12 +16214,12 @@ class TrustManagerFactory extends jni$_.JObject { void init( KeyStore? keyStore, ) { + final _$$selfRef = reference; final _$keyStore = keyStore?.reference ?? jni$_.jNullReference; - _init(reference.pointer, _id_init as jni$_.JMethodIDPtr, _$keyStore.pointer) - .check(); + _init(_$$selfRef.pointer, _id_init.pointer, _$keyStore.pointer).check(); } - static final _id_init$1 = _class.instanceMethodId( + static final _id_init$1 = TrustManagerFactory._class.instanceMethodId( r'init', r'(Ljavax/net/ssl/ManagerFactoryParameters;)V', ); @@ -19190,142 +16237,38 @@ class TrustManagerFactory extends jni$_.JObject { /// from: `public final void init(javax.net.ssl.ManagerFactoryParameters managerFactoryParameters)` void init$1( - jni$_.JObject? managerFactoryParameters, + ManagerFactoryParameters? managerFactoryParameters, ) { + final _$$selfRef = reference; final _$managerFactoryParameters = managerFactoryParameters?.reference ?? jni$_.jNullReference; - _init$1(reference.pointer, _id_init$1 as jni$_.JMethodIDPtr, + _init$1(_$$selfRef.pointer, _id_init$1.pointer, _$managerFactoryParameters.pointer) .check(); } - - static final _id_getTrustManagers = _class.instanceMethodId( - r'getTrustManagers', - r'()[Ljavax/net/ssl/TrustManager;', - ); - - static final _getTrustManagers = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public final javax.net.ssl.TrustManager[] getTrustManagers()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JArray? getTrustManagers() { - return _getTrustManagers( - reference.pointer, _id_getTrustManagers as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - $TrustManager$NullableType())); - } -} - -final class $TrustManagerFactory$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $TrustManagerFactory$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljavax/net/ssl/TrustManagerFactory;'; - - @jni$_.internal - @core$_.override - TrustManagerFactory? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : TrustManagerFactory.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($TrustManagerFactory$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($TrustManagerFactory$NullableType) && - other is $TrustManagerFactory$NullableType; - } } -final class $TrustManagerFactory$Type - extends jni$_.JObjType { +final class $TrustManagerFactory$Type$ + extends jni$_.JType { @jni$_.internal - const $TrustManagerFactory$Type(); + const $TrustManagerFactory$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljavax/net/ssl/TrustManagerFactory;'; - - @jni$_.internal - @core$_.override - TrustManagerFactory fromReference(jni$_.JReference reference) => - TrustManagerFactory.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $TrustManagerFactory$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($TrustManagerFactory$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($TrustManagerFactory$Type) && - other is $TrustManagerFactory$Type; - } } /// from: `javax.net.ssl.TrustManager` -class TrustManager extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - TrustManager.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type TrustManager._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'javax/net/ssl/TrustManager'); /// The type which includes information such as the signature of this class. - static const nullableType = $TrustManager$NullableType(); - static const type = $TrustManager$Type(); + static const jni$_.JType type = $TrustManager$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; + static final core$_.Map _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -19346,7 +16289,7 @@ class TrustManager extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -19371,6 +16314,7 @@ class TrustManager extends jni$_.JObject { } final $i = jni$_.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); + $i.args?.release(); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( @@ -19388,9 +16332,7 @@ class TrustManager extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return TrustManager.fromReference( - $i.implementReference(), - ); + return $i.implement(); } } @@ -19402,156 +16344,28 @@ final class _$TrustManager with $TrustManager { _$TrustManager(); } -final class $TrustManager$NullableType extends jni$_.JObjType { - @jni$_.internal - const $TrustManager$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljavax/net/ssl/TrustManager;'; - - @jni$_.internal - @core$_.override - TrustManager? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : TrustManager.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($TrustManager$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($TrustManager$NullableType) && - other is $TrustManager$NullableType; - } -} - -final class $TrustManager$Type extends jni$_.JObjType { +final class $TrustManager$Type$ extends jni$_.JType { @jni$_.internal - const $TrustManager$Type(); + const $TrustManager$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljavax/net/ssl/TrustManager;'; - - @jni$_.internal - @core$_.override - TrustManager fromReference(jni$_.JReference reference) => - TrustManager.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $TrustManager$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($TrustManager$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($TrustManager$Type) && - other is $TrustManager$Type; - } } /// from: `java.security.KeyStore$Builder` -class KeyStore$Builder extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - KeyStore$Builder.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type KeyStore$Builder._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'java/security/KeyStore$Builder'); /// The type which includes information such as the signature of this class. - static const nullableType = $KeyStore$Builder$NullableType(); - static const type = $KeyStore$Builder$Type(); - static final _id_getKeyStore = _class.instanceMethodId( - r'getKeyStore', - r'()Ljava/security/KeyStore;', + static const jni$_.JType type = $KeyStore$Builder$Type$(); + static final _id_newInstance = _class.staticMethodId( + r'newInstance', + r'(Ljava/io/File;Ljava/security/KeyStore$ProtectionParameter;)Ljava/security/KeyStore$Builder;', ); - static final _getKeyStore = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public abstract java.security.KeyStore getKeyStore()` - /// The returned object must be released after use, by calling the [release] method. - KeyStore? getKeyStore() { - return _getKeyStore( - reference.pointer, _id_getKeyStore as jni$_.JMethodIDPtr) - .object(const $KeyStore$NullableType()); - } - - static final _id_getProtectionParameter = _class.instanceMethodId( - r'getProtectionParameter', - r'(Ljava/lang/String;)Ljava/security/KeyStore$ProtectionParameter;', - ); - - static final _getProtectionParameter = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public abstract java.security.KeyStore$ProtectionParameter getProtectionParameter(java.lang.String string)` - /// The returned object must be released after use, by calling the [release] method. - KeyStore$ProtectionParameter? getProtectionParameter( - jni$_.JString? string, - ) { - final _$string = string?.reference ?? jni$_.jNullReference; - return _getProtectionParameter(reference.pointer, - _id_getProtectionParameter as jni$_.JMethodIDPtr, _$string.pointer) - .object( - const $KeyStore$ProtectionParameter$NullableType()); - } - - static final _id_newInstance = _class.staticMethodId( - r'newInstance', - r'(Ljava/security/KeyStore;Ljava/security/KeyStore$ProtectionParameter;)Ljava/security/KeyStore$Builder;', - ); - - static final _newInstance = jni$_.ProtectedJniExtensions.lookup< + static final _newInstance = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -19568,21 +16382,19 @@ class KeyStore$Builder extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `static public java.security.KeyStore$Builder newInstance(java.security.KeyStore keyStore, java.security.KeyStore$ProtectionParameter protectionParameter)` + /// from: `static public java.security.KeyStore$Builder newInstance(java.io.File file, java.security.KeyStore$ProtectionParameter protectionParameter)` /// The returned object must be released after use, by calling the [release] method. static KeyStore$Builder? newInstance( - KeyStore? keyStore, + File? file, KeyStore$ProtectionParameter? protectionParameter, ) { - final _$keyStore = keyStore?.reference ?? jni$_.jNullReference; + final _$$classRef = _class.reference; + final _$file = file?.reference ?? jni$_.jNullReference; final _$protectionParameter = protectionParameter?.reference ?? jni$_.jNullReference; - return _newInstance( - _class.reference.pointer, - _id_newInstance as jni$_.JMethodIDPtr, - _$keyStore.pointer, - _$protectionParameter.pointer) - .object(const $KeyStore$Builder$NullableType()); + return _newInstance(_$$classRef.pointer, _id_newInstance.pointer, + _$file.pointer, _$protectionParameter.pointer) + .object(); } static final _id_newInstance$1 = _class.staticMethodId( @@ -19615,28 +16427,29 @@ class KeyStore$Builder extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static KeyStore$Builder? newInstance$1( jni$_.JString? string, - jni$_.JObject? provider, - jni$_.JObject? file, + Provider? provider, + File? file, KeyStore$ProtectionParameter? protectionParameter, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$provider = provider?.reference ?? jni$_.jNullReference; final _$file = file?.reference ?? jni$_.jNullReference; final _$protectionParameter = protectionParameter?.reference ?? jni$_.jNullReference; return _newInstance$1( - _class.reference.pointer, - _id_newInstance$1 as jni$_.JMethodIDPtr, + _$$classRef.pointer, + _id_newInstance$1.pointer, _$string.pointer, _$provider.pointer, _$file.pointer, _$protectionParameter.pointer) - .object(const $KeyStore$Builder$NullableType()); + .object(); } static final _id_newInstance$2 = _class.staticMethodId( r'newInstance', - r'(Ljava/io/File;Ljava/security/KeyStore$ProtectionParameter;)Ljava/security/KeyStore$Builder;', + r'(Ljava/lang/String;Ljava/security/Provider;Ljava/security/KeyStore$ProtectionParameter;)Ljava/security/KeyStore$Builder;', ); static final _newInstance$2 = jni$_.ProtectedJniExtensions.lookup< @@ -19646,6 +16459,7 @@ class KeyStore$Builder extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.VarArgs< ( + jni$_.Pointer, jni$_.Pointer, jni$_.Pointer )>)>>('globalEnv_CallStaticObjectMethod') @@ -19654,28 +16468,29 @@ class KeyStore$Builder extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, + jni$_.Pointer, jni$_.Pointer)>(); - /// from: `static public java.security.KeyStore$Builder newInstance(java.io.File file, java.security.KeyStore$ProtectionParameter protectionParameter)` + /// from: `static public java.security.KeyStore$Builder newInstance(java.lang.String string, java.security.Provider provider, java.security.KeyStore$ProtectionParameter protectionParameter)` /// The returned object must be released after use, by calling the [release] method. static KeyStore$Builder? newInstance$2( - jni$_.JObject? file, + jni$_.JString? string, + Provider? provider, KeyStore$ProtectionParameter? protectionParameter, ) { - final _$file = file?.reference ?? jni$_.jNullReference; + final _$$classRef = _class.reference; + final _$string = string?.reference ?? jni$_.jNullReference; + final _$provider = provider?.reference ?? jni$_.jNullReference; final _$protectionParameter = protectionParameter?.reference ?? jni$_.jNullReference; - return _newInstance$2( - _class.reference.pointer, - _id_newInstance$2 as jni$_.JMethodIDPtr, - _$file.pointer, - _$protectionParameter.pointer) - .object(const $KeyStore$Builder$NullableType()); + return _newInstance$2(_$$classRef.pointer, _id_newInstance$2.pointer, + _$string.pointer, _$provider.pointer, _$protectionParameter.pointer) + .object(); } static final _id_newInstance$3 = _class.staticMethodId( r'newInstance', - r'(Ljava/lang/String;Ljava/security/Provider;Ljava/security/KeyStore$ProtectionParameter;)Ljava/security/KeyStore$Builder;', + r'(Ljava/security/KeyStore;Ljava/security/KeyStore$ProtectionParameter;)Ljava/security/KeyStore$Builder;', ); static final _newInstance$3 = jni$_.ProtectedJniExtensions.lookup< @@ -19685,7 +16500,6 @@ class KeyStore$Builder extends jni$_.JObject { jni$_.JMethodIDPtr, jni$_.VarArgs< ( - jni$_.Pointer, jni$_.Pointer, jni$_.Pointer )>)>>('globalEnv_CallStaticObjectMethod') @@ -19694,125 +16508,98 @@ class KeyStore$Builder extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer, jni$_.Pointer)>(); - /// from: `static public java.security.KeyStore$Builder newInstance(java.lang.String string, java.security.Provider provider, java.security.KeyStore$ProtectionParameter protectionParameter)` + /// from: `static public java.security.KeyStore$Builder newInstance(java.security.KeyStore keyStore, java.security.KeyStore$ProtectionParameter protectionParameter)` /// The returned object must be released after use, by calling the [release] method. static KeyStore$Builder? newInstance$3( - jni$_.JString? string, - jni$_.JObject? provider, + KeyStore? keyStore, KeyStore$ProtectionParameter? protectionParameter, ) { - final _$string = string?.reference ?? jni$_.jNullReference; - final _$provider = provider?.reference ?? jni$_.jNullReference; + final _$$classRef = _class.reference; + final _$keyStore = keyStore?.reference ?? jni$_.jNullReference; final _$protectionParameter = protectionParameter?.reference ?? jni$_.jNullReference; - return _newInstance$3( - _class.reference.pointer, - _id_newInstance$3 as jni$_.JMethodIDPtr, - _$string.pointer, - _$provider.pointer, - _$protectionParameter.pointer) - .object(const $KeyStore$Builder$NullableType()); + return _newInstance$3(_$$classRef.pointer, _id_newInstance$3.pointer, + _$keyStore.pointer, _$protectionParameter.pointer) + .object(); } } -final class $KeyStore$Builder$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $KeyStore$Builder$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljava/security/KeyStore$Builder;'; +extension KeyStore$Builder$$Methods on KeyStore$Builder { + static final _id_get$keyStore = KeyStore$Builder._class.instanceMethodId( + r'getKeyStore', + r'()Ljava/security/KeyStore;', + ); - @jni$_.internal - @core$_.override - KeyStore$Builder? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : KeyStore$Builder.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + static final _get$keyStore = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; + /// from: `public abstract java.security.KeyStore getKeyStore()` + /// The returned object must be released after use, by calling the [release] method. + KeyStore? get keyStore { + final _$$selfRef = reference; + return _get$keyStore(_$$selfRef.pointer, _id_get$keyStore.pointer) + .object(); + } - @jni$_.internal - @core$_.override - final superCount = 1; + static final _id_getProtectionParameter = + KeyStore$Builder._class.instanceMethodId( + r'getProtectionParameter', + r'(Ljava/lang/String;)Ljava/security/KeyStore$ProtectionParameter;', + ); - @core$_.override - int get hashCode => ($KeyStore$Builder$NullableType).hashCode; + static final _getProtectionParameter = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyStore$Builder$NullableType) && - other is $KeyStore$Builder$NullableType; + /// from: `public abstract java.security.KeyStore$ProtectionParameter getProtectionParameter(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + KeyStore$ProtectionParameter? getProtectionParameter( + jni$_.JString? string, + ) { + final _$$selfRef = reference; + final _$string = string?.reference ?? jni$_.jNullReference; + return _getProtectionParameter(_$$selfRef.pointer, + _id_getProtectionParameter.pointer, _$string.pointer) + .object(); } } -final class $KeyStore$Builder$Type extends jni$_.JObjType { +final class $KeyStore$Builder$Type$ extends jni$_.JType { @jni$_.internal - const $KeyStore$Builder$Type(); + const $KeyStore$Builder$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljava/security/KeyStore$Builder;'; - - @jni$_.internal - @core$_.override - KeyStore$Builder fromReference(jni$_.JReference reference) => - KeyStore$Builder.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $KeyStore$Builder$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyStore$Builder$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyStore$Builder$Type) && - other is $KeyStore$Builder$Type; - } } /// from: `java.security.KeyStore$CallbackHandlerProtection` -class KeyStore$CallbackHandlerProtection extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - KeyStore$CallbackHandlerProtection.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type KeyStore$CallbackHandlerProtection._(jni$_.JObject _$this) + implements jni$_.JObject, KeyStore$ProtectionParameter { static final _class = jni$_.JClass.forName(r'java/security/KeyStore$CallbackHandlerProtection'); /// The type which includes information such as the signature of this class. - static const nullableType = - $KeyStore$CallbackHandlerProtection$NullableType(); - static const type = $KeyStore$CallbackHandlerProtection$Type(); + static const jni$_.JType type = + $KeyStore$CallbackHandlerProtection$Type$(); static final _id_new$ = _class.constructorId( r'(Ljavax/security/auth/callback/CallbackHandler;)V', ); @@ -19831,23 +16618,26 @@ class KeyStore$CallbackHandlerProtection extends jni$_.JObject { /// from: `public void (javax.security.auth.callback.CallbackHandler callbackHandler)` /// The returned object must be released after use, by calling the [release] method. factory KeyStore$CallbackHandlerProtection( - jni$_.JObject? callbackHandler, + CallbackHandler? callbackHandler, ) { + final _$$classRef = _class.reference; final _$callbackHandler = callbackHandler?.reference ?? jni$_.jNullReference; - return KeyStore$CallbackHandlerProtection.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$callbackHandler.pointer) - .reference); + return _new$( + _$$classRef.pointer, _id_new$.pointer, _$callbackHandler.pointer) + .object(); } +} - static final _id_getCallbackHandler = _class.instanceMethodId( +extension KeyStore$CallbackHandlerProtection$$Methods + on KeyStore$CallbackHandlerProtection { + static final _id_get$callbackHandler = + KeyStore$CallbackHandlerProtection._class.instanceMethodId( r'getCallbackHandler', r'()Ljavax/security/auth/callback/CallbackHandler;', ); - static final _getCallbackHandler = jni$_.ProtectedJniExtensions.lookup< + static final _get$callbackHandler = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -19861,164 +16651,38 @@ class KeyStore$CallbackHandlerProtection extends jni$_.JObject { /// from: `public javax.security.auth.callback.CallbackHandler getCallbackHandler()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getCallbackHandler() { - return _getCallbackHandler( - reference.pointer, _id_getCallbackHandler as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); - } -} - -final class $KeyStore$CallbackHandlerProtection$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $KeyStore$CallbackHandlerProtection$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljava/security/KeyStore$CallbackHandlerProtection;'; - - @jni$_.internal - @core$_.override - KeyStore$CallbackHandlerProtection? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : KeyStore$CallbackHandlerProtection.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => - ($KeyStore$CallbackHandlerProtection$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($KeyStore$CallbackHandlerProtection$NullableType) && - other is $KeyStore$CallbackHandlerProtection$NullableType; + CallbackHandler? get callbackHandler { + final _$$selfRef = reference; + return _get$callbackHandler( + _$$selfRef.pointer, _id_get$callbackHandler.pointer) + .object(); } } -final class $KeyStore$CallbackHandlerProtection$Type - extends jni$_.JObjType { +final class $KeyStore$CallbackHandlerProtection$Type$ + extends jni$_.JType { @jni$_.internal - const $KeyStore$CallbackHandlerProtection$Type(); + const $KeyStore$CallbackHandlerProtection$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljava/security/KeyStore$CallbackHandlerProtection;'; - - @jni$_.internal - @core$_.override - KeyStore$CallbackHandlerProtection fromReference( - jni$_.JReference reference) => - KeyStore$CallbackHandlerProtection.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $KeyStore$CallbackHandlerProtection$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyStore$CallbackHandlerProtection$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyStore$CallbackHandlerProtection$Type) && - other is $KeyStore$CallbackHandlerProtection$Type; - } } /// from: `java.security.KeyStore$Entry$Attribute` -class KeyStore$Entry$Attribute extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - KeyStore$Entry$Attribute.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type KeyStore$Entry$Attribute._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'java/security/KeyStore$Entry$Attribute'); /// The type which includes information such as the signature of this class. - static const nullableType = $KeyStore$Entry$Attribute$NullableType(); - static const type = $KeyStore$Entry$Attribute$Type(); - static final _id_getName = _class.instanceMethodId( - r'getName', - r'()Ljava/lang/String;', - ); - - static final _getName = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public abstract java.lang.String getName()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getName() { - return _getName(reference.pointer, _id_getName as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); - } - - static final _id_getValue = _class.instanceMethodId( - r'getValue', - r'()Ljava/lang/String;', - ); - - static final _getValue = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public abstract java.lang.String getValue()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getValue() { - return _getValue(reference.pointer, _id_getValue as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); - } + static const jni$_.JType type = + $KeyStore$Entry$Attribute$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; + static final core$_.Map _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -20039,7 +16703,7 @@ class KeyStore$Entry$Attribute extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -20048,7 +16712,7 @@ class KeyStore$Entry$Attribute extends jni$_.JObject { if ($d == r'getName()Ljava/lang/String;') { final $r = _$impls[$p]!.getName(); return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) + ?.as(const jni$_.$JObject$Type$()) .reference .toPointer() ?? jni$_.nullptr; @@ -20056,7 +16720,7 @@ class KeyStore$Entry$Attribute extends jni$_.JObject { if ($d == r'getValue()Ljava/lang/String;') { final $r = _$impls[$p]!.getValue(); return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) + ?.as(const jni$_.$JObject$Type$()) .reference .toPointer() ?? jni$_.nullptr; @@ -20080,6 +16744,7 @@ class KeyStore$Entry$Attribute extends jni$_.JObject { } final $i = jni$_.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); + $i.args?.release(); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( @@ -20097,166 +16762,112 @@ class KeyStore$Entry$Attribute extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return KeyStore$Entry$Attribute.fromReference( - $i.implementReference(), - ); + return $i.implement(); } } -abstract base mixin class $KeyStore$Entry$Attribute { - factory $KeyStore$Entry$Attribute({ - required jni$_.JString? Function() getName, - required jni$_.JString? Function() getValue, - }) = _$KeyStore$Entry$Attribute; - - jni$_.JString? getName(); - jni$_.JString? getValue(); -} +extension KeyStore$Entry$Attribute$$Methods on KeyStore$Entry$Attribute { + static final _id_getName = KeyStore$Entry$Attribute._class.instanceMethodId( + r'getName', + r'()Ljava/lang/String;', + ); -final class _$KeyStore$Entry$Attribute with $KeyStore$Entry$Attribute { - _$KeyStore$Entry$Attribute({ - required jni$_.JString? Function() getName, - required jni$_.JString? Function() getValue, - }) : _getName = getName, - _getValue = getValue; - - final jni$_.JString? Function() _getName; - final jni$_.JString? Function() _getValue; + static final _getName = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + /// from: `public abstract java.lang.String getName()` + /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getName() { - return _getName(); + final _$$selfRef = reference; + return _getName(_$$selfRef.pointer, _id_getName.pointer) + .object(); } + static final _id_getValue = KeyStore$Entry$Attribute._class.instanceMethodId( + r'getValue', + r'()Ljava/lang/String;', + ); + + static final _getValue = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public abstract java.lang.String getValue()` + /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getValue() { - return _getValue(); + final _$$selfRef = reference; + return _getValue(_$$selfRef.pointer, _id_getValue.pointer) + .object(); } } -final class $KeyStore$Entry$Attribute$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $KeyStore$Entry$Attribute$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljava/security/KeyStore$Entry$Attribute;'; +abstract base mixin class $KeyStore$Entry$Attribute { + factory $KeyStore$Entry$Attribute({ + required jni$_.JString? Function() getName, + required jni$_.JString? Function() getValue, + }) = _$KeyStore$Entry$Attribute; - @jni$_.internal - @core$_.override - KeyStore$Entry$Attribute? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : KeyStore$Entry$Attribute.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + jni$_.JString? getName(); + jni$_.JString? getValue(); +} - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; +final class _$KeyStore$Entry$Attribute with $KeyStore$Entry$Attribute { + _$KeyStore$Entry$Attribute({ + required jni$_.JString? Function() getName, + required jni$_.JString? Function() getValue, + }) : _getName = getName, + _getValue = getValue; - @jni$_.internal - @core$_.override - final superCount = 1; + final jni$_.JString? Function() _getName; + final jni$_.JString? Function() _getValue; - @core$_.override - int get hashCode => ($KeyStore$Entry$Attribute$NullableType).hashCode; + jni$_.JString? getName() { + return _getName(); + } - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyStore$Entry$Attribute$NullableType) && - other is $KeyStore$Entry$Attribute$NullableType; + jni$_.JString? getValue() { + return _getValue(); } } -final class $KeyStore$Entry$Attribute$Type - extends jni$_.JObjType { +final class $KeyStore$Entry$Attribute$Type$ + extends jni$_.JType { @jni$_.internal - const $KeyStore$Entry$Attribute$Type(); + const $KeyStore$Entry$Attribute$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljava/security/KeyStore$Entry$Attribute;'; - - @jni$_.internal - @core$_.override - KeyStore$Entry$Attribute fromReference(jni$_.JReference reference) => - KeyStore$Entry$Attribute.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $KeyStore$Entry$Attribute$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyStore$Entry$Attribute$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyStore$Entry$Attribute$Type) && - other is $KeyStore$Entry$Attribute$Type; - } } /// from: `java.security.KeyStore$Entry` -class KeyStore$Entry extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - KeyStore$Entry.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type KeyStore$Entry._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'java/security/KeyStore$Entry'); /// The type which includes information such as the signature of this class. - static const nullableType = $KeyStore$Entry$NullableType(); - static const type = $KeyStore$Entry$Type(); - static final _id_getAttributes = _class.instanceMethodId( - r'getAttributes', - r'()Ljava/util/Set;', - ); - - static final _getAttributes = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public java.util.Set getAttributes()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JSet? getAttributes() { - return _getAttributes( - reference.pointer, _id_getAttributes as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JSetNullableType( - $KeyStore$Entry$Attribute$NullableType())); - } + static const jni$_.JType type = $KeyStore$Entry$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; + static final core$_.Map _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -20277,7 +16888,7 @@ class KeyStore$Entry extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -20286,7 +16897,7 @@ class KeyStore$Entry extends jni$_.JObject { if ($d == r'getAttributes()Ljava/util/Set;') { final $r = _$impls[$p]!.getAttributes(); return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) + ?.as(const jni$_.$JObject$Type$()) .reference .toPointer() ?? jni$_.nullptr; @@ -20310,6 +16921,7 @@ class KeyStore$Entry extends jni$_.JObject { } final $i = jni$_.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); + $i.args?.release(); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( @@ -20327,9 +16939,34 @@ class KeyStore$Entry extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return KeyStore$Entry.fromReference( - $i.implementReference(), - ); + return $i.implement(); + } +} + +extension KeyStore$Entry$$Methods on KeyStore$Entry { + static final _id_getAttributes = KeyStore$Entry._class.instanceMethodId( + r'getAttributes', + r'()Ljava/util/Set;', + ); + + static final _getAttributes = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public java.util.Set getAttributes()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JSet? getAttributes() { + final _$$selfRef = reference; + return _getAttributes(_$$selfRef.pointer, _id_getAttributes.pointer) + .object?>(); } } @@ -20353,129 +16990,30 @@ final class _$KeyStore$Entry with $KeyStore$Entry { } } -final class $KeyStore$Entry$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $KeyStore$Entry$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljava/security/KeyStore$Entry;'; - - @jni$_.internal - @core$_.override - KeyStore$Entry? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : KeyStore$Entry.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyStore$Entry$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyStore$Entry$NullableType) && - other is $KeyStore$Entry$NullableType; - } -} - -final class $KeyStore$Entry$Type extends jni$_.JObjType { +final class $KeyStore$Entry$Type$ extends jni$_.JType { @jni$_.internal - const $KeyStore$Entry$Type(); + const $KeyStore$Entry$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljava/security/KeyStore$Entry;'; - - @jni$_.internal - @core$_.override - KeyStore$Entry fromReference(jni$_.JReference reference) => - KeyStore$Entry.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $KeyStore$Entry$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyStore$Entry$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyStore$Entry$Type) && - other is $KeyStore$Entry$Type; - } } /// from: `java.security.KeyStore$LoadStoreParameter` -class KeyStore$LoadStoreParameter extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - KeyStore$LoadStoreParameter.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type KeyStore$LoadStoreParameter._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'java/security/KeyStore$LoadStoreParameter'); /// The type which includes information such as the signature of this class. - static const nullableType = $KeyStore$LoadStoreParameter$NullableType(); - static const type = $KeyStore$LoadStoreParameter$Type(); - static final _id_getProtectionParameter = _class.instanceMethodId( - r'getProtectionParameter', - r'()Ljava/security/KeyStore$ProtectionParameter;', - ); - - static final _getProtectionParameter = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public abstract java.security.KeyStore$ProtectionParameter getProtectionParameter()` - /// The returned object must be released after use, by calling the [release] method. - KeyStore$ProtectionParameter? getProtectionParameter() { - return _getProtectionParameter( - reference.pointer, _id_getProtectionParameter as jni$_.JMethodIDPtr) - .object( - const $KeyStore$ProtectionParameter$NullableType()); - } + static const jni$_.JType type = + $KeyStore$LoadStoreParameter$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; + static final core$_.Map _$impls = + {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -20496,7 +17034,7 @@ class KeyStore$LoadStoreParameter extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -20506,7 +17044,7 @@ class KeyStore$LoadStoreParameter extends jni$_.JObject { r'getProtectionParameter()Ljava/security/KeyStore$ProtectionParameter;') { final $r = _$impls[$p]!.getProtectionParameter(); return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) + ?.as(const jni$_.$JObject$Type$()) .reference .toPointer() ?? jni$_.nullptr; @@ -20530,6 +17068,7 @@ class KeyStore$LoadStoreParameter extends jni$_.JObject { } final $i = jni$_.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); + $i.args?.release(); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( @@ -20547,9 +17086,36 @@ class KeyStore$LoadStoreParameter extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return KeyStore$LoadStoreParameter.fromReference( - $i.implementReference(), - ); + return $i.implement(); + } +} + +extension KeyStore$LoadStoreParameter$$Methods on KeyStore$LoadStoreParameter { + static final _id_getProtectionParameter = + KeyStore$LoadStoreParameter._class.instanceMethodId( + r'getProtectionParameter', + r'()Ljava/security/KeyStore$ProtectionParameter;', + ); + + static final _getProtectionParameter = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public abstract java.security.KeyStore$ProtectionParameter getProtectionParameter()` + /// The returned object must be released after use, by calling the [release] method. + KeyStore$ProtectionParameter? getProtectionParameter() { + final _$$selfRef = reference; + return _getProtectionParameter( + _$$selfRef.pointer, _id_getProtectionParameter.pointer) + .object(); } } @@ -20573,101 +17139,25 @@ final class _$KeyStore$LoadStoreParameter with $KeyStore$LoadStoreParameter { } } -final class $KeyStore$LoadStoreParameter$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $KeyStore$LoadStoreParameter$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljava/security/KeyStore$LoadStoreParameter;'; - - @jni$_.internal - @core$_.override - KeyStore$LoadStoreParameter? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : KeyStore$LoadStoreParameter.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyStore$LoadStoreParameter$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyStore$LoadStoreParameter$NullableType) && - other is $KeyStore$LoadStoreParameter$NullableType; - } -} - -final class $KeyStore$LoadStoreParameter$Type - extends jni$_.JObjType { +final class $KeyStore$LoadStoreParameter$Type$ + extends jni$_.JType { @jni$_.internal - const $KeyStore$LoadStoreParameter$Type(); + const $KeyStore$LoadStoreParameter$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljava/security/KeyStore$LoadStoreParameter;'; - - @jni$_.internal - @core$_.override - KeyStore$LoadStoreParameter fromReference(jni$_.JReference reference) => - KeyStore$LoadStoreParameter.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $KeyStore$LoadStoreParameter$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyStore$LoadStoreParameter$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyStore$LoadStoreParameter$Type) && - other is $KeyStore$LoadStoreParameter$Type; - } } /// from: `java.security.KeyStore$PasswordProtection` -class KeyStore$PasswordProtection extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - KeyStore$PasswordProtection.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type KeyStore$PasswordProtection._(jni$_.JObject _$this) + implements jni$_.JObject, Destroyable, KeyStore$ProtectionParameter { static final _class = jni$_.JClass.forName(r'java/security/KeyStore$PasswordProtection'); /// The type which includes information such as the signature of this class. - static const nullableType = $KeyStore$PasswordProtection$NullableType(); - static const type = $KeyStore$PasswordProtection$Type(); + static const jni$_.JType type = + $KeyStore$PasswordProtection$Type$(); static final _id_new$ = _class.constructorId( r'([C)V', ); @@ -20688,12 +17178,10 @@ class KeyStore$PasswordProtection extends jni$_.JObject { factory KeyStore$PasswordProtection( jni$_.JCharArray? cs, ) { + final _$$classRef = _class.reference; final _$cs = cs?.reference ?? jni$_.jNullReference; - return KeyStore$PasswordProtection.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$cs.pointer) - .reference); + return _new$(_$$classRef.pointer, _id_new$.pointer, _$cs.pointer) + .object(); } static final _id_new$1 = _class.constructorId( @@ -20724,52 +17212,51 @@ class KeyStore$PasswordProtection extends jni$_.JObject { factory KeyStore$PasswordProtection.new$1( jni$_.JCharArray? cs, jni$_.JString? string, - jni$_.JObject? algorithmParameterSpec, + AlgorithmParameterSpec? algorithmParameterSpec, ) { + final _$$classRef = _class.reference; final _$cs = cs?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; final _$algorithmParameterSpec = algorithmParameterSpec?.reference ?? jni$_.jNullReference; - return KeyStore$PasswordProtection.fromReference(_new$1( - _class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, - _$cs.pointer, - _$string.pointer, - _$algorithmParameterSpec.pointer) - .reference); + return _new$1(_$$classRef.pointer, _id_new$1.pointer, _$cs.pointer, + _$string.pointer, _$algorithmParameterSpec.pointer) + .object(); } +} - static final _id_getProtectionAlgorithm = _class.instanceMethodId( - r'getProtectionAlgorithm', - r'()Ljava/lang/String;', +extension KeyStore$PasswordProtection$$Methods on KeyStore$PasswordProtection { + static final _id_destroy = + KeyStore$PasswordProtection._class.instanceMethodId( + r'destroy', + r'()V', ); - static final _getProtectionAlgorithm = jni$_.ProtectedJniExtensions.lookup< + static final _destroy = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') + )>>('globalEnv_CallVoidMethod') .asFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, )>(); - /// from: `public java.lang.String getProtectionAlgorithm()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getProtectionAlgorithm() { - return _getProtectionAlgorithm( - reference.pointer, _id_getProtectionAlgorithm as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + /// from: `public void destroy()` + void destroy() { + final _$$selfRef = reference; + _destroy(_$$selfRef.pointer, _id_destroy.pointer).check(); } - static final _id_getProtectionParameters = _class.instanceMethodId( - r'getProtectionParameters', - r'()Ljava/security/spec/AlgorithmParameterSpec;', + static final _id_get$password = + KeyStore$PasswordProtection._class.instanceMethodId( + r'getPassword', + r'()[C', ); - static final _getProtectionParameters = jni$_.ProtectedJniExtensions.lookup< + static final _get$password = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -20781,20 +17268,21 @@ class KeyStore$PasswordProtection extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public java.security.spec.AlgorithmParameterSpec getProtectionParameters()` + /// from: `public char[] getPassword()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getProtectionParameters() { - return _getProtectionParameters(reference.pointer, - _id_getProtectionParameters as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JCharArray? get password { + final _$$selfRef = reference; + return _get$password(_$$selfRef.pointer, _id_get$password.pointer) + .object(); } - static final _id_getPassword = _class.instanceMethodId( - r'getPassword', - r'()[C', + static final _id_get$protectionAlgorithm = + KeyStore$PasswordProtection._class.instanceMethodId( + r'getProtectionAlgorithm', + r'()Ljava/lang/String;', ); - static final _getPassword = jni$_.ProtectedJniExtensions.lookup< + static final _get$protectionAlgorithm = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -20806,42 +17294,49 @@ class KeyStore$PasswordProtection extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public char[] getPassword()` + /// from: `public java.lang.String getProtectionAlgorithm()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JCharArray? getPassword() { - return _getPassword( - reference.pointer, _id_getPassword as jni$_.JMethodIDPtr) - .object(const jni$_.JCharArrayNullableType()); + jni$_.JString? get protectionAlgorithm { + final _$$selfRef = reference; + return _get$protectionAlgorithm( + _$$selfRef.pointer, _id_get$protectionAlgorithm.pointer) + .object(); } - static final _id_destroy = _class.instanceMethodId( - r'destroy', - r'()V', + static final _id_get$protectionParameters = + KeyStore$PasswordProtection._class.instanceMethodId( + r'getProtectionParameters', + r'()Ljava/security/spec/AlgorithmParameterSpec;', ); - static final _destroy = jni$_.ProtectedJniExtensions.lookup< + static final _get$protectionParameters = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') + )>>('globalEnv_CallObjectMethod') .asFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, )>(); - /// from: `public void destroy()` - void destroy() { - _destroy(reference.pointer, _id_destroy as jni$_.JMethodIDPtr).check(); + /// from: `public java.security.spec.AlgorithmParameterSpec getProtectionParameters()` + /// The returned object must be released after use, by calling the [release] method. + AlgorithmParameterSpec? get protectionParameters { + final _$$selfRef = reference; + return _get$protectionParameters( + _$$selfRef.pointer, _id_get$protectionParameters.pointer) + .object(); } - static final _id_isDestroyed = _class.instanceMethodId( + static final _id_get$isDestroyed = + KeyStore$PasswordProtection._class.instanceMethodId( r'isDestroyed', r'()Z', ); - static final _isDestroyed = jni$_.ProtectedJniExtensions.lookup< + static final _get$isDestroyed = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -20854,108 +17349,32 @@ class KeyStore$PasswordProtection extends jni$_.JObject { )>(); /// from: `public boolean isDestroyed()` - bool isDestroyed() { - return _isDestroyed( - reference.pointer, _id_isDestroyed as jni$_.JMethodIDPtr) + core$_.bool get isDestroyed { + final _$$selfRef = reference; + return _get$isDestroyed(_$$selfRef.pointer, _id_get$isDestroyed.pointer) .boolean; } } -final class $KeyStore$PasswordProtection$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $KeyStore$PasswordProtection$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljava/security/KeyStore$PasswordProtection;'; - - @jni$_.internal - @core$_.override - KeyStore$PasswordProtection? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : KeyStore$PasswordProtection.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyStore$PasswordProtection$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyStore$PasswordProtection$NullableType) && - other is $KeyStore$PasswordProtection$NullableType; - } -} - -final class $KeyStore$PasswordProtection$Type - extends jni$_.JObjType { +final class $KeyStore$PasswordProtection$Type$ + extends jni$_.JType { @jni$_.internal - const $KeyStore$PasswordProtection$Type(); + const $KeyStore$PasswordProtection$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljava/security/KeyStore$PasswordProtection;'; - - @jni$_.internal - @core$_.override - KeyStore$PasswordProtection fromReference(jni$_.JReference reference) => - KeyStore$PasswordProtection.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $KeyStore$PasswordProtection$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyStore$PasswordProtection$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyStore$PasswordProtection$Type) && - other is $KeyStore$PasswordProtection$Type; - } } /// from: `java.security.KeyStore$PrivateKeyEntry` -class KeyStore$PrivateKeyEntry extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - KeyStore$PrivateKeyEntry.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type KeyStore$PrivateKeyEntry._(jni$_.JObject _$this) + implements jni$_.JObject, KeyStore$Entry { static final _class = jni$_.JClass.forName(r'java/security/KeyStore$PrivateKeyEntry'); /// The type which includes information such as the signature of this class. - static const nullableType = $KeyStore$PrivateKeyEntry$NullableType(); - static const type = $KeyStore$PrivateKeyEntry$Type(); + static const jni$_.JType type = + $KeyStore$PrivateKeyEntry$Type$(); static final _id_new$ = _class.constructorId( r'(Ljava/security/PrivateKey;[Ljava/security/cert/Certificate;)V', ); @@ -20983,14 +17402,12 @@ class KeyStore$PrivateKeyEntry extends jni$_.JObject { PrivateKey? privateKey, jni$_.JArray? certificates, ) { + final _$$classRef = _class.reference; final _$privateKey = privateKey?.reference ?? jni$_.jNullReference; final _$certificates = certificates?.reference ?? jni$_.jNullReference; - return KeyStore$PrivateKeyEntry.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$privateKey.pointer, + return _new$(_$$classRef.pointer, _id_new$.pointer, _$privateKey.pointer, _$certificates.pointer) - .reference); + .object(); } static final _id_new$1 = _class.constructorId( @@ -21016,31 +17433,31 @@ class KeyStore$PrivateKeyEntry extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public void (java.security.PrivateKey privateKey, java.lang.Object[] certificates, java.util.Set set)` + /// from: `public void (java.security.PrivateKey privateKey, java.security.cert.Certificate[] certificates, java.util.Set set)` /// The returned object must be released after use, by calling the [release] method. factory KeyStore$PrivateKeyEntry.new$1( PrivateKey? privateKey, jni$_.JArray? certificates, jni$_.JSet? set, ) { + final _$$classRef = _class.reference; final _$privateKey = privateKey?.reference ?? jni$_.jNullReference; final _$certificates = certificates?.reference ?? jni$_.jNullReference; final _$set = set?.reference ?? jni$_.jNullReference; - return KeyStore$PrivateKeyEntry.fromReference(_new$1( - _class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, - _$privateKey.pointer, - _$certificates.pointer, - _$set.pointer) - .reference); + return _new$1(_$$classRef.pointer, _id_new$1.pointer, _$privateKey.pointer, + _$certificates.pointer, _$set.pointer) + .object(); } +} - static final _id_getPrivateKey = _class.instanceMethodId( - r'getPrivateKey', - r'()Ljava/security/PrivateKey;', +extension KeyStore$PrivateKeyEntry$$Methods on KeyStore$PrivateKeyEntry { + static final _id_get$attributes = + KeyStore$PrivateKeyEntry._class.instanceMethodId( + r'getAttributes', + r'()Ljava/util/Set;', ); - static final _getPrivateKey = jni$_.ProtectedJniExtensions.lookup< + static final _get$attributes = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -21052,20 +17469,21 @@ class KeyStore$PrivateKeyEntry extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public java.security.PrivateKey getPrivateKey()` + /// from: `public java.util.Set getAttributes()` /// The returned object must be released after use, by calling the [release] method. - PrivateKey? getPrivateKey() { - return _getPrivateKey( - reference.pointer, _id_getPrivateKey as jni$_.JMethodIDPtr) - .object(const $PrivateKey$NullableType()); + jni$_.JSet? get attributes { + final _$$selfRef = reference; + return _get$attributes(_$$selfRef.pointer, _id_get$attributes.pointer) + .object?>(); } - static final _id_getCertificateChain = _class.instanceMethodId( - r'getCertificateChain', - r'()[Ljava/security/cert/Certificate;', + static final _id_get$certificate = + KeyStore$PrivateKeyEntry._class.instanceMethodId( + r'getCertificate', + r'()Ljava/security/cert/Certificate;', ); - static final _getCertificateChain = jni$_.ProtectedJniExtensions.lookup< + static final _get$certificate = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -21077,22 +17495,21 @@ class KeyStore$PrivateKeyEntry extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public java.security.cert.Certificate[] getCertificateChain()` + /// from: `public java.security.cert.Certificate getCertificate()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JArray? getCertificateChain() { - return _getCertificateChain( - reference.pointer, _id_getCertificateChain as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - $Certificate$NullableType())); + Certificate? get certificate { + final _$$selfRef = reference; + return _get$certificate(_$$selfRef.pointer, _id_get$certificate.pointer) + .object(); } - static final _id_getCertificate = _class.instanceMethodId( - r'getCertificate', - r'()Ljava/security/cert/Certificate;', + static final _id_get$certificateChain = + KeyStore$PrivateKeyEntry._class.instanceMethodId( + r'getCertificateChain', + r'()[Ljava/security/cert/Certificate;', ); - static final _getCertificate = jni$_.ProtectedJniExtensions.lookup< + static final _get$certificateChain = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -21104,20 +17521,22 @@ class KeyStore$PrivateKeyEntry extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public java.security.cert.Certificate getCertificate()` + /// from: `public java.security.cert.Certificate[] getCertificateChain()` /// The returned object must be released after use, by calling the [release] method. - Certificate? getCertificate() { - return _getCertificate( - reference.pointer, _id_getCertificate as jni$_.JMethodIDPtr) - .object(const $Certificate$NullableType()); + jni$_.JArray? get certificateChain { + final _$$selfRef = reference; + return _get$certificateChain( + _$$selfRef.pointer, _id_get$certificateChain.pointer) + .object?>(); } - static final _id_getAttributes = _class.instanceMethodId( - r'getAttributes', - r'()Ljava/util/Set;', + static final _id_get$privateKey = + KeyStore$PrivateKeyEntry._class.instanceMethodId( + r'getPrivateKey', + r'()Ljava/security/PrivateKey;', ); - static final _getAttributes = jni$_.ProtectedJniExtensions.lookup< + static final _get$privateKey = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -21129,17 +17548,16 @@ class KeyStore$PrivateKeyEntry extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public java.util.Set getAttributes()` + /// from: `public java.security.PrivateKey getPrivateKey()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JSet? getAttributes() { - return _getAttributes( - reference.pointer, _id_getAttributes as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JSetNullableType( - $KeyStore$Entry$Attribute$NullableType())); + PrivateKey? get privateKey { + final _$$selfRef = reference; + return _get$privateKey(_$$selfRef.pointer, _id_get$privateKey.pointer) + .object(); } - static final _id_toString$1 = _class.instanceMethodId( + static final _id_toString$1 = + KeyStore$PrivateKeyEntry._class.instanceMethodId( r'toString', r'()Ljava/lang/String;', ); @@ -21159,111 +17577,37 @@ class KeyStore$PrivateKeyEntry extends jni$_.JObject { /// from: `public java.lang.String toString()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? toString$1() { - return _toString$1(reference.pointer, _id_toString$1 as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); - } -} - -final class $KeyStore$PrivateKeyEntry$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $KeyStore$PrivateKeyEntry$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljava/security/KeyStore$PrivateKeyEntry;'; - - @jni$_.internal - @core$_.override - KeyStore$PrivateKeyEntry? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : KeyStore$PrivateKeyEntry.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyStore$PrivateKeyEntry$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyStore$PrivateKeyEntry$NullableType) && - other is $KeyStore$PrivateKeyEntry$NullableType; + final _$$selfRef = reference; + return _toString$1(_$$selfRef.pointer, _id_toString$1.pointer) + .object(); } } -final class $KeyStore$PrivateKeyEntry$Type - extends jni$_.JObjType { +final class $KeyStore$PrivateKeyEntry$Type$ + extends jni$_.JType { @jni$_.internal - const $KeyStore$PrivateKeyEntry$Type(); + const $KeyStore$PrivateKeyEntry$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljava/security/KeyStore$PrivateKeyEntry;'; - - @jni$_.internal - @core$_.override - KeyStore$PrivateKeyEntry fromReference(jni$_.JReference reference) => - KeyStore$PrivateKeyEntry.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $KeyStore$PrivateKeyEntry$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyStore$PrivateKeyEntry$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyStore$PrivateKeyEntry$Type) && - other is $KeyStore$PrivateKeyEntry$Type; - } } /// from: `java.security.KeyStore$ProtectionParameter` -class KeyStore$ProtectionParameter extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - KeyStore$ProtectionParameter.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type KeyStore$ProtectionParameter._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'java/security/KeyStore$ProtectionParameter'); /// The type which includes information such as the signature of this class. - static const nullableType = $KeyStore$ProtectionParameter$NullableType(); - static const type = $KeyStore$ProtectionParameter$Type(); + static const jni$_.JType type = + $KeyStore$ProtectionParameter$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; + static final core$_.Map _$impls = + {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -21284,7 +17628,7 @@ class KeyStore$ProtectionParameter extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -21309,6 +17653,7 @@ class KeyStore$ProtectionParameter extends jni$_.JObject { } final $i = jni$_.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); + $i.args?.release(); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( @@ -21326,9 +17671,7 @@ class KeyStore$ProtectionParameter extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return KeyStore$ProtectionParameter.fromReference( - $i.implementReference(), - ); + return $i.implement(); } } @@ -21340,101 +17683,25 @@ final class _$KeyStore$ProtectionParameter with $KeyStore$ProtectionParameter { _$KeyStore$ProtectionParameter(); } -final class $KeyStore$ProtectionParameter$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $KeyStore$ProtectionParameter$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljava/security/KeyStore$ProtectionParameter;'; - - @jni$_.internal - @core$_.override - KeyStore$ProtectionParameter? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : KeyStore$ProtectionParameter.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyStore$ProtectionParameter$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyStore$ProtectionParameter$NullableType) && - other is $KeyStore$ProtectionParameter$NullableType; - } -} - -final class $KeyStore$ProtectionParameter$Type - extends jni$_.JObjType { +final class $KeyStore$ProtectionParameter$Type$ + extends jni$_.JType { @jni$_.internal - const $KeyStore$ProtectionParameter$Type(); + const $KeyStore$ProtectionParameter$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljava/security/KeyStore$ProtectionParameter;'; - - @jni$_.internal - @core$_.override - KeyStore$ProtectionParameter fromReference(jni$_.JReference reference) => - KeyStore$ProtectionParameter.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $KeyStore$ProtectionParameter$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyStore$ProtectionParameter$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyStore$ProtectionParameter$Type) && - other is $KeyStore$ProtectionParameter$Type; - } } /// from: `java.security.KeyStore$SecretKeyEntry` -class KeyStore$SecretKeyEntry extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - KeyStore$SecretKeyEntry.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type KeyStore$SecretKeyEntry._(jni$_.JObject _$this) + implements jni$_.JObject, KeyStore$Entry { static final _class = jni$_.JClass.forName(r'java/security/KeyStore$SecretKeyEntry'); /// The type which includes information such as the signature of this class. - static const nullableType = $KeyStore$SecretKeyEntry$NullableType(); - static const type = $KeyStore$SecretKeyEntry$Type(); + static const jni$_.JType type = + $KeyStore$SecretKeyEntry$Type$(); static final _id_new$ = _class.constructorId( r'(Ljavax/crypto/SecretKey;)V', ); @@ -21453,12 +17720,12 @@ class KeyStore$SecretKeyEntry extends jni$_.JObject { /// from: `public void (javax.crypto.SecretKey secretKey)` /// The returned object must be released after use, by calling the [release] method. factory KeyStore$SecretKeyEntry( - jni$_.JObject? secretKey, + SecretKey? secretKey, ) { + final _$$classRef = _class.reference; final _$secretKey = secretKey?.reference ?? jni$_.jNullReference; - return KeyStore$SecretKeyEntry.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$secretKey.pointer) - .reference); + return _new$(_$$classRef.pointer, _id_new$.pointer, _$secretKey.pointer) + .object(); } static final _id_new$1 = _class.constructorId( @@ -21482,28 +17749,29 @@ class KeyStore$SecretKeyEntry extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public void (javax.crypto.SecretKey secretKey, java.util.Set set)` + /// from: `public void (javax.crypto.SecretKey secretKey, java.util.Set set)` /// The returned object must be released after use, by calling the [release] method. factory KeyStore$SecretKeyEntry.new$1( - jni$_.JObject? secretKey, + SecretKey? secretKey, jni$_.JSet? set, ) { + final _$$classRef = _class.reference; final _$secretKey = secretKey?.reference ?? jni$_.jNullReference; final _$set = set?.reference ?? jni$_.jNullReference; - return KeyStore$SecretKeyEntry.fromReference(_new$1( - _class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, - _$secretKey.pointer, + return _new$1(_$$classRef.pointer, _id_new$1.pointer, _$secretKey.pointer, _$set.pointer) - .reference); + .object(); } +} - static final _id_getSecretKey = _class.instanceMethodId( - r'getSecretKey', - r'()Ljavax/crypto/SecretKey;', +extension KeyStore$SecretKeyEntry$$Methods on KeyStore$SecretKeyEntry { + static final _id_get$attributes = + KeyStore$SecretKeyEntry._class.instanceMethodId( + r'getAttributes', + r'()Ljava/util/Set;', ); - static final _getSecretKey = jni$_.ProtectedJniExtensions.lookup< + static final _get$attributes = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -21515,20 +17783,21 @@ class KeyStore$SecretKeyEntry extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public javax.crypto.SecretKey getSecretKey()` + /// from: `public java.util.Set getAttributes()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getSecretKey() { - return _getSecretKey( - reference.pointer, _id_getSecretKey as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JSet? get attributes { + final _$$selfRef = reference; + return _get$attributes(_$$selfRef.pointer, _id_get$attributes.pointer) + .object?>(); } - static final _id_getAttributes = _class.instanceMethodId( - r'getAttributes', - r'()Ljava/util/Set;', + static final _id_get$secretKey = + KeyStore$SecretKeyEntry._class.instanceMethodId( + r'getSecretKey', + r'()Ljavax/crypto/SecretKey;', ); - static final _getAttributes = jni$_.ProtectedJniExtensions.lookup< + static final _get$secretKey = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -21540,17 +17809,15 @@ class KeyStore$SecretKeyEntry extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public java.util.Set getAttributes()` + /// from: `public javax.crypto.SecretKey getSecretKey()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JSet? getAttributes() { - return _getAttributes( - reference.pointer, _id_getAttributes as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JSetNullableType( - $KeyStore$Entry$Attribute$NullableType())); + SecretKey? get secretKey { + final _$$selfRef = reference; + return _get$secretKey(_$$selfRef.pointer, _id_get$secretKey.pointer) + .object(); } - static final _id_toString$1 = _class.instanceMethodId( + static final _id_toString$1 = KeyStore$SecretKeyEntry._class.instanceMethodId( r'toString', r'()Ljava/lang/String;', ); @@ -21570,109 +17837,34 @@ class KeyStore$SecretKeyEntry extends jni$_.JObject { /// from: `public java.lang.String toString()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? toString$1() { - return _toString$1(reference.pointer, _id_toString$1 as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + final _$$selfRef = reference; + return _toString$1(_$$selfRef.pointer, _id_toString$1.pointer) + .object(); } } -final class $KeyStore$SecretKeyEntry$NullableType - extends jni$_.JObjType { +final class $KeyStore$SecretKeyEntry$Type$ + extends jni$_.JType { @jni$_.internal - const $KeyStore$SecretKeyEntry$NullableType(); + const $KeyStore$SecretKeyEntry$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljava/security/KeyStore$SecretKeyEntry;'; - - @jni$_.internal - @core$_.override - KeyStore$SecretKeyEntry? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : KeyStore$SecretKeyEntry.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyStore$SecretKeyEntry$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyStore$SecretKeyEntry$NullableType) && - other is $KeyStore$SecretKeyEntry$NullableType; - } } -final class $KeyStore$SecretKeyEntry$Type - extends jni$_.JObjType { - @jni$_.internal - const $KeyStore$SecretKeyEntry$Type(); +/// from: `java.security.KeyStore$TrustedCertificateEntry` +extension type KeyStore$TrustedCertificateEntry._(jni$_.JObject _$this) + implements jni$_.JObject, KeyStore$Entry { + static final _class = + jni$_.JClass.forName(r'java/security/KeyStore$TrustedCertificateEntry'); - @jni$_.internal - @core$_.override - String get signature => r'Ljava/security/KeyStore$SecretKeyEntry;'; - - @jni$_.internal - @core$_.override - KeyStore$SecretKeyEntry fromReference(jni$_.JReference reference) => - KeyStore$SecretKeyEntry.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $KeyStore$SecretKeyEntry$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyStore$SecretKeyEntry$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyStore$SecretKeyEntry$Type) && - other is $KeyStore$SecretKeyEntry$Type; - } -} - -/// from: `java.security.KeyStore$TrustedCertificateEntry` -class KeyStore$TrustedCertificateEntry extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - KeyStore$TrustedCertificateEntry.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = - jni$_.JClass.forName(r'java/security/KeyStore$TrustedCertificateEntry'); - - /// The type which includes information such as the signature of this class. - static const nullableType = $KeyStore$TrustedCertificateEntry$NullableType(); - static const type = $KeyStore$TrustedCertificateEntry$Type(); - static final _id_new$ = _class.constructorId( - r'(Ljava/security/cert/Certificate;)V', - ); + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = + $KeyStore$TrustedCertificateEntry$Type$(); + static final _id_new$ = _class.constructorId( + r'(Ljava/security/cert/Certificate;)V', + ); static final _new$ = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< @@ -21690,12 +17882,10 @@ class KeyStore$TrustedCertificateEntry extends jni$_.JObject { factory KeyStore$TrustedCertificateEntry( Certificate? certificate, ) { + final _$$classRef = _class.reference; final _$certificate = certificate?.reference ?? jni$_.jNullReference; - return KeyStore$TrustedCertificateEntry.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$certificate.pointer) - .reference); + return _new$(_$$classRef.pointer, _id_new$.pointer, _$certificate.pointer) + .object(); } static final _id_new$1 = _class.constructorId( @@ -21719,28 +17909,30 @@ class KeyStore$TrustedCertificateEntry extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public void (java.security.cert.Certificate certificate, java.util.Set set)` + /// from: `public void (java.security.cert.Certificate certificate, java.util.Set set)` /// The returned object must be released after use, by calling the [release] method. factory KeyStore$TrustedCertificateEntry.new$1( Certificate? certificate, jni$_.JSet? set, ) { + final _$$classRef = _class.reference; final _$certificate = certificate?.reference ?? jni$_.jNullReference; final _$set = set?.reference ?? jni$_.jNullReference; - return KeyStore$TrustedCertificateEntry.fromReference(_new$1( - _class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, - _$certificate.pointer, + return _new$1(_$$classRef.pointer, _id_new$1.pointer, _$certificate.pointer, _$set.pointer) - .reference); + .object(); } +} - static final _id_getTrustedCertificate = _class.instanceMethodId( - r'getTrustedCertificate', - r'()Ljava/security/cert/Certificate;', +extension KeyStore$TrustedCertificateEntry$$Methods + on KeyStore$TrustedCertificateEntry { + static final _id_get$attributes = + KeyStore$TrustedCertificateEntry._class.instanceMethodId( + r'getAttributes', + r'()Ljava/util/Set;', ); - static final _getTrustedCertificate = jni$_.ProtectedJniExtensions.lookup< + static final _get$attributes = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -21752,20 +17944,21 @@ class KeyStore$TrustedCertificateEntry extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public java.security.cert.Certificate getTrustedCertificate()` + /// from: `public java.util.Set getAttributes()` /// The returned object must be released after use, by calling the [release] method. - Certificate? getTrustedCertificate() { - return _getTrustedCertificate( - reference.pointer, _id_getTrustedCertificate as jni$_.JMethodIDPtr) - .object(const $Certificate$NullableType()); + jni$_.JSet? get attributes { + final _$$selfRef = reference; + return _get$attributes(_$$selfRef.pointer, _id_get$attributes.pointer) + .object?>(); } - static final _id_getAttributes = _class.instanceMethodId( - r'getAttributes', - r'()Ljava/util/Set;', + static final _id_get$trustedCertificate = + KeyStore$TrustedCertificateEntry._class.instanceMethodId( + r'getTrustedCertificate', + r'()Ljava/security/cert/Certificate;', ); - static final _getAttributes = jni$_.ProtectedJniExtensions.lookup< + static final _get$trustedCertificate = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -21777,17 +17970,17 @@ class KeyStore$TrustedCertificateEntry extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public java.util.Set getAttributes()` + /// from: `public java.security.cert.Certificate getTrustedCertificate()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JSet? getAttributes() { - return _getAttributes( - reference.pointer, _id_getAttributes as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JSetNullableType( - $KeyStore$Entry$Attribute$NullableType())); + Certificate? get trustedCertificate { + final _$$selfRef = reference; + return _get$trustedCertificate( + _$$selfRef.pointer, _id_get$trustedCertificate.pointer) + .object(); } - static final _id_toString$1 = _class.instanceMethodId( + static final _id_toString$1 = + KeyStore$TrustedCertificateEntry._class.instanceMethodId( r'toString', r'()Ljava/lang/String;', ); @@ -21807,112 +18000,132 @@ class KeyStore$TrustedCertificateEntry extends jni$_.JObject { /// from: `public java.lang.String toString()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? toString$1() { - return _toString$1(reference.pointer, _id_toString$1 as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + final _$$selfRef = reference; + return _toString$1(_$$selfRef.pointer, _id_toString$1.pointer) + .object(); } } -final class $KeyStore$TrustedCertificateEntry$NullableType - extends jni$_.JObjType { +final class $KeyStore$TrustedCertificateEntry$Type$ + extends jni$_.JType { @jni$_.internal - const $KeyStore$TrustedCertificateEntry$NullableType(); + const $KeyStore$TrustedCertificateEntry$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljava/security/KeyStore$TrustedCertificateEntry;'; - - @jni$_.internal - @core$_.override - KeyStore$TrustedCertificateEntry? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : KeyStore$TrustedCertificateEntry.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyStore$TrustedCertificateEntry$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == - ($KeyStore$TrustedCertificateEntry$NullableType) && - other is $KeyStore$TrustedCertificateEntry$NullableType; - } } -final class $KeyStore$TrustedCertificateEntry$Type - extends jni$_.JObjType { - @jni$_.internal - const $KeyStore$TrustedCertificateEntry$Type(); +/// from: `java.security.KeyStore` +extension type KeyStore._(jni$_.JObject _$this) implements jni$_.JObject { + static final _class = jni$_.JClass.forName(r'java/security/KeyStore'); - @jni$_.internal - @core$_.override - String get signature => r'Ljava/security/KeyStore$TrustedCertificateEntry;'; + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = $KeyStore$Type$(); + static final _id_get$defaultType = _class.staticMethodId( + r'getDefaultType', + r'()Ljava/lang/String;', + ); - @jni$_.internal - @core$_.override - KeyStore$TrustedCertificateEntry fromReference(jni$_.JReference reference) => - KeyStore$TrustedCertificateEntry.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + static final _get$defaultType = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $KeyStore$TrustedCertificateEntry$NullableType(); + /// from: `static public final java.lang.String getDefaultType()` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JString? get defaultType { + final _$$classRef = _class.reference; + return _get$defaultType(_$$classRef.pointer, _id_get$defaultType.pointer) + .object(); + } - @jni$_.internal - @core$_.override - final superCount = 1; + static final _id_getInstance = _class.staticMethodId( + r'getInstance', + r'(Ljava/io/File;[C)Ljava/security/KeyStore;', + ); - @core$_.override - int get hashCode => ($KeyStore$TrustedCertificateEntry$Type).hashCode; + static final _getInstance = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyStore$TrustedCertificateEntry$Type) && - other is $KeyStore$TrustedCertificateEntry$Type; + /// from: `static public final java.security.KeyStore getInstance(java.io.File file, char[] cs)` + /// The returned object must be released after use, by calling the [release] method. + static KeyStore? getInstance( + File? file, + jni$_.JCharArray? cs, + ) { + final _$$classRef = _class.reference; + final _$file = file?.reference ?? jni$_.jNullReference; + final _$cs = cs?.reference ?? jni$_.jNullReference; + return _getInstance(_$$classRef.pointer, _id_getInstance.pointer, + _$file.pointer, _$cs.pointer) + .object(); } -} -/// from: `java.security.KeyStore` -class KeyStore extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; + static final _id_getInstance$1 = _class.staticMethodId( + r'getInstance', + r'(Ljava/io/File;Ljava/security/KeyStore$LoadStoreParameter;)Ljava/security/KeyStore;', + ); - @jni$_.internal - KeyStore.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + static final _getInstance$1 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - static final _class = jni$_.JClass.forName(r'java/security/KeyStore'); + /// from: `static public final java.security.KeyStore getInstance(java.io.File file, java.security.KeyStore$LoadStoreParameter loadStoreParameter)` + /// The returned object must be released after use, by calling the [release] method. + static KeyStore? getInstance$1( + File? file, + KeyStore$LoadStoreParameter? loadStoreParameter, + ) { + final _$$classRef = _class.reference; + final _$file = file?.reference ?? jni$_.jNullReference; + final _$loadStoreParameter = + loadStoreParameter?.reference ?? jni$_.jNullReference; + return _getInstance$1(_$$classRef.pointer, _id_getInstance$1.pointer, + _$file.pointer, _$loadStoreParameter.pointer) + .object(); + } - /// The type which includes information such as the signature of this class. - static const nullableType = $KeyStore$NullableType(); - static const type = $KeyStore$Type(); - static final _id_getInstance = _class.staticMethodId( + static final _id_getInstance$2 = _class.staticMethodId( r'getInstance', r'(Ljava/lang/String;)Ljava/security/KeyStore;', ); - static final _getInstance = jni$_.ProtectedJniExtensions.lookup< + static final _getInstance$2 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -21925,21 +18138,22 @@ class KeyStore extends jni$_.JObject { /// from: `static public java.security.KeyStore getInstance(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - static KeyStore? getInstance( + static KeyStore? getInstance$2( jni$_.JString? string, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; - return _getInstance(_class.reference.pointer, - _id_getInstance as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $KeyStore$NullableType()); + return _getInstance$2( + _$$classRef.pointer, _id_getInstance$2.pointer, _$string.pointer) + .object(); } - static final _id_getInstance$1 = _class.staticMethodId( + static final _id_getInstance$3 = _class.staticMethodId( r'getInstance', r'(Ljava/lang/String;Ljava/lang/String;)Ljava/security/KeyStore;', ); - static final _getInstance$1 = jni$_.ProtectedJniExtensions.lookup< + static final _getInstance$3 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -21958,26 +18172,24 @@ class KeyStore extends jni$_.JObject { /// from: `static public java.security.KeyStore getInstance(java.lang.String string, java.lang.String string1)` /// The returned object must be released after use, by calling the [release] method. - static KeyStore? getInstance$1( + static KeyStore? getInstance$3( jni$_.JString? string, jni$_.JString? string1, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - return _getInstance$1( - _class.reference.pointer, - _id_getInstance$1 as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer) - .object(const $KeyStore$NullableType()); + return _getInstance$3(_$$classRef.pointer, _id_getInstance$3.pointer, + _$string.pointer, _$string1.pointer) + .object(); } - static final _id_getInstance$2 = _class.staticMethodId( + static final _id_getInstance$4 = _class.staticMethodId( r'getInstance', r'(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/KeyStore;', ); - static final _getInstance$2 = jni$_.ProtectedJniExtensions.lookup< + static final _getInstance$4 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -21996,100 +18208,104 @@ class KeyStore extends jni$_.JObject { /// from: `static public java.security.KeyStore getInstance(java.lang.String string, java.security.Provider provider)` /// The returned object must be released after use, by calling the [release] method. - static KeyStore? getInstance$2( + static KeyStore? getInstance$4( jni$_.JString? string, - jni$_.JObject? provider, + Provider? provider, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$provider = provider?.reference ?? jni$_.jNullReference; - return _getInstance$2( - _class.reference.pointer, - _id_getInstance$2 as jni$_.JMethodIDPtr, - _$string.pointer, - _$provider.pointer) - .object(const $KeyStore$NullableType()); + return _getInstance$4(_$$classRef.pointer, _id_getInstance$4.pointer, + _$string.pointer, _$provider.pointer) + .object(); } +} - static final _id_getDefaultType = _class.staticMethodId( - r'getDefaultType', - r'()Ljava/lang/String;', +extension KeyStore$$Methods on KeyStore { + static final _id_aliases = KeyStore._class.instanceMethodId( + r'aliases', + r'()Ljava/util/Enumeration;', ); - static final _getDefaultType = jni$_.ProtectedJniExtensions.lookup< + static final _aliases = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') + )>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, )>(); - /// from: `static public final java.lang.String getDefaultType()` + /// from: `public final java.util.Enumeration aliases()` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? getDefaultType() { - return _getDefaultType( - _class.reference.pointer, _id_getDefaultType as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + Enumeration? aliases() { + final _$$selfRef = reference; + return _aliases(_$$selfRef.pointer, _id_aliases.pointer) + .object?>(); } - static final _id_getProvider = _class.instanceMethodId( - r'getProvider', - r'()Ljava/security/Provider;', + static final _id_containsAlias = KeyStore._class.instanceMethodId( + r'containsAlias', + r'(Ljava/lang/String;)Z', ); - static final _getProvider = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') + static final _containsAlias = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallBooleanMethod') .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final java.security.Provider getProvider()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getProvider() { - return _getProvider( - reference.pointer, _id_getProvider as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + /// from: `public final boolean containsAlias(java.lang.String string)` + core$_.bool containsAlias( + jni$_.JString? string, + ) { + final _$$selfRef = reference; + final _$string = string?.reference ?? jni$_.jNullReference; + return _containsAlias( + _$$selfRef.pointer, _id_containsAlias.pointer, _$string.pointer) + .boolean; } - static final _id_getType = _class.instanceMethodId( - r'getType', - r'()Ljava/lang/String;', + static final _id_deleteEntry = KeyStore._class.instanceMethodId( + r'deleteEntry', + r'(Ljava/lang/String;)V', ); - static final _getType = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') + static final _deleteEntry = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final java.lang.String getType()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getType() { - return _getType(reference.pointer, _id_getType as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + /// from: `public final void deleteEntry(java.lang.String string)` + void deleteEntry( + jni$_.JString? string, + ) { + final _$$selfRef = reference; + final _$string = string?.reference ?? jni$_.jNullReference; + _deleteEntry(_$$selfRef.pointer, _id_deleteEntry.pointer, _$string.pointer) + .check(); } - static final _id_getKey = _class.instanceMethodId( - r'getKey', - r'(Ljava/lang/String;[C)Ljava/security/Key;', + static final _id_entryInstanceOf = KeyStore._class.instanceMethodId( + r'entryInstanceOf', + r'(Ljava/lang/String;Ljava/lang/Class;)Z', ); - static final _getKey = jni$_.ProtectedJniExtensions.lookup< + static final _entryInstanceOf = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -22098,7 +18314,7 @@ class KeyStore extends jni$_.JObject { ( jni$_.Pointer, jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') + )>)>>('globalEnv_CallBooleanMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -22106,25 +18322,25 @@ class KeyStore extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final java.security.Key getKey(java.lang.String string, char[] cs)` - /// The returned object must be released after use, by calling the [release] method. - Key? getKey( + /// from: `public final boolean entryInstanceOf(java.lang.String string, java.lang.Class class)` + core$_.bool entryInstanceOf( jni$_.JString? string, - jni$_.JCharArray? cs, + jni$_.JClass? class$, ) { + final _$$selfRef = reference; final _$string = string?.reference ?? jni$_.jNullReference; - final _$cs = cs?.reference ?? jni$_.jNullReference; - return _getKey(reference.pointer, _id_getKey as jni$_.JMethodIDPtr, - _$string.pointer, _$cs.pointer) - .object(const $Key$NullableType()); + final _$class$ = class$?.reference ?? jni$_.jNullReference; + return _entryInstanceOf(_$$selfRef.pointer, _id_entryInstanceOf.pointer, + _$string.pointer, _$class$.pointer) + .boolean; } - static final _id_getCertificateChain = _class.instanceMethodId( - r'getCertificateChain', - r'(Ljava/lang/String;)[Ljava/security/cert/Certificate;', + static final _id_getCertificate = KeyStore._class.instanceMethodId( + r'getCertificate', + r'(Ljava/lang/String;)Ljava/security/cert/Certificate;', ); - static final _getCertificateChain = jni$_.ProtectedJniExtensions.lookup< + static final _getCertificate = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -22135,25 +18351,24 @@ class KeyStore extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final java.security.cert.Certificate[] getCertificateChain(java.lang.String string)` + /// from: `public final java.security.cert.Certificate getCertificate(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JArray? getCertificateChain( + Certificate? getCertificate( jni$_.JString? string, ) { + final _$$selfRef = reference; final _$string = string?.reference ?? jni$_.jNullReference; - return _getCertificateChain(reference.pointer, - _id_getCertificateChain as jni$_.JMethodIDPtr, _$string.pointer) - .object?>( - const jni$_.JArrayNullableType( - $Certificate$NullableType())); + return _getCertificate( + _$$selfRef.pointer, _id_getCertificate.pointer, _$string.pointer) + .object(); } - static final _id_getCertificate = _class.instanceMethodId( - r'getCertificate', - r'(Ljava/lang/String;)Ljava/security/cert/Certificate;', + static final _id_getCertificateAlias = KeyStore._class.instanceMethodId( + r'getCertificateAlias', + r'(Ljava/security/cert/Certificate;)Ljava/lang/String;', ); - static final _getCertificate = jni$_.ProtectedJniExtensions.lookup< + static final _getCertificateAlias = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -22164,23 +18379,24 @@ class KeyStore extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final java.security.cert.Certificate getCertificate(java.lang.String string)` + /// from: `public final java.lang.String getCertificateAlias(java.security.cert.Certificate certificate)` /// The returned object must be released after use, by calling the [release] method. - Certificate? getCertificate( - jni$_.JString? string, + jni$_.JString? getCertificateAlias( + Certificate? certificate, ) { - final _$string = string?.reference ?? jni$_.jNullReference; - return _getCertificate(reference.pointer, - _id_getCertificate as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $Certificate$NullableType()); + final _$$selfRef = reference; + final _$certificate = certificate?.reference ?? jni$_.jNullReference; + return _getCertificateAlias(_$$selfRef.pointer, + _id_getCertificateAlias.pointer, _$certificate.pointer) + .object(); } - static final _id_getCreationDate = _class.instanceMethodId( - r'getCreationDate', - r'(Ljava/lang/String;)Ljava/util/Date;', + static final _id_getCertificateChain = KeyStore._class.instanceMethodId( + r'getCertificateChain', + r'(Ljava/lang/String;)[Ljava/security/cert/Certificate;', ); - static final _getCreationDate = jni$_.ProtectedJniExtensions.lookup< + static final _getCertificateChain = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -22191,171 +18407,125 @@ class KeyStore extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final java.util.Date getCreationDate(java.lang.String string)` + /// from: `public final java.security.cert.Certificate[] getCertificateChain(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getCreationDate( + jni$_.JArray? getCertificateChain( jni$_.JString? string, ) { + final _$$selfRef = reference; final _$string = string?.reference ?? jni$_.jNullReference; - return _getCreationDate(reference.pointer, - _id_getCreationDate as jni$_.JMethodIDPtr, _$string.pointer) - .object(const jni$_.JObjectNullableType()); + return _getCertificateChain(_$$selfRef.pointer, + _id_getCertificateChain.pointer, _$string.pointer) + .object?>(); } - static final _id_setKeyEntry = _class.instanceMethodId( - r'setKeyEntry', - r'(Ljava/lang/String;Ljava/security/Key;[C[Ljava/security/cert/Certificate;)V', + static final _id_getCreationDate = KeyStore._class.instanceMethodId( + r'getCreationDate', + r'(Ljava/lang/String;)Ljava/util/Date;', ); - static final _setKeyEntry = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') + static final _getCreationDate = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallObjectMethod') .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final void setKeyEntry(java.lang.String string, java.security.Key key, char[] cs, java.security.cert.Certificate[] certificates)` - void setKeyEntry( + /// from: `public final java.util.Date getCreationDate(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + Date? getCreationDate( jni$_.JString? string, - Key? key, - jni$_.JCharArray? cs, - jni$_.JArray? certificates, ) { + final _$$selfRef = reference; final _$string = string?.reference ?? jni$_.jNullReference; - final _$key = key?.reference ?? jni$_.jNullReference; - final _$cs = cs?.reference ?? jni$_.jNullReference; - final _$certificates = certificates?.reference ?? jni$_.jNullReference; - _setKeyEntry( - reference.pointer, - _id_setKeyEntry as jni$_.JMethodIDPtr, - _$string.pointer, - _$key.pointer, - _$cs.pointer, - _$certificates.pointer) - .check(); + return _getCreationDate( + _$$selfRef.pointer, _id_getCreationDate.pointer, _$string.pointer) + .object(); } - static final _id_setKeyEntry$1 = _class.instanceMethodId( - r'setKeyEntry', - r'(Ljava/lang/String;[B[Ljava/security/cert/Certificate;)V', + static final _id_getEntry = KeyStore._class.instanceMethodId( + r'getEntry', + r'(Ljava/lang/String;Ljava/security/KeyStore$ProtectionParameter;)Ljava/security/KeyStore$Entry;', ); - static final _setKeyEntry$1 = jni$_.ProtectedJniExtensions.lookup< + static final _getEntry = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( - jni$_.Pointer, jni$_.Pointer, jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') + )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final void setKeyEntry(java.lang.String string, byte[] bs, java.security.cert.Certificate[] certificates)` - void setKeyEntry$1( + /// from: `public final java.security.KeyStore$Entry getEntry(java.lang.String string, java.security.KeyStore$ProtectionParameter protectionParameter)` + /// The returned object must be released after use, by calling the [release] method. + KeyStore$Entry? getEntry( jni$_.JString? string, - jni$_.JByteArray? bs, - jni$_.JArray? certificates, + KeyStore$ProtectionParameter? protectionParameter, ) { + final _$$selfRef = reference; final _$string = string?.reference ?? jni$_.jNullReference; - final _$bs = bs?.reference ?? jni$_.jNullReference; - final _$certificates = certificates?.reference ?? jni$_.jNullReference; - _setKeyEntry$1(reference.pointer, _id_setKeyEntry$1 as jni$_.JMethodIDPtr, - _$string.pointer, _$bs.pointer, _$certificates.pointer) - .check(); + final _$protectionParameter = + protectionParameter?.reference ?? jni$_.jNullReference; + return _getEntry(_$$selfRef.pointer, _id_getEntry.pointer, _$string.pointer, + _$protectionParameter.pointer) + .object(); } - static final _id_setCertificateEntry = _class.instanceMethodId( - r'setCertificateEntry', - r'(Ljava/lang/String;Ljava/security/cert/Certificate;)V', + static final _id_getKey = KeyStore._class.instanceMethodId( + r'getKey', + r'(Ljava/lang/String;[C)Ljava/security/Key;', ); - static final _setCertificateEntry = jni$_.ProtectedJniExtensions.lookup< + static final _getKey = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') + )>)>>('globalEnv_CallObjectMethod') .asFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final void setCertificateEntry(java.lang.String string, java.security.cert.Certificate certificate)` - void setCertificateEntry( - jni$_.JString? string, - Certificate? certificate, - ) { - final _$string = string?.reference ?? jni$_.jNullReference; - final _$certificate = certificate?.reference ?? jni$_.jNullReference; - _setCertificateEntry( - reference.pointer, - _id_setCertificateEntry as jni$_.JMethodIDPtr, - _$string.pointer, - _$certificate.pointer) - .check(); - } - - static final _id_deleteEntry = _class.instanceMethodId( - r'deleteEntry', - r'(Ljava/lang/String;)V', - ); - - static final _deleteEntry = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public final void deleteEntry(java.lang.String string)` - void deleteEntry( + /// from: `public final java.security.Key getKey(java.lang.String string, char[] cs)` + /// The returned object must be released after use, by calling the [release] method. + Key? getKey( jni$_.JString? string, + jni$_.JCharArray? cs, ) { + final _$$selfRef = reference; final _$string = string?.reference ?? jni$_.jNullReference; - _deleteEntry(reference.pointer, _id_deleteEntry as jni$_.JMethodIDPtr, - _$string.pointer) - .check(); + final _$cs = cs?.reference ?? jni$_.jNullReference; + return _getKey(_$$selfRef.pointer, _id_getKey.pointer, _$string.pointer, + _$cs.pointer) + .object(); } - static final _id_aliases = _class.instanceMethodId( - r'aliases', - r'()Ljava/util/Enumeration;', + static final _id_get$provider = KeyStore._class.instanceMethodId( + r'getProvider', + r'()Ljava/security/Provider;', ); - static final _aliases = jni$_.ProtectedJniExtensions.lookup< + static final _get$provider = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -22367,69 +18537,45 @@ class KeyStore extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final java.util.Enumeration aliases()` + /// from: `public final java.security.Provider getProvider()` /// The returned object must be released after use, by calling the [release] method. - Enumeration? aliases() { - return _aliases(reference.pointer, _id_aliases as jni$_.JMethodIDPtr) - .object?>( - const $Enumeration$NullableType( - jni$_.JStringNullableType())); - } - - static final _id_containsAlias = _class.instanceMethodId( - r'containsAlias', - r'(Ljava/lang/String;)Z', - ); - - static final _containsAlias = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public final boolean containsAlias(java.lang.String string)` - bool containsAlias( - jni$_.JString? string, - ) { - final _$string = string?.reference ?? jni$_.jNullReference; - return _containsAlias(reference.pointer, - _id_containsAlias as jni$_.JMethodIDPtr, _$string.pointer) - .boolean; + Provider? get provider { + final _$$selfRef = reference; + return _get$provider(_$$selfRef.pointer, _id_get$provider.pointer) + .object(); } - static final _id_size = _class.instanceMethodId( - r'size', - r'()I', + static final _id_get$type$1 = KeyStore._class.instanceMethodId( + r'getType', + r'()Ljava/lang/String;', ); - static final _size = jni$_.ProtectedJniExtensions.lookup< + static final _get$type$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') + )>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, )>(); - /// from: `public final int size()` - int size() { - return _size(reference.pointer, _id_size as jni$_.JMethodIDPtr).integer; + /// from: `public final java.lang.String getType()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JString? get type$1 { + final _$$selfRef = reference; + return _get$type$1(_$$selfRef.pointer, _id_get$type$1.pointer) + .object(); } - static final _id_isKeyEntry = _class.instanceMethodId( - r'isKeyEntry', + static final _id_isCertificateEntry = KeyStore._class.instanceMethodId( + r'isCertificateEntry', r'(Ljava/lang/String;)Z', ); - static final _isKeyEntry = jni$_.ProtectedJniExtensions.lookup< + static final _isCertificateEntry = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -22440,22 +18586,23 @@ class KeyStore extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final boolean isKeyEntry(java.lang.String string)` - bool isKeyEntry( + /// from: `public final boolean isCertificateEntry(java.lang.String string)` + core$_.bool isCertificateEntry( jni$_.JString? string, ) { + final _$$selfRef = reference; final _$string = string?.reference ?? jni$_.jNullReference; - return _isKeyEntry(reference.pointer, _id_isKeyEntry as jni$_.JMethodIDPtr, - _$string.pointer) + return _isCertificateEntry(_$$selfRef.pointer, + _id_isCertificateEntry.pointer, _$string.pointer) .boolean; } - static final _id_isCertificateEntry = _class.instanceMethodId( - r'isCertificateEntry', + static final _id_isKeyEntry = KeyStore._class.instanceMethodId( + r'isKeyEntry', r'(Ljava/lang/String;)Z', ); - static final _isCertificateEntry = jni$_.ProtectedJniExtensions.lookup< + static final _isKeyEntry = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -22466,51 +18613,23 @@ class KeyStore extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final boolean isCertificateEntry(java.lang.String string)` - bool isCertificateEntry( + /// from: `public final boolean isKeyEntry(java.lang.String string)` + core$_.bool isKeyEntry( jni$_.JString? string, ) { + final _$$selfRef = reference; final _$string = string?.reference ?? jni$_.jNullReference; - return _isCertificateEntry(reference.pointer, - _id_isCertificateEntry as jni$_.JMethodIDPtr, _$string.pointer) + return _isKeyEntry( + _$$selfRef.pointer, _id_isKeyEntry.pointer, _$string.pointer) .boolean; } - static final _id_getCertificateAlias = _class.instanceMethodId( - r'getCertificateAlias', - r'(Ljava/security/cert/Certificate;)Ljava/lang/String;', - ); - - static final _getCertificateAlias = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public final java.lang.String getCertificateAlias(java.security.cert.Certificate certificate)` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getCertificateAlias( - Certificate? certificate, - ) { - final _$certificate = certificate?.reference ?? jni$_.jNullReference; - return _getCertificateAlias( - reference.pointer, - _id_getCertificateAlias as jni$_.JMethodIDPtr, - _$certificate.pointer) - .object(const jni$_.JStringNullableType()); - } - - static final _id_store = _class.instanceMethodId( - r'store', - r'(Ljava/io/OutputStream;[C)V', + static final _id_load = KeyStore._class.instanceMethodId( + r'load', + r'(Ljava/io/InputStream;[C)V', ); - static final _store = jni$_.ProtectedJniExtensions.lookup< + static final _load = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -22527,24 +18646,25 @@ class KeyStore extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final void store(java.io.OutputStream outputStream, char[] cs)` - void store( - jni$_.JObject? outputStream, + /// from: `public final void load(java.io.InputStream inputStream, char[] cs)` + void load( + InputStream? inputStream, jni$_.JCharArray? cs, ) { - final _$outputStream = outputStream?.reference ?? jni$_.jNullReference; + final _$$selfRef = reference; + final _$inputStream = inputStream?.reference ?? jni$_.jNullReference; final _$cs = cs?.reference ?? jni$_.jNullReference; - _store(reference.pointer, _id_store as jni$_.JMethodIDPtr, - _$outputStream.pointer, _$cs.pointer) + _load(_$$selfRef.pointer, _id_load.pointer, _$inputStream.pointer, + _$cs.pointer) .check(); } - static final _id_store$1 = _class.instanceMethodId( - r'store', + static final _id_load$1 = KeyStore._class.instanceMethodId( + r'load', r'(Ljava/security/KeyStore$LoadStoreParameter;)V', ); - static final _store$1 = jni$_.ProtectedJniExtensions.lookup< + static final _load$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -22555,23 +18675,24 @@ class KeyStore extends jni$_.JObject { jni$_.JThrowablePtr Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public final void store(java.security.KeyStore$LoadStoreParameter loadStoreParameter)` - void store$1( + /// from: `public final void load(java.security.KeyStore$LoadStoreParameter loadStoreParameter)` + void load$1( KeyStore$LoadStoreParameter? loadStoreParameter, ) { + final _$$selfRef = reference; final _$loadStoreParameter = loadStoreParameter?.reference ?? jni$_.jNullReference; - _store$1(reference.pointer, _id_store$1 as jni$_.JMethodIDPtr, + _load$1(_$$selfRef.pointer, _id_load$1.pointer, _$loadStoreParameter.pointer) .check(); } - static final _id_load = _class.instanceMethodId( - r'load', - r'(Ljava/io/InputStream;[C)V', + static final _id_setCertificateEntry = KeyStore._class.instanceMethodId( + r'setCertificateEntry', + r'(Ljava/lang/String;Ljava/security/cert/Certificate;)V', ); - static final _load = jni$_.ProtectedJniExtensions.lookup< + static final _setCertificateEntry = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -22588,87 +18709,65 @@ class KeyStore extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final void load(java.io.InputStream inputStream, char[] cs)` - void load( - jni$_.JObject? inputStream, - jni$_.JCharArray? cs, - ) { - final _$inputStream = inputStream?.reference ?? jni$_.jNullReference; - final _$cs = cs?.reference ?? jni$_.jNullReference; - _load(reference.pointer, _id_load as jni$_.JMethodIDPtr, - _$inputStream.pointer, _$cs.pointer) - .check(); - } - - static final _id_load$1 = _class.instanceMethodId( - r'load', - r'(Ljava/security/KeyStore$LoadStoreParameter;)V', - ); - - static final _load$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public final void load(java.security.KeyStore$LoadStoreParameter loadStoreParameter)` - void load$1( - KeyStore$LoadStoreParameter? loadStoreParameter, + /// from: `public final void setCertificateEntry(java.lang.String string, java.security.cert.Certificate certificate)` + void setCertificateEntry( + jni$_.JString? string, + Certificate? certificate, ) { - final _$loadStoreParameter = - loadStoreParameter?.reference ?? jni$_.jNullReference; - _load$1(reference.pointer, _id_load$1 as jni$_.JMethodIDPtr, - _$loadStoreParameter.pointer) + final _$$selfRef = reference; + final _$string = string?.reference ?? jni$_.jNullReference; + final _$certificate = certificate?.reference ?? jni$_.jNullReference; + _setCertificateEntry(_$$selfRef.pointer, _id_setCertificateEntry.pointer, + _$string.pointer, _$certificate.pointer) .check(); } - static final _id_getEntry = _class.instanceMethodId( - r'getEntry', - r'(Ljava/lang/String;Ljava/security/KeyStore$ProtectionParameter;)Ljava/security/KeyStore$Entry;', + static final _id_setEntry = KeyStore._class.instanceMethodId( + r'setEntry', + r'(Ljava/lang/String;Ljava/security/KeyStore$Entry;Ljava/security/KeyStore$ProtectionParameter;)V', ); - static final _getEntry = jni$_.ProtectedJniExtensions.lookup< + static final _setEntry = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( + jni$_.Pointer, jni$_.Pointer, jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') + )>)>>('globalEnv_CallVoidMethod') .asFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, + jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final java.security.KeyStore$Entry getEntry(java.lang.String string, java.security.KeyStore$ProtectionParameter protectionParameter)` - /// The returned object must be released after use, by calling the [release] method. - KeyStore$Entry? getEntry( + /// from: `public final void setEntry(java.lang.String string, java.security.KeyStore$Entry entry, java.security.KeyStore$ProtectionParameter protectionParameter)` + void setEntry( jni$_.JString? string, + KeyStore$Entry? entry, KeyStore$ProtectionParameter? protectionParameter, ) { + final _$$selfRef = reference; final _$string = string?.reference ?? jni$_.jNullReference; + final _$entry = entry?.reference ?? jni$_.jNullReference; final _$protectionParameter = protectionParameter?.reference ?? jni$_.jNullReference; - return _getEntry(reference.pointer, _id_getEntry as jni$_.JMethodIDPtr, - _$string.pointer, _$protectionParameter.pointer) - .object(const $KeyStore$Entry$NullableType()); + _setEntry(_$$selfRef.pointer, _id_setEntry.pointer, _$string.pointer, + _$entry.pointer, _$protectionParameter.pointer) + .check(); } - static final _id_setEntry = _class.instanceMethodId( - r'setEntry', - r'(Ljava/lang/String;Ljava/security/KeyStore$Entry;Ljava/security/KeyStore$ProtectionParameter;)V', + static final _id_setKeyEntry = KeyStore._class.instanceMethodId( + r'setKeyEntry', + r'(Ljava/lang/String;[B[Ljava/security/cert/Certificate;)V', ); - static final _setEntry = jni$_.ProtectedJniExtensions.lookup< + static final _setKeyEntry = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -22687,229 +18786,176 @@ class KeyStore extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final void setEntry(java.lang.String string, java.security.KeyStore$Entry entry, java.security.KeyStore$ProtectionParameter protectionParameter)` - void setEntry( + /// from: `public final void setKeyEntry(java.lang.String string, byte[] bs, java.security.cert.Certificate[] certificates)` + void setKeyEntry( jni$_.JString? string, - KeyStore$Entry? entry, - KeyStore$ProtectionParameter? protectionParameter, + jni$_.JByteArray? bs, + jni$_.JArray? certificates, ) { + final _$$selfRef = reference; final _$string = string?.reference ?? jni$_.jNullReference; - final _$entry = entry?.reference ?? jni$_.jNullReference; - final _$protectionParameter = - protectionParameter?.reference ?? jni$_.jNullReference; - _setEntry(reference.pointer, _id_setEntry as jni$_.JMethodIDPtr, - _$string.pointer, _$entry.pointer, _$protectionParameter.pointer) + final _$bs = bs?.reference ?? jni$_.jNullReference; + final _$certificates = certificates?.reference ?? jni$_.jNullReference; + _setKeyEntry(_$$selfRef.pointer, _id_setKeyEntry.pointer, _$string.pointer, + _$bs.pointer, _$certificates.pointer) .check(); } - static final _id_entryInstanceOf = _class.instanceMethodId( - r'entryInstanceOf', - r'(Ljava/lang/String;Ljava/lang/Class;)Z', + static final _id_setKeyEntry$1 = KeyStore._class.instanceMethodId( + r'setKeyEntry', + r'(Ljava/lang/String;Ljava/security/Key;[C[Ljava/security/cert/Certificate;)V', ); - static final _entryInstanceOf = jni$_.ProtectedJniExtensions.lookup< + static final _setKeyEntry$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( + jni$_.Pointer, + jni$_.Pointer, jni$_.Pointer, jni$_.Pointer - )>)>>('globalEnv_CallBooleanMethod') + )>)>>('globalEnv_CallVoidMethod') .asFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public final boolean entryInstanceOf(java.lang.String string, java.lang.Class class)` - bool entryInstanceOf( + /// from: `public final void setKeyEntry(java.lang.String string, java.security.Key key, char[] cs, java.security.cert.Certificate[] certificates)` + void setKeyEntry$1( jni$_.JString? string, - jni$_.JObject? class$, + Key? key, + jni$_.JCharArray? cs, + jni$_.JArray? certificates, ) { + final _$$selfRef = reference; final _$string = string?.reference ?? jni$_.jNullReference; - final _$class$ = class$?.reference ?? jni$_.jNullReference; - return _entryInstanceOf( - reference.pointer, - _id_entryInstanceOf as jni$_.JMethodIDPtr, + final _$key = key?.reference ?? jni$_.jNullReference; + final _$cs = cs?.reference ?? jni$_.jNullReference; + final _$certificates = certificates?.reference ?? jni$_.jNullReference; + _setKeyEntry$1( + _$$selfRef.pointer, + _id_setKeyEntry$1.pointer, _$string.pointer, - _$class$.pointer) - .boolean; + _$key.pointer, + _$cs.pointer, + _$certificates.pointer) + .check(); } - static final _id_getInstance$3 = _class.staticMethodId( - r'getInstance', - r'(Ljava/io/File;[C)Ljava/security/KeyStore;', + static final _id_size = KeyStore._class.instanceMethodId( + r'size', + r'()I', ); - static final _getInstance$3 = jni$_.ProtectedJniExtensions.lookup< + static final _size = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public final int size()` + core$_.int size() { + final _$$selfRef = reference; + return _size(_$$selfRef.pointer, _id_size.pointer).integer; + } + + static final _id_store = KeyStore._class.instanceMethodId( + r'store', + r'(Ljava/io/OutputStream;[C)V', + ); + + static final _store = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') + )>)>>('globalEnv_CallVoidMethod') .asFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer)>(); - /// from: `static public final java.security.KeyStore getInstance(java.io.File file, char[] cs)` - /// The returned object must be released after use, by calling the [release] method. - static KeyStore? getInstance$3( - jni$_.JObject? file, + /// from: `public final void store(java.io.OutputStream outputStream, char[] cs)` + void store( + OutputStream? outputStream, jni$_.JCharArray? cs, ) { - final _$file = file?.reference ?? jni$_.jNullReference; + final _$$selfRef = reference; + final _$outputStream = outputStream?.reference ?? jni$_.jNullReference; final _$cs = cs?.reference ?? jni$_.jNullReference; - return _getInstance$3( - _class.reference.pointer, - _id_getInstance$3 as jni$_.JMethodIDPtr, - _$file.pointer, + _store(_$$selfRef.pointer, _id_store.pointer, _$outputStream.pointer, _$cs.pointer) - .object(const $KeyStore$NullableType()); + .check(); } - static final _id_getInstance$4 = _class.staticMethodId( - r'getInstance', - r'(Ljava/io/File;Ljava/security/KeyStore$LoadStoreParameter;)Ljava/security/KeyStore;', + static final _id_store$1 = KeyStore._class.instanceMethodId( + r'store', + r'(Ljava/security/KeyStore$LoadStoreParameter;)V', ); - static final _getInstance$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') + static final _store$1 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public final java.security.KeyStore getInstance(java.io.File file, java.security.KeyStore$LoadStoreParameter loadStoreParameter)` - /// The returned object must be released after use, by calling the [release] method. - static KeyStore? getInstance$4( - jni$_.JObject? file, + /// from: `public final void store(java.security.KeyStore$LoadStoreParameter loadStoreParameter)` + void store$1( KeyStore$LoadStoreParameter? loadStoreParameter, ) { - final _$file = file?.reference ?? jni$_.jNullReference; + final _$$selfRef = reference; final _$loadStoreParameter = loadStoreParameter?.reference ?? jni$_.jNullReference; - return _getInstance$4( - _class.reference.pointer, - _id_getInstance$4 as jni$_.JMethodIDPtr, - _$file.pointer, + _store$1(_$$selfRef.pointer, _id_store$1.pointer, _$loadStoreParameter.pointer) - .object(const $KeyStore$NullableType()); - } -} - -final class $KeyStore$NullableType extends jni$_.JObjType { - @jni$_.internal - const $KeyStore$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljava/security/KeyStore;'; - - @jni$_.internal - @core$_.override - KeyStore? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : KeyStore.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyStore$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyStore$NullableType) && - other is $KeyStore$NullableType; + .check(); } } -final class $KeyStore$Type extends jni$_.JObjType { +final class $KeyStore$Type$ extends jni$_.JType { @jni$_.internal - const $KeyStore$Type(); + const $KeyStore$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljava/security/KeyStore;'; - - @jni$_.internal - @core$_.override - KeyStore fromReference(jni$_.JReference reference) => KeyStore.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => const $KeyStore$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyStore$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyStore$Type) && other is $KeyStore$Type; - } } /// from: `javax.net.ssl.KeyManager` -class KeyManager extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - KeyManager.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type KeyManager._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'javax/net/ssl/KeyManager'); /// The type which includes information such as the signature of this class. - static const nullableType = $KeyManager$NullableType(); - static const type = $KeyManager$Type(); + static const jni$_.JType type = $KeyManager$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; + static final core$_.Map _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -22930,7 +18976,7 @@ class KeyManager extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -22955,6 +19001,7 @@ class KeyManager extends jni$_.JObject { } final $i = jni$_.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); + $i.args?.release(); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( @@ -22972,9 +19019,7 @@ class KeyManager extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return KeyManager.fromReference( - $i.implementReference(), - ); + return $i.implement(); } } @@ -22986,99 +19031,24 @@ final class _$KeyManager with $KeyManager { _$KeyManager(); } -final class $KeyManager$NullableType extends jni$_.JObjType { +final class $KeyManager$Type$ extends jni$_.JType { @jni$_.internal - const $KeyManager$NullableType(); + const $KeyManager$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljavax/net/ssl/KeyManager;'; +} - @jni$_.internal - @core$_.override - KeyManager? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : KeyManager.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; +/// from: `java.security.SecureRandom` +extension type SecureRandom._(jni$_.JObject _$this) implements Random { + static final _class = jni$_.JClass.forName(r'java/security/SecureRandom'); - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyManager$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyManager$NullableType) && - other is $KeyManager$NullableType; - } -} - -final class $KeyManager$Type extends jni$_.JObjType { - @jni$_.internal - const $KeyManager$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljavax/net/ssl/KeyManager;'; - - @jni$_.internal - @core$_.override - KeyManager fromReference(jni$_.JReference reference) => - KeyManager.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $KeyManager$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyManager$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyManager$Type) && other is $KeyManager$Type; - } -} - -/// from: `java.security.SecureRandom` -class SecureRandom extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - SecureRandom.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = jni$_.JClass.forName(r'java/security/SecureRandom'); - - /// The type which includes information such as the signature of this class. - static const nullableType = $SecureRandom$NullableType(); - static const type = $SecureRandom$Type(); - static final _id_new$ = _class.constructorId( - r'()V', - ); + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = $SecureRandom$Type$(); + static final _id_new$ = _class.constructorId( + r'()V', + ); static final _new$ = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< @@ -23095,9 +19065,8 @@ class SecureRandom extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SecureRandom() { - return SecureRandom.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + final _$$classRef = _class.reference; + return _new$(_$$classRef.pointer, _id_new$.pointer).object(); } static final _id_new$1 = _class.constructorId( @@ -23120,10 +19089,10 @@ class SecureRandom extends jni$_.JObject { factory SecureRandom.new$1( jni$_.JByteArray? bs, ) { + final _$$classRef = _class.reference; final _$bs = bs?.reference ?? jni$_.jNullReference; - return SecureRandom.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, _$bs.pointer) - .reference); + return _new$1(_$$classRef.pointer, _id_new$1.pointer, _$bs.pointer) + .object(); } static final _id_getInstance = _class.staticMethodId( @@ -23147,10 +19116,11 @@ class SecureRandom extends jni$_.JObject { static SecureRandom? getInstance( jni$_.JString? string, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; - return _getInstance(_class.reference.pointer, - _id_getInstance as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $SecureRandom$NullableType()); + return _getInstance( + _$$classRef.pointer, _id_getInstance.pointer, _$string.pointer) + .object(); } static final _id_getInstance$1 = _class.staticMethodId( @@ -23181,14 +19151,12 @@ class SecureRandom extends jni$_.JObject { jni$_.JString? string, jni$_.JString? string1, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - return _getInstance$1( - _class.reference.pointer, - _id_getInstance$1 as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer) - .object(const $SecureRandom$NullableType()); + return _getInstance$1(_$$classRef.pointer, _id_getInstance$1.pointer, + _$string.pointer, _$string1.pointer) + .object(); } static final _id_getInstance$2 = _class.staticMethodId( @@ -23217,16 +19185,14 @@ class SecureRandom extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static SecureRandom? getInstance$2( jni$_.JString? string, - jni$_.JObject? provider, + Provider? provider, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$provider = provider?.reference ?? jni$_.jNullReference; - return _getInstance$2( - _class.reference.pointer, - _id_getInstance$2 as jni$_.JMethodIDPtr, - _$string.pointer, - _$provider.pointer) - .object(const $SecureRandom$NullableType()); + return _getInstance$2(_$$classRef.pointer, _id_getInstance$2.pointer, + _$string.pointer, _$provider.pointer) + .object(); } static final _id_getInstance$3 = _class.staticMethodId( @@ -23255,17 +19221,15 @@ class SecureRandom extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static SecureRandom? getInstance$3( jni$_.JString? string, - jni$_.JObject? secureRandomParameters, + SecureRandomParameters? secureRandomParameters, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$secureRandomParameters = secureRandomParameters?.reference ?? jni$_.jNullReference; - return _getInstance$3( - _class.reference.pointer, - _id_getInstance$3 as jni$_.JMethodIDPtr, - _$string.pointer, - _$secureRandomParameters.pointer) - .object(const $SecureRandom$NullableType()); + return _getInstance$3(_$$classRef.pointer, _id_getInstance$3.pointer, + _$string.pointer, _$secureRandomParameters.pointer) + .object(); } static final _id_getInstance$4 = _class.staticMethodId( @@ -23296,20 +19260,21 @@ class SecureRandom extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static SecureRandom? getInstance$4( jni$_.JString? string, - jni$_.JObject? secureRandomParameters, + SecureRandomParameters? secureRandomParameters, jni$_.JString? string1, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$secureRandomParameters = secureRandomParameters?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; return _getInstance$4( - _class.reference.pointer, - _id_getInstance$4 as jni$_.JMethodIDPtr, + _$$classRef.pointer, + _id_getInstance$4.pointer, _$string.pointer, _$secureRandomParameters.pointer, _$string1.pointer) - .object(const $SecureRandom$NullableType()); + .object(); } static final _id_getInstance$5 = _class.staticMethodId( @@ -23340,78 +19305,106 @@ class SecureRandom extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static SecureRandom? getInstance$5( jni$_.JString? string, - jni$_.JObject? secureRandomParameters, - jni$_.JObject? provider, + SecureRandomParameters? secureRandomParameters, + Provider? provider, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$secureRandomParameters = secureRandomParameters?.reference ?? jni$_.jNullReference; final _$provider = provider?.reference ?? jni$_.jNullReference; return _getInstance$5( - _class.reference.pointer, - _id_getInstance$5 as jni$_.JMethodIDPtr, + _$$classRef.pointer, + _id_getInstance$5.pointer, _$string.pointer, _$secureRandomParameters.pointer, _$provider.pointer) - .object(const $SecureRandom$NullableType()); + .object(); } - static final _id_getProvider = _class.instanceMethodId( - r'getProvider', - r'()Ljava/security/Provider;', + static final _id_get$instanceStrong = _class.staticMethodId( + r'getInstanceStrong', + r'()Ljava/security/SecureRandom;', ); - static final _getProvider = jni$_.ProtectedJniExtensions.lookup< + static final _get$instanceStrong = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') + )>>('globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, )>(); - /// from: `public final java.security.Provider getProvider()` + /// from: `static public java.security.SecureRandom getInstanceStrong()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getProvider() { - return _getProvider( - reference.pointer, _id_getProvider as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + static SecureRandom? get instanceStrong { + final _$$classRef = _class.reference; + return _get$instanceStrong( + _$$classRef.pointer, _id_get$instanceStrong.pointer) + .object(); } - static final _id_getAlgorithm = _class.instanceMethodId( - r'getAlgorithm', - r'()Ljava/lang/String;', + static final _id_getSeed = _class.staticMethodId( + r'getSeed', + r'(I)[B', ); - static final _getAlgorithm = jni$_.ProtectedJniExtensions.lookup< + static final _getSeed = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int32,)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); + + /// from: `static public byte[] getSeed(int i)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JByteArray? getSeed( + core$_.int i, + ) { + final _$$classRef = _class.reference; + return _getSeed(_$$classRef.pointer, _id_getSeed.pointer, i) + .object(); + } +} + +extension SecureRandom$$Methods on SecureRandom { + static final _id_generateSeed = SecureRandom._class.instanceMethodId( + r'generateSeed', + r'(I)[B', + ); + + static final _generateSeed = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); - /// from: `public java.lang.String getAlgorithm()` + /// from: `public byte[] generateSeed(int i)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getAlgorithm() { - return _getAlgorithm( - reference.pointer, _id_getAlgorithm as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JByteArray? generateSeed( + core$_.int i, + ) { + final _$$selfRef = reference; + return _generateSeed(_$$selfRef.pointer, _id_generateSeed.pointer, i) + .object(); } - static final _id_toString$1 = _class.instanceMethodId( - r'toString', + static final _id_get$algorithm = SecureRandom._class.instanceMethodId( + r'getAlgorithm', r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< + static final _get$algorithm = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -23423,19 +19416,20 @@ class SecureRandom extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public java.lang.String toString()` + /// from: `public java.lang.String getAlgorithm()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? toString$1() { - return _toString$1(reference.pointer, _id_toString$1 as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get algorithm { + final _$$selfRef = reference; + return _get$algorithm(_$$selfRef.pointer, _id_get$algorithm.pointer) + .object(); } - static final _id_getParameters = _class.instanceMethodId( + static final _id_get$parameters = SecureRandom._class.instanceMethodId( r'getParameters', r'()Ljava/security/SecureRandomParameters;', ); - static final _getParameters = jni$_.ProtectedJniExtensions.lookup< + static final _get$parameters = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -23449,61 +19443,38 @@ class SecureRandom extends jni$_.JObject { /// from: `public java.security.SecureRandomParameters getParameters()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getParameters() { - return _getParameters( - reference.pointer, _id_getParameters as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); - } - - static final _id_setSeed = _class.instanceMethodId( - r'setSeed', - r'([B)V', - ); - - static final _setSeed = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public void setSeed(byte[] bs)` - void setSeed( - jni$_.JByteArray? bs, - ) { - final _$bs = bs?.reference ?? jni$_.jNullReference; - _setSeed(reference.pointer, _id_setSeed as jni$_.JMethodIDPtr, _$bs.pointer) - .check(); + SecureRandomParameters? get parameters { + final _$$selfRef = reference; + return _get$parameters(_$$selfRef.pointer, _id_get$parameters.pointer) + .object(); } - static final _id_setSeed$1 = _class.instanceMethodId( - r'setSeed', - r'(J)V', + static final _id_get$provider = SecureRandom._class.instanceMethodId( + r'getProvider', + r'()Ljava/security/Provider;', ); - static final _setSeed$1 = jni$_.ProtectedJniExtensions.lookup< + static final _get$provider = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallVoidMethod') + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - /// from: `public void setSeed(long j)` - void setSeed$1( - int j, - ) { - _setSeed$1(reference.pointer, _id_setSeed$1 as jni$_.JMethodIDPtr, j) - .check(); + /// from: `public final java.security.Provider getProvider()` + /// The returned object must be released after use, by calling the [release] method. + Provider? get provider { + final _$$selfRef = reference; + return _get$provider(_$$selfRef.pointer, _id_get$provider.pointer) + .object(); } - static final _id_nextBytes = _class.instanceMethodId( + static final _id_nextBytes = SecureRandom._class.instanceMethodId( r'nextBytes', r'([B)V', ); @@ -23523,13 +19494,12 @@ class SecureRandom extends jni$_.JObject { void nextBytes( jni$_.JByteArray? bs, ) { + final _$$selfRef = reference; final _$bs = bs?.reference ?? jni$_.jNullReference; - _nextBytes(reference.pointer, _id_nextBytes as jni$_.JMethodIDPtr, - _$bs.pointer) - .check(); + _nextBytes(_$$selfRef.pointer, _id_nextBytes.pointer, _$bs.pointer).check(); } - static final _id_nextBytes$1 = _class.instanceMethodId( + static final _id_nextBytes$1 = SecureRandom._class.instanceMethodId( r'nextBytes', r'([BLjava/security/SecureRandomParameters;)V', ); @@ -23554,91 +19524,18 @@ class SecureRandom extends jni$_.JObject { /// from: `public void nextBytes(byte[] bs, java.security.SecureRandomParameters secureRandomParameters)` void nextBytes$1( jni$_.JByteArray? bs, - jni$_.JObject? secureRandomParameters, + SecureRandomParameters? secureRandomParameters, ) { + final _$$selfRef = reference; final _$bs = bs?.reference ?? jni$_.jNullReference; final _$secureRandomParameters = secureRandomParameters?.reference ?? jni$_.jNullReference; - _nextBytes$1(reference.pointer, _id_nextBytes$1 as jni$_.JMethodIDPtr, - _$bs.pointer, _$secureRandomParameters.pointer) + _nextBytes$1(_$$selfRef.pointer, _id_nextBytes$1.pointer, _$bs.pointer, + _$secureRandomParameters.pointer) .check(); } - static final _id_getSeed = _class.staticMethodId( - r'getSeed', - r'(I)[B', - ); - - static final _getSeed = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int32,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); - - /// from: `static public byte[] getSeed(int i)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JByteArray? getSeed( - int i, - ) { - return _getSeed( - _class.reference.pointer, _id_getSeed as jni$_.JMethodIDPtr, i) - .object(const jni$_.JByteArrayNullableType()); - } - - static final _id_generateSeed = _class.instanceMethodId( - r'generateSeed', - r'(I)[B', - ); - - static final _generateSeed = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); - - /// from: `public byte[] generateSeed(int i)` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JByteArray? generateSeed( - int i, - ) { - return _generateSeed( - reference.pointer, _id_generateSeed as jni$_.JMethodIDPtr, i) - .object(const jni$_.JByteArrayNullableType()); - } - - static final _id_getInstanceStrong = _class.staticMethodId( - r'getInstanceStrong', - r'()Ljava/security/SecureRandom;', - ); - - static final _getInstanceStrong = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `static public java.security.SecureRandom getInstanceStrong()` - /// The returned object must be released after use, by calling the [release] method. - static SecureRandom? getInstanceStrong() { - return _getInstanceStrong(_class.reference.pointer, - _id_getInstanceStrong as jni$_.JMethodIDPtr) - .object(const $SecureRandom$NullableType()); - } - - static final _id_reseed = _class.instanceMethodId( + static final _id_reseed = SecureRandom._class.instanceMethodId( r'reseed', r'()V', ); @@ -23657,10 +19554,11 @@ class SecureRandom extends jni$_.JObject { /// from: `public void reseed()` void reseed() { - _reseed(reference.pointer, _id_reseed as jni$_.JMethodIDPtr).check(); + final _$$selfRef = reference; + _reseed(_$$selfRef.pointer, _id_reseed.pointer).check(); } - static final _id_reseed$1 = _class.instanceMethodId( + static final _id_reseed$1 = SecureRandom._class.instanceMethodId( r'reseed', r'(Ljava/security/SecureRandomParameters;)V', ); @@ -23678,148 +19576,248 @@ class SecureRandom extends jni$_.JObject { /// from: `public void reseed(java.security.SecureRandomParameters secureRandomParameters)` void reseed$1( - jni$_.JObject? secureRandomParameters, + SecureRandomParameters? secureRandomParameters, ) { + final _$$selfRef = reference; final _$secureRandomParameters = secureRandomParameters?.reference ?? jni$_.jNullReference; - _reseed$1(reference.pointer, _id_reseed$1 as jni$_.JMethodIDPtr, + _reseed$1(_$$selfRef.pointer, _id_reseed$1.pointer, _$secureRandomParameters.pointer) .check(); } -} - -final class $SecureRandom$NullableType extends jni$_.JObjType { - @jni$_.internal - const $SecureRandom$NullableType(); - @jni$_.internal - @core$_.override - String get signature => r'Ljava/security/SecureRandom;'; + static final _id_set$seed = SecureRandom._class.instanceMethodId( + r'setSeed', + r'([B)V', + ); - @jni$_.internal - @core$_.override - SecureRandom? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : SecureRandom.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + static final _set$seed = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; + /// from: `public void setSeed(byte[] bs)` + set seed(jni$_.JByteArray? bs) { + final _$$selfRef = reference; + final _$bs = bs?.reference ?? jni$_.jNullReference; + _set$seed(_$$selfRef.pointer, _id_set$seed.pointer, _$bs.pointer).check(); + } - @jni$_.internal - @core$_.override - final superCount = 1; + static final _id_set$seed$1 = SecureRandom._class.instanceMethodId( + r'setSeed', + r'(J)V', + ); - @core$_.override - int get hashCode => ($SecureRandom$NullableType).hashCode; + static final _set$seed$1 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SecureRandom$NullableType) && - other is $SecureRandom$NullableType; + /// from: `public void setSeed(long j)` + set seed$1(core$_.int j) { + final _$$selfRef = reference; + _set$seed$1(_$$selfRef.pointer, _id_set$seed$1.pointer, j).check(); } -} -final class $SecureRandom$Type extends jni$_.JObjType { - @jni$_.internal - const $SecureRandom$Type(); + static final _id_toString$1 = SecureRandom._class.instanceMethodId( + r'toString', + r'()Ljava/lang/String;', + ); - @jni$_.internal - @core$_.override - String get signature => r'Ljava/security/SecureRandom;'; + static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - @jni$_.internal - @core$_.override - SecureRandom fromReference(jni$_.JReference reference) => - SecureRandom.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + /// from: `public java.lang.String toString()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JString? toString$1() { + final _$$selfRef = reference; + return _toString$1(_$$selfRef.pointer, _id_toString$1.pointer) + .object(); + } +} +final class $SecureRandom$Type$ extends jni$_.JType { @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $SecureRandom$NullableType(); + const $SecureRandom$Type$(); @jni$_.internal @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($SecureRandom$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($SecureRandom$Type) && - other is $SecureRandom$Type; - } + String get signature => r'Ljava/security/SecureRandom;'; } /// from: `javax.net.ssl.X509KeyManager` -class X509KeyManager extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - X509KeyManager.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type X509KeyManager._(jni$_.JObject _$this) + implements jni$_.JObject, KeyManager { static final _class = jni$_.JClass.forName(r'javax/net/ssl/X509KeyManager'); /// The type which includes information such as the signature of this class. - static const nullableType = $X509KeyManager$NullableType(); - static const type = $X509KeyManager$Type(); - static final _id_getClientAliases = _class.instanceMethodId( - r'getClientAliases', - r'(Ljava/lang/String;[Ljava/security/Principal;)[Ljava/lang/String;', - ); + static const jni$_.JType type = $X509KeyManager$Type$(); - static final _getClientAliases = jni$_.ProtectedJniExtensions.lookup< + /// Maps a specific port to the implemented interface. + static final core$_.Map _$impls = {}; + static jni$_.JObjectPtr _$invoke( + core$_.int port, + jni$_.JObjectPtr descriptor, + jni$_.JObjectPtr args, + ) { + return _$invokeMethod( + port, + jni$_.MethodInvocation.fromAddresses( + 0, + descriptor.address, + args.address, + ), + ); + } + + static final jni$_.Pointer< jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.JObjectPtr Function( + jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); - /// from: `public abstract java.lang.String[] getClientAliases(java.lang.String string, java.security.Principal[] principals)` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JArray? getClientAliases( - jni$_.JString? string, - jni$_.JArray? principals, + static jni$_.Pointer _$invokeMethod( + core$_.int $p, + jni$_.MethodInvocation $i, ) { - final _$string = string?.reference ?? jni$_.jNullReference; - final _$principals = principals?.reference ?? jni$_.jNullReference; - return _getClientAliases( - reference.pointer, - _id_getClientAliases as jni$_.JMethodIDPtr, - _$string.pointer, - _$principals.pointer) - .object?>( - const jni$_.JArrayNullableType( - jni$_.JStringNullableType())); + try { + final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); + final $a = $i.args; + if ($d == + r'chooseClientAlias([Ljava/lang/String;[Ljava/security/Principal;Ljava/net/Socket;)Ljava/lang/String;') { + final $r = _$impls[$p]!.chooseClientAlias( + ($a![0] as jni$_.JArray?), + ($a![1] as jni$_.JArray?), + ($a![2] as Socket?), + ); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } + if ($d == + r'chooseServerAlias(Ljava/lang/String;[Ljava/security/Principal;Ljava/net/Socket;)Ljava/lang/String;') { + final $r = _$impls[$p]!.chooseServerAlias( + ($a![0] as jni$_.JString?), + ($a![1] as jni$_.JArray?), + ($a![2] as Socket?), + ); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } + if ($d == + r'getCertificateChain(Ljava/lang/String;)[Ljava/security/cert/X509Certificate;') { + final $r = _$impls[$p]!.getCertificateChain( + ($a![0] as jni$_.JString?), + ); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } + if ($d == + r'getClientAliases(Ljava/lang/String;[Ljava/security/Principal;)[Ljava/lang/String;') { + final $r = _$impls[$p]!.getClientAliases( + ($a![0] as jni$_.JString?), + ($a![1] as jni$_.JArray?), + ); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } + if ($d == + r'getPrivateKey(Ljava/lang/String;)Ljava/security/PrivateKey;') { + final $r = _$impls[$p]!.getPrivateKey( + ($a![0] as jni$_.JString?), + ); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } + if ($d == + r'getServerAliases(Ljava/lang/String;[Ljava/security/Principal;)[Ljava/lang/String;') { + final $r = _$impls[$p]!.getServerAliases( + ($a![0] as jni$_.JString?), + ($a![1] as jni$_.JArray?), + ); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } + } catch (e) { + return jni$_.ProtectedJniExtensions.newDartException(e); + } + return jni$_.nullptr; + } + + static void implementIn( + jni$_.JImplementer implementer, + $X509KeyManager $impl, + ) { + late final jni$_.RawReceivePort $p; + $p = jni$_.RawReceivePort(($m) { + if ($m == null) { + _$impls.remove($p.sendPort.nativePort); + $p.close(); + return; + } + final $i = jni$_.MethodInvocation.fromMessage($m); + final $r = _$invokeMethod($p.sendPort.nativePort, $i); + $i.args?.release(); + jni$_.ProtectedJniExtensions.returnResult($i.result, $r); + }); + implementer.add( + r'javax.net.ssl.X509KeyManager', + $p, + _$invokePointer, + [], + ); + final $a = $p.sendPort.nativePort; + _$impls[$a] = $impl; + } + + factory X509KeyManager.implement( + $X509KeyManager $impl, + ) { + final $i = jni$_.JImplementer(); + implementIn($i, $impl); + return $i.implement(); } +} - static final _id_chooseClientAlias = _class.instanceMethodId( +extension X509KeyManager$$Methods on X509KeyManager { + static final _id_chooseClientAlias = X509KeyManager._class.instanceMethodId( r'chooseClientAlias', r'([Ljava/lang/String;[Ljava/security/Principal;Ljava/net/Socket;)Ljava/lang/String;', ); @@ -23847,62 +19845,19 @@ class X509KeyManager extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. jni$_.JString? chooseClientAlias( jni$_.JArray? strings, - jni$_.JArray? principals, - jni$_.JObject? socket, + jni$_.JArray? principals, + Socket? socket, ) { + final _$$selfRef = reference; final _$strings = strings?.reference ?? jni$_.jNullReference; final _$principals = principals?.reference ?? jni$_.jNullReference; final _$socket = socket?.reference ?? jni$_.jNullReference; - return _chooseClientAlias( - reference.pointer, - _id_chooseClientAlias as jni$_.JMethodIDPtr, - _$strings.pointer, - _$principals.pointer, - _$socket.pointer) - .object(const jni$_.JStringNullableType()); - } - - static final _id_getServerAliases = _class.instanceMethodId( - r'getServerAliases', - r'(Ljava/lang/String;[Ljava/security/Principal;)[Ljava/lang/String;', - ); - - static final _getServerAliases = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); - - /// from: `public abstract java.lang.String[] getServerAliases(java.lang.String string, java.security.Principal[] principals)` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JArray? getServerAliases( - jni$_.JString? string, - jni$_.JArray? principals, - ) { - final _$string = string?.reference ?? jni$_.jNullReference; - final _$principals = principals?.reference ?? jni$_.jNullReference; - return _getServerAliases( - reference.pointer, - _id_getServerAliases as jni$_.JMethodIDPtr, - _$string.pointer, - _$principals.pointer) - .object?>( - const jni$_.JArrayNullableType( - jni$_.JStringNullableType())); + return _chooseClientAlias(_$$selfRef.pointer, _id_chooseClientAlias.pointer, + _$strings.pointer, _$principals.pointer, _$socket.pointer) + .object(); } - static final _id_chooseServerAlias = _class.instanceMethodId( + static final _id_chooseServerAlias = X509KeyManager._class.instanceMethodId( r'chooseServerAlias', r'(Ljava/lang/String;[Ljava/security/Principal;Ljava/net/Socket;)Ljava/lang/String;', ); @@ -23930,22 +19885,19 @@ class X509KeyManager extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. jni$_.JString? chooseServerAlias( jni$_.JString? string, - jni$_.JArray? principals, - jni$_.JObject? socket, + jni$_.JArray? principals, + Socket? socket, ) { + final _$$selfRef = reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$principals = principals?.reference ?? jni$_.jNullReference; final _$socket = socket?.reference ?? jni$_.jNullReference; - return _chooseServerAlias( - reference.pointer, - _id_chooseServerAlias as jni$_.JMethodIDPtr, - _$string.pointer, - _$principals.pointer, - _$socket.pointer) - .object(const jni$_.JStringNullableType()); + return _chooseServerAlias(_$$selfRef.pointer, _id_chooseServerAlias.pointer, + _$string.pointer, _$principals.pointer, _$socket.pointer) + .object(); } - static final _id_getCertificateChain = _class.instanceMethodId( + static final _id_getCertificateChain = X509KeyManager._class.instanceMethodId( r'getCertificateChain', r'(Ljava/lang/String;)[Ljava/security/cert/X509Certificate;', ); @@ -23966,15 +19918,50 @@ class X509KeyManager extends jni$_.JObject { jni$_.JArray? getCertificateChain( jni$_.JString? string, ) { + final _$$selfRef = reference; + final _$string = string?.reference ?? jni$_.jNullReference; + return _getCertificateChain(_$$selfRef.pointer, + _id_getCertificateChain.pointer, _$string.pointer) + .object?>(); + } + + static final _id_getClientAliases = X509KeyManager._class.instanceMethodId( + r'getClientAliases', + r'(Ljava/lang/String;[Ljava/security/Principal;)[Ljava/lang/String;', + ); + + static final _getClientAliases = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); + + /// from: `public abstract java.lang.String[] getClientAliases(java.lang.String string, java.security.Principal[] principals)` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JArray? getClientAliases( + jni$_.JString? string, + jni$_.JArray? principals, + ) { + final _$$selfRef = reference; final _$string = string?.reference ?? jni$_.jNullReference; - return _getCertificateChain(reference.pointer, - _id_getCertificateChain as jni$_.JMethodIDPtr, _$string.pointer) - .object?>( - const jni$_.JArrayNullableType( - $X509Certificate$NullableType())); + final _$principals = principals?.reference ?? jni$_.jNullReference; + return _getClientAliases(_$$selfRef.pointer, _id_getClientAliases.pointer, + _$string.pointer, _$principals.pointer) + .object?>(); } - static final _id_getPrivateKey = _class.instanceMethodId( + static final _id_getPrivateKey = X509KeyManager._class.instanceMethodId( r'getPrivateKey', r'(Ljava/lang/String;)Ljava/security/PrivateKey;', ); @@ -23995,261 +19982,126 @@ class X509KeyManager extends jni$_.JObject { PrivateKey? getPrivateKey( jni$_.JString? string, ) { + final _$$selfRef = reference; final _$string = string?.reference ?? jni$_.jNullReference; - return _getPrivateKey(reference.pointer, - _id_getPrivateKey as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $PrivateKey$NullableType()); + return _getPrivateKey( + _$$selfRef.pointer, _id_getPrivateKey.pointer, _$string.pointer) + .object(); } - /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; - static jni$_.JObjectPtr _$invoke( - int port, - jni$_.JObjectPtr descriptor, - jni$_.JObjectPtr args, - ) { - return _$invokeMethod( - port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), - ); - } + static final _id_getServerAliases = X509KeyManager._class.instanceMethodId( + r'getServerAliases', + r'(Ljava/lang/String;[Ljava/security/Principal;)[Ljava/lang/String;', + ); - static final jni$_.Pointer< + static final _getServerAliases = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); - - static jni$_.Pointer _$invokeMethod( - int $p, - jni$_.MethodInvocation $i, - ) { - try { - final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); - final $a = $i.args; - if ($d == - r'getClientAliases(Ljava/lang/String;[Ljava/security/Principal;)[Ljava/lang/String;') { - final $r = _$impls[$p]!.getClientAliases( - $a![0]?.as(const jni$_.JStringType(), releaseOriginal: true), - $a![1]?.as( - const jni$_.JArrayType( - jni$_.JObjectNullableType()), - releaseOriginal: true), - ); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == - r'chooseClientAlias([Ljava/lang/String;[Ljava/security/Principal;Ljava/net/Socket;)Ljava/lang/String;') { - final $r = _$impls[$p]!.chooseClientAlias( - $a![0]?.as( - const jni$_.JArrayType( - jni$_.JStringNullableType()), - releaseOriginal: true), - $a![1]?.as( - const jni$_.JArrayType( - jni$_.JObjectNullableType()), - releaseOriginal: true), - $a![2]?.as(const jni$_.JObjectType(), releaseOriginal: true), - ); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == - r'getServerAliases(Ljava/lang/String;[Ljava/security/Principal;)[Ljava/lang/String;') { - final $r = _$impls[$p]!.getServerAliases( - $a![0]?.as(const jni$_.JStringType(), releaseOriginal: true), - $a![1]?.as( - const jni$_.JArrayType( - jni$_.JObjectNullableType()), - releaseOriginal: true), - ); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == - r'chooseServerAlias(Ljava/lang/String;[Ljava/security/Principal;Ljava/net/Socket;)Ljava/lang/String;') { - final $r = _$impls[$p]!.chooseServerAlias( - $a![0]?.as(const jni$_.JStringType(), releaseOriginal: true), - $a![1]?.as( - const jni$_.JArrayType( - jni$_.JObjectNullableType()), - releaseOriginal: true), - $a![2]?.as(const jni$_.JObjectType(), releaseOriginal: true), - ); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == - r'getCertificateChain(Ljava/lang/String;)[Ljava/security/cert/X509Certificate;') { - final $r = _$impls[$p]!.getCertificateChain( - $a![0]?.as(const jni$_.JStringType(), releaseOriginal: true), - ); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - if ($d == - r'getPrivateKey(Ljava/lang/String;)Ljava/security/PrivateKey;') { - final $r = _$impls[$p]!.getPrivateKey( - $a![0]?.as(const jni$_.JStringType(), releaseOriginal: true), - ); - return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) - .reference - .toPointer() ?? - jni$_.nullptr; - } - } catch (e) { - return jni$_.ProtectedJniExtensions.newDartException(e); - } - return jni$_.nullptr; - } - - static void implementIn( - jni$_.JImplementer implementer, - $X509KeyManager $impl, - ) { - late final jni$_.RawReceivePort $p; - $p = jni$_.RawReceivePort(($m) { - if ($m == null) { - _$impls.remove($p.sendPort.nativePort); - $p.close(); - return; - } - final $i = jni$_.MethodInvocation.fromMessage($m); - final $r = _$invokeMethod($p.sendPort.nativePort, $i); - jni$_.ProtectedJniExtensions.returnResult($i.result, $r); - }); - implementer.add( - r'javax.net.ssl.X509KeyManager', - $p, - _$invokePointer, - [], - ); - final $a = $p.sendPort.nativePort; - _$impls[$a] = $impl; - } + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - factory X509KeyManager.implement( - $X509KeyManager $impl, + /// from: `public abstract java.lang.String[] getServerAliases(java.lang.String string, java.security.Principal[] principals)` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JArray? getServerAliases( + jni$_.JString? string, + jni$_.JArray? principals, ) { - final $i = jni$_.JImplementer(); - implementIn($i, $impl); - return X509KeyManager.fromReference( - $i.implementReference(), - ); + final _$$selfRef = reference; + final _$string = string?.reference ?? jni$_.jNullReference; + final _$principals = principals?.reference ?? jni$_.jNullReference; + return _getServerAliases(_$$selfRef.pointer, _id_getServerAliases.pointer, + _$string.pointer, _$principals.pointer) + .object?>(); } } abstract base mixin class $X509KeyManager { factory $X509KeyManager({ - required jni$_.JArray? Function( - jni$_.JString? string, jni$_.JArray? principals) - getClientAliases, required jni$_.JString? Function(jni$_.JArray? strings, - jni$_.JArray? principals, jni$_.JObject? socket) + jni$_.JArray? principals, Socket? socket) chooseClientAlias, - required jni$_.JArray? Function( - jni$_.JString? string, jni$_.JArray? principals) - getServerAliases, required jni$_.JString? Function(jni$_.JString? string, - jni$_.JArray? principals, jni$_.JObject? socket) + jni$_.JArray? principals, Socket? socket) chooseServerAlias, required jni$_.JArray? Function(jni$_.JString? string) getCertificateChain, + required jni$_.JArray? Function( + jni$_.JString? string, jni$_.JArray? principals) + getClientAliases, required PrivateKey? Function(jni$_.JString? string) getPrivateKey, + required jni$_.JArray? Function( + jni$_.JString? string, jni$_.JArray? principals) + getServerAliases, }) = _$X509KeyManager; - jni$_.JArray? getClientAliases( - jni$_.JString? string, jni$_.JArray? principals); jni$_.JString? chooseClientAlias(jni$_.JArray? strings, - jni$_.JArray? principals, jni$_.JObject? socket); - jni$_.JArray? getServerAliases( - jni$_.JString? string, jni$_.JArray? principals); + jni$_.JArray? principals, Socket? socket); jni$_.JString? chooseServerAlias(jni$_.JString? string, - jni$_.JArray? principals, jni$_.JObject? socket); + jni$_.JArray? principals, Socket? socket); jni$_.JArray? getCertificateChain(jni$_.JString? string); + jni$_.JArray? getClientAliases( + jni$_.JString? string, jni$_.JArray? principals); PrivateKey? getPrivateKey(jni$_.JString? string); + jni$_.JArray? getServerAliases( + jni$_.JString? string, jni$_.JArray? principals); } final class _$X509KeyManager with $X509KeyManager { _$X509KeyManager({ - required jni$_.JArray? Function( - jni$_.JString? string, jni$_.JArray? principals) - getClientAliases, required jni$_.JString? Function(jni$_.JArray? strings, - jni$_.JArray? principals, jni$_.JObject? socket) + jni$_.JArray? principals, Socket? socket) chooseClientAlias, - required jni$_.JArray? Function( - jni$_.JString? string, jni$_.JArray? principals) - getServerAliases, required jni$_.JString? Function(jni$_.JString? string, - jni$_.JArray? principals, jni$_.JObject? socket) + jni$_.JArray? principals, Socket? socket) chooseServerAlias, required jni$_.JArray? Function(jni$_.JString? string) getCertificateChain, + required jni$_.JArray? Function( + jni$_.JString? string, jni$_.JArray? principals) + getClientAliases, required PrivateKey? Function(jni$_.JString? string) getPrivateKey, - }) : _getClientAliases = getClientAliases, - _chooseClientAlias = chooseClientAlias, - _getServerAliases = getServerAliases, + required jni$_.JArray? Function( + jni$_.JString? string, jni$_.JArray? principals) + getServerAliases, + }) : _chooseClientAlias = chooseClientAlias, _chooseServerAlias = chooseServerAlias, _getCertificateChain = getCertificateChain, - _getPrivateKey = getPrivateKey; - + _getClientAliases = getClientAliases, + _getPrivateKey = getPrivateKey, + _getServerAliases = getServerAliases; + + final jni$_.JString? Function(jni$_.JArray? strings, + jni$_.JArray? principals, Socket? socket) _chooseClientAlias; + final jni$_.JString? Function(jni$_.JString? string, + jni$_.JArray? principals, Socket? socket) _chooseServerAlias; + final jni$_.JArray? Function(jni$_.JString? string) + _getCertificateChain; final jni$_.JArray? Function( - jni$_.JString? string, jni$_.JArray? principals) + jni$_.JString? string, jni$_.JArray? principals) _getClientAliases; - final jni$_.JString? Function( - jni$_.JArray? strings, - jni$_.JArray? principals, - jni$_.JObject? socket) _chooseClientAlias; + final PrivateKey? Function(jni$_.JString? string) _getPrivateKey; final jni$_.JArray? Function( - jni$_.JString? string, jni$_.JArray? principals) + jni$_.JString? string, jni$_.JArray? principals) _getServerAliases; - final jni$_.JString? Function( - jni$_.JString? string, - jni$_.JArray? principals, - jni$_.JObject? socket) _chooseServerAlias; - final jni$_.JArray? Function(jni$_.JString? string) - _getCertificateChain; - final PrivateKey? Function(jni$_.JString? string) _getPrivateKey; - - jni$_.JArray? getClientAliases( - jni$_.JString? string, jni$_.JArray? principals) { - return _getClientAliases(string, principals); - } jni$_.JString? chooseClientAlias(jni$_.JArray? strings, - jni$_.JArray? principals, jni$_.JObject? socket) { + jni$_.JArray? principals, Socket? socket) { return _chooseClientAlias(strings, principals, socket); } - jni$_.JArray? getServerAliases( - jni$_.JString? string, jni$_.JArray? principals) { - return _getServerAliases(string, principals); - } - jni$_.JString? chooseServerAlias(jni$_.JString? string, - jni$_.JArray? principals, jni$_.JObject? socket) { + jni$_.JArray? principals, Socket? socket) { return _chooseServerAlias(string, principals, socket); } @@ -24257,105 +20109,44 @@ final class _$X509KeyManager with $X509KeyManager { return _getCertificateChain(string); } + jni$_.JArray? getClientAliases( + jni$_.JString? string, jni$_.JArray? principals) { + return _getClientAliases(string, principals); + } + PrivateKey? getPrivateKey(jni$_.JString? string) { return _getPrivateKey(string); } -} -final class $X509KeyManager$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $X509KeyManager$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljavax/net/ssl/X509KeyManager;'; - - @jni$_.internal - @core$_.override - X509KeyManager? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : X509KeyManager.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($X509KeyManager$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($X509KeyManager$NullableType) && - other is $X509KeyManager$NullableType; + jni$_.JArray? getServerAliases( + jni$_.JString? string, jni$_.JArray? principals) { + return _getServerAliases(string, principals); } } -final class $X509KeyManager$Type extends jni$_.JObjType { +final class $X509KeyManager$Type$ extends jni$_.JType { @jni$_.internal - const $X509KeyManager$Type(); + const $X509KeyManager$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljavax/net/ssl/X509KeyManager;'; - - @jni$_.internal - @core$_.override - X509KeyManager fromReference(jni$_.JReference reference) => - X509KeyManager.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $X509KeyManager$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($X509KeyManager$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($X509KeyManager$Type) && - other is $X509KeyManager$Type; - } } /// from: `javax.net.ssl.X509ExtendedKeyManager` -class X509ExtendedKeyManager extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - X509ExtendedKeyManager.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type X509ExtendedKeyManager._(jni$_.JObject _$this) + implements jni$_.JObject, X509KeyManager { static final _class = jni$_.JClass.forName(r'javax/net/ssl/X509ExtendedKeyManager'); /// The type which includes information such as the signature of this class. - static const nullableType = $X509ExtendedKeyManager$NullableType(); - static const type = $X509ExtendedKeyManager$Type(); - static final _id_chooseEngineClientAlias = _class.instanceMethodId( + static const jni$_.JType type = + $X509ExtendedKeyManager$Type$(); +} + +extension X509ExtendedKeyManager$$Methods on X509ExtendedKeyManager { + static final _id_chooseEngineClientAlias = + X509ExtendedKeyManager._class.instanceMethodId( r'chooseEngineClientAlias', r'([Ljava/lang/String;[Ljava/security/Principal;Ljavax/net/ssl/SSLEngine;)Ljava/lang/String;', ); @@ -24383,22 +20174,24 @@ class X509ExtendedKeyManager extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. jni$_.JString? chooseEngineClientAlias( jni$_.JArray? strings, - jni$_.JArray? principals, - jni$_.JObject? sSLEngine, + jni$_.JArray? principals, + SSLEngine? sSLEngine, ) { + final _$$selfRef = reference; final _$strings = strings?.reference ?? jni$_.jNullReference; final _$principals = principals?.reference ?? jni$_.jNullReference; final _$sSLEngine = sSLEngine?.reference ?? jni$_.jNullReference; return _chooseEngineClientAlias( - reference.pointer, - _id_chooseEngineClientAlias as jni$_.JMethodIDPtr, + _$$selfRef.pointer, + _id_chooseEngineClientAlias.pointer, _$strings.pointer, _$principals.pointer, _$sSLEngine.pointer) - .object(const jni$_.JStringNullableType()); + .object(); } - static final _id_chooseEngineServerAlias = _class.instanceMethodId( + static final _id_chooseEngineServerAlias = + X509ExtendedKeyManager._class.instanceMethodId( r'chooseEngineServerAlias', r'(Ljava/lang/String;[Ljava/security/Principal;Ljavax/net/ssl/SSLEngine;)Ljava/lang/String;', ); @@ -24426,122 +20219,206 @@ class X509ExtendedKeyManager extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. jni$_.JString? chooseEngineServerAlias( jni$_.JString? string, - jni$_.JArray? principals, - jni$_.JObject? sSLEngine, + jni$_.JArray? principals, + SSLEngine? sSLEngine, ) { + final _$$selfRef = reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$principals = principals?.reference ?? jni$_.jNullReference; final _$sSLEngine = sSLEngine?.reference ?? jni$_.jNullReference; return _chooseEngineServerAlias( - reference.pointer, - _id_chooseEngineServerAlias as jni$_.JMethodIDPtr, + _$$selfRef.pointer, + _id_chooseEngineServerAlias.pointer, _$string.pointer, _$principals.pointer, _$sSLEngine.pointer) - .object(const jni$_.JStringNullableType()); + .object(); } -} - -final class $X509ExtendedKeyManager$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $X509ExtendedKeyManager$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljavax/net/ssl/X509ExtendedKeyManager;'; - - @jni$_.internal - @core$_.override - X509ExtendedKeyManager? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : X509ExtendedKeyManager.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - @jni$_.internal - @core$_.override - final superCount = 1; + static final _id_chooseClientAlias = + X509ExtendedKeyManager._class.instanceMethodId( + r'chooseClientAlias', + r'([Ljava/lang/String;[Ljava/security/Principal;Ljava/net/Socket;)Ljava/lang/String;', + ); - @core$_.override - int get hashCode => ($X509ExtendedKeyManager$NullableType).hashCode; + static final _chooseClientAlias = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer)>(); - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($X509ExtendedKeyManager$NullableType) && - other is $X509ExtendedKeyManager$NullableType; + /// from: `public abstract java.lang.String chooseClientAlias(java.lang.String[] strings, java.security.Principal[] principals, java.net.Socket socket)` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JString? chooseClientAlias( + jni$_.JArray? strings, + jni$_.JArray? principals, + Socket? socket, + ) { + final _$$selfRef = reference; + final _$strings = strings?.reference ?? jni$_.jNullReference; + final _$principals = principals?.reference ?? jni$_.jNullReference; + final _$socket = socket?.reference ?? jni$_.jNullReference; + return _chooseClientAlias(_$$selfRef.pointer, _id_chooseClientAlias.pointer, + _$strings.pointer, _$principals.pointer, _$socket.pointer) + .object(); } -} -final class $X509ExtendedKeyManager$Type - extends jni$_.JObjType { - @jni$_.internal - const $X509ExtendedKeyManager$Type(); + static final _id_chooseServerAlias = + X509ExtendedKeyManager._class.instanceMethodId( + r'chooseServerAlias', + r'(Ljava/lang/String;[Ljava/security/Principal;Ljava/net/Socket;)Ljava/lang/String;', + ); - @jni$_.internal - @core$_.override - String get signature => r'Ljavax/net/ssl/X509ExtendedKeyManager;'; + static final _chooseServerAlias = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer)>(); - @jni$_.internal - @core$_.override - X509ExtendedKeyManager fromReference(jni$_.JReference reference) => - X509ExtendedKeyManager.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + /// from: `public abstract java.lang.String chooseServerAlias(java.lang.String string, java.security.Principal[] principals, java.net.Socket socket)` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JString? chooseServerAlias( + jni$_.JString? string, + jni$_.JArray? principals, + Socket? socket, + ) { + final _$$selfRef = reference; + final _$string = string?.reference ?? jni$_.jNullReference; + final _$principals = principals?.reference ?? jni$_.jNullReference; + final _$socket = socket?.reference ?? jni$_.jNullReference; + return _chooseServerAlias(_$$selfRef.pointer, _id_chooseServerAlias.pointer, + _$string.pointer, _$principals.pointer, _$socket.pointer) + .object(); + } - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $X509ExtendedKeyManager$NullableType(); + static final _id_getCertificateChain = + X509ExtendedKeyManager._class.instanceMethodId( + r'getCertificateChain', + r'(Ljava/lang/String;)[Ljava/security/cert/X509Certificate;', + ); - @jni$_.internal - @core$_.override - final superCount = 1; + static final _getCertificateChain = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - @core$_.override - int get hashCode => ($X509ExtendedKeyManager$Type).hashCode; + /// from: `public abstract java.security.cert.X509Certificate[] getCertificateChain(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JArray? getCertificateChain( + jni$_.JString? string, + ) { + final _$$selfRef = reference; + final _$string = string?.reference ?? jni$_.jNullReference; + return _getCertificateChain(_$$selfRef.pointer, + _id_getCertificateChain.pointer, _$string.pointer) + .object?>(); + } - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($X509ExtendedKeyManager$Type) && - other is $X509ExtendedKeyManager$Type; + static final _id_getClientAliases = + X509ExtendedKeyManager._class.instanceMethodId( + r'getClientAliases', + r'(Ljava/lang/String;[Ljava/security/Principal;)[Ljava/lang/String;', + ); + + static final _getClientAliases = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); + + /// from: `public abstract java.lang.String[] getClientAliases(java.lang.String string, java.security.Principal[] principals)` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JArray? getClientAliases( + jni$_.JString? string, + jni$_.JArray? principals, + ) { + final _$$selfRef = reference; + final _$string = string?.reference ?? jni$_.jNullReference; + final _$principals = principals?.reference ?? jni$_.jNullReference; + return _getClientAliases(_$$selfRef.pointer, _id_getClientAliases.pointer, + _$string.pointer, _$principals.pointer) + .object?>(); } -} -/// from: `javax.net.ssl.HostnameVerifier` -class HostnameVerifier extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; + static final _id_getPrivateKey = + X509ExtendedKeyManager._class.instanceMethodId( + r'getPrivateKey', + r'(Ljava/lang/String;)Ljava/security/PrivateKey;', + ); - @jni$_.internal - HostnameVerifier.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + static final _getPrivateKey = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - static final _class = jni$_.JClass.forName(r'javax/net/ssl/HostnameVerifier'); + /// from: `public abstract java.security.PrivateKey getPrivateKey(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + PrivateKey? getPrivateKey( + jni$_.JString? string, + ) { + final _$$selfRef = reference; + final _$string = string?.reference ?? jni$_.jNullReference; + return _getPrivateKey( + _$$selfRef.pointer, _id_getPrivateKey.pointer, _$string.pointer) + .object(); + } - /// The type which includes information such as the signature of this class. - static const nullableType = $HostnameVerifier$NullableType(); - static const type = $HostnameVerifier$Type(); - static final _id_verify = _class.instanceMethodId( - r'verify', - r'(Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z', + static final _id_getServerAliases = + X509ExtendedKeyManager._class.instanceMethodId( + r'getServerAliases', + r'(Ljava/lang/String;[Ljava/security/Principal;)[Ljava/lang/String;', ); - static final _verify = jni$_.ProtectedJniExtensions.lookup< + static final _getServerAliases = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -24550,7 +20427,7 @@ class HostnameVerifier extends jni$_.JObject { ( jni$_.Pointer, jni$_.Pointer - )>)>>('globalEnv_CallBooleanMethod') + )>)>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -24558,22 +20435,43 @@ class HostnameVerifier extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `public abstract boolean verify(java.lang.String string, javax.net.ssl.SSLSession sSLSession)` - bool verify( + /// from: `public abstract java.lang.String[] getServerAliases(java.lang.String string, java.security.Principal[] principals)` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JArray? getServerAliases( jni$_.JString? string, - jni$_.JObject? sSLSession, + jni$_.JArray? principals, ) { + final _$$selfRef = reference; final _$string = string?.reference ?? jni$_.jNullReference; - final _$sSLSession = sSLSession?.reference ?? jni$_.jNullReference; - return _verify(reference.pointer, _id_verify as jni$_.JMethodIDPtr, - _$string.pointer, _$sSLSession.pointer) - .boolean; + final _$principals = principals?.reference ?? jni$_.jNullReference; + return _getServerAliases(_$$selfRef.pointer, _id_getServerAliases.pointer, + _$string.pointer, _$principals.pointer) + .object?>(); } +} + +final class $X509ExtendedKeyManager$Type$ + extends jni$_.JType { + @jni$_.internal + const $X509ExtendedKeyManager$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljavax/net/ssl/X509ExtendedKeyManager;'; +} + +/// from: `javax.net.ssl.HostnameVerifier` +extension type HostnameVerifier._(jni$_.JObject _$this) + implements jni$_.JObject { + static final _class = jni$_.JClass.forName(r'javax/net/ssl/HostnameVerifier'); + + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = $HostnameVerifier$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; + static final core$_.Map _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -24594,7 +20492,7 @@ class HostnameVerifier extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -24602,10 +20500,10 @@ class HostnameVerifier extends jni$_.JObject { final $a = $i.args; if ($d == r'verify(Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z') { final $r = _$impls[$p]!.verify( - $a![0]?.as(const jni$_.JStringType(), releaseOriginal: true), - $a![1]?.as(const jni$_.JObjectType(), releaseOriginal: true), + ($a![0] as jni$_.JString?), + ($a![1] as SSLSession?), ); - return jni$_.JBoolean($r).reference.toPointer(); + return $r.toJBoolean().reference.toPointer(); } } catch (e) { return jni$_.ProtectedJniExtensions.newDartException(e); @@ -24626,6 +20524,7 @@ class HostnameVerifier extends jni$_.JObject { } final $i = jni$_.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); + $i.args?.release(); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( @@ -24643,129 +20542,91 @@ class HostnameVerifier extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return HostnameVerifier.fromReference( - $i.implementReference(), - ); + return $i.implement(); + } +} + +extension HostnameVerifier$$Methods on HostnameVerifier { + static final _id_verify = HostnameVerifier._class.instanceMethodId( + r'verify', + r'(Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z', + ); + + static final _verify = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); + + /// from: `public abstract boolean verify(java.lang.String string, javax.net.ssl.SSLSession sSLSession)` + core$_.bool verify( + jni$_.JString? string, + SSLSession? sSLSession, + ) { + final _$$selfRef = reference; + final _$string = string?.reference ?? jni$_.jNullReference; + final _$sSLSession = sSLSession?.reference ?? jni$_.jNullReference; + return _verify(_$$selfRef.pointer, _id_verify.pointer, _$string.pointer, + _$sSLSession.pointer) + .boolean; } } abstract base mixin class $HostnameVerifier { factory $HostnameVerifier({ - required bool Function(jni$_.JString? string, jni$_.JObject? sSLSession) + required core$_.bool Function(jni$_.JString? string, SSLSession? sSLSession) verify, }) = _$HostnameVerifier; - bool verify(jni$_.JString? string, jni$_.JObject? sSLSession); + core$_.bool verify(jni$_.JString? string, SSLSession? sSLSession); } final class _$HostnameVerifier with $HostnameVerifier { _$HostnameVerifier({ - required bool Function(jni$_.JString? string, jni$_.JObject? sSLSession) + required core$_.bool Function(jni$_.JString? string, SSLSession? sSLSession) verify, }) : _verify = verify; - final bool Function(jni$_.JString? string, jni$_.JObject? sSLSession) _verify; + final core$_.bool Function(jni$_.JString? string, SSLSession? sSLSession) + _verify; - bool verify(jni$_.JString? string, jni$_.JObject? sSLSession) { + core$_.bool verify(jni$_.JString? string, SSLSession? sSLSession) { return _verify(string, sSLSession); } } -final class $HostnameVerifier$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $HostnameVerifier$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljavax/net/ssl/HostnameVerifier;'; - - @jni$_.internal - @core$_.override - HostnameVerifier? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : HostnameVerifier.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($HostnameVerifier$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($HostnameVerifier$NullableType) && - other is $HostnameVerifier$NullableType; - } -} - -final class $HostnameVerifier$Type extends jni$_.JObjType { +final class $HostnameVerifier$Type$ extends jni$_.JType { @jni$_.internal - const $HostnameVerifier$Type(); + const $HostnameVerifier$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljavax/net/ssl/HostnameVerifier;'; - - @jni$_.internal - @core$_.override - HostnameVerifier fromReference(jni$_.JReference reference) => - HostnameVerifier.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $HostnameVerifier$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($HostnameVerifier$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($HostnameVerifier$Type) && - other is $HostnameVerifier$Type; - } } /// from: `java.security.cert.X509Certificate` -class X509Certificate extends Certificate { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - X509Certificate.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type X509Certificate._(jni$_.JObject _$this) + implements Certificate, X509Extension { static final _class = jni$_.JClass.forName(r'java/security/cert/X509Certificate'); /// The type which includes information such as the signature of this class. - static const nullableType = $X509Certificate$NullableType(); - static const type = $X509Certificate$Type(); - static final _id_checkValidity = _class.instanceMethodId( + static const jni$_.JType type = $X509Certificate$Type$(); +} + +extension X509Certificate$$Methods on X509Certificate { + static final _id_checkValidity = X509Certificate._class.instanceMethodId( r'checkValidity', r'()V', ); @@ -24784,11 +20645,11 @@ class X509Certificate extends Certificate { /// from: `public abstract void checkValidity()` void checkValidity() { - _checkValidity(reference.pointer, _id_checkValidity as jni$_.JMethodIDPtr) - .check(); + final _$$selfRef = reference; + _checkValidity(_$$selfRef.pointer, _id_checkValidity.pointer).check(); } - static final _id_checkValidity$1 = _class.instanceMethodId( + static final _id_checkValidity$1 = X509Certificate._class.instanceMethodId( r'checkValidity', r'(Ljava/util/Date;)V', ); @@ -24806,20 +20667,22 @@ class X509Certificate extends Certificate { /// from: `public abstract void checkValidity(java.util.Date date)` void checkValidity$1( - jni$_.JObject? date, + Date? date, ) { + final _$$selfRef = reference; final _$date = date?.reference ?? jni$_.jNullReference; - _checkValidity$1(reference.pointer, - _id_checkValidity$1 as jni$_.JMethodIDPtr, _$date.pointer) + _checkValidity$1( + _$$selfRef.pointer, _id_checkValidity$1.pointer, _$date.pointer) .check(); } - static final _id_getVersion = _class.instanceMethodId( - r'getVersion', + static final _id_get$basicConstraints = + X509Certificate._class.instanceMethodId( + r'getBasicConstraints', r'()I', ); - static final _getVersion = jni$_.ProtectedJniExtensions.lookup< + static final _get$basicConstraints = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -24831,18 +20694,21 @@ class X509Certificate extends Certificate { jni$_.JMethodIDPtr, )>(); - /// from: `public abstract int getVersion()` - int getVersion() { - return _getVersion(reference.pointer, _id_getVersion as jni$_.JMethodIDPtr) + /// from: `public abstract int getBasicConstraints()` + core$_.int get basicConstraints { + final _$$selfRef = reference; + return _get$basicConstraints( + _$$selfRef.pointer, _id_get$basicConstraints.pointer) .integer; } - static final _id_getSerialNumber = _class.instanceMethodId( - r'getSerialNumber', - r'()Ljava/math/BigInteger;', + static final _id_get$extendedKeyUsage = + X509Certificate._class.instanceMethodId( + r'getExtendedKeyUsage', + r'()Ljava/util/List;', ); - static final _getSerialNumber = jni$_.ProtectedJniExtensions.lookup< + static final _get$extendedKeyUsage = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -24854,20 +20720,49 @@ class X509Certificate extends Certificate { jni$_.JMethodIDPtr, )>(); - /// from: `public abstract java.math.BigInteger getSerialNumber()` + /// from: `public java.util.List getExtendedKeyUsage()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JList? get extendedKeyUsage { + final _$$selfRef = reference; + return _get$extendedKeyUsage( + _$$selfRef.pointer, _id_get$extendedKeyUsage.pointer) + .object?>(); + } + + static final _id_get$issuerAlternativeNames = + X509Certificate._class.instanceMethodId( + r'getIssuerAlternativeNames', + r'()Ljava/util/Collection;', + ); + + static final _get$issuerAlternativeNames = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public java.util.Collection> getIssuerAlternativeNames()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getSerialNumber() { - return _getSerialNumber( - reference.pointer, _id_getSerialNumber as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JCollection?>? get issuerAlternativeNames { + final _$$selfRef = reference; + return _get$issuerAlternativeNames( + _$$selfRef.pointer, _id_get$issuerAlternativeNames.pointer) + .object?>?>(); } - static final _id_getIssuerDN = _class.instanceMethodId( + static final _id_get$issuerDN = X509Certificate._class.instanceMethodId( r'getIssuerDN', r'()Ljava/security/Principal;', ); - static final _getIssuerDN = jni$_.ProtectedJniExtensions.lookup< + static final _get$issuerDN = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -24881,43 +20776,18 @@ class X509Certificate extends Certificate { /// from: `public abstract java.security.Principal getIssuerDN()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getIssuerDN() { - return _getIssuerDN( - reference.pointer, _id_getIssuerDN as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + Principal? get issuerDN { + final _$$selfRef = reference; + return _get$issuerDN(_$$selfRef.pointer, _id_get$issuerDN.pointer) + .object(); } - static final _id_getIssuerX500Principal = _class.instanceMethodId( - r'getIssuerX500Principal', - r'()Ljavax/security/auth/x500/X500Principal;', - ); - - static final _getIssuerX500Principal = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public javax.security.auth.x500.X500Principal getIssuerX500Principal()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getIssuerX500Principal() { - return _getIssuerX500Principal( - reference.pointer, _id_getIssuerX500Principal as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); - } - - static final _id_getSubjectDN = _class.instanceMethodId( - r'getSubjectDN', - r'()Ljava/security/Principal;', + static final _id_get$issuerUniqueID = X509Certificate._class.instanceMethodId( + r'getIssuerUniqueID', + r'()[Z', ); - static final _getSubjectDN = jni$_.ProtectedJniExtensions.lookup< + static final _get$issuerUniqueID = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -24929,20 +20799,22 @@ class X509Certificate extends Certificate { jni$_.JMethodIDPtr, )>(); - /// from: `public abstract java.security.Principal getSubjectDN()` + /// from: `public abstract boolean[] getIssuerUniqueID()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getSubjectDN() { - return _getSubjectDN( - reference.pointer, _id_getSubjectDN as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JBooleanArray? get issuerUniqueID { + final _$$selfRef = reference; + return _get$issuerUniqueID( + _$$selfRef.pointer, _id_get$issuerUniqueID.pointer) + .object(); } - static final _id_getSubjectX500Principal = _class.instanceMethodId( - r'getSubjectX500Principal', + static final _id_get$issuerX500Principal = + X509Certificate._class.instanceMethodId( + r'getIssuerX500Principal', r'()Ljavax/security/auth/x500/X500Principal;', ); - static final _getSubjectX500Principal = jni$_.ProtectedJniExtensions.lookup< + static final _get$issuerX500Principal = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -24954,20 +20826,21 @@ class X509Certificate extends Certificate { jni$_.JMethodIDPtr, )>(); - /// from: `public javax.security.auth.x500.X500Principal getSubjectX500Principal()` + /// from: `public javax.security.auth.x500.X500Principal getIssuerX500Principal()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getSubjectX500Principal() { - return _getSubjectX500Principal(reference.pointer, - _id_getSubjectX500Principal as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + X500Principal? get issuerX500Principal { + final _$$selfRef = reference; + return _get$issuerX500Principal( + _$$selfRef.pointer, _id_get$issuerX500Principal.pointer) + .object(); } - static final _id_getNotBefore = _class.instanceMethodId( - r'getNotBefore', - r'()Ljava/util/Date;', + static final _id_get$keyUsage = X509Certificate._class.instanceMethodId( + r'getKeyUsage', + r'()[Z', ); - static final _getNotBefore = jni$_.ProtectedJniExtensions.lookup< + static final _get$keyUsage = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -24979,20 +20852,20 @@ class X509Certificate extends Certificate { jni$_.JMethodIDPtr, )>(); - /// from: `public abstract java.util.Date getNotBefore()` + /// from: `public abstract boolean[] getKeyUsage()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getNotBefore() { - return _getNotBefore( - reference.pointer, _id_getNotBefore as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JBooleanArray? get keyUsage { + final _$$selfRef = reference; + return _get$keyUsage(_$$selfRef.pointer, _id_get$keyUsage.pointer) + .object(); } - static final _id_getNotAfter = _class.instanceMethodId( + static final _id_get$notAfter = X509Certificate._class.instanceMethodId( r'getNotAfter', r'()Ljava/util/Date;', ); - static final _getNotAfter = jni$_.ProtectedJniExtensions.lookup< + static final _get$notAfter = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -25006,18 +20879,18 @@ class X509Certificate extends Certificate { /// from: `public abstract java.util.Date getNotAfter()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getNotAfter() { - return _getNotAfter( - reference.pointer, _id_getNotAfter as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + Date? get notAfter { + final _$$selfRef = reference; + return _get$notAfter(_$$selfRef.pointer, _id_get$notAfter.pointer) + .object(); } - static final _id_getTBSCertificate = _class.instanceMethodId( - r'getTBSCertificate', - r'()[B', + static final _id_get$notBefore = X509Certificate._class.instanceMethodId( + r'getNotBefore', + r'()Ljava/util/Date;', ); - static final _getTBSCertificate = jni$_.ProtectedJniExtensions.lookup< + static final _get$notBefore = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -25029,20 +20902,20 @@ class X509Certificate extends Certificate { jni$_.JMethodIDPtr, )>(); - /// from: `public abstract byte[] getTBSCertificate()` + /// from: `public abstract java.util.Date getNotBefore()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JByteArray? getTBSCertificate() { - return _getTBSCertificate( - reference.pointer, _id_getTBSCertificate as jni$_.JMethodIDPtr) - .object(const jni$_.JByteArrayNullableType()); + Date? get notBefore { + final _$$selfRef = reference; + return _get$notBefore(_$$selfRef.pointer, _id_get$notBefore.pointer) + .object(); } - static final _id_getSignature = _class.instanceMethodId( - r'getSignature', - r'()[B', + static final _id_get$serialNumber = X509Certificate._class.instanceMethodId( + r'getSerialNumber', + r'()Ljava/math/BigInteger;', ); - static final _getSignature = jni$_.ProtectedJniExtensions.lookup< + static final _get$serialNumber = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -25054,20 +20927,20 @@ class X509Certificate extends Certificate { jni$_.JMethodIDPtr, )>(); - /// from: `public abstract byte[] getSignature()` + /// from: `public abstract java.math.BigInteger getSerialNumber()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JByteArray? getSignature() { - return _getSignature( - reference.pointer, _id_getSignature as jni$_.JMethodIDPtr) - .object(const jni$_.JByteArrayNullableType()); + BigInteger? get serialNumber { + final _$$selfRef = reference; + return _get$serialNumber(_$$selfRef.pointer, _id_get$serialNumber.pointer) + .object(); } - static final _id_getSigAlgName = _class.instanceMethodId( + static final _id_get$sigAlgName = X509Certificate._class.instanceMethodId( r'getSigAlgName', r'()Ljava/lang/String;', ); - static final _getSigAlgName = jni$_.ProtectedJniExtensions.lookup< + static final _get$sigAlgName = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -25081,18 +20954,18 @@ class X509Certificate extends Certificate { /// from: `public abstract java.lang.String getSigAlgName()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getSigAlgName() { - return _getSigAlgName( - reference.pointer, _id_getSigAlgName as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get sigAlgName { + final _$$selfRef = reference; + return _get$sigAlgName(_$$selfRef.pointer, _id_get$sigAlgName.pointer) + .object(); } - static final _id_getSigAlgOID = _class.instanceMethodId( + static final _id_get$sigAlgOID = X509Certificate._class.instanceMethodId( r'getSigAlgOID', r'()Ljava/lang/String;', ); - static final _getSigAlgOID = jni$_.ProtectedJniExtensions.lookup< + static final _get$sigAlgOID = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -25106,18 +20979,18 @@ class X509Certificate extends Certificate { /// from: `public abstract java.lang.String getSigAlgOID()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getSigAlgOID() { - return _getSigAlgOID( - reference.pointer, _id_getSigAlgOID as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JString? get sigAlgOID { + final _$$selfRef = reference; + return _get$sigAlgOID(_$$selfRef.pointer, _id_get$sigAlgOID.pointer) + .object(); } - static final _id_getSigAlgParams = _class.instanceMethodId( + static final _id_get$sigAlgParams = X509Certificate._class.instanceMethodId( r'getSigAlgParams', r'()[B', ); - static final _getSigAlgParams = jni$_.ProtectedJniExtensions.lookup< + static final _get$sigAlgParams = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -25131,18 +21004,18 @@ class X509Certificate extends Certificate { /// from: `public abstract byte[] getSigAlgParams()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JByteArray? getSigAlgParams() { - return _getSigAlgParams( - reference.pointer, _id_getSigAlgParams as jni$_.JMethodIDPtr) - .object(const jni$_.JByteArrayNullableType()); + jni$_.JByteArray? get sigAlgParams { + final _$$selfRef = reference; + return _get$sigAlgParams(_$$selfRef.pointer, _id_get$sigAlgParams.pointer) + .object(); } - static final _id_getIssuerUniqueID = _class.instanceMethodId( - r'getIssuerUniqueID', - r'()[Z', + static final _id_get$signature = X509Certificate._class.instanceMethodId( + r'getSignature', + r'()[B', ); - static final _getIssuerUniqueID = jni$_.ProtectedJniExtensions.lookup< + static final _get$signature = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -25154,45 +21027,48 @@ class X509Certificate extends Certificate { jni$_.JMethodIDPtr, )>(); - /// from: `public abstract boolean[] getIssuerUniqueID()` + /// from: `public abstract byte[] getSignature()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JBooleanArray? getIssuerUniqueID() { - return _getIssuerUniqueID( - reference.pointer, _id_getIssuerUniqueID as jni$_.JMethodIDPtr) - .object(const jni$_.JBooleanArrayNullableType()); + jni$_.JByteArray? get signature { + final _$$selfRef = reference; + return _get$signature(_$$selfRef.pointer, _id_get$signature.pointer) + .object(); } - static final _id_getSubjectUniqueID = _class.instanceMethodId( - r'getSubjectUniqueID', - r'()[Z', + static final _id_get$subjectAlternativeNames = + X509Certificate._class.instanceMethodId( + r'getSubjectAlternativeNames', + r'()Ljava/util/Collection;', ); - static final _getSubjectUniqueID = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get$subjectAlternativeNames = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + )>(); - /// from: `public abstract boolean[] getSubjectUniqueID()` + /// from: `public java.util.Collection> getSubjectAlternativeNames()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JBooleanArray? getSubjectUniqueID() { - return _getSubjectUniqueID( - reference.pointer, _id_getSubjectUniqueID as jni$_.JMethodIDPtr) - .object(const jni$_.JBooleanArrayNullableType()); + jni$_.JCollection?>? get subjectAlternativeNames { + final _$$selfRef = reference; + return _get$subjectAlternativeNames( + _$$selfRef.pointer, _id_get$subjectAlternativeNames.pointer) + .object?>?>(); } - static final _id_getKeyUsage = _class.instanceMethodId( - r'getKeyUsage', - r'()[Z', + static final _id_get$subjectDN = X509Certificate._class.instanceMethodId( + r'getSubjectDN', + r'()Ljava/security/Principal;', ); - static final _getKeyUsage = jni$_.ProtectedJniExtensions.lookup< + static final _get$subjectDN = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -25204,20 +21080,21 @@ class X509Certificate extends Certificate { jni$_.JMethodIDPtr, )>(); - /// from: `public abstract boolean[] getKeyUsage()` + /// from: `public abstract java.security.Principal getSubjectDN()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JBooleanArray? getKeyUsage() { - return _getKeyUsage( - reference.pointer, _id_getKeyUsage as jni$_.JMethodIDPtr) - .object(const jni$_.JBooleanArrayNullableType()); + Principal? get subjectDN { + final _$$selfRef = reference; + return _get$subjectDN(_$$selfRef.pointer, _id_get$subjectDN.pointer) + .object(); } - static final _id_getExtendedKeyUsage = _class.instanceMethodId( - r'getExtendedKeyUsage', - r'()Ljava/util/List;', + static final _id_get$subjectUniqueID = + X509Certificate._class.instanceMethodId( + r'getSubjectUniqueID', + r'()[Z', ); - static final _getExtendedKeyUsage = jni$_.ProtectedJniExtensions.lookup< + static final _get$subjectUniqueID = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -25229,92 +21106,92 @@ class X509Certificate extends Certificate { jni$_.JMethodIDPtr, )>(); - /// from: `public java.util.List getExtendedKeyUsage()` + /// from: `public abstract boolean[] getSubjectUniqueID()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList? getExtendedKeyUsage() { - return _getExtendedKeyUsage( - reference.pointer, _id_getExtendedKeyUsage as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - jni$_.JStringNullableType())); + jni$_.JBooleanArray? get subjectUniqueID { + final _$$selfRef = reference; + return _get$subjectUniqueID( + _$$selfRef.pointer, _id_get$subjectUniqueID.pointer) + .object(); } - static final _id_getBasicConstraints = _class.instanceMethodId( - r'getBasicConstraints', - r'()I', + static final _id_get$subjectX500Principal = + X509Certificate._class.instanceMethodId( + r'getSubjectX500Principal', + r'()Ljavax/security/auth/x500/X500Principal;', ); - static final _getBasicConstraints = jni$_.ProtectedJniExtensions.lookup< + static final _get$subjectX500Principal = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') + )>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, )>(); - /// from: `public abstract int getBasicConstraints()` - int getBasicConstraints() { - return _getBasicConstraints( - reference.pointer, _id_getBasicConstraints as jni$_.JMethodIDPtr) - .integer; + /// from: `public javax.security.auth.x500.X500Principal getSubjectX500Principal()` + /// The returned object must be released after use, by calling the [release] method. + X500Principal? get subjectX500Principal { + final _$$selfRef = reference; + return _get$subjectX500Principal( + _$$selfRef.pointer, _id_get$subjectX500Principal.pointer) + .object(); } - static final _id_getSubjectAlternativeNames = _class.instanceMethodId( - r'getSubjectAlternativeNames', - r'()Ljava/util/Collection;', + static final _id_get$tBSCertificate = X509Certificate._class.instanceMethodId( + r'getTBSCertificate', + r'()[B', ); - static final _getSubjectAlternativeNames = - jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< + static final _get$tBSCertificate = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - /// from: `public java.util.Collection getSubjectAlternativeNames()` + /// from: `public abstract byte[] getTBSCertificate()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getSubjectAlternativeNames() { - return _getSubjectAlternativeNames(reference.pointer, - _id_getSubjectAlternativeNames as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + jni$_.JByteArray? get tBSCertificate { + final _$$selfRef = reference; + return _get$tBSCertificate( + _$$selfRef.pointer, _id_get$tBSCertificate.pointer) + .object(); } - static final _id_getIssuerAlternativeNames = _class.instanceMethodId( - r'getIssuerAlternativeNames', - r'()Ljava/util/Collection;', + static final _id_get$version = X509Certificate._class.instanceMethodId( + r'getVersion', + r'()I', ); - static final _getIssuerAlternativeNames = jni$_.ProtectedJniExtensions.lookup< + static final _get$version = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') + )>>('globalEnv_CallIntMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, )>(); - /// from: `public java.util.Collection getIssuerAlternativeNames()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getIssuerAlternativeNames() { - return _getIssuerAlternativeNames(reference.pointer, - _id_getIssuerAlternativeNames as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + /// from: `public abstract int getVersion()` + core$_.int get version { + final _$$selfRef = reference; + return _get$version(_$$selfRef.pointer, _id_get$version.pointer).integer; } - static final _id_verify2 = _class.instanceMethodId( + static final _id_verify2 = X509Certificate._class.instanceMethodId( r'verify', r'(Ljava/security/PublicKey;Ljava/security/Provider;)V', ); @@ -25339,108 +21216,32 @@ class X509Certificate extends Certificate { /// from: `public void verify(java.security.PublicKey publicKey, java.security.Provider provider)` void verify2( PublicKey? publicKey, - jni$_.JObject? provider, + Provider? provider, ) { + final _$$selfRef = reference; final _$publicKey = publicKey?.reference ?? jni$_.jNullReference; final _$provider = provider?.reference ?? jni$_.jNullReference; - _verify2(reference.pointer, _id_verify2 as jni$_.JMethodIDPtr, - _$publicKey.pointer, _$provider.pointer) + _verify2(_$$selfRef.pointer, _id_verify2.pointer, _$publicKey.pointer, + _$provider.pointer) .check(); } } -final class $X509Certificate$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $X509Certificate$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljava/security/cert/X509Certificate;'; - - @jni$_.internal - @core$_.override - X509Certificate? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : X509Certificate.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const $Certificate$NullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 2; - - @core$_.override - int get hashCode => ($X509Certificate$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($X509Certificate$NullableType) && - other is $X509Certificate$NullableType; - } -} - -final class $X509Certificate$Type extends jni$_.JObjType { +final class $X509Certificate$Type$ extends jni$_.JType { @jni$_.internal - const $X509Certificate$Type(); + const $X509Certificate$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljava/security/cert/X509Certificate;'; - - @jni$_.internal - @core$_.override - X509Certificate fromReference(jni$_.JReference reference) => - X509Certificate.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const $Certificate$NullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $X509Certificate$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 2; - - @core$_.override - int get hashCode => ($X509Certificate$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($X509Certificate$Type) && - other is $X509Certificate$Type; - } } /// from: `android.security.KeyChain` -class KeyChain extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - KeyChain.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type KeyChain._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'android/security/KeyChain'); /// The type which includes information such as the signature of this class. - static const nullableType = $KeyChain$NullableType(); - static const type = $KeyChain$Type(); + static const jni$_.JType type = $KeyChain$Type$(); static final _id_ACTION_KEYCHAIN_CHANGED = _class.staticFieldId( r'ACTION_KEYCHAIN_CHANGED', r'Ljava/lang/String;', @@ -25449,8 +21250,8 @@ class KeyChain extends jni$_.JObject { /// from: `static public final java.lang.String ACTION_KEYCHAIN_CHANGED` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get ACTION_KEYCHAIN_CHANGED => - _id_ACTION_KEYCHAIN_CHANGED.get( - _class, const jni$_.JStringNullableType()); + _id_ACTION_KEYCHAIN_CHANGED.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_ACTION_KEY_ACCESS_CHANGED = _class.staticFieldId( r'ACTION_KEY_ACCESS_CHANGED', @@ -25460,8 +21261,8 @@ class KeyChain extends jni$_.JObject { /// from: `static public final java.lang.String ACTION_KEY_ACCESS_CHANGED` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get ACTION_KEY_ACCESS_CHANGED => - _id_ACTION_KEY_ACCESS_CHANGED.get( - _class, const jni$_.JStringNullableType()); + _id_ACTION_KEY_ACCESS_CHANGED.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_ACTION_STORAGE_CHANGED = _class.staticFieldId( r'ACTION_STORAGE_CHANGED', @@ -25471,7 +21272,8 @@ class KeyChain extends jni$_.JObject { /// from: `static public final java.lang.String ACTION_STORAGE_CHANGED` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get ACTION_STORAGE_CHANGED => - _id_ACTION_STORAGE_CHANGED.get(_class, const jni$_.JStringNullableType()); + _id_ACTION_STORAGE_CHANGED.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_ACTION_TRUST_STORE_CHANGED = _class.staticFieldId( r'ACTION_TRUST_STORE_CHANGED', @@ -25481,8 +21283,8 @@ class KeyChain extends jni$_.JObject { /// from: `static public final java.lang.String ACTION_TRUST_STORE_CHANGED` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get ACTION_TRUST_STORE_CHANGED => - _id_ACTION_TRUST_STORE_CHANGED.get( - _class, const jni$_.JStringNullableType()); + _id_ACTION_TRUST_STORE_CHANGED.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_EXTRA_CERTIFICATE = _class.staticFieldId( r'EXTRA_CERTIFICATE', @@ -25492,7 +21294,8 @@ class KeyChain extends jni$_.JObject { /// from: `static public final java.lang.String EXTRA_CERTIFICATE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get EXTRA_CERTIFICATE => - _id_EXTRA_CERTIFICATE.get(_class, const jni$_.JStringNullableType()); + _id_EXTRA_CERTIFICATE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_EXTRA_KEY_ACCESSIBLE = _class.staticFieldId( r'EXTRA_KEY_ACCESSIBLE', @@ -25502,7 +21305,8 @@ class KeyChain extends jni$_.JObject { /// from: `static public final java.lang.String EXTRA_KEY_ACCESSIBLE` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get EXTRA_KEY_ACCESSIBLE => - _id_EXTRA_KEY_ACCESSIBLE.get(_class, const jni$_.JStringNullableType()); + _id_EXTRA_KEY_ACCESSIBLE.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_EXTRA_KEY_ALIAS = _class.staticFieldId( r'EXTRA_KEY_ALIAS', @@ -25512,7 +21316,8 @@ class KeyChain extends jni$_.JObject { /// from: `static public final java.lang.String EXTRA_KEY_ALIAS` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get EXTRA_KEY_ALIAS => - _id_EXTRA_KEY_ALIAS.get(_class, const jni$_.JStringNullableType()); + _id_EXTRA_KEY_ALIAS.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_EXTRA_NAME = _class.staticFieldId( r'EXTRA_NAME', @@ -25522,7 +21327,7 @@ class KeyChain extends jni$_.JObject { /// from: `static public final java.lang.String EXTRA_NAME` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get EXTRA_NAME => - _id_EXTRA_NAME.get(_class, const jni$_.JStringNullableType()); + _id_EXTRA_NAME.getNullable(_class, jni$_.JString.type) as jni$_.JString?; static final _id_EXTRA_PKCS12 = _class.staticFieldId( r'EXTRA_PKCS12', @@ -25532,7 +21337,8 @@ class KeyChain extends jni$_.JObject { /// from: `static public final java.lang.String EXTRA_PKCS12` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get EXTRA_PKCS12 => - _id_EXTRA_PKCS12.get(_class, const jni$_.JStringNullableType()); + _id_EXTRA_PKCS12.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_KEY_ALIAS_SELECTION_DENIED = _class.staticFieldId( r'KEY_ALIAS_SELECTION_DENIED', @@ -25542,8 +21348,8 @@ class KeyChain extends jni$_.JObject { /// from: `static public final java.lang.String KEY_ALIAS_SELECTION_DENIED` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get KEY_ALIAS_SELECTION_DENIED => - _id_KEY_ALIAS_SELECTION_DENIED.get( - _class, const jni$_.JStringNullableType()); + _id_KEY_ALIAS_SELECTION_DENIED.getNullable(_class, jni$_.JString.type) + as jni$_.JString?; static final _id_new$ = _class.constructorId( r'()V', @@ -25564,70 +21370,13 @@ class KeyChain extends jni$_.JObject { /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory KeyChain() { - return KeyChain.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); - } - - static final _id_createInstallIntent = _class.staticMethodId( - r'createInstallIntent', - r'()Landroid/content/Intent;', - ); - - static final _createInstallIntent = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `static public android.content.Intent createInstallIntent()` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? createInstallIntent() { - return _createInstallIntent(_class.reference.pointer, - _id_createInstallIntent as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); - } - - static final _id_createManageCredentialsIntent = _class.staticMethodId( - r'createManageCredentialsIntent', - r'(Landroid/security/AppUriAuthenticationPolicy;)Landroid/content/Intent;', - ); - - static final _createManageCredentialsIntent = - jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `static public android.content.Intent createManageCredentialsIntent(android.security.AppUriAuthenticationPolicy appUriAuthenticationPolicy)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? createManageCredentialsIntent( - jni$_.JObject? appUriAuthenticationPolicy, - ) { - final _$appUriAuthenticationPolicy = - appUriAuthenticationPolicy?.reference ?? jni$_.jNullReference; - return _createManageCredentialsIntent( - _class.reference.pointer, - _id_createManageCredentialsIntent as jni$_.JMethodIDPtr, - _$appUriAuthenticationPolicy.pointer) - .object(const jni$_.JObjectNullableType()); + final _$$classRef = _class.reference; + return _new$(_$$classRef.pointer, _id_new$.pointer).object(); } static final _id_choosePrivateKeyAlias = _class.staticMethodId( r'choosePrivateKeyAlias', - r'(Landroid/app/Activity;Landroid/security/KeyChainAliasCallback;[Ljava/lang/String;[Ljava/security/Principal;Ljava/lang/String;ILjava/lang/String;)V', + r'(Landroid/app/Activity;Landroid/security/KeyChainAliasCallback;[Ljava/lang/String;[Ljava/security/Principal;Landroid/net/Uri;Ljava/lang/String;)V', ); static final _choosePrivateKeyAlias = jni$_.ProtectedJniExtensions.lookup< @@ -25642,7 +21391,6 @@ class KeyChain extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - jni$_.Int32, jni$_.Pointer )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< @@ -25654,42 +21402,40 @@ class KeyChain extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - int, jni$_.Pointer)>(); - /// from: `static public void choosePrivateKeyAlias(android.app.Activity activity, android.security.KeyChainAliasCallback keyChainAliasCallback, java.lang.String[] strings, java.security.Principal[] principals, java.lang.String string, int i, java.lang.String string1)` + /// from: `static public void choosePrivateKeyAlias(android.app.Activity activity, android.security.KeyChainAliasCallback keyChainAliasCallback, java.lang.String[] strings, java.security.Principal[] principals, android.net.Uri uri, java.lang.String string)` static void choosePrivateKeyAlias( - jni$_.JObject? activity, + Activity? activity, KeyChainAliasCallback? keyChainAliasCallback, jni$_.JArray? strings, - jni$_.JArray? principals, + jni$_.JArray? principals, + Uri? uri, jni$_.JString? string, - int i, - jni$_.JString? string1, ) { + final _$$classRef = _class.reference; final _$activity = activity?.reference ?? jni$_.jNullReference; final _$keyChainAliasCallback = keyChainAliasCallback?.reference ?? jni$_.jNullReference; final _$strings = strings?.reference ?? jni$_.jNullReference; final _$principals = principals?.reference ?? jni$_.jNullReference; + final _$uri = uri?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; - final _$string1 = string1?.reference ?? jni$_.jNullReference; _choosePrivateKeyAlias( - _class.reference.pointer, - _id_choosePrivateKeyAlias as jni$_.JMethodIDPtr, + _$$classRef.pointer, + _id_choosePrivateKeyAlias.pointer, _$activity.pointer, _$keyChainAliasCallback.pointer, _$strings.pointer, _$principals.pointer, - _$string.pointer, - i, - _$string1.pointer) + _$uri.pointer, + _$string.pointer) .check(); } static final _id_choosePrivateKeyAlias$1 = _class.staticMethodId( r'choosePrivateKeyAlias', - r'(Landroid/app/Activity;Landroid/security/KeyChainAliasCallback;[Ljava/lang/String;[Ljava/security/Principal;Landroid/net/Uri;Ljava/lang/String;)V', + r'(Landroid/app/Activity;Landroid/security/KeyChainAliasCallback;[Ljava/lang/String;[Ljava/security/Principal;Ljava/lang/String;ILjava/lang/String;)V', ); static final _choosePrivateKeyAlias$1 = jni$_.ProtectedJniExtensions.lookup< @@ -25704,6 +21450,7 @@ class KeyChain extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, + jni$_.Int32, jni$_.Pointer )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< @@ -25715,70 +21462,72 @@ class KeyChain extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, + core$_.int, jni$_.Pointer)>(); - /// from: `static public void choosePrivateKeyAlias(android.app.Activity activity, android.security.KeyChainAliasCallback keyChainAliasCallback, java.lang.String[] strings, java.security.Principal[] principals, android.net.Uri uri, java.lang.String string)` + /// from: `static public void choosePrivateKeyAlias(android.app.Activity activity, android.security.KeyChainAliasCallback keyChainAliasCallback, java.lang.String[] strings, java.security.Principal[] principals, java.lang.String string, int i, java.lang.String string1)` static void choosePrivateKeyAlias$1( - jni$_.JObject? activity, + Activity? activity, KeyChainAliasCallback? keyChainAliasCallback, jni$_.JArray? strings, - jni$_.JArray? principals, - jni$_.JObject? uri, + jni$_.JArray? principals, jni$_.JString? string, + core$_.int i, + jni$_.JString? string1, ) { + final _$$classRef = _class.reference; final _$activity = activity?.reference ?? jni$_.jNullReference; final _$keyChainAliasCallback = keyChainAliasCallback?.reference ?? jni$_.jNullReference; final _$strings = strings?.reference ?? jni$_.jNullReference; final _$principals = principals?.reference ?? jni$_.jNullReference; - final _$uri = uri?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; + final _$string1 = string1?.reference ?? jni$_.jNullReference; _choosePrivateKeyAlias$1( - _class.reference.pointer, - _id_choosePrivateKeyAlias$1 as jni$_.JMethodIDPtr, + _$$classRef.pointer, + _id_choosePrivateKeyAlias$1.pointer, _$activity.pointer, _$keyChainAliasCallback.pointer, _$strings.pointer, _$principals.pointer, - _$uri.pointer, - _$string.pointer) + _$string.pointer, + i, + _$string1.pointer) .check(); } - static final _id_isCredentialManagementApp = _class.staticMethodId( - r'isCredentialManagementApp', - r'(Landroid/content/Context;)Z', + static final _id_createInstallIntent = _class.staticMethodId( + r'createInstallIntent', + r'()Landroid/content/Intent;', ); - static final _isCredentialManagementApp = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `static public boolean isCredentialManagementApp(android.content.Context context)` - static bool isCredentialManagementApp( - jni$_.JObject? context, - ) { - final _$context = context?.reference ?? jni$_.jNullReference; - return _isCredentialManagementApp( - _class.reference.pointer, - _id_isCredentialManagementApp as jni$_.JMethodIDPtr, - _$context.pointer) - .boolean; + static final _createInstallIntent = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `static public android.content.Intent createInstallIntent()` + /// The returned object must be released after use, by calling the [release] method. + static Intent? createInstallIntent() { + final _$$classRef = _class.reference; + return _createInstallIntent( + _$$classRef.pointer, _id_createInstallIntent.pointer) + .object(); } - static final _id_getCredentialManagementAppPolicy = _class.staticMethodId( - r'getCredentialManagementAppPolicy', - r'(Landroid/content/Context;)Landroid/security/AppUriAuthenticationPolicy;', + static final _id_createManageCredentialsIntent = _class.staticMethodId( + r'createManageCredentialsIntent', + r'(Landroid/security/AppUriAuthenticationPolicy;)Landroid/content/Intent;', ); - static final _getCredentialManagementAppPolicy = + static final _createManageCredentialsIntent = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( @@ -25790,46 +21539,87 @@ class KeyChain extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public android.security.AppUriAuthenticationPolicy getCredentialManagementAppPolicy(android.content.Context context)` + /// from: `static public android.content.Intent createManageCredentialsIntent(android.security.AppUriAuthenticationPolicy appUriAuthenticationPolicy)` + /// The returned object must be released after use, by calling the [release] method. + static Intent? createManageCredentialsIntent( + AppUriAuthenticationPolicy? appUriAuthenticationPolicy, + ) { + final _$$classRef = _class.reference; + final _$appUriAuthenticationPolicy = + appUriAuthenticationPolicy?.reference ?? jni$_.jNullReference; + return _createManageCredentialsIntent( + _$$classRef.pointer, + _id_createManageCredentialsIntent.pointer, + _$appUriAuthenticationPolicy.pointer) + .object(); + } + + static final _id_getCertificateChain = _class.staticMethodId( + r'getCertificateChain', + r'(Landroid/content/Context;Ljava/lang/String;)[Ljava/security/cert/X509Certificate;', + ); + + static final _getCertificateChain = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); + + /// from: `static public java.security.cert.X509Certificate[] getCertificateChain(android.content.Context context, java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? getCredentialManagementAppPolicy( - jni$_.JObject? context, + static jni$_.JArray? getCertificateChain( + Context? context, + jni$_.JString? string, ) { + final _$$classRef = _class.reference; final _$context = context?.reference ?? jni$_.jNullReference; - return _getCredentialManagementAppPolicy( - _class.reference.pointer, - _id_getCredentialManagementAppPolicy as jni$_.JMethodIDPtr, - _$context.pointer) - .object(const jni$_.JObjectNullableType()); + final _$string = string?.reference ?? jni$_.jNullReference; + return _getCertificateChain( + _$$classRef.pointer, + _id_getCertificateChain.pointer, + _$context.pointer, + _$string.pointer) + .object?>(); } - static final _id_removeCredentialManagementApp = _class.staticMethodId( - r'removeCredentialManagementApp', - r'(Landroid/content/Context;)Z', + static final _id_getCredentialManagementAppPolicy = _class.staticMethodId( + r'getCredentialManagementAppPolicy', + r'(Landroid/content/Context;)Landroid/security/AppUriAuthenticationPolicy;', ); - static final _removeCredentialManagementApp = + static final _getCredentialManagementAppPolicy = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticBooleanMethod') + 'globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public boolean removeCredentialManagementApp(android.content.Context context)` - static bool removeCredentialManagementApp( - jni$_.JObject? context, + /// from: `static public android.security.AppUriAuthenticationPolicy getCredentialManagementAppPolicy(android.content.Context context)` + /// The returned object must be released after use, by calling the [release] method. + static AppUriAuthenticationPolicy? getCredentialManagementAppPolicy( + Context? context, ) { + final _$$classRef = _class.reference; final _$context = context?.reference ?? jni$_.jNullReference; - return _removeCredentialManagementApp( - _class.reference.pointer, - _id_removeCredentialManagementApp as jni$_.JMethodIDPtr, - _$context.pointer) - .boolean; + return _getCredentialManagementAppPolicy(_$$classRef.pointer, + _id_getCredentialManagementAppPolicy.pointer, _$context.pointer) + .object(); } static final _id_getPrivateKey = _class.staticMethodId( @@ -25857,65 +21647,51 @@ class KeyChain extends jni$_.JObject { /// from: `static public java.security.PrivateKey getPrivateKey(android.content.Context context, java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. static PrivateKey? getPrivateKey( - jni$_.JObject? context, + Context? context, jni$_.JString? string, ) { + final _$$classRef = _class.reference; final _$context = context?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; - return _getPrivateKey( - _class.reference.pointer, - _id_getPrivateKey as jni$_.JMethodIDPtr, - _$context.pointer, - _$string.pointer) - .object(const $PrivateKey$NullableType()); + return _getPrivateKey(_$$classRef.pointer, _id_getPrivateKey.pointer, + _$context.pointer, _$string.pointer) + .object(); } - static final _id_getCertificateChain = _class.staticMethodId( - r'getCertificateChain', - r'(Landroid/content/Context;Ljava/lang/String;)[Ljava/security/cert/X509Certificate;', + static final _id_isBoundKeyAlgorithm = _class.staticMethodId( + r'isBoundKeyAlgorithm', + r'(Ljava/lang/String;)Z', ); - static final _getCertificateChain = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') + static final _isBoundKeyAlgorithm = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticBooleanMethod') .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public java.security.cert.X509Certificate[] getCertificateChain(android.content.Context context, java.lang.String string)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JArray? getCertificateChain( - jni$_.JObject? context, + /// from: `static public boolean isBoundKeyAlgorithm(java.lang.String string)` + @core$_.Deprecated('This Java method is deprecated.') + static core$_.bool isBoundKeyAlgorithm( jni$_.JString? string, ) { - final _$context = context?.reference ?? jni$_.jNullReference; + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; - return _getCertificateChain( - _class.reference.pointer, - _id_getCertificateChain as jni$_.JMethodIDPtr, - _$context.pointer, - _$string.pointer) - .object?>( - const jni$_.JArrayNullableType( - $X509Certificate$NullableType())); + return _isBoundKeyAlgorithm(_$$classRef.pointer, + _id_isBoundKeyAlgorithm.pointer, _$string.pointer) + .boolean; } - static final _id_isKeyAlgorithmSupported = _class.staticMethodId( - r'isKeyAlgorithmSupported', - r'(Ljava/lang/String;)Z', + static final _id_isCredentialManagementApp = _class.staticMethodId( + r'isCredentialManagementApp', + r'(Landroid/content/Context;)Z', ); - static final _isKeyAlgorithmSupported = jni$_.ProtectedJniExtensions.lookup< + static final _isCredentialManagementApp = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -25926,22 +21702,23 @@ class KeyChain extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public boolean isKeyAlgorithmSupported(java.lang.String string)` - static bool isKeyAlgorithmSupported( - jni$_.JString? string, + /// from: `static public boolean isCredentialManagementApp(android.content.Context context)` + static core$_.bool isCredentialManagementApp( + Context? context, ) { - final _$string = string?.reference ?? jni$_.jNullReference; - return _isKeyAlgorithmSupported(_class.reference.pointer, - _id_isKeyAlgorithmSupported as jni$_.JMethodIDPtr, _$string.pointer) + final _$$classRef = _class.reference; + final _$context = context?.reference ?? jni$_.jNullReference; + return _isCredentialManagementApp(_$$classRef.pointer, + _id_isCredentialManagementApp.pointer, _$context.pointer) .boolean; } - static final _id_isBoundKeyAlgorithm = _class.staticMethodId( - r'isBoundKeyAlgorithm', + static final _id_isKeyAlgorithmSupported = _class.staticMethodId( + r'isKeyAlgorithmSupported', r'(Ljava/lang/String;)Z', ); - static final _isBoundKeyAlgorithm = jni$_.ProtectedJniExtensions.lookup< + static final _isKeyAlgorithmSupported = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -25952,135 +21729,69 @@ class KeyChain extends jni$_.JObject { jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public boolean isBoundKeyAlgorithm(java.lang.String string)` - static bool isBoundKeyAlgorithm( + /// from: `static public boolean isKeyAlgorithmSupported(java.lang.String string)` + static core$_.bool isKeyAlgorithmSupported( jni$_.JString? string, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; - return _isBoundKeyAlgorithm(_class.reference.pointer, - _id_isBoundKeyAlgorithm as jni$_.JMethodIDPtr, _$string.pointer) + return _isKeyAlgorithmSupported(_$$classRef.pointer, + _id_isKeyAlgorithmSupported.pointer, _$string.pointer) .boolean; } -} - -final class $KeyChain$NullableType extends jni$_.JObjType { - @jni$_.internal - const $KeyChain$NullableType(); - @jni$_.internal - @core$_.override - String get signature => r'Landroid/security/KeyChain;'; - - @jni$_.internal - @core$_.override - KeyChain? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : KeyChain.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; + static final _id_removeCredentialManagementApp = _class.staticMethodId( + r'removeCredentialManagementApp', + r'(Landroid/content/Context;)Z', + ); - @core$_.override - int get hashCode => ($KeyChain$NullableType).hashCode; + static final _removeCredentialManagementApp = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyChain$NullableType) && - other is $KeyChain$NullableType; + /// from: `static public boolean removeCredentialManagementApp(android.content.Context context)` + static core$_.bool removeCredentialManagementApp( + Context? context, + ) { + final _$$classRef = _class.reference; + final _$context = context?.reference ?? jni$_.jNullReference; + return _removeCredentialManagementApp(_$$classRef.pointer, + _id_removeCredentialManagementApp.pointer, _$context.pointer) + .boolean; } } -final class $KeyChain$Type extends jni$_.JObjType { +final class $KeyChain$Type$ extends jni$_.JType { @jni$_.internal - const $KeyChain$Type(); + const $KeyChain$Type$(); @jni$_.internal @core$_.override String get signature => r'Landroid/security/KeyChain;'; - - @jni$_.internal - @core$_.override - KeyChain fromReference(jni$_.JReference reference) => KeyChain.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => const $KeyChain$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyChain$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyChain$Type) && other is $KeyChain$Type; - } } /// from: `android.security.KeyChainAliasCallback` -class KeyChainAliasCallback extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - KeyChainAliasCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type KeyChainAliasCallback._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'android/security/KeyChainAliasCallback'); /// The type which includes information such as the signature of this class. - static const nullableType = $KeyChainAliasCallback$NullableType(); - static const type = $KeyChainAliasCallback$Type(); - static final _id_alias = _class.instanceMethodId( - r'alias', - r'(Ljava/lang/String;)V', - ); - - static final _alias = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public abstract void alias(java.lang.String string)` - void alias( - jni$_.JString? string, - ) { - final _$string = string?.reference ?? jni$_.jNullReference; - _alias(reference.pointer, _id_alias as jni$_.JMethodIDPtr, _$string.pointer) - .check(); - } + static const jni$_.JType type = + $KeyChainAliasCallback$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; + static final core$_.Map _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -26101,7 +21812,7 @@ class KeyChainAliasCallback extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -26109,7 +21820,7 @@ class KeyChainAliasCallback extends jni$_.JObject { final $a = $i.args; if ($d == r'alias(Ljava/lang/String;)V') { _$impls[$p]!.alias( - $a![0]?.as(const jni$_.JStringType(), releaseOriginal: true), + ($a![0] as jni$_.JString?), ); return jni$_.nullptr; } @@ -26132,6 +21843,7 @@ class KeyChainAliasCallback extends jni$_.JObject { } final $i = jni$_.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); + $i.args?.release(); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( @@ -26151,20 +21863,45 @@ class KeyChainAliasCallback extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return KeyChainAliasCallback.fromReference( - $i.implementReference(), - ); + return $i.implement(); + } +} + +extension KeyChainAliasCallback$$Methods on KeyChainAliasCallback { + static final _id_alias = KeyChainAliasCallback._class.instanceMethodId( + r'alias', + r'(Ljava/lang/String;)V', + ); + + static final _alias = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public abstract void alias(java.lang.String string)` + void alias( + jni$_.JString? string, + ) { + final _$$selfRef = reference; + final _$string = string?.reference ?? jni$_.jNullReference; + _alias(_$$selfRef.pointer, _id_alias.pointer, _$string.pointer).check(); } } abstract base mixin class $KeyChainAliasCallback { factory $KeyChainAliasCallback({ required void Function(jni$_.JString? string) alias, - bool alias$async, + core$_.bool alias$async, }) = _$KeyChainAliasCallback; void alias(jni$_.JString? string); - bool get alias$async => false; + core$_.bool get alias$async => false; } final class _$KeyChainAliasCallback with $KeyChainAliasCallback { @@ -26174,115 +21911,38 @@ final class _$KeyChainAliasCallback with $KeyChainAliasCallback { }) : _alias = alias; final void Function(jni$_.JString? string) _alias; - final bool alias$async; + final core$_.bool alias$async; void alias(jni$_.JString? string) { return _alias(string); } } -final class $KeyChainAliasCallback$NullableType - extends jni$_.JObjType { +final class $KeyChainAliasCallback$Type$ + extends jni$_.JType { @jni$_.internal - const $KeyChainAliasCallback$NullableType(); + const $KeyChainAliasCallback$Type$(); @jni$_.internal @core$_.override String get signature => r'Landroid/security/KeyChainAliasCallback;'; +} - @jni$_.internal - @core$_.override - KeyChainAliasCallback? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : KeyChainAliasCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyChainAliasCallback$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyChainAliasCallback$NullableType) && - other is $KeyChainAliasCallback$NullableType; - } -} - -final class $KeyChainAliasCallback$Type - extends jni$_.JObjType { - @jni$_.internal - const $KeyChainAliasCallback$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Landroid/security/KeyChainAliasCallback;'; - - @jni$_.internal - @core$_.override - KeyChainAliasCallback fromReference(jni$_.JReference reference) => - KeyChainAliasCallback.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $KeyChainAliasCallback$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyChainAliasCallback$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyChainAliasCallback$Type) && - other is $KeyChainAliasCallback$Type; - } -} - -/// from: `java.security.PrivateKey` -class PrivateKey extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - PrivateKey.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = jni$_.JClass.forName(r'java/security/PrivateKey'); +/// from: `java.security.PrivateKey` +extension type PrivateKey._(jni$_.JObject _$this) + implements jni$_.JObject, Destroyable, Key { + static final _class = jni$_.JClass.forName(r'java/security/PrivateKey'); /// The type which includes information such as the signature of this class. - static const nullableType = $PrivateKey$NullableType(); - static const type = $PrivateKey$Type(); + static const jni$_.JType type = $PrivateKey$Type$(); /// from: `static public final long serialVersionUID` static const serialVersionUID = 6034044314589513430; /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; + static final core$_.Map _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -26303,12 +21963,36 @@ class PrivateKey extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; + if ($d == r'getAlgorithm()Ljava/lang/String;') { + final $r = _$impls[$p]!.getAlgorithm(); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } + if ($d == r'getEncoded()[B') { + final $r = _$impls[$p]!.getEncoded(); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } + if ($d == r'getFormat()Ljava/lang/String;') { + final $r = _$impls[$p]!.getFormat(); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } } catch (e) { return jni$_.ProtectedJniExtensions.newDartException(e); } @@ -26328,6 +22012,7 @@ class PrivateKey extends jni$_.JObject { } final $i = jni$_.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); + $i.args?.release(); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( @@ -26345,114 +22030,12 @@ class PrivateKey extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return PrivateKey.fromReference( - $i.implementReference(), - ); - } -} - -abstract base mixin class $PrivateKey { - factory $PrivateKey() = _$PrivateKey; -} - -final class _$PrivateKey with $PrivateKey { - _$PrivateKey(); -} - -final class $PrivateKey$NullableType extends jni$_.JObjType { - @jni$_.internal - const $PrivateKey$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljava/security/PrivateKey;'; - - @jni$_.internal - @core$_.override - PrivateKey? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : PrivateKey.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($PrivateKey$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($PrivateKey$NullableType) && - other is $PrivateKey$NullableType; - } -} - -final class $PrivateKey$Type extends jni$_.JObjType { - @jni$_.internal - const $PrivateKey$Type(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljava/security/PrivateKey;'; - - @jni$_.internal - @core$_.override - PrivateKey fromReference(jni$_.JReference reference) => - PrivateKey.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $PrivateKey$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($PrivateKey$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($PrivateKey$Type) && other is $PrivateKey$Type; + return $i.implement(); } } -/// from: `java.security.Key` -class Key extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Key.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = jni$_.JClass.forName(r'java/security/Key'); - - /// The type which includes information such as the signature of this class. - static const nullableType = $Key$NullableType(); - static const type = $Key$Type(); - - /// from: `static public final long serialVersionUID` - static const serialVersionUID = 6603384152749567654; - static final _id_getAlgorithm = _class.instanceMethodId( +extension PrivateKey$$Methods on PrivateKey { + static final _id_getAlgorithm = PrivateKey._class.instanceMethodId( r'getAlgorithm', r'()Ljava/lang/String;', ); @@ -26472,17 +22055,17 @@ class Key extends jni$_.JObject { /// from: `public abstract java.lang.String getAlgorithm()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getAlgorithm() { - return _getAlgorithm( - reference.pointer, _id_getAlgorithm as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + final _$$selfRef = reference; + return _getAlgorithm(_$$selfRef.pointer, _id_getAlgorithm.pointer) + .object(); } - static final _id_getFormat = _class.instanceMethodId( - r'getFormat', - r'()Ljava/lang/String;', + static final _id_getEncoded = PrivateKey._class.instanceMethodId( + r'getEncoded', + r'()[B', ); - static final _getFormat = jni$_.ProtectedJniExtensions.lookup< + static final _getEncoded = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -26494,19 +22077,20 @@ class Key extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public abstract java.lang.String getFormat()` + /// from: `public abstract byte[] getEncoded()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getFormat() { - return _getFormat(reference.pointer, _id_getFormat as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + jni$_.JByteArray? getEncoded() { + final _$$selfRef = reference; + return _getEncoded(_$$selfRef.pointer, _id_getEncoded.pointer) + .object(); } - static final _id_getEncoded = _class.instanceMethodId( - r'getEncoded', - r'()[B', + static final _id_getFormat = PrivateKey._class.instanceMethodId( + r'getFormat', + r'()Ljava/lang/String;', ); - static final _getEncoded = jni$_.ProtectedJniExtensions.lookup< + static final _getFormat = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -26518,17 +22102,77 @@ class Key extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public abstract byte[] getEncoded()` + /// from: `public abstract java.lang.String getFormat()` /// The returned object must be released after use, by calling the [release] method. + jni$_.JString? getFormat() { + final _$$selfRef = reference; + return _getFormat(_$$selfRef.pointer, _id_getFormat.pointer) + .object(); + } +} + +abstract base mixin class $PrivateKey { + factory $PrivateKey({ + required jni$_.JString? Function() getAlgorithm, + required jni$_.JByteArray? Function() getEncoded, + required jni$_.JString? Function() getFormat, + }) = _$PrivateKey; + + jni$_.JString? getAlgorithm(); + jni$_.JByteArray? getEncoded(); + jni$_.JString? getFormat(); +} + +final class _$PrivateKey with $PrivateKey { + _$PrivateKey({ + required jni$_.JString? Function() getAlgorithm, + required jni$_.JByteArray? Function() getEncoded, + required jni$_.JString? Function() getFormat, + }) : _getAlgorithm = getAlgorithm, + _getEncoded = getEncoded, + _getFormat = getFormat; + + final jni$_.JString? Function() _getAlgorithm; + final jni$_.JByteArray? Function() _getEncoded; + final jni$_.JString? Function() _getFormat; + + jni$_.JString? getAlgorithm() { + return _getAlgorithm(); + } + jni$_.JByteArray? getEncoded() { - return _getEncoded(reference.pointer, _id_getEncoded as jni$_.JMethodIDPtr) - .object(const jni$_.JByteArrayNullableType()); + return _getEncoded(); + } + + jni$_.JString? getFormat() { + return _getFormat(); } +} + +final class $PrivateKey$Type$ extends jni$_.JType { + @jni$_.internal + const $PrivateKey$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/security/PrivateKey;'; +} + +/// from: `java.security.Key` +extension type Key._(jni$_.JObject _$this) + implements jni$_.JObject, Serializable { + static final _class = jni$_.JClass.forName(r'java/security/Key'); + + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = $Key$Type$(); + + /// from: `static public final long serialVersionUID` + static const serialVersionUID = 6603384152749567654; /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; + static final core$_.Map _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -26549,7 +22193,7 @@ class Key extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { @@ -26558,23 +22202,23 @@ class Key extends jni$_.JObject { if ($d == r'getAlgorithm()Ljava/lang/String;') { final $r = _$impls[$p]!.getAlgorithm(); return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) + ?.as(const jni$_.$JObject$Type$()) .reference .toPointer() ?? jni$_.nullptr; } - if ($d == r'getFormat()Ljava/lang/String;') { - final $r = _$impls[$p]!.getFormat(); + if ($d == r'getEncoded()[B') { + final $r = _$impls[$p]!.getEncoded(); return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) + ?.as(const jni$_.$JObject$Type$()) .reference .toPointer() ?? jni$_.nullptr; } - if ($d == r'getEncoded()[B') { - final $r = _$impls[$p]!.getEncoded(); + if ($d == r'getFormat()Ljava/lang/String;') { + final $r = _$impls[$p]!.getFormat(); return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) + ?.as(const jni$_.$JObject$Type$()) .reference .toPointer() ?? jni$_.nullptr; @@ -26598,6 +22242,7 @@ class Key extends jni$_.JObject { } final $i = jni$_.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); + $i.args?.release(); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( @@ -26615,145 +22260,148 @@ class Key extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return Key.fromReference( - $i.implementReference(), - ); + return $i.implement(); } } -abstract base mixin class $Key { - factory $Key({ - required jni$_.JString? Function() getAlgorithm, - required jni$_.JString? Function() getFormat, - required jni$_.JByteArray? Function() getEncoded, - }) = _$Key; - - jni$_.JString? getAlgorithm(); - jni$_.JString? getFormat(); - jni$_.JByteArray? getEncoded(); -} - -final class _$Key with $Key { - _$Key({ - required jni$_.JString? Function() getAlgorithm, - required jni$_.JString? Function() getFormat, - required jni$_.JByteArray? Function() getEncoded, - }) : _getAlgorithm = getAlgorithm, - _getFormat = getFormat, - _getEncoded = getEncoded; +extension Key$$Methods on Key { + static final _id_getAlgorithm = Key._class.instanceMethodId( + r'getAlgorithm', + r'()Ljava/lang/String;', + ); - final jni$_.JString? Function() _getAlgorithm; - final jni$_.JString? Function() _getFormat; - final jni$_.JByteArray? Function() _getEncoded; + static final _getAlgorithm = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + /// from: `public abstract java.lang.String getAlgorithm()` + /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getAlgorithm() { - return _getAlgorithm(); - } - - jni$_.JString? getFormat() { - return _getFormat(); - } - - jni$_.JByteArray? getEncoded() { - return _getEncoded(); + final _$$selfRef = reference; + return _getAlgorithm(_$$selfRef.pointer, _id_getAlgorithm.pointer) + .object(); } -} -final class $Key$NullableType extends jni$_.JObjType { - @jni$_.internal - const $Key$NullableType(); + static final _id_getEncoded = Key._class.instanceMethodId( + r'getEncoded', + r'()[B', + ); - @jni$_.internal - @core$_.override - String get signature => r'Ljava/security/Key;'; - - @jni$_.internal - @core$_.override - Key? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Key.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + static final _getEncoded = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; + /// from: `public abstract byte[] getEncoded()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JByteArray? getEncoded() { + final _$$selfRef = reference; + return _getEncoded(_$$selfRef.pointer, _id_getEncoded.pointer) + .object(); + } - @jni$_.internal - @core$_.override - final superCount = 1; + static final _id_getFormat = Key._class.instanceMethodId( + r'getFormat', + r'()Ljava/lang/String;', + ); - @core$_.override - int get hashCode => ($Key$NullableType).hashCode; + static final _getFormat = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Key$NullableType) && - other is $Key$NullableType; + /// from: `public abstract java.lang.String getFormat()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JString? getFormat() { + final _$$selfRef = reference; + return _getFormat(_$$selfRef.pointer, _id_getFormat.pointer) + .object(); } } -final class $Key$Type extends jni$_.JObjType { - @jni$_.internal - const $Key$Type(); +abstract base mixin class $Key { + factory $Key({ + required jni$_.JString? Function() getAlgorithm, + required jni$_.JByteArray? Function() getEncoded, + required jni$_.JString? Function() getFormat, + }) = _$Key; - @jni$_.internal - @core$_.override - String get signature => r'Ljava/security/Key;'; + jni$_.JString? getAlgorithm(); + jni$_.JByteArray? getEncoded(); + jni$_.JString? getFormat(); +} - @jni$_.internal - @core$_.override - Key fromReference(jni$_.JReference reference) => Key.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); +final class _$Key with $Key { + _$Key({ + required jni$_.JString? Function() getAlgorithm, + required jni$_.JByteArray? Function() getEncoded, + required jni$_.JString? Function() getFormat, + }) : _getAlgorithm = getAlgorithm, + _getEncoded = getEncoded, + _getFormat = getFormat; - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => const $Key$NullableType(); + final jni$_.JString? Function() _getAlgorithm; + final jni$_.JByteArray? Function() _getEncoded; + final jni$_.JString? Function() _getFormat; - @jni$_.internal - @core$_.override - final superCount = 1; + jni$_.JString? getAlgorithm() { + return _getAlgorithm(); + } - @core$_.override - int get hashCode => ($Key$Type).hashCode; + jni$_.JByteArray? getEncoded() { + return _getEncoded(); + } - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Key$Type) && other is $Key$Type; + jni$_.JString? getFormat() { + return _getFormat(); } } -/// from: `javax.net.ssl.KeyManagerFactory` -class KeyManagerFactory extends jni$_.JObject { +final class $Key$Type$ extends jni$_.JType { @jni$_.internal - @core$_.override - final jni$_.JObjType $type; + const $Key$Type$(); @jni$_.internal - KeyManagerFactory.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + @core$_.override + String get signature => r'Ljava/security/Key;'; +} +/// from: `javax.net.ssl.KeyManagerFactory` +extension type KeyManagerFactory._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'javax/net/ssl/KeyManagerFactory'); /// The type which includes information such as the signature of this class. - static const nullableType = $KeyManagerFactory$NullableType(); - static const type = $KeyManagerFactory$Type(); - static final _id_getDefaultAlgorithm = _class.staticMethodId( + static const jni$_.JType type = $KeyManagerFactory$Type$(); + static final _id_get$defaultAlgorithm = _class.staticMethodId( r'getDefaultAlgorithm', r'()Ljava/lang/String;', ); - static final _getDefaultAlgorithm = jni$_.ProtectedJniExtensions.lookup< + static final _get$defaultAlgorithm = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -26767,35 +22415,11 @@ class KeyManagerFactory extends jni$_.JObject { /// from: `static public final java.lang.String getDefaultAlgorithm()` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? getDefaultAlgorithm() { - return _getDefaultAlgorithm(_class.reference.pointer, - _id_getDefaultAlgorithm as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); - } - - static final _id_getAlgorithm = _class.instanceMethodId( - r'getAlgorithm', - r'()Ljava/lang/String;', - ); - - static final _getAlgorithm = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public final java.lang.String getAlgorithm()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getAlgorithm() { - return _getAlgorithm( - reference.pointer, _id_getAlgorithm as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + static jni$_.JString? get defaultAlgorithm { + final _$$classRef = _class.reference; + return _get$defaultAlgorithm( + _$$classRef.pointer, _id_get$defaultAlgorithm.pointer) + .object(); } static final _id_getInstance = _class.staticMethodId( @@ -26819,10 +22443,11 @@ class KeyManagerFactory extends jni$_.JObject { static KeyManagerFactory? getInstance( jni$_.JString? string, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; - return _getInstance(_class.reference.pointer, - _id_getInstance as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $KeyManagerFactory$NullableType()); + return _getInstance( + _$$classRef.pointer, _id_getInstance.pointer, _$string.pointer) + .object(); } static final _id_getInstance$1 = _class.staticMethodId( @@ -26853,14 +22478,12 @@ class KeyManagerFactory extends jni$_.JObject { jni$_.JString? string, jni$_.JString? string1, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - return _getInstance$1( - _class.reference.pointer, - _id_getInstance$1 as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer) - .object(const $KeyManagerFactory$NullableType()); + return _getInstance$1(_$$classRef.pointer, _id_getInstance$1.pointer, + _$string.pointer, _$string1.pointer) + .object(); } static final _id_getInstance$2 = _class.staticMethodId( @@ -26889,24 +22512,74 @@ class KeyManagerFactory extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static KeyManagerFactory? getInstance$2( jni$_.JString? string, - jni$_.JObject? provider, + Provider? provider, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$provider = provider?.reference ?? jni$_.jNullReference; - return _getInstance$2( - _class.reference.pointer, - _id_getInstance$2 as jni$_.JMethodIDPtr, - _$string.pointer, - _$provider.pointer) - .object(const $KeyManagerFactory$NullableType()); + return _getInstance$2(_$$classRef.pointer, _id_getInstance$2.pointer, + _$string.pointer, _$provider.pointer) + .object(); + } +} + +extension KeyManagerFactory$$Methods on KeyManagerFactory { + static final _id_get$algorithm = KeyManagerFactory._class.instanceMethodId( + r'getAlgorithm', + r'()Ljava/lang/String;', + ); + + static final _get$algorithm = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public final java.lang.String getAlgorithm()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JString? get algorithm { + final _$$selfRef = reference; + return _get$algorithm(_$$selfRef.pointer, _id_get$algorithm.pointer) + .object(); + } + + static final _id_get$keyManagers = KeyManagerFactory._class.instanceMethodId( + r'getKeyManagers', + r'()[Ljavax/net/ssl/KeyManager;', + ); + + static final _get$keyManagers = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public final javax.net.ssl.KeyManager[] getKeyManagers()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JArray? get keyManagers { + final _$$selfRef = reference; + return _get$keyManagers(_$$selfRef.pointer, _id_get$keyManagers.pointer) + .object?>(); } - static final _id_getProvider = _class.instanceMethodId( + static final _id_get$provider = KeyManagerFactory._class.instanceMethodId( r'getProvider', r'()Ljava/security/Provider;', ); - static final _getProvider = jni$_.ProtectedJniExtensions.lookup< + static final _get$provider = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -26920,13 +22593,13 @@ class KeyManagerFactory extends jni$_.JObject { /// from: `public final java.security.Provider getProvider()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getProvider() { - return _getProvider( - reference.pointer, _id_getProvider as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + Provider? get provider { + final _$$selfRef = reference; + return _get$provider(_$$selfRef.pointer, _id_get$provider.pointer) + .object(); } - static final _id_init = _class.instanceMethodId( + static final _id_init = KeyManagerFactory._class.instanceMethodId( r'init', r'(Ljava/security/KeyStore;[C)V', ); @@ -26953,14 +22626,15 @@ class KeyManagerFactory extends jni$_.JObject { KeyStore? keyStore, jni$_.JCharArray? cs, ) { + final _$$selfRef = reference; final _$keyStore = keyStore?.reference ?? jni$_.jNullReference; final _$cs = cs?.reference ?? jni$_.jNullReference; - _init(reference.pointer, _id_init as jni$_.JMethodIDPtr, _$keyStore.pointer, + _init(_$$selfRef.pointer, _id_init.pointer, _$keyStore.pointer, _$cs.pointer) .check(); } - static final _id_init$1 = _class.instanceMethodId( + static final _id_init$1 = KeyManagerFactory._class.instanceMethodId( r'init', r'(Ljavax/net/ssl/ManagerFactoryParameters;)V', ); @@ -26978,161 +22652,33 @@ class KeyManagerFactory extends jni$_.JObject { /// from: `public final void init(javax.net.ssl.ManagerFactoryParameters managerFactoryParameters)` void init$1( - jni$_.JObject? managerFactoryParameters, + ManagerFactoryParameters? managerFactoryParameters, ) { + final _$$selfRef = reference; final _$managerFactoryParameters = managerFactoryParameters?.reference ?? jni$_.jNullReference; - _init$1(reference.pointer, _id_init$1 as jni$_.JMethodIDPtr, + _init$1(_$$selfRef.pointer, _id_init$1.pointer, _$managerFactoryParameters.pointer) .check(); } - - static final _id_getKeyManagers = _class.instanceMethodId( - r'getKeyManagers', - r'()[Ljavax/net/ssl/KeyManager;', - ); - - static final _getKeyManagers = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public final javax.net.ssl.KeyManager[] getKeyManagers()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JArray? getKeyManagers() { - return _getKeyManagers( - reference.pointer, _id_getKeyManagers as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - $KeyManager$NullableType())); - } -} - -final class $KeyManagerFactory$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $KeyManagerFactory$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljavax/net/ssl/KeyManagerFactory;'; - - @jni$_.internal - @core$_.override - KeyManagerFactory? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : KeyManagerFactory.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyManagerFactory$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyManagerFactory$NullableType) && - other is $KeyManagerFactory$NullableType; - } } -final class $KeyManagerFactory$Type extends jni$_.JObjType { +final class $KeyManagerFactory$Type$ extends jni$_.JType { @jni$_.internal - const $KeyManagerFactory$Type(); + const $KeyManagerFactory$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljavax/net/ssl/KeyManagerFactory;'; - - @jni$_.internal - @core$_.override - KeyManagerFactory fromReference(jni$_.JReference reference) => - KeyManagerFactory.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $KeyManagerFactory$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyManagerFactory$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyManagerFactory$Type) && - other is $KeyManagerFactory$Type; - } } /// from: `java.security.KeyPairGenerator` -class KeyPairGenerator extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - KeyPairGenerator.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type KeyPairGenerator._(jni$_.JObject _$this) + implements KeyPairGeneratorSpi { static final _class = jni$_.JClass.forName(r'java/security/KeyPairGenerator'); /// The type which includes information such as the signature of this class. - static const nullableType = $KeyPairGenerator$NullableType(); - static const type = $KeyPairGenerator$Type(); - static final _id_getAlgorithm = _class.instanceMethodId( - r'getAlgorithm', - r'()Ljava/lang/String;', - ); - - static final _getAlgorithm = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public java.lang.String getAlgorithm()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getAlgorithm() { - return _getAlgorithm( - reference.pointer, _id_getAlgorithm as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); - } - + static const jni$_.JType type = $KeyPairGenerator$Type$(); static final _id_getInstance = _class.staticMethodId( r'getInstance', r'(Ljava/lang/String;)Ljava/security/KeyPairGenerator;', @@ -27154,10 +22700,11 @@ class KeyPairGenerator extends jni$_.JObject { static KeyPairGenerator? getInstance( jni$_.JString? string, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; - return _getInstance(_class.reference.pointer, - _id_getInstance as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $KeyPairGenerator$NullableType()); + return _getInstance( + _$$classRef.pointer, _id_getInstance.pointer, _$string.pointer) + .object(); } static final _id_getInstance$1 = _class.staticMethodId( @@ -27188,14 +22735,12 @@ class KeyPairGenerator extends jni$_.JObject { jni$_.JString? string, jni$_.JString? string1, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - return _getInstance$1( - _class.reference.pointer, - _id_getInstance$1 as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer) - .object(const $KeyPairGenerator$NullableType()); + return _getInstance$1(_$$classRef.pointer, _id_getInstance$1.pointer, + _$string.pointer, _$string1.pointer) + .object(); } static final _id_getInstance$2 = _class.staticMethodId( @@ -27224,24 +22769,24 @@ class KeyPairGenerator extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static KeyPairGenerator? getInstance$2( jni$_.JString? string, - jni$_.JObject? provider, + Provider? provider, ) { + final _$$classRef = _class.reference; final _$string = string?.reference ?? jni$_.jNullReference; final _$provider = provider?.reference ?? jni$_.jNullReference; - return _getInstance$2( - _class.reference.pointer, - _id_getInstance$2 as jni$_.JMethodIDPtr, - _$string.pointer, - _$provider.pointer) - .object(const $KeyPairGenerator$NullableType()); + return _getInstance$2(_$$classRef.pointer, _id_getInstance$2.pointer, + _$string.pointer, _$provider.pointer) + .object(); } +} - static final _id_getProvider = _class.instanceMethodId( - r'getProvider', - r'()Ljava/security/Provider;', +extension KeyPairGenerator$$Methods on KeyPairGenerator { + static final _id_genKeyPair = KeyPairGenerator._class.instanceMethodId( + r'genKeyPair', + r'()Ljava/security/KeyPair;', ); - static final _getProvider = jni$_.ProtectedJniExtensions.lookup< + static final _genKeyPair = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -27253,15 +22798,90 @@ class KeyPairGenerator extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public final java.security.Provider getProvider()` + /// from: `public final java.security.KeyPair genKeyPair()` + /// The returned object must be released after use, by calling the [release] method. + KeyPair? genKeyPair() { + final _$$selfRef = reference; + return _genKeyPair(_$$selfRef.pointer, _id_genKeyPair.pointer) + .object(); + } + + static final _id_generateKeyPair = KeyPairGenerator._class.instanceMethodId( + r'generateKeyPair', + r'()Ljava/security/KeyPair;', + ); + + static final _generateKeyPair = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public java.security.KeyPair generateKeyPair()` + /// The returned object must be released after use, by calling the [release] method. + KeyPair? generateKeyPair() { + final _$$selfRef = reference; + return _generateKeyPair(_$$selfRef.pointer, _id_generateKeyPair.pointer) + .object(); + } + + static final _id_get$algorithm = KeyPairGenerator._class.instanceMethodId( + r'getAlgorithm', + r'()Ljava/lang/String;', + ); + + static final _get$algorithm = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public java.lang.String getAlgorithm()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JString? get algorithm { + final _$$selfRef = reference; + return _get$algorithm(_$$selfRef.pointer, _id_get$algorithm.pointer) + .object(); + } + + static final _id_get$provider = KeyPairGenerator._class.instanceMethodId( + r'getProvider', + r'()Ljava/security/Provider;', + ); + + static final _get$provider = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public final java.security.Provider getProvider()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getProvider() { - return _getProvider( - reference.pointer, _id_getProvider as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + Provider? get provider { + final _$$selfRef = reference; + return _get$provider(_$$selfRef.pointer, _id_get$provider.pointer) + .object(); } - static final _id_initialize = _class.instanceMethodId( + static final _id_initialize = KeyPairGenerator._class.instanceMethodId( r'initialize', r'(I)V', ); @@ -27274,17 +22894,17 @@ class KeyPairGenerator extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public void initialize(int i)` void initialize( - int i, + core$_.int i, ) { - _initialize(reference.pointer, _id_initialize as jni$_.JMethodIDPtr, i) - .check(); + final _$$selfRef = reference; + _initialize(_$$selfRef.pointer, _id_initialize.pointer, i).check(); } - static final _id_initialize$1 = _class.instanceMethodId( + static final _id_initialize$1 = KeyPairGenerator._class.instanceMethodId( r'initialize', r'(ILjava/security/SecureRandom;)V', ); @@ -27299,20 +22919,21 @@ class KeyPairGenerator extends jni$_.JObject { 'globalEnv_CallVoidMethod') .asFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + jni$_.JMethodIDPtr, core$_.int, jni$_.Pointer)>(); /// from: `public void initialize(int i, java.security.SecureRandom secureRandom)` void initialize$1( - int i, + core$_.int i, SecureRandom? secureRandom, ) { + final _$$selfRef = reference; final _$secureRandom = secureRandom?.reference ?? jni$_.jNullReference; - _initialize$1(reference.pointer, _id_initialize$1 as jni$_.JMethodIDPtr, i, + _initialize$1(_$$selfRef.pointer, _id_initialize$1.pointer, i, _$secureRandom.pointer) .check(); } - static final _id_initialize$2 = _class.instanceMethodId( + static final _id_initialize$2 = KeyPairGenerator._class.instanceMethodId( r'initialize', r'(Ljava/security/spec/AlgorithmParameterSpec;)V', ); @@ -27330,16 +22951,17 @@ class KeyPairGenerator extends jni$_.JObject { /// from: `public void initialize(java.security.spec.AlgorithmParameterSpec algorithmParameterSpec)` void initialize$2( - jni$_.JObject? algorithmParameterSpec, + AlgorithmParameterSpec? algorithmParameterSpec, ) { + final _$$selfRef = reference; final _$algorithmParameterSpec = algorithmParameterSpec?.reference ?? jni$_.jNullReference; - _initialize$2(reference.pointer, _id_initialize$2 as jni$_.JMethodIDPtr, + _initialize$2(_$$selfRef.pointer, _id_initialize$2.pointer, _$algorithmParameterSpec.pointer) .check(); } - static final _id_initialize$3 = _class.instanceMethodId( + static final _id_initialize$3 = KeyPairGenerator._class.instanceMethodId( r'initialize', r'(Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V', ); @@ -27363,160 +22985,35 @@ class KeyPairGenerator extends jni$_.JObject { /// from: `public void initialize(java.security.spec.AlgorithmParameterSpec algorithmParameterSpec, java.security.SecureRandom secureRandom)` void initialize$3( - jni$_.JObject? algorithmParameterSpec, + AlgorithmParameterSpec? algorithmParameterSpec, SecureRandom? secureRandom, ) { + final _$$selfRef = reference; final _$algorithmParameterSpec = algorithmParameterSpec?.reference ?? jni$_.jNullReference; final _$secureRandom = secureRandom?.reference ?? jni$_.jNullReference; - _initialize$3(reference.pointer, _id_initialize$3 as jni$_.JMethodIDPtr, + _initialize$3(_$$selfRef.pointer, _id_initialize$3.pointer, _$algorithmParameterSpec.pointer, _$secureRandom.pointer) .check(); } - - static final _id_genKeyPair = _class.instanceMethodId( - r'genKeyPair', - r'()Ljava/security/KeyPair;', - ); - - static final _genKeyPair = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public final java.security.KeyPair genKeyPair()` - /// The returned object must be released after use, by calling the [release] method. - KeyPair? genKeyPair() { - return _genKeyPair(reference.pointer, _id_genKeyPair as jni$_.JMethodIDPtr) - .object(const $KeyPair$NullableType()); - } - - static final _id_generateKeyPair = _class.instanceMethodId( - r'generateKeyPair', - r'()Ljava/security/KeyPair;', - ); - - static final _generateKeyPair = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public java.security.KeyPair generateKeyPair()` - /// The returned object must be released after use, by calling the [release] method. - KeyPair? generateKeyPair() { - return _generateKeyPair( - reference.pointer, _id_generateKeyPair as jni$_.JMethodIDPtr) - .object(const $KeyPair$NullableType()); - } -} - -final class $KeyPairGenerator$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $KeyPairGenerator$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljava/security/KeyPairGenerator;'; - - @jni$_.internal - @core$_.override - KeyPairGenerator? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : KeyPairGenerator.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyPairGenerator$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyPairGenerator$NullableType) && - other is $KeyPairGenerator$NullableType; - } } -final class $KeyPairGenerator$Type extends jni$_.JObjType { +final class $KeyPairGenerator$Type$ extends jni$_.JType { @jni$_.internal - const $KeyPairGenerator$Type(); + const $KeyPairGenerator$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljava/security/KeyPairGenerator;'; - - @jni$_.internal - @core$_.override - KeyPairGenerator fromReference(jni$_.JReference reference) => - KeyPairGenerator.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $KeyPairGenerator$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyPairGenerator$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyPairGenerator$Type) && - other is $KeyPairGenerator$Type; - } } /// from: `java.security.KeyPair` -class KeyPair extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - KeyPair.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type KeyPair._(jni$_.JObject _$this) + implements jni$_.JObject, Serializable { static final _class = jni$_.JClass.forName(r'java/security/KeyPair'); /// The type which includes information such as the signature of this class. - static const nullableType = $KeyPair$NullableType(); - static const type = $KeyPair$Type(); + static const jni$_.JType type = $KeyPair$Type$(); static final _id_new$ = _class.constructorId( r'(Ljava/security/PublicKey;Ljava/security/PrivateKey;)V', ); @@ -27544,22 +23041,22 @@ class KeyPair extends jni$_.JObject { PublicKey? publicKey, PrivateKey? privateKey, ) { + final _$$classRef = _class.reference; final _$publicKey = publicKey?.reference ?? jni$_.jNullReference; final _$privateKey = privateKey?.reference ?? jni$_.jNullReference; - return KeyPair.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$publicKey.pointer, + return _new$(_$$classRef.pointer, _id_new$.pointer, _$publicKey.pointer, _$privateKey.pointer) - .reference); + .object(); } +} - static final _id_getPublic = _class.instanceMethodId( - r'getPublic', - r'()Ljava/security/PublicKey;', +extension KeyPair$$Methods on KeyPair { + static final _id_get$private = KeyPair._class.instanceMethodId( + r'getPrivate', + r'()Ljava/security/PrivateKey;', ); - static final _getPublic = jni$_.ProtectedJniExtensions.lookup< + static final _get$private = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -27571,19 +23068,20 @@ class KeyPair extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public java.security.PublicKey getPublic()` + /// from: `public java.security.PrivateKey getPrivate()` /// The returned object must be released after use, by calling the [release] method. - PublicKey? getPublic() { - return _getPublic(reference.pointer, _id_getPublic as jni$_.JMethodIDPtr) - .object(const $PublicKey$NullableType()); + PrivateKey? get private { + final _$$selfRef = reference; + return _get$private(_$$selfRef.pointer, _id_get$private.pointer) + .object(); } - static final _id_getPrivate = _class.instanceMethodId( - r'getPrivate', - r'()Ljava/security/PrivateKey;', + static final _id_get$public = KeyPair._class.instanceMethodId( + r'getPublic', + r'()Ljava/security/PublicKey;', ); - static final _getPrivate = jni$_.ProtectedJniExtensions.lookup< + static final _get$public = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -27595,110 +23093,38 @@ class KeyPair extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public java.security.PrivateKey getPrivate()` + /// from: `public java.security.PublicKey getPublic()` /// The returned object must be released after use, by calling the [release] method. - PrivateKey? getPrivate() { - return _getPrivate(reference.pointer, _id_getPrivate as jni$_.JMethodIDPtr) - .object(const $PrivateKey$NullableType()); - } -} - -final class $KeyPair$NullableType extends jni$_.JObjType { - @jni$_.internal - const $KeyPair$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljava/security/KeyPair;'; - - @jni$_.internal - @core$_.override - KeyPair? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : KeyPair.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyPair$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyPair$NullableType) && - other is $KeyPair$NullableType; + PublicKey? get public { + final _$$selfRef = reference; + return _get$public(_$$selfRef.pointer, _id_get$public.pointer) + .object(); } } -final class $KeyPair$Type extends jni$_.JObjType { +final class $KeyPair$Type$ extends jni$_.JType { @jni$_.internal - const $KeyPair$Type(); + const $KeyPair$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljava/security/KeyPair;'; - - @jni$_.internal - @core$_.override - KeyPair fromReference(jni$_.JReference reference) => KeyPair.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => const $KeyPair$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($KeyPair$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($KeyPair$Type) && other is $KeyPair$Type; - } } /// from: `java.security.PublicKey` -class PublicKey extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - PublicKey.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type PublicKey._(jni$_.JObject _$this) implements jni$_.JObject, Key { static final _class = jni$_.JClass.forName(r'java/security/PublicKey'); /// The type which includes information such as the signature of this class. - static const nullableType = $PublicKey$NullableType(); - static const type = $PublicKey$Type(); + static const jni$_.JType type = $PublicKey$Type$(); /// from: `static public final long serialVersionUID` static const serialVersionUID = 7187392471159151072; /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; + static final core$_.Map _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -27719,12 +23145,36 @@ class PublicKey extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; + if ($d == r'getAlgorithm()Ljava/lang/String;') { + final $r = _$impls[$p]!.getAlgorithm(); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } + if ($d == r'getEncoded()[B') { + final $r = _$impls[$p]!.getEncoded(); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } + if ($d == r'getFormat()Ljava/lang/String;') { + final $r = _$impls[$p]!.getFormat(); + return ($r as jni$_.JObject?) + ?.as(const jni$_.$JObject$Type$()) + .reference + .toPointer() ?? + jni$_.nullptr; + } } catch (e) { return jni$_.ProtectedJniExtensions.newDartException(e); } @@ -27744,6 +23194,7 @@ class PublicKey extends jni$_.JObject { } final $i = jni$_.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); + $i.args?.release(); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( @@ -27761,110 +23212,142 @@ class PublicKey extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return PublicKey.fromReference( - $i.implementReference(), - ); + return $i.implement(); } } -abstract base mixin class $PublicKey { - factory $PublicKey() = _$PublicKey; -} - -final class _$PublicKey with $PublicKey { - _$PublicKey(); -} +extension PublicKey$$Methods on PublicKey { + static final _id_getAlgorithm = PublicKey._class.instanceMethodId( + r'getAlgorithm', + r'()Ljava/lang/String;', + ); -final class $PublicKey$NullableType extends jni$_.JObjType { - @jni$_.internal - const $PublicKey$NullableType(); + static final _getAlgorithm = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - @jni$_.internal - @core$_.override - String get signature => r'Ljava/security/PublicKey;'; + /// from: `public abstract java.lang.String getAlgorithm()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JString? getAlgorithm() { + final _$$selfRef = reference; + return _getAlgorithm(_$$selfRef.pointer, _id_getAlgorithm.pointer) + .object(); + } - @jni$_.internal - @core$_.override - PublicKey? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : PublicKey.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + static final _id_getEncoded = PublicKey._class.instanceMethodId( + r'getEncoded', + r'()[B', + ); - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; + static final _getEncoded = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - @jni$_.internal - @core$_.override - final superCount = 1; + /// from: `public abstract byte[] getEncoded()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JByteArray? getEncoded() { + final _$$selfRef = reference; + return _getEncoded(_$$selfRef.pointer, _id_getEncoded.pointer) + .object(); + } - @core$_.override - int get hashCode => ($PublicKey$NullableType).hashCode; + static final _id_getFormat = PublicKey._class.instanceMethodId( + r'getFormat', + r'()Ljava/lang/String;', + ); - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($PublicKey$NullableType) && - other is $PublicKey$NullableType; + static final _getFormat = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public abstract java.lang.String getFormat()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JString? getFormat() { + final _$$selfRef = reference; + return _getFormat(_$$selfRef.pointer, _id_getFormat.pointer) + .object(); } } -final class $PublicKey$Type extends jni$_.JObjType { - @jni$_.internal - const $PublicKey$Type(); +abstract base mixin class $PublicKey { + factory $PublicKey({ + required jni$_.JString? Function() getAlgorithm, + required jni$_.JByteArray? Function() getEncoded, + required jni$_.JString? Function() getFormat, + }) = _$PublicKey; - @jni$_.internal - @core$_.override - String get signature => r'Ljava/security/PublicKey;'; + jni$_.JString? getAlgorithm(); + jni$_.JByteArray? getEncoded(); + jni$_.JString? getFormat(); +} - @jni$_.internal - @core$_.override - PublicKey fromReference(jni$_.JReference reference) => - PublicKey.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); +final class _$PublicKey with $PublicKey { + _$PublicKey({ + required jni$_.JString? Function() getAlgorithm, + required jni$_.JByteArray? Function() getEncoded, + required jni$_.JString? Function() getFormat, + }) : _getAlgorithm = getAlgorithm, + _getEncoded = getEncoded, + _getFormat = getFormat; - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $PublicKey$NullableType(); + final jni$_.JString? Function() _getAlgorithm; + final jni$_.JByteArray? Function() _getEncoded; + final jni$_.JString? Function() _getFormat; - @jni$_.internal - @core$_.override - final superCount = 1; + jni$_.JString? getAlgorithm() { + return _getAlgorithm(); + } - @core$_.override - int get hashCode => ($PublicKey$Type).hashCode; + jni$_.JByteArray? getEncoded() { + return _getEncoded(); + } - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($PublicKey$Type) && other is $PublicKey$Type; + jni$_.JString? getFormat() { + return _getFormat(); } } -/// from: `java.io.ByteArrayInputStream` -class ByteArrayInputStream extends jni$_.JObject { +final class $PublicKey$Type$ extends jni$_.JType { @jni$_.internal - @core$_.override - final jni$_.JObjType $type; + const $PublicKey$Type$(); @jni$_.internal - ByteArrayInputStream.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + @core$_.override + String get signature => r'Ljava/security/PublicKey;'; +} +/// from: `java.io.ByteArrayInputStream` +extension type ByteArrayInputStream._(jni$_.JObject _$this) + implements InputStream { static final _class = jni$_.JClass.forName(r'java/io/ByteArrayInputStream'); /// The type which includes information such as the signature of this class. - static const nullableType = $ByteArrayInputStream$NullableType(); - static const type = $ByteArrayInputStream$Type(); + static const jni$_.JType type = + $ByteArrayInputStream$Type$(); static final _id_new$ = _class.constructorId( r'([B)V', ); @@ -27885,10 +23368,10 @@ class ByteArrayInputStream extends jni$_.JObject { factory ByteArrayInputStream( jni$_.JByteArray? bs, ) { + final _$$classRef = _class.reference; final _$bs = bs?.reference ?? jni$_.jNullReference; - return ByteArrayInputStream.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$bs.pointer) - .reference); + return _new$(_$$classRef.pointer, _id_new$.pointer, _$bs.pointer) + .object(); } static final _id_new$1 = _class.constructorId( @@ -27907,23 +23390,122 @@ class ByteArrayInputStream extends jni$_.JObject { jni$_.Int32 )>)>>('globalEnv_NewObject') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int)>(); /// from: `public void (byte[] bs, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. factory ByteArrayInputStream.new$1( jni$_.JByteArray? bs, - int i, - int i1, + core$_.int i, + core$_.int i1, ) { + final _$$classRef = _class.reference; final _$bs = bs?.reference ?? jni$_.jNullReference; - return ByteArrayInputStream.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, _$bs.pointer, i, i1) - .reference); + return _new$1(_$$classRef.pointer, _id_new$1.pointer, _$bs.pointer, i, i1) + .object(); + } +} + +extension ByteArrayInputStream$$Methods on ByteArrayInputStream { + static final _id_available = ByteArrayInputStream._class.instanceMethodId( + r'available', + r'()I', + ); + + static final _available = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public int available()` + core$_.int available() { + final _$$selfRef = reference; + return _available(_$$selfRef.pointer, _id_available.pointer).integer; + } + + static final _id_close = ByteArrayInputStream._class.instanceMethodId( + r'close', + r'()V', + ); + + static final _close = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public void close()` + void close() { + final _$$selfRef = reference; + _close(_$$selfRef.pointer, _id_close.pointer).check(); + } + + static final _id_mark = ByteArrayInputStream._class.instanceMethodId( + r'mark', + r'(I)V', + ); + + static final _mark = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); + + /// from: `public void mark(int i)` + void mark( + core$_.int i, + ) { + final _$$selfRef = reference; + _mark(_$$selfRef.pointer, _id_mark.pointer, i).check(); + } + + static final _id_markSupported = ByteArrayInputStream._class.instanceMethodId( + r'markSupported', + r'()Z', + ); + + static final _markSupported = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public boolean markSupported()` + core$_.bool markSupported() { + final _$$selfRef = reference; + return _markSupported(_$$selfRef.pointer, _id_markSupported.pointer) + .boolean; } - static final _id_read = _class.instanceMethodId( + static final _id_read = ByteArrayInputStream._class.instanceMethodId( r'read', r'()I', ); @@ -27941,11 +23523,12 @@ class ByteArrayInputStream extends jni$_.JObject { )>(); /// from: `public int read()` - int read() { - return _read(reference.pointer, _id_read as jni$_.JMethodIDPtr).integer; + core$_.int read() { + final _$$selfRef = reference; + return _read(_$$selfRef.pointer, _id_read.pointer).integer; } - static final _id_read$1 = _class.instanceMethodId( + static final _id_read$1 = ByteArrayInputStream._class.instanceMethodId( r'read', r'([BII)I', ); @@ -27962,22 +23545,26 @@ class ByteArrayInputStream extends jni$_.JObject { jni$_.Int32 )>)>>('globalEnv_CallIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int)>(); /// from: `public int read(byte[] bs, int i, int i1)` - int read$1( + core$_.int read$1( jni$_.JByteArray? bs, - int i, - int i1, + core$_.int i, + core$_.int i1, ) { + final _$$selfRef = reference; final _$bs = bs?.reference ?? jni$_.jNullReference; - return _read$1(reference.pointer, _id_read$1 as jni$_.JMethodIDPtr, - _$bs.pointer, i, i1) + return _read$1(_$$selfRef.pointer, _id_read$1.pointer, _$bs.pointer, i, i1) .integer; } - static final _id_readAllBytes = _class.instanceMethodId( + static final _id_readAllBytes = ByteArrayInputStream._class.instanceMethodId( r'readAllBytes', r'()[B', ); @@ -27997,12 +23584,12 @@ class ByteArrayInputStream extends jni$_.JObject { /// from: `public byte[] readAllBytes()` /// The returned object must be released after use, by calling the [release] method. jni$_.JByteArray? readAllBytes() { - return _readAllBytes( - reference.pointer, _id_readAllBytes as jni$_.JMethodIDPtr) - .object(const jni$_.JByteArrayNullableType()); + final _$$selfRef = reference; + return _readAllBytes(_$$selfRef.pointer, _id_readAllBytes.pointer) + .object(); } - static final _id_readNBytes = _class.instanceMethodId( + static final _id_readNBytes = ByteArrayInputStream._class.instanceMethodId( r'readNBytes', r'([BII)I', ); @@ -28019,48 +23606,50 @@ class ByteArrayInputStream extends jni$_.JObject { jni$_.Int32 )>)>>('globalEnv_CallIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int)>(); /// from: `public int readNBytes(byte[] bs, int i, int i1)` - int readNBytes( + core$_.int readNBytes( jni$_.JByteArray? bs, - int i, - int i1, + core$_.int i, + core$_.int i1, ) { + final _$$selfRef = reference; final _$bs = bs?.reference ?? jni$_.jNullReference; - return _readNBytes(reference.pointer, _id_readNBytes as jni$_.JMethodIDPtr, - _$bs.pointer, i, i1) + return _readNBytes( + _$$selfRef.pointer, _id_readNBytes.pointer, _$bs.pointer, i, i1) .integer; } - static final _id_transferTo = _class.instanceMethodId( - r'transferTo', - r'(Ljava/io/OutputStream;)J', + static final _id_reset = ByteArrayInputStream._class.instanceMethodId( + r'reset', + r'()V', ); - static final _transferTo = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallLongMethod') + static final _reset = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - /// from: `public long transferTo(java.io.OutputStream outputStream)` - int transferTo( - jni$_.JObject? outputStream, - ) { - final _$outputStream = outputStream?.reference ?? jni$_.jNullReference; - return _transferTo(reference.pointer, _id_transferTo as jni$_.JMethodIDPtr, - _$outputStream.pointer) - .long; + /// from: `public void reset()` + void reset() { + final _$$selfRef = reference; + _reset(_$$selfRef.pointer, _id_reset.pointer).check(); } - static final _id_skip = _class.instanceMethodId( + static final _id_skip = ByteArrayInputStream._class.instanceMethodId( r'skip', r'(J)J', ); @@ -28073,319 +23662,66 @@ class ByteArrayInputStream extends jni$_.JObject { jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallLongMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, jni$_.JMethodIDPtr, core$_.int)>(); /// from: `public long skip(long j)` - int skip( - int j, + core$_.int skip( + core$_.int j, ) { - return _skip(reference.pointer, _id_skip as jni$_.JMethodIDPtr, j).long; + final _$$selfRef = reference; + return _skip(_$$selfRef.pointer, _id_skip.pointer, j).long; } - static final _id_available = _class.instanceMethodId( - r'available', - r'()I', + static final _id_transferTo = ByteArrayInputStream._class.instanceMethodId( + r'transferTo', + r'(Ljava/io/OutputStream;)J', ); - static final _available = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') + static final _transferTo = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallLongMethod') .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public int available()` - int available() { - return _available(reference.pointer, _id_available as jni$_.JMethodIDPtr) - .integer; + /// from: `public long transferTo(java.io.OutputStream outputStream)` + core$_.int transferTo( + OutputStream? outputStream, + ) { + final _$$selfRef = reference; + final _$outputStream = outputStream?.reference ?? jni$_.jNullReference; + return _transferTo( + _$$selfRef.pointer, _id_transferTo.pointer, _$outputStream.pointer) + .long; } +} - static final _id_markSupported = _class.instanceMethodId( - r'markSupported', - r'()Z', - ); - - static final _markSupported = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public boolean markSupported()` - bool markSupported() { - return _markSupported( - reference.pointer, _id_markSupported as jni$_.JMethodIDPtr) - .boolean; - } - - static final _id_mark = _class.instanceMethodId( - r'mark', - r'(I)V', - ); - - static final _mark = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); - - /// from: `public void mark(int i)` - void mark( - int i, - ) { - _mark(reference.pointer, _id_mark as jni$_.JMethodIDPtr, i).check(); - } - - static final _id_reset = _class.instanceMethodId( - r'reset', - r'()V', - ); - - static final _reset = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public void reset()` - void reset() { - _reset(reference.pointer, _id_reset as jni$_.JMethodIDPtr).check(); - } - - static final _id_close = _class.instanceMethodId( - r'close', - r'()V', - ); - - static final _close = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public void close()` - void close() { - _close(reference.pointer, _id_close as jni$_.JMethodIDPtr).check(); - } -} - -final class $ByteArrayInputStream$NullableType - extends jni$_.JObjType { - @jni$_.internal - const $ByteArrayInputStream$NullableType(); - - @jni$_.internal - @core$_.override - String get signature => r'Ljava/io/ByteArrayInputStream;'; - - @jni$_.internal - @core$_.override - ByteArrayInputStream? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : ByteArrayInputStream.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => this; - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ByteArrayInputStream$NullableType).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ByteArrayInputStream$NullableType) && - other is $ByteArrayInputStream$NullableType; - } -} - -final class $ByteArrayInputStream$Type - extends jni$_.JObjType { - @jni$_.internal - const $ByteArrayInputStream$Type(); +final class $ByteArrayInputStream$Type$ + extends jni$_.JType { + @jni$_.internal + const $ByteArrayInputStream$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljava/io/ByteArrayInputStream;'; - - @jni$_.internal - @core$_.override - ByteArrayInputStream fromReference(jni$_.JReference reference) => - ByteArrayInputStream.fromReference( - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType get nullableType => - const $ByteArrayInputStream$NullableType(); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => ($ByteArrayInputStream$Type).hashCode; - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($ByteArrayInputStream$Type) && - other is $ByteArrayInputStream$Type; - } } /// from: `java.util.Enumeration` -class Enumeration<$E extends jni$_.JObject?> extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType> $type; - - @jni$_.internal - final jni$_.JObjType<$E> E; - - @jni$_.internal - Enumeration.fromReference( - this.E, - jni$_.JReference reference, - ) : $type = type<$E>(E), - super.fromReference(reference); - +extension type Enumeration<$E extends jni$_.JObject?>._(jni$_.JObject _$this) + implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'java/util/Enumeration'); /// The type which includes information such as the signature of this class. - static $Enumeration$NullableType<$E> nullableType<$E extends jni$_.JObject?>( - jni$_.JObjType<$E> E, - ) { - return $Enumeration$NullableType<$E>( - E, - ); - } - - static $Enumeration$Type<$E> type<$E extends jni$_.JObject?>( - jni$_.JObjType<$E> E, - ) { - return $Enumeration$Type<$E>( - E, - ); - } - - static final _id_hasMoreElements = _class.instanceMethodId( - r'hasMoreElements', - r'()Z', - ); - - static final _hasMoreElements = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public abstract boolean hasMoreElements()` - bool hasMoreElements() { - return _hasMoreElements( - reference.pointer, _id_hasMoreElements as jni$_.JMethodIDPtr) - .boolean; - } - - static final _id_nextElement = _class.instanceMethodId( - r'nextElement', - r'()Ljava/lang/Object;', - ); - - static final _nextElement = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public abstract E nextElement()` - /// The returned object must be released after use, by calling the [release] method. - $E? nextElement() { - return _nextElement( - reference.pointer, _id_nextElement as jni$_.JMethodIDPtr) - .object<$E?>(E.nullableType); - } - - static final _id_asIterator = _class.instanceMethodId( - r'asIterator', - r'()Ljava/util/Iterator;', - ); - - static final _asIterator = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public java.util.Iterator asIterator()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JIterator<$E?>? asIterator() { - return _asIterator(reference.pointer, _id_asIterator as jni$_.JMethodIDPtr) - .object?>( - jni$_.JIteratorNullableType<$E?>(E.nullableType)); - } + static const jni$_.JType type = $Enumeration$Type$(); /// Maps a specific port to the implemented interface. - static final core$_.Map _$impls = {}; + static final core$_.Map _$impls = {}; static jni$_.JObjectPtr _$invoke( - int port, + core$_.int port, jni$_.JObjectPtr descriptor, jni$_.JObjectPtr args, ) { @@ -28406,28 +23742,28 @@ class Enumeration<$E extends jni$_.JObject?> extends jni$_.JObject { _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( - int $p, + core$_.int $p, jni$_.MethodInvocation $i, ) { try { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; - if ($d == r'hasMoreElements()Z') { - final $r = _$impls[$p]!.hasMoreElements(); - return jni$_.JBoolean($r).reference.toPointer(); - } - if ($d == r'nextElement()Ljava/lang/Object;') { - final $r = _$impls[$p]!.nextElement(); + if ($d == r'asIterator()Ljava/util/Iterator;') { + final $r = _$impls[$p]!.asIterator(); return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) + ?.as(const jni$_.$JObject$Type$()) .reference .toPointer() ?? jni$_.nullptr; } - if ($d == r'asIterator()Ljava/util/Iterator;') { - final $r = _$impls[$p]!.asIterator(); + if ($d == r'hasMoreElements()Z') { + final $r = _$impls[$p]!.hasMoreElements(); + return $r.toJBoolean().reference.toPointer(); + } + if ($d == r'nextElement()Ljava/lang/Object;') { + final $r = _$impls[$p]!.nextElement(); return ($r as jni$_.JObject?) - ?.as(const jni$_.JObjectType()) + ?.as(const jni$_.$JObject$Type$()) .reference .toPointer() ?? jni$_.nullptr; @@ -28451,6 +23787,7 @@ class Enumeration<$E extends jni$_.JObject?> extends jni$_.JObject { } final $i = jni$_.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); + $i.args?.release(); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( @@ -28468,1087 +23805,1184 @@ class Enumeration<$E extends jni$_.JObject?> extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return Enumeration<$E>.fromReference( - $impl.E, - $i.implementReference(), - ); + return $i.implement>(); } } -abstract base mixin class $Enumeration<$E extends jni$_.JObject?> { - factory $Enumeration({ - required jni$_.JObjType<$E> E, - required bool Function() hasMoreElements, - required $E? Function() nextElement, - required jni$_.JIterator? Function() asIterator, - }) = _$Enumeration<$E>; - - jni$_.JObjType<$E> get E; +extension Enumeration$$Methods<$E extends jni$_.JObject?> on Enumeration<$E> { + static final _id_asIterator = Enumeration._class.instanceMethodId( + r'asIterator', + r'()Ljava/util/Iterator;', + ); - bool hasMoreElements(); - $E? nextElement(); - jni$_.JIterator? asIterator(); -} + static final _asIterator = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); -final class _$Enumeration<$E extends jni$_.JObject?> with $Enumeration<$E> { - _$Enumeration({ - required this.E, - required bool Function() hasMoreElements, - required $E? Function() nextElement, - required jni$_.JIterator? Function() asIterator, - }) : _hasMoreElements = hasMoreElements, - _nextElement = nextElement, - _asIterator = asIterator; + /// from: `public java.util.Iterator asIterator()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JIterator<$E?>? asIterator() { + final _$$selfRef = reference; + return _asIterator(_$$selfRef.pointer, _id_asIterator.pointer) + .object?>(); + } - @core$_.override - final jni$_.JObjType<$E> E; + static final _id_hasMoreElements = Enumeration._class.instanceMethodId( + r'hasMoreElements', + r'()Z', + ); - final bool Function() _hasMoreElements; - final $E? Function() _nextElement; - final jni$_.JIterator? Function() _asIterator; + static final _hasMoreElements = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - bool hasMoreElements() { - return _hasMoreElements(); + /// from: `public abstract boolean hasMoreElements()` + core$_.bool hasMoreElements() { + final _$$selfRef = reference; + return _hasMoreElements(_$$selfRef.pointer, _id_hasMoreElements.pointer) + .boolean; } - $E? nextElement() { - return _nextElement(); - } + static final _id_nextElement = Enumeration._class.instanceMethodId( + r'nextElement', + r'()Ljava/lang/Object;', + ); - jni$_.JIterator? asIterator() { - return _asIterator(); + static final _nextElement = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public abstract E nextElement()` + /// The returned object must be released after use, by calling the [release] method. + $E? nextElement() { + final _$$selfRef = reference; + return _nextElement(_$$selfRef.pointer, _id_nextElement.pointer) + .object<$E?>(); } } -final class $Enumeration$NullableType<$E extends jni$_.JObject?> - extends jni$_.JObjType?> { - @jni$_.internal - final jni$_.JObjType<$E> E; - - @jni$_.internal - const $Enumeration$NullableType( - this.E, - ); +abstract base mixin class $Enumeration<$E extends jni$_.JObject?> { + factory $Enumeration({ + required jni$_.JIterator? Function() asIterator, + required core$_.bool Function() hasMoreElements, + required $E? Function() nextElement, + }) = _$Enumeration<$E>; - @jni$_.internal - @core$_.override - String get signature => r'Ljava/util/Enumeration;'; + jni$_.JIterator? asIterator(); + core$_.bool hasMoreElements(); + $E? nextElement(); +} - @jni$_.internal - @core$_.override - Enumeration<$E>? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Enumeration<$E>.fromReference( - E, - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); +final class _$Enumeration<$E extends jni$_.JObject?> with $Enumeration<$E> { + _$Enumeration({ + required jni$_.JIterator? Function() asIterator, + required core$_.bool Function() hasMoreElements, + required $E? Function() nextElement, + }) : _asIterator = asIterator, + _hasMoreElements = hasMoreElements, + _nextElement = nextElement; - @jni$_.internal - @core$_.override - jni$_.JObjType?> get nullableType => this; + final jni$_.JIterator? Function() _asIterator; + final core$_.bool Function() _hasMoreElements; + final $E? Function() _nextElement; - @jni$_.internal - @core$_.override - final superCount = 1; + jni$_.JIterator? asIterator() { + return _asIterator(); + } - @core$_.override - int get hashCode => Object.hash($Enumeration$NullableType, E); + core$_.bool hasMoreElements() { + return _hasMoreElements(); + } - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Enumeration$NullableType<$E>) && - other is $Enumeration$NullableType<$E> && - E == other.E; + $E? nextElement() { + return _nextElement(); } } -final class $Enumeration$Type<$E extends jni$_.JObject?> - extends jni$_.JObjType> { - @jni$_.internal - final jni$_.JObjType<$E> E; - +final class $Enumeration$Type$ extends jni$_.JType { @jni$_.internal - const $Enumeration$Type( - this.E, - ); + const $Enumeration$Type$(); @jni$_.internal @core$_.override String get signature => r'Ljava/util/Enumeration;'; - - @jni$_.internal - @core$_.override - Enumeration<$E> fromReference(jni$_.JReference reference) => - Enumeration<$E>.fromReference( - E, - reference, - ); - @jni$_.internal - @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - - @jni$_.internal - @core$_.override - jni$_.JObjType?> get nullableType => - $Enumeration$NullableType<$E>(E); - - @jni$_.internal - @core$_.override - final superCount = 1; - - @core$_.override - int get hashCode => Object.hash($Enumeration$Type, E); - - @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Enumeration$Type<$E>) && - other is $Enumeration$Type<$E> && - E == other.E; - } } /// from: `java.util.Arrays` -class Arrays extends jni$_.JObject { - @jni$_.internal - @core$_.override - final jni$_.JObjType $type; - - @jni$_.internal - Arrays.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); - +extension type Arrays._(jni$_.JObject _$this) implements jni$_.JObject { static final _class = jni$_.JClass.forName(r'java/util/Arrays'); /// The type which includes information such as the signature of this class. - static const nullableType = $Arrays$NullableType(); - static const type = $Arrays$Type(); - static final _id_sort = _class.staticMethodId( - r'sort', - r'([I)V', + static const jni$_.JType type = $Arrays$Type$(); + static final _id_asList = _class.staticMethodId( + r'asList', + r'([Ljava/lang/Object;)Ljava/util/List;', ); - static final _sort = jni$_.ProtectedJniExtensions.lookup< + static final _asList = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') + 'globalEnv_CallStaticObjectMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JniResult Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public void sort(int[] is)` - static void sort( - jni$_.JIntArray? is$, + /// from: `static public java.util.List asList(T[] objects)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JList<$T?>? asList<$T extends jni$_.JObject?>( + jni$_.JArray<$T?>? objects, ) { - final _$is$ = is$?.reference ?? jni$_.jNullReference; - _sort(_class.reference.pointer, _id_sort as jni$_.JMethodIDPtr, - _$is$.pointer) - .check(); + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + return _asList(_$$classRef.pointer, _id_asList.pointer, _$objects.pointer) + .object?>(); } - static final _id_sort$1 = _class.staticMethodId( - r'sort', - r'([III)V', + static final _id_binarySearch = _class.staticMethodId( + r'binarySearch', + r'([BB)I', ); - static final _sort$1 = jni$_.ProtectedJniExtensions.lookup< + static final _binarySearch = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_ + .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( + 'globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); + + /// from: `static public int binarySearch(byte[] bs, byte b)` + static core$_.int binarySearch( + jni$_.JByteArray? bs, + core$_.int b, + ) { + final _$$classRef = _class.reference; + final _$bs = bs?.reference ?? jni$_.jNullReference; + return _binarySearch( + _$$classRef.pointer, _id_binarySearch.pointer, _$bs.pointer, b) + .integer; + } + + static final _id_binarySearch$1 = _class.staticMethodId( + r'binarySearch', + r'([BIIB)I', + ); + + static final _binarySearch$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, jni$_.Int32, + jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + core$_.int)>(); - /// from: `static public void sort(int[] is, int i, int i1)` - static void sort$1( - jni$_.JIntArray? is$, - int i, - int i1, + /// from: `static public int binarySearch(byte[] bs, int i, int i1, byte b)` + static core$_.int binarySearch$1( + jni$_.JByteArray? bs, + core$_.int i, + core$_.int i1, + core$_.int b, ) { - final _$is$ = is$?.reference ?? jni$_.jNullReference; - _sort$1(_class.reference.pointer, _id_sort$1 as jni$_.JMethodIDPtr, - _$is$.pointer, i, i1) - .check(); + final _$$classRef = _class.reference; + final _$bs = bs?.reference ?? jni$_.jNullReference; + return _binarySearch$1(_$$classRef.pointer, _id_binarySearch$1.pointer, + _$bs.pointer, i, i1, b) + .integer; } - static final _id_sort$2 = _class.staticMethodId( - r'sort', - r'([J)V', + static final _id_binarySearch$2 = _class.staticMethodId( + r'binarySearch', + r'([CC)I', ); - static final _sort$2 = jni$_.ProtectedJniExtensions.lookup< + static final _binarySearch$2 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') + jni$_ + .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( + 'globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); - /// from: `static public void sort(long[] js)` - static void sort$2( - jni$_.JLongArray? js, + /// from: `static public int binarySearch(char[] cs, char c)` + static core$_.int binarySearch$2( + jni$_.JCharArray? cs, + core$_.int c, ) { - final _$js = js?.reference ?? jni$_.jNullReference; - _sort$2(_class.reference.pointer, _id_sort$2 as jni$_.JMethodIDPtr, - _$js.pointer) - .check(); + final _$$classRef = _class.reference; + final _$cs = cs?.reference ?? jni$_.jNullReference; + return _binarySearch$2( + _$$classRef.pointer, _id_binarySearch$2.pointer, _$cs.pointer, c) + .integer; } - static final _id_sort$3 = _class.staticMethodId( - r'sort', - r'([JII)V', + static final _id_binarySearch$3 = _class.staticMethodId( + r'binarySearch', + r'([CIIC)I', ); - static final _sort$3 = jni$_.ProtectedJniExtensions.lookup< + static final _binarySearch$3 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, jni$_.Int32, + jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + core$_.int)>(); - /// from: `static public void sort(long[] js, int i, int i1)` - static void sort$3( - jni$_.JLongArray? js, - int i, - int i1, + /// from: `static public int binarySearch(char[] cs, int i, int i1, char c)` + static core$_.int binarySearch$3( + jni$_.JCharArray? cs, + core$_.int i, + core$_.int i1, + core$_.int c, ) { - final _$js = js?.reference ?? jni$_.jNullReference; - _sort$3(_class.reference.pointer, _id_sort$3 as jni$_.JMethodIDPtr, - _$js.pointer, i, i1) - .check(); + final _$$classRef = _class.reference; + final _$cs = cs?.reference ?? jni$_.jNullReference; + return _binarySearch$3(_$$classRef.pointer, _id_binarySearch$3.pointer, + _$cs.pointer, i, i1, c) + .integer; } - static final _id_sort$4 = _class.staticMethodId( - r'sort', - r'([S)V', + static final _id_binarySearch$4 = _class.staticMethodId( + r'binarySearch', + r'([DD)I', ); - static final _sort$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') + static final _binarySearch$4 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Double + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.double)>(); - /// from: `static public void sort(short[] ss)` - static void sort$4( - jni$_.JShortArray? ss, + /// from: `static public int binarySearch(double[] ds, double d)` + static core$_.int binarySearch$4( + jni$_.JDoubleArray? ds, + core$_.double d, ) { - final _$ss = ss?.reference ?? jni$_.jNullReference; - _sort$4(_class.reference.pointer, _id_sort$4 as jni$_.JMethodIDPtr, - _$ss.pointer) - .check(); + final _$$classRef = _class.reference; + final _$ds = ds?.reference ?? jni$_.jNullReference; + return _binarySearch$4( + _$$classRef.pointer, _id_binarySearch$4.pointer, _$ds.pointer, d) + .integer; } - static final _id_sort$5 = _class.staticMethodId( - r'sort', - r'([SII)V', + static final _id_binarySearch$5 = _class.staticMethodId( + r'binarySearch', + r'([DIID)I', ); - static final _sort$5 = jni$_.ProtectedJniExtensions.lookup< + static final _binarySearch$5 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') + jni$_.Int32, + jni$_.Double + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + core$_.double)>(); - /// from: `static public void sort(short[] ss, int i, int i1)` - static void sort$5( - jni$_.JShortArray? ss, - int i, - int i1, + /// from: `static public int binarySearch(double[] ds, int i, int i1, double d)` + static core$_.int binarySearch$5( + jni$_.JDoubleArray? ds, + core$_.int i, + core$_.int i1, + core$_.double d, ) { - final _$ss = ss?.reference ?? jni$_.jNullReference; - _sort$5(_class.reference.pointer, _id_sort$5 as jni$_.JMethodIDPtr, - _$ss.pointer, i, i1) - .check(); + final _$$classRef = _class.reference; + final _$ds = ds?.reference ?? jni$_.jNullReference; + return _binarySearch$5(_$$classRef.pointer, _id_binarySearch$5.pointer, + _$ds.pointer, i, i1, d) + .integer; } - static final _id_sort$6 = _class.staticMethodId( - r'sort', - r'([C)V', + static final _id_binarySearch$6 = _class.staticMethodId( + r'binarySearch', + r'([FF)I', ); - static final _sort$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') + static final _binarySearch$6 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Double + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.double)>(); - /// from: `static public void sort(char[] cs)` - static void sort$6( - jni$_.JCharArray? cs, + /// from: `static public int binarySearch(float[] fs, float f)` + static core$_.int binarySearch$6( + jni$_.JFloatArray? fs, + core$_.double f, ) { - final _$cs = cs?.reference ?? jni$_.jNullReference; - _sort$6(_class.reference.pointer, _id_sort$6 as jni$_.JMethodIDPtr, - _$cs.pointer) - .check(); + final _$$classRef = _class.reference; + final _$fs = fs?.reference ?? jni$_.jNullReference; + return _binarySearch$6( + _$$classRef.pointer, _id_binarySearch$6.pointer, _$fs.pointer, f) + .integer; } - static final _id_sort$7 = _class.staticMethodId( - r'sort', - r'([CII)V', + static final _id_binarySearch$7 = _class.staticMethodId( + r'binarySearch', + r'([FIIF)I', ); - static final _sort$7 = jni$_.ProtectedJniExtensions.lookup< + static final _binarySearch$7 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') + jni$_.Int32, + jni$_.Double + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + core$_.double)>(); - /// from: `static public void sort(char[] cs, int i, int i1)` - static void sort$7( - jni$_.JCharArray? cs, - int i, - int i1, + /// from: `static public int binarySearch(float[] fs, int i, int i1, float f)` + static core$_.int binarySearch$7( + jni$_.JFloatArray? fs, + core$_.int i, + core$_.int i1, + core$_.double f, ) { - final _$cs = cs?.reference ?? jni$_.jNullReference; - _sort$7(_class.reference.pointer, _id_sort$7 as jni$_.JMethodIDPtr, - _$cs.pointer, i, i1) - .check(); + final _$$classRef = _class.reference; + final _$fs = fs?.reference ?? jni$_.jNullReference; + return _binarySearch$7(_$$classRef.pointer, _id_binarySearch$7.pointer, + _$fs.pointer, i, i1, f) + .integer; } - static final _id_sort$8 = _class.staticMethodId( - r'sort', - r'([B)V', + static final _id_binarySearch$8 = _class.staticMethodId( + r'binarySearch', + r'([II)I', ); - static final _sort$8 = jni$_.ProtectedJniExtensions.lookup< + static final _binarySearch$8 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') + jni$_ + .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( + 'globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); - /// from: `static public void sort(byte[] bs)` - static void sort$8( - jni$_.JByteArray? bs, + /// from: `static public int binarySearch(int[] is, int i)` + static core$_.int binarySearch$8( + jni$_.JIntArray? is$, + core$_.int i, ) { - final _$bs = bs?.reference ?? jni$_.jNullReference; - _sort$8(_class.reference.pointer, _id_sort$8 as jni$_.JMethodIDPtr, - _$bs.pointer) - .check(); + final _$$classRef = _class.reference; + final _$is$ = is$?.reference ?? jni$_.jNullReference; + return _binarySearch$8( + _$$classRef.pointer, _id_binarySearch$8.pointer, _$is$.pointer, i) + .integer; } - static final _id_sort$9 = _class.staticMethodId( - r'sort', - r'([BII)V', + static final _id_binarySearch$9 = _class.staticMethodId( + r'binarySearch', + r'([IIII)I', ); - static final _sort$9 = jni$_.ProtectedJniExtensions.lookup< + static final _binarySearch$9 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, jni$_.Int32, + jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); - - /// from: `static public void sort(byte[] bs, int i, int i1)` - static void sort$9( - jni$_.JByteArray? bs, - int i, - int i1, - ) { - final _$bs = bs?.reference ?? jni$_.jNullReference; - _sort$9(_class.reference.pointer, _id_sort$9 as jni$_.JMethodIDPtr, - _$bs.pointer, i, i1) - .check(); - } - - static final _id_sort$10 = _class.staticMethodId( - r'sort', - r'([F)V', - ); - - static final _sort$10 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + core$_.int)>(); - /// from: `static public void sort(float[] fs)` - static void sort$10( - jni$_.JFloatArray? fs, + /// from: `static public int binarySearch(int[] is, int i, int i1, int i2)` + static core$_.int binarySearch$9( + jni$_.JIntArray? is$, + core$_.int i, + core$_.int i1, + core$_.int i2, ) { - final _$fs = fs?.reference ?? jni$_.jNullReference; - _sort$10(_class.reference.pointer, _id_sort$10 as jni$_.JMethodIDPtr, - _$fs.pointer) - .check(); + final _$$classRef = _class.reference; + final _$is$ = is$?.reference ?? jni$_.jNullReference; + return _binarySearch$9(_$$classRef.pointer, _id_binarySearch$9.pointer, + _$is$.pointer, i, i1, i2) + .integer; } - static final _id_sort$11 = _class.staticMethodId( - r'sort', - r'([FII)V', + static final _id_binarySearch$10 = _class.staticMethodId( + r'binarySearch', + r'([Ljava/lang/Object;IILjava/lang/Object;)I', ); - static final _sort$11 = jni$_.ProtectedJniExtensions.lookup< + static final _binarySearch$10 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') + jni$_.Int32, + jni$_.Pointer + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer)>(); - /// from: `static public void sort(float[] fs, int i, int i1)` - static void sort$11( - jni$_.JFloatArray? fs, - int i, - int i1, + /// from: `static public int binarySearch(java.lang.Object[] objects, int i, int i1, java.lang.Object object)` + static core$_.int binarySearch$10( + jni$_.JArray? objects, + core$_.int i, + core$_.int i1, + jni$_.JObject? object, ) { - final _$fs = fs?.reference ?? jni$_.jNullReference; - _sort$11(_class.reference.pointer, _id_sort$11 as jni$_.JMethodIDPtr, - _$fs.pointer, i, i1) - .check(); + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + final _$object = object?.reference ?? jni$_.jNullReference; + return _binarySearch$10(_$$classRef.pointer, _id_binarySearch$10.pointer, + _$objects.pointer, i, i1, _$object.pointer) + .integer; } - static final _id_sort$12 = _class.staticMethodId( - r'sort', - r'([D)V', + static final _id_binarySearch$11 = _class.staticMethodId( + r'binarySearch', + r'([Ljava/lang/Object;Ljava/lang/Object;)I', ); - static final _sort$12 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') + static final _binarySearch$11 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - /// from: `static public void sort(double[] ds)` - static void sort$12( - jni$_.JDoubleArray? ds, + /// from: `static public int binarySearch(java.lang.Object[] objects, java.lang.Object object)` + static core$_.int binarySearch$11( + jni$_.JArray? objects, + jni$_.JObject? object, ) { - final _$ds = ds?.reference ?? jni$_.jNullReference; - _sort$12(_class.reference.pointer, _id_sort$12 as jni$_.JMethodIDPtr, - _$ds.pointer) - .check(); + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + final _$object = object?.reference ?? jni$_.jNullReference; + return _binarySearch$11(_$$classRef.pointer, _id_binarySearch$11.pointer, + _$objects.pointer, _$object.pointer) + .integer; } - static final _id_sort$13 = _class.staticMethodId( - r'sort', - r'([DII)V', + static final _id_binarySearch$12 = _class.staticMethodId( + r'binarySearch', + r'([JIIJ)I', ); - static final _sort$13 = jni$_.ProtectedJniExtensions.lookup< + static final _binarySearch$12 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Int32, + jni$_.Int64 + )>)>>('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + core$_.int)>(); - /// from: `static public void sort(double[] ds, int i, int i1)` - static void sort$13( - jni$_.JDoubleArray? ds, - int i, - int i1, + /// from: `static public int binarySearch(long[] js, int i, int i1, long j)` + static core$_.int binarySearch$12( + jni$_.JLongArray? js, + core$_.int i, + core$_.int i1, + core$_.int j, ) { - final _$ds = ds?.reference ?? jni$_.jNullReference; - _sort$13(_class.reference.pointer, _id_sort$13 as jni$_.JMethodIDPtr, - _$ds.pointer, i, i1) - .check(); + final _$$classRef = _class.reference; + final _$js = js?.reference ?? jni$_.jNullReference; + return _binarySearch$12(_$$classRef.pointer, _id_binarySearch$12.pointer, + _$js.pointer, i, i1, j) + .integer; } - static final _id_parallelSort = _class.staticMethodId( - r'parallelSort', - r'([B)V', + static final _id_binarySearch$13 = _class.staticMethodId( + r'binarySearch', + r'([JJ)I', ); - static final _parallelSort = jni$_.ProtectedJniExtensions.lookup< + static final _binarySearch$13 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') + jni$_ + .VarArgs<(jni$_.Pointer, jni$_.Int64)>)>>( + 'globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); - /// from: `static public void parallelSort(byte[] bs)` - static void parallelSort( - jni$_.JByteArray? bs, + /// from: `static public int binarySearch(long[] js, long j)` + static core$_.int binarySearch$13( + jni$_.JLongArray? js, + core$_.int j, ) { - final _$bs = bs?.reference ?? jni$_.jNullReference; - _parallelSort(_class.reference.pointer, - _id_parallelSort as jni$_.JMethodIDPtr, _$bs.pointer) - .check(); + final _$$classRef = _class.reference; + final _$js = js?.reference ?? jni$_.jNullReference; + return _binarySearch$13( + _$$classRef.pointer, _id_binarySearch$13.pointer, _$js.pointer, j) + .integer; } - static final _id_parallelSort$1 = _class.staticMethodId( - r'parallelSort', - r'([BII)V', + static final _id_binarySearch$14 = _class.staticMethodId( + r'binarySearch', + r'([SIIS)I', ); - static final _parallelSort$1 = jni$_.ProtectedJniExtensions.lookup< + static final _binarySearch$14 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, jni$_.Int32, + jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + core$_.int)>(); - /// from: `static public void parallelSort(byte[] bs, int i, int i1)` - static void parallelSort$1( - jni$_.JByteArray? bs, - int i, - int i1, + /// from: `static public int binarySearch(short[] ss, int i, int i1, short s)` + static core$_.int binarySearch$14( + jni$_.JShortArray? ss, + core$_.int i, + core$_.int i1, + core$_.int s, ) { - final _$bs = bs?.reference ?? jni$_.jNullReference; - _parallelSort$1(_class.reference.pointer, - _id_parallelSort$1 as jni$_.JMethodIDPtr, _$bs.pointer, i, i1) - .check(); + final _$$classRef = _class.reference; + final _$ss = ss?.reference ?? jni$_.jNullReference; + return _binarySearch$14(_$$classRef.pointer, _id_binarySearch$14.pointer, + _$ss.pointer, i, i1, s) + .integer; } - static final _id_parallelSort$2 = _class.staticMethodId( - r'parallelSort', - r'([C)V', + static final _id_binarySearch$15 = _class.staticMethodId( + r'binarySearch', + r'([SS)I', ); - static final _parallelSort$2 = jni$_.ProtectedJniExtensions.lookup< + static final _binarySearch$15 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') + jni$_ + .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( + 'globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); - /// from: `static public void parallelSort(char[] cs)` - static void parallelSort$2( - jni$_.JCharArray? cs, + /// from: `static public int binarySearch(short[] ss, short s)` + static core$_.int binarySearch$15( + jni$_.JShortArray? ss, + core$_.int s, ) { - final _$cs = cs?.reference ?? jni$_.jNullReference; - _parallelSort$2(_class.reference.pointer, - _id_parallelSort$2 as jni$_.JMethodIDPtr, _$cs.pointer) - .check(); + final _$$classRef = _class.reference; + final _$ss = ss?.reference ?? jni$_.jNullReference; + return _binarySearch$15( + _$$classRef.pointer, _id_binarySearch$15.pointer, _$ss.pointer, s) + .integer; } - static final _id_parallelSort$3 = _class.staticMethodId( - r'parallelSort', - r'([CII)V', + static final _id_binarySearch$16 = _class.staticMethodId( + r'binarySearch', + r'([Ljava/lang/Object;IILjava/lang/Object;Ljava/util/Comparator;)I', ); - static final _parallelSort$3 = jni$_.ProtectedJniExtensions.lookup< + static final _binarySearch$16 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); - - /// from: `static public void parallelSort(char[] cs, int i, int i1)` - static void parallelSort$3( - jni$_.JCharArray? cs, - int i, - int i1, - ) { - final _$cs = cs?.reference ?? jni$_.jNullReference; - _parallelSort$3(_class.reference.pointer, - _id_parallelSort$3 as jni$_.JMethodIDPtr, _$cs.pointer, i, i1) - .check(); - } - - static final _id_parallelSort$4 = _class.staticMethodId( - r'parallelSort', - r'([S)V', - ); - - static final _parallelSort$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') + jni$_.Int32, + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer, + jni$_.Pointer)>(); - /// from: `static public void parallelSort(short[] ss)` - static void parallelSort$4( - jni$_.JShortArray? ss, + /// from: `static public int binarySearch(T[] objects, int i, int i1, T object, java.util.Comparator comparator)` + static core$_.int binarySearch$16<$T extends jni$_.JObject?>( + jni$_.JArray<$T?>? objects, + core$_.int i, + core$_.int i1, + $T? object, + Comparator? comparator, ) { - final _$ss = ss?.reference ?? jni$_.jNullReference; - _parallelSort$4(_class.reference.pointer, - _id_parallelSort$4 as jni$_.JMethodIDPtr, _$ss.pointer) - .check(); + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + final _$object = object?.reference ?? jni$_.jNullReference; + final _$comparator = comparator?.reference ?? jni$_.jNullReference; + return _binarySearch$16(_$$classRef.pointer, _id_binarySearch$16.pointer, + _$objects.pointer, i, i1, _$object.pointer, _$comparator.pointer) + .integer; } - static final _id_parallelSort$5 = _class.staticMethodId( - r'parallelSort', - r'([SII)V', + static final _id_binarySearch$17 = _class.staticMethodId( + r'binarySearch', + r'([Ljava/lang/Object;Ljava/lang/Object;Ljava/util/Comparator;)I', ); - static final _parallelSort$5 = jni$_.ProtectedJniExtensions.lookup< + static final _binarySearch$17 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer)>(); - /// from: `static public void parallelSort(short[] ss, int i, int i1)` - static void parallelSort$5( - jni$_.JShortArray? ss, - int i, - int i1, + /// from: `static public int binarySearch(T[] objects, T object, java.util.Comparator comparator)` + static core$_.int binarySearch$17<$T extends jni$_.JObject?>( + jni$_.JArray<$T?>? objects, + $T? object, + Comparator? comparator, ) { - final _$ss = ss?.reference ?? jni$_.jNullReference; - _parallelSort$5(_class.reference.pointer, - _id_parallelSort$5 as jni$_.JMethodIDPtr, _$ss.pointer, i, i1) - .check(); + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + final _$object = object?.reference ?? jni$_.jNullReference; + final _$comparator = comparator?.reference ?? jni$_.jNullReference; + return _binarySearch$17(_$$classRef.pointer, _id_binarySearch$17.pointer, + _$objects.pointer, _$object.pointer, _$comparator.pointer) + .integer; } - static final _id_parallelSort$6 = _class.staticMethodId( - r'parallelSort', - r'([I)V', + static final _id_compare = _class.staticMethodId( + r'compare', + r'([Z[Z)I', ); - static final _parallelSort$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') + static final _compare = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - /// from: `static public void parallelSort(int[] is)` - static void parallelSort$6( - jni$_.JIntArray? is$, + /// from: `static public int compare(boolean[] zs, boolean[] zs1)` + static core$_.int compare( + jni$_.JBooleanArray? zs, + jni$_.JBooleanArray? zs1, ) { - final _$is$ = is$?.reference ?? jni$_.jNullReference; - _parallelSort$6(_class.reference.pointer, - _id_parallelSort$6 as jni$_.JMethodIDPtr, _$is$.pointer) - .check(); + final _$$classRef = _class.reference; + final _$zs = zs?.reference ?? jni$_.jNullReference; + final _$zs1 = zs1?.reference ?? jni$_.jNullReference; + return _compare(_$$classRef.pointer, _id_compare.pointer, _$zs.pointer, + _$zs1.pointer) + .integer; } - static final _id_parallelSort$7 = _class.staticMethodId( - r'parallelSort', - r'([III)V', + static final _id_compare$1 = _class.staticMethodId( + r'compare', + r'([ZII[ZII)I', ); - static final _parallelSort$7 = jni$_.ProtectedJniExtensions.lookup< + static final _compare$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public void parallelSort(int[] is, int i, int i1)` - static void parallelSort$7( - jni$_.JIntArray? is$, - int i, - int i1, + /// from: `static public int compare(boolean[] zs, int i, int i1, boolean[] zs1, int i2, int i3)` + static core$_.int compare$1( + jni$_.JBooleanArray? zs, + core$_.int i, + core$_.int i1, + jni$_.JBooleanArray? zs1, + core$_.int i2, + core$_.int i3, ) { - final _$is$ = is$?.reference ?? jni$_.jNullReference; - _parallelSort$7(_class.reference.pointer, - _id_parallelSort$7 as jni$_.JMethodIDPtr, _$is$.pointer, i, i1) - .check(); + final _$$classRef = _class.reference; + final _$zs = zs?.reference ?? jni$_.jNullReference; + final _$zs1 = zs1?.reference ?? jni$_.jNullReference; + return _compare$1(_$$classRef.pointer, _id_compare$1.pointer, _$zs.pointer, + i, i1, _$zs1.pointer, i2, i3) + .integer; } - static final _id_parallelSort$8 = _class.staticMethodId( - r'parallelSort', - r'([J)V', + static final _id_compare$2 = _class.staticMethodId( + r'compare', + r'([B[B)I', ); - static final _parallelSort$8 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') + static final _compare$2 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - /// from: `static public void parallelSort(long[] js)` - static void parallelSort$8( - jni$_.JLongArray? js, + /// from: `static public int compare(byte[] bs, byte[] bs1)` + static core$_.int compare$2( + jni$_.JByteArray? bs, + jni$_.JByteArray? bs1, ) { - final _$js = js?.reference ?? jni$_.jNullReference; - _parallelSort$8(_class.reference.pointer, - _id_parallelSort$8 as jni$_.JMethodIDPtr, _$js.pointer) - .check(); + final _$$classRef = _class.reference; + final _$bs = bs?.reference ?? jni$_.jNullReference; + final _$bs1 = bs1?.reference ?? jni$_.jNullReference; + return _compare$2(_$$classRef.pointer, _id_compare$2.pointer, _$bs.pointer, + _$bs1.pointer) + .integer; } - static final _id_parallelSort$9 = _class.staticMethodId( - r'parallelSort', - r'([JII)V', + static final _id_compare$3 = _class.staticMethodId( + r'compare', + r'([BII[BII)I', ); - static final _parallelSort$9 = jni$_.ProtectedJniExtensions.lookup< + static final _compare$3 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public void parallelSort(long[] js, int i, int i1)` - static void parallelSort$9( - jni$_.JLongArray? js, - int i, - int i1, + /// from: `static public int compare(byte[] bs, int i, int i1, byte[] bs1, int i2, int i3)` + static core$_.int compare$3( + jni$_.JByteArray? bs, + core$_.int i, + core$_.int i1, + jni$_.JByteArray? bs1, + core$_.int i2, + core$_.int i3, ) { - final _$js = js?.reference ?? jni$_.jNullReference; - _parallelSort$9(_class.reference.pointer, - _id_parallelSort$9 as jni$_.JMethodIDPtr, _$js.pointer, i, i1) - .check(); + final _$$classRef = _class.reference; + final _$bs = bs?.reference ?? jni$_.jNullReference; + final _$bs1 = bs1?.reference ?? jni$_.jNullReference; + return _compare$3(_$$classRef.pointer, _id_compare$3.pointer, _$bs.pointer, + i, i1, _$bs1.pointer, i2, i3) + .integer; } - static final _id_parallelSort$10 = _class.staticMethodId( - r'parallelSort', - r'([F)V', + static final _id_compare$4 = _class.staticMethodId( + r'compare', + r'([C[C)I', ); - static final _parallelSort$10 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') + static final _compare$4 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - /// from: `static public void parallelSort(float[] fs)` - static void parallelSort$10( - jni$_.JFloatArray? fs, + /// from: `static public int compare(char[] cs, char[] cs1)` + static core$_.int compare$4( + jni$_.JCharArray? cs, + jni$_.JCharArray? cs1, ) { - final _$fs = fs?.reference ?? jni$_.jNullReference; - _parallelSort$10(_class.reference.pointer, - _id_parallelSort$10 as jni$_.JMethodIDPtr, _$fs.pointer) - .check(); + final _$$classRef = _class.reference; + final _$cs = cs?.reference ?? jni$_.jNullReference; + final _$cs1 = cs1?.reference ?? jni$_.jNullReference; + return _compare$4(_$$classRef.pointer, _id_compare$4.pointer, _$cs.pointer, + _$cs1.pointer) + .integer; } - static final _id_parallelSort$11 = _class.staticMethodId( - r'parallelSort', - r'([FII)V', + static final _id_compare$5 = _class.staticMethodId( + r'compare', + r'([CII[CII)I', ); - static final _parallelSort$11 = jni$_.ProtectedJniExtensions.lookup< + static final _compare$5 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public void parallelSort(float[] fs, int i, int i1)` - static void parallelSort$11( - jni$_.JFloatArray? fs, - int i, - int i1, + /// from: `static public int compare(char[] cs, int i, int i1, char[] cs1, int i2, int i3)` + static core$_.int compare$5( + jni$_.JCharArray? cs, + core$_.int i, + core$_.int i1, + jni$_.JCharArray? cs1, + core$_.int i2, + core$_.int i3, ) { - final _$fs = fs?.reference ?? jni$_.jNullReference; - _parallelSort$11(_class.reference.pointer, - _id_parallelSort$11 as jni$_.JMethodIDPtr, _$fs.pointer, i, i1) - .check(); + final _$$classRef = _class.reference; + final _$cs = cs?.reference ?? jni$_.jNullReference; + final _$cs1 = cs1?.reference ?? jni$_.jNullReference; + return _compare$5(_$$classRef.pointer, _id_compare$5.pointer, _$cs.pointer, + i, i1, _$cs1.pointer, i2, i3) + .integer; } - static final _id_parallelSort$12 = _class.staticMethodId( - r'parallelSort', - r'([D)V', + static final _id_compare$6 = _class.staticMethodId( + r'compare', + r'([D[D)I', ); - static final _parallelSort$12 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') + static final _compare$6 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - /// from: `static public void parallelSort(double[] ds)` - static void parallelSort$12( + /// from: `static public int compare(double[] ds, double[] ds1)` + static core$_.int compare$6( jni$_.JDoubleArray? ds, + jni$_.JDoubleArray? ds1, ) { + final _$$classRef = _class.reference; final _$ds = ds?.reference ?? jni$_.jNullReference; - _parallelSort$12(_class.reference.pointer, - _id_parallelSort$12 as jni$_.JMethodIDPtr, _$ds.pointer) - .check(); + final _$ds1 = ds1?.reference ?? jni$_.jNullReference; + return _compare$6(_$$classRef.pointer, _id_compare$6.pointer, _$ds.pointer, + _$ds1.pointer) + .integer; } - static final _id_parallelSort$13 = _class.staticMethodId( - r'parallelSort', - r'([DII)V', + static final _id_compare$7 = _class.staticMethodId( + r'compare', + r'([DII[DII)I', ); - static final _parallelSort$13 = jni$_.ProtectedJniExtensions.lookup< + static final _compare$7 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public void parallelSort(double[] ds, int i, int i1)` - static void parallelSort$13( + /// from: `static public int compare(double[] ds, int i, int i1, double[] ds1, int i2, int i3)` + static core$_.int compare$7( jni$_.JDoubleArray? ds, - int i, - int i1, + core$_.int i, + core$_.int i1, + jni$_.JDoubleArray? ds1, + core$_.int i2, + core$_.int i3, ) { + final _$$classRef = _class.reference; final _$ds = ds?.reference ?? jni$_.jNullReference; - _parallelSort$13(_class.reference.pointer, - _id_parallelSort$13 as jni$_.JMethodIDPtr, _$ds.pointer, i, i1) - .check(); - } - - static final _id_parallelSort$14 = _class.staticMethodId( - r'parallelSort', - r'([Ljava/lang/Comparable;)V', - ); - - static final _parallelSort$14 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `static public void parallelSort(java.lang.Object[] comparables)` - static void parallelSort$14<$T extends jni$_.JObject?>( - jni$_.JArray<$T?>? comparables, { - required jni$_.JObjType<$T> T, - }) { - final _$comparables = comparables?.reference ?? jni$_.jNullReference; - _parallelSort$14(_class.reference.pointer, - _id_parallelSort$14 as jni$_.JMethodIDPtr, _$comparables.pointer) - .check(); + final _$ds1 = ds1?.reference ?? jni$_.jNullReference; + return _compare$7(_$$classRef.pointer, _id_compare$7.pointer, _$ds.pointer, + i, i1, _$ds1.pointer, i2, i3) + .integer; } - static final _id_parallelSort$15 = _class.staticMethodId( - r'parallelSort', - r'([Ljava/lang/Comparable;II)V', + static final _id_compare$8 = _class.staticMethodId( + r'compare', + r'([F[F)I', ); - static final _parallelSort$15 = jni$_.ProtectedJniExtensions.lookup< + static final _compare$8 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); - - /// from: `static public void parallelSort(java.lang.Object[] comparables, int i, int i1)` - static void parallelSort$15<$T extends jni$_.JObject?>( - jni$_.JArray<$T?>? comparables, - int i, - int i1, { - required jni$_.JObjType<$T> T, - }) { - final _$comparables = comparables?.reference ?? jni$_.jNullReference; - _parallelSort$15( - _class.reference.pointer, - _id_parallelSort$15 as jni$_.JMethodIDPtr, - _$comparables.pointer, - i, - i1) - .check(); - } - - static final _id_parallelSort$16 = _class.staticMethodId( - r'parallelSort', - r'([Ljava/lang/Object;Ljava/util/Comparator;)V', - ); - - static final _parallelSort$16 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer)>(); - /// from: `static public void parallelSort(java.lang.Object[] objects, java.util.Comparator comparator)` - static void parallelSort$16<$T extends jni$_.JObject?>( - jni$_.JArray<$T?>? objects, - jni$_.JObject? comparator, { - required jni$_.JObjType<$T> T, - }) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - final _$comparator = comparator?.reference ?? jni$_.jNullReference; - _parallelSort$16( - _class.reference.pointer, - _id_parallelSort$16 as jni$_.JMethodIDPtr, - _$objects.pointer, - _$comparator.pointer) - .check(); + /// from: `static public int compare(float[] fs, float[] fs1)` + static core$_.int compare$8( + jni$_.JFloatArray? fs, + jni$_.JFloatArray? fs1, + ) { + final _$$classRef = _class.reference; + final _$fs = fs?.reference ?? jni$_.jNullReference; + final _$fs1 = fs1?.reference ?? jni$_.jNullReference; + return _compare$8(_$$classRef.pointer, _id_compare$8.pointer, _$fs.pointer, + _$fs1.pointer) + .integer; } - static final _id_parallelSort$17 = _class.staticMethodId( - r'parallelSort', - r'([Ljava/lang/Object;IILjava/util/Comparator;)V', + static final _id_compare$9 = _class.staticMethodId( + r'compare', + r'([FII[FII)I', ); - static final _parallelSort$17 = jni$_.ProtectedJniExtensions.lookup< + static final _compare$9 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< @@ -29556,138 +24990,128 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.Int32, jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32 + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - jni$_.Pointer)>(); - - /// from: `static public void parallelSort(java.lang.Object[] objects, int i, int i1, java.util.Comparator comparator)` - static void parallelSort$17<$T extends jni$_.JObject?>( - jni$_.JArray<$T?>? objects, - int i, - int i1, - jni$_.JObject? comparator, { - required jni$_.JObjType<$T> T, - }) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - final _$comparator = comparator?.reference ?? jni$_.jNullReference; - _parallelSort$17( - _class.reference.pointer, - _id_parallelSort$17 as jni$_.JMethodIDPtr, - _$objects.pointer, - i, - i1, - _$comparator.pointer) - .check(); - } - - static final _id_sort$14 = _class.staticMethodId( - r'sort', - r'([Ljava/lang/Object;)V', - ); - - static final _sort$14 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public void sort(java.lang.Object[] objects)` - static void sort$14( - jni$_.JArray? objects, + /// from: `static public int compare(float[] fs, int i, int i1, float[] fs1, int i2, int i3)` + static core$_.int compare$9( + jni$_.JFloatArray? fs, + core$_.int i, + core$_.int i1, + jni$_.JFloatArray? fs1, + core$_.int i2, + core$_.int i3, ) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - _sort$14(_class.reference.pointer, _id_sort$14 as jni$_.JMethodIDPtr, - _$objects.pointer) - .check(); + final _$$classRef = _class.reference; + final _$fs = fs?.reference ?? jni$_.jNullReference; + final _$fs1 = fs1?.reference ?? jni$_.jNullReference; + return _compare$9(_$$classRef.pointer, _id_compare$9.pointer, _$fs.pointer, + i, i1, _$fs1.pointer, i2, i3) + .integer; } - static final _id_sort$15 = _class.staticMethodId( - r'sort', - r'([Ljava/lang/Object;II)V', + static final _id_compare$10 = _class.staticMethodId( + r'compare', + r'([III[III)I', ); - static final _sort$15 = jni$_.ProtectedJniExtensions.lookup< + static final _compare$10 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public void sort(java.lang.Object[] objects, int i, int i1)` - static void sort$15( - jni$_.JArray? objects, - int i, - int i1, + /// from: `static public int compare(int[] is, int i, int i1, int[] is1, int i2, int i3)` + static core$_.int compare$10( + jni$_.JIntArray? is$, + core$_.int i, + core$_.int i1, + jni$_.JIntArray? is1, + core$_.int i2, + core$_.int i3, ) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - _sort$15(_class.reference.pointer, _id_sort$15 as jni$_.JMethodIDPtr, - _$objects.pointer, i, i1) - .check(); + final _$$classRef = _class.reference; + final _$is$ = is$?.reference ?? jni$_.jNullReference; + final _$is1 = is1?.reference ?? jni$_.jNullReference; + return _compare$10(_$$classRef.pointer, _id_compare$10.pointer, + _$is$.pointer, i, i1, _$is1.pointer, i2, i3) + .integer; } - static final _id_sort$16 = _class.staticMethodId( - r'sort', - r'([Ljava/lang/Object;Ljava/util/Comparator;)V', + static final _id_compare$11 = _class.staticMethodId( + r'compare', + r'([I[I)I', ); - static final _sort$16 = jni$_.ProtectedJniExtensions.lookup< + static final _compare$11 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer)>(); - /// from: `static public void sort(java.lang.Object[] objects, java.util.Comparator comparator)` - static void sort$16<$T extends jni$_.JObject?>( - jni$_.JArray<$T?>? objects, - jni$_.JObject? comparator, { - required jni$_.JObjType<$T> T, - }) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - final _$comparator = comparator?.reference ?? jni$_.jNullReference; - _sort$16(_class.reference.pointer, _id_sort$16 as jni$_.JMethodIDPtr, - _$objects.pointer, _$comparator.pointer) - .check(); + /// from: `static public int compare(int[] is, int[] is1)` + static core$_.int compare$11( + jni$_.JIntArray? is$, + jni$_.JIntArray? is1, + ) { + final _$$classRef = _class.reference; + final _$is$ = is$?.reference ?? jni$_.jNullReference; + final _$is1 = is1?.reference ?? jni$_.jNullReference; + return _compare$11(_$$classRef.pointer, _id_compare$11.pointer, + _$is$.pointer, _$is1.pointer) + .integer; } - static final _id_sort$17 = _class.staticMethodId( - r'sort', - r'([Ljava/lang/Object;IILjava/util/Comparator;)V', + static final _id_compare$12 = _class.staticMethodId( + r'compare', + r'([JII[JII)I', ); - static final _sort$17 = jni$_.ProtectedJniExtensions.lookup< + static final _compare$12 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< @@ -29695,78 +25119,81 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.Int32, jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32 + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - jni$_.Pointer)>(); + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public void sort(java.lang.Object[] objects, int i, int i1, java.util.Comparator comparator)` - static void sort$17<$T extends jni$_.JObject?>( - jni$_.JArray<$T?>? objects, - int i, - int i1, - jni$_.JObject? comparator, { - required jni$_.JObjType<$T> T, - }) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - final _$comparator = comparator?.reference ?? jni$_.jNullReference; - _sort$17(_class.reference.pointer, _id_sort$17 as jni$_.JMethodIDPtr, - _$objects.pointer, i, i1, _$comparator.pointer) - .check(); + /// from: `static public int compare(long[] js, int i, int i1, long[] js1, int i2, int i3)` + static core$_.int compare$12( + jni$_.JLongArray? js, + core$_.int i, + core$_.int i1, + jni$_.JLongArray? js1, + core$_.int i2, + core$_.int i3, + ) { + final _$$classRef = _class.reference; + final _$js = js?.reference ?? jni$_.jNullReference; + final _$js1 = js1?.reference ?? jni$_.jNullReference; + return _compare$12(_$$classRef.pointer, _id_compare$12.pointer, + _$js.pointer, i, i1, _$js1.pointer, i2, i3) + .integer; } - static final _id_parallelPrefix = _class.staticMethodId( - r'parallelPrefix', - r'([Ljava/lang/Object;Ljava/util/function/BinaryOperator;)V', + static final _id_compare$13 = _class.staticMethodId( + r'compare', + r'([J[J)I', ); - static final _parallelPrefix = jni$_.ProtectedJniExtensions.lookup< + static final _compare$13 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer)>(); - /// from: `static public void parallelPrefix(java.lang.Object[] objects, java.util.function.BinaryOperator binaryOperator)` - static void parallelPrefix<$T extends jni$_.JObject?>( - jni$_.JArray<$T?>? objects, - jni$_.JObject? binaryOperator, { - required jni$_.JObjType<$T> T, - }) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - final _$binaryOperator = binaryOperator?.reference ?? jni$_.jNullReference; - _parallelPrefix( - _class.reference.pointer, - _id_parallelPrefix as jni$_.JMethodIDPtr, - _$objects.pointer, - _$binaryOperator.pointer) - .check(); + /// from: `static public int compare(long[] js, long[] js1)` + static core$_.int compare$13( + jni$_.JLongArray? js, + jni$_.JLongArray? js1, + ) { + final _$$classRef = _class.reference; + final _$js = js?.reference ?? jni$_.jNullReference; + final _$js1 = js1?.reference ?? jni$_.jNullReference; + return _compare$13(_$$classRef.pointer, _id_compare$13.pointer, + _$js.pointer, _$js1.pointer) + .integer; } - static final _id_parallelPrefix$1 = _class.staticMethodId( - r'parallelPrefix', - r'([Ljava/lang/Object;IILjava/util/function/BinaryOperator;)V', + static final _id_compare$14 = _class.staticMethodId( + r'compare', + r'([SII[SII)I', ); - static final _parallelPrefix$1 = jni$_.ProtectedJniExtensions.lookup< + static final _compare$14 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< @@ -29774,83 +25201,81 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.Int32, jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32 + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - jni$_.Pointer)>(); + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public void parallelPrefix(java.lang.Object[] objects, int i, int i1, java.util.function.BinaryOperator binaryOperator)` - static void parallelPrefix$1<$T extends jni$_.JObject?>( - jni$_.JArray<$T?>? objects, - int i, - int i1, - jni$_.JObject? binaryOperator, { - required jni$_.JObjType<$T> T, - }) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - final _$binaryOperator = binaryOperator?.reference ?? jni$_.jNullReference; - _parallelPrefix$1( - _class.reference.pointer, - _id_parallelPrefix$1 as jni$_.JMethodIDPtr, - _$objects.pointer, - i, - i1, - _$binaryOperator.pointer) - .check(); + /// from: `static public int compare(short[] ss, int i, int i1, short[] ss1, int i2, int i3)` + static core$_.int compare$14( + jni$_.JShortArray? ss, + core$_.int i, + core$_.int i1, + jni$_.JShortArray? ss1, + core$_.int i2, + core$_.int i3, + ) { + final _$$classRef = _class.reference; + final _$ss = ss?.reference ?? jni$_.jNullReference; + final _$ss1 = ss1?.reference ?? jni$_.jNullReference; + return _compare$14(_$$classRef.pointer, _id_compare$14.pointer, + _$ss.pointer, i, i1, _$ss1.pointer, i2, i3) + .integer; } - static final _id_parallelPrefix$2 = _class.staticMethodId( - r'parallelPrefix', - r'([JLjava/util/function/LongBinaryOperator;)V', + static final _id_compare$15 = _class.staticMethodId( + r'compare', + r'([S[S)I', ); - static final _parallelPrefix$2 = jni$_.ProtectedJniExtensions.lookup< + static final _compare$15 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer)>(); - /// from: `static public void parallelPrefix(long[] js, java.util.function.LongBinaryOperator longBinaryOperator)` - static void parallelPrefix$2( - jni$_.JLongArray? js, - jni$_.JObject? longBinaryOperator, + /// from: `static public int compare(short[] ss, short[] ss1)` + static core$_.int compare$15( + jni$_.JShortArray? ss, + jni$_.JShortArray? ss1, ) { - final _$js = js?.reference ?? jni$_.jNullReference; - final _$longBinaryOperator = - longBinaryOperator?.reference ?? jni$_.jNullReference; - _parallelPrefix$2( - _class.reference.pointer, - _id_parallelPrefix$2 as jni$_.JMethodIDPtr, - _$js.pointer, - _$longBinaryOperator.pointer) - .check(); + final _$$classRef = _class.reference; + final _$ss = ss?.reference ?? jni$_.jNullReference; + final _$ss1 = ss1?.reference ?? jni$_.jNullReference; + return _compare$15(_$$classRef.pointer, _id_compare$15.pointer, + _$ss.pointer, _$ss1.pointer) + .integer; } - static final _id_parallelPrefix$3 = _class.staticMethodId( - r'parallelPrefix', - r'([JIILjava/util/function/LongBinaryOperator;)V', + static final _id_compare$16 = _class.staticMethodId( + r'compare', + r'([Ljava/lang/Comparable;II[Ljava/lang/Comparable;II)I', ); - static final _parallelPrefix$3 = jni$_.ProtectedJniExtensions.lookup< + static final _compare$16 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< @@ -29858,239 +25283,212 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.Int32, jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32 + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - jni$_.Pointer)>(); + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public void parallelPrefix(long[] js, int i, int i1, java.util.function.LongBinaryOperator longBinaryOperator)` - static void parallelPrefix$3( - jni$_.JLongArray? js, - int i, - int i1, - jni$_.JObject? longBinaryOperator, + /// from: `static public int compare(T[] comparables, int i, int i1, T[] comparables1, int i2, int i3)` + static core$_.int compare$16<$T extends jni$_.JObject?>( + jni$_.JArray<$T?>? comparables, + core$_.int i, + core$_.int i1, + jni$_.JArray<$T?>? comparables1, + core$_.int i2, + core$_.int i3, ) { - final _$js = js?.reference ?? jni$_.jNullReference; - final _$longBinaryOperator = - longBinaryOperator?.reference ?? jni$_.jNullReference; - _parallelPrefix$3( - _class.reference.pointer, - _id_parallelPrefix$3 as jni$_.JMethodIDPtr, - _$js.pointer, - i, - i1, - _$longBinaryOperator.pointer) - .check(); + final _$$classRef = _class.reference; + final _$comparables = comparables?.reference ?? jni$_.jNullReference; + final _$comparables1 = comparables1?.reference ?? jni$_.jNullReference; + return _compare$16(_$$classRef.pointer, _id_compare$16.pointer, + _$comparables.pointer, i, i1, _$comparables1.pointer, i2, i3) + .integer; } - static final _id_parallelPrefix$4 = _class.staticMethodId( - r'parallelPrefix', - r'([DLjava/util/function/DoubleBinaryOperator;)V', + static final _id_compare$17 = _class.staticMethodId( + r'compare', + r'([Ljava/lang/Object;II[Ljava/lang/Object;IILjava/util/Comparator;)I', ); - static final _parallelPrefix$4 = jni$_.ProtectedJniExtensions.lookup< + static final _compare$17 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int, jni$_.Pointer)>(); - /// from: `static public void parallelPrefix(double[] ds, java.util.function.DoubleBinaryOperator doubleBinaryOperator)` - static void parallelPrefix$4( - jni$_.JDoubleArray? ds, - jni$_.JObject? doubleBinaryOperator, + /// from: `static public int compare(T[] objects, int i, int i1, T[] objects1, int i2, int i3, java.util.Comparator comparator)` + static core$_.int compare$17<$T extends jni$_.JObject?>( + jni$_.JArray<$T?>? objects, + core$_.int i, + core$_.int i1, + jni$_.JArray<$T?>? objects1, + core$_.int i2, + core$_.int i3, + Comparator? comparator, ) { - final _$ds = ds?.reference ?? jni$_.jNullReference; - final _$doubleBinaryOperator = - doubleBinaryOperator?.reference ?? jni$_.jNullReference; - _parallelPrefix$4( - _class.reference.pointer, - _id_parallelPrefix$4 as jni$_.JMethodIDPtr, - _$ds.pointer, - _$doubleBinaryOperator.pointer) - .check(); + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + final _$objects1 = objects1?.reference ?? jni$_.jNullReference; + final _$comparator = comparator?.reference ?? jni$_.jNullReference; + return _compare$17( + _$$classRef.pointer, + _id_compare$17.pointer, + _$objects.pointer, + i, + i1, + _$objects1.pointer, + i2, + i3, + _$comparator.pointer) + .integer; } - static final _id_parallelPrefix$5 = _class.staticMethodId( - r'parallelPrefix', - r'([DIILjava/util/function/DoubleBinaryOperator;)V', + static final _id_compare$18 = _class.staticMethodId( + r'compare', + r'([Ljava/lang/Comparable;[Ljava/lang/Comparable;)I', ); - static final _parallelPrefix$5 = jni$_.ProtectedJniExtensions.lookup< + static final _compare$18 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, jni$_.Pointer)>(); - /// from: `static public void parallelPrefix(double[] ds, int i, int i1, java.util.function.DoubleBinaryOperator doubleBinaryOperator)` - static void parallelPrefix$5( - jni$_.JDoubleArray? ds, - int i, - int i1, - jni$_.JObject? doubleBinaryOperator, + /// from: `static public int compare(T[] comparables, T[] comparables1)` + static core$_.int compare$18<$T extends jni$_.JObject?>( + jni$_.JArray<$T?>? comparables, + jni$_.JArray<$T?>? comparables1, ) { - final _$ds = ds?.reference ?? jni$_.jNullReference; - final _$doubleBinaryOperator = - doubleBinaryOperator?.reference ?? jni$_.jNullReference; - _parallelPrefix$5( - _class.reference.pointer, - _id_parallelPrefix$5 as jni$_.JMethodIDPtr, - _$ds.pointer, - i, - i1, - _$doubleBinaryOperator.pointer) - .check(); + final _$$classRef = _class.reference; + final _$comparables = comparables?.reference ?? jni$_.jNullReference; + final _$comparables1 = comparables1?.reference ?? jni$_.jNullReference; + return _compare$18(_$$classRef.pointer, _id_compare$18.pointer, + _$comparables.pointer, _$comparables1.pointer) + .integer; } - static final _id_parallelPrefix$6 = _class.staticMethodId( - r'parallelPrefix', - r'([ILjava/util/function/IntBinaryOperator;)V', + static final _id_compare$19 = _class.staticMethodId( + r'compare', + r'([Ljava/lang/Object;[Ljava/lang/Object;Ljava/util/Comparator;)I', ); - static final _parallelPrefix$6 = jni$_.ProtectedJniExtensions.lookup< + static final _compare$19 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( + jni$_.Pointer, jni$_.Pointer, jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, + jni$_.Pointer, jni$_.Pointer)>(); - /// from: `static public void parallelPrefix(int[] is, java.util.function.IntBinaryOperator intBinaryOperator)` - static void parallelPrefix$6( - jni$_.JIntArray? is$, - jni$_.JObject? intBinaryOperator, + /// from: `static public int compare(T[] objects, T[] objects1, java.util.Comparator comparator)` + static core$_.int compare$19<$T extends jni$_.JObject?>( + jni$_.JArray<$T?>? objects, + jni$_.JArray<$T?>? objects1, + Comparator? comparator, ) { - final _$is$ = is$?.reference ?? jni$_.jNullReference; - final _$intBinaryOperator = - intBinaryOperator?.reference ?? jni$_.jNullReference; - _parallelPrefix$6( - _class.reference.pointer, - _id_parallelPrefix$6 as jni$_.JMethodIDPtr, - _$is$.pointer, - _$intBinaryOperator.pointer) - .check(); + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + final _$objects1 = objects1?.reference ?? jni$_.jNullReference; + final _$comparator = comparator?.reference ?? jni$_.jNullReference; + return _compare$19(_$$classRef.pointer, _id_compare$19.pointer, + _$objects.pointer, _$objects1.pointer, _$comparator.pointer) + .integer; } - static final _id_parallelPrefix$7 = _class.staticMethodId( - r'parallelPrefix', - r'([IIILjava/util/function/IntBinaryOperator;)V', + static final _id_compareUnsigned = _class.staticMethodId( + r'compareUnsigned', + r'([B[B)I', ); - static final _parallelPrefix$7 = jni$_.ProtectedJniExtensions.lookup< + static final _compareUnsigned = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, jni$_.Pointer)>(); - /// from: `static public void parallelPrefix(int[] is, int i, int i1, java.util.function.IntBinaryOperator intBinaryOperator)` - static void parallelPrefix$7( - jni$_.JIntArray? is$, - int i, - int i1, - jni$_.JObject? intBinaryOperator, - ) { - final _$is$ = is$?.reference ?? jni$_.jNullReference; - final _$intBinaryOperator = - intBinaryOperator?.reference ?? jni$_.jNullReference; - _parallelPrefix$7( - _class.reference.pointer, - _id_parallelPrefix$7 as jni$_.JMethodIDPtr, - _$is$.pointer, - i, - i1, - _$intBinaryOperator.pointer) - .check(); - } - - static final _id_binarySearch = _class.staticMethodId( - r'binarySearch', - r'([JJ)I', - ); - - static final _binarySearch = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int64)>)>>( - 'globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); - - /// from: `static public int binarySearch(long[] js, long j)` - static int binarySearch( - jni$_.JLongArray? js, - int j, + /// from: `static public int compareUnsigned(byte[] bs, byte[] bs1)` + static core$_.int compareUnsigned( + jni$_.JByteArray? bs, + jni$_.JByteArray? bs1, ) { - final _$js = js?.reference ?? jni$_.jNullReference; - return _binarySearch(_class.reference.pointer, - _id_binarySearch as jni$_.JMethodIDPtr, _$js.pointer, j) + final _$$classRef = _class.reference; + final _$bs = bs?.reference ?? jni$_.jNullReference; + final _$bs1 = bs1?.reference ?? jni$_.jNullReference; + return _compareUnsigned(_$$classRef.pointer, _id_compareUnsigned.pointer, + _$bs.pointer, _$bs1.pointer) .integer; } - static final _id_binarySearch$1 = _class.staticMethodId( - r'binarySearch', - r'([JIIJ)I', + static final _id_compareUnsigned$1 = _class.staticMethodId( + r'compareUnsigned', + r'([BII[BII)I', ); - static final _binarySearch$1 = jni$_.ProtectedJniExtensions.lookup< + static final _compareUnsigned$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -30100,59 +25498,51 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.Int32, jni$_.Int32, - jni$_.Int64 + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32 )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public int binarySearch(long[] js, int i, int i1, long j)` - static int binarySearch$1( - jni$_.JLongArray? js, - int i, - int i1, - int j, + /// from: `static public int compareUnsigned(byte[] bs, int i, int i1, byte[] bs1, int i2, int i3)` + static core$_.int compareUnsigned$1( + jni$_.JByteArray? bs, + core$_.int i, + core$_.int i1, + jni$_.JByteArray? bs1, + core$_.int i2, + core$_.int i3, ) { - final _$js = js?.reference ?? jni$_.jNullReference; - return _binarySearch$1(_class.reference.pointer, - _id_binarySearch$1 as jni$_.JMethodIDPtr, _$js.pointer, i, i1, j) + final _$$classRef = _class.reference; + final _$bs = bs?.reference ?? jni$_.jNullReference; + final _$bs1 = bs1?.reference ?? jni$_.jNullReference; + return _compareUnsigned$1( + _$$classRef.pointer, + _id_compareUnsigned$1.pointer, + _$bs.pointer, + i, + i1, + _$bs1.pointer, + i2, + i3) .integer; } - static final _id_binarySearch$2 = _class.staticMethodId( - r'binarySearch', - r'([II)I', + static final _id_compareUnsigned$2 = _class.staticMethodId( + r'compareUnsigned', + r'([III[III)I', ); - static final _binarySearch$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); - - /// from: `static public int binarySearch(int[] is, int i)` - static int binarySearch$2( - jni$_.JIntArray? is$, - int i, - ) { - final _$is$ = is$?.reference ?? jni$_.jNullReference; - return _binarySearch$2(_class.reference.pointer, - _id_binarySearch$2 as jni$_.JMethodIDPtr, _$is$.pointer, i) - .integer; - } - - static final _id_binarySearch$3 = _class.staticMethodId( - r'binarySearch', - r'([IIII)I', - ); - - static final _binarySearch$3 = jni$_.ProtectedJniExtensions.lookup< + static final _compareUnsigned$2 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -30162,59 +25552,51 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.Int32, jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, jni$_.Int32 )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public int binarySearch(int[] is, int i, int i1, int i2)` - static int binarySearch$3( + /// from: `static public int compareUnsigned(int[] is, int i, int i1, int[] is1, int i2, int i3)` + static core$_.int compareUnsigned$2( jni$_.JIntArray? is$, - int i, - int i1, - int i2, + core$_.int i, + core$_.int i1, + jni$_.JIntArray? is1, + core$_.int i2, + core$_.int i3, ) { + final _$$classRef = _class.reference; final _$is$ = is$?.reference ?? jni$_.jNullReference; - return _binarySearch$3(_class.reference.pointer, - _id_binarySearch$3 as jni$_.JMethodIDPtr, _$is$.pointer, i, i1, i2) - .integer; - } - - static final _id_binarySearch$4 = _class.staticMethodId( - r'binarySearch', - r'([SS)I', - ); - - static final _binarySearch$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); - - /// from: `static public int binarySearch(short[] ss, short s)` - static int binarySearch$4( - jni$_.JShortArray? ss, - int s, - ) { - final _$ss = ss?.reference ?? jni$_.jNullReference; - return _binarySearch$4(_class.reference.pointer, - _id_binarySearch$4 as jni$_.JMethodIDPtr, _$ss.pointer, s) + final _$is1 = is1?.reference ?? jni$_.jNullReference; + return _compareUnsigned$2( + _$$classRef.pointer, + _id_compareUnsigned$2.pointer, + _$is$.pointer, + i, + i1, + _$is1.pointer, + i2, + i3) .integer; } - static final _id_binarySearch$5 = _class.staticMethodId( - r'binarySearch', - r'([SIIS)I', + static final _id_compareUnsigned$3 = _class.staticMethodId( + r'compareUnsigned', + r'([I[I)I', ); - static final _binarySearch$5 = jni$_.ProtectedJniExtensions.lookup< + static final _compareUnsigned$3 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -30222,61 +25604,34 @@ class Arrays extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Int32 + jni$_.Pointer )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int)>(); - - /// from: `static public int binarySearch(short[] ss, int i, int i1, short s)` - static int binarySearch$5( - jni$_.JShortArray? ss, - int i, - int i1, - int s, - ) { - final _$ss = ss?.reference ?? jni$_.jNullReference; - return _binarySearch$5(_class.reference.pointer, - _id_binarySearch$5 as jni$_.JMethodIDPtr, _$ss.pointer, i, i1, s) - .integer; - } - - static final _id_binarySearch$6 = _class.staticMethodId( - r'binarySearch', - r'([CC)I', - ); - - static final _binarySearch$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - /// from: `static public int binarySearch(char[] cs, char c)` - static int binarySearch$6( - jni$_.JCharArray? cs, - int c, + /// from: `static public int compareUnsigned(int[] is, int[] is1)` + static core$_.int compareUnsigned$3( + jni$_.JIntArray? is$, + jni$_.JIntArray? is1, ) { - final _$cs = cs?.reference ?? jni$_.jNullReference; - return _binarySearch$6(_class.reference.pointer, - _id_binarySearch$6 as jni$_.JMethodIDPtr, _$cs.pointer, c) + final _$$classRef = _class.reference; + final _$is$ = is$?.reference ?? jni$_.jNullReference; + final _$is1 = is1?.reference ?? jni$_.jNullReference; + return _compareUnsigned$3(_$$classRef.pointer, + _id_compareUnsigned$3.pointer, _$is$.pointer, _$is1.pointer) .integer; } - static final _id_binarySearch$7 = _class.staticMethodId( - r'binarySearch', - r'([CIIC)I', + static final _id_compareUnsigned$4 = _class.staticMethodId( + r'compareUnsigned', + r'([JII[JII)I', ); - static final _binarySearch$7 = jni$_.ProtectedJniExtensions.lookup< + static final _compareUnsigned$4 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -30286,59 +25641,51 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.Int32, jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, jni$_.Int32 )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int)>(); - - /// from: `static public int binarySearch(char[] cs, int i, int i1, char c)` - static int binarySearch$7( - jni$_.JCharArray? cs, - int i, - int i1, - int c, - ) { - final _$cs = cs?.reference ?? jni$_.jNullReference; - return _binarySearch$7(_class.reference.pointer, - _id_binarySearch$7 as jni$_.JMethodIDPtr, _$cs.pointer, i, i1, c) - .integer; - } - - static final _id_binarySearch$8 = _class.staticMethodId( - r'binarySearch', - r'([BB)I', - ); - - static final _binarySearch$8 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public int binarySearch(byte[] bs, byte b)` - static int binarySearch$8( - jni$_.JByteArray? bs, - int b, + /// from: `static public int compareUnsigned(long[] js, int i, int i1, long[] js1, int i2, int i3)` + static core$_.int compareUnsigned$4( + jni$_.JLongArray? js, + core$_.int i, + core$_.int i1, + jni$_.JLongArray? js1, + core$_.int i2, + core$_.int i3, ) { - final _$bs = bs?.reference ?? jni$_.jNullReference; - return _binarySearch$8(_class.reference.pointer, - _id_binarySearch$8 as jni$_.JMethodIDPtr, _$bs.pointer, b) + final _$$classRef = _class.reference; + final _$js = js?.reference ?? jni$_.jNullReference; + final _$js1 = js1?.reference ?? jni$_.jNullReference; + return _compareUnsigned$4( + _$$classRef.pointer, + _id_compareUnsigned$4.pointer, + _$js.pointer, + i, + i1, + _$js1.pointer, + i2, + i3) .integer; } - static final _id_binarySearch$9 = _class.staticMethodId( - r'binarySearch', - r'([BIIB)I', + static final _id_compareUnsigned$5 = _class.staticMethodId( + r'compareUnsigned', + r'([J[J)I', ); - static final _binarySearch$9 = jni$_.ProtectedJniExtensions.lookup< + static final _compareUnsigned$5 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -30346,33 +25693,34 @@ class Arrays extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Int32 + jni$_.Pointer )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - /// from: `static public int binarySearch(byte[] bs, int i, int i1, byte b)` - static int binarySearch$9( - jni$_.JByteArray? bs, - int i, - int i1, - int b, + /// from: `static public int compareUnsigned(long[] js, long[] js1)` + static core$_.int compareUnsigned$5( + jni$_.JLongArray? js, + jni$_.JLongArray? js1, ) { - final _$bs = bs?.reference ?? jni$_.jNullReference; - return _binarySearch$9(_class.reference.pointer, - _id_binarySearch$9 as jni$_.JMethodIDPtr, _$bs.pointer, i, i1, b) + final _$$classRef = _class.reference; + final _$js = js?.reference ?? jni$_.jNullReference; + final _$js1 = js1?.reference ?? jni$_.jNullReference; + return _compareUnsigned$5(_$$classRef.pointer, + _id_compareUnsigned$5.pointer, _$js.pointer, _$js1.pointer) .integer; } - static final _id_binarySearch$10 = _class.staticMethodId( - r'binarySearch', - r'([DD)I', + static final _id_compareUnsigned$6 = _class.staticMethodId( + r'compareUnsigned', + r'([SII[SII)I', ); - static final _binarySearch$10 = jni$_.ProtectedJniExtensions.lookup< + static final _compareUnsigned$6 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -30380,29 +25728,53 @@ class Arrays extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Double + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32 )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, double)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public int binarySearch(double[] ds, double d)` - static int binarySearch$10( - jni$_.JDoubleArray? ds, - double d, + /// from: `static public int compareUnsigned(short[] ss, int i, int i1, short[] ss1, int i2, int i3)` + static core$_.int compareUnsigned$6( + jni$_.JShortArray? ss, + core$_.int i, + core$_.int i1, + jni$_.JShortArray? ss1, + core$_.int i2, + core$_.int i3, ) { - final _$ds = ds?.reference ?? jni$_.jNullReference; - return _binarySearch$10(_class.reference.pointer, - _id_binarySearch$10 as jni$_.JMethodIDPtr, _$ds.pointer, d) + final _$$classRef = _class.reference; + final _$ss = ss?.reference ?? jni$_.jNullReference; + final _$ss1 = ss1?.reference ?? jni$_.jNullReference; + return _compareUnsigned$6( + _$$classRef.pointer, + _id_compareUnsigned$6.pointer, + _$ss.pointer, + i, + i1, + _$ss1.pointer, + i2, + i3) .integer; } - static final _id_binarySearch$11 = _class.staticMethodId( - r'binarySearch', - r'([DIID)I', + static final _id_compareUnsigned$7 = _class.staticMethodId( + r'compareUnsigned', + r'([S[S)I', ); - static final _binarySearch$11 = jni$_.ProtectedJniExtensions.lookup< + static final _compareUnsigned$7 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -30410,107 +25782,297 @@ class Arrays extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Double + jni$_.Pointer )>)>>('globalEnv_CallStaticIntMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - double)>(); + jni$_.Pointer)>(); - /// from: `static public int binarySearch(double[] ds, int i, int i1, double d)` - static int binarySearch$11( - jni$_.JDoubleArray? ds, - int i, - int i1, - double d, + /// from: `static public int compareUnsigned(short[] ss, short[] ss1)` + static core$_.int compareUnsigned$7( + jni$_.JShortArray? ss, + jni$_.JShortArray? ss1, ) { - final _$ds = ds?.reference ?? jni$_.jNullReference; - return _binarySearch$11(_class.reference.pointer, - _id_binarySearch$11 as jni$_.JMethodIDPtr, _$ds.pointer, i, i1, d) + final _$$classRef = _class.reference; + final _$ss = ss?.reference ?? jni$_.jNullReference; + final _$ss1 = ss1?.reference ?? jni$_.jNullReference; + return _compareUnsigned$7(_$$classRef.pointer, + _id_compareUnsigned$7.pointer, _$ss.pointer, _$ss1.pointer) .integer; } - static final _id_binarySearch$12 = _class.staticMethodId( - r'binarySearch', - r'([FF)I', + static final _id_copyOf = _class.staticMethodId( + r'copyOf', + r'([ZI)[Z', ); - static final _binarySearch$12 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Double - )>)>>('globalEnv_CallStaticIntMethod') + static final _copyOf = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_ + .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( + 'globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, double)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); - /// from: `static public int binarySearch(float[] fs, float f)` - static int binarySearch$12( - jni$_.JFloatArray? fs, - double f, + /// from: `static public boolean[] copyOf(boolean[] zs, int i)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JBooleanArray? copyOf( + jni$_.JBooleanArray? zs, + core$_.int i, ) { - final _$fs = fs?.reference ?? jni$_.jNullReference; - return _binarySearch$12(_class.reference.pointer, - _id_binarySearch$12 as jni$_.JMethodIDPtr, _$fs.pointer, f) - .integer; + final _$$classRef = _class.reference; + final _$zs = zs?.reference ?? jni$_.jNullReference; + return _copyOf(_$$classRef.pointer, _id_copyOf.pointer, _$zs.pointer, i) + .object(); } - static final _id_binarySearch$13 = _class.staticMethodId( - r'binarySearch', - r'([FIIF)I', + static final _id_copyOf$1 = _class.staticMethodId( + r'copyOf', + r'([BI)[B', ); - static final _binarySearch$13 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Double - )>)>>('globalEnv_CallStaticIntMethod') + static final _copyOf$1 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_ + .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( + 'globalEnv_CallStaticObjectMethod') .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - int, - int, - double)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); - /// from: `static public int binarySearch(float[] fs, int i, int i1, float f)` - static int binarySearch$13( + /// from: `static public byte[] copyOf(byte[] bs, int i)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JByteArray? copyOf$1( + jni$_.JByteArray? bs, + core$_.int i, + ) { + final _$$classRef = _class.reference; + final _$bs = bs?.reference ?? jni$_.jNullReference; + return _copyOf$1(_$$classRef.pointer, _id_copyOf$1.pointer, _$bs.pointer, i) + .object(); + } + + static final _id_copyOf$2 = _class.staticMethodId( + r'copyOf', + r'([CI)[C', + ); + + static final _copyOf$2 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_ + .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); + + /// from: `static public char[] copyOf(char[] cs, int i)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JCharArray? copyOf$2( + jni$_.JCharArray? cs, + core$_.int i, + ) { + final _$$classRef = _class.reference; + final _$cs = cs?.reference ?? jni$_.jNullReference; + return _copyOf$2(_$$classRef.pointer, _id_copyOf$2.pointer, _$cs.pointer, i) + .object(); + } + + static final _id_copyOf$3 = _class.staticMethodId( + r'copyOf', + r'([DI)[D', + ); + + static final _copyOf$3 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_ + .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); + + /// from: `static public double[] copyOf(double[] ds, int i)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JDoubleArray? copyOf$3( + jni$_.JDoubleArray? ds, + core$_.int i, + ) { + final _$$classRef = _class.reference; + final _$ds = ds?.reference ?? jni$_.jNullReference; + return _copyOf$3(_$$classRef.pointer, _id_copyOf$3.pointer, _$ds.pointer, i) + .object(); + } + + static final _id_copyOf$4 = _class.staticMethodId( + r'copyOf', + r'([FI)[F', + ); + + static final _copyOf$4 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_ + .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); + + /// from: `static public float[] copyOf(float[] fs, int i)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JFloatArray? copyOf$4( jni$_.JFloatArray? fs, - int i, - int i1, - double f, + core$_.int i, ) { + final _$$classRef = _class.reference; final _$fs = fs?.reference ?? jni$_.jNullReference; - return _binarySearch$13(_class.reference.pointer, - _id_binarySearch$13 as jni$_.JMethodIDPtr, _$fs.pointer, i, i1, f) - .integer; + return _copyOf$4(_$$classRef.pointer, _id_copyOf$4.pointer, _$fs.pointer, i) + .object(); } - static final _id_binarySearch$14 = _class.staticMethodId( - r'binarySearch', - r'([Ljava/lang/Object;Ljava/lang/Object;)I', + static final _id_copyOf$5 = _class.staticMethodId( + r'copyOf', + r'([II)[I', ); - static final _binarySearch$14 = jni$_.ProtectedJniExtensions.lookup< + static final _copyOf$5 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_ + .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); + + /// from: `static public int[] copyOf(int[] is, int i)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JIntArray? copyOf$5( + jni$_.JIntArray? is$, + core$_.int i, + ) { + final _$$classRef = _class.reference; + final _$is$ = is$?.reference ?? jni$_.jNullReference; + return _copyOf$5( + _$$classRef.pointer, _id_copyOf$5.pointer, _$is$.pointer, i) + .object(); + } + + static final _id_copyOf$6 = _class.staticMethodId( + r'copyOf', + r'([JI)[J', + ); + + static final _copyOf$6 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_ + .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); + + /// from: `static public long[] copyOf(long[] js, int i)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JLongArray? copyOf$6( + jni$_.JLongArray? js, + core$_.int i, + ) { + final _$$classRef = _class.reference; + final _$js = js?.reference ?? jni$_.jNullReference; + return _copyOf$6(_$$classRef.pointer, _id_copyOf$6.pointer, _$js.pointer, i) + .object(); + } + + static final _id_copyOf$7 = _class.staticMethodId( + r'copyOf', + r'([SI)[S', + ); + + static final _copyOf$7 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_ + .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); + + /// from: `static public short[] copyOf(short[] ss, int i)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JShortArray? copyOf$7( + jni$_.JShortArray? ss, + core$_.int i, + ) { + final _$$classRef = _class.reference; + final _$ss = ss?.reference ?? jni$_.jNullReference; + return _copyOf$7(_$$classRef.pointer, _id_copyOf$7.pointer, _$ss.pointer, i) + .object(); + } + + static final _id_copyOf$8 = _class.staticMethodId( + r'copyOf', + r'([Ljava/lang/Object;I)[Ljava/lang/Object;', + ); + + static final _copyOf$8 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_ + .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); + + /// from: `static public T[] copyOf(T[] objects, int i)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JArray<$T?>? copyOf$8<$T extends jni$_.JObject?>( + jni$_.JArray<$T?>? objects, + core$_.int i, + ) { + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + return _copyOf$8( + _$$classRef.pointer, _id_copyOf$8.pointer, _$objects.pointer, i) + .object?>(); + } + + static final _id_copyOf$9 = _class.staticMethodId( + r'copyOf', + r'([Ljava/lang/Object;ILjava/lang/Class;)[Ljava/lang/Object;', + ); + + static final _copyOf$9 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -30518,36 +26080,39 @@ class Arrays extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, + jni$_.Int32, jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, + core$_.int, jni$_.Pointer)>(); - /// from: `static public int binarySearch(java.lang.Object[] objects, java.lang.Object object)` - static int binarySearch$14( - jni$_.JArray? objects, - jni$_.JObject? object, + /// from: `static public T[] copyOf(U[] objects, int i, java.lang.Class class)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JArray<$T?>? + copyOf$9<$T extends jni$_.JObject?, $U extends jni$_.JObject?>( + jni$_.JArray<$U?>? objects, + core$_.int i, + jni$_.JClass? class$, ) { + final _$$classRef = _class.reference; final _$objects = objects?.reference ?? jni$_.jNullReference; - final _$object = object?.reference ?? jni$_.jNullReference; - return _binarySearch$14( - _class.reference.pointer, - _id_binarySearch$14 as jni$_.JMethodIDPtr, - _$objects.pointer, - _$object.pointer) - .integer; + final _$class$ = class$?.reference ?? jni$_.jNullReference; + return _copyOf$9(_$$classRef.pointer, _id_copyOf$9.pointer, + _$objects.pointer, i, _$class$.pointer) + .object?>(); } - static final _id_binarySearch$15 = _class.staticMethodId( - r'binarySearch', - r'([Ljava/lang/Object;IILjava/lang/Object;)I', + static final _id_copyOfRange = _class.staticMethodId( + r'copyOfRange', + r'([ZII)[Z', ); - static final _binarySearch$15 = jni$_.ProtectedJniExtensions.lookup< + static final _copyOfRange = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -30556,43 +26121,36 @@ class Arrays extends jni$_.JObject { ( jni$_.Pointer, jni$_.Int32, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + jni$_.Int32 + )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - jni$_.Pointer)>(); + core$_.int, + core$_.int)>(); - /// from: `static public int binarySearch(java.lang.Object[] objects, int i, int i1, java.lang.Object object)` - static int binarySearch$15( - jni$_.JArray? objects, - int i, - int i1, - jni$_.JObject? object, + /// from: `static public boolean[] copyOfRange(boolean[] zs, int i, int i1)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JBooleanArray? copyOfRange( + jni$_.JBooleanArray? zs, + core$_.int i, + core$_.int i1, ) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - final _$object = object?.reference ?? jni$_.jNullReference; - return _binarySearch$15( - _class.reference.pointer, - _id_binarySearch$15 as jni$_.JMethodIDPtr, - _$objects.pointer, - i, - i1, - _$object.pointer) - .integer; + final _$$classRef = _class.reference; + final _$zs = zs?.reference ?? jni$_.jNullReference; + return _copyOfRange( + _$$classRef.pointer, _id_copyOfRange.pointer, _$zs.pointer, i, i1) + .object(); } - static final _id_binarySearch$16 = _class.staticMethodId( - r'binarySearch', - r'([Ljava/lang/Object;Ljava/lang/Object;Ljava/util/Comparator;)I', + static final _id_copyOfRange$1 = _class.staticMethodId( + r'copyOfRange', + r'([BII)[B', ); - static final _binarySearch$16 = jni$_.ProtectedJniExtensions.lookup< + static final _copyOfRange$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -30600,42 +26158,37 @@ class Arrays extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + jni$_.Int32, + jni$_.Int32 + )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer)>(); + core$_.int, + core$_.int)>(); - /// from: `static public int binarySearch(java.lang.Object[] objects, T object, java.util.Comparator comparator)` - static int binarySearch$16<$T extends jni$_.JObject?>( - jni$_.JArray<$T?>? objects, - $T? object, - jni$_.JObject? comparator, { - required jni$_.JObjType<$T> T, - }) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - final _$object = object?.reference ?? jni$_.jNullReference; - final _$comparator = comparator?.reference ?? jni$_.jNullReference; - return _binarySearch$16( - _class.reference.pointer, - _id_binarySearch$16 as jni$_.JMethodIDPtr, - _$objects.pointer, - _$object.pointer, - _$comparator.pointer) - .integer; + /// from: `static public byte[] copyOfRange(byte[] bs, int i, int i1)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JByteArray? copyOfRange$1( + jni$_.JByteArray? bs, + core$_.int i, + core$_.int i1, + ) { + final _$$classRef = _class.reference; + final _$bs = bs?.reference ?? jni$_.jNullReference; + return _copyOfRange$1( + _$$classRef.pointer, _id_copyOfRange$1.pointer, _$bs.pointer, i, i1) + .object(); } - static final _id_binarySearch$17 = _class.staticMethodId( - r'binarySearch', - r'([Ljava/lang/Object;IILjava/lang/Object;Ljava/util/Comparator;)I', + static final _id_copyOfRange$2 = _class.staticMethodId( + r'copyOfRange', + r'([CII)[C', ); - static final _binarySearch$17 = jni$_.ProtectedJniExtensions.lookup< + static final _copyOfRange$2 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -30644,49 +26197,36 @@ class Arrays extends jni$_.JObject { ( jni$_.Pointer, jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + jni$_.Int32 + )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - jni$_.Pointer, - jni$_.Pointer)>(); + core$_.int, + core$_.int)>(); - /// from: `static public int binarySearch(java.lang.Object[] objects, int i, int i1, T object, java.util.Comparator comparator)` - static int binarySearch$17<$T extends jni$_.JObject?>( - jni$_.JArray<$T?>? objects, - int i, - int i1, - $T? object, - jni$_.JObject? comparator, { - required jni$_.JObjType<$T> T, - }) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - final _$object = object?.reference ?? jni$_.jNullReference; - final _$comparator = comparator?.reference ?? jni$_.jNullReference; - return _binarySearch$17( - _class.reference.pointer, - _id_binarySearch$17 as jni$_.JMethodIDPtr, - _$objects.pointer, - i, - i1, - _$object.pointer, - _$comparator.pointer) - .integer; + /// from: `static public char[] copyOfRange(char[] cs, int i, int i1)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JCharArray? copyOfRange$2( + jni$_.JCharArray? cs, + core$_.int i, + core$_.int i1, + ) { + final _$$classRef = _class.reference; + final _$cs = cs?.reference ?? jni$_.jNullReference; + return _copyOfRange$2( + _$$classRef.pointer, _id_copyOfRange$2.pointer, _$cs.pointer, i, i1) + .object(); } - static final _id_equals = _class.staticMethodId( - r'equals', - r'([J[J)Z', + static final _id_copyOfRange$3 = _class.staticMethodId( + r'copyOfRange', + r'([DII)[D', ); - static final _equals = jni$_.ProtectedJniExtensions.lookup< + static final _copyOfRange$3 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -30694,86 +26234,75 @@ class Arrays extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticBooleanMethod') + jni$_.Int32, + jni$_.Int32 + )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + core$_.int, + core$_.int)>(); - /// from: `static public boolean equals(long[] js, long[] js1)` - static bool equals( - jni$_.JLongArray? js, - jni$_.JLongArray? js1, + /// from: `static public double[] copyOfRange(double[] ds, int i, int i1)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JDoubleArray? copyOfRange$3( + jni$_.JDoubleArray? ds, + core$_.int i, + core$_.int i1, ) { - final _$js = js?.reference ?? jni$_.jNullReference; - final _$js1 = js1?.reference ?? jni$_.jNullReference; - return _equals(_class.reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$js.pointer, _$js1.pointer) - .boolean; + final _$$classRef = _class.reference; + final _$ds = ds?.reference ?? jni$_.jNullReference; + return _copyOfRange$3( + _$$classRef.pointer, _id_copyOfRange$3.pointer, _$ds.pointer, i, i1) + .object(); } - static final _id_equals$1 = _class.staticMethodId( - r'equals', - r'([JII[JII)Z', + static final _id_copyOfRange$4 = _class.staticMethodId( + r'copyOfRange', + r'([FII)[F', ); - static final _equals$1 = jni$_.ProtectedJniExtensions.lookup< + static final _copyOfRange$4 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticBooleanMethod') + )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); + core$_.int, + core$_.int)>(); - /// from: `static public boolean equals(long[] js, int i, int i1, long[] js1, int i2, int i3)` - static bool equals$1( - jni$_.JLongArray? js, - int i, - int i1, - jni$_.JLongArray? js1, - int i2, - int i3, + /// from: `static public float[] copyOfRange(float[] fs, int i, int i1)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JFloatArray? copyOfRange$4( + jni$_.JFloatArray? fs, + core$_.int i, + core$_.int i1, ) { - final _$js = js?.reference ?? jni$_.jNullReference; - final _$js1 = js1?.reference ?? jni$_.jNullReference; - return _equals$1( - _class.reference.pointer, - _id_equals$1 as jni$_.JMethodIDPtr, - _$js.pointer, - i, - i1, - _$js1.pointer, - i2, - i3) - .boolean; + final _$$classRef = _class.reference; + final _$fs = fs?.reference ?? jni$_.jNullReference; + return _copyOfRange$4( + _$$classRef.pointer, _id_copyOfRange$4.pointer, _$fs.pointer, i, i1) + .object(); } - static final _id_equals$2 = _class.staticMethodId( - r'equals', - r'([I[I)Z', + static final _id_copyOfRange$5 = _class.staticMethodId( + r'copyOfRange', + r'([III)[I', ); - static final _equals$2 = jni$_.ProtectedJniExtensions.lookup< + static final _copyOfRange$5 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -30781,86 +26310,75 @@ class Arrays extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticBooleanMethod') + jni$_.Int32, + jni$_.Int32 + )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + core$_.int, + core$_.int)>(); - /// from: `static public boolean equals(int[] is, int[] is1)` - static bool equals$2( + /// from: `static public int[] copyOfRange(int[] is, int i, int i1)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JIntArray? copyOfRange$5( jni$_.JIntArray? is$, - jni$_.JIntArray? is1, + core$_.int i, + core$_.int i1, ) { + final _$$classRef = _class.reference; final _$is$ = is$?.reference ?? jni$_.jNullReference; - final _$is1 = is1?.reference ?? jni$_.jNullReference; - return _equals$2(_class.reference.pointer, - _id_equals$2 as jni$_.JMethodIDPtr, _$is$.pointer, _$is1.pointer) - .boolean; + return _copyOfRange$5(_$$classRef.pointer, _id_copyOfRange$5.pointer, + _$is$.pointer, i, i1) + .object(); } - static final _id_equals$3 = _class.staticMethodId( - r'equals', - r'([III[III)Z', + static final _id_copyOfRange$6 = _class.staticMethodId( + r'copyOfRange', + r'([JII)[J', ); - static final _equals$3 = jni$_.ProtectedJniExtensions.lookup< + static final _copyOfRange$6 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticBooleanMethod') + )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); + core$_.int, + core$_.int)>(); - /// from: `static public boolean equals(int[] is, int i, int i1, int[] is1, int i2, int i3)` - static bool equals$3( - jni$_.JIntArray? is$, - int i, - int i1, - jni$_.JIntArray? is1, - int i2, - int i3, + /// from: `static public long[] copyOfRange(long[] js, int i, int i1)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JLongArray? copyOfRange$6( + jni$_.JLongArray? js, + core$_.int i, + core$_.int i1, ) { - final _$is$ = is$?.reference ?? jni$_.jNullReference; - final _$is1 = is1?.reference ?? jni$_.jNullReference; - return _equals$3( - _class.reference.pointer, - _id_equals$3 as jni$_.JMethodIDPtr, - _$is$.pointer, - i, - i1, - _$is1.pointer, - i2, - i3) - .boolean; + final _$$classRef = _class.reference; + final _$js = js?.reference ?? jni$_.jNullReference; + return _copyOfRange$6( + _$$classRef.pointer, _id_copyOfRange$6.pointer, _$js.pointer, i, i1) + .object(); } - static final _id_equals$4 = _class.staticMethodId( - r'equals', - r'([S[S)Z', + static final _id_copyOfRange$7 = _class.staticMethodId( + r'copyOfRange', + r'([SII)[S', ); - static final _equals$4 = jni$_.ProtectedJniExtensions.lookup< + static final _copyOfRange$7 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -30868,86 +26386,75 @@ class Arrays extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticBooleanMethod') + jni$_.Int32, + jni$_.Int32 + )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + core$_.int, + core$_.int)>(); - /// from: `static public boolean equals(short[] ss, short[] ss1)` - static bool equals$4( + /// from: `static public short[] copyOfRange(short[] ss, int i, int i1)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JShortArray? copyOfRange$7( jni$_.JShortArray? ss, - jni$_.JShortArray? ss1, + core$_.int i, + core$_.int i1, ) { + final _$$classRef = _class.reference; final _$ss = ss?.reference ?? jni$_.jNullReference; - final _$ss1 = ss1?.reference ?? jni$_.jNullReference; - return _equals$4(_class.reference.pointer, - _id_equals$4 as jni$_.JMethodIDPtr, _$ss.pointer, _$ss1.pointer) - .boolean; + return _copyOfRange$7( + _$$classRef.pointer, _id_copyOfRange$7.pointer, _$ss.pointer, i, i1) + .object(); } - static final _id_equals$5 = _class.staticMethodId( - r'equals', - r'([SII[SII)Z', + static final _id_copyOfRange$8 = _class.staticMethodId( + r'copyOfRange', + r'([Ljava/lang/Object;II)[Ljava/lang/Object;', ); - static final _equals$5 = jni$_.ProtectedJniExtensions.lookup< + static final _copyOfRange$8 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticBooleanMethod') + )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); + core$_.int, + core$_.int)>(); - /// from: `static public boolean equals(short[] ss, int i, int i1, short[] ss1, int i2, int i3)` - static bool equals$5( - jni$_.JShortArray? ss, - int i, - int i1, - jni$_.JShortArray? ss1, - int i2, - int i3, + /// from: `static public T[] copyOfRange(T[] objects, int i, int i1)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JArray<$T?>? copyOfRange$8<$T extends jni$_.JObject?>( + jni$_.JArray<$T?>? objects, + core$_.int i, + core$_.int i1, ) { - final _$ss = ss?.reference ?? jni$_.jNullReference; - final _$ss1 = ss1?.reference ?? jni$_.jNullReference; - return _equals$5( - _class.reference.pointer, - _id_equals$5 as jni$_.JMethodIDPtr, - _$ss.pointer, - i, - i1, - _$ss1.pointer, - i2, - i3) - .boolean; + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + return _copyOfRange$8(_$$classRef.pointer, _id_copyOfRange$8.pointer, + _$objects.pointer, i, i1) + .object?>(); } - static final _id_equals$6 = _class.staticMethodId( - r'equals', - r'([C[C)Z', + static final _id_copyOfRange$9 = _class.staticMethodId( + r'copyOfRange', + r'([Ljava/lang/Object;IILjava/lang/Class;)[Ljava/lang/Object;', ); - static final _equals$6 = jni$_.ProtectedJniExtensions.lookup< + static final _copyOfRange$9 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -30955,33 +26462,167 @@ class Arrays extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, jni$_.Pointer - )>)>>('globalEnv_CallStaticBooleanMethod') + )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, + core$_.int, + core$_.int, jni$_.Pointer)>(); - /// from: `static public boolean equals(char[] cs, char[] cs1)` - static bool equals$6( - jni$_.JCharArray? cs, - jni$_.JCharArray? cs1, + /// from: `static public T[] copyOfRange(U[] objects, int i, int i1, java.lang.Class class)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JArray<$T?>? + copyOfRange$9<$T extends jni$_.JObject?, $U extends jni$_.JObject?>( + jni$_.JArray<$U?>? objects, + core$_.int i, + core$_.int i1, + jni$_.JClass? class$, ) { - final _$cs = cs?.reference ?? jni$_.jNullReference; - final _$cs1 = cs1?.reference ?? jni$_.jNullReference; - return _equals$6(_class.reference.pointer, - _id_equals$6 as jni$_.JMethodIDPtr, _$cs.pointer, _$cs1.pointer) - .boolean; + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + final _$class$ = class$?.reference ?? jni$_.jNullReference; + return _copyOfRange$9(_$$classRef.pointer, _id_copyOfRange$9.pointer, + _$objects.pointer, i, i1, _$class$.pointer) + .object?>(); } - static final _id_equals$7 = _class.staticMethodId( - r'equals', - r'([CII[CII)Z', + static final _id_deepEquals = _class.staticMethodId( + r'deepEquals', + r'([Ljava/lang/Object;[Ljava/lang/Object;)Z', ); - static final _equals$7 = jni$_.ProtectedJniExtensions.lookup< + static final _deepEquals = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); + + /// from: `static public boolean deepEquals(java.lang.Object[] objects, java.lang.Object[] objects1)` + static core$_.bool deepEquals( + jni$_.JArray? objects, + jni$_.JArray? objects1, + ) { + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + final _$objects1 = objects1?.reference ?? jni$_.jNullReference; + return _deepEquals(_$$classRef.pointer, _id_deepEquals.pointer, + _$objects.pointer, _$objects1.pointer) + .boolean; + } + + static final _id_deepHashCode = _class.staticMethodId( + r'deepHashCode', + r'([Ljava/lang/Object;)I', + ); + + static final _deepHashCode = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `static public int deepHashCode(java.lang.Object[] objects)` + static core$_.int deepHashCode( + jni$_.JArray? objects, + ) { + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + return _deepHashCode( + _$$classRef.pointer, _id_deepHashCode.pointer, _$objects.pointer) + .integer; + } + + static final _id_deepToString = _class.staticMethodId( + r'deepToString', + r'([Ljava/lang/Object;)Ljava/lang/String;', + ); + + static final _deepToString = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `static public java.lang.String deepToString(java.lang.Object[] objects)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JString? deepToString( + jni$_.JArray? objects, + ) { + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + return _deepToString( + _$$classRef.pointer, _id_deepToString.pointer, _$objects.pointer) + .object(); + } + + static final _id_equals = _class.staticMethodId( + r'equals', + r'([Z[Z)Z', + ); + + static final _equals = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); + + /// from: `static public boolean equals(boolean[] zs, boolean[] zs1)` + static core$_.bool equals( + jni$_.JBooleanArray? zs, + jni$_.JBooleanArray? zs1, + ) { + final _$$classRef = _class.reference; + final _$zs = zs?.reference ?? jni$_.jNullReference; + final _$zs1 = zs1?.reference ?? jni$_.jNullReference; + return _equals(_$$classRef.pointer, _id_equals.pointer, _$zs.pointer, + _$zs1.pointer) + .boolean; + } + + static final _id_equals$1 = _class.staticMethodId( + r'equals', + r'([ZII[ZII)Z', + ); + + static final _equals$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -31000,41 +26641,35 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, + core$_.int, + core$_.int, jni$_.Pointer, - int, - int)>(); + core$_.int, + core$_.int)>(); - /// from: `static public boolean equals(char[] cs, int i, int i1, char[] cs1, int i2, int i3)` - static bool equals$7( - jni$_.JCharArray? cs, - int i, - int i1, - jni$_.JCharArray? cs1, - int i2, - int i3, + /// from: `static public boolean equals(boolean[] zs, int i, int i1, boolean[] zs1, int i2, int i3)` + static core$_.bool equals$1( + jni$_.JBooleanArray? zs, + core$_.int i, + core$_.int i1, + jni$_.JBooleanArray? zs1, + core$_.int i2, + core$_.int i3, ) { - final _$cs = cs?.reference ?? jni$_.jNullReference; - final _$cs1 = cs1?.reference ?? jni$_.jNullReference; - return _equals$7( - _class.reference.pointer, - _id_equals$7 as jni$_.JMethodIDPtr, - _$cs.pointer, - i, - i1, - _$cs1.pointer, - i2, - i3) + final _$$classRef = _class.reference; + final _$zs = zs?.reference ?? jni$_.jNullReference; + final _$zs1 = zs1?.reference ?? jni$_.jNullReference; + return _equals$1(_$$classRef.pointer, _id_equals$1.pointer, _$zs.pointer, i, + i1, _$zs1.pointer, i2, i3) .boolean; } - static final _id_equals$8 = _class.staticMethodId( + static final _id_equals$2 = _class.staticMethodId( r'equals', r'([B[B)Z', ); - static final _equals$8 = jni$_.ProtectedJniExtensions.lookup< + static final _equals$2 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -31052,23 +26687,24 @@ class Arrays extends jni$_.JObject { jni$_.Pointer)>(); /// from: `static public boolean equals(byte[] bs, byte[] bs1)` - static bool equals$8( + static core$_.bool equals$2( jni$_.JByteArray? bs, jni$_.JByteArray? bs1, ) { + final _$$classRef = _class.reference; final _$bs = bs?.reference ?? jni$_.jNullReference; final _$bs1 = bs1?.reference ?? jni$_.jNullReference; - return _equals$8(_class.reference.pointer, - _id_equals$8 as jni$_.JMethodIDPtr, _$bs.pointer, _$bs1.pointer) + return _equals$2(_$$classRef.pointer, _id_equals$2.pointer, _$bs.pointer, + _$bs1.pointer) .boolean; } - static final _id_equals$9 = _class.staticMethodId( + static final _id_equals$3 = _class.staticMethodId( r'equals', r'([BII[BII)Z', ); - static final _equals$9 = jni$_.ProtectedJniExtensions.lookup< + static final _equals$3 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -31087,41 +26723,35 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, + core$_.int, + core$_.int, jni$_.Pointer, - int, - int)>(); + core$_.int, + core$_.int)>(); /// from: `static public boolean equals(byte[] bs, int i, int i1, byte[] bs1, int i2, int i3)` - static bool equals$9( + static core$_.bool equals$3( jni$_.JByteArray? bs, - int i, - int i1, + core$_.int i, + core$_.int i1, jni$_.JByteArray? bs1, - int i2, - int i3, + core$_.int i2, + core$_.int i3, ) { + final _$$classRef = _class.reference; final _$bs = bs?.reference ?? jni$_.jNullReference; final _$bs1 = bs1?.reference ?? jni$_.jNullReference; - return _equals$9( - _class.reference.pointer, - _id_equals$9 as jni$_.JMethodIDPtr, - _$bs.pointer, - i, - i1, - _$bs1.pointer, - i2, - i3) + return _equals$3(_$$classRef.pointer, _id_equals$3.pointer, _$bs.pointer, i, + i1, _$bs1.pointer, i2, i3) .boolean; } - static final _id_equals$10 = _class.staticMethodId( + static final _id_equals$4 = _class.staticMethodId( r'equals', - r'([Z[Z)Z', + r'([C[C)Z', ); - static final _equals$10 = jni$_.ProtectedJniExtensions.lookup< + static final _equals$4 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -31138,24 +26768,25 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `static public boolean equals(boolean[] zs, boolean[] zs1)` - static bool equals$10( - jni$_.JBooleanArray? zs, - jni$_.JBooleanArray? zs1, + /// from: `static public boolean equals(char[] cs, char[] cs1)` + static core$_.bool equals$4( + jni$_.JCharArray? cs, + jni$_.JCharArray? cs1, ) { - final _$zs = zs?.reference ?? jni$_.jNullReference; - final _$zs1 = zs1?.reference ?? jni$_.jNullReference; - return _equals$10(_class.reference.pointer, - _id_equals$10 as jni$_.JMethodIDPtr, _$zs.pointer, _$zs1.pointer) + final _$$classRef = _class.reference; + final _$cs = cs?.reference ?? jni$_.jNullReference; + final _$cs1 = cs1?.reference ?? jni$_.jNullReference; + return _equals$4(_$$classRef.pointer, _id_equals$4.pointer, _$cs.pointer, + _$cs1.pointer) .boolean; } - static final _id_equals$11 = _class.staticMethodId( + static final _id_equals$5 = _class.staticMethodId( r'equals', - r'([ZII[ZII)Z', + r'([CII[CII)Z', ); - static final _equals$11 = jni$_.ProtectedJniExtensions.lookup< + static final _equals$5 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -31174,41 +26805,35 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, + core$_.int, + core$_.int, jni$_.Pointer, - int, - int)>(); + core$_.int, + core$_.int)>(); - /// from: `static public boolean equals(boolean[] zs, int i, int i1, boolean[] zs1, int i2, int i3)` - static bool equals$11( - jni$_.JBooleanArray? zs, - int i, - int i1, - jni$_.JBooleanArray? zs1, - int i2, - int i3, + /// from: `static public boolean equals(char[] cs, int i, int i1, char[] cs1, int i2, int i3)` + static core$_.bool equals$5( + jni$_.JCharArray? cs, + core$_.int i, + core$_.int i1, + jni$_.JCharArray? cs1, + core$_.int i2, + core$_.int i3, ) { - final _$zs = zs?.reference ?? jni$_.jNullReference; - final _$zs1 = zs1?.reference ?? jni$_.jNullReference; - return _equals$11( - _class.reference.pointer, - _id_equals$11 as jni$_.JMethodIDPtr, - _$zs.pointer, - i, - i1, - _$zs1.pointer, - i2, - i3) + final _$$classRef = _class.reference; + final _$cs = cs?.reference ?? jni$_.jNullReference; + final _$cs1 = cs1?.reference ?? jni$_.jNullReference; + return _equals$5(_$$classRef.pointer, _id_equals$5.pointer, _$cs.pointer, i, + i1, _$cs1.pointer, i2, i3) .boolean; } - static final _id_equals$12 = _class.staticMethodId( + static final _id_equals$6 = _class.staticMethodId( r'equals', r'([D[D)Z', ); - static final _equals$12 = jni$_.ProtectedJniExtensions.lookup< + static final _equals$6 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -31226,23 +26851,24 @@ class Arrays extends jni$_.JObject { jni$_.Pointer)>(); /// from: `static public boolean equals(double[] ds, double[] ds1)` - static bool equals$12( + static core$_.bool equals$6( jni$_.JDoubleArray? ds, jni$_.JDoubleArray? ds1, ) { + final _$$classRef = _class.reference; final _$ds = ds?.reference ?? jni$_.jNullReference; final _$ds1 = ds1?.reference ?? jni$_.jNullReference; - return _equals$12(_class.reference.pointer, - _id_equals$12 as jni$_.JMethodIDPtr, _$ds.pointer, _$ds1.pointer) + return _equals$6(_$$classRef.pointer, _id_equals$6.pointer, _$ds.pointer, + _$ds1.pointer) .boolean; } - static final _id_equals$13 = _class.staticMethodId( + static final _id_equals$7 = _class.staticMethodId( r'equals', r'([DII[DII)Z', ); - static final _equals$13 = jni$_.ProtectedJniExtensions.lookup< + static final _equals$7 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -31261,41 +26887,35 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, + core$_.int, + core$_.int, jni$_.Pointer, - int, - int)>(); + core$_.int, + core$_.int)>(); /// from: `static public boolean equals(double[] ds, int i, int i1, double[] ds1, int i2, int i3)` - static bool equals$13( + static core$_.bool equals$7( jni$_.JDoubleArray? ds, - int i, - int i1, + core$_.int i, + core$_.int i1, jni$_.JDoubleArray? ds1, - int i2, - int i3, + core$_.int i2, + core$_.int i3, ) { + final _$$classRef = _class.reference; final _$ds = ds?.reference ?? jni$_.jNullReference; final _$ds1 = ds1?.reference ?? jni$_.jNullReference; - return _equals$13( - _class.reference.pointer, - _id_equals$13 as jni$_.JMethodIDPtr, - _$ds.pointer, - i, - i1, - _$ds1.pointer, - i2, - i3) + return _equals$7(_$$classRef.pointer, _id_equals$7.pointer, _$ds.pointer, i, + i1, _$ds1.pointer, i2, i3) .boolean; } - static final _id_equals$14 = _class.staticMethodId( + static final _id_equals$8 = _class.staticMethodId( r'equals', r'([F[F)Z', ); - static final _equals$14 = jni$_.ProtectedJniExtensions.lookup< + static final _equals$8 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -31313,23 +26933,24 @@ class Arrays extends jni$_.JObject { jni$_.Pointer)>(); /// from: `static public boolean equals(float[] fs, float[] fs1)` - static bool equals$14( + static core$_.bool equals$8( jni$_.JFloatArray? fs, jni$_.JFloatArray? fs1, ) { + final _$$classRef = _class.reference; final _$fs = fs?.reference ?? jni$_.jNullReference; final _$fs1 = fs1?.reference ?? jni$_.jNullReference; - return _equals$14(_class.reference.pointer, - _id_equals$14 as jni$_.JMethodIDPtr, _$fs.pointer, _$fs1.pointer) + return _equals$8(_$$classRef.pointer, _id_equals$8.pointer, _$fs.pointer, + _$fs1.pointer) .boolean; } - static final _id_equals$15 = _class.staticMethodId( + static final _id_equals$9 = _class.staticMethodId( r'equals', r'([FII[FII)Z', ); - static final _equals$15 = jni$_.ProtectedJniExtensions.lookup< + static final _equals$9 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -31348,41 +26969,35 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, + core$_.int, + core$_.int, jni$_.Pointer, - int, - int)>(); + core$_.int, + core$_.int)>(); /// from: `static public boolean equals(float[] fs, int i, int i1, float[] fs1, int i2, int i3)` - static bool equals$15( + static core$_.bool equals$9( jni$_.JFloatArray? fs, - int i, - int i1, + core$_.int i, + core$_.int i1, jni$_.JFloatArray? fs1, - int i2, - int i3, + core$_.int i2, + core$_.int i3, ) { + final _$$classRef = _class.reference; final _$fs = fs?.reference ?? jni$_.jNullReference; final _$fs1 = fs1?.reference ?? jni$_.jNullReference; - return _equals$15( - _class.reference.pointer, - _id_equals$15 as jni$_.JMethodIDPtr, - _$fs.pointer, - i, - i1, - _$fs1.pointer, - i2, - i3) + return _equals$9(_$$classRef.pointer, _id_equals$9.pointer, _$fs.pointer, i, + i1, _$fs1.pointer, i2, i3) .boolean; } - static final _id_equals$16 = _class.staticMethodId( + static final _id_equals$10 = _class.staticMethodId( r'equals', - r'([Ljava/lang/Object;[Ljava/lang/Object;)Z', + r'([III[III)Z', ); - static final _equals$16 = jni$_.ProtectedJniExtensions.lookup< + static final _equals$10 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -31390,36 +27005,46 @@ class Arrays extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Pointer + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32 )>)>>('globalEnv_CallStaticBooleanMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public boolean equals(java.lang.Object[] objects, java.lang.Object[] objects1)` - static bool equals$16( - jni$_.JArray? objects, - jni$_.JArray? objects1, + /// from: `static public boolean equals(int[] is, int i, int i1, int[] is1, int i2, int i3)` + static core$_.bool equals$10( + jni$_.JIntArray? is$, + core$_.int i, + core$_.int i1, + jni$_.JIntArray? is1, + core$_.int i2, + core$_.int i3, ) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - final _$objects1 = objects1?.reference ?? jni$_.jNullReference; - return _equals$16( - _class.reference.pointer, - _id_equals$16 as jni$_.JMethodIDPtr, - _$objects.pointer, - _$objects1.pointer) + final _$$classRef = _class.reference; + final _$is$ = is$?.reference ?? jni$_.jNullReference; + final _$is1 = is1?.reference ?? jni$_.jNullReference; + return _equals$10(_$$classRef.pointer, _id_equals$10.pointer, _$is$.pointer, + i, i1, _$is1.pointer, i2, i3) .boolean; } - static final _id_equals$17 = _class.staticMethodId( + static final _id_equals$11 = _class.staticMethodId( r'equals', - r'([Ljava/lang/Object;II[Ljava/lang/Object;II)Z', + r'([I[I)Z', ); - static final _equals$17 = jni$_.ProtectedJniExtensions.lookup< + static final _equals$11 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -31427,52 +27052,34 @@ class Arrays extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 + jni$_.Pointer )>)>>('globalEnv_CallStaticBooleanMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); + jni$_.Pointer)>(); - /// from: `static public boolean equals(java.lang.Object[] objects, int i, int i1, java.lang.Object[] objects1, int i2, int i3)` - static bool equals$17( - jni$_.JArray? objects, - int i, - int i1, - jni$_.JArray? objects1, - int i2, - int i3, + /// from: `static public boolean equals(int[] is, int[] is1)` + static core$_.bool equals$11( + jni$_.JIntArray? is$, + jni$_.JIntArray? is1, ) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - final _$objects1 = objects1?.reference ?? jni$_.jNullReference; - return _equals$17( - _class.reference.pointer, - _id_equals$17 as jni$_.JMethodIDPtr, - _$objects.pointer, - i, - i1, - _$objects1.pointer, - i2, - i3) + final _$$classRef = _class.reference; + final _$is$ = is$?.reference ?? jni$_.jNullReference; + final _$is1 = is1?.reference ?? jni$_.jNullReference; + return _equals$11(_$$classRef.pointer, _id_equals$11.pointer, _$is$.pointer, + _$is1.pointer) .boolean; } - static final _id_equals$18 = _class.staticMethodId( + static final _id_equals$12 = _class.staticMethodId( r'equals', - r'([Ljava/lang/Object;[Ljava/lang/Object;Ljava/util/Comparator;)Z', + r'([Ljava/lang/Object;II[Ljava/lang/Object;II)Z', ); - static final _equals$18 = jni$_.ProtectedJniExtensions.lookup< + static final _equals$12 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -31480,42 +27087,46 @@ class Arrays extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, jni$_.Pointer, - jni$_.Pointer + jni$_.Int32, + jni$_.Int32 )>)>>('globalEnv_CallStaticBooleanMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, + core$_.int, + core$_.int, jni$_.Pointer, - jni$_.Pointer)>(); + core$_.int, + core$_.int)>(); - /// from: `static public boolean equals(java.lang.Object[] objects, java.lang.Object[] objects1, java.util.Comparator comparator)` - static bool equals$18<$T extends jni$_.JObject?>( - jni$_.JArray<$T?>? objects, - jni$_.JArray<$T?>? objects1, - jni$_.JObject? comparator, { - required jni$_.JObjType<$T> T, - }) { + /// from: `static public boolean equals(java.lang.Object[] objects, int i, int i1, java.lang.Object[] objects1, int i2, int i3)` + static core$_.bool equals$12( + jni$_.JArray? objects, + core$_.int i, + core$_.int i1, + jni$_.JArray? objects1, + core$_.int i2, + core$_.int i3, + ) { + final _$$classRef = _class.reference; final _$objects = objects?.reference ?? jni$_.jNullReference; final _$objects1 = objects1?.reference ?? jni$_.jNullReference; - final _$comparator = comparator?.reference ?? jni$_.jNullReference; - return _equals$18( - _class.reference.pointer, - _id_equals$18 as jni$_.JMethodIDPtr, - _$objects.pointer, - _$objects1.pointer, - _$comparator.pointer) + return _equals$12(_$$classRef.pointer, _id_equals$12.pointer, + _$objects.pointer, i, i1, _$objects1.pointer, i2, i3) .boolean; } - static final _id_equals$19 = _class.staticMethodId( + static final _id_equals$13 = _class.staticMethodId( r'equals', - r'([Ljava/lang/Object;II[Ljava/lang/Object;IILjava/util/Comparator;)Z', + r'([Ljava/lang/Object;[Ljava/lang/Object;)Z', ); - static final _equals$19 = jni$_.ProtectedJniExtensions.lookup< + static final _equals$13 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -31523,11 +27134,6 @@ class Arrays extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, jni$_.Pointer )>)>>('globalEnv_CallStaticBooleanMethod') .asFunction< @@ -31535,76 +27141,29 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int, jni$_.Pointer)>(); - /// from: `static public boolean equals(java.lang.Object[] objects, int i, int i1, java.lang.Object[] objects1, int i2, int i3, java.util.Comparator comparator)` - static bool equals$19<$T extends jni$_.JObject?>( - jni$_.JArray<$T?>? objects, - int i, - int i1, - jni$_.JArray<$T?>? objects1, - int i2, - int i3, - jni$_.JObject? comparator, { - required jni$_.JObjType<$T> T, - }) { + /// from: `static public boolean equals(java.lang.Object[] objects, java.lang.Object[] objects1)` + static core$_.bool equals$13( + jni$_.JArray? objects, + jni$_.JArray? objects1, + ) { + final _$$classRef = _class.reference; final _$objects = objects?.reference ?? jni$_.jNullReference; final _$objects1 = objects1?.reference ?? jni$_.jNullReference; - final _$comparator = comparator?.reference ?? jni$_.jNullReference; - return _equals$19( - _class.reference.pointer, - _id_equals$19 as jni$_.JMethodIDPtr, - _$objects.pointer, - i, - i1, - _$objects1.pointer, - i2, - i3, - _$comparator.pointer) + return _equals$13(_$$classRef.pointer, _id_equals$13.pointer, + _$objects.pointer, _$objects1.pointer) .boolean; } - static final _id_fill = _class.staticMethodId( - r'fill', - r'([JJ)V', - ); - - static final _fill = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int64)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); - - /// from: `static public void fill(long[] js, long j)` - static void fill( - jni$_.JLongArray? js, - int j, - ) { - final _$js = js?.reference ?? jni$_.jNullReference; - _fill(_class.reference.pointer, _id_fill as jni$_.JMethodIDPtr, - _$js.pointer, j) - .check(); - } - - static final _id_fill$1 = _class.staticMethodId( - r'fill', - r'([JIIJ)V', + static final _id_equals$14 = _class.staticMethodId( + r'equals', + r'([JII[JII)Z', ); - static final _fill$1 = jni$_.ProtectedJniExtensions.lookup< + static final _equals$14 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< @@ -31612,61 +27171,81 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.Int32, jni$_.Int32, - jni$_.Int64 - )>)>>('globalEnv_CallStaticVoidMethod') + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32 + )>)>>('globalEnv_CallStaticBooleanMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public void fill(long[] js, int i, int i1, long j)` - static void fill$1( + /// from: `static public boolean equals(long[] js, int i, int i1, long[] js1, int i2, int i3)` + static core$_.bool equals$14( jni$_.JLongArray? js, - int i, - int i1, - int j, + core$_.int i, + core$_.int i1, + jni$_.JLongArray? js1, + core$_.int i2, + core$_.int i3, ) { + final _$$classRef = _class.reference; final _$js = js?.reference ?? jni$_.jNullReference; - _fill$1(_class.reference.pointer, _id_fill$1 as jni$_.JMethodIDPtr, - _$js.pointer, i, i1, j) - .check(); + final _$js1 = js1?.reference ?? jni$_.jNullReference; + return _equals$14(_$$classRef.pointer, _id_equals$14.pointer, _$js.pointer, + i, i1, _$js1.pointer, i2, i3) + .boolean; } - static final _id_fill$2 = _class.staticMethodId( - r'fill', - r'([II)V', + static final _id_equals$15 = _class.staticMethodId( + r'equals', + r'([J[J)Z', ); - static final _fill$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticVoidMethod') + static final _equals$15 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticBooleanMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - /// from: `static public void fill(int[] is, int i)` - static void fill$2( - jni$_.JIntArray? is$, - int i, + /// from: `static public boolean equals(long[] js, long[] js1)` + static core$_.bool equals$15( + jni$_.JLongArray? js, + jni$_.JLongArray? js1, ) { - final _$is$ = is$?.reference ?? jni$_.jNullReference; - _fill$2(_class.reference.pointer, _id_fill$2 as jni$_.JMethodIDPtr, - _$is$.pointer, i) - .check(); + final _$$classRef = _class.reference; + final _$js = js?.reference ?? jni$_.jNullReference; + final _$js1 = js1?.reference ?? jni$_.jNullReference; + return _equals$15(_$$classRef.pointer, _id_equals$15.pointer, _$js.pointer, + _$js1.pointer) + .boolean; } - static final _id_fill$3 = _class.staticMethodId( - r'fill', - r'([IIII)V', + static final _id_equals$16 = _class.staticMethodId( + r'equals', + r'([SII[SII)Z', ); - static final _fill$3 = jni$_.ProtectedJniExtensions.lookup< + static final _equals$16 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< @@ -31674,61 +27253,81 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.Int32, jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') + )>)>>('globalEnv_CallStaticBooleanMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public void fill(int[] is, int i, int i1, int i2)` - static void fill$3( - jni$_.JIntArray? is$, - int i, - int i1, - int i2, + /// from: `static public boolean equals(short[] ss, int i, int i1, short[] ss1, int i2, int i3)` + static core$_.bool equals$16( + jni$_.JShortArray? ss, + core$_.int i, + core$_.int i1, + jni$_.JShortArray? ss1, + core$_.int i2, + core$_.int i3, ) { - final _$is$ = is$?.reference ?? jni$_.jNullReference; - _fill$3(_class.reference.pointer, _id_fill$3 as jni$_.JMethodIDPtr, - _$is$.pointer, i, i1, i2) - .check(); + final _$$classRef = _class.reference; + final _$ss = ss?.reference ?? jni$_.jNullReference; + final _$ss1 = ss1?.reference ?? jni$_.jNullReference; + return _equals$16(_$$classRef.pointer, _id_equals$16.pointer, _$ss.pointer, + i, i1, _$ss1.pointer, i2, i3) + .boolean; } - static final _id_fill$4 = _class.staticMethodId( - r'fill', - r'([SS)V', + static final _id_equals$17 = _class.staticMethodId( + r'equals', + r'([S[S)Z', ); - static final _fill$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticVoidMethod') + static final _equals$17 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticBooleanMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - /// from: `static public void fill(short[] ss, short s)` - static void fill$4( + /// from: `static public boolean equals(short[] ss, short[] ss1)` + static core$_.bool equals$17( jni$_.JShortArray? ss, - int s, + jni$_.JShortArray? ss1, ) { + final _$$classRef = _class.reference; final _$ss = ss?.reference ?? jni$_.jNullReference; - _fill$4(_class.reference.pointer, _id_fill$4 as jni$_.JMethodIDPtr, - _$ss.pointer, s) - .check(); + final _$ss1 = ss1?.reference ?? jni$_.jNullReference; + return _equals$17(_$$classRef.pointer, _id_equals$17.pointer, _$ss.pointer, + _$ss1.pointer) + .boolean; } - static final _id_fill$5 = _class.staticMethodId( - r'fill', - r'([SIIS)V', + static final _id_equals$18 = _class.staticMethodId( + r'equals', + r'([Ljava/lang/Object;II[Ljava/lang/Object;IILjava/util/Comparator;)Z', ); - static final _fill$5 = jni$_.ProtectedJniExtensions.lookup< + static final _equals$18 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JThrowablePtr Function( + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< @@ -31736,31 +27335,95 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.Int32, jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer + )>)>>('globalEnv_CallStaticBooleanMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer)>(); - /// from: `static public void fill(short[] ss, int i, int i1, short s)` - static void fill$5( - jni$_.JShortArray? ss, - int i, - int i1, - int s, + /// from: `static public boolean equals(T[] objects, int i, int i1, T[] objects1, int i2, int i3, java.util.Comparator comparator)` + static core$_.bool equals$18<$T extends jni$_.JObject?>( + jni$_.JArray<$T?>? objects, + core$_.int i, + core$_.int i1, + jni$_.JArray<$T?>? objects1, + core$_.int i2, + core$_.int i3, + Comparator? comparator, ) { - final _$ss = ss?.reference ?? jni$_.jNullReference; - _fill$5(_class.reference.pointer, _id_fill$5 as jni$_.JMethodIDPtr, - _$ss.pointer, i, i1, s) - .check(); - } - - static final _id_fill$6 = _class.staticMethodId( - r'fill', - r'([CC)V', + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + final _$objects1 = objects1?.reference ?? jni$_.jNullReference; + final _$comparator = comparator?.reference ?? jni$_.jNullReference; + return _equals$18( + _$$classRef.pointer, + _id_equals$18.pointer, + _$objects.pointer, + i, + i1, + _$objects1.pointer, + i2, + i3, + _$comparator.pointer) + .boolean; + } + + static final _id_equals$19 = _class.staticMethodId( + r'equals', + r'([Ljava/lang/Object;[Ljava/lang/Object;Ljava/util/Comparator;)Z', ); - static final _fill$6 = jni$_.ProtectedJniExtensions.lookup< + static final _equals$19 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer)>(); + + /// from: `static public boolean equals(T[] objects, T[] objects1, java.util.Comparator comparator)` + static core$_.bool equals$19<$T extends jni$_.JObject?>( + jni$_.JArray<$T?>? objects, + jni$_.JArray<$T?>? objects1, + Comparator? comparator, + ) { + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + final _$objects1 = objects1?.reference ?? jni$_.jNullReference; + final _$comparator = comparator?.reference ?? jni$_.jNullReference; + return _equals$19(_$$classRef.pointer, _id_equals$19.pointer, + _$objects.pointer, _$objects1.pointer, _$comparator.pointer) + .boolean; + } + + static final _id_fill = _class.staticMethodId( + r'fill', + r'([ZZ)V', + ); + + static final _fill = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -31770,25 +27433,25 @@ class Arrays extends jni$_.JObject { 'globalEnv_CallStaticVoidMethod') .asFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); - /// from: `static public void fill(char[] cs, char c)` - static void fill$6( - jni$_.JCharArray? cs, - int c, + /// from: `static public void fill(boolean[] zs, boolean z)` + static void fill( + jni$_.JBooleanArray? zs, + core$_.bool z, ) { - final _$cs = cs?.reference ?? jni$_.jNullReference; - _fill$6(_class.reference.pointer, _id_fill$6 as jni$_.JMethodIDPtr, - _$cs.pointer, c) + final _$$classRef = _class.reference; + final _$zs = zs?.reference ?? jni$_.jNullReference; + _fill(_$$classRef.pointer, _id_fill.pointer, _$zs.pointer, z ? 1 : 0) .check(); } - static final _id_fill$7 = _class.staticMethodId( + static final _id_fill$1 = _class.staticMethodId( r'fill', - r'([CIIC)V', + r'([ZIIZ)V', ); - static final _fill$7 = jni$_.ProtectedJniExtensions.lookup< + static final _fill$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -31801,28 +27464,34 @@ class Arrays extends jni$_.JObject { jni$_.Int32 )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + core$_.int)>(); - /// from: `static public void fill(char[] cs, int i, int i1, char c)` - static void fill$7( - jni$_.JCharArray? cs, - int i, - int i1, - int c, + /// from: `static public void fill(boolean[] zs, int i, int i1, boolean z)` + static void fill$1( + jni$_.JBooleanArray? zs, + core$_.int i, + core$_.int i1, + core$_.bool z, ) { - final _$cs = cs?.reference ?? jni$_.jNullReference; - _fill$7(_class.reference.pointer, _id_fill$7 as jni$_.JMethodIDPtr, - _$cs.pointer, i, i1, c) + final _$$classRef = _class.reference; + final _$zs = zs?.reference ?? jni$_.jNullReference; + _fill$1(_$$classRef.pointer, _id_fill$1.pointer, _$zs.pointer, i, i1, + z ? 1 : 0) .check(); } - static final _id_fill$8 = _class.staticMethodId( + static final _id_fill$2 = _class.staticMethodId( r'fill', r'([BB)V', ); - static final _fill$8 = jni$_.ProtectedJniExtensions.lookup< + static final _fill$2 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -31832,25 +27501,24 @@ class Arrays extends jni$_.JObject { 'globalEnv_CallStaticVoidMethod') .asFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); /// from: `static public void fill(byte[] bs, byte b)` - static void fill$8( + static void fill$2( jni$_.JByteArray? bs, - int b, + core$_.int b, ) { + final _$$classRef = _class.reference; final _$bs = bs?.reference ?? jni$_.jNullReference; - _fill$8(_class.reference.pointer, _id_fill$8 as jni$_.JMethodIDPtr, - _$bs.pointer, b) - .check(); + _fill$2(_$$classRef.pointer, _id_fill$2.pointer, _$bs.pointer, b).check(); } - static final _id_fill$9 = _class.staticMethodId( + static final _id_fill$3 = _class.staticMethodId( r'fill', r'([BIIB)V', ); - static final _fill$9 = jni$_.ProtectedJniExtensions.lookup< + static final _fill$3 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -31863,28 +27531,33 @@ class Arrays extends jni$_.JObject { jni$_.Int32 )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + core$_.int)>(); /// from: `static public void fill(byte[] bs, int i, int i1, byte b)` - static void fill$9( + static void fill$3( jni$_.JByteArray? bs, - int i, - int i1, - int b, + core$_.int i, + core$_.int i1, + core$_.int b, ) { + final _$$classRef = _class.reference; final _$bs = bs?.reference ?? jni$_.jNullReference; - _fill$9(_class.reference.pointer, _id_fill$9 as jni$_.JMethodIDPtr, - _$bs.pointer, i, i1, b) + _fill$3(_$$classRef.pointer, _id_fill$3.pointer, _$bs.pointer, i, i1, b) .check(); } - static final _id_fill$10 = _class.staticMethodId( + static final _id_fill$4 = _class.staticMethodId( r'fill', - r'([ZZ)V', + r'([CC)V', ); - static final _fill$10 = jni$_.ProtectedJniExtensions.lookup< + static final _fill$4 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -31894,25 +27567,24 @@ class Arrays extends jni$_.JObject { 'globalEnv_CallStaticVoidMethod') .asFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); - /// from: `static public void fill(boolean[] zs, boolean z)` - static void fill$10( - jni$_.JBooleanArray? zs, - bool z, + /// from: `static public void fill(char[] cs, char c)` + static void fill$4( + jni$_.JCharArray? cs, + core$_.int c, ) { - final _$zs = zs?.reference ?? jni$_.jNullReference; - _fill$10(_class.reference.pointer, _id_fill$10 as jni$_.JMethodIDPtr, - _$zs.pointer, z ? 1 : 0) - .check(); + final _$$classRef = _class.reference; + final _$cs = cs?.reference ?? jni$_.jNullReference; + _fill$4(_$$classRef.pointer, _id_fill$4.pointer, _$cs.pointer, c).check(); } - static final _id_fill$11 = _class.staticMethodId( + static final _id_fill$5 = _class.staticMethodId( r'fill', - r'([ZIIZ)V', + r'([CIIC)V', ); - static final _fill$11 = jni$_.ProtectedJniExtensions.lookup< + static final _fill$5 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -31925,28 +27597,33 @@ class Arrays extends jni$_.JObject { jni$_.Int32 )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + core$_.int)>(); - /// from: `static public void fill(boolean[] zs, int i, int i1, boolean z)` - static void fill$11( - jni$_.JBooleanArray? zs, - int i, - int i1, - bool z, + /// from: `static public void fill(char[] cs, int i, int i1, char c)` + static void fill$5( + jni$_.JCharArray? cs, + core$_.int i, + core$_.int i1, + core$_.int c, ) { - final _$zs = zs?.reference ?? jni$_.jNullReference; - _fill$11(_class.reference.pointer, _id_fill$11 as jni$_.JMethodIDPtr, - _$zs.pointer, i, i1, z ? 1 : 0) + final _$$classRef = _class.reference; + final _$cs = cs?.reference ?? jni$_.jNullReference; + _fill$5(_$$classRef.pointer, _id_fill$5.pointer, _$cs.pointer, i, i1, c) .check(); } - static final _id_fill$12 = _class.staticMethodId( + static final _id_fill$6 = _class.staticMethodId( r'fill', r'([DD)V', ); - static final _fill$12 = jni$_.ProtectedJniExtensions.lookup< + static final _fill$6 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -31958,25 +27635,24 @@ class Arrays extends jni$_.JObject { )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, double)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.double)>(); /// from: `static public void fill(double[] ds, double d)` - static void fill$12( + static void fill$6( jni$_.JDoubleArray? ds, - double d, + core$_.double d, ) { + final _$$classRef = _class.reference; final _$ds = ds?.reference ?? jni$_.jNullReference; - _fill$12(_class.reference.pointer, _id_fill$12 as jni$_.JMethodIDPtr, - _$ds.pointer, d) - .check(); + _fill$6(_$$classRef.pointer, _id_fill$6.pointer, _$ds.pointer, d).check(); } - static final _id_fill$13 = _class.staticMethodId( + static final _id_fill$7 = _class.staticMethodId( r'fill', r'([DIID)V', ); - static final _fill$13 = jni$_.ProtectedJniExtensions.lookup< + static final _fill$7 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -31993,29 +27669,29 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - double)>(); + core$_.int, + core$_.int, + core$_.double)>(); /// from: `static public void fill(double[] ds, int i, int i1, double d)` - static void fill$13( + static void fill$7( jni$_.JDoubleArray? ds, - int i, - int i1, - double d, + core$_.int i, + core$_.int i1, + core$_.double d, ) { + final _$$classRef = _class.reference; final _$ds = ds?.reference ?? jni$_.jNullReference; - _fill$13(_class.reference.pointer, _id_fill$13 as jni$_.JMethodIDPtr, - _$ds.pointer, i, i1, d) + _fill$7(_$$classRef.pointer, _id_fill$7.pointer, _$ds.pointer, i, i1, d) .check(); } - static final _id_fill$14 = _class.staticMethodId( + static final _id_fill$8 = _class.staticMethodId( r'fill', r'([FF)V', ); - static final _fill$14 = jni$_.ProtectedJniExtensions.lookup< + static final _fill$8 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -32027,25 +27703,24 @@ class Arrays extends jni$_.JObject { )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, double)>(); + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.double)>(); /// from: `static public void fill(float[] fs, float f)` - static void fill$14( + static void fill$8( jni$_.JFloatArray? fs, - double f, + core$_.double f, ) { + final _$$classRef = _class.reference; final _$fs = fs?.reference ?? jni$_.jNullReference; - _fill$14(_class.reference.pointer, _id_fill$14 as jni$_.JMethodIDPtr, - _$fs.pointer, f) - .check(); + _fill$8(_$$classRef.pointer, _id_fill$8.pointer, _$fs.pointer, f).check(); } - static final _id_fill$15 = _class.staticMethodId( + static final _id_fill$9 = _class.staticMethodId( r'fill', r'([FIIF)V', ); - static final _fill$15 = jni$_.ProtectedJniExtensions.lookup< + static final _fill$9 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -32062,29 +27737,57 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - double)>(); + core$_.int, + core$_.int, + core$_.double)>(); /// from: `static public void fill(float[] fs, int i, int i1, float f)` - static void fill$15( + static void fill$9( jni$_.JFloatArray? fs, - int i, - int i1, - double f, + core$_.int i, + core$_.int i1, + core$_.double f, ) { + final _$$classRef = _class.reference; final _$fs = fs?.reference ?? jni$_.jNullReference; - _fill$15(_class.reference.pointer, _id_fill$15 as jni$_.JMethodIDPtr, - _$fs.pointer, i, i1, f) + _fill$9(_$$classRef.pointer, _id_fill$9.pointer, _$fs.pointer, i, i1, f) .check(); } - static final _id_fill$16 = _class.staticMethodId( + static final _id_fill$10 = _class.staticMethodId( r'fill', - r'([Ljava/lang/Object;Ljava/lang/Object;)V', + r'([II)V', ); - static final _fill$16 = jni$_.ProtectedJniExtensions.lookup< + static final _fill$10 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_ + .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( + 'globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); + + /// from: `static public void fill(int[] is, int i)` + static void fill$10( + jni$_.JIntArray? is$, + core$_.int i, + ) { + final _$$classRef = _class.reference; + final _$is$ = is$?.reference ?? jni$_.jNullReference; + _fill$10(_$$classRef.pointer, _id_fill$10.pointer, _$is$.pointer, i) + .check(); + } + + static final _id_fill$11 = _class.staticMethodId( + r'fill', + r'([IIII)V', + ); + + static final _fill$11 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -32092,33 +27795,38 @@ class Arrays extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Pointer + jni$_.Int32, + jni$_.Int32, + jni$_.Int32 )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + core$_.int, + core$_.int, + core$_.int)>(); - /// from: `static public void fill(java.lang.Object[] objects, java.lang.Object object)` - static void fill$16( - jni$_.JArray? objects, - jni$_.JObject? object, + /// from: `static public void fill(int[] is, int i, int i1, int i2)` + static void fill$11( + jni$_.JIntArray? is$, + core$_.int i, + core$_.int i1, + core$_.int i2, ) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - final _$object = object?.reference ?? jni$_.jNullReference; - _fill$16(_class.reference.pointer, _id_fill$16 as jni$_.JMethodIDPtr, - _$objects.pointer, _$object.pointer) + final _$$classRef = _class.reference; + final _$is$ = is$?.reference ?? jni$_.jNullReference; + _fill$11(_$$classRef.pointer, _id_fill$11.pointer, _$is$.pointer, i, i1, i2) .check(); } - static final _id_fill$17 = _class.staticMethodId( + static final _id_fill$12 = _class.staticMethodId( r'fill', r'([Ljava/lang/Object;IILjava/lang/Object;)V', ); - static final _fill$17 = jni$_.ProtectedJniExtensions.lookup< + static final _fill$12 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -32135,374 +27843,441 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, + core$_.int, + core$_.int, jni$_.Pointer)>(); /// from: `static public void fill(java.lang.Object[] objects, int i, int i1, java.lang.Object object)` - static void fill$17( + static void fill$12( jni$_.JArray? objects, - int i, - int i1, + core$_.int i, + core$_.int i1, jni$_.JObject? object, ) { + final _$$classRef = _class.reference; final _$objects = objects?.reference ?? jni$_.jNullReference; final _$object = object?.reference ?? jni$_.jNullReference; - _fill$17(_class.reference.pointer, _id_fill$17 as jni$_.JMethodIDPtr, - _$objects.pointer, i, i1, _$object.pointer) + _fill$12(_$$classRef.pointer, _id_fill$12.pointer, _$objects.pointer, i, i1, + _$object.pointer) .check(); } - static final _id_copyOf = _class.staticMethodId( - r'copyOf', - r'([Ljava/lang/Object;I)[Ljava/lang/Object;', - ); - - static final _copyOf = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); - - /// from: `static public java.lang.Object[] copyOf(java.lang.Object[] objects, int i)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JArray<$T?>? copyOf<$T extends jni$_.JObject?>( - jni$_.JArray<$T?>? objects, - int i, { - required jni$_.JObjType<$T> T, - }) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - return _copyOf(_class.reference.pointer, _id_copyOf as jni$_.JMethodIDPtr, - _$objects.pointer, i) - .object?>( - jni$_.JArrayNullableType<$T?>(T.nullableType)); - } - - static final _id_copyOf$1 = _class.staticMethodId( - r'copyOf', - r'([Ljava/lang/Object;ILjava/lang/Class;)[Ljava/lang/Object;', + static final _id_fill$13 = _class.staticMethodId( + r'fill', + r'([Ljava/lang/Object;Ljava/lang/Object;)V', ); - static final _copyOf$1 = jni$_.ProtectedJniExtensions.lookup< + static final _fill$13 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Int32, jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, jni$_.Pointer)>(); - /// from: `static public java.lang.Object[] copyOf(java.lang.Object[] objects, int i, java.lang.Class class)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JArray<$T?>? - copyOf$1<$T extends jni$_.JObject?, $U extends jni$_.JObject?>( - jni$_.JArray<$U?>? objects, - int i, - jni$_.JObject? class$, { - required jni$_.JObjType<$T> T, - required jni$_.JObjType<$U> U, - }) { + /// from: `static public void fill(java.lang.Object[] objects, java.lang.Object object)` + static void fill$13( + jni$_.JArray? objects, + jni$_.JObject? object, + ) { + final _$$classRef = _class.reference; final _$objects = objects?.reference ?? jni$_.jNullReference; - final _$class$ = class$?.reference ?? jni$_.jNullReference; - return _copyOf$1( - _class.reference.pointer, - _id_copyOf$1 as jni$_.JMethodIDPtr, - _$objects.pointer, - i, - _$class$.pointer) - .object?>( - jni$_.JArrayNullableType<$T?>(T.nullableType)); + final _$object = object?.reference ?? jni$_.jNullReference; + _fill$13(_$$classRef.pointer, _id_fill$13.pointer, _$objects.pointer, + _$object.pointer) + .check(); } - static final _id_copyOf$2 = _class.staticMethodId( - r'copyOf', - r'([BI)[B', + static final _id_fill$14 = _class.staticMethodId( + r'fill', + r'([JIIJ)V', ); - static final _copyOf$2 = jni$_.ProtectedJniExtensions.lookup< + static final _fill$14 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Int64 + )>)>>('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + core$_.int)>(); + + /// from: `static public void fill(long[] js, int i, int i1, long j)` + static void fill$14( + jni$_.JLongArray? js, + core$_.int i, + core$_.int i1, + core$_.int j, + ) { + final _$$classRef = _class.reference; + final _$js = js?.reference ?? jni$_.jNullReference; + _fill$14(_$$classRef.pointer, _id_fill$14.pointer, _$js.pointer, i, i1, j) + .check(); + } + + static final _id_fill$15 = _class.staticMethodId( + r'fill', + r'([JJ)V', + ); + + static final _fill$15 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') + .VarArgs<(jni$_.Pointer, jni$_.Int64)>)>>( + 'globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); - /// from: `static public byte[] copyOf(byte[] bs, int i)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JByteArray? copyOf$2( - jni$_.JByteArray? bs, - int i, + /// from: `static public void fill(long[] js, long j)` + static void fill$15( + jni$_.JLongArray? js, + core$_.int j, ) { - final _$bs = bs?.reference ?? jni$_.jNullReference; - return _copyOf$2(_class.reference.pointer, - _id_copyOf$2 as jni$_.JMethodIDPtr, _$bs.pointer, i) - .object(const jni$_.JByteArrayNullableType()); + final _$$classRef = _class.reference; + final _$js = js?.reference ?? jni$_.jNullReference; + _fill$15(_$$classRef.pointer, _id_fill$15.pointer, _$js.pointer, j).check(); } - static final _id_copyOf$3 = _class.staticMethodId( - r'copyOf', - r'([SI)[S', + static final _id_fill$16 = _class.staticMethodId( + r'fill', + r'([SIIS)V', ); - static final _copyOf$3 = jni$_.ProtectedJniExtensions.lookup< + static final _fill$16 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Int32 + )>)>>('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + core$_.int)>(); + + /// from: `static public void fill(short[] ss, int i, int i1, short s)` + static void fill$16( + jni$_.JShortArray? ss, + core$_.int i, + core$_.int i1, + core$_.int s, + ) { + final _$$classRef = _class.reference; + final _$ss = ss?.reference ?? jni$_.jNullReference; + _fill$16(_$$classRef.pointer, _id_fill$16.pointer, _$ss.pointer, i, i1, s) + .check(); + } + + static final _id_fill$17 = _class.staticMethodId( + r'fill', + r'([SS)V', + ); + + static final _fill$17 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_ .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') + 'globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, core$_.int)>(); - /// from: `static public short[] copyOf(short[] ss, int i)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JShortArray? copyOf$3( + /// from: `static public void fill(short[] ss, short s)` + static void fill$17( jni$_.JShortArray? ss, - int i, + core$_.int s, ) { + final _$$classRef = _class.reference; final _$ss = ss?.reference ?? jni$_.jNullReference; - return _copyOf$3(_class.reference.pointer, - _id_copyOf$3 as jni$_.JMethodIDPtr, _$ss.pointer, i) - .object(const jni$_.JShortArrayNullableType()); + _fill$17(_$$classRef.pointer, _id_fill$17.pointer, _$ss.pointer, s).check(); } - static final _id_copyOf$4 = _class.staticMethodId( - r'copyOf', - r'([II)[I', + static final _id_hashCode$1 = _class.staticMethodId( + r'hashCode', + r'([Z)I', ); - static final _copyOf$4 = jni$_.ProtectedJniExtensions.lookup< + static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticIntMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public int[] copyOf(int[] is, int i)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JIntArray? copyOf$4( - jni$_.JIntArray? is$, - int i, + /// from: `static public int hashCode(boolean[] zs)` + static core$_.int hashCode$1( + jni$_.JBooleanArray? zs, ) { - final _$is$ = is$?.reference ?? jni$_.jNullReference; - return _copyOf$4(_class.reference.pointer, - _id_copyOf$4 as jni$_.JMethodIDPtr, _$is$.pointer, i) - .object(const jni$_.JIntArrayNullableType()); + final _$$classRef = _class.reference; + final _$zs = zs?.reference ?? jni$_.jNullReference; + return _hashCode$1( + _$$classRef.pointer, _id_hashCode$1.pointer, _$zs.pointer) + .integer; } - static final _id_copyOf$5 = _class.staticMethodId( - r'copyOf', - r'([JI)[J', + static final _id_hashCode$2 = _class.staticMethodId( + r'hashCode', + r'([B)I', ); - static final _copyOf$5 = jni$_.ProtectedJniExtensions.lookup< + static final _hashCode$2 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticIntMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public long[] copyOf(long[] js, int i)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JLongArray? copyOf$5( - jni$_.JLongArray? js, - int i, + /// from: `static public int hashCode(byte[] bs)` + static core$_.int hashCode$2( + jni$_.JByteArray? bs, ) { - final _$js = js?.reference ?? jni$_.jNullReference; - return _copyOf$5(_class.reference.pointer, - _id_copyOf$5 as jni$_.JMethodIDPtr, _$js.pointer, i) - .object(const jni$_.JLongArrayNullableType()); + final _$$classRef = _class.reference; + final _$bs = bs?.reference ?? jni$_.jNullReference; + return _hashCode$2( + _$$classRef.pointer, _id_hashCode$2.pointer, _$bs.pointer) + .integer; } - static final _id_copyOf$6 = _class.staticMethodId( - r'copyOf', - r'([CI)[C', + static final _id_hashCode$3 = _class.staticMethodId( + r'hashCode', + r'([C)I', ); - static final _copyOf$6 = jni$_.ProtectedJniExtensions.lookup< + static final _hashCode$3 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticIntMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public char[] copyOf(char[] cs, int i)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JCharArray? copyOf$6( + /// from: `static public int hashCode(char[] cs)` + static core$_.int hashCode$3( jni$_.JCharArray? cs, - int i, ) { + final _$$classRef = _class.reference; final _$cs = cs?.reference ?? jni$_.jNullReference; - return _copyOf$6(_class.reference.pointer, - _id_copyOf$6 as jni$_.JMethodIDPtr, _$cs.pointer, i) - .object(const jni$_.JCharArrayNullableType()); + return _hashCode$3( + _$$classRef.pointer, _id_hashCode$3.pointer, _$cs.pointer) + .integer; } - static final _id_copyOf$7 = _class.staticMethodId( - r'copyOf', - r'([FI)[F', + static final _id_hashCode$4 = _class.staticMethodId( + r'hashCode', + r'([D)I', ); - static final _copyOf$7 = jni$_.ProtectedJniExtensions.lookup< + static final _hashCode$4 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticIntMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public float[] copyOf(float[] fs, int i)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JFloatArray? copyOf$7( - jni$_.JFloatArray? fs, - int i, + /// from: `static public int hashCode(double[] ds)` + static core$_.int hashCode$4( + jni$_.JDoubleArray? ds, ) { - final _$fs = fs?.reference ?? jni$_.jNullReference; - return _copyOf$7(_class.reference.pointer, - _id_copyOf$7 as jni$_.JMethodIDPtr, _$fs.pointer, i) - .object(const jni$_.JFloatArrayNullableType()); + final _$$classRef = _class.reference; + final _$ds = ds?.reference ?? jni$_.jNullReference; + return _hashCode$4( + _$$classRef.pointer, _id_hashCode$4.pointer, _$ds.pointer) + .integer; } - static final _id_copyOf$8 = _class.staticMethodId( - r'copyOf', - r'([DI)[D', + static final _id_hashCode$5 = _class.staticMethodId( + r'hashCode', + r'([F)I', ); - static final _copyOf$8 = jni$_.ProtectedJniExtensions.lookup< + static final _hashCode$5 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticIntMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public double[] copyOf(double[] ds, int i)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JDoubleArray? copyOf$8( - jni$_.JDoubleArray? ds, - int i, + /// from: `static public int hashCode(float[] fs)` + static core$_.int hashCode$5( + jni$_.JFloatArray? fs, ) { - final _$ds = ds?.reference ?? jni$_.jNullReference; - return _copyOf$8(_class.reference.pointer, - _id_copyOf$8 as jni$_.JMethodIDPtr, _$ds.pointer, i) - .object(const jni$_.JDoubleArrayNullableType()); + final _$$classRef = _class.reference; + final _$fs = fs?.reference ?? jni$_.jNullReference; + return _hashCode$5( + _$$classRef.pointer, _id_hashCode$5.pointer, _$fs.pointer) + .integer; } - static final _id_copyOf$9 = _class.staticMethodId( - r'copyOf', - r'([ZI)[Z', + static final _id_hashCode$6 = _class.staticMethodId( + r'hashCode', + r'([I)I', ); - static final _copyOf$9 = jni$_.ProtectedJniExtensions.lookup< + static final _hashCode$6 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticIntMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public boolean[] copyOf(boolean[] zs, int i)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JBooleanArray? copyOf$9( - jni$_.JBooleanArray? zs, - int i, + /// from: `static public int hashCode(int[] is)` + static core$_.int hashCode$6( + jni$_.JIntArray? is$, ) { - final _$zs = zs?.reference ?? jni$_.jNullReference; - return _copyOf$9(_class.reference.pointer, - _id_copyOf$9 as jni$_.JMethodIDPtr, _$zs.pointer, i) - .object(const jni$_.JBooleanArrayNullableType()); + final _$$classRef = _class.reference; + final _$is$ = is$?.reference ?? jni$_.jNullReference; + return _hashCode$6( + _$$classRef.pointer, _id_hashCode$6.pointer, _$is$.pointer) + .integer; } - static final _id_copyOfRange = _class.staticMethodId( - r'copyOfRange', - r'([Ljava/lang/Object;II)[Ljava/lang/Object;', + static final _id_hashCode$7 = _class.staticMethodId( + r'hashCode', + r'([Ljava/lang/Object;)I', ); - static final _copyOfRange = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') + static final _hashCode$7 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticIntMethod') .asFunction< jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public java.lang.Object[] copyOfRange(java.lang.Object[] objects, int i, int i1)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JArray<$T?>? copyOfRange<$T extends jni$_.JObject?>( - jni$_.JArray<$T?>? objects, - int i, - int i1, { - required jni$_.JObjType<$T> T, - }) { + /// from: `static public int hashCode(java.lang.Object[] objects)` + static core$_.int hashCode$7( + jni$_.JArray? objects, + ) { + final _$$classRef = _class.reference; final _$objects = objects?.reference ?? jni$_.jNullReference; - return _copyOfRange(_class.reference.pointer, - _id_copyOfRange as jni$_.JMethodIDPtr, _$objects.pointer, i, i1) - .object?>( - jni$_.JArrayNullableType<$T?>(T.nullableType)); + return _hashCode$7( + _$$classRef.pointer, _id_hashCode$7.pointer, _$objects.pointer) + .integer; } - static final _id_copyOfRange$1 = _class.staticMethodId( - r'copyOfRange', - r'([Ljava/lang/Object;IILjava/lang/Class;)[Ljava/lang/Object;', + static final _id_hashCode$8 = _class.staticMethodId( + r'hashCode', + r'([J)I', ); - static final _copyOfRange$1 = jni$_.ProtectedJniExtensions.lookup< + static final _hashCode$8 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `static public int hashCode(long[] js)` + static core$_.int hashCode$8( + jni$_.JLongArray? js, + ) { + final _$$classRef = _class.reference; + final _$js = js?.reference ?? jni$_.jNullReference; + return _hashCode$8( + _$$classRef.pointer, _id_hashCode$8.pointer, _$js.pointer) + .integer; + } + + static final _id_hashCode$9 = _class.staticMethodId( + r'hashCode', + r'([S)I', + ); + + static final _hashCode$9 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `static public int hashCode(short[] ss)` + static core$_.int hashCode$9( + jni$_.JShortArray? ss, + ) { + final _$$classRef = _class.reference; + final _$ss = ss?.reference ?? jni$_.jNullReference; + return _hashCode$9( + _$$classRef.pointer, _id_hashCode$9.pointer, _$ss.pointer) + .integer; + } + + static final _id_mismatch = _class.staticMethodId( + r'mismatch', + r'([Z[Z)I', + ); + + static final _mismatch = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -32510,82 +28285,81 @@ class Arrays extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, jni$_.Pointer)>(); - /// from: `static public java.lang.Object[] copyOfRange(java.lang.Object[] objects, int i, int i1, java.lang.Class class)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JArray<$T?>? - copyOfRange$1<$T extends jni$_.JObject?, $U extends jni$_.JObject?>( - jni$_.JArray<$U?>? objects, - int i, - int i1, - jni$_.JObject? class$, { - required jni$_.JObjType<$T> T, - required jni$_.JObjType<$U> U, - }) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - final _$class$ = class$?.reference ?? jni$_.jNullReference; - return _copyOfRange$1( - _class.reference.pointer, - _id_copyOfRange$1 as jni$_.JMethodIDPtr, - _$objects.pointer, - i, - i1, - _$class$.pointer) - .object?>( - jni$_.JArrayNullableType<$T?>(T.nullableType)); + /// from: `static public int mismatch(boolean[] zs, boolean[] zs1)` + static core$_.int mismatch( + jni$_.JBooleanArray? zs, + jni$_.JBooleanArray? zs1, + ) { + final _$$classRef = _class.reference; + final _$zs = zs?.reference ?? jni$_.jNullReference; + final _$zs1 = zs1?.reference ?? jni$_.jNullReference; + return _mismatch(_$$classRef.pointer, _id_mismatch.pointer, _$zs.pointer, + _$zs1.pointer) + .integer; } - static final _id_copyOfRange$2 = _class.staticMethodId( - r'copyOfRange', - r'([BII)[B', + static final _id_mismatch$1 = _class.staticMethodId( + r'mismatch', + r'([ZII[ZII)I', ); - static final _copyOfRange$2 = jni$_.ProtectedJniExtensions.lookup< + static final _mismatch$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public byte[] copyOfRange(byte[] bs, int i, int i1)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JByteArray? copyOfRange$2( - jni$_.JByteArray? bs, - int i, - int i1, + /// from: `static public int mismatch(boolean[] zs, int i, int i1, boolean[] zs1, int i2, int i3)` + static core$_.int mismatch$1( + jni$_.JBooleanArray? zs, + core$_.int i, + core$_.int i1, + jni$_.JBooleanArray? zs1, + core$_.int i2, + core$_.int i3, ) { - final _$bs = bs?.reference ?? jni$_.jNullReference; - return _copyOfRange$2(_class.reference.pointer, - _id_copyOfRange$2 as jni$_.JMethodIDPtr, _$bs.pointer, i, i1) - .object(const jni$_.JByteArrayNullableType()); + final _$$classRef = _class.reference; + final _$zs = zs?.reference ?? jni$_.jNullReference; + final _$zs1 = zs1?.reference ?? jni$_.jNullReference; + return _mismatch$1(_$$classRef.pointer, _id_mismatch$1.pointer, + _$zs.pointer, i, i1, _$zs1.pointer, i2, i3) + .integer; } - static final _id_copyOfRange$3 = _class.staticMethodId( - r'copyOfRange', - r'([SII)[S', + static final _id_mismatch$2 = _class.staticMethodId( + r'mismatch', + r'([B[B)I', ); - static final _copyOfRange$3 = jni$_.ProtectedJniExtensions.lookup< + static final _mismatch$2 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -32593,65 +28367,81 @@ class Arrays extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') + jni$_.Pointer + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - /// from: `static public short[] copyOfRange(short[] ss, int i, int i1)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JShortArray? copyOfRange$3( - jni$_.JShortArray? ss, - int i, - int i1, + /// from: `static public int mismatch(byte[] bs, byte[] bs1)` + static core$_.int mismatch$2( + jni$_.JByteArray? bs, + jni$_.JByteArray? bs1, ) { - final _$ss = ss?.reference ?? jni$_.jNullReference; - return _copyOfRange$3(_class.reference.pointer, - _id_copyOfRange$3 as jni$_.JMethodIDPtr, _$ss.pointer, i, i1) - .object(const jni$_.JShortArrayNullableType()); + final _$$classRef = _class.reference; + final _$bs = bs?.reference ?? jni$_.jNullReference; + final _$bs1 = bs1?.reference ?? jni$_.jNullReference; + return _mismatch$2(_$$classRef.pointer, _id_mismatch$2.pointer, + _$bs.pointer, _$bs1.pointer) + .integer; } - static final _id_copyOfRange$4 = _class.staticMethodId( - r'copyOfRange', - r'([III)[I', + static final _id_mismatch$3 = _class.staticMethodId( + r'mismatch', + r'([BII[BII)I', ); - static final _copyOfRange$4 = jni$_.ProtectedJniExtensions.lookup< + static final _mismatch$3 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public int[] copyOfRange(int[] is, int i, int i1)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JIntArray? copyOfRange$4( - jni$_.JIntArray? is$, - int i, - int i1, + /// from: `static public int mismatch(byte[] bs, int i, int i1, byte[] bs1, int i2, int i3)` + static core$_.int mismatch$3( + jni$_.JByteArray? bs, + core$_.int i, + core$_.int i1, + jni$_.JByteArray? bs1, + core$_.int i2, + core$_.int i3, ) { - final _$is$ = is$?.reference ?? jni$_.jNullReference; - return _copyOfRange$4(_class.reference.pointer, - _id_copyOfRange$4 as jni$_.JMethodIDPtr, _$is$.pointer, i, i1) - .object(const jni$_.JIntArrayNullableType()); + final _$$classRef = _class.reference; + final _$bs = bs?.reference ?? jni$_.jNullReference; + final _$bs1 = bs1?.reference ?? jni$_.jNullReference; + return _mismatch$3(_$$classRef.pointer, _id_mismatch$3.pointer, + _$bs.pointer, i, i1, _$bs1.pointer, i2, i3) + .integer; } - static final _id_copyOfRange$5 = _class.staticMethodId( - r'copyOfRange', - r'([JII)[J', + static final _id_mismatch$4 = _class.staticMethodId( + r'mismatch', + r'([C[C)I', ); - static final _copyOfRange$5 = jni$_.ProtectedJniExtensions.lookup< + static final _mismatch$4 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -32659,65 +28449,81 @@ class Arrays extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') + jni$_.Pointer + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - /// from: `static public long[] copyOfRange(long[] js, int i, int i1)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JLongArray? copyOfRange$5( - jni$_.JLongArray? js, - int i, - int i1, + /// from: `static public int mismatch(char[] cs, char[] cs1)` + static core$_.int mismatch$4( + jni$_.JCharArray? cs, + jni$_.JCharArray? cs1, ) { - final _$js = js?.reference ?? jni$_.jNullReference; - return _copyOfRange$5(_class.reference.pointer, - _id_copyOfRange$5 as jni$_.JMethodIDPtr, _$js.pointer, i, i1) - .object(const jni$_.JLongArrayNullableType()); + final _$$classRef = _class.reference; + final _$cs = cs?.reference ?? jni$_.jNullReference; + final _$cs1 = cs1?.reference ?? jni$_.jNullReference; + return _mismatch$4(_$$classRef.pointer, _id_mismatch$4.pointer, + _$cs.pointer, _$cs1.pointer) + .integer; } - static final _id_copyOfRange$6 = _class.staticMethodId( - r'copyOfRange', - r'([CII)[C', + static final _id_mismatch$5 = _class.staticMethodId( + r'mismatch', + r'([CII[CII)I', ); - static final _copyOfRange$6 = jni$_.ProtectedJniExtensions.lookup< + static final _mismatch$5 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public char[] copyOfRange(char[] cs, int i, int i1)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JCharArray? copyOfRange$6( + /// from: `static public int mismatch(char[] cs, int i, int i1, char[] cs1, int i2, int i3)` + static core$_.int mismatch$5( jni$_.JCharArray? cs, - int i, - int i1, + core$_.int i, + core$_.int i1, + jni$_.JCharArray? cs1, + core$_.int i2, + core$_.int i3, ) { + final _$$classRef = _class.reference; final _$cs = cs?.reference ?? jni$_.jNullReference; - return _copyOfRange$6(_class.reference.pointer, - _id_copyOfRange$6 as jni$_.JMethodIDPtr, _$cs.pointer, i, i1) - .object(const jni$_.JCharArrayNullableType()); + final _$cs1 = cs1?.reference ?? jni$_.jNullReference; + return _mismatch$5(_$$classRef.pointer, _id_mismatch$5.pointer, + _$cs.pointer, i, i1, _$cs1.pointer, i2, i3) + .integer; } - static final _id_copyOfRange$7 = _class.staticMethodId( - r'copyOfRange', - r'([FII)[F', + static final _id_mismatch$6 = _class.staticMethodId( + r'mismatch', + r'([D[D)I', ); - static final _copyOfRange$7 = jni$_.ProtectedJniExtensions.lookup< + static final _mismatch$6 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -32725,65 +28531,81 @@ class Arrays extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') + jni$_.Pointer + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - /// from: `static public float[] copyOfRange(float[] fs, int i, int i1)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JFloatArray? copyOfRange$7( - jni$_.JFloatArray? fs, - int i, - int i1, - ) { - final _$fs = fs?.reference ?? jni$_.jNullReference; - return _copyOfRange$7(_class.reference.pointer, - _id_copyOfRange$7 as jni$_.JMethodIDPtr, _$fs.pointer, i, i1) - .object(const jni$_.JFloatArrayNullableType()); + /// from: `static public int mismatch(double[] ds, double[] ds1)` + static core$_.int mismatch$6( + jni$_.JDoubleArray? ds, + jni$_.JDoubleArray? ds1, + ) { + final _$$classRef = _class.reference; + final _$ds = ds?.reference ?? jni$_.jNullReference; + final _$ds1 = ds1?.reference ?? jni$_.jNullReference; + return _mismatch$6(_$$classRef.pointer, _id_mismatch$6.pointer, + _$ds.pointer, _$ds1.pointer) + .integer; } - static final _id_copyOfRange$8 = _class.staticMethodId( - r'copyOfRange', - r'([DII)[D', + static final _id_mismatch$7 = _class.staticMethodId( + r'mismatch', + r'([DII[DII)I', ); - static final _copyOfRange$8 = jni$_.ProtectedJniExtensions.lookup< + static final _mismatch$7 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public double[] copyOfRange(double[] ds, int i, int i1)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JDoubleArray? copyOfRange$8( + /// from: `static public int mismatch(double[] ds, int i, int i1, double[] ds1, int i2, int i3)` + static core$_.int mismatch$7( jni$_.JDoubleArray? ds, - int i, - int i1, + core$_.int i, + core$_.int i1, + jni$_.JDoubleArray? ds1, + core$_.int i2, + core$_.int i3, ) { + final _$$classRef = _class.reference; final _$ds = ds?.reference ?? jni$_.jNullReference; - return _copyOfRange$8(_class.reference.pointer, - _id_copyOfRange$8 as jni$_.JMethodIDPtr, _$ds.pointer, i, i1) - .object(const jni$_.JDoubleArrayNullableType()); + final _$ds1 = ds1?.reference ?? jni$_.jNullReference; + return _mismatch$7(_$$classRef.pointer, _id_mismatch$7.pointer, + _$ds.pointer, i, i1, _$ds1.pointer, i2, i3) + .integer; } - static final _id_copyOfRange$9 = _class.staticMethodId( - r'copyOfRange', - r'([ZII)[Z', + static final _id_mismatch$8 = _class.staticMethodId( + r'mismatch', + r'([F[F)I', ); - static final _copyOfRange$9 = jni$_.ProtectedJniExtensions.lookup< + static final _mismatch$8 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -32791,628 +28613,741 @@ class Arrays extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') + jni$_.Pointer + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - /// from: `static public boolean[] copyOfRange(boolean[] zs, int i, int i1)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JBooleanArray? copyOfRange$9( - jni$_.JBooleanArray? zs, - int i, - int i1, + /// from: `static public int mismatch(float[] fs, float[] fs1)` + static core$_.int mismatch$8( + jni$_.JFloatArray? fs, + jni$_.JFloatArray? fs1, ) { - final _$zs = zs?.reference ?? jni$_.jNullReference; - return _copyOfRange$9(_class.reference.pointer, - _id_copyOfRange$9 as jni$_.JMethodIDPtr, _$zs.pointer, i, i1) - .object(const jni$_.JBooleanArrayNullableType()); - } - - static final _id_asList = _class.staticMethodId( - r'asList', - r'([Ljava/lang/Object;)Ljava/util/List;', - ); - - static final _asList = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `static public java.util.List asList(java.lang.Object[] objects)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JList<$T?>? asList<$T extends jni$_.JObject?>( - jni$_.JArray<$T?>? objects, { - required jni$_.JObjType<$T> T, - }) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - return _asList(_class.reference.pointer, _id_asList as jni$_.JMethodIDPtr, - _$objects.pointer) - .object?>( - jni$_.JListNullableType<$T?>(T.nullableType)); + final _$$classRef = _class.reference; + final _$fs = fs?.reference ?? jni$_.jNullReference; + final _$fs1 = fs1?.reference ?? jni$_.jNullReference; + return _mismatch$8(_$$classRef.pointer, _id_mismatch$8.pointer, + _$fs.pointer, _$fs1.pointer) + .integer; } - static final _id_hashCode$1 = _class.staticMethodId( - r'hashCode', - r'([J)I', + static final _id_mismatch$9 = _class.staticMethodId( + r'mismatch', + r'([FII[FII)I', ); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticIntMethod') + static final _mismatch$9 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32 + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public int hashCode(long[] js)` - static int hashCode$1( - jni$_.JLongArray? js, + /// from: `static public int mismatch(float[] fs, int i, int i1, float[] fs1, int i2, int i3)` + static core$_.int mismatch$9( + jni$_.JFloatArray? fs, + core$_.int i, + core$_.int i1, + jni$_.JFloatArray? fs1, + core$_.int i2, + core$_.int i3, ) { - final _$js = js?.reference ?? jni$_.jNullReference; - return _hashCode$1(_class.reference.pointer, - _id_hashCode$1 as jni$_.JMethodIDPtr, _$js.pointer) + final _$$classRef = _class.reference; + final _$fs = fs?.reference ?? jni$_.jNullReference; + final _$fs1 = fs1?.reference ?? jni$_.jNullReference; + return _mismatch$9(_$$classRef.pointer, _id_mismatch$9.pointer, + _$fs.pointer, i, i1, _$fs1.pointer, i2, i3) .integer; } - static final _id_hashCode$2 = _class.staticMethodId( - r'hashCode', - r'([I)I', + static final _id_mismatch$10 = _class.staticMethodId( + r'mismatch', + r'([III[III)I', ); - static final _hashCode$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticIntMethod') + static final _mismatch$10 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32 + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public int hashCode(int[] is)` - static int hashCode$2( + /// from: `static public int mismatch(int[] is, int i, int i1, int[] is1, int i2, int i3)` + static core$_.int mismatch$10( jni$_.JIntArray? is$, + core$_.int i, + core$_.int i1, + jni$_.JIntArray? is1, + core$_.int i2, + core$_.int i3, ) { + final _$$classRef = _class.reference; final _$is$ = is$?.reference ?? jni$_.jNullReference; - return _hashCode$2(_class.reference.pointer, - _id_hashCode$2 as jni$_.JMethodIDPtr, _$is$.pointer) + final _$is1 = is1?.reference ?? jni$_.jNullReference; + return _mismatch$10(_$$classRef.pointer, _id_mismatch$10.pointer, + _$is$.pointer, i, i1, _$is1.pointer, i2, i3) .integer; } - static final _id_hashCode$3 = _class.staticMethodId( - r'hashCode', - r'([S)I', + static final _id_mismatch$11 = _class.staticMethodId( + r'mismatch', + r'([I[I)I', ); - static final _hashCode$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticIntMethod') + static final _mismatch$11 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - /// from: `static public int hashCode(short[] ss)` - static int hashCode$3( - jni$_.JShortArray? ss, + /// from: `static public int mismatch(int[] is, int[] is1)` + static core$_.int mismatch$11( + jni$_.JIntArray? is$, + jni$_.JIntArray? is1, ) { - final _$ss = ss?.reference ?? jni$_.jNullReference; - return _hashCode$3(_class.reference.pointer, - _id_hashCode$3 as jni$_.JMethodIDPtr, _$ss.pointer) + final _$$classRef = _class.reference; + final _$is$ = is$?.reference ?? jni$_.jNullReference; + final _$is1 = is1?.reference ?? jni$_.jNullReference; + return _mismatch$11(_$$classRef.pointer, _id_mismatch$11.pointer, + _$is$.pointer, _$is1.pointer) .integer; } - static final _id_hashCode$4 = _class.staticMethodId( - r'hashCode', - r'([C)I', + static final _id_mismatch$12 = _class.staticMethodId( + r'mismatch', + r'([Ljava/lang/Object;II[Ljava/lang/Object;II)I', ); - static final _hashCode$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticIntMethod') + static final _mismatch$12 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32 + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public int hashCode(char[] cs)` - static int hashCode$4( - jni$_.JCharArray? cs, + /// from: `static public int mismatch(java.lang.Object[] objects, int i, int i1, java.lang.Object[] objects1, int i2, int i3)` + static core$_.int mismatch$12( + jni$_.JArray? objects, + core$_.int i, + core$_.int i1, + jni$_.JArray? objects1, + core$_.int i2, + core$_.int i3, ) { - final _$cs = cs?.reference ?? jni$_.jNullReference; - return _hashCode$4(_class.reference.pointer, - _id_hashCode$4 as jni$_.JMethodIDPtr, _$cs.pointer) + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + final _$objects1 = objects1?.reference ?? jni$_.jNullReference; + return _mismatch$12(_$$classRef.pointer, _id_mismatch$12.pointer, + _$objects.pointer, i, i1, _$objects1.pointer, i2, i3) .integer; } - static final _id_hashCode$5 = _class.staticMethodId( - r'hashCode', - r'([B)I', + static final _id_mismatch$13 = _class.staticMethodId( + r'mismatch', + r'([Ljava/lang/Object;[Ljava/lang/Object;)I', ); - static final _hashCode$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticIntMethod') + static final _mismatch$13 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - /// from: `static public int hashCode(byte[] bs)` - static int hashCode$5( - jni$_.JByteArray? bs, + /// from: `static public int mismatch(java.lang.Object[] objects, java.lang.Object[] objects1)` + static core$_.int mismatch$13( + jni$_.JArray? objects, + jni$_.JArray? objects1, ) { - final _$bs = bs?.reference ?? jni$_.jNullReference; - return _hashCode$5(_class.reference.pointer, - _id_hashCode$5 as jni$_.JMethodIDPtr, _$bs.pointer) + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + final _$objects1 = objects1?.reference ?? jni$_.jNullReference; + return _mismatch$13(_$$classRef.pointer, _id_mismatch$13.pointer, + _$objects.pointer, _$objects1.pointer) .integer; } - static final _id_hashCode$6 = _class.staticMethodId( - r'hashCode', - r'([Z)I', + static final _id_mismatch$14 = _class.staticMethodId( + r'mismatch', + r'([JII[JII)I', ); - static final _hashCode$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticIntMethod') + static final _mismatch$14 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32 + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public int hashCode(boolean[] zs)` - static int hashCode$6( - jni$_.JBooleanArray? zs, + /// from: `static public int mismatch(long[] js, int i, int i1, long[] js1, int i2, int i3)` + static core$_.int mismatch$14( + jni$_.JLongArray? js, + core$_.int i, + core$_.int i1, + jni$_.JLongArray? js1, + core$_.int i2, + core$_.int i3, ) { - final _$zs = zs?.reference ?? jni$_.jNullReference; - return _hashCode$6(_class.reference.pointer, - _id_hashCode$6 as jni$_.JMethodIDPtr, _$zs.pointer) + final _$$classRef = _class.reference; + final _$js = js?.reference ?? jni$_.jNullReference; + final _$js1 = js1?.reference ?? jni$_.jNullReference; + return _mismatch$14(_$$classRef.pointer, _id_mismatch$14.pointer, + _$js.pointer, i, i1, _$js1.pointer, i2, i3) .integer; } - static final _id_hashCode$7 = _class.staticMethodId( - r'hashCode', - r'([F)I', + static final _id_mismatch$15 = _class.staticMethodId( + r'mismatch', + r'([J[J)I', ); - static final _hashCode$7 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticIntMethod') + static final _mismatch$15 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - /// from: `static public int hashCode(float[] fs)` - static int hashCode$7( - jni$_.JFloatArray? fs, + /// from: `static public int mismatch(long[] js, long[] js1)` + static core$_.int mismatch$15( + jni$_.JLongArray? js, + jni$_.JLongArray? js1, ) { - final _$fs = fs?.reference ?? jni$_.jNullReference; - return _hashCode$7(_class.reference.pointer, - _id_hashCode$7 as jni$_.JMethodIDPtr, _$fs.pointer) + final _$$classRef = _class.reference; + final _$js = js?.reference ?? jni$_.jNullReference; + final _$js1 = js1?.reference ?? jni$_.jNullReference; + return _mismatch$15(_$$classRef.pointer, _id_mismatch$15.pointer, + _$js.pointer, _$js1.pointer) .integer; } - static final _id_hashCode$8 = _class.staticMethodId( - r'hashCode', - r'([D)I', + static final _id_mismatch$16 = _class.staticMethodId( + r'mismatch', + r'([SII[SII)I', ); - static final _hashCode$8 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticIntMethod') + static final _mismatch$16 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32 + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public int hashCode(double[] ds)` - static int hashCode$8( - jni$_.JDoubleArray? ds, + /// from: `static public int mismatch(short[] ss, int i, int i1, short[] ss1, int i2, int i3)` + static core$_.int mismatch$16( + jni$_.JShortArray? ss, + core$_.int i, + core$_.int i1, + jni$_.JShortArray? ss1, + core$_.int i2, + core$_.int i3, ) { - final _$ds = ds?.reference ?? jni$_.jNullReference; - return _hashCode$8(_class.reference.pointer, - _id_hashCode$8 as jni$_.JMethodIDPtr, _$ds.pointer) + final _$$classRef = _class.reference; + final _$ss = ss?.reference ?? jni$_.jNullReference; + final _$ss1 = ss1?.reference ?? jni$_.jNullReference; + return _mismatch$16(_$$classRef.pointer, _id_mismatch$16.pointer, + _$ss.pointer, i, i1, _$ss1.pointer, i2, i3) .integer; } - static final _id_hashCode$9 = _class.staticMethodId( - r'hashCode', - r'([Ljava/lang/Object;)I', + static final _id_mismatch$17 = _class.staticMethodId( + r'mismatch', + r'([S[S)I', ); - static final _hashCode$9 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticIntMethod') + static final _mismatch$17 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - /// from: `static public int hashCode(java.lang.Object[] objects)` - static int hashCode$9( - jni$_.JArray? objects, + /// from: `static public int mismatch(short[] ss, short[] ss1)` + static core$_.int mismatch$17( + jni$_.JShortArray? ss, + jni$_.JShortArray? ss1, ) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - return _hashCode$9(_class.reference.pointer, - _id_hashCode$9 as jni$_.JMethodIDPtr, _$objects.pointer) + final _$$classRef = _class.reference; + final _$ss = ss?.reference ?? jni$_.jNullReference; + final _$ss1 = ss1?.reference ?? jni$_.jNullReference; + return _mismatch$17(_$$classRef.pointer, _id_mismatch$17.pointer, + _$ss.pointer, _$ss1.pointer) .integer; } - static final _id_deepHashCode = _class.staticMethodId( - r'deepHashCode', - r'([Ljava/lang/Object;)I', + static final _id_mismatch$18 = _class.staticMethodId( + r'mismatch', + r'([Ljava/lang/Object;II[Ljava/lang/Object;IILjava/util/Comparator;)I', ); - static final _deepHashCode = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticIntMethod') + static final _mismatch$18 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer)>(); - /// from: `static public int deepHashCode(java.lang.Object[] objects)` - static int deepHashCode( - jni$_.JArray? objects, + /// from: `static public int mismatch(T[] objects, int i, int i1, T[] objects1, int i2, int i3, java.util.Comparator comparator)` + static core$_.int mismatch$18<$T extends jni$_.JObject?>( + jni$_.JArray<$T?>? objects, + core$_.int i, + core$_.int i1, + jni$_.JArray<$T?>? objects1, + core$_.int i2, + core$_.int i3, + Comparator? comparator, ) { + final _$$classRef = _class.reference; final _$objects = objects?.reference ?? jni$_.jNullReference; - return _deepHashCode(_class.reference.pointer, - _id_deepHashCode as jni$_.JMethodIDPtr, _$objects.pointer) + final _$objects1 = objects1?.reference ?? jni$_.jNullReference; + final _$comparator = comparator?.reference ?? jni$_.jNullReference; + return _mismatch$18( + _$$classRef.pointer, + _id_mismatch$18.pointer, + _$objects.pointer, + i, + i1, + _$objects1.pointer, + i2, + i3, + _$comparator.pointer) .integer; } - static final _id_deepEquals = _class.staticMethodId( - r'deepEquals', - r'([Ljava/lang/Object;[Ljava/lang/Object;)Z', + static final _id_mismatch$19 = _class.staticMethodId( + r'mismatch', + r'([Ljava/lang/Object;[Ljava/lang/Object;Ljava/util/Comparator;)I', ); - static final _deepEquals = jni$_.ProtectedJniExtensions.lookup< + static final _mismatch$19 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( + jni$_.Pointer, jni$_.Pointer, jni$_.Pointer - )>)>>('globalEnv_CallStaticBooleanMethod') + )>)>>('globalEnv_CallStaticIntMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, + jni$_.Pointer, jni$_.Pointer)>(); - /// from: `static public boolean deepEquals(java.lang.Object[] objects, java.lang.Object[] objects1)` - static bool deepEquals( - jni$_.JArray? objects, - jni$_.JArray? objects1, + /// from: `static public int mismatch(T[] objects, T[] objects1, java.util.Comparator comparator)` + static core$_.int mismatch$19<$T extends jni$_.JObject?>( + jni$_.JArray<$T?>? objects, + jni$_.JArray<$T?>? objects1, + Comparator? comparator, ) { + final _$$classRef = _class.reference; final _$objects = objects?.reference ?? jni$_.jNullReference; final _$objects1 = objects1?.reference ?? jni$_.jNullReference; - return _deepEquals( - _class.reference.pointer, - _id_deepEquals as jni$_.JMethodIDPtr, - _$objects.pointer, - _$objects1.pointer) - .boolean; - } + final _$comparator = comparator?.reference ?? jni$_.jNullReference; + return _mismatch$19(_$$classRef.pointer, _id_mismatch$19.pointer, + _$objects.pointer, _$objects1.pointer, _$comparator.pointer) + .integer; + } - static final _id_toString$1 = _class.staticMethodId( - r'toString', - r'([J)Ljava/lang/String;', + static final _id_parallelPrefix = _class.staticMethodId( + r'parallelPrefix', + r'([DIILjava/util/function/DoubleBinaryOperator;)V', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') + static final _parallelPrefix = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer)>(); - /// from: `static public java.lang.String toString(long[] js)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? toString$1( - jni$_.JLongArray? js, + /// from: `static public void parallelPrefix(double[] ds, int i, int i1, java.util.function.DoubleBinaryOperator doubleBinaryOperator)` + static void parallelPrefix( + jni$_.JDoubleArray? ds, + core$_.int i, + core$_.int i1, + DoubleBinaryOperator? doubleBinaryOperator, ) { - final _$js = js?.reference ?? jni$_.jNullReference; - return _toString$1(_class.reference.pointer, - _id_toString$1 as jni$_.JMethodIDPtr, _$js.pointer) - .object(const jni$_.JStringNullableType()); + final _$$classRef = _class.reference; + final _$ds = ds?.reference ?? jni$_.jNullReference; + final _$doubleBinaryOperator = + doubleBinaryOperator?.reference ?? jni$_.jNullReference; + _parallelPrefix(_$$classRef.pointer, _id_parallelPrefix.pointer, + _$ds.pointer, i, i1, _$doubleBinaryOperator.pointer) + .check(); } - static final _id_toString$2 = _class.staticMethodId( - r'toString', - r'([I)Ljava/lang/String;', + static final _id_parallelPrefix$1 = _class.staticMethodId( + r'parallelPrefix', + r'([DLjava/util/function/DoubleBinaryOperator;)V', ); - static final _toString$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') + static final _parallelPrefix$1 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - /// from: `static public java.lang.String toString(int[] is)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? toString$2( - jni$_.JIntArray? is$, + /// from: `static public void parallelPrefix(double[] ds, java.util.function.DoubleBinaryOperator doubleBinaryOperator)` + static void parallelPrefix$1( + jni$_.JDoubleArray? ds, + DoubleBinaryOperator? doubleBinaryOperator, ) { - final _$is$ = is$?.reference ?? jni$_.jNullReference; - return _toString$2(_class.reference.pointer, - _id_toString$2 as jni$_.JMethodIDPtr, _$is$.pointer) - .object(const jni$_.JStringNullableType()); + final _$$classRef = _class.reference; + final _$ds = ds?.reference ?? jni$_.jNullReference; + final _$doubleBinaryOperator = + doubleBinaryOperator?.reference ?? jni$_.jNullReference; + _parallelPrefix$1(_$$classRef.pointer, _id_parallelPrefix$1.pointer, + _$ds.pointer, _$doubleBinaryOperator.pointer) + .check(); } - static final _id_toString$3 = _class.staticMethodId( - r'toString', - r'([S)Ljava/lang/String;', + static final _id_parallelPrefix$2 = _class.staticMethodId( + r'parallelPrefix', + r'([IIILjava/util/function/IntBinaryOperator;)V', ); - static final _toString$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') + static final _parallelPrefix$2 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer)>(); - /// from: `static public java.lang.String toString(short[] ss)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? toString$3( - jni$_.JShortArray? ss, + /// from: `static public void parallelPrefix(int[] is, int i, int i1, java.util.function.IntBinaryOperator intBinaryOperator)` + static void parallelPrefix$2( + jni$_.JIntArray? is$, + core$_.int i, + core$_.int i1, + IntBinaryOperator? intBinaryOperator, ) { - final _$ss = ss?.reference ?? jni$_.jNullReference; - return _toString$3(_class.reference.pointer, - _id_toString$3 as jni$_.JMethodIDPtr, _$ss.pointer) - .object(const jni$_.JStringNullableType()); + final _$$classRef = _class.reference; + final _$is$ = is$?.reference ?? jni$_.jNullReference; + final _$intBinaryOperator = + intBinaryOperator?.reference ?? jni$_.jNullReference; + _parallelPrefix$2(_$$classRef.pointer, _id_parallelPrefix$2.pointer, + _$is$.pointer, i, i1, _$intBinaryOperator.pointer) + .check(); } - static final _id_toString$4 = _class.staticMethodId( - r'toString', - r'([C)Ljava/lang/String;', + static final _id_parallelPrefix$3 = _class.staticMethodId( + r'parallelPrefix', + r'([ILjava/util/function/IntBinaryOperator;)V', ); - static final _toString$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') + static final _parallelPrefix$3 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - /// from: `static public java.lang.String toString(char[] cs)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? toString$4( - jni$_.JCharArray? cs, + /// from: `static public void parallelPrefix(int[] is, java.util.function.IntBinaryOperator intBinaryOperator)` + static void parallelPrefix$3( + jni$_.JIntArray? is$, + IntBinaryOperator? intBinaryOperator, ) { - final _$cs = cs?.reference ?? jni$_.jNullReference; - return _toString$4(_class.reference.pointer, - _id_toString$4 as jni$_.JMethodIDPtr, _$cs.pointer) - .object(const jni$_.JStringNullableType()); + final _$$classRef = _class.reference; + final _$is$ = is$?.reference ?? jni$_.jNullReference; + final _$intBinaryOperator = + intBinaryOperator?.reference ?? jni$_.jNullReference; + _parallelPrefix$3(_$$classRef.pointer, _id_parallelPrefix$3.pointer, + _$is$.pointer, _$intBinaryOperator.pointer) + .check(); } - static final _id_toString$5 = _class.staticMethodId( - r'toString', - r'([B)Ljava/lang/String;', + static final _id_parallelPrefix$4 = _class.staticMethodId( + r'parallelPrefix', + r'([JIILjava/util/function/LongBinaryOperator;)V', ); - static final _toString$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') + static final _parallelPrefix$4 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer)>(); - /// from: `static public java.lang.String toString(byte[] bs)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? toString$5( - jni$_.JByteArray? bs, + /// from: `static public void parallelPrefix(long[] js, int i, int i1, java.util.function.LongBinaryOperator longBinaryOperator)` + static void parallelPrefix$4( + jni$_.JLongArray? js, + core$_.int i, + core$_.int i1, + LongBinaryOperator? longBinaryOperator, ) { - final _$bs = bs?.reference ?? jni$_.jNullReference; - return _toString$5(_class.reference.pointer, - _id_toString$5 as jni$_.JMethodIDPtr, _$bs.pointer) - .object(const jni$_.JStringNullableType()); + final _$$classRef = _class.reference; + final _$js = js?.reference ?? jni$_.jNullReference; + final _$longBinaryOperator = + longBinaryOperator?.reference ?? jni$_.jNullReference; + _parallelPrefix$4(_$$classRef.pointer, _id_parallelPrefix$4.pointer, + _$js.pointer, i, i1, _$longBinaryOperator.pointer) + .check(); } - static final _id_toString$6 = _class.staticMethodId( - r'toString', - r'([Z)Ljava/lang/String;', + static final _id_parallelPrefix$5 = _class.staticMethodId( + r'parallelPrefix', + r'([JLjava/util/function/LongBinaryOperator;)V', ); - static final _toString$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') + static final _parallelPrefix$5 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - /// from: `static public java.lang.String toString(boolean[] zs)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? toString$6( - jni$_.JBooleanArray? zs, + /// from: `static public void parallelPrefix(long[] js, java.util.function.LongBinaryOperator longBinaryOperator)` + static void parallelPrefix$5( + jni$_.JLongArray? js, + LongBinaryOperator? longBinaryOperator, ) { - final _$zs = zs?.reference ?? jni$_.jNullReference; - return _toString$6(_class.reference.pointer, - _id_toString$6 as jni$_.JMethodIDPtr, _$zs.pointer) - .object(const jni$_.JStringNullableType()); - } - - static final _id_toString$7 = _class.staticMethodId( - r'toString', - r'([F)Ljava/lang/String;', - ); - - static final _toString$7 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `static public java.lang.String toString(float[] fs)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? toString$7( - jni$_.JFloatArray? fs, - ) { - final _$fs = fs?.reference ?? jni$_.jNullReference; - return _toString$7(_class.reference.pointer, - _id_toString$7 as jni$_.JMethodIDPtr, _$fs.pointer) - .object(const jni$_.JStringNullableType()); - } - - static final _id_toString$8 = _class.staticMethodId( - r'toString', - r'([D)Ljava/lang/String;', - ); - - static final _toString$8 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `static public java.lang.String toString(double[] ds)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? toString$8( - jni$_.JDoubleArray? ds, - ) { - final _$ds = ds?.reference ?? jni$_.jNullReference; - return _toString$8(_class.reference.pointer, - _id_toString$8 as jni$_.JMethodIDPtr, _$ds.pointer) - .object(const jni$_.JStringNullableType()); - } - - static final _id_toString$9 = _class.staticMethodId( - r'toString', - r'([Ljava/lang/Object;)Ljava/lang/String;', - ); - - static final _toString$9 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `static public java.lang.String toString(java.lang.Object[] objects)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? toString$9( - jni$_.JArray? objects, - ) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - return _toString$9(_class.reference.pointer, - _id_toString$9 as jni$_.JMethodIDPtr, _$objects.pointer) - .object(const jni$_.JStringNullableType()); - } - - static final _id_deepToString = _class.staticMethodId( - r'deepToString', - r'([Ljava/lang/Object;)Ljava/lang/String;', - ); - - static final _deepToString = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `static public java.lang.String deepToString(java.lang.Object[] objects)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? deepToString( - jni$_.JArray? objects, - ) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - return _deepToString(_class.reference.pointer, - _id_deepToString as jni$_.JMethodIDPtr, _$objects.pointer) - .object(const jni$_.JStringNullableType()); + final _$$classRef = _class.reference; + final _$js = js?.reference ?? jni$_.jNullReference; + final _$longBinaryOperator = + longBinaryOperator?.reference ?? jni$_.jNullReference; + _parallelPrefix$5(_$$classRef.pointer, _id_parallelPrefix$5.pointer, + _$js.pointer, _$longBinaryOperator.pointer) + .check(); } - static final _id_setAll = _class.staticMethodId( - r'setAll', - r'([Ljava/lang/Object;Ljava/util/function/IntFunction;)V', + static final _id_parallelPrefix$6 = _class.staticMethodId( + r'parallelPrefix', + r'([Ljava/lang/Object;IILjava/util/function/BinaryOperator;)V', ); - static final _setAll = jni$_.ProtectedJniExtensions.lookup< + static final _parallelPrefix$6 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -33420,6 +29355,8 @@ class Arrays extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, jni$_.Pointer )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< @@ -33427,27 +29364,31 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, + core$_.int, + core$_.int, jni$_.Pointer)>(); - /// from: `static public void setAll(java.lang.Object[] objects, java.util.function.IntFunction intFunction)` - static void setAll<$T extends jni$_.JObject?>( + /// from: `static public void parallelPrefix(T[] objects, int i, int i1, java.util.function.BinaryOperator binaryOperator)` + static void parallelPrefix$6<$T extends jni$_.JObject?>( jni$_.JArray<$T?>? objects, - jni$_.JObject? intFunction, { - required jni$_.JObjType<$T> T, - }) { + core$_.int i, + core$_.int i1, + BinaryOperator? binaryOperator, + ) { + final _$$classRef = _class.reference; final _$objects = objects?.reference ?? jni$_.jNullReference; - final _$intFunction = intFunction?.reference ?? jni$_.jNullReference; - _setAll(_class.reference.pointer, _id_setAll as jni$_.JMethodIDPtr, - _$objects.pointer, _$intFunction.pointer) + final _$binaryOperator = binaryOperator?.reference ?? jni$_.jNullReference; + _parallelPrefix$6(_$$classRef.pointer, _id_parallelPrefix$6.pointer, + _$objects.pointer, i, i1, _$binaryOperator.pointer) .check(); } - static final _id_parallelSetAll = _class.staticMethodId( - r'parallelSetAll', - r'([Ljava/lang/Object;Ljava/util/function/IntFunction;)V', + static final _id_parallelPrefix$7 = _class.staticMethodId( + r'parallelPrefix', + r'([Ljava/lang/Object;Ljava/util/function/BinaryOperator;)V', ); - static final _parallelSetAll = jni$_.ProtectedJniExtensions.lookup< + static final _parallelPrefix$7 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -33464,28 +29405,25 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `static public void parallelSetAll(java.lang.Object[] objects, java.util.function.IntFunction intFunction)` - static void parallelSetAll<$T extends jni$_.JObject?>( + /// from: `static public void parallelPrefix(T[] objects, java.util.function.BinaryOperator binaryOperator)` + static void parallelPrefix$7<$T extends jni$_.JObject?>( jni$_.JArray<$T?>? objects, - jni$_.JObject? intFunction, { - required jni$_.JObjType<$T> T, - }) { + BinaryOperator? binaryOperator, + ) { + final _$$classRef = _class.reference; final _$objects = objects?.reference ?? jni$_.jNullReference; - final _$intFunction = intFunction?.reference ?? jni$_.jNullReference; - _parallelSetAll( - _class.reference.pointer, - _id_parallelSetAll as jni$_.JMethodIDPtr, - _$objects.pointer, - _$intFunction.pointer) + final _$binaryOperator = binaryOperator?.reference ?? jni$_.jNullReference; + _parallelPrefix$7(_$$classRef.pointer, _id_parallelPrefix$7.pointer, + _$objects.pointer, _$binaryOperator.pointer) .check(); } - static final _id_setAll$1 = _class.staticMethodId( - r'setAll', - r'([ILjava/util/function/IntUnaryOperator;)V', + static final _id_parallelSetAll = _class.staticMethodId( + r'parallelSetAll', + r'([DLjava/util/function/IntToDoubleFunction;)V', ); - static final _setAll$1 = jni$_.ProtectedJniExtensions.lookup< + static final _parallelSetAll = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -33502,16 +29440,17 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `static public void setAll(int[] is, java.util.function.IntUnaryOperator intUnaryOperator)` - static void setAll$1( - jni$_.JIntArray? is$, - jni$_.JObject? intUnaryOperator, + /// from: `static public void parallelSetAll(double[] ds, java.util.function.IntToDoubleFunction intToDoubleFunction)` + static void parallelSetAll( + jni$_.JDoubleArray? ds, + IntToDoubleFunction? intToDoubleFunction, ) { - final _$is$ = is$?.reference ?? jni$_.jNullReference; - final _$intUnaryOperator = - intUnaryOperator?.reference ?? jni$_.jNullReference; - _setAll$1(_class.reference.pointer, _id_setAll$1 as jni$_.JMethodIDPtr, - _$is$.pointer, _$intUnaryOperator.pointer) + final _$$classRef = _class.reference; + final _$ds = ds?.reference ?? jni$_.jNullReference; + final _$intToDoubleFunction = + intToDoubleFunction?.reference ?? jni$_.jNullReference; + _parallelSetAll(_$$classRef.pointer, _id_parallelSetAll.pointer, + _$ds.pointer, _$intToDoubleFunction.pointer) .check(); } @@ -33540,25 +29479,23 @@ class Arrays extends jni$_.JObject { /// from: `static public void parallelSetAll(int[] is, java.util.function.IntUnaryOperator intUnaryOperator)` static void parallelSetAll$1( jni$_.JIntArray? is$, - jni$_.JObject? intUnaryOperator, + IntUnaryOperator? intUnaryOperator, ) { + final _$$classRef = _class.reference; final _$is$ = is$?.reference ?? jni$_.jNullReference; final _$intUnaryOperator = intUnaryOperator?.reference ?? jni$_.jNullReference; - _parallelSetAll$1( - _class.reference.pointer, - _id_parallelSetAll$1 as jni$_.JMethodIDPtr, - _$is$.pointer, - _$intUnaryOperator.pointer) + _parallelSetAll$1(_$$classRef.pointer, _id_parallelSetAll$1.pointer, + _$is$.pointer, _$intUnaryOperator.pointer) .check(); } - static final _id_setAll$2 = _class.staticMethodId( - r'setAll', + static final _id_parallelSetAll$2 = _class.staticMethodId( + r'parallelSetAll', r'([JLjava/util/function/IntToLongFunction;)V', ); - static final _setAll$2 = jni$_.ProtectedJniExtensions.lookup< + static final _parallelSetAll$2 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -33575,25 +29512,26 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `static public void setAll(long[] js, java.util.function.IntToLongFunction intToLongFunction)` - static void setAll$2( + /// from: `static public void parallelSetAll(long[] js, java.util.function.IntToLongFunction intToLongFunction)` + static void parallelSetAll$2( jni$_.JLongArray? js, - jni$_.JObject? intToLongFunction, + IntToLongFunction? intToLongFunction, ) { + final _$$classRef = _class.reference; final _$js = js?.reference ?? jni$_.jNullReference; final _$intToLongFunction = intToLongFunction?.reference ?? jni$_.jNullReference; - _setAll$2(_class.reference.pointer, _id_setAll$2 as jni$_.JMethodIDPtr, + _parallelSetAll$2(_$$classRef.pointer, _id_parallelSetAll$2.pointer, _$js.pointer, _$intToLongFunction.pointer) .check(); } - static final _id_parallelSetAll$2 = _class.staticMethodId( + static final _id_parallelSetAll$3 = _class.staticMethodId( r'parallelSetAll', - r'([JLjava/util/function/IntToLongFunction;)V', + r'([Ljava/lang/Object;Ljava/util/function/IntFunction;)V', ); - static final _parallelSetAll$2 = jni$_.ProtectedJniExtensions.lookup< + static final _parallelSetAll$3 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -33610,63 +29548,51 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer)>(); - /// from: `static public void parallelSetAll(long[] js, java.util.function.IntToLongFunction intToLongFunction)` - static void parallelSetAll$2( - jni$_.JLongArray? js, - jni$_.JObject? intToLongFunction, + /// from: `static public void parallelSetAll(T[] objects, java.util.function.IntFunction intFunction)` + static void parallelSetAll$3<$T extends jni$_.JObject?>( + jni$_.JArray<$T?>? objects, + IntFunction? intFunction, ) { - final _$js = js?.reference ?? jni$_.jNullReference; - final _$intToLongFunction = - intToLongFunction?.reference ?? jni$_.jNullReference; - _parallelSetAll$2( - _class.reference.pointer, - _id_parallelSetAll$2 as jni$_.JMethodIDPtr, - _$js.pointer, - _$intToLongFunction.pointer) + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + final _$intFunction = intFunction?.reference ?? jni$_.jNullReference; + _parallelSetAll$3(_$$classRef.pointer, _id_parallelSetAll$3.pointer, + _$objects.pointer, _$intFunction.pointer) .check(); } - static final _id_setAll$3 = _class.staticMethodId( - r'setAll', - r'([DLjava/util/function/IntToDoubleFunction;)V', + static final _id_parallelSort = _class.staticMethodId( + r'parallelSort', + r'([B)V', ); - static final _setAll$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') + static final _parallelSort = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public void setAll(double[] ds, java.util.function.IntToDoubleFunction intToDoubleFunction)` - static void setAll$3( - jni$_.JDoubleArray? ds, - jni$_.JObject? intToDoubleFunction, + /// from: `static public void parallelSort(byte[] bs)` + static void parallelSort( + jni$_.JByteArray? bs, ) { - final _$ds = ds?.reference ?? jni$_.jNullReference; - final _$intToDoubleFunction = - intToDoubleFunction?.reference ?? jni$_.jNullReference; - _setAll$3(_class.reference.pointer, _id_setAll$3 as jni$_.JMethodIDPtr, - _$ds.pointer, _$intToDoubleFunction.pointer) + final _$$classRef = _class.reference; + final _$bs = bs?.reference ?? jni$_.jNullReference; + _parallelSort(_$$classRef.pointer, _id_parallelSort.pointer, _$bs.pointer) .check(); } - static final _id_parallelSetAll$3 = _class.staticMethodId( - r'parallelSetAll', - r'([DLjava/util/function/IntToDoubleFunction;)V', + static final _id_parallelSort$1 = _class.staticMethodId( + r'parallelSort', + r'([BII)V', ); - static final _parallelSetAll$3 = jni$_.ProtectedJniExtensions.lookup< + static final _parallelSort$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -33674,67 +29600,65 @@ class Arrays extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Pointer + jni$_.Int32, + jni$_.Int32 )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + core$_.int, + core$_.int)>(); - /// from: `static public void parallelSetAll(double[] ds, java.util.function.IntToDoubleFunction intToDoubleFunction)` - static void parallelSetAll$3( - jni$_.JDoubleArray? ds, - jni$_.JObject? intToDoubleFunction, + /// from: `static public void parallelSort(byte[] bs, int i, int i1)` + static void parallelSort$1( + jni$_.JByteArray? bs, + core$_.int i, + core$_.int i1, ) { - final _$ds = ds?.reference ?? jni$_.jNullReference; - final _$intToDoubleFunction = - intToDoubleFunction?.reference ?? jni$_.jNullReference; - _parallelSetAll$3( - _class.reference.pointer, - _id_parallelSetAll$3 as jni$_.JMethodIDPtr, - _$ds.pointer, - _$intToDoubleFunction.pointer) + final _$$classRef = _class.reference; + final _$bs = bs?.reference ?? jni$_.jNullReference; + _parallelSort$1(_$$classRef.pointer, _id_parallelSort$1.pointer, + _$bs.pointer, i, i1) .check(); } - static final _id_spliterator = _class.staticMethodId( - r'spliterator', - r'([Ljava/lang/Object;)Ljava/util/Spliterator;', + static final _id_parallelSort$2 = _class.staticMethodId( + r'parallelSort', + r'([C)V', ); - static final _spliterator = jni$_.ProtectedJniExtensions.lookup< + static final _parallelSort$2 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') + 'globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, + jni$_.JThrowablePtr Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public java.util.Spliterator spliterator(java.lang.Object[] objects)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? spliterator<$T extends jni$_.JObject?>( - jni$_.JArray<$T?>? objects, { - required jni$_.JObjType<$T> T, - }) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - return _spliterator(_class.reference.pointer, - _id_spliterator as jni$_.JMethodIDPtr, _$objects.pointer) - .object(const jni$_.JObjectNullableType()); + /// from: `static public void parallelSort(char[] cs)` + static void parallelSort$2( + jni$_.JCharArray? cs, + ) { + final _$$classRef = _class.reference; + final _$cs = cs?.reference ?? jni$_.jNullReference; + _parallelSort$2( + _$$classRef.pointer, _id_parallelSort$2.pointer, _$cs.pointer) + .check(); } - static final _id_spliterator$1 = _class.staticMethodId( - r'spliterator', - r'([Ljava/lang/Object;II)Ljava/util/Spliterator;', + static final _id_parallelSort$3 = _class.staticMethodId( + r'parallelSort', + r'([CII)V', ); - static final _spliterator$1 = jni$_.ProtectedJniExtensions.lookup< + static final _parallelSort$3 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< @@ -33742,60 +29666,63 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public java.util.Spliterator spliterator(java.lang.Object[] objects, int i, int i1)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? spliterator$1<$T extends jni$_.JObject?>( - jni$_.JArray<$T?>? objects, - int i, - int i1, { - required jni$_.JObjType<$T> T, - }) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - return _spliterator$1(_class.reference.pointer, - _id_spliterator$1 as jni$_.JMethodIDPtr, _$objects.pointer, i, i1) - .object(const jni$_.JObjectNullableType()); + /// from: `static public void parallelSort(char[] cs, int i, int i1)` + static void parallelSort$3( + jni$_.JCharArray? cs, + core$_.int i, + core$_.int i1, + ) { + final _$$classRef = _class.reference; + final _$cs = cs?.reference ?? jni$_.jNullReference; + _parallelSort$3(_$$classRef.pointer, _id_parallelSort$3.pointer, + _$cs.pointer, i, i1) + .check(); } - static final _id_spliterator$2 = _class.staticMethodId( - r'spliterator', - r'([I)Ljava/util/Spliterator$OfInt;', + static final _id_parallelSort$4 = _class.staticMethodId( + r'parallelSort', + r'([D)V', ); - static final _spliterator$2 = jni$_.ProtectedJniExtensions.lookup< + static final _parallelSort$4 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') + 'globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, + jni$_.JThrowablePtr Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public java.util.Spliterator$OfInt spliterator(int[] is)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? spliterator$2( - jni$_.JIntArray? is$, + /// from: `static public void parallelSort(double[] ds)` + static void parallelSort$4( + jni$_.JDoubleArray? ds, ) { - final _$is$ = is$?.reference ?? jni$_.jNullReference; - return _spliterator$2(_class.reference.pointer, - _id_spliterator$2 as jni$_.JMethodIDPtr, _$is$.pointer) - .object(const jni$_.JObjectNullableType()); + final _$$classRef = _class.reference; + final _$ds = ds?.reference ?? jni$_.jNullReference; + _parallelSort$4( + _$$classRef.pointer, _id_parallelSort$4.pointer, _$ds.pointer) + .check(); } - static final _id_spliterator$3 = _class.staticMethodId( - r'spliterator', - r'([III)Ljava/util/Spliterator$OfInt;', + static final _id_parallelSort$5 = _class.staticMethodId( + r'parallelSort', + r'([DII)V', ); - static final _spliterator$3 = jni$_.ProtectedJniExtensions.lookup< + static final _parallelSort$5 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< @@ -33803,59 +29730,63 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public java.util.Spliterator$OfInt spliterator(int[] is, int i, int i1)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? spliterator$3( - jni$_.JIntArray? is$, - int i, - int i1, + /// from: `static public void parallelSort(double[] ds, int i, int i1)` + static void parallelSort$5( + jni$_.JDoubleArray? ds, + core$_.int i, + core$_.int i1, ) { - final _$is$ = is$?.reference ?? jni$_.jNullReference; - return _spliterator$3(_class.reference.pointer, - _id_spliterator$3 as jni$_.JMethodIDPtr, _$is$.pointer, i, i1) - .object(const jni$_.JObjectNullableType()); + final _$$classRef = _class.reference; + final _$ds = ds?.reference ?? jni$_.jNullReference; + _parallelSort$5(_$$classRef.pointer, _id_parallelSort$5.pointer, + _$ds.pointer, i, i1) + .check(); } - static final _id_spliterator$4 = _class.staticMethodId( - r'spliterator', - r'([J)Ljava/util/Spliterator$OfLong;', + static final _id_parallelSort$6 = _class.staticMethodId( + r'parallelSort', + r'([F)V', ); - static final _spliterator$4 = jni$_.ProtectedJniExtensions.lookup< + static final _parallelSort$6 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') + 'globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, + jni$_.JThrowablePtr Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public java.util.Spliterator$OfLong spliterator(long[] js)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? spliterator$4( - jni$_.JLongArray? js, + /// from: `static public void parallelSort(float[] fs)` + static void parallelSort$6( + jni$_.JFloatArray? fs, ) { - final _$js = js?.reference ?? jni$_.jNullReference; - return _spliterator$4(_class.reference.pointer, - _id_spliterator$4 as jni$_.JMethodIDPtr, _$js.pointer) - .object(const jni$_.JObjectNullableType()); + final _$$classRef = _class.reference; + final _$fs = fs?.reference ?? jni$_.jNullReference; + _parallelSort$6( + _$$classRef.pointer, _id_parallelSort$6.pointer, _$fs.pointer) + .check(); } - static final _id_spliterator$5 = _class.staticMethodId( - r'spliterator', - r'([JII)Ljava/util/Spliterator$OfLong;', + static final _id_parallelSort$7 = _class.staticMethodId( + r'parallelSort', + r'([FII)V', ); - static final _spliterator$5 = jni$_.ProtectedJniExtensions.lookup< + static final _parallelSort$7 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< @@ -33863,59 +29794,63 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public java.util.Spliterator$OfLong spliterator(long[] js, int i, int i1)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? spliterator$5( - jni$_.JLongArray? js, - int i, - int i1, + /// from: `static public void parallelSort(float[] fs, int i, int i1)` + static void parallelSort$7( + jni$_.JFloatArray? fs, + core$_.int i, + core$_.int i1, ) { - final _$js = js?.reference ?? jni$_.jNullReference; - return _spliterator$5(_class.reference.pointer, - _id_spliterator$5 as jni$_.JMethodIDPtr, _$js.pointer, i, i1) - .object(const jni$_.JObjectNullableType()); + final _$$classRef = _class.reference; + final _$fs = fs?.reference ?? jni$_.jNullReference; + _parallelSort$7(_$$classRef.pointer, _id_parallelSort$7.pointer, + _$fs.pointer, i, i1) + .check(); } - static final _id_spliterator$6 = _class.staticMethodId( - r'spliterator', - r'([D)Ljava/util/Spliterator$OfDouble;', + static final _id_parallelSort$8 = _class.staticMethodId( + r'parallelSort', + r'([I)V', ); - static final _spliterator$6 = jni$_.ProtectedJniExtensions.lookup< + static final _parallelSort$8 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') + 'globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, + jni$_.JThrowablePtr Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public java.util.Spliterator$OfDouble spliterator(double[] ds)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? spliterator$6( - jni$_.JDoubleArray? ds, + /// from: `static public void parallelSort(int[] is)` + static void parallelSort$8( + jni$_.JIntArray? is$, ) { - final _$ds = ds?.reference ?? jni$_.jNullReference; - return _spliterator$6(_class.reference.pointer, - _id_spliterator$6 as jni$_.JMethodIDPtr, _$ds.pointer) - .object(const jni$_.JObjectNullableType()); + final _$$classRef = _class.reference; + final _$is$ = is$?.reference ?? jni$_.jNullReference; + _parallelSort$8( + _$$classRef.pointer, _id_parallelSort$8.pointer, _$is$.pointer) + .check(); } - static final _id_spliterator$7 = _class.staticMethodId( - r'spliterator', - r'([DII)Ljava/util/Spliterator$OfDouble;', + static final _id_parallelSort$9 = _class.staticMethodId( + r'parallelSort', + r'([III)V', ); - static final _spliterator$7 = jni$_.ProtectedJniExtensions.lookup< + static final _parallelSort$9 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< @@ -33923,60 +29858,63 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public java.util.Spliterator$OfDouble spliterator(double[] ds, int i, int i1)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? spliterator$7( - jni$_.JDoubleArray? ds, - int i, - int i1, + /// from: `static public void parallelSort(int[] is, int i, int i1)` + static void parallelSort$9( + jni$_.JIntArray? is$, + core$_.int i, + core$_.int i1, ) { - final _$ds = ds?.reference ?? jni$_.jNullReference; - return _spliterator$7(_class.reference.pointer, - _id_spliterator$7 as jni$_.JMethodIDPtr, _$ds.pointer, i, i1) - .object(const jni$_.JObjectNullableType()); + final _$$classRef = _class.reference; + final _$is$ = is$?.reference ?? jni$_.jNullReference; + _parallelSort$9(_$$classRef.pointer, _id_parallelSort$9.pointer, + _$is$.pointer, i, i1) + .check(); } - static final _id_stream = _class.staticMethodId( - r'stream', - r'([Ljava/lang/Object;)Ljava/util/stream/Stream;', + static final _id_parallelSort$10 = _class.staticMethodId( + r'parallelSort', + r'([J)V', ); - static final _stream = jni$_.ProtectedJniExtensions.lookup< + static final _parallelSort$10 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') + 'globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, + jni$_.JThrowablePtr Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public java.util.stream.Stream stream(java.lang.Object[] objects)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? stream<$T extends jni$_.JObject?>( - jni$_.JArray<$T?>? objects, { - required jni$_.JObjType<$T> T, - }) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - return _stream(_class.reference.pointer, _id_stream as jni$_.JMethodIDPtr, - _$objects.pointer) - .object(const jni$_.JObjectNullableType()); + /// from: `static public void parallelSort(long[] js)` + static void parallelSort$10( + jni$_.JLongArray? js, + ) { + final _$$classRef = _class.reference; + final _$js = js?.reference ?? jni$_.jNullReference; + _parallelSort$10( + _$$classRef.pointer, _id_parallelSort$10.pointer, _$js.pointer) + .check(); } - static final _id_stream$1 = _class.staticMethodId( - r'stream', - r'([Ljava/lang/Object;II)Ljava/util/stream/Stream;', + static final _id_parallelSort$11 = _class.staticMethodId( + r'parallelSort', + r'([JII)V', ); - static final _stream$1 = jni$_.ProtectedJniExtensions.lookup< + static final _parallelSort$11 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< @@ -33984,60 +29922,63 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public java.util.stream.Stream stream(java.lang.Object[] objects, int i, int i1)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? stream$1<$T extends jni$_.JObject?>( - jni$_.JArray<$T?>? objects, - int i, - int i1, { - required jni$_.JObjType<$T> T, - }) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - return _stream$1(_class.reference.pointer, - _id_stream$1 as jni$_.JMethodIDPtr, _$objects.pointer, i, i1) - .object(const jni$_.JObjectNullableType()); + /// from: `static public void parallelSort(long[] js, int i, int i1)` + static void parallelSort$11( + jni$_.JLongArray? js, + core$_.int i, + core$_.int i1, + ) { + final _$$classRef = _class.reference; + final _$js = js?.reference ?? jni$_.jNullReference; + _parallelSort$11(_$$classRef.pointer, _id_parallelSort$11.pointer, + _$js.pointer, i, i1) + .check(); } - static final _id_stream$2 = _class.staticMethodId( - r'stream', - r'([I)Ljava/util/stream/IntStream;', + static final _id_parallelSort$12 = _class.staticMethodId( + r'parallelSort', + r'([S)V', ); - static final _stream$2 = jni$_.ProtectedJniExtensions.lookup< + static final _parallelSort$12 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') + 'globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, + jni$_.JThrowablePtr Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public java.util.stream.IntStream stream(int[] is)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? stream$2( - jni$_.JIntArray? is$, + /// from: `static public void parallelSort(short[] ss)` + static void parallelSort$12( + jni$_.JShortArray? ss, ) { - final _$is$ = is$?.reference ?? jni$_.jNullReference; - return _stream$2(_class.reference.pointer, - _id_stream$2 as jni$_.JMethodIDPtr, _$is$.pointer) - .object(const jni$_.JObjectNullableType()); + final _$$classRef = _class.reference; + final _$ss = ss?.reference ?? jni$_.jNullReference; + _parallelSort$12( + _$$classRef.pointer, _id_parallelSort$12.pointer, _$ss.pointer) + .check(); } - static final _id_stream$3 = _class.staticMethodId( - r'stream', - r'([III)Ljava/util/stream/IntStream;', + static final _id_parallelSort$13 = _class.staticMethodId( + r'parallelSort', + r'([SII)V', ); - static final _stream$3 = jni$_.ProtectedJniExtensions.lookup< + static final _parallelSort$13 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< @@ -34045,59 +29986,63 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public java.util.stream.IntStream stream(int[] is, int i, int i1)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? stream$3( - jni$_.JIntArray? is$, - int i, - int i1, + /// from: `static public void parallelSort(short[] ss, int i, int i1)` + static void parallelSort$13( + jni$_.JShortArray? ss, + core$_.int i, + core$_.int i1, ) { - final _$is$ = is$?.reference ?? jni$_.jNullReference; - return _stream$3(_class.reference.pointer, - _id_stream$3 as jni$_.JMethodIDPtr, _$is$.pointer, i, i1) - .object(const jni$_.JObjectNullableType()); + final _$$classRef = _class.reference; + final _$ss = ss?.reference ?? jni$_.jNullReference; + _parallelSort$13(_$$classRef.pointer, _id_parallelSort$13.pointer, + _$ss.pointer, i, i1) + .check(); } - static final _id_stream$4 = _class.staticMethodId( - r'stream', - r'([J)Ljava/util/stream/LongStream;', + static final _id_parallelSort$14 = _class.staticMethodId( + r'parallelSort', + r'([Ljava/lang/Comparable;)V', ); - static final _stream$4 = jni$_.ProtectedJniExtensions.lookup< + static final _parallelSort$14 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') + 'globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, + jni$_.JThrowablePtr Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public java.util.stream.LongStream stream(long[] js)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? stream$4( - jni$_.JLongArray? js, + /// from: `static public void parallelSort(T[] comparables)` + static void parallelSort$14<$T extends jni$_.JObject?>( + jni$_.JArray<$T?>? comparables, ) { - final _$js = js?.reference ?? jni$_.jNullReference; - return _stream$4(_class.reference.pointer, - _id_stream$4 as jni$_.JMethodIDPtr, _$js.pointer) - .object(const jni$_.JObjectNullableType()); + final _$$classRef = _class.reference; + final _$comparables = comparables?.reference ?? jni$_.jNullReference; + _parallelSort$14(_$$classRef.pointer, _id_parallelSort$14.pointer, + _$comparables.pointer) + .check(); } - static final _id_stream$5 = _class.staticMethodId( - r'stream', - r'([JII)Ljava/util/stream/LongStream;', + static final _id_parallelSort$15 = _class.staticMethodId( + r'parallelSort', + r'([Ljava/lang/Comparable;II)V', ); - static final _stream$5 = jni$_.ProtectedJniExtensions.lookup< + static final _parallelSort$15 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< @@ -34105,882 +30050,912 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); - - /// from: `static public java.util.stream.LongStream stream(long[] js, int i, int i1)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? stream$5( - jni$_.JLongArray? js, - int i, - int i1, - ) { - final _$js = js?.reference ?? jni$_.jNullReference; - return _stream$5(_class.reference.pointer, - _id_stream$5 as jni$_.JMethodIDPtr, _$js.pointer, i, i1) - .object(const jni$_.JObjectNullableType()); - } - - static final _id_stream$6 = _class.staticMethodId( - r'stream', - r'([D)Ljava/util/stream/DoubleStream;', - ); - - static final _stream$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int)>(); - /// from: `static public java.util.stream.DoubleStream stream(double[] ds)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? stream$6( - jni$_.JDoubleArray? ds, + /// from: `static public void parallelSort(T[] comparables, int i, int i1)` + static void parallelSort$15<$T extends jni$_.JObject?>( + jni$_.JArray<$T?>? comparables, + core$_.int i, + core$_.int i1, ) { - final _$ds = ds?.reference ?? jni$_.jNullReference; - return _stream$6(_class.reference.pointer, - _id_stream$6 as jni$_.JMethodIDPtr, _$ds.pointer) - .object(const jni$_.JObjectNullableType()); + final _$$classRef = _class.reference; + final _$comparables = comparables?.reference ?? jni$_.jNullReference; + _parallelSort$15(_$$classRef.pointer, _id_parallelSort$15.pointer, + _$comparables.pointer, i, i1) + .check(); } - static final _id_stream$7 = _class.staticMethodId( - r'stream', - r'([DII)Ljava/util/stream/DoubleStream;', + static final _id_parallelSort$16 = _class.staticMethodId( + r'parallelSort', + r'([Ljava/lang/Object;IILjava/util/Comparator;)V', ); - static final _stream$7 = jni$_.ProtectedJniExtensions.lookup< + static final _parallelSort$16 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') + jni$_.Int32, + jni$_.Pointer + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + core$_.int, + core$_.int, + jni$_.Pointer)>(); - /// from: `static public java.util.stream.DoubleStream stream(double[] ds, int i, int i1)` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? stream$7( - jni$_.JDoubleArray? ds, - int i, - int i1, + /// from: `static public void parallelSort(T[] objects, int i, int i1, java.util.Comparator comparator)` + static void parallelSort$16<$T extends jni$_.JObject?>( + jni$_.JArray<$T?>? objects, + core$_.int i, + core$_.int i1, + Comparator? comparator, ) { - final _$ds = ds?.reference ?? jni$_.jNullReference; - return _stream$7(_class.reference.pointer, - _id_stream$7 as jni$_.JMethodIDPtr, _$ds.pointer, i, i1) - .object(const jni$_.JObjectNullableType()); + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + final _$comparator = comparator?.reference ?? jni$_.jNullReference; + _parallelSort$16(_$$classRef.pointer, _id_parallelSort$16.pointer, + _$objects.pointer, i, i1, _$comparator.pointer) + .check(); } - static final _id_compare = _class.staticMethodId( - r'compare', - r'([Z[Z)I', + static final _id_parallelSort$17 = _class.staticMethodId( + r'parallelSort', + r'([Ljava/lang/Object;Ljava/util/Comparator;)V', ); - static final _compare = jni$_.ProtectedJniExtensions.lookup< + static final _parallelSort$17 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer)>(); - /// from: `static public int compare(boolean[] zs, boolean[] zs1)` - static int compare( - jni$_.JBooleanArray? zs, - jni$_.JBooleanArray? zs1, + /// from: `static public void parallelSort(T[] objects, java.util.Comparator comparator)` + static void parallelSort$17<$T extends jni$_.JObject?>( + jni$_.JArray<$T?>? objects, + Comparator? comparator, ) { - final _$zs = zs?.reference ?? jni$_.jNullReference; - final _$zs1 = zs1?.reference ?? jni$_.jNullReference; - return _compare(_class.reference.pointer, _id_compare as jni$_.JMethodIDPtr, - _$zs.pointer, _$zs1.pointer) - .integer; + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + final _$comparator = comparator?.reference ?? jni$_.jNullReference; + _parallelSort$17(_$$classRef.pointer, _id_parallelSort$17.pointer, + _$objects.pointer, _$comparator.pointer) + .check(); } - static final _id_compare$1 = _class.staticMethodId( - r'compare', - r'([ZII[ZII)I', + static final _id_setAll = _class.staticMethodId( + r'setAll', + r'([DLjava/util/function/IntToDoubleFunction;)V', ); - static final _compare$1 = jni$_.ProtectedJniExtensions.lookup< + static final _setAll = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') + jni$_.Pointer + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); + jni$_.Pointer)>(); - /// from: `static public int compare(boolean[] zs, int i, int i1, boolean[] zs1, int i2, int i3)` - static int compare$1( - jni$_.JBooleanArray? zs, - int i, - int i1, - jni$_.JBooleanArray? zs1, - int i2, - int i3, + /// from: `static public void setAll(double[] ds, java.util.function.IntToDoubleFunction intToDoubleFunction)` + static void setAll( + jni$_.JDoubleArray? ds, + IntToDoubleFunction? intToDoubleFunction, ) { - final _$zs = zs?.reference ?? jni$_.jNullReference; - final _$zs1 = zs1?.reference ?? jni$_.jNullReference; - return _compare$1( - _class.reference.pointer, - _id_compare$1 as jni$_.JMethodIDPtr, - _$zs.pointer, - i, - i1, - _$zs1.pointer, - i2, - i3) - .integer; + final _$$classRef = _class.reference; + final _$ds = ds?.reference ?? jni$_.jNullReference; + final _$intToDoubleFunction = + intToDoubleFunction?.reference ?? jni$_.jNullReference; + _setAll(_$$classRef.pointer, _id_setAll.pointer, _$ds.pointer, + _$intToDoubleFunction.pointer) + .check(); } - static final _id_compare$2 = _class.staticMethodId( - r'compare', - r'([B[B)I', + static final _id_setAll$1 = _class.staticMethodId( + r'setAll', + r'([ILjava/util/function/IntUnaryOperator;)V', ); - static final _compare$2 = jni$_.ProtectedJniExtensions.lookup< + static final _setAll$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer)>(); - /// from: `static public int compare(byte[] bs, byte[] bs1)` - static int compare$2( - jni$_.JByteArray? bs, - jni$_.JByteArray? bs1, + /// from: `static public void setAll(int[] is, java.util.function.IntUnaryOperator intUnaryOperator)` + static void setAll$1( + jni$_.JIntArray? is$, + IntUnaryOperator? intUnaryOperator, ) { - final _$bs = bs?.reference ?? jni$_.jNullReference; - final _$bs1 = bs1?.reference ?? jni$_.jNullReference; - return _compare$2(_class.reference.pointer, - _id_compare$2 as jni$_.JMethodIDPtr, _$bs.pointer, _$bs1.pointer) - .integer; + final _$$classRef = _class.reference; + final _$is$ = is$?.reference ?? jni$_.jNullReference; + final _$intUnaryOperator = + intUnaryOperator?.reference ?? jni$_.jNullReference; + _setAll$1(_$$classRef.pointer, _id_setAll$1.pointer, _$is$.pointer, + _$intUnaryOperator.pointer) + .check(); } - static final _id_compare$3 = _class.staticMethodId( - r'compare', - r'([BII[BII)I', + static final _id_setAll$2 = _class.staticMethodId( + r'setAll', + r'([JLjava/util/function/IntToLongFunction;)V', ); - static final _compare$3 = jni$_.ProtectedJniExtensions.lookup< + static final _setAll$2 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') + jni$_.Pointer + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); + jni$_.Pointer)>(); - /// from: `static public int compare(byte[] bs, int i, int i1, byte[] bs1, int i2, int i3)` - static int compare$3( - jni$_.JByteArray? bs, - int i, - int i1, - jni$_.JByteArray? bs1, - int i2, - int i3, + /// from: `static public void setAll(long[] js, java.util.function.IntToLongFunction intToLongFunction)` + static void setAll$2( + jni$_.JLongArray? js, + IntToLongFunction? intToLongFunction, ) { - final _$bs = bs?.reference ?? jni$_.jNullReference; - final _$bs1 = bs1?.reference ?? jni$_.jNullReference; - return _compare$3( - _class.reference.pointer, - _id_compare$3 as jni$_.JMethodIDPtr, - _$bs.pointer, - i, - i1, - _$bs1.pointer, - i2, - i3) - .integer; + final _$$classRef = _class.reference; + final _$js = js?.reference ?? jni$_.jNullReference; + final _$intToLongFunction = + intToLongFunction?.reference ?? jni$_.jNullReference; + _setAll$2(_$$classRef.pointer, _id_setAll$2.pointer, _$js.pointer, + _$intToLongFunction.pointer) + .check(); } - static final _id_compareUnsigned = _class.staticMethodId( - r'compareUnsigned', - r'([B[B)I', + static final _id_setAll$3 = _class.staticMethodId( + r'setAll', + r'([Ljava/lang/Object;Ljava/util/function/IntFunction;)V', ); - static final _compareUnsigned = jni$_.ProtectedJniExtensions.lookup< + static final _setAll$3 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer)>(); - /// from: `static public int compareUnsigned(byte[] bs, byte[] bs1)` - static int compareUnsigned( + /// from: `static public void setAll(T[] objects, java.util.function.IntFunction intFunction)` + static void setAll$3<$T extends jni$_.JObject?>( + jni$_.JArray<$T?>? objects, + IntFunction? intFunction, + ) { + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + final _$intFunction = intFunction?.reference ?? jni$_.jNullReference; + _setAll$3(_$$classRef.pointer, _id_setAll$3.pointer, _$objects.pointer, + _$intFunction.pointer) + .check(); + } + + static final _id_sort = _class.staticMethodId( + r'sort', + r'([B)V', + ); + + static final _sort = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `static public void sort(byte[] bs)` + static void sort( jni$_.JByteArray? bs, - jni$_.JByteArray? bs1, ) { + final _$$classRef = _class.reference; final _$bs = bs?.reference ?? jni$_.jNullReference; - final _$bs1 = bs1?.reference ?? jni$_.jNullReference; - return _compareUnsigned( - _class.reference.pointer, - _id_compareUnsigned as jni$_.JMethodIDPtr, - _$bs.pointer, - _$bs1.pointer) - .integer; + _sort(_$$classRef.pointer, _id_sort.pointer, _$bs.pointer).check(); } - static final _id_compareUnsigned$1 = _class.staticMethodId( - r'compareUnsigned', - r'([BII[BII)I', + static final _id_sort$1 = _class.staticMethodId( + r'sort', + r'([BII)V', ); - static final _compareUnsigned$1 = jni$_.ProtectedJniExtensions.lookup< + static final _sort$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); + core$_.int, + core$_.int)>(); - /// from: `static public int compareUnsigned(byte[] bs, int i, int i1, byte[] bs1, int i2, int i3)` - static int compareUnsigned$1( + /// from: `static public void sort(byte[] bs, int i, int i1)` + static void sort$1( jni$_.JByteArray? bs, - int i, - int i1, - jni$_.JByteArray? bs1, - int i2, - int i3, + core$_.int i, + core$_.int i1, ) { + final _$$classRef = _class.reference; final _$bs = bs?.reference ?? jni$_.jNullReference; - final _$bs1 = bs1?.reference ?? jni$_.jNullReference; - return _compareUnsigned$1( - _class.reference.pointer, - _id_compareUnsigned$1 as jni$_.JMethodIDPtr, - _$bs.pointer, - i, - i1, - _$bs1.pointer, - i2, - i3) - .integer; + _sort$1(_$$classRef.pointer, _id_sort$1.pointer, _$bs.pointer, i, i1) + .check(); } - static final _id_compare$4 = _class.staticMethodId( - r'compare', - r'([S[S)I', + static final _id_sort$2 = _class.staticMethodId( + r'sort', + r'([C)V', ); - static final _compare$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + static final _sort$2 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public int compare(short[] ss, short[] ss1)` - static int compare$4( - jni$_.JShortArray? ss, - jni$_.JShortArray? ss1, + /// from: `static public void sort(char[] cs)` + static void sort$2( + jni$_.JCharArray? cs, ) { - final _$ss = ss?.reference ?? jni$_.jNullReference; - final _$ss1 = ss1?.reference ?? jni$_.jNullReference; - return _compare$4(_class.reference.pointer, - _id_compare$4 as jni$_.JMethodIDPtr, _$ss.pointer, _$ss1.pointer) - .integer; + final _$$classRef = _class.reference; + final _$cs = cs?.reference ?? jni$_.jNullReference; + _sort$2(_$$classRef.pointer, _id_sort$2.pointer, _$cs.pointer).check(); } - static final _id_compare$5 = _class.staticMethodId( - r'compare', - r'([SII[SII)I', + static final _id_sort$3 = _class.staticMethodId( + r'sort', + r'([CII)V', ); - static final _compare$5 = jni$_.ProtectedJniExtensions.lookup< + static final _sort$3 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); + core$_.int, + core$_.int)>(); - /// from: `static public int compare(short[] ss, int i, int i1, short[] ss1, int i2, int i3)` - static int compare$5( - jni$_.JShortArray? ss, - int i, - int i1, - jni$_.JShortArray? ss1, - int i2, - int i3, + /// from: `static public void sort(char[] cs, int i, int i1)` + static void sort$3( + jni$_.JCharArray? cs, + core$_.int i, + core$_.int i1, ) { - final _$ss = ss?.reference ?? jni$_.jNullReference; - final _$ss1 = ss1?.reference ?? jni$_.jNullReference; - return _compare$5( - _class.reference.pointer, - _id_compare$5 as jni$_.JMethodIDPtr, - _$ss.pointer, - i, - i1, - _$ss1.pointer, - i2, - i3) - .integer; + final _$$classRef = _class.reference; + final _$cs = cs?.reference ?? jni$_.jNullReference; + _sort$3(_$$classRef.pointer, _id_sort$3.pointer, _$cs.pointer, i, i1) + .check(); } - static final _id_compareUnsigned$2 = _class.staticMethodId( - r'compareUnsigned', - r'([S[S)I', + static final _id_sort$4 = _class.staticMethodId( + r'sort', + r'([D)V', ); - static final _compareUnsigned$2 = jni$_.ProtectedJniExtensions.lookup< + static final _sort$4 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `static public void sort(double[] ds)` + static void sort$4( + jni$_.JDoubleArray? ds, + ) { + final _$$classRef = _class.reference; + final _$ds = ds?.reference ?? jni$_.jNullReference; + _sort$4(_$$classRef.pointer, _id_sort$4.pointer, _$ds.pointer).check(); + } + + static final _id_sort$5 = _class.staticMethodId( + r'sort', + r'([DII)V', + ); + + static final _sort$5 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + jni$_.Int32, + jni$_.Int32 + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + core$_.int, + core$_.int)>(); - /// from: `static public int compareUnsigned(short[] ss, short[] ss1)` - static int compareUnsigned$2( - jni$_.JShortArray? ss, - jni$_.JShortArray? ss1, + /// from: `static public void sort(double[] ds, int i, int i1)` + static void sort$5( + jni$_.JDoubleArray? ds, + core$_.int i, + core$_.int i1, ) { - final _$ss = ss?.reference ?? jni$_.jNullReference; - final _$ss1 = ss1?.reference ?? jni$_.jNullReference; - return _compareUnsigned$2( - _class.reference.pointer, - _id_compareUnsigned$2 as jni$_.JMethodIDPtr, - _$ss.pointer, - _$ss1.pointer) - .integer; + final _$$classRef = _class.reference; + final _$ds = ds?.reference ?? jni$_.jNullReference; + _sort$5(_$$classRef.pointer, _id_sort$5.pointer, _$ds.pointer, i, i1) + .check(); } - static final _id_compareUnsigned$3 = _class.staticMethodId( - r'compareUnsigned', - r'([SII[SII)I', + static final _id_sort$6 = _class.staticMethodId( + r'sort', + r'([F)V', ); - static final _compareUnsigned$3 = jni$_.ProtectedJniExtensions.lookup< + static final _sort$6 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `static public void sort(float[] fs)` + static void sort$6( + jni$_.JFloatArray? fs, + ) { + final _$$classRef = _class.reference; + final _$fs = fs?.reference ?? jni$_.jNullReference; + _sort$6(_$$classRef.pointer, _id_sort$6.pointer, _$fs.pointer).check(); + } + + static final _id_sort$7 = _class.staticMethodId( + r'sort', + r'([FII)V', + ); + + static final _sort$7 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); + core$_.int, + core$_.int)>(); - /// from: `static public int compareUnsigned(short[] ss, int i, int i1, short[] ss1, int i2, int i3)` - static int compareUnsigned$3( - jni$_.JShortArray? ss, - int i, - int i1, - jni$_.JShortArray? ss1, - int i2, - int i3, + /// from: `static public void sort(float[] fs, int i, int i1)` + static void sort$7( + jni$_.JFloatArray? fs, + core$_.int i, + core$_.int i1, ) { - final _$ss = ss?.reference ?? jni$_.jNullReference; - final _$ss1 = ss1?.reference ?? jni$_.jNullReference; - return _compareUnsigned$3( - _class.reference.pointer, - _id_compareUnsigned$3 as jni$_.JMethodIDPtr, - _$ss.pointer, - i, - i1, - _$ss1.pointer, - i2, - i3) - .integer; + final _$$classRef = _class.reference; + final _$fs = fs?.reference ?? jni$_.jNullReference; + _sort$7(_$$classRef.pointer, _id_sort$7.pointer, _$fs.pointer, i, i1) + .check(); } - static final _id_compare$6 = _class.staticMethodId( - r'compare', - r'([C[C)I', + static final _id_sort$8 = _class.staticMethodId( + r'sort', + r'([I)V', ); - static final _compare$6 = jni$_.ProtectedJniExtensions.lookup< + static final _sort$8 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `static public void sort(int[] is)` + static void sort$8( + jni$_.JIntArray? is$, + ) { + final _$$classRef = _class.reference; + final _$is$ = is$?.reference ?? jni$_.jNullReference; + _sort$8(_$$classRef.pointer, _id_sort$8.pointer, _$is$.pointer).check(); + } + + static final _id_sort$9 = _class.staticMethodId( + r'sort', + r'([III)V', + ); + + static final _sort$9 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + jni$_.Int32, + jni$_.Int32 + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + core$_.int, + core$_.int)>(); - /// from: `static public int compare(char[] cs, char[] cs1)` - static int compare$6( - jni$_.JCharArray? cs, - jni$_.JCharArray? cs1, + /// from: `static public void sort(int[] is, int i, int i1)` + static void sort$9( + jni$_.JIntArray? is$, + core$_.int i, + core$_.int i1, ) { - final _$cs = cs?.reference ?? jni$_.jNullReference; - final _$cs1 = cs1?.reference ?? jni$_.jNullReference; - return _compare$6(_class.reference.pointer, - _id_compare$6 as jni$_.JMethodIDPtr, _$cs.pointer, _$cs1.pointer) - .integer; + final _$$classRef = _class.reference; + final _$is$ = is$?.reference ?? jni$_.jNullReference; + _sort$9(_$$classRef.pointer, _id_sort$9.pointer, _$is$.pointer, i, i1) + .check(); } - static final _id_compare$7 = _class.staticMethodId( - r'compare', - r'([CII[CII)I', + static final _id_sort$10 = _class.staticMethodId( + r'sort', + r'([Ljava/lang/Object;)V', ); - static final _compare$7 = jni$_.ProtectedJniExtensions.lookup< + static final _sort$10 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `static public void sort(java.lang.Object[] objects)` + static void sort$10( + jni$_.JArray? objects, + ) { + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + _sort$10(_$$classRef.pointer, _id_sort$10.pointer, _$objects.pointer) + .check(); + } + + static final _id_sort$11 = _class.staticMethodId( + r'sort', + r'([Ljava/lang/Object;II)V', + ); + + static final _sort$11 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); + core$_.int, + core$_.int)>(); - /// from: `static public int compare(char[] cs, int i, int i1, char[] cs1, int i2, int i3)` - static int compare$7( - jni$_.JCharArray? cs, - int i, - int i1, - jni$_.JCharArray? cs1, - int i2, - int i3, + /// from: `static public void sort(java.lang.Object[] objects, int i, int i1)` + static void sort$11( + jni$_.JArray? objects, + core$_.int i, + core$_.int i1, ) { - final _$cs = cs?.reference ?? jni$_.jNullReference; - final _$cs1 = cs1?.reference ?? jni$_.jNullReference; - return _compare$7( - _class.reference.pointer, - _id_compare$7 as jni$_.JMethodIDPtr, - _$cs.pointer, - i, - i1, - _$cs1.pointer, - i2, - i3) - .integer; + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + _sort$11(_$$classRef.pointer, _id_sort$11.pointer, _$objects.pointer, i, i1) + .check(); } - static final _id_compare$8 = _class.staticMethodId( - r'compare', - r'([I[I)I', + static final _id_sort$12 = _class.staticMethodId( + r'sort', + r'([J)V', ); - static final _compare$8 = jni$_.ProtectedJniExtensions.lookup< + static final _sort$12 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `static public void sort(long[] js)` + static void sort$12( + jni$_.JLongArray? js, + ) { + final _$$classRef = _class.reference; + final _$js = js?.reference ?? jni$_.jNullReference; + _sort$12(_$$classRef.pointer, _id_sort$12.pointer, _$js.pointer).check(); + } + + static final _id_sort$13 = _class.staticMethodId( + r'sort', + r'([JII)V', + ); + + static final _sort$13 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + jni$_.Int32, + jni$_.Int32 + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + core$_.int, + core$_.int)>(); - /// from: `static public int compare(int[] is, int[] is1)` - static int compare$8( - jni$_.JIntArray? is$, - jni$_.JIntArray? is1, + /// from: `static public void sort(long[] js, int i, int i1)` + static void sort$13( + jni$_.JLongArray? js, + core$_.int i, + core$_.int i1, ) { - final _$is$ = is$?.reference ?? jni$_.jNullReference; - final _$is1 = is1?.reference ?? jni$_.jNullReference; - return _compare$8(_class.reference.pointer, - _id_compare$8 as jni$_.JMethodIDPtr, _$is$.pointer, _$is1.pointer) - .integer; + final _$$classRef = _class.reference; + final _$js = js?.reference ?? jni$_.jNullReference; + _sort$13(_$$classRef.pointer, _id_sort$13.pointer, _$js.pointer, i, i1) + .check(); } - static final _id_compare$9 = _class.staticMethodId( - r'compare', - r'([III[III)I', + static final _id_sort$14 = _class.staticMethodId( + r'sort', + r'([S)V', ); - static final _compare$9 = jni$_.ProtectedJniExtensions.lookup< + static final _sort$14 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `static public void sort(short[] ss)` + static void sort$14( + jni$_.JShortArray? ss, + ) { + final _$$classRef = _class.reference; + final _$ss = ss?.reference ?? jni$_.jNullReference; + _sort$14(_$$classRef.pointer, _id_sort$14.pointer, _$ss.pointer).check(); + } + + static final _id_sort$15 = _class.staticMethodId( + r'sort', + r'([SII)V', + ); + + static final _sort$15 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); + core$_.int, + core$_.int)>(); - /// from: `static public int compare(int[] is, int i, int i1, int[] is1, int i2, int i3)` - static int compare$9( - jni$_.JIntArray? is$, - int i, - int i1, - jni$_.JIntArray? is1, - int i2, - int i3, + /// from: `static public void sort(short[] ss, int i, int i1)` + static void sort$15( + jni$_.JShortArray? ss, + core$_.int i, + core$_.int i1, ) { - final _$is$ = is$?.reference ?? jni$_.jNullReference; - final _$is1 = is1?.reference ?? jni$_.jNullReference; - return _compare$9( - _class.reference.pointer, - _id_compare$9 as jni$_.JMethodIDPtr, - _$is$.pointer, - i, - i1, - _$is1.pointer, - i2, - i3) - .integer; + final _$$classRef = _class.reference; + final _$ss = ss?.reference ?? jni$_.jNullReference; + _sort$15(_$$classRef.pointer, _id_sort$15.pointer, _$ss.pointer, i, i1) + .check(); } - static final _id_compareUnsigned$4 = _class.staticMethodId( - r'compareUnsigned', - r'([I[I)I', + static final _id_sort$16 = _class.staticMethodId( + r'sort', + r'([Ljava/lang/Object;IILjava/util/Comparator;)V', ); - static final _compareUnsigned$4 = jni$_.ProtectedJniExtensions.lookup< + static final _sort$16 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, + core$_.int, + core$_.int, jni$_.Pointer)>(); - /// from: `static public int compareUnsigned(int[] is, int[] is1)` - static int compareUnsigned$4( - jni$_.JIntArray? is$, - jni$_.JIntArray? is1, + /// from: `static public void sort(T[] objects, int i, int i1, java.util.Comparator comparator)` + static void sort$16<$T extends jni$_.JObject?>( + jni$_.JArray<$T?>? objects, + core$_.int i, + core$_.int i1, + Comparator? comparator, ) { - final _$is$ = is$?.reference ?? jni$_.jNullReference; - final _$is1 = is1?.reference ?? jni$_.jNullReference; - return _compareUnsigned$4( - _class.reference.pointer, - _id_compareUnsigned$4 as jni$_.JMethodIDPtr, - _$is$.pointer, - _$is1.pointer) - .integer; + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + final _$comparator = comparator?.reference ?? jni$_.jNullReference; + _sort$16(_$$classRef.pointer, _id_sort$16.pointer, _$objects.pointer, i, i1, + _$comparator.pointer) + .check(); } - static final _id_compareUnsigned$5 = _class.staticMethodId( - r'compareUnsigned', - r'([III[III)I', + static final _id_sort$17 = _class.staticMethodId( + r'sort', + r'([Ljava/lang/Object;Ljava/util/Comparator;)V', ); - static final _compareUnsigned$5 = jni$_.ProtectedJniExtensions.lookup< + static final _sort$17 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') + jni$_.Pointer + )>)>>('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); + jni$_.Pointer)>(); - /// from: `static public int compareUnsigned(int[] is, int i, int i1, int[] is1, int i2, int i3)` - static int compareUnsigned$5( - jni$_.JIntArray? is$, - int i, - int i1, - jni$_.JIntArray? is1, - int i2, - int i3, + /// from: `static public void sort(T[] objects, java.util.Comparator comparator)` + static void sort$17<$T extends jni$_.JObject?>( + jni$_.JArray<$T?>? objects, + Comparator? comparator, ) { - final _$is$ = is$?.reference ?? jni$_.jNullReference; - final _$is1 = is1?.reference ?? jni$_.jNullReference; - return _compareUnsigned$5( - _class.reference.pointer, - _id_compareUnsigned$5 as jni$_.JMethodIDPtr, - _$is$.pointer, - i, - i1, - _$is1.pointer, - i2, - i3) - .integer; + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + final _$comparator = comparator?.reference ?? jni$_.jNullReference; + _sort$17(_$$classRef.pointer, _id_sort$17.pointer, _$objects.pointer, + _$comparator.pointer) + .check(); } - static final _id_compare$10 = _class.staticMethodId( - r'compare', - r'([J[J)I', + static final _id_spliterator = _class.staticMethodId( + r'spliterator', + r'([D)Ljava/util/Spliterator$OfDouble;', ); - static final _compare$10 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + static final _spliterator = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticObjectMethod') .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public int compare(long[] js, long[] js1)` - static int compare$10( - jni$_.JLongArray? js, - jni$_.JLongArray? js1, + /// from: `static public java.util.Spliterator$OfDouble spliterator(double[] ds)` + /// The returned object must be released after use, by calling the [release] method. + static Spliterator$$OfDouble? spliterator( + jni$_.JDoubleArray? ds, ) { - final _$js = js?.reference ?? jni$_.jNullReference; - final _$js1 = js1?.reference ?? jni$_.jNullReference; - return _compare$10(_class.reference.pointer, - _id_compare$10 as jni$_.JMethodIDPtr, _$js.pointer, _$js1.pointer) - .integer; + final _$$classRef = _class.reference; + final _$ds = ds?.reference ?? jni$_.jNullReference; + return _spliterator( + _$$classRef.pointer, _id_spliterator.pointer, _$ds.pointer) + .object(); } - static final _id_compare$11 = _class.staticMethodId( - r'compare', - r'([JII[JII)I', + static final _id_spliterator$1 = _class.staticMethodId( + r'spliterator', + r'([DII)Ljava/util/Spliterator$OfDouble;', ); - static final _compare$11 = jni$_.ProtectedJniExtensions.lookup< + static final _spliterator$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') + )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); + core$_.int, + core$_.int)>(); - /// from: `static public int compare(long[] js, int i, int i1, long[] js1, int i2, int i3)` - static int compare$11( - jni$_.JLongArray? js, - int i, - int i1, - jni$_.JLongArray? js1, - int i2, - int i3, + /// from: `static public java.util.Spliterator$OfDouble spliterator(double[] ds, int i, int i1)` + /// The returned object must be released after use, by calling the [release] method. + static Spliterator$$OfDouble? spliterator$1( + jni$_.JDoubleArray? ds, + core$_.int i, + core$_.int i1, ) { - final _$js = js?.reference ?? jni$_.jNullReference; - final _$js1 = js1?.reference ?? jni$_.jNullReference; - return _compare$11( - _class.reference.pointer, - _id_compare$11 as jni$_.JMethodIDPtr, - _$js.pointer, - i, - i1, - _$js1.pointer, - i2, - i3) - .integer; + final _$$classRef = _class.reference; + final _$ds = ds?.reference ?? jni$_.jNullReference; + return _spliterator$1( + _$$classRef.pointer, _id_spliterator$1.pointer, _$ds.pointer, i, i1) + .object(); } - static final _id_compareUnsigned$6 = _class.staticMethodId( - r'compareUnsigned', - r'([J[J)I', + static final _id_spliterator$2 = _class.staticMethodId( + r'spliterator', + r'([I)Ljava/util/Spliterator$OfInt;', ); - static final _compareUnsigned$6 = jni$_.ProtectedJniExtensions.lookup< + static final _spliterator$2 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `static public java.util.Spliterator$OfInt spliterator(int[] is)` + /// The returned object must be released after use, by calling the [release] method. + static Spliterator$$OfInt? spliterator$2( + jni$_.JIntArray? is$, + ) { + final _$$classRef = _class.reference; + final _$is$ = is$?.reference ?? jni$_.jNullReference; + return _spliterator$2( + _$$classRef.pointer, _id_spliterator$2.pointer, _$is$.pointer) + .object(); + } + + static final _id_spliterator$3 = _class.staticMethodId( + r'spliterator', + r'([III)Ljava/util/Spliterator$OfInt;', + ); + + static final _spliterator$3 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -34988,89 +30963,131 @@ class Arrays extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + jni$_.Int32, + jni$_.Int32 + )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + core$_.int, + core$_.int)>(); - /// from: `static public int compareUnsigned(long[] js, long[] js1)` - static int compareUnsigned$6( + /// from: `static public java.util.Spliterator$OfInt spliterator(int[] is, int i, int i1)` + /// The returned object must be released after use, by calling the [release] method. + static Spliterator$$OfInt? spliterator$3( + jni$_.JIntArray? is$, + core$_.int i, + core$_.int i1, + ) { + final _$$classRef = _class.reference; + final _$is$ = is$?.reference ?? jni$_.jNullReference; + return _spliterator$3(_$$classRef.pointer, _id_spliterator$3.pointer, + _$is$.pointer, i, i1) + .object(); + } + + static final _id_spliterator$4 = _class.staticMethodId( + r'spliterator', + r'([J)Ljava/util/Spliterator$OfLong;', + ); + + static final _spliterator$4 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `static public java.util.Spliterator$OfLong spliterator(long[] js)` + /// The returned object must be released after use, by calling the [release] method. + static Spliterator$$OfLong? spliterator$4( jni$_.JLongArray? js, - jni$_.JLongArray? js1, ) { + final _$$classRef = _class.reference; final _$js = js?.reference ?? jni$_.jNullReference; - final _$js1 = js1?.reference ?? jni$_.jNullReference; - return _compareUnsigned$6( - _class.reference.pointer, - _id_compareUnsigned$6 as jni$_.JMethodIDPtr, - _$js.pointer, - _$js1.pointer) - .integer; + return _spliterator$4( + _$$classRef.pointer, _id_spliterator$4.pointer, _$js.pointer) + .object(); } - static final _id_compareUnsigned$7 = _class.staticMethodId( - r'compareUnsigned', - r'([JII[JII)I', + static final _id_spliterator$5 = _class.staticMethodId( + r'spliterator', + r'([JII)Ljava/util/Spliterator$OfLong;', ); - static final _compareUnsigned$7 = jni$_.ProtectedJniExtensions.lookup< + static final _spliterator$5 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') + )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); + core$_.int, + core$_.int)>(); - /// from: `static public int compareUnsigned(long[] js, int i, int i1, long[] js1, int i2, int i3)` - static int compareUnsigned$7( + /// from: `static public java.util.Spliterator$OfLong spliterator(long[] js, int i, int i1)` + /// The returned object must be released after use, by calling the [release] method. + static Spliterator$$OfLong? spliterator$5( jni$_.JLongArray? js, - int i, - int i1, - jni$_.JLongArray? js1, - int i2, - int i3, + core$_.int i, + core$_.int i1, ) { + final _$$classRef = _class.reference; final _$js = js?.reference ?? jni$_.jNullReference; - final _$js1 = js1?.reference ?? jni$_.jNullReference; - return _compareUnsigned$7( - _class.reference.pointer, - _id_compareUnsigned$7 as jni$_.JMethodIDPtr, - _$js.pointer, - i, - i1, - _$js1.pointer, - i2, - i3) - .integer; + return _spliterator$5( + _$$classRef.pointer, _id_spliterator$5.pointer, _$js.pointer, i, i1) + .object(); } - static final _id_compare$12 = _class.staticMethodId( - r'compare', - r'([F[F)I', + static final _id_spliterator$6 = _class.staticMethodId( + r'spliterator', + r'([Ljava/lang/Object;)Ljava/util/Spliterator;', ); - static final _compare$12 = jni$_.ProtectedJniExtensions.lookup< + static final _spliterator$6 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `static public java.util.Spliterator spliterator(T[] objects)` + /// The returned object must be released after use, by calling the [release] method. + static Spliterator? spliterator$6<$T extends jni$_.JObject?>( + jni$_.JArray<$T?>? objects, + ) { + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + return _spliterator$6( + _$$classRef.pointer, _id_spliterator$6.pointer, _$objects.pointer) + .object(); + } + + static final _id_spliterator$7 = _class.staticMethodId( + r'spliterator', + r'([Ljava/lang/Object;II)Ljava/util/Spliterator;', + ); + + static final _spliterator$7 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -35078,86 +31095,64 @@ class Arrays extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + jni$_.Int32, + jni$_.Int32 + )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + core$_.int, + core$_.int)>(); - /// from: `static public int compare(float[] fs, float[] fs1)` - static int compare$12( - jni$_.JFloatArray? fs, - jni$_.JFloatArray? fs1, + /// from: `static public java.util.Spliterator spliterator(T[] objects, int i, int i1)` + /// The returned object must be released after use, by calling the [release] method. + static Spliterator? spliterator$7<$T extends jni$_.JObject?>( + jni$_.JArray<$T?>? objects, + core$_.int i, + core$_.int i1, ) { - final _$fs = fs?.reference ?? jni$_.jNullReference; - final _$fs1 = fs1?.reference ?? jni$_.jNullReference; - return _compare$12(_class.reference.pointer, - _id_compare$12 as jni$_.JMethodIDPtr, _$fs.pointer, _$fs1.pointer) - .integer; + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + return _spliterator$7(_$$classRef.pointer, _id_spliterator$7.pointer, + _$objects.pointer, i, i1) + .object(); } - static final _id_compare$13 = _class.staticMethodId( - r'compare', - r'([FII[FII)I', + static final _id_stream = _class.staticMethodId( + r'stream', + r'([D)Ljava/util/stream/DoubleStream;', ); - static final _compare$13 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') + static final _stream = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticObjectMethod') .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public int compare(float[] fs, int i, int i1, float[] fs1, int i2, int i3)` - static int compare$13( - jni$_.JFloatArray? fs, - int i, - int i1, - jni$_.JFloatArray? fs1, - int i2, - int i3, + /// from: `static public java.util.stream.DoubleStream stream(double[] ds)` + /// The returned object must be released after use, by calling the [release] method. + static DoubleStream? stream( + jni$_.JDoubleArray? ds, ) { - final _$fs = fs?.reference ?? jni$_.jNullReference; - final _$fs1 = fs1?.reference ?? jni$_.jNullReference; - return _compare$13( - _class.reference.pointer, - _id_compare$13 as jni$_.JMethodIDPtr, - _$fs.pointer, - i, - i1, - _$fs1.pointer, - i2, - i3) - .integer; + final _$$classRef = _class.reference; + final _$ds = ds?.reference ?? jni$_.jNullReference; + return _stream(_$$classRef.pointer, _id_stream.pointer, _$ds.pointer) + .object(); } - static final _id_compare$14 = _class.staticMethodId( - r'compare', - r'([D[D)I', + static final _id_stream$1 = _class.staticMethodId( + r'stream', + r'([DII)Ljava/util/stream/DoubleStream;', ); - static final _compare$14 = jni$_.ProtectedJniExtensions.lookup< + static final _stream$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -35165,221 +31160,195 @@ class Arrays extends jni$_.JObject { jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + jni$_.Int32, + jni$_.Int32 + )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + core$_.int, + core$_.int)>(); - /// from: `static public int compare(double[] ds, double[] ds1)` - static int compare$14( + /// from: `static public java.util.stream.DoubleStream stream(double[] ds, int i, int i1)` + /// The returned object must be released after use, by calling the [release] method. + static DoubleStream? stream$1( jni$_.JDoubleArray? ds, - jni$_.JDoubleArray? ds1, + core$_.int i, + core$_.int i1, ) { + final _$$classRef = _class.reference; final _$ds = ds?.reference ?? jni$_.jNullReference; - final _$ds1 = ds1?.reference ?? jni$_.jNullReference; - return _compare$14(_class.reference.pointer, - _id_compare$14 as jni$_.JMethodIDPtr, _$ds.pointer, _$ds1.pointer) - .integer; + return _stream$1( + _$$classRef.pointer, _id_stream$1.pointer, _$ds.pointer, i, i1) + .object(); } - static final _id_compare$15 = _class.staticMethodId( - r'compare', - r'([DII[DII)I', + static final _id_stream$2 = _class.staticMethodId( + r'stream', + r'([I)Ljava/util/stream/IntStream;', ); - static final _compare$15 = jni$_.ProtectedJniExtensions.lookup< + static final _stream$2 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `static public java.util.stream.IntStream stream(int[] is)` + /// The returned object must be released after use, by calling the [release] method. + static IntStream? stream$2( + jni$_.JIntArray? is$, + ) { + final _$$classRef = _class.reference; + final _$is$ = is$?.reference ?? jni$_.jNullReference; + return _stream$2(_$$classRef.pointer, _id_stream$2.pointer, _$is$.pointer) + .object(); + } + + static final _id_stream$3 = _class.staticMethodId( + r'stream', + r'([III)Ljava/util/stream/IntStream;', + ); + + static final _stream$3 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') + )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); + core$_.int, + core$_.int)>(); - /// from: `static public int compare(double[] ds, int i, int i1, double[] ds1, int i2, int i3)` - static int compare$15( - jni$_.JDoubleArray? ds, - int i, - int i1, - jni$_.JDoubleArray? ds1, - int i2, - int i3, + /// from: `static public java.util.stream.IntStream stream(int[] is, int i, int i1)` + /// The returned object must be released after use, by calling the [release] method. + static IntStream? stream$3( + jni$_.JIntArray? is$, + core$_.int i, + core$_.int i1, ) { - final _$ds = ds?.reference ?? jni$_.jNullReference; - final _$ds1 = ds1?.reference ?? jni$_.jNullReference; - return _compare$15( - _class.reference.pointer, - _id_compare$15 as jni$_.JMethodIDPtr, - _$ds.pointer, - i, - i1, - _$ds1.pointer, - i2, - i3) - .integer; + final _$$classRef = _class.reference; + final _$is$ = is$?.reference ?? jni$_.jNullReference; + return _stream$3( + _$$classRef.pointer, _id_stream$3.pointer, _$is$.pointer, i, i1) + .object(); } - static final _id_compare$16 = _class.staticMethodId( - r'compare', - r'([Ljava/lang/Comparable;[Ljava/lang/Comparable;)I', + static final _id_stream$4 = _class.staticMethodId( + r'stream', + r'([J)Ljava/util/stream/LongStream;', ); - static final _compare$16 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + static final _stream$4 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticObjectMethod') .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public int compare(java.lang.Object[] comparables, java.lang.Object[] comparables1)` - static int compare$16<$T extends jni$_.JObject?>( - jni$_.JArray<$T?>? comparables, - jni$_.JArray<$T?>? comparables1, { - required jni$_.JObjType<$T> T, - }) { - final _$comparables = comparables?.reference ?? jni$_.jNullReference; - final _$comparables1 = comparables1?.reference ?? jni$_.jNullReference; - return _compare$16( - _class.reference.pointer, - _id_compare$16 as jni$_.JMethodIDPtr, - _$comparables.pointer, - _$comparables1.pointer) - .integer; + /// from: `static public java.util.stream.LongStream stream(long[] js)` + /// The returned object must be released after use, by calling the [release] method. + static LongStream? stream$4( + jni$_.JLongArray? js, + ) { + final _$$classRef = _class.reference; + final _$js = js?.reference ?? jni$_.jNullReference; + return _stream$4(_$$classRef.pointer, _id_stream$4.pointer, _$js.pointer) + .object(); } - static final _id_compare$17 = _class.staticMethodId( - r'compare', - r'([Ljava/lang/Comparable;II[Ljava/lang/Comparable;II)I', + static final _id_stream$5 = _class.staticMethodId( + r'stream', + r'([JII)Ljava/util/stream/LongStream;', ); - static final _compare$17 = jni$_.ProtectedJniExtensions.lookup< + static final _stream$5 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, jni$_.Pointer, jni$_.Int32, jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') + )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); + core$_.int, + core$_.int)>(); - /// from: `static public int compare(java.lang.Object[] comparables, int i, int i1, java.lang.Object[] comparables1, int i2, int i3)` - static int compare$17<$T extends jni$_.JObject?>( - jni$_.JArray<$T?>? comparables, - int i, - int i1, - jni$_.JArray<$T?>? comparables1, - int i2, - int i3, { - required jni$_.JObjType<$T> T, - }) { - final _$comparables = comparables?.reference ?? jni$_.jNullReference; - final _$comparables1 = comparables1?.reference ?? jni$_.jNullReference; - return _compare$17( - _class.reference.pointer, - _id_compare$17 as jni$_.JMethodIDPtr, - _$comparables.pointer, - i, - i1, - _$comparables1.pointer, - i2, - i3) - .integer; + /// from: `static public java.util.stream.LongStream stream(long[] js, int i, int i1)` + /// The returned object must be released after use, by calling the [release] method. + static LongStream? stream$5( + jni$_.JLongArray? js, + core$_.int i, + core$_.int i1, + ) { + final _$$classRef = _class.reference; + final _$js = js?.reference ?? jni$_.jNullReference; + return _stream$5( + _$$classRef.pointer, _id_stream$5.pointer, _$js.pointer, i, i1) + .object(); } - static final _id_compare$18 = _class.staticMethodId( - r'compare', - r'([Ljava/lang/Object;[Ljava/lang/Object;Ljava/util/Comparator;)I', + static final _id_stream$6 = _class.staticMethodId( + r'stream', + r'([Ljava/lang/Object;)Ljava/util/stream/Stream;', ); - static final _compare$18 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + static final _stream$6 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticObjectMethod') .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public int compare(java.lang.Object[] objects, java.lang.Object[] objects1, java.util.Comparator comparator)` - static int compare$18<$T extends jni$_.JObject?>( + /// from: `static public java.util.stream.Stream stream(T[] objects)` + /// The returned object must be released after use, by calling the [release] method. + static Stream$1? stream$6<$T extends jni$_.JObject?>( jni$_.JArray<$T?>? objects, - jni$_.JArray<$T?>? objects1, - jni$_.JObject? comparator, { - required jni$_.JObjType<$T> T, - }) { + ) { + final _$$classRef = _class.reference; final _$objects = objects?.reference ?? jni$_.jNullReference; - final _$objects1 = objects1?.reference ?? jni$_.jNullReference; - final _$comparator = comparator?.reference ?? jni$_.jNullReference; - return _compare$18( - _class.reference.pointer, - _id_compare$18 as jni$_.JMethodIDPtr, - _$objects.pointer, - _$objects1.pointer, - _$comparator.pointer) - .integer; + return _stream$6( + _$$classRef.pointer, _id_stream$6.pointer, _$objects.pointer) + .object(); } - static final _id_compare$19 = _class.staticMethodId( - r'compare', - r'([Ljava/lang/Object;II[Ljava/lang/Object;IILjava/util/Comparator;)I', + static final _id_stream$7 = _class.staticMethodId( + r'stream', + r'([Ljava/lang/Object;II)Ljava/util/stream/Stream;', ); - static final _compare$19 = jni$_.ProtectedJniExtensions.lookup< + static final _stream$7 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -35388,1339 +31357,2315 @@ class Arrays extends jni$_.JObject { ( jni$_.Pointer, jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + jni$_.Int32 + )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int, - jni$_.Pointer)>(); + core$_.int, + core$_.int)>(); - /// from: `static public int compare(java.lang.Object[] objects, int i, int i1, java.lang.Object[] objects1, int i2, int i3, java.util.Comparator comparator)` - static int compare$19<$T extends jni$_.JObject?>( + /// from: `static public java.util.stream.Stream stream(T[] objects, int i, int i1)` + /// The returned object must be released after use, by calling the [release] method. + static Stream$1? stream$7<$T extends jni$_.JObject?>( jni$_.JArray<$T?>? objects, - int i, - int i1, - jni$_.JArray<$T?>? objects1, - int i2, - int i3, - jni$_.JObject? comparator, { - required jni$_.JObjType<$T> T, - }) { + core$_.int i, + core$_.int i1, + ) { + final _$$classRef = _class.reference; final _$objects = objects?.reference ?? jni$_.jNullReference; - final _$objects1 = objects1?.reference ?? jni$_.jNullReference; - final _$comparator = comparator?.reference ?? jni$_.jNullReference; - return _compare$19( - _class.reference.pointer, - _id_compare$19 as jni$_.JMethodIDPtr, - _$objects.pointer, - i, - i1, - _$objects1.pointer, - i2, - i3, - _$comparator.pointer) - .integer; + return _stream$7( + _$$classRef.pointer, _id_stream$7.pointer, _$objects.pointer, i, i1) + .object(); } - static final _id_mismatch = _class.staticMethodId( - r'mismatch', - r'([Z[Z)I', + static final _id_toString$1 = _class.staticMethodId( + r'toString', + r'([Z)Ljava/lang/String;', ); - static final _mismatch = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticObjectMethod') .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public int mismatch(boolean[] zs, boolean[] zs1)` - static int mismatch( + /// from: `static public java.lang.String toString(boolean[] zs)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JString? toString$1( jni$_.JBooleanArray? zs, - jni$_.JBooleanArray? zs1, ) { + final _$$classRef = _class.reference; final _$zs = zs?.reference ?? jni$_.jNullReference; - final _$zs1 = zs1?.reference ?? jni$_.jNullReference; - return _mismatch(_class.reference.pointer, - _id_mismatch as jni$_.JMethodIDPtr, _$zs.pointer, _$zs1.pointer) - .integer; + return _toString$1( + _$$classRef.pointer, _id_toString$1.pointer, _$zs.pointer) + .object(); } - static final _id_mismatch$1 = _class.staticMethodId( - r'mismatch', - r'([ZII[ZII)I', + static final _id_toString$2 = _class.staticMethodId( + r'toString', + r'([B)Ljava/lang/String;', ); - static final _mismatch$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') + static final _toString$2 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticObjectMethod') .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public int mismatch(boolean[] zs, int i, int i1, boolean[] zs1, int i2, int i3)` - static int mismatch$1( - jni$_.JBooleanArray? zs, - int i, - int i1, - jni$_.JBooleanArray? zs1, - int i2, - int i3, + /// from: `static public java.lang.String toString(byte[] bs)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JString? toString$2( + jni$_.JByteArray? bs, ) { - final _$zs = zs?.reference ?? jni$_.jNullReference; - final _$zs1 = zs1?.reference ?? jni$_.jNullReference; - return _mismatch$1( - _class.reference.pointer, - _id_mismatch$1 as jni$_.JMethodIDPtr, - _$zs.pointer, - i, - i1, - _$zs1.pointer, - i2, - i3) - .integer; + final _$$classRef = _class.reference; + final _$bs = bs?.reference ?? jni$_.jNullReference; + return _toString$2( + _$$classRef.pointer, _id_toString$2.pointer, _$bs.pointer) + .object(); } - static final _id_mismatch$2 = _class.staticMethodId( - r'mismatch', - r'([B[B)I', + static final _id_toString$3 = _class.staticMethodId( + r'toString', + r'([C)Ljava/lang/String;', ); - static final _mismatch$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + static final _toString$3 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticObjectMethod') .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public int mismatch(byte[] bs, byte[] bs1)` - static int mismatch$2( - jni$_.JByteArray? bs, - jni$_.JByteArray? bs1, + /// from: `static public java.lang.String toString(char[] cs)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JString? toString$3( + jni$_.JCharArray? cs, ) { - final _$bs = bs?.reference ?? jni$_.jNullReference; - final _$bs1 = bs1?.reference ?? jni$_.jNullReference; - return _mismatch$2(_class.reference.pointer, - _id_mismatch$2 as jni$_.JMethodIDPtr, _$bs.pointer, _$bs1.pointer) - .integer; + final _$$classRef = _class.reference; + final _$cs = cs?.reference ?? jni$_.jNullReference; + return _toString$3( + _$$classRef.pointer, _id_toString$3.pointer, _$cs.pointer) + .object(); } - static final _id_mismatch$3 = _class.staticMethodId( - r'mismatch', - r'([BII[BII)I', + static final _id_toString$4 = _class.staticMethodId( + r'toString', + r'([D)Ljava/lang/String;', ); - static final _mismatch$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') + static final _toString$4 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticObjectMethod') .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public int mismatch(byte[] bs, int i, int i1, byte[] bs1, int i2, int i3)` - static int mismatch$3( - jni$_.JByteArray? bs, - int i, - int i1, - jni$_.JByteArray? bs1, - int i2, - int i3, + /// from: `static public java.lang.String toString(double[] ds)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JString? toString$4( + jni$_.JDoubleArray? ds, ) { - final _$bs = bs?.reference ?? jni$_.jNullReference; - final _$bs1 = bs1?.reference ?? jni$_.jNullReference; - return _mismatch$3( - _class.reference.pointer, - _id_mismatch$3 as jni$_.JMethodIDPtr, - _$bs.pointer, - i, - i1, - _$bs1.pointer, - i2, - i3) - .integer; + final _$$classRef = _class.reference; + final _$ds = ds?.reference ?? jni$_.jNullReference; + return _toString$4( + _$$classRef.pointer, _id_toString$4.pointer, _$ds.pointer) + .object(); } - static final _id_mismatch$4 = _class.staticMethodId( - r'mismatch', - r'([C[C)I', + static final _id_toString$5 = _class.staticMethodId( + r'toString', + r'([F)Ljava/lang/String;', ); - static final _mismatch$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + static final _toString$5 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticObjectMethod') .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public int mismatch(char[] cs, char[] cs1)` - static int mismatch$4( - jni$_.JCharArray? cs, - jni$_.JCharArray? cs1, + /// from: `static public java.lang.String toString(float[] fs)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JString? toString$5( + jni$_.JFloatArray? fs, ) { - final _$cs = cs?.reference ?? jni$_.jNullReference; - final _$cs1 = cs1?.reference ?? jni$_.jNullReference; - return _mismatch$4(_class.reference.pointer, - _id_mismatch$4 as jni$_.JMethodIDPtr, _$cs.pointer, _$cs1.pointer) - .integer; + final _$$classRef = _class.reference; + final _$fs = fs?.reference ?? jni$_.jNullReference; + return _toString$5( + _$$classRef.pointer, _id_toString$5.pointer, _$fs.pointer) + .object(); } - static final _id_mismatch$5 = _class.staticMethodId( - r'mismatch', - r'([CII[CII)I', + static final _id_toString$6 = _class.staticMethodId( + r'toString', + r'([I)Ljava/lang/String;', ); - static final _mismatch$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); + static final _toString$6 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public int mismatch(char[] cs, int i, int i1, char[] cs1, int i2, int i3)` - static int mismatch$5( - jni$_.JCharArray? cs, - int i, - int i1, - jni$_.JCharArray? cs1, - int i2, - int i3, + /// from: `static public java.lang.String toString(int[] is)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JString? toString$6( + jni$_.JIntArray? is$, ) { - final _$cs = cs?.reference ?? jni$_.jNullReference; - final _$cs1 = cs1?.reference ?? jni$_.jNullReference; - return _mismatch$5( - _class.reference.pointer, - _id_mismatch$5 as jni$_.JMethodIDPtr, - _$cs.pointer, - i, - i1, - _$cs1.pointer, - i2, - i3) - .integer; + final _$$classRef = _class.reference; + final _$is$ = is$?.reference ?? jni$_.jNullReference; + return _toString$6( + _$$classRef.pointer, _id_toString$6.pointer, _$is$.pointer) + .object(); } - static final _id_mismatch$6 = _class.staticMethodId( - r'mismatch', - r'([S[S)I', + static final _id_toString$7 = _class.staticMethodId( + r'toString', + r'([Ljava/lang/Object;)Ljava/lang/String;', ); - static final _mismatch$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + static final _toString$7 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticObjectMethod') .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public int mismatch(short[] ss, short[] ss1)` - static int mismatch$6( - jni$_.JShortArray? ss, - jni$_.JShortArray? ss1, + /// from: `static public java.lang.String toString(java.lang.Object[] objects)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JString? toString$7( + jni$_.JArray? objects, ) { - final _$ss = ss?.reference ?? jni$_.jNullReference; - final _$ss1 = ss1?.reference ?? jni$_.jNullReference; - return _mismatch$6(_class.reference.pointer, - _id_mismatch$6 as jni$_.JMethodIDPtr, _$ss.pointer, _$ss1.pointer) - .integer; + final _$$classRef = _class.reference; + final _$objects = objects?.reference ?? jni$_.jNullReference; + return _toString$7( + _$$classRef.pointer, _id_toString$7.pointer, _$objects.pointer) + .object(); } - static final _id_mismatch$7 = _class.staticMethodId( - r'mismatch', - r'([SII[SII)I', + static final _id_toString$8 = _class.staticMethodId( + r'toString', + r'([J)Ljava/lang/String;', ); - static final _mismatch$7 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') + static final _toString$8 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticObjectMethod') .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public int mismatch(short[] ss, int i, int i1, short[] ss1, int i2, int i3)` - static int mismatch$7( + /// from: `static public java.lang.String toString(long[] js)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JString? toString$8( + jni$_.JLongArray? js, + ) { + final _$$classRef = _class.reference; + final _$js = js?.reference ?? jni$_.jNullReference; + return _toString$8( + _$$classRef.pointer, _id_toString$8.pointer, _$js.pointer) + .object(); + } + + static final _id_toString$9 = _class.staticMethodId( + r'toString', + r'([S)Ljava/lang/String;', + ); + + static final _toString$9 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `static public java.lang.String toString(short[] ss)` + /// The returned object must be released after use, by calling the [release] method. + static jni$_.JString? toString$9( jni$_.JShortArray? ss, - int i, - int i1, - jni$_.JShortArray? ss1, - int i2, - int i3, ) { + final _$$classRef = _class.reference; final _$ss = ss?.reference ?? jni$_.jNullReference; - final _$ss1 = ss1?.reference ?? jni$_.jNullReference; - return _mismatch$7( - _class.reference.pointer, - _id_mismatch$7 as jni$_.JMethodIDPtr, - _$ss.pointer, - i, - i1, - _$ss1.pointer, - i2, - i3) - .integer; + return _toString$9( + _$$classRef.pointer, _id_toString$9.pointer, _$ss.pointer) + .object(); } +} - static final _id_mismatch$8 = _class.staticMethodId( - r'mismatch', - r'([I[I)I', +final class $Arrays$Type$ extends jni$_.JType { + @jni$_.internal + const $Arrays$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/util/Arrays;'; +} + +/// from: `java.security.cert.Certificate` +extension type Certificate._(jni$_.JObject _$this) + implements jni$_.JObject, Serializable { + static final _class = jni$_.JClass.forName(r'java/security/cert/Certificate'); + + /// The type which includes information such as the signature of this class. + static const jni$_.JType type = $Certificate$Type$(); +} + +extension Certificate$$Methods on Certificate { + static final _id_equals = Certificate._class.instanceMethodId( + r'equals', + r'(Ljava/lang/Object;)Z', ); - static final _mismatch$8 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + static final _equals = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallBooleanMethod') .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public int mismatch(int[] is, int[] is1)` - static int mismatch$8( - jni$_.JIntArray? is$, - jni$_.JIntArray? is1, + /// from: `public boolean equals(java.lang.Object object)` + core$_.bool equals( + jni$_.JObject? object, ) { - final _$is$ = is$?.reference ?? jni$_.jNullReference; - final _$is1 = is1?.reference ?? jni$_.jNullReference; - return _mismatch$8(_class.reference.pointer, - _id_mismatch$8 as jni$_.JMethodIDPtr, _$is$.pointer, _$is1.pointer) - .integer; + final _$$selfRef = reference; + final _$object = object?.reference ?? jni$_.jNullReference; + return _equals(_$$selfRef.pointer, _id_equals.pointer, _$object.pointer) + .boolean; } - static final _id_mismatch$9 = _class.staticMethodId( - r'mismatch', - r'([III[III)I', + static final _id_get$encoded = Certificate._class.instanceMethodId( + r'getEncoded', + r'()[B', ); - static final _mismatch$9 = jni$_.ProtectedJniExtensions.lookup< + static final _get$encoded = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - /// from: `static public int mismatch(int[] is, int i, int i1, int[] is1, int i2, int i3)` - static int mismatch$9( - jni$_.JIntArray? is$, - int i, - int i1, - jni$_.JIntArray? is1, - int i2, - int i3, - ) { - final _$is$ = is$?.reference ?? jni$_.jNullReference; - final _$is1 = is1?.reference ?? jni$_.jNullReference; - return _mismatch$9( - _class.reference.pointer, - _id_mismatch$9 as jni$_.JMethodIDPtr, - _$is$.pointer, - i, - i1, - _$is1.pointer, - i2, - i3) - .integer; + /// from: `public abstract byte[] getEncoded()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JByteArray? get encoded { + final _$$selfRef = reference; + return _get$encoded(_$$selfRef.pointer, _id_get$encoded.pointer) + .object(); } - static final _id_mismatch$10 = _class.staticMethodId( - r'mismatch', - r'([J[J)I', + static final _id_get$publicKey = Certificate._class.instanceMethodId( + r'getPublicKey', + r'()Ljava/security/PublicKey;', ); - static final _mismatch$10 = jni$_.ProtectedJniExtensions.lookup< + static final _get$publicKey = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - /// from: `static public int mismatch(long[] js, long[] js1)` - static int mismatch$10( - jni$_.JLongArray? js, - jni$_.JLongArray? js1, - ) { - final _$js = js?.reference ?? jni$_.jNullReference; - final _$js1 = js1?.reference ?? jni$_.jNullReference; - return _mismatch$10(_class.reference.pointer, - _id_mismatch$10 as jni$_.JMethodIDPtr, _$js.pointer, _$js1.pointer) - .integer; + /// from: `public abstract java.security.PublicKey getPublicKey()` + /// The returned object must be released after use, by calling the [release] method. + PublicKey? get publicKey { + final _$$selfRef = reference; + return _get$publicKey(_$$selfRef.pointer, _id_get$publicKey.pointer) + .object(); } - static final _id_mismatch$11 = _class.staticMethodId( - r'mismatch', - r'([JII[JII)I', + static final _id_get$type$1 = Certificate._class.instanceMethodId( + r'getType', + r'()Ljava/lang/String;', ); - static final _mismatch$11 = jni$_.ProtectedJniExtensions.lookup< + static final _get$type$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - /// from: `static public int mismatch(long[] js, int i, int i1, long[] js1, int i2, int i3)` - static int mismatch$11( - jni$_.JLongArray? js, - int i, - int i1, - jni$_.JLongArray? js1, - int i2, - int i3, - ) { - final _$js = js?.reference ?? jni$_.jNullReference; - final _$js1 = js1?.reference ?? jni$_.jNullReference; - return _mismatch$11( - _class.reference.pointer, - _id_mismatch$11 as jni$_.JMethodIDPtr, - _$js.pointer, - i, - i1, - _$js1.pointer, - i2, - i3) - .integer; + /// from: `public final java.lang.String getType()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JString? get type$1 { + final _$$selfRef = reference; + return _get$type$1(_$$selfRef.pointer, _id_get$type$1.pointer) + .object(); } - static final _id_mismatch$12 = _class.staticMethodId( - r'mismatch', - r'([F[F)I', + static final _id_hashCode$1 = Certificate._class.instanceMethodId( + r'hashCode', + r'()I', ); - static final _mismatch$12 = jni$_.ProtectedJniExtensions.lookup< + static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - /// from: `static public int mismatch(float[] fs, float[] fs1)` - static int mismatch$12( - jni$_.JFloatArray? fs, - jni$_.JFloatArray? fs1, - ) { - final _$fs = fs?.reference ?? jni$_.jNullReference; - final _$fs1 = fs1?.reference ?? jni$_.jNullReference; - return _mismatch$12(_class.reference.pointer, - _id_mismatch$12 as jni$_.JMethodIDPtr, _$fs.pointer, _$fs1.pointer) - .integer; + /// from: `public int hashCode()` + core$_.int hashCode$1() { + final _$$selfRef = reference; + return _hashCode$1(_$$selfRef.pointer, _id_hashCode$1.pointer).integer; } - static final _id_mismatch$13 = _class.staticMethodId( - r'mismatch', - r'([FII[FII)I', + static final _id_toString$1 = Certificate._class.instanceMethodId( + r'toString', + r'()Ljava/lang/String;', ); - static final _mismatch$13 = jni$_.ProtectedJniExtensions.lookup< + static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') .asFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - /// from: `static public int mismatch(float[] fs, int i, int i1, float[] fs1, int i2, int i3)` - static int mismatch$13( - jni$_.JFloatArray? fs, - int i, - int i1, - jni$_.JFloatArray? fs1, - int i2, - int i3, - ) { - final _$fs = fs?.reference ?? jni$_.jNullReference; - final _$fs1 = fs1?.reference ?? jni$_.jNullReference; - return _mismatch$13( - _class.reference.pointer, - _id_mismatch$13 as jni$_.JMethodIDPtr, - _$fs.pointer, - i, - i1, - _$fs1.pointer, - i2, - i3) - .integer; + /// from: `public abstract java.lang.String toString()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JString? toString$1() { + final _$$selfRef = reference; + return _toString$1(_$$selfRef.pointer, _id_toString$1.pointer) + .object(); } - static final _id_mismatch$14 = _class.staticMethodId( - r'mismatch', - r'([D[D)I', + static final _id_verify = Certificate._class.instanceMethodId( + r'verify', + r'(Ljava/security/PublicKey;)V', ); - static final _mismatch$14 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + static final _verify = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `static public int mismatch(double[] ds, double[] ds1)` - static int mismatch$14( - jni$_.JDoubleArray? ds, - jni$_.JDoubleArray? ds1, + /// from: `public abstract void verify(java.security.PublicKey publicKey)` + void verify( + PublicKey? publicKey, ) { - final _$ds = ds?.reference ?? jni$_.jNullReference; - final _$ds1 = ds1?.reference ?? jni$_.jNullReference; - return _mismatch$14(_class.reference.pointer, - _id_mismatch$14 as jni$_.JMethodIDPtr, _$ds.pointer, _$ds1.pointer) - .integer; + final _$$selfRef = reference; + final _$publicKey = publicKey?.reference ?? jni$_.jNullReference; + _verify(_$$selfRef.pointer, _id_verify.pointer, _$publicKey.pointer) + .check(); } - static final _id_mismatch$15 = _class.staticMethodId( - r'mismatch', - r'([DII[DII)I', + static final _id_verify$1 = Certificate._class.instanceMethodId( + r'verify', + r'(Ljava/security/PublicKey;Ljava/lang/String;)V', ); - static final _mismatch$15 = jni$_.ProtectedJniExtensions.lookup< + static final _verify$1 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') + jni$_.Pointer + )>)>>('globalEnv_CallVoidMethod') .asFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); + jni$_.Pointer)>(); - /// from: `static public int mismatch(double[] ds, int i, int i1, double[] ds1, int i2, int i3)` - static int mismatch$15( - jni$_.JDoubleArray? ds, - int i, - int i1, - jni$_.JDoubleArray? ds1, - int i2, - int i3, + /// from: `public abstract void verify(java.security.PublicKey publicKey, java.lang.String string)` + void verify$1( + PublicKey? publicKey, + jni$_.JString? string, ) { - final _$ds = ds?.reference ?? jni$_.jNullReference; - final _$ds1 = ds1?.reference ?? jni$_.jNullReference; - return _mismatch$15( - _class.reference.pointer, - _id_mismatch$15 as jni$_.JMethodIDPtr, - _$ds.pointer, - i, - i1, - _$ds1.pointer, - i2, - i3) - .integer; + final _$$selfRef = reference; + final _$publicKey = publicKey?.reference ?? jni$_.jNullReference; + final _$string = string?.reference ?? jni$_.jNullReference; + _verify$1(_$$selfRef.pointer, _id_verify$1.pointer, _$publicKey.pointer, + _$string.pointer) + .check(); } - static final _id_mismatch$16 = _class.staticMethodId( - r'mismatch', - r'([Ljava/lang/Object;[Ljava/lang/Object;)I', + static final _id_verify$2 = Certificate._class.instanceMethodId( + r'verify', + r'(Ljava/security/PublicKey;Ljava/security/Provider;)V', ); - static final _mismatch$16 = jni$_.ProtectedJniExtensions.lookup< + static final _verify$2 = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.VarArgs< ( jni$_.Pointer, jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') + )>)>>('globalEnv_CallVoidMethod') .asFunction< - jni$_.JniResult Function( + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer)>(); - /// from: `static public int mismatch(java.lang.Object[] objects, java.lang.Object[] objects1)` - static int mismatch$16( - jni$_.JArray? objects, - jni$_.JArray? objects1, + /// from: `public void verify(java.security.PublicKey publicKey, java.security.Provider provider)` + void verify$2( + PublicKey? publicKey, + Provider? provider, ) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - final _$objects1 = objects1?.reference ?? jni$_.jNullReference; - return _mismatch$16( - _class.reference.pointer, - _id_mismatch$16 as jni$_.JMethodIDPtr, - _$objects.pointer, - _$objects1.pointer) - .integer; + final _$$selfRef = reference; + final _$publicKey = publicKey?.reference ?? jni$_.jNullReference; + final _$provider = provider?.reference ?? jni$_.jNullReference; + _verify$2(_$$selfRef.pointer, _id_verify$2.pointer, _$publicKey.pointer, + _$provider.pointer) + .check(); } +} + +final class $Certificate$Type$ extends jni$_.JType { + @jni$_.internal + const $Certificate$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/security/cert/Certificate;'; +} + +/// from: `okhttp3.HttpUrl` +/// +/// WARNING: HttpUrl is a stub. To generate bindings for this class, include +/// okhttp3.HttpUrl in your config's classes list. +/// +extension type HttpUrl._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $HttpUrl$Type$(); +} + +final class $HttpUrl$Type$ extends jni$_.JType { + @jni$_.internal + const $HttpUrl$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokhttp3/HttpUrl;'; +} + +/// from: `okhttp3.CacheControl` +/// +/// WARNING: CacheControl is a stub. To generate bindings for this class, include +/// okhttp3.CacheControl in your config's classes list. +/// +extension type CacheControl._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $CacheControl$Type$(); +} + +final class $CacheControl$Type$ extends jni$_.JType { + @jni$_.internal + const $CacheControl$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokhttp3/CacheControl;'; +} + +/// from: `java.net.URL` +/// +/// WARNING: URL is a stub. To generate bindings for this class, include +/// java.net.URL in your config's classes list. +/// +extension type URL._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $URL$Type$(); +} + +final class $URL$Type$ extends jni$_.JType { + @jni$_.internal + const $URL$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/net/URL;'; +} + +/// from: `okhttp3.MediaType` +/// +/// WARNING: MediaType is a stub. To generate bindings for this class, include +/// okhttp3.MediaType in your config's classes list. +/// +extension type MediaType._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $MediaType$Type$(); +} + +final class $MediaType$Type$ extends jni$_.JType { + @jni$_.internal + const $MediaType$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokhttp3/MediaType;'; +} + +/// from: `okio.BufferedSink` +/// +/// WARNING: BufferedSink is a stub. To generate bindings for this class, include +/// okio.BufferedSink in your config's classes list. +/// +extension type BufferedSink._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $BufferedSink$Type$(); +} + +final class $BufferedSink$Type$ extends jni$_.JType { + @jni$_.internal + const $BufferedSink$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokio/BufferedSink;'; +} + +/// from: `java.io.File` +/// +/// WARNING: File is a stub. To generate bindings for this class, include +/// java.io.File in your config's classes list. +/// +extension type File._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $File$Type$(); +} + +final class $File$Type$ extends jni$_.JType { + @jni$_.internal + const $File$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/io/File;'; +} + +/// from: `kotlin.jvm.internal.DefaultConstructorMarker` +/// +/// WARNING: DefaultConstructorMarker is a stub. To generate bindings for this class, include +/// kotlin.jvm.internal.DefaultConstructorMarker in your config's classes list. +/// +extension type DefaultConstructorMarker._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $DefaultConstructorMarker$Type$(); +} + +final class $DefaultConstructorMarker$Type$ + extends jni$_.JType { + @jni$_.internal + const $DefaultConstructorMarker$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lkotlin/jvm/internal/DefaultConstructorMarker;'; +} + +/// from: `okhttp3.Protocol` +/// +/// WARNING: Protocol is a stub. To generate bindings for this class, include +/// okhttp3.Protocol in your config's classes list. +/// +extension type Protocol._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Protocol$Type$(); +} + +final class $Protocol$Type$ extends jni$_.JType { + @jni$_.internal + const $Protocol$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokhttp3/Protocol;'; +} + +/// from: `okhttp3.Handshake` +/// +/// WARNING: Handshake is a stub. To generate bindings for this class, include +/// okhttp3.Handshake in your config's classes list. +/// +extension type Handshake._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Handshake$Type$(); +} + +final class $Handshake$Type$ extends jni$_.JType { + @jni$_.internal + const $Handshake$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokhttp3/Handshake;'; +} + +/// from: `okhttp3.internal.connection.Exchange` +/// +/// WARNING: Exchange is a stub. To generate bindings for this class, include +/// okhttp3.internal.connection.Exchange in your config's classes list. +/// +extension type Exchange._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Exchange$Type$(); +} + +final class $Exchange$Type$ extends jni$_.JType { + @jni$_.internal + const $Exchange$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokhttp3/internal/connection/Exchange;'; +} + +/// from: `okhttp3.Challenge` +/// +/// WARNING: Challenge is a stub. To generate bindings for this class, include +/// okhttp3.Challenge in your config's classes list. +/// +extension type Challenge._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Challenge$Type$(); +} + +final class $Challenge$Type$ extends jni$_.JType { + @jni$_.internal + const $Challenge$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokhttp3/Challenge;'; +} + +/// from: `java.io.Closeable` +/// +/// WARNING: Closeable is a stub. To generate bindings for this class, include +/// java.io.Closeable in your config's classes list. +/// +extension type Closeable._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Closeable$Type$(); +} + +final class $Closeable$Type$ extends jni$_.JType { + @jni$_.internal + const $Closeable$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/io/Closeable;'; +} + +/// from: `java.io.InputStream` +/// +/// WARNING: InputStream is a stub. To generate bindings for this class, include +/// java.io.InputStream in your config's classes list. +/// +extension type InputStream._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $InputStream$Type$(); +} + +final class $InputStream$Type$ extends jni$_.JType { + @jni$_.internal + const $InputStream$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/io/InputStream;'; +} + +/// from: `okio.BufferedSource` +/// +/// WARNING: BufferedSource is a stub. To generate bindings for this class, include +/// okio.BufferedSource in your config's classes list. +/// +extension type BufferedSource._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $BufferedSource$Type$(); +} + +final class $BufferedSource$Type$ extends jni$_.JType { + @jni$_.internal + const $BufferedSource$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokio/BufferedSource;'; +} + +/// from: `java.io.Reader` +/// +/// WARNING: Reader is a stub. To generate bindings for this class, include +/// java.io.Reader in your config's classes list. +/// +extension type Reader._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Reader$Type$(); +} + +final class $Reader$Type$ extends jni$_.JType { + @jni$_.internal + const $Reader$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/io/Reader;'; +} + +/// from: `java.nio.charset.Charset` +/// +/// WARNING: Charset is a stub. To generate bindings for this class, include +/// java.nio.charset.Charset in your config's classes list. +/// +extension type Charset._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Charset$Type$(); +} + +final class $Charset$Type$ extends jni$_.JType { + @jni$_.internal + const $Charset$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/nio/charset/Charset;'; +} + +/// from: `okhttp3.Interceptor` +/// +/// WARNING: Interceptor is a stub. To generate bindings for this class, include +/// okhttp3.Interceptor in your config's classes list. +/// +extension type Interceptor._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Interceptor$Type$(); +} + +final class $Interceptor$Type$ extends jni$_.JType { + @jni$_.internal + const $Interceptor$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokhttp3/Interceptor;'; +} + +/// from: `okhttp3.EventListener$Factory` +/// +/// WARNING: EventListener$$Factory is a stub. To generate bindings for this class, include +/// okhttp3.EventListener$Factory in your config's classes list. +/// +extension type EventListener$$Factory._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $EventListener$$Factory$Type$(); +} + +final class $EventListener$$Factory$Type$ + extends jni$_.JType { + @jni$_.internal + const $EventListener$$Factory$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokhttp3/EventListener$Factory;'; +} + +/// from: `okhttp3.Authenticator` +/// +/// WARNING: Authenticator is a stub. To generate bindings for this class, include +/// okhttp3.Authenticator in your config's classes list. +/// +extension type Authenticator._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Authenticator$Type$(); +} + +final class $Authenticator$Type$ extends jni$_.JType { + @jni$_.internal + const $Authenticator$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokhttp3/Authenticator;'; +} + +/// from: `okhttp3.CookieJar` +/// +/// WARNING: CookieJar is a stub. To generate bindings for this class, include +/// okhttp3.CookieJar in your config's classes list. +/// +extension type CookieJar._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $CookieJar$Type$(); +} + +final class $CookieJar$Type$ extends jni$_.JType { + @jni$_.internal + const $CookieJar$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokhttp3/CookieJar;'; +} + +/// from: `okhttp3.Dns` +/// +/// WARNING: Dns is a stub. To generate bindings for this class, include +/// okhttp3.Dns in your config's classes list. +/// +extension type Dns._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Dns$Type$(); +} + +final class $Dns$Type$ extends jni$_.JType { + @jni$_.internal + const $Dns$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokhttp3/Dns;'; +} + +/// from: `java.net.Proxy` +/// +/// WARNING: Proxy is a stub. To generate bindings for this class, include +/// java.net.Proxy in your config's classes list. +/// +extension type Proxy._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Proxy$Type$(); +} + +final class $Proxy$Type$ extends jni$_.JType { + @jni$_.internal + const $Proxy$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/net/Proxy;'; +} + +/// from: `java.net.ProxySelector` +/// +/// WARNING: ProxySelector is a stub. To generate bindings for this class, include +/// java.net.ProxySelector in your config's classes list. +/// +extension type ProxySelector._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $ProxySelector$Type$(); +} + +final class $ProxySelector$Type$ extends jni$_.JType { + @jni$_.internal + const $ProxySelector$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/net/ProxySelector;'; +} + +/// from: `okhttp3.ConnectionSpec` +/// +/// WARNING: ConnectionSpec is a stub. To generate bindings for this class, include +/// okhttp3.ConnectionSpec in your config's classes list. +/// +extension type ConnectionSpec._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $ConnectionSpec$Type$(); +} + +final class $ConnectionSpec$Type$ extends jni$_.JType { + @jni$_.internal + const $ConnectionSpec$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokhttp3/ConnectionSpec;'; +} + +/// from: `okhttp3.CertificatePinner` +/// +/// WARNING: CertificatePinner is a stub. To generate bindings for this class, include +/// okhttp3.CertificatePinner in your config's classes list. +/// +extension type CertificatePinner._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = $CertificatePinner$Type$(); +} + +final class $CertificatePinner$Type$ extends jni$_.JType { + @jni$_.internal + const $CertificatePinner$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokhttp3/CertificatePinner;'; +} + +/// from: `okhttp3.internal.tls.CertificateChainCleaner` +/// +/// WARNING: CertificateChainCleaner is a stub. To generate bindings for this class, include +/// okhttp3.internal.tls.CertificateChainCleaner in your config's classes list. +/// +extension type CertificateChainCleaner._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $CertificateChainCleaner$Type$(); +} + +final class $CertificateChainCleaner$Type$ + extends jni$_.JType { + @jni$_.internal + const $CertificateChainCleaner$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokhttp3/internal/tls/CertificateChainCleaner;'; +} + +/// from: `okhttp3.internal.connection.RouteDatabase` +/// +/// WARNING: RouteDatabase is a stub. To generate bindings for this class, include +/// okhttp3.internal.connection.RouteDatabase in your config's classes list. +/// +extension type RouteDatabase._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $RouteDatabase$Type$(); +} + +final class $RouteDatabase$Type$ extends jni$_.JType { + @jni$_.internal + const $RouteDatabase$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokhttp3/internal/connection/RouteDatabase;'; +} + +/// from: `okhttp3.WebSocketListener` +/// +/// WARNING: WebSocketListener is a stub. To generate bindings for this class, include +/// okhttp3.WebSocketListener in your config's classes list. +/// +extension type WebSocketListener._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = $WebSocketListener$Type$(); +} + +final class $WebSocketListener$Type$ extends jni$_.JType { + @jni$_.internal + const $WebSocketListener$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokhttp3/WebSocketListener;'; +} + +/// from: `java.lang.Cloneable` +/// +/// WARNING: Cloneable is a stub. To generate bindings for this class, include +/// java.lang.Cloneable in your config's classes list. +/// +extension type Cloneable._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Cloneable$Type$(); +} + +final class $Cloneable$Type$ extends jni$_.JType { + @jni$_.internal + const $Cloneable$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/lang/Cloneable;'; +} + +/// from: `okio.Timeout` +/// +/// WARNING: Timeout is a stub. To generate bindings for this class, include +/// okio.Timeout in your config's classes list. +/// +extension type Timeout._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Timeout$Type$(); +} + +final class $Timeout$Type$ extends jni$_.JType { + @jni$_.internal + const $Timeout$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokio/Timeout;'; +} + +/// from: `okhttp3.EventListener` +/// +/// WARNING: EventListener is a stub. To generate bindings for this class, include +/// okhttp3.EventListener in your config's classes list. +/// +extension type EventListener._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $EventListener$Type$(); +} + +final class $EventListener$Type$ extends jni$_.JType { + @jni$_.internal + const $EventListener$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokhttp3/EventListener;'; +} + +/// from: `java.time.Duration` +/// +/// WARNING: Duration is a stub. To generate bindings for this class, include +/// java.time.Duration in your config's classes list. +/// +extension type Duration._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Duration$Type$(); +} + +final class $Duration$Type$ extends jni$_.JType { + @jni$_.internal + const $Duration$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/time/Duration;'; +} + +/// from: `java.util.Date` +/// +/// WARNING: Date is a stub. To generate bindings for this class, include +/// java.util.Date in your config's classes list. +/// +extension type Date._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Date$Type$(); +} + +final class $Date$Type$ extends jni$_.JType { + @jni$_.internal + const $Date$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/util/Date;'; +} + +/// from: `java.time.Instant` +/// +/// WARNING: Instant is a stub. To generate bindings for this class, include +/// java.time.Instant in your config's classes list. +/// +extension type Instant._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Instant$Type$(); +} + +final class $Instant$Type$ extends jni$_.JType { + @jni$_.internal + const $Instant$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/time/Instant;'; +} + +/// from: `kotlin.Pair` +/// +/// WARNING: Pair is a stub. To generate bindings for this class, include +/// kotlin.Pair in your config's classes list. +/// +extension type Pair._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Pair$Type$(); +} + +final class $Pair$Type$ extends jni$_.JType { + @jni$_.internal + const $Pair$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lkotlin/Pair;'; +} + +/// from: `java.lang.Iterable` +/// +/// WARNING: Iterable$1 is a stub. To generate bindings for this class, include +/// java.lang.Iterable in your config's classes list. +/// +extension type Iterable$1._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Iterable$1$Type$(); +} + +final class $Iterable$1$Type$ extends jni$_.JType { + @jni$_.internal + const $Iterable$1$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/lang/Iterable;'; +} + +/// from: `kotlin.jvm.internal.markers.KMappedMarker` +/// +/// WARNING: KMappedMarker is a stub. To generate bindings for this class, include +/// kotlin.jvm.internal.markers.KMappedMarker in your config's classes list. +/// +extension type KMappedMarker._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $KMappedMarker$Type$(); +} + +final class $KMappedMarker$Type$ extends jni$_.JType { + @jni$_.internal + const $KMappedMarker$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lkotlin/jvm/internal/markers/KMappedMarker;'; +} + +/// from: `java.io.IOException` +/// +/// WARNING: IOException is a stub. To generate bindings for this class, include +/// java.io.IOException in your config's classes list. +/// +extension type IOException._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $IOException$Type$(); +} + +final class $IOException$Type$ extends jni$_.JType { + @jni$_.internal + const $IOException$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/io/IOException;'; +} + +/// from: `okhttp3.internal.connection.RealConnectionPool` +/// +/// WARNING: RealConnectionPool is a stub. To generate bindings for this class, include +/// okhttp3.internal.connection.RealConnectionPool in your config's classes list. +/// +extension type RealConnectionPool._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $RealConnectionPool$Type$(); +} + +final class $RealConnectionPool$Type$ extends jni$_.JType { + @jni$_.internal + const $RealConnectionPool$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokhttp3/internal/connection/RealConnectionPool;'; +} + +/// from: `java.lang.Runnable` +/// +/// WARNING: Runnable is a stub. To generate bindings for this class, include +/// java.lang.Runnable in your config's classes list. +/// +extension type Runnable._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Runnable$Type$(); +} + +final class $Runnable$Type$ extends jni$_.JType { + @jni$_.internal + const $Runnable$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/lang/Runnable;'; +} + +/// from: `java.util.concurrent.Future` +/// +/// WARNING: Future$1 is a stub. To generate bindings for this class, include +/// java.util.concurrent.Future in your config's classes list. +/// +extension type Future$1._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Future$1$Type$(); +} + +final class $Future$1$Type$ extends jni$_.JType { + @jni$_.internal + const $Future$1$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/util/concurrent/Future;'; +} + +/// from: `java.util.concurrent.Callable` +/// +/// WARNING: Callable is a stub. To generate bindings for this class, include +/// java.util.concurrent.Callable in your config's classes list. +/// +extension type Callable._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Callable$Type$(); +} + +final class $Callable$Type$ extends jni$_.JType { + @jni$_.internal + const $Callable$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/util/concurrent/Callable;'; +} + +/// from: `java.lang.AutoCloseable` +/// +/// WARNING: AutoCloseable is a stub. To generate bindings for this class, include +/// java.lang.AutoCloseable in your config's classes list. +/// +extension type AutoCloseable._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $AutoCloseable$Type$(); +} + +final class $AutoCloseable$Type$ extends jni$_.JType { + @jni$_.internal + const $AutoCloseable$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/lang/AutoCloseable;'; +} + +/// from: `java.util.concurrent.Executor` +/// +/// WARNING: Executor is a stub. To generate bindings for this class, include +/// java.util.concurrent.Executor in your config's classes list. +/// +extension type Executor._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Executor$Type$(); +} + +final class $Executor$Type$ extends jni$_.JType { + @jni$_.internal + const $Executor$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/util/concurrent/Executor;'; +} + +/// from: `okhttp3.internal.io.FileSystem` +/// +/// WARNING: FileSystem is a stub. To generate bindings for this class, include +/// okhttp3.internal.io.FileSystem in your config's classes list. +/// +extension type FileSystem._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $FileSystem$Type$(); +} + +final class $FileSystem$Type$ extends jni$_.JType { + @jni$_.internal + const $FileSystem$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Lokhttp3/internal/io/FileSystem;'; +} + +/// from: `java.io.Flushable` +/// +/// WARNING: Flushable is a stub. To generate bindings for this class, include +/// java.io.Flushable in your config's classes list. +/// +extension type Flushable._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Flushable$Type$(); +} + +final class $Flushable$Type$ extends jni$_.JType { + @jni$_.internal + const $Flushable$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/io/Flushable;'; +} + +/// from: `java.lang.Throwable` +/// +/// WARNING: Throwable is a stub. To generate bindings for this class, include +/// java.lang.Throwable in your config's classes list. +/// +extension type Throwable._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Throwable$Type$(); +} + +final class $Throwable$Type$ extends jni$_.JType { + @jni$_.internal + const $Throwable$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/lang/Throwable;'; +} + +/// from: `java.security.Principal` +/// +/// WARNING: Principal is a stub. To generate bindings for this class, include +/// java.security.Principal in your config's classes list. +/// +extension type Principal._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Principal$Type$(); +} + +final class $Principal$Type$ extends jni$_.JType { + @jni$_.internal + const $Principal$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/security/Principal;'; +} + +/// from: `javax.net.ssl.SSLEngine` +/// +/// WARNING: SSLEngine is a stub. To generate bindings for this class, include +/// javax.net.ssl.SSLEngine in your config's classes list. +/// +extension type SSLEngine._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $SSLEngine$Type$(); +} + +final class $SSLEngine$Type$ extends jni$_.JType { + @jni$_.internal + const $SSLEngine$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljavax/net/ssl/SSLEngine;'; +} + +/// from: `java.net.Socket` +/// +/// WARNING: Socket is a stub. To generate bindings for this class, include +/// java.net.Socket in your config's classes list. +/// +extension type Socket._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Socket$Type$(); +} + +final class $Socket$Type$ extends jni$_.JType { + @jni$_.internal + const $Socket$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/net/Socket;'; +} + +/// from: `java.io.OutputStream` +/// +/// WARNING: OutputStream is a stub. To generate bindings for this class, include +/// java.io.OutputStream in your config's classes list. +/// +extension type OutputStream._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $OutputStream$Type$(); +} + +final class $OutputStream$Type$ extends jni$_.JType { + @jni$_.internal + const $OutputStream$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/io/OutputStream;'; +} + +/// from: `java.io.Serializable` +/// +/// WARNING: Serializable is a stub. To generate bindings for this class, include +/// java.io.Serializable in your config's classes list. +/// +extension type Serializable._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Serializable$Type$(); +} + +final class $Serializable$Type$ extends jni$_.JType { + @jni$_.internal + const $Serializable$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/io/Serializable;'; +} + +/// from: `java.lang.Comparable` +/// +/// WARNING: Comparable is a stub. To generate bindings for this class, include +/// java.lang.Comparable in your config's classes list. +/// +extension type Comparable._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Comparable$Type$(); +} + +final class $Comparable$Type$ extends jni$_.JType { + @jni$_.internal + const $Comparable$Type$(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/lang/Comparable;'; +} - static final _id_mismatch$17 = _class.staticMethodId( - r'mismatch', - r'([Ljava/lang/Object;II[Ljava/lang/Object;II)I', - ); +/// from: `java.lang.Enum` +/// +/// WARNING: Enum is a stub. To generate bindings for this class, include +/// java.lang.Enum in your config's classes list. +/// +extension type Enum._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Enum$Type$(); +} - static final _mismatch$17 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int)>(); +final class $Enum$Type$ extends jni$_.JType { + @jni$_.internal + const $Enum$Type$(); - /// from: `static public int mismatch(java.lang.Object[] objects, int i, int i1, java.lang.Object[] objects1, int i2, int i3)` - static int mismatch$17( - jni$_.JArray? objects, - int i, - int i1, - jni$_.JArray? objects1, - int i2, - int i3, - ) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - final _$objects1 = objects1?.reference ?? jni$_.jNullReference; - return _mismatch$17( - _class.reference.pointer, - _id_mismatch$17 as jni$_.JMethodIDPtr, - _$objects.pointer, - i, - i1, - _$objects1.pointer, - i2, - i3) - .integer; - } + @jni$_.internal + @core$_.override + String get signature => r'Ljava/lang/Enum;'; +} - static final _id_mismatch$18 = _class.staticMethodId( - r'mismatch', - r'([Ljava/lang/Object;[Ljava/lang/Object;Ljava/util/Comparator;)I', - ); +/// from: `java.time.temporal.ChronoUnit` +/// +/// WARNING: ChronoUnit is a stub. To generate bindings for this class, include +/// java.time.temporal.ChronoUnit in your config's classes list. +/// +extension type ChronoUnit._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $ChronoUnit$Type$(); +} - static final _mismatch$18 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer)>(); +final class $ChronoUnit$Type$ extends jni$_.JType { + @jni$_.internal + const $ChronoUnit$Type$(); - /// from: `static public int mismatch(java.lang.Object[] objects, java.lang.Object[] objects1, java.util.Comparator comparator)` - static int mismatch$18<$T extends jni$_.JObject?>( - jni$_.JArray<$T?>? objects, - jni$_.JArray<$T?>? objects1, - jni$_.JObject? comparator, { - required jni$_.JObjType<$T> T, - }) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - final _$objects1 = objects1?.reference ?? jni$_.jNullReference; - final _$comparator = comparator?.reference ?? jni$_.jNullReference; - return _mismatch$18( - _class.reference.pointer, - _id_mismatch$18 as jni$_.JMethodIDPtr, - _$objects.pointer, - _$objects1.pointer, - _$comparator.pointer) - .integer; - } + @jni$_.internal + @core$_.override + String get signature => r'Ljava/time/temporal/ChronoUnit;'; +} - static final _id_mismatch$19 = _class.staticMethodId( - r'mismatch', - r'([Ljava/lang/Object;II[Ljava/lang/Object;IILjava/util/Comparator;)I', - ); +/// from: `java.lang.Thread` +/// +/// WARNING: Thread is a stub. To generate bindings for this class, include +/// java.lang.Thread in your config's classes list. +/// +extension type Thread._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Thread$Type$(); +} - static final _mismatch$19 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - int, - int, - jni$_.Pointer, - int, - int, - jni$_.Pointer)>(); +final class $Thread$Type$ extends jni$_.JType { + @jni$_.internal + const $Thread$Type$(); - /// from: `static public int mismatch(java.lang.Object[] objects, int i, int i1, java.lang.Object[] objects1, int i2, int i3, java.util.Comparator comparator)` - static int mismatch$19<$T extends jni$_.JObject?>( - jni$_.JArray<$T?>? objects, - int i, - int i1, - jni$_.JArray<$T?>? objects1, - int i2, - int i3, - jni$_.JObject? comparator, { - required jni$_.JObjType<$T> T, - }) { - final _$objects = objects?.reference ?? jni$_.jNullReference; - final _$objects1 = objects1?.reference ?? jni$_.jNullReference; - final _$comparator = comparator?.reference ?? jni$_.jNullReference; - return _mismatch$19( - _class.reference.pointer, - _id_mismatch$19 as jni$_.JMethodIDPtr, - _$objects.pointer, - i, - i1, - _$objects1.pointer, - i2, - i3, - _$comparator.pointer) - .integer; - } + @jni$_.internal + @core$_.override + String get signature => r'Ljava/lang/Thread;'; +} + +/// from: `java.net.InetAddress` +/// +/// WARNING: InetAddress is a stub. To generate bindings for this class, include +/// java.net.InetAddress in your config's classes list. +/// +extension type InetAddress._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $InetAddress$Type$(); } -final class $Arrays$NullableType extends jni$_.JObjType { +final class $InetAddress$Type$ extends jni$_.JType { @jni$_.internal - const $Arrays$NullableType(); + const $InetAddress$Type$(); @jni$_.internal @core$_.override - String get signature => r'Ljava/util/Arrays;'; + String get signature => r'Ljava/net/InetAddress;'; +} + +/// from: `javax.net.ssl.SSLSessionContext` +/// +/// WARNING: SSLSessionContext is a stub. To generate bindings for this class, include +/// javax.net.ssl.SSLSessionContext in your config's classes list. +/// +extension type SSLSessionContext._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = $SSLSessionContext$Type$(); +} + +final class $SSLSessionContext$Type$ extends jni$_.JType { + @jni$_.internal + const $SSLSessionContext$Type$(); @jni$_.internal @core$_.override - Arrays? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Arrays.fromReference( - reference, - ); + String get signature => r'Ljavax/net/ssl/SSLSessionContext;'; +} + +/// from: `javax.net.ssl.SSLParameters` +/// +/// WARNING: SSLParameters is a stub. To generate bindings for this class, include +/// javax.net.ssl.SSLParameters in your config's classes list. +/// +extension type SSLParameters._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $SSLParameters$Type$(); +} + +final class $SSLParameters$Type$ extends jni$_.JType { + @jni$_.internal + const $SSLParameters$Type$(); + @jni$_.internal @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + String get signature => r'Ljavax/net/ssl/SSLParameters;'; +} + +/// from: `java.security.Provider` +/// +/// WARNING: Provider is a stub. To generate bindings for this class, include +/// java.security.Provider in your config's classes list. +/// +extension type Provider._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Provider$Type$(); +} + +final class $Provider$Type$ extends jni$_.JType { + @jni$_.internal + const $Provider$Type$(); @jni$_.internal @core$_.override - jni$_.JObjType get nullableType => this; + String get signature => r'Ljava/security/Provider;'; +} + +/// from: `javax.net.ssl.SSLServerSocketFactory` +/// +/// WARNING: SSLServerSocketFactory is a stub. To generate bindings for this class, include +/// javax.net.ssl.SSLServerSocketFactory in your config's classes list. +/// +extension type SSLServerSocketFactory._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $SSLServerSocketFactory$Type$(); +} + +final class $SSLServerSocketFactory$Type$ + extends jni$_.JType { + @jni$_.internal + const $SSLServerSocketFactory$Type$(); @jni$_.internal @core$_.override - final superCount = 1; + String get signature => r'Ljavax/net/ssl/SSLServerSocketFactory;'; +} + +/// from: `javax.net.ssl.ManagerFactoryParameters` +/// +/// WARNING: ManagerFactoryParameters is a stub. To generate bindings for this class, include +/// javax.net.ssl.ManagerFactoryParameters in your config's classes list. +/// +extension type ManagerFactoryParameters._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $ManagerFactoryParameters$Type$(); +} + +final class $ManagerFactoryParameters$Type$ + extends jni$_.JType { + @jni$_.internal + const $ManagerFactoryParameters$Type$(); + @jni$_.internal @core$_.override - int get hashCode => ($Arrays$NullableType).hashCode; + String get signature => r'Ljavax/net/ssl/ManagerFactoryParameters;'; +} + +/// from: `javax.security.auth.callback.CallbackHandler` +/// +/// WARNING: CallbackHandler is a stub. To generate bindings for this class, include +/// javax.security.auth.callback.CallbackHandler in your config's classes list. +/// +extension type CallbackHandler._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = $CallbackHandler$Type$(); +} + +final class $CallbackHandler$Type$ extends jni$_.JType { + @jni$_.internal + const $CallbackHandler$Type$(); + @jni$_.internal @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Arrays$NullableType) && - other is $Arrays$NullableType; - } + String get signature => r'Ljavax/security/auth/callback/CallbackHandler;'; +} + +/// from: `java.security.spec.AlgorithmParameterSpec` +/// +/// WARNING: AlgorithmParameterSpec is a stub. To generate bindings for this class, include +/// java.security.spec.AlgorithmParameterSpec in your config's classes list. +/// +extension type AlgorithmParameterSpec._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $AlgorithmParameterSpec$Type$(); } -final class $Arrays$Type extends jni$_.JObjType { +final class $AlgorithmParameterSpec$Type$ + extends jni$_.JType { @jni$_.internal - const $Arrays$Type(); + const $AlgorithmParameterSpec$Type$(); @jni$_.internal @core$_.override - String get signature => r'Ljava/util/Arrays;'; + String get signature => r'Ljava/security/spec/AlgorithmParameterSpec;'; +} + +/// from: `javax.security.auth.Destroyable` +/// +/// WARNING: Destroyable is a stub. To generate bindings for this class, include +/// javax.security.auth.Destroyable in your config's classes list. +/// +extension type Destroyable._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Destroyable$Type$(); +} + +final class $Destroyable$Type$ extends jni$_.JType { + @jni$_.internal + const $Destroyable$Type$(); @jni$_.internal @core$_.override - Arrays fromReference(jni$_.JReference reference) => Arrays.fromReference( - reference, - ); + String get signature => r'Ljavax/security/auth/Destroyable;'; +} + +/// from: `javax.crypto.SecretKey` +/// +/// WARNING: SecretKey is a stub. To generate bindings for this class, include +/// javax.crypto.SecretKey in your config's classes list. +/// +extension type SecretKey._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $SecretKey$Type$(); +} + +final class $SecretKey$Type$ extends jni$_.JType { + @jni$_.internal + const $SecretKey$Type$(); + @jni$_.internal @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + String get signature => r'Ljavax/crypto/SecretKey;'; +} + +/// from: `java.util.Random` +/// +/// WARNING: Random is a stub. To generate bindings for this class, include +/// java.util.Random in your config's classes list. +/// +extension type Random._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Random$Type$(); +} + +final class $Random$Type$ extends jni$_.JType { + @jni$_.internal + const $Random$Type$(); @jni$_.internal @core$_.override - jni$_.JObjType get nullableType => const $Arrays$NullableType(); + String get signature => r'Ljava/util/Random;'; +} + +/// from: `java.security.SecureRandomParameters` +/// +/// WARNING: SecureRandomParameters is a stub. To generate bindings for this class, include +/// java.security.SecureRandomParameters in your config's classes list. +/// +extension type SecureRandomParameters._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $SecureRandomParameters$Type$(); +} + +final class $SecureRandomParameters$Type$ + extends jni$_.JType { + @jni$_.internal + const $SecureRandomParameters$Type$(); @jni$_.internal @core$_.override - final superCount = 1; + String get signature => r'Ljava/security/SecureRandomParameters;'; +} + +/// from: `javax.net.ssl.SSLSession` +/// +/// WARNING: SSLSession is a stub. To generate bindings for this class, include +/// javax.net.ssl.SSLSession in your config's classes list. +/// +extension type SSLSession._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $SSLSession$Type$(); +} + +final class $SSLSession$Type$ extends jni$_.JType { + @jni$_.internal + const $SSLSession$Type$(); + @jni$_.internal @core$_.override - int get hashCode => ($Arrays$Type).hashCode; + String get signature => r'Ljavax/net/ssl/SSLSession;'; +} + +/// from: `javax.security.auth.x500.X500Principal` +/// +/// WARNING: X500Principal is a stub. To generate bindings for this class, include +/// javax.security.auth.x500.X500Principal in your config's classes list. +/// +extension type X500Principal._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $X500Principal$Type$(); +} +final class $X500Principal$Type$ extends jni$_.JType { + @jni$_.internal + const $X500Principal$Type$(); + + @jni$_.internal @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Arrays$Type) && other is $Arrays$Type; - } + String get signature => r'Ljavax/security/auth/x500/X500Principal;'; } -/// from: `java.security.cert.Certificate` -class Certificate extends jni$_.JObject { +/// from: `java.math.BigInteger` +/// +/// WARNING: BigInteger is a stub. To generate bindings for this class, include +/// java.math.BigInteger in your config's classes list. +/// +extension type BigInteger._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $BigInteger$Type$(); +} + +final class $BigInteger$Type$ extends jni$_.JType { + @jni$_.internal + const $BigInteger$Type$(); + @jni$_.internal @core$_.override - final jni$_.JObjType $type; + String get signature => r'Ljava/math/BigInteger;'; +} + +/// from: `java.security.cert.X509Extension` +/// +/// WARNING: X509Extension is a stub. To generate bindings for this class, include +/// java.security.cert.X509Extension in your config's classes list. +/// +extension type X509Extension._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $X509Extension$Type$(); +} +final class $X509Extension$Type$ extends jni$_.JType { @jni$_.internal - Certificate.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + const $X509Extension$Type$(); - static final _class = jni$_.JClass.forName(r'java/security/cert/Certificate'); + @jni$_.internal + @core$_.override + String get signature => r'Ljava/security/cert/X509Extension;'; +} - /// The type which includes information such as the signature of this class. - static const nullableType = $Certificate$NullableType(); - static const type = $Certificate$Type(); - static final _id_getType = _class.instanceMethodId( - r'getType', - r'()Ljava/lang/String;', - ); +/// from: `android.app.Activity` +/// +/// WARNING: Activity is a stub. To generate bindings for this class, include +/// android.app.Activity in your config's classes list. +/// +extension type Activity._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Activity$Type$(); +} - static final _getType = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); +final class $Activity$Type$ extends jni$_.JType { + @jni$_.internal + const $Activity$Type$(); - /// from: `public final java.lang.String getType()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getType() { - return _getType(reference.pointer, _id_getType as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); - } + @jni$_.internal + @core$_.override + String get signature => r'Landroid/app/Activity;'; +} - static final _id_equals = _class.instanceMethodId( - r'equals', - r'(Ljava/lang/Object;)Z', - ); +/// from: `android.net.Uri` +/// +/// WARNING: Uri is a stub. To generate bindings for this class, include +/// android.net.Uri in your config's classes list. +/// +extension type Uri._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Uri$Type$(); +} - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); +final class $Uri$Type$ extends jni$_.JType { + @jni$_.internal + const $Uri$Type$(); - /// from: `public boolean equals(java.lang.Object object)` - bool equals( - jni$_.JObject? object, - ) { - final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; - } + @jni$_.internal + @core$_.override + String get signature => r'Landroid/net/Uri;'; +} - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); +/// from: `android.content.Intent` +/// +/// WARNING: Intent is a stub. To generate bindings for this class, include +/// android.content.Intent in your config's classes list. +/// +extension type Intent._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Intent$Type$(); +} - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); +final class $Intent$Type$ extends jni$_.JType { + @jni$_.internal + const $Intent$Type$(); - /// from: `public int hashCode()` - int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) - .integer; - } + @jni$_.internal + @core$_.override + String get signature => r'Landroid/content/Intent;'; +} - static final _id_getEncoded = _class.instanceMethodId( - r'getEncoded', - r'()[B', - ); +/// from: `android.security.AppUriAuthenticationPolicy` +/// +/// WARNING: AppUriAuthenticationPolicy is a stub. To generate bindings for this class, include +/// android.security.AppUriAuthenticationPolicy in your config's classes list. +/// +extension type AppUriAuthenticationPolicy._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $AppUriAuthenticationPolicy$Type$(); +} - static final _getEncoded = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); +final class $AppUriAuthenticationPolicy$Type$ + extends jni$_.JType { + @jni$_.internal + const $AppUriAuthenticationPolicy$Type$(); - /// from: `public abstract byte[] getEncoded()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JByteArray? getEncoded() { - return _getEncoded(reference.pointer, _id_getEncoded as jni$_.JMethodIDPtr) - .object(const jni$_.JByteArrayNullableType()); - } + @jni$_.internal + @core$_.override + String get signature => r'Landroid/security/AppUriAuthenticationPolicy;'; +} - static final _id_verify = _class.instanceMethodId( - r'verify', - r'(Ljava/security/PublicKey;)V', - ); +/// from: `android.content.Context` +/// +/// WARNING: Context is a stub. To generate bindings for this class, include +/// android.content.Context in your config's classes list. +/// +extension type Context._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Context$Type$(); +} - static final _verify = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); +final class $Context$Type$ extends jni$_.JType { + @jni$_.internal + const $Context$Type$(); - /// from: `public abstract void verify(java.security.PublicKey publicKey)` - void verify( - PublicKey? publicKey, - ) { - final _$publicKey = publicKey?.reference ?? jni$_.jNullReference; - _verify(reference.pointer, _id_verify as jni$_.JMethodIDPtr, - _$publicKey.pointer) - .check(); - } + @jni$_.internal + @core$_.override + String get signature => r'Landroid/content/Context;'; +} - static final _id_verify$1 = _class.instanceMethodId( - r'verify', - r'(Ljava/security/PublicKey;Ljava/lang/String;)V', - ); +/// from: `java.security.KeyPairGeneratorSpi` +/// +/// WARNING: KeyPairGeneratorSpi is a stub. To generate bindings for this class, include +/// java.security.KeyPairGeneratorSpi in your config's classes list. +/// +extension type KeyPairGeneratorSpi._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $KeyPairGeneratorSpi$Type$(); +} - static final _verify$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); +final class $KeyPairGeneratorSpi$Type$ + extends jni$_.JType { + @jni$_.internal + const $KeyPairGeneratorSpi$Type$(); - /// from: `public abstract void verify(java.security.PublicKey publicKey, java.lang.String string)` - void verify$1( - PublicKey? publicKey, - jni$_.JString? string, - ) { - final _$publicKey = publicKey?.reference ?? jni$_.jNullReference; - final _$string = string?.reference ?? jni$_.jNullReference; - _verify$1(reference.pointer, _id_verify$1 as jni$_.JMethodIDPtr, - _$publicKey.pointer, _$string.pointer) - .check(); - } + @jni$_.internal + @core$_.override + String get signature => r'Ljava/security/KeyPairGeneratorSpi;'; +} - static final _id_verify$2 = _class.instanceMethodId( - r'verify', - r'(Ljava/security/PublicKey;Ljava/security/Provider;)V', - ); +/// from: `java.util.Comparator` +/// +/// WARNING: Comparator is a stub. To generate bindings for this class, include +/// java.util.Comparator in your config's classes list. +/// +extension type Comparator._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Comparator$Type$(); +} - static final _verify$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.Pointer, - jni$_.Pointer)>(); +final class $Comparator$Type$ extends jni$_.JType { + @jni$_.internal + const $Comparator$Type$(); - /// from: `public void verify(java.security.PublicKey publicKey, java.security.Provider provider)` - void verify$2( - PublicKey? publicKey, - jni$_.JObject? provider, - ) { - final _$publicKey = publicKey?.reference ?? jni$_.jNullReference; - final _$provider = provider?.reference ?? jni$_.jNullReference; - _verify$2(reference.pointer, _id_verify$2 as jni$_.JMethodIDPtr, - _$publicKey.pointer, _$provider.pointer) - .check(); - } + @jni$_.internal + @core$_.override + String get signature => r'Ljava/util/Comparator;'; +} - static final _id_toString$1 = _class.instanceMethodId( - r'toString', - r'()Ljava/lang/String;', - ); +/// from: `java.util.function.DoubleBinaryOperator` +/// +/// WARNING: DoubleBinaryOperator is a stub. To generate bindings for this class, include +/// java.util.function.DoubleBinaryOperator in your config's classes list. +/// +extension type DoubleBinaryOperator._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $DoubleBinaryOperator$Type$(); +} - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); +final class $DoubleBinaryOperator$Type$ + extends jni$_.JType { + @jni$_.internal + const $DoubleBinaryOperator$Type$(); - /// from: `public abstract java.lang.String toString()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? toString$1() { - return _toString$1(reference.pointer, _id_toString$1 as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); - } + @jni$_.internal + @core$_.override + String get signature => r'Ljava/util/function/DoubleBinaryOperator;'; +} - static final _id_getPublicKey = _class.instanceMethodId( - r'getPublicKey', - r'()Ljava/security/PublicKey;', - ); +/// from: `java.util.function.IntBinaryOperator` +/// +/// WARNING: IntBinaryOperator is a stub. To generate bindings for this class, include +/// java.util.function.IntBinaryOperator in your config's classes list. +/// +extension type IntBinaryOperator._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = $IntBinaryOperator$Type$(); +} - static final _getPublicKey = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); +final class $IntBinaryOperator$Type$ extends jni$_.JType { + @jni$_.internal + const $IntBinaryOperator$Type$(); - /// from: `public abstract java.security.PublicKey getPublicKey()` - /// The returned object must be released after use, by calling the [release] method. - PublicKey? getPublicKey() { - return _getPublicKey( - reference.pointer, _id_getPublicKey as jni$_.JMethodIDPtr) - .object(const $PublicKey$NullableType()); - } + @jni$_.internal + @core$_.override + String get signature => r'Ljava/util/function/IntBinaryOperator;'; +} + +/// from: `java.util.function.LongBinaryOperator` +/// +/// WARNING: LongBinaryOperator is a stub. To generate bindings for this class, include +/// java.util.function.LongBinaryOperator in your config's classes list. +/// +extension type LongBinaryOperator._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $LongBinaryOperator$Type$(); } -final class $Certificate$NullableType extends jni$_.JObjType { +final class $LongBinaryOperator$Type$ extends jni$_.JType { @jni$_.internal - const $Certificate$NullableType(); + const $LongBinaryOperator$Type$(); @jni$_.internal @core$_.override - String get signature => r'Ljava/security/cert/Certificate;'; + String get signature => r'Ljava/util/function/LongBinaryOperator;'; +} + +/// from: `java.util.function.BinaryOperator` +/// +/// WARNING: BinaryOperator is a stub. To generate bindings for this class, include +/// java.util.function.BinaryOperator in your config's classes list. +/// +extension type BinaryOperator._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $BinaryOperator$Type$(); +} + +final class $BinaryOperator$Type$ extends jni$_.JType { + @jni$_.internal + const $BinaryOperator$Type$(); @jni$_.internal @core$_.override - Certificate? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Certificate.fromReference( - reference, - ); + String get signature => r'Ljava/util/function/BinaryOperator;'; +} + +/// from: `java.util.function.IntToDoubleFunction` +/// +/// WARNING: IntToDoubleFunction is a stub. To generate bindings for this class, include +/// java.util.function.IntToDoubleFunction in your config's classes list. +/// +extension type IntToDoubleFunction._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $IntToDoubleFunction$Type$(); +} + +final class $IntToDoubleFunction$Type$ + extends jni$_.JType { + @jni$_.internal + const $IntToDoubleFunction$Type$(); + @jni$_.internal @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + String get signature => r'Ljava/util/function/IntToDoubleFunction;'; +} + +/// from: `java.util.function.IntUnaryOperator` +/// +/// WARNING: IntUnaryOperator is a stub. To generate bindings for this class, include +/// java.util.function.IntUnaryOperator in your config's classes list. +/// +extension type IntUnaryOperator._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = $IntUnaryOperator$Type$(); +} + +final class $IntUnaryOperator$Type$ extends jni$_.JType { + @jni$_.internal + const $IntUnaryOperator$Type$(); @jni$_.internal @core$_.override - jni$_.JObjType get nullableType => this; + String get signature => r'Ljava/util/function/IntUnaryOperator;'; +} + +/// from: `java.util.function.IntToLongFunction` +/// +/// WARNING: IntToLongFunction is a stub. To generate bindings for this class, include +/// java.util.function.IntToLongFunction in your config's classes list. +/// +extension type IntToLongFunction._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = $IntToLongFunction$Type$(); +} + +final class $IntToLongFunction$Type$ extends jni$_.JType { + @jni$_.internal + const $IntToLongFunction$Type$(); @jni$_.internal @core$_.override - final superCount = 1; + String get signature => r'Ljava/util/function/IntToLongFunction;'; +} + +/// from: `java.util.function.IntFunction` +/// +/// WARNING: IntFunction is a stub. To generate bindings for this class, include +/// java.util.function.IntFunction in your config's classes list. +/// +extension type IntFunction._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $IntFunction$Type$(); +} + +final class $IntFunction$Type$ extends jni$_.JType { + @jni$_.internal + const $IntFunction$Type$(); + @jni$_.internal @core$_.override - int get hashCode => ($Certificate$NullableType).hashCode; + String get signature => r'Ljava/util/function/IntFunction;'; +} + +/// from: `java.util.Spliterator$OfDouble` +/// +/// WARNING: Spliterator$$OfDouble is a stub. To generate bindings for this class, include +/// java.util.Spliterator$OfDouble in your config's classes list. +/// +extension type Spliterator$$OfDouble._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $Spliterator$$OfDouble$Type$(); +} + +final class $Spliterator$$OfDouble$Type$ + extends jni$_.JType { + @jni$_.internal + const $Spliterator$$OfDouble$Type$(); + @jni$_.internal @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Certificate$NullableType) && - other is $Certificate$NullableType; - } + String get signature => r'Ljava/util/Spliterator$OfDouble;'; +} + +/// from: `java.util.Spliterator$OfInt` +/// +/// WARNING: Spliterator$$OfInt is a stub. To generate bindings for this class, include +/// java.util.Spliterator$OfInt in your config's classes list. +/// +extension type Spliterator$$OfInt._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $Spliterator$$OfInt$Type$(); } -final class $Certificate$Type extends jni$_.JObjType { +final class $Spliterator$$OfInt$Type$ extends jni$_.JType { @jni$_.internal - const $Certificate$Type(); + const $Spliterator$$OfInt$Type$(); @jni$_.internal @core$_.override - String get signature => r'Ljava/security/cert/Certificate;'; + String get signature => r'Ljava/util/Spliterator$OfInt;'; +} + +/// from: `java.util.Spliterator$OfLong` +/// +/// WARNING: Spliterator$$OfLong is a stub. To generate bindings for this class, include +/// java.util.Spliterator$OfLong in your config's classes list. +/// +extension type Spliterator$$OfLong._(jni$_.JObject _$this) + implements jni$_.JObject { + static const jni$_.JType type = + $Spliterator$$OfLong$Type$(); +} + +final class $Spliterator$$OfLong$Type$ + extends jni$_.JType { + @jni$_.internal + const $Spliterator$$OfLong$Type$(); @jni$_.internal @core$_.override - Certificate fromReference(jni$_.JReference reference) => - Certificate.fromReference( - reference, - ); + String get signature => r'Ljava/util/Spliterator$OfLong;'; +} + +/// from: `java.util.Spliterator` +/// +/// WARNING: Spliterator is a stub. To generate bindings for this class, include +/// java.util.Spliterator in your config's classes list. +/// +extension type Spliterator._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Spliterator$Type$(); +} + +final class $Spliterator$Type$ extends jni$_.JType { + @jni$_.internal + const $Spliterator$Type$(); + @jni$_.internal @core$_.override - jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + String get signature => r'Ljava/util/Spliterator;'; +} + +/// from: `java.util.stream.DoubleStream` +/// +/// WARNING: DoubleStream is a stub. To generate bindings for this class, include +/// java.util.stream.DoubleStream in your config's classes list. +/// +extension type DoubleStream._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $DoubleStream$Type$(); +} + +final class $DoubleStream$Type$ extends jni$_.JType { + @jni$_.internal + const $DoubleStream$Type$(); @jni$_.internal @core$_.override - jni$_.JObjType get nullableType => - const $Certificate$NullableType(); + String get signature => r'Ljava/util/stream/DoubleStream;'; +} + +/// from: `java.util.stream.IntStream` +/// +/// WARNING: IntStream is a stub. To generate bindings for this class, include +/// java.util.stream.IntStream in your config's classes list. +/// +extension type IntStream._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $IntStream$Type$(); +} + +final class $IntStream$Type$ extends jni$_.JType { + @jni$_.internal + const $IntStream$Type$(); @jni$_.internal @core$_.override - final superCount = 1; + String get signature => r'Ljava/util/stream/IntStream;'; +} + +/// from: `java.util.stream.LongStream` +/// +/// WARNING: LongStream is a stub. To generate bindings for this class, include +/// java.util.stream.LongStream in your config's classes list. +/// +extension type LongStream._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $LongStream$Type$(); +} + +final class $LongStream$Type$ extends jni$_.JType { + @jni$_.internal + const $LongStream$Type$(); + @jni$_.internal @core$_.override - int get hashCode => ($Certificate$Type).hashCode; + String get signature => r'Ljava/util/stream/LongStream;'; +} + +/// from: `java.util.stream.Stream` +/// +/// WARNING: Stream$1 is a stub. To generate bindings for this class, include +/// java.util.stream.Stream in your config's classes list. +/// +extension type Stream$1._(jni$_.JObject _$this) implements jni$_.JObject { + static const jni$_.JType type = $Stream$1$Type$(); +} +final class $Stream$1$Type$ extends jni$_.JType { + @jni$_.internal + const $Stream$1$Type$(); + + @jni$_.internal @core$_.override - bool operator ==(Object other) { - return other.runtimeType == ($Certificate$Type) && - other is $Certificate$Type; - } + String get signature => r'Ljava/util/stream/Stream;'; } diff --git a/pkgs/ok_http/lib/src/ok_http_client.dart b/pkgs/ok_http/lib/src/ok_http_client.dart index e9114b4893..300936acd0 100644 --- a/pkgs/ok_http/lib/src/ok_http_client.dart +++ b/pkgs/ok_http/lib/src/ok_http_client.dart @@ -15,17 +15,19 @@ library; import 'dart:async'; import 'dart:io'; import 'dart:typed_data'; +import 'dart:ui'; import 'package:http/http.dart'; import 'package:http_profile/http_profile.dart'; import 'package:jni/jni.dart'; +import 'package:jni_flutter/jni_flutter.dart'; import 'jni/bindings.dart' as bindings; import 'jni/bindings.dart' show PrivateKey, X509Certificate; class _JavaIOException extends IOException { final String _message; - _JavaIOException(JniException e) : _message = e.message; + _JavaIOException(JThrowable e) : _message = e.message; @override String toString() => _message; @@ -37,10 +39,10 @@ final _allAllTrustManager = checkClientTrusted: (chain, authType) {}, checkServerTrusted: (chain, authType) {}, getAcceptedIssuers: () { - final factory = bindings.TrustManagerFactory.getInstance( - bindings.TrustManagerFactory.getDefaultAlgorithm()); - factory!.init(null); - return JArray(bindings.X509Certificate.nullableType, 0); + bindings.TrustManagerFactory.getInstance( + bindings.TrustManagerFactory.defaultAlgorithm)! + .init(null); + return JArray.withLength(bindings.X509Certificate.type, 0); })).as(bindings.TrustManager.type); /// Configurations for the [OkHttpClient]. @@ -108,11 +110,12 @@ class OkHttpClientConfiguration { /// /// See [`KeyChain.choosePrivateKeyAlias`](https://developer.android.com/reference/android/security/KeyChain#choosePrivateKeyAlias(android.app.Activity,%20android.security.KeyChainAliasCallback,%20java.lang.String[],%20java.security.Principal[],%20android.net.Uri,%20java.lang.String). Future choosePrivateKeyAlias({ - JObject? activity, + bindings.Activity? activity, }) async { final c = Completer(); - activity ??= JObject.fromReference(Jni.getCurrentActivity()); - bindings.KeyChain.choosePrivateKeyAlias(activity, + activity ??= androidActivity(PlatformDispatcher.instance.engineId ?? 0) + as bindings.Activity?; + bindings.KeyChain.choosePrivateKeyAlias$1(activity, bindings.KeyChainAliasCallback.implement( bindings.$KeyChainAliasCallback(alias: (alias) { c.complete(alias?.toDartString()); @@ -125,13 +128,13 @@ Future choosePrivateKeyAlias({ /// See [Android Keystore system](https://developer.android.com/privacy-and-security/keystore). (PrivateKey, List) loadPrivateKeyAndCertificateChainFromAlias( String alias, - {JObject? context}) { - context ??= JObject.fromReference(Jni.getCachedApplicationContext()); + {bindings.Context? context}) { + context ??= androidApplicationContext as bindings.Context; final jAlias = alias.toJString(); final pk = bindings.KeyChain.getPrivateKey(context, jAlias)!; final chain = bindings.KeyChain.getCertificateChain(context, jAlias)!; - return (pk, chain.toList().cast()); + return (pk, chain.asDart().cast()); } /// Load a [PrivateKey] and certificate chain from a PKCS 12 archive. @@ -140,9 +143,9 @@ Future choosePrivateKeyAlias({ /// invalid. (PrivateKey, List) loadPrivateKeyAndCertificateChainFromPKCS12( Uint8List pkcs12Data, String password, - {JObject? context}) { - context ??= JObject.fromReference(Jni.getCachedApplicationContext()); - var keyStore = bindings.KeyStore.getInstance('PKCS12'.toJString())!; + {bindings.Context? context}) { + context ??= androidApplicationContext as bindings.Context; + var keyStore = bindings.KeyStore.getInstance$2('PKCS12'.toJString())!; final jPassword = JCharArray(password.length); for (var i = 0; i < password.length; ++i) { @@ -150,8 +153,8 @@ Future choosePrivateKeyAlias({ } try { keyStore.load( - bindings.ByteArrayInputStream(JByteArray.from(pkcs12Data)), jPassword); - } on JniException catch (e) { + bindings.ByteArrayInputStream(JByteArray.of(pkcs12Data)), jPassword); + } on JThrowable catch (e) { if (e.message.contains('java.io.IOException')) { throw _JavaIOException(e); } @@ -181,7 +184,7 @@ Future choosePrivateKeyAlias({ throw ArgumentError('certificate key is not a PrivateKey', 'pkcs12Data'); } - final certificates = jCertificates.map((c) { + final certificates = jCertificates.asDart().map((bindings.Certificate? c) { if (c == null || !c.isA(X509Certificate.type)) { throw ArgumentError( 'certificate chain contains non-X509 certificates', 'pkcs12Data'); @@ -246,7 +249,7 @@ class OkHttpClient extends BaseClient { clientCertificateChain != null || !configuration.validateServerCertificates) { JArray? keyManagers; - final trustManagers = JArray(bindings.TrustManager.nullableType, 1); + final trustManagers = JArray.withLength(bindings.TrustManager.type, 1); if (clientPrivateKey != null && clientCertificateChain != null) { final chain = @@ -254,16 +257,16 @@ class OkHttpClient extends BaseClient { final keyManager = bindings.FixedResponseX509ExtendedKeyManager( chain, clientPrivateKey, 'DUMMY'.toJString()); keyManagers = JArray.filled(1, keyManager.as(bindings.KeyManager.type), - E: bindings.KeyManager.type); + elementType: bindings.KeyManager.type); } if (!configuration.validateServerCertificates) { trustManagers[0] = _allAllTrustManager; } else { final tmf = bindings.TrustManagerFactory.getInstance( - bindings.TrustManagerFactory.getDefaultAlgorithm())! + bindings.TrustManagerFactory.defaultAlgorithm)! ..init(null); - final tms = tmf.getTrustManagers()!; + final tms = tmf.trustManagers!; if (tms.length != 1) { throw StateError('unexpected XXX'); } @@ -272,7 +275,7 @@ class OkHttpClient extends BaseClient { final sslContext = bindings.SSLContext.getInstance('TLS'.toJString())! ..init(keyManagers, trustManagers, null); - builder.sslSocketFactory$1(sslContext.getSocketFactory()!, + builder.sslSocketFactory$1(sslContext.socketFactory!, trustManagers[0]!.as(bindings.X509TrustManager.type)); } _client = builder.build(); @@ -363,7 +366,7 @@ class OkHttpClient extends BaseClient { // So, we need to handle this case separately. bindings.RequestBody? okReqBody; if (requestMethod != 'GET' && requestMethod != 'HEAD') { - okReqBody = bindings.RequestBody.create$10(JByteArray.from(requestBody)); + okReqBody = bindings.RequestBody.create$10(JByteArray.of(requestBody)); } reqBuilder.method( @@ -417,9 +420,11 @@ class OkHttpClient extends BaseClient { var responseHeaders = {}; - response.headers().toMultimap().forEach((key, value) { - responseHeaders[key.toDartString(releaseOriginal: true)] = - value.join(','); + response.headers().toMultimap().asDart().forEach((key, value) { + responseHeaders[key.toDartString(releaseOriginal: true)] = value + .asDart() + .map((s) => s.toDartString(releaseOriginal: true)) + .join(','); }); int? contentLength; @@ -441,7 +446,7 @@ class OkHttpClient extends BaseClient { bindings.DataCallback.implement( bindings.$DataCallback( onDataRead: (bytesRead) { - var data = bytesRead.toList(growable: false); + var data = bytesRead.asDart().toList(); respBodyStreamController.sink.add(data); profile?.responseData.bodySink.add(data); @@ -476,14 +481,14 @@ class OkHttpClient extends BaseClient { headers: responseHeaders, request: request, contentLength: contentLength, - isRedirect: response.isRedirect(), + isRedirect: response.isRedirect, )); profile?.requestData.close(); profile?.responseData ?..contentLength = contentLength ..headersCommaValues = responseHeaders - ..isRedirect = response.isRedirect() + ..isRedirect = response.isRedirect ..reasonPhrase = response.message().toDartString(releaseOriginal: true) ..startTime = DateTime.now() diff --git a/pkgs/ok_http/lib/src/ok_http_web_socket.dart b/pkgs/ok_http/lib/src/ok_http_web_socket.dart index f9c1d3acf7..db12061ef3 100644 --- a/pkgs/ok_http/lib/src/ok_http_web_socket.dart +++ b/pkgs/ok_http/lib/src/ok_http_web_socket.dart @@ -126,7 +126,7 @@ class OkHttpWebSocket implements WebSocket { (bindings.WebSocket webSocket, bindings.ByteString byteString) { if (_events.isClosed) return; _events.add(BinaryDataReceived( - Uint8List.fromList(byteString.toByteArray().toList()))); + Uint8List.fromList(byteString.toByteArray().asDart()))); }, onClosing: (bindings.WebSocket webSocket, int i, JString string) async { diff --git a/pkgs/ok_http/pubspec.yaml b/pkgs/ok_http/pubspec.yaml index b412de2bc4..a5ec768fb0 100644 --- a/pkgs/ok_http/pubspec.yaml +++ b/pkgs/ok_http/pubspec.yaml @@ -13,13 +13,14 @@ dependencies: sdk: flutter http: ^1.2.1 http_profile: ^0.1.0 - jni: ^0.14.0 + jni: ^1.0.0 + jni_flutter: ^1.0.0 plugin_platform_interface: ^2.0.2 web_socket: '>=0.1.5 <2.0.0' dev_dependencies: dart_flutter_team_lints: ^3.0.0 - jnigen: ^0.14.0 + jnigen: ^0.17.0 flutter: plugin: From a32ffed7d4623124974ab05e0555031c17ca3e6b Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Fri, 7 Aug 2026 10:09:06 -0700 Subject: [PATCH 2/3] Update CHANGELOG.md --- pkgs/ok_http/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/ok_http/CHANGELOG.md b/pkgs/ok_http/CHANGELOG.md index 22b520dbde..b20550cf4f 100644 --- a/pkgs/ok_http/CHANGELOG.md +++ b/pkgs/ok_http/CHANGELOG.md @@ -1,4 +1,4 @@ -## 0.1.1-wip +## 0.1.1-wi - Upgrade to `jni` 1.0.0 and `jnigen` 0.17.0. - `OkHttpClient` now receives an `OkHttpClientConfiguration` to configure the client on a per-call basis. From 157ebefe649acd01d5042dcfd97263e08830bbab Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Fri, 7 Aug 2026 10:09:17 -0700 Subject: [PATCH 3/3] Update CHANGELOG.md --- pkgs/ok_http/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/ok_http/CHANGELOG.md b/pkgs/ok_http/CHANGELOG.md index b20550cf4f..22b520dbde 100644 --- a/pkgs/ok_http/CHANGELOG.md +++ b/pkgs/ok_http/CHANGELOG.md @@ -1,4 +1,4 @@ -## 0.1.1-wi +## 0.1.1-wip - Upgrade to `jni` 1.0.0 and `jnigen` 0.17.0. - `OkHttpClient` now receives an `OkHttpClientConfiguration` to configure the client on a per-call basis.