From 9d8b1bde1ba92f8cd6bfd6e4991d55f9f603decd Mon Sep 17 00:00:00 2001 From: Jonathan Rudenberg Date: Tue, 22 Apr 2025 14:29:33 -0400 Subject: [PATCH 1/2] [cronet_http] Bump Android deps --- pkgs/cronet_http/android/settings.gradle | 4 ++-- pkgs/cronet_http/example/android/app/build.gradle | 7 ++----- pkgs/cronet_http/example/android/build.gradle | 7 +++++++ .../android/gradle/wrapper/gradle-wrapper.properties | 2 +- pkgs/cronet_http/example/android/settings.gradle | 4 ++-- 5 files changed, 14 insertions(+), 10 deletions(-) diff --git a/pkgs/cronet_http/android/settings.gradle b/pkgs/cronet_http/android/settings.gradle index ba71a70180..01035a3093 100644 --- a/pkgs/cronet_http/android/settings.gradle +++ b/pkgs/cronet_http/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.1.0" apply false - id "org.jetbrains.kotlin.android" version "1.7.21" apply false + id "com.android.application" version '8.9.2' apply false + id "org.jetbrains.kotlin.android" version "2.1.0" apply false } include ":app" diff --git a/pkgs/cronet_http/example/android/app/build.gradle b/pkgs/cronet_http/example/android/app/build.gradle index df39877e6c..75fe02fc53 100644 --- a/pkgs/cronet_http/example/android/app/build.gradle +++ b/pkgs/cronet_http/example/android/app/build.gradle @@ -24,7 +24,7 @@ if (flutterVersionName == null) { android { compileSdkVersion flutter.compileSdkVersion - ndkVersion flutter.ndkVersion + ndkVersion = "27.0.12077973" namespace 'io.flutter.cronet_http_example' compileOptions { @@ -66,11 +66,8 @@ flutter { } dependencies { - // TODO(#1112): org.jetbrains.kotlin:kotlin-bom artifact purpose is to align kotlin stdlib and related code versions. - // This should be removed when https://github.com/flutter/flutter/issues/125062 is fixed. - implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0")) // ""com.google.android.gms:play-services-cronet" is only present so that // `jnigen` will work. Applications should not include this line. // The version should be synced with `pkgs/cronet_http/android/build.gradle`. - implementation "com.google.android.gms:play-services-cronet:18.0.1" + implementation "com.google.android.gms:play-services-cronet:18.1.0" } diff --git a/pkgs/cronet_http/example/android/build.gradle b/pkgs/cronet_http/example/android/build.gradle index 859ca48f18..43cfd9e6f1 100644 --- a/pkgs/cronet_http/example/android/build.gradle +++ b/pkgs/cronet_http/example/android/build.gradle @@ -6,6 +6,13 @@ subprojects { project.evaluationDependsOn(':app') } +allprojects { + repositories { + google() + mavenCentral() + } +} + tasks.register("clean", Delete) { delete rootProject.buildDir } diff --git a/pkgs/cronet_http/example/android/gradle/wrapper/gradle-wrapper.properties b/pkgs/cronet_http/example/android/gradle/wrapper/gradle-wrapper.properties index 7aeeb11c6e..9162f1008a 100644 --- a/pkgs/cronet_http/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/pkgs/cronet_http/example/android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip diff --git a/pkgs/cronet_http/example/android/settings.gradle b/pkgs/cronet_http/example/android/settings.gradle index b18e1a0225..8a1adcf269 100644 --- a/pkgs/cronet_http/example/android/settings.gradle +++ b/pkgs/cronet_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.6.0" apply false - id "org.jetbrains.kotlin.android" version "1.7.21" apply false + id "com.android.application" version '8.9.2' apply false + id "org.jetbrains.kotlin.android" version "2.1.0" apply false } include ":app" From 506e2c092f29591f0871895a4b4de77cab72c734 Mon Sep 17 00:00:00 2001 From: Jonathan Rudenberg Date: Tue, 22 Apr 2025 14:31:22 -0400 Subject: [PATCH 2/2] [cronet_http] Update bindings to jni/jnigen 0.14 --- pkgs/cronet_http/android/build.gradle | 4 +- .../cronet_http/UrlRequestCallbackProxy.kt | 40 +- pkgs/cronet_http/lib/src/cronet_client.dart | 88 +- .../cronet_http/lib/src/jni/jni_bindings.dart | 5217 ++++++++++------- pkgs/cronet_http/pubspec.yaml | 4 +- 5 files changed, 3119 insertions(+), 2234 deletions(-) diff --git a/pkgs/cronet_http/android/build.gradle b/pkgs/cronet_http/android/build.gradle index ded9b69e7c..0ab6d735c5 100644 --- a/pkgs/cronet_http/android/build.gradle +++ b/pkgs/cronet_http/android/build.gradle @@ -64,8 +64,8 @@ android { dependencies { if (dartDefines.cronetHttpNoPlay == 'true') { - implementation 'org.chromium.net:cronet-embedded:113.5672.61' + implementation 'org.chromium.net:cronet-embedded:119.6045.31' } else { - implementation "com.google.android.gms:play-services-cronet:18.0.1" + implementation "com.google.android.gms:play-services-cronet:18.1.0" } } diff --git a/pkgs/cronet_http/android/src/main/kotlin/io/flutter/plugins/cronet_http/UrlRequestCallbackProxy.kt b/pkgs/cronet_http/android/src/main/kotlin/io/flutter/plugins/cronet_http/UrlRequestCallbackProxy.kt index c16fb681e9..5d97379e50 100644 --- a/pkgs/cronet_http/android/src/main/kotlin/io/flutter/plugins/cronet_http/UrlRequestCallbackProxy.kt +++ b/pkgs/cronet_http/android/src/main/kotlin/io/flutter/plugins/cronet_http/UrlRequestCallbackProxy.kt @@ -23,54 +23,54 @@ import java.nio.ByteBuffer class UrlRequestCallbackProxy(val callback: UrlRequestCallbackInterface) : UrlRequest.Callback() { public interface UrlRequestCallbackInterface { fun onRedirectReceived( - request: UrlRequest, - info: UrlResponseInfo, - newLocationUrl: String + request: UrlRequest?, + info: UrlResponseInfo?, + newLocationUrl: String? ) - fun onResponseStarted(request: UrlRequest?, info: UrlResponseInfo) + fun onResponseStarted(request: UrlRequest?, info: UrlResponseInfo?) fun onReadCompleted( - request: UrlRequest, - info: UrlResponseInfo, - byteBuffer: ByteBuffer + request: UrlRequest?, + info: UrlResponseInfo?, + byteBuffer: ByteBuffer? ) - fun onSucceeded(request: UrlRequest, info: UrlResponseInfo?) + fun onSucceeded(request: UrlRequest?, info: UrlResponseInfo?) fun onFailed( - request: UrlRequest, + request: UrlRequest?, info: UrlResponseInfo?, - error: CronetException + error: CronetException? ) } override fun onRedirectReceived( - request: UrlRequest, - info: UrlResponseInfo, - newLocationUrl: String + request: UrlRequest?, + info: UrlResponseInfo?, + newLocationUrl: String? ) { callback.onRedirectReceived(request, info, newLocationUrl); } - override fun onResponseStarted(request: UrlRequest?, info: UrlResponseInfo) { + override fun onResponseStarted(request: UrlRequest?, info: UrlResponseInfo?) { callback.onResponseStarted(request, info); } override fun onReadCompleted( - request: UrlRequest, - info: UrlResponseInfo, - byteBuffer: ByteBuffer + request: UrlRequest?, + info: UrlResponseInfo?, + byteBuffer: ByteBuffer? ) { callback.onReadCompleted(request, info, byteBuffer); } - override fun onSucceeded(request: UrlRequest, info: UrlResponseInfo?) { + override fun onSucceeded(request: UrlRequest?, info: UrlResponseInfo?) { callback.onSucceeded(request, info); } override fun onFailed( - request: UrlRequest, + request: UrlRequest?, info: UrlResponseInfo?, - error: CronetException + error: CronetException? ) { callback.onFailed(request, info, error); } diff --git a/pkgs/cronet_http/lib/src/cronet_client.dart b/pkgs/cronet_http/lib/src/cronet_client.dart index 8341e1caa5..eb6b79a933 100644 --- a/pkgs/cronet_http/lib/src/cronet_client.dart +++ b/pkgs/cronet_http/lib/src/cronet_client.dart @@ -83,7 +83,7 @@ class CronetEngine { bool? enableQuic, String? storagePath, String? userAgent}) { - final builder = jb.CronetEngine_Builder( + final builder = jb.CronetEngine$Builder( JObject.fromReference(Jni.getCachedApplicationContext())); try { @@ -118,7 +118,7 @@ class CronetEngine { builder.setUserAgent(userAgent.toJString()); } - return CronetEngine._(builder.build()); + return CronetEngine._(builder.build()!); } on JniException catch (e) { // TODO: Decode this exception in a better way when // https://github.com/dart-lang/jnigen/issues/239 is fixed. @@ -141,12 +141,13 @@ class CronetEngine { } Map _cronetToClientHeaders( - JMap> cronetHeaders) => - cronetHeaders.map((key, value) => MapEntry( - key.toDartString(releaseOriginal: true).toLowerCase(), - value.join(','))); + JMap?>? cronetHeaders) => + cronetHeaders?.map((key, value) => MapEntry( + key!.toDartString(releaseOriginal: true).toLowerCase(), + value?.join(',') ?? '')) ?? + {}; -jb.UrlRequestCallbackProxy_UrlRequestCallbackInterface _urlRequestCallbacks( +jb.UrlRequestCallbackProxy$UrlRequestCallbackInterface _urlRequestCallbacks( BaseRequest request, Completer responseCompleter, HttpClientRequestProfile? profile) { @@ -156,12 +157,12 @@ jb.UrlRequestCallbackProxy_UrlRequestCallbackInterface _urlRequestCallbacks( // The order of callbacks generated by Cronet is documented here: // https://developer.android.com/guide/topics/connectivity/cronet/lifecycle - return jb.UrlRequestCallbackProxy_UrlRequestCallbackInterface.implement( - jb.$UrlRequestCallbackProxy_UrlRequestCallbackInterface( + return jb.UrlRequestCallbackProxy$UrlRequestCallbackInterface.implement( + jb.$UrlRequestCallbackProxy$UrlRequestCallbackInterface( onResponseStarted: (urlRequest, responseInfo) { responseStream = StreamController(); final responseHeaders = - _cronetToClientHeaders(responseInfo.getAllHeaders()); + _cronetToClientHeaders(responseInfo?.getAllHeaders()); int? contentLength; switch (responseHeaders['content-length']) { @@ -171,20 +172,21 @@ jb.UrlRequestCallbackProxy_UrlRequestCallbackInterface _urlRequestCallbacks( 'Invalid content-length header [$contentLengthHeader].', request.url, )); - urlRequest.cancel(); + urlRequest?.cancel(); return; case final contentLengthHeader?: contentLength = int.parse(contentLengthHeader); } responseCompleter.complete(_StreamedResponseWithUrl( responseStream!.stream, - responseInfo.getHttpStatusCode(), + responseInfo?.getHttpStatusCode() ?? 0, url: Uri.parse( - responseInfo.getUrl().toDartString(releaseOriginal: true)), + responseInfo?.getUrl()?.toDartString(releaseOriginal: true) ?? + request.url.toString()), contentLength: contentLength, reasonPhrase: responseInfo - .getHttpStatusText() - .toDartString(releaseOriginal: true), + ?.getHttpStatusText() + ?.toDartString(releaseOriginal: true), request: request, isRedirect: false, headers: responseHeaders, @@ -195,65 +197,68 @@ jb.UrlRequestCallbackProxy_UrlRequestCallbackInterface _urlRequestCallbacks( ?..contentLength = contentLength ..headersCommaValues = responseHeaders ..isRedirect = false - ..reasonPhrase = - responseInfo.getHttpStatusText().toDartString(releaseOriginal: true) + ..reasonPhrase = responseInfo + ?.getHttpStatusText() + ?.toDartString(releaseOriginal: true) ..startTime = DateTime.now() - ..statusCode = responseInfo.getHttpStatusCode(); + ..statusCode = responseInfo?.getHttpStatusCode() ?? 0; jByteBuffer = JByteBuffer.allocateDirect(_bufferSize); - urlRequest.read(jByteBuffer!); + urlRequest?.read(jByteBuffer!); }, onRedirectReceived: (urlRequest, responseInfo, newLocationUrl) { final responseHeaders = - _cronetToClientHeaders(responseInfo.getAllHeaders()); + _cronetToClientHeaders(responseInfo?.getAllHeaders()); if (!request.followRedirects) { - urlRequest.cancel(); + urlRequest?.cancel(); responseCompleter.complete(StreamedResponse( const Stream.empty(), // Cronet provides no body for redirects. - responseInfo.getHttpStatusCode(), + responseInfo?.getHttpStatusCode() ?? 0, contentLength: 0, reasonPhrase: responseInfo - .getHttpStatusText() - .toDartString(releaseOriginal: true), + ?.getHttpStatusText() + ?.toDartString(releaseOriginal: true), request: request, isRedirect: true, - headers: _cronetToClientHeaders(responseInfo.getAllHeaders()))); + headers: _cronetToClientHeaders(responseInfo?.getAllHeaders()))); profile?.responseData ?..headersCommaValues = responseHeaders ..isRedirect = true ..reasonPhrase = responseInfo - .getHttpStatusText() - .toDartString(releaseOriginal: true) + ?.getHttpStatusText() + ?.toDartString(releaseOriginal: true) ..startTime = DateTime.now() - ..statusCode = responseInfo.getHttpStatusCode(); + ..statusCode = responseInfo?.getHttpStatusCode() ?? 0; return; } ++numRedirects; if (numRedirects <= request.maxRedirects) { profile?.responseData.addRedirect(HttpProfileRedirectData( - statusCode: responseInfo.getHttpStatusCode(), + statusCode: responseInfo?.getHttpStatusCode() ?? 0, // This method is not correct for status codes 303 to 307. Cronet // does not seem to have a way to get the method so we'd have to // calculate it according to the rules in RFC-7231. method: 'GET', - location: newLocationUrl.toDartString(releaseOriginal: true))); - urlRequest.followRedirect(); + location: + newLocationUrl?.toDartString(releaseOriginal: true) ?? '')); + urlRequest?.followRedirect(); } else { - urlRequest.cancel(); + urlRequest?.cancel(); responseCompleter.completeError( ClientException('Redirect limit exceeded', request.url)); } }, onReadCompleted: (urlRequest, responseInfo, byteBuffer) { - byteBuffer.flip(); - final data = jByteBuffer!.asUint8List().sublist(0, byteBuffer.remaining); + byteBuffer?.flip(); + final data = + jByteBuffer!.asUint8List().sublist(0, byteBuffer?.remaining ?? 0); responseStream!.add(data); profile?.responseData.bodySink.add(data); - byteBuffer.clear(); - urlRequest.read(byteBuffer); + byteBuffer?.clear(); + urlRequest?.read(byteBuffer!); }, onSucceeded: (urlRequest, responseInfo) { responseStream!.sink.close(); @@ -262,7 +267,8 @@ jb.UrlRequestCallbackProxy_UrlRequestCallbackInterface _urlRequestCallbacks( }, onFailed: (urlRequest, responseInfo, cronetException) { final error = ClientException( - 'Cronet exception: ${cronetException.toString()}', request.url); + 'Cronet exception: ${cronetException?.toString() ?? "unknown error"}', + request.url); if (responseStream == null) { responseCompleter.completeError(error); } else { @@ -380,7 +386,7 @@ class CronetClient extends BaseClient { jb.UrlRequestCallbackProxy( _urlRequestCallbacks(request, responseCompleter, profile)), _executor, - )..setHttpMethod(request.method.toJString()); + )?..setHttpMethod(request.method.toJString()); var headers = request.headers; if (body.isNotEmpty && @@ -389,7 +395,7 @@ class CronetClient extends BaseClient { // 'Content-Type' header. headers = {...headers, 'content-type': 'application/octet-stream'}; } - headers.forEach((k, v) => builder.addHeader(k.toJString(), v.toJString())); + headers.forEach((k, v) => builder?.addHeader(k.toJString(), v.toJString())); if (body.isNotEmpty) { final JByteBuffer data; @@ -406,10 +412,10 @@ class CronetClient extends BaseClient { rethrow; } - builder.setUploadDataProvider( + builder?.setUploadDataProvider( jb.UploadDataProviders.create$2(data), _executor); } - builder.build().start(); + builder?.build()?.start(); return responseCompleter.future; } } diff --git a/pkgs/cronet_http/lib/src/jni/jni_bindings.dart b/pkgs/cronet_http/lib/src/jni/jni_bindings.dart index 9f04460e60..14175c4f44 100644 --- a/pkgs/cronet_http/lib/src/jni/jni_bindings.dart +++ b/pkgs/cronet_http/lib/src/jni/jni_bindings.dart @@ -20,6 +20,7 @@ // ignore_for_file: prefer_double_quotes // ignore_for_file: unintended_html_in_doc_comment // ignore_for_file: unnecessary_cast +// ignore_for_file: unnecessary_non_null_assertion // ignore_for_file: unnecessary_parenthesis // ignore_for_file: unused_element // ignore_for_file: unused_field @@ -29,67 +30,73 @@ // ignore_for_file: use_super_parameters import 'dart:core' show Object, String, bool, double, int; -import 'dart:core' as _$core; +import 'dart:core' as core$_; -import 'package:jni/_internal.dart' as _$jni; -import 'package:jni/jni.dart' as _$jni; +import 'package:jni/_internal.dart' as jni$_; +import 'package:jni/jni.dart' as jni$_; /// from: `io.flutter.plugins.cronet_http.UrlRequestCallbackProxy$UrlRequestCallbackInterface` -class UrlRequestCallbackProxy_UrlRequestCallbackInterface - extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType +class UrlRequestCallbackProxy$UrlRequestCallbackInterface + extends jni$_.JObject { + @jni$_.internal + @core$_.override + final jni$_.JObjType $type; - @_$jni.internal - UrlRequestCallbackProxy_UrlRequestCallbackInterface.fromReference( - _$jni.JReference reference, + @jni$_.internal + UrlRequestCallbackProxy$UrlRequestCallbackInterface.fromReference( + jni$_.JReference reference, ) : $type = type, super.fromReference(reference); - static final _class = _$jni.JClass.forName( + static final _class = jni$_.JClass.forName( r'io/flutter/plugins/cronet_http/UrlRequestCallbackProxy$UrlRequestCallbackInterface'); /// The type which includes information such as the signature of this class. + static const nullableType = + $UrlRequestCallbackProxy$UrlRequestCallbackInterface$NullableType(); static const type = - $UrlRequestCallbackProxy_UrlRequestCallbackInterface$Type(); + $UrlRequestCallbackProxy$UrlRequestCallbackInterface$Type(); static final _id_onRedirectReceived = _class.instanceMethodId( r'onRedirectReceived', r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/lang/String;)V', ); - static final _onRedirectReceived = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _onRedirectReceived = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer )>)>>('globalEnv_CallVoidMethod') .asFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer)>(); /// from: `public abstract void onRedirectReceived(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, java.lang.String string)` void onRedirectReceived( - UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, - _$jni.JString string, + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, + jni$_.JString? string, ) { + final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; + final _$urlResponseInfo = + urlResponseInfo?.reference ?? jni$_.jNullReference; + final _$string = string?.reference ?? jni$_.jNullReference; _onRedirectReceived( reference.pointer, - _id_onRedirectReceived as _$jni.JMethodIDPtr, - urlRequest.reference.pointer, - urlResponseInfo.reference.pointer, - string.reference.pointer) + _id_onRedirectReceived as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + _$string.pointer) .check(); } @@ -98,33 +105,36 @@ class UrlRequestCallbackProxy_UrlRequestCallbackInterface r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V', ); - static final _onResponseStarted = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _onResponseStarted = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer )>)>>('globalEnv_CallVoidMethod') .asFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); /// from: `public abstract void onResponseStarted(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo)` void onResponseStarted( - UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, ) { + final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; + final _$urlResponseInfo = + urlResponseInfo?.reference ?? jni$_.jNullReference; _onResponseStarted( reference.pointer, - _id_onResponseStarted as _$jni.JMethodIDPtr, - urlRequest.reference.pointer, - urlResponseInfo.reference.pointer) + _id_onResponseStarted as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer) .check(); } @@ -133,37 +143,41 @@ class UrlRequestCallbackProxy_UrlRequestCallbackInterface r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/nio/ByteBuffer;)V', ); - static final _onReadCompleted = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _onReadCompleted = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer )>)>>('globalEnv_CallVoidMethod') .asFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer)>(); /// from: `public abstract void onReadCompleted(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, java.nio.ByteBuffer byteBuffer)` void onReadCompleted( - UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, - _$jni.JByteBuffer byteBuffer, + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, + jni$_.JByteBuffer? byteBuffer, ) { + final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; + final _$urlResponseInfo = + urlResponseInfo?.reference ?? jni$_.jNullReference; + final _$byteBuffer = byteBuffer?.reference ?? jni$_.jNullReference; _onReadCompleted( reference.pointer, - _id_onReadCompleted as _$jni.JMethodIDPtr, - urlRequest.reference.pointer, - urlResponseInfo.reference.pointer, - byteBuffer.reference.pointer) + _id_onReadCompleted as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + _$byteBuffer.pointer) .check(); } @@ -172,30 +186,33 @@ class UrlRequestCallbackProxy_UrlRequestCallbackInterface r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V', ); - static final _onSucceeded = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _onSucceeded = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer )>)>>('globalEnv_CallVoidMethod') .asFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); /// from: `public abstract void onSucceeded(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo)` void onSucceeded( - UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, ) { - _onSucceeded(reference.pointer, _id_onSucceeded as _$jni.JMethodIDPtr, - urlRequest.reference.pointer, urlResponseInfo.reference.pointer) + final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; + final _$urlResponseInfo = + urlResponseInfo?.reference ?? jni$_.jNullReference; + _onSucceeded(reference.pointer, _id_onSucceeded as jni$_.JMethodIDPtr, + _$urlRequest.pointer, _$urlResponseInfo.pointer) .check(); } @@ -204,52 +221,57 @@ class UrlRequestCallbackProxy_UrlRequestCallbackInterface r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Lorg/chromium/net/CronetException;)V', ); - static final _onFailed = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _onFailed = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer )>)>>('globalEnv_CallVoidMethod') .asFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer)>(); /// from: `public abstract void onFailed(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, org.chromium.net.CronetException cronetException)` void onFailed( - UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, - CronetException cronetException, + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, + CronetException? cronetException, ) { + final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; + final _$urlResponseInfo = + urlResponseInfo?.reference ?? jni$_.jNullReference; + final _$cronetException = + cronetException?.reference ?? jni$_.jNullReference; _onFailed( reference.pointer, - _id_onFailed as _$jni.JMethodIDPtr, - urlRequest.reference.pointer, - urlResponseInfo.reference.pointer, - cronetException.reference.pointer) + _id_onFailed as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + _$cronetException.pointer) .check(); } /// Maps a specific port to the implemented interface. - static final _$core - .Map + static final core$_ + .Map _$impls = {}; - static _$jni.JObjectPtr _$invoke( + static jni$_.JObjectPtr _$invoke( int port, - _$jni.JObjectPtr descriptor, - _$jni.JObjectPtr args, + jni$_.JObjectPtr descriptor, + jni$_.JObjectPtr args, ) { return _$invokeMethod( port, - _$jni.MethodInvocation.fromAddresses( + jni$_.MethodInvocation.fromAddresses( 0, descriptor.address, args.address, @@ -257,15 +279,15 @@ class UrlRequestCallbackProxy_UrlRequestCallbackInterface ); } - static final _$jni.Pointer< - _$jni.NativeFunction< - _$jni.JObjectPtr Function( - _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> - _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); + static final jni$_.Pointer< + jni$_.NativeFunction< + jni$_.JObjectPtr Function( + jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); - static _$jni.Pointer<_$jni.Void> _$invokeMethod( + static jni$_.Pointer _$invokeMethod( int $p, - _$jni.MethodInvocation $i, + jni$_.MethodInvocation $i, ) { try { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); @@ -273,66 +295,66 @@ class UrlRequestCallbackProxy_UrlRequestCallbackInterface if ($d == r'onRedirectReceived(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/lang/String;)V') { _$impls[$p]!.onRedirectReceived( - $a[0].as(const $UrlRequest$Type(), releaseOriginal: true), - $a[1].as(const $UrlResponseInfo$Type(), releaseOriginal: true), - $a[2].as(const _$jni.JStringType(), releaseOriginal: true), + $a![0]?.as(const $UrlRequest$Type(), releaseOriginal: true), + $a![1]?.as(const $UrlResponseInfo$Type(), releaseOriginal: true), + $a![2]?.as(const jni$_.JStringType(), releaseOriginal: true), ); - return _$jni.nullptr; + return jni$_.nullptr; } if ($d == r'onResponseStarted(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V') { _$impls[$p]!.onResponseStarted( - $a[0].as(const $UrlRequest$Type(), releaseOriginal: true), - $a[1].as(const $UrlResponseInfo$Type(), releaseOriginal: true), + $a![0]?.as(const $UrlRequest$Type(), releaseOriginal: true), + $a![1]?.as(const $UrlResponseInfo$Type(), releaseOriginal: true), ); - return _$jni.nullptr; + return jni$_.nullptr; } if ($d == r'onReadCompleted(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/nio/ByteBuffer;)V') { _$impls[$p]!.onReadCompleted( - $a[0].as(const $UrlRequest$Type(), releaseOriginal: true), - $a[1].as(const $UrlResponseInfo$Type(), releaseOriginal: true), - $a[2].as(const _$jni.JByteBufferType(), releaseOriginal: true), + $a![0]?.as(const $UrlRequest$Type(), releaseOriginal: true), + $a![1]?.as(const $UrlResponseInfo$Type(), releaseOriginal: true), + $a![2]?.as(const jni$_.JByteBufferType(), releaseOriginal: true), ); - return _$jni.nullptr; + return jni$_.nullptr; } if ($d == r'onSucceeded(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V') { _$impls[$p]!.onSucceeded( - $a[0].as(const $UrlRequest$Type(), releaseOriginal: true), - $a[1].as(const $UrlResponseInfo$Type(), releaseOriginal: true), + $a![0]?.as(const $UrlRequest$Type(), releaseOriginal: true), + $a![1]?.as(const $UrlResponseInfo$Type(), releaseOriginal: true), ); - return _$jni.nullptr; + return jni$_.nullptr; } if ($d == r'onFailed(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Lorg/chromium/net/CronetException;)V') { _$impls[$p]!.onFailed( - $a[0].as(const $UrlRequest$Type(), releaseOriginal: true), - $a[1].as(const $UrlResponseInfo$Type(), releaseOriginal: true), - $a[2].as(const $CronetException$Type(), releaseOriginal: true), + $a![0]?.as(const $UrlRequest$Type(), releaseOriginal: true), + $a![1]?.as(const $UrlResponseInfo$Type(), releaseOriginal: true), + $a![2]?.as(const $CronetException$Type(), releaseOriginal: true), ); - return _$jni.nullptr; + return jni$_.nullptr; } } catch (e) { - return _$jni.ProtectedJniExtensions.newDartException(e); + return jni$_.ProtectedJniExtensions.newDartException(e); } - return _$jni.nullptr; + return jni$_.nullptr; } static void implementIn( - _$jni.JImplementer implementer, - $UrlRequestCallbackProxy_UrlRequestCallbackInterface $impl, + jni$_.JImplementer implementer, + $UrlRequestCallbackProxy$UrlRequestCallbackInterface $impl, ) { - late final _$jni.RawReceivePort $p; - $p = _$jni.RawReceivePort(($m) { + 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 $i = jni$_.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); - _$jni.ProtectedJniExtensions.returnResult($i.result, $r); + jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( r'io.flutter.plugins.cronet_http.UrlRequestCallbackProxy$UrlRequestCallbackInterface', @@ -355,78 +377,78 @@ class UrlRequestCallbackProxy_UrlRequestCallbackInterface _$impls[$a] = $impl; } - factory UrlRequestCallbackProxy_UrlRequestCallbackInterface.implement( - $UrlRequestCallbackProxy_UrlRequestCallbackInterface $impl, + factory UrlRequestCallbackProxy$UrlRequestCallbackInterface.implement( + $UrlRequestCallbackProxy$UrlRequestCallbackInterface $impl, ) { - final $i = _$jni.JImplementer(); + final $i = jni$_.JImplementer(); implementIn($i, $impl); - return UrlRequestCallbackProxy_UrlRequestCallbackInterface.fromReference( + return UrlRequestCallbackProxy$UrlRequestCallbackInterface.fromReference( $i.implementReference(), ); } } -abstract mixin class $UrlRequestCallbackProxy_UrlRequestCallbackInterface { - factory $UrlRequestCallbackProxy_UrlRequestCallbackInterface({ - required void Function(UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, _$jni.JString string) +abstract base mixin class $UrlRequestCallbackProxy$UrlRequestCallbackInterface { + factory $UrlRequestCallbackProxy$UrlRequestCallbackInterface({ + required void Function(UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, jni$_.JString? string) onRedirectReceived, bool onRedirectReceived$async, required void Function( - UrlRequest urlRequest, UrlResponseInfo urlResponseInfo) + UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo) onResponseStarted, bool onResponseStarted$async, - required void Function(UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, _$jni.JByteBuffer byteBuffer) + required void Function(UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, jni$_.JByteBuffer? byteBuffer) onReadCompleted, bool onReadCompleted$async, required void Function( - UrlRequest urlRequest, UrlResponseInfo urlResponseInfo) + UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo) onSucceeded, bool onSucceeded$async, - required void Function(UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, CronetException cronetException) + required void Function(UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, CronetException? cronetException) onFailed, bool onFailed$async, - }) = _$UrlRequestCallbackProxy_UrlRequestCallbackInterface; + }) = _$UrlRequestCallbackProxy$UrlRequestCallbackInterface; - void onRedirectReceived(UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, _$jni.JString string); + void onRedirectReceived(UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, jni$_.JString? string); bool get onRedirectReceived$async => false; void onResponseStarted( - UrlRequest urlRequest, UrlResponseInfo urlResponseInfo); + UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo); bool get onResponseStarted$async => false; - void onReadCompleted(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - _$jni.JByteBuffer byteBuffer); + void onReadCompleted(UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo, + jni$_.JByteBuffer? byteBuffer); bool get onReadCompleted$async => false; - void onSucceeded(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo); + void onSucceeded(UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo); bool get onSucceeded$async => false; - void onFailed(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - CronetException cronetException); + void onFailed(UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo, + CronetException? cronetException); bool get onFailed$async => false; } -class _$UrlRequestCallbackProxy_UrlRequestCallbackInterface - implements $UrlRequestCallbackProxy_UrlRequestCallbackInterface { - _$UrlRequestCallbackProxy_UrlRequestCallbackInterface({ - required void Function(UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, _$jni.JString string) +final class _$UrlRequestCallbackProxy$UrlRequestCallbackInterface + with $UrlRequestCallbackProxy$UrlRequestCallbackInterface { + _$UrlRequestCallbackProxy$UrlRequestCallbackInterface({ + required void Function(UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, jni$_.JString? string) onRedirectReceived, this.onRedirectReceived$async = false, required void Function( - UrlRequest urlRequest, UrlResponseInfo urlResponseInfo) + UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo) onResponseStarted, this.onResponseStarted$async = false, - required void Function(UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, _$jni.JByteBuffer byteBuffer) + required void Function(UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, jni$_.JByteBuffer? byteBuffer) onReadCompleted, this.onReadCompleted$async = false, required void Function( - UrlRequest urlRequest, UrlResponseInfo urlResponseInfo) + UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo) onSucceeded, this.onSucceeded$async = false, - required void Function(UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, CronetException cronetException) + required void Function(UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, CronetException? cronetException) onFailed, this.onFailed$async = false, }) : _onRedirectReceived = onRedirectReceived, @@ -435,127 +457,182 @@ class _$UrlRequestCallbackProxy_UrlRequestCallbackInterface _onSucceeded = onSucceeded, _onFailed = onFailed; - final void Function(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - _$jni.JString string) _onRedirectReceived; + final void Function(UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo, + jni$_.JString? string) _onRedirectReceived; final bool onRedirectReceived$async; - final void Function(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo) + final void Function(UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo) _onResponseStarted; final bool onResponseStarted$async; - final void Function(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - _$jni.JByteBuffer byteBuffer) _onReadCompleted; + final void Function(UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo, + jni$_.JByteBuffer? byteBuffer) _onReadCompleted; final bool onReadCompleted$async; - final void Function(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo) + final void Function(UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo) _onSucceeded; final bool onSucceeded$async; - final void Function(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - CronetException cronetException) _onFailed; + final void Function(UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo, + CronetException? cronetException) _onFailed; final bool onFailed$async; - void onRedirectReceived(UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, _$jni.JString string) { + void onRedirectReceived(UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, jni$_.JString? string) { return _onRedirectReceived(urlRequest, urlResponseInfo, string); } void onResponseStarted( - UrlRequest urlRequest, UrlResponseInfo urlResponseInfo) { + UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo) { return _onResponseStarted(urlRequest, urlResponseInfo); } - void onReadCompleted(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - _$jni.JByteBuffer byteBuffer) { + void onReadCompleted(UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo, + jni$_.JByteBuffer? byteBuffer) { return _onReadCompleted(urlRequest, urlResponseInfo, byteBuffer); } - void onSucceeded(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo) { + void onSucceeded(UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo) { return _onSucceeded(urlRequest, urlResponseInfo); } - void onFailed(UrlRequest urlRequest, UrlResponseInfo urlResponseInfo, - CronetException cronetException) { + void onFailed(UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo, + CronetException? cronetException) { return _onFailed(urlRequest, urlResponseInfo, cronetException); } } -final class $UrlRequestCallbackProxy_UrlRequestCallbackInterface$Type - extends _$jni - .JObjType { - @_$jni.internal - const $UrlRequestCallbackProxy_UrlRequestCallbackInterface$Type(); +final class $UrlRequestCallbackProxy$UrlRequestCallbackInterface$NullableType + extends jni$_ + .JObjType { + @jni$_.internal + const $UrlRequestCallbackProxy$UrlRequestCallbackInterface$NullableType(); - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override String get signature => r'Lio/flutter/plugins/cronet_http/UrlRequestCallbackProxy$UrlRequestCallbackInterface;'; - @_$jni.internal - @_$core.override - UrlRequestCallbackProxy_UrlRequestCallbackInterface fromReference( - _$jni.JReference reference) => - UrlRequestCallbackProxy_UrlRequestCallbackInterface.fromReference( - reference); + @jni$_.internal + @core$_.override + UrlRequestCallbackProxy$UrlRequestCallbackInterface? fromReference( + jni$_.JReference reference) => + reference.isNull + ? null + : UrlRequestCallbackProxy$UrlRequestCallbackInterface.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 => + ($UrlRequestCallbackProxy$UrlRequestCallbackInterface$NullableType) + .hashCode; + + @core$_.override + bool operator ==(Object other) { + return other.runtimeType == + ($UrlRequestCallbackProxy$UrlRequestCallbackInterface$NullableType) && + other + is $UrlRequestCallbackProxy$UrlRequestCallbackInterface$NullableType; + } +} + +final class $UrlRequestCallbackProxy$UrlRequestCallbackInterface$Type + extends jni$_ + .JObjType { + @jni$_.internal + const $UrlRequestCallbackProxy$UrlRequestCallbackInterface$Type(); - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + @jni$_.internal + @core$_.override + String get signature => + r'Lio/flutter/plugins/cronet_http/UrlRequestCallbackProxy$UrlRequestCallbackInterface;'; - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override + UrlRequestCallbackProxy$UrlRequestCallbackInterface fromReference( + jni$_.JReference reference) => + UrlRequestCallbackProxy$UrlRequestCallbackInterface.fromReference( + reference, + ); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + + @jni$_.internal + @core$_.override + jni$_.JObjType + get nullableType => + const $UrlRequestCallbackProxy$UrlRequestCallbackInterface$NullableType(); + + @jni$_.internal + @core$_.override final superCount = 1; - @_$core.override + @core$_.override int get hashCode => - ($UrlRequestCallbackProxy_UrlRequestCallbackInterface$Type).hashCode; + ($UrlRequestCallbackProxy$UrlRequestCallbackInterface$Type).hashCode; - @_$core.override + @core$_.override bool operator ==(Object other) { return other.runtimeType == - ($UrlRequestCallbackProxy_UrlRequestCallbackInterface$Type) && - other is $UrlRequestCallbackProxy_UrlRequestCallbackInterface$Type; + ($UrlRequestCallbackProxy$UrlRequestCallbackInterface$Type) && + other is $UrlRequestCallbackProxy$UrlRequestCallbackInterface$Type; } } /// from: `io.flutter.plugins.cronet_http.UrlRequestCallbackProxy` -class UrlRequestCallbackProxy extends UrlRequest_Callback { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; +class UrlRequestCallbackProxy extends UrlRequest$Callback { + @jni$_.internal + @core$_.override + final jni$_.JObjType $type; - @_$jni.internal + @jni$_.internal UrlRequestCallbackProxy.fromReference( - _$jni.JReference reference, + jni$_.JReference reference, ) : $type = type, super.fromReference(reference); - static final _class = _$jni.JClass.forName( + static final _class = jni$_.JClass.forName( r'io/flutter/plugins/cronet_http/UrlRequestCallbackProxy'); /// The type which includes information such as the signature of this class. + static const nullableType = $UrlRequestCallbackProxy$NullableType(); static const type = $UrlRequestCallbackProxy$Type(); static final _id_new$ = _class.constructorId( r'(Lio/flutter/plugins/cronet_http/UrlRequestCallbackProxy$UrlRequestCallbackInterface;)V', ); - static final _new$ = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void (io.flutter.plugins.cronet_http.UrlRequestCallbackProxy$UrlRequestCallbackInterface urlRequestCallbackInterface)` /// The returned object must be released after use, by calling the [release] method. factory UrlRequestCallbackProxy( - UrlRequestCallbackProxy_UrlRequestCallbackInterface + UrlRequestCallbackProxy$UrlRequestCallbackInterface urlRequestCallbackInterface, ) { + final _$urlRequestCallbackInterface = urlRequestCallbackInterface.reference; return UrlRequestCallbackProxy.fromReference(_new$( _class.reference.pointer, - _id_new$ as _$jni.JMethodIDPtr, - urlRequestCallbackInterface.reference.pointer) + _id_new$ as jni$_.JMethodIDPtr, + _$urlRequestCallbackInterface.pointer) .reference); } @@ -564,25 +641,25 @@ class UrlRequestCallbackProxy extends UrlRequest_Callback { r'()Lio/flutter/plugins/cronet_http/UrlRequestCallbackProxy$UrlRequestCallbackInterface;', ); - static final _getCallback = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getCallback = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public final io.flutter.plugins.cronet_http.UrlRequestCallbackProxy$UrlRequestCallbackInterface getCallback()` /// The returned object must be released after use, by calling the [release] method. - UrlRequestCallbackProxy_UrlRequestCallbackInterface getCallback() { + UrlRequestCallbackProxy$UrlRequestCallbackInterface getCallback() { return _getCallback( - reference.pointer, _id_getCallback as _$jni.JMethodIDPtr) - .object( - const $UrlRequestCallbackProxy_UrlRequestCallbackInterface$Type()); + reference.pointer, _id_getCallback as jni$_.JMethodIDPtr) + .object( + const $UrlRequestCallbackProxy$UrlRequestCallbackInterface$Type()); } static final _id_onRedirectReceived = _class.instanceMethodId( @@ -590,37 +667,41 @@ class UrlRequestCallbackProxy extends UrlRequest_Callback { r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/lang/String;)V', ); - static final _onRedirectReceived = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _onRedirectReceived = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer )>)>>('globalEnv_CallVoidMethod') .asFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer)>(); /// from: `public void onRedirectReceived(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, java.lang.String string)` void onRedirectReceived( - UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, - _$jni.JString string, + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, + jni$_.JString? string, ) { + final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; + final _$urlResponseInfo = + urlResponseInfo?.reference ?? jni$_.jNullReference; + final _$string = string?.reference ?? jni$_.jNullReference; _onRedirectReceived( reference.pointer, - _id_onRedirectReceived as _$jni.JMethodIDPtr, - urlRequest.reference.pointer, - urlResponseInfo.reference.pointer, - string.reference.pointer) + _id_onRedirectReceived as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + _$string.pointer) .check(); } @@ -629,33 +710,36 @@ class UrlRequestCallbackProxy extends UrlRequest_Callback { r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V', ); - static final _onResponseStarted = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _onResponseStarted = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer )>)>>('globalEnv_CallVoidMethod') .asFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); /// from: `public void onResponseStarted(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo)` void onResponseStarted( - UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, ) { + final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; + final _$urlResponseInfo = + urlResponseInfo?.reference ?? jni$_.jNullReference; _onResponseStarted( reference.pointer, - _id_onResponseStarted as _$jni.JMethodIDPtr, - urlRequest.reference.pointer, - urlResponseInfo.reference.pointer) + _id_onResponseStarted as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer) .check(); } @@ -664,37 +748,41 @@ class UrlRequestCallbackProxy extends UrlRequest_Callback { r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/nio/ByteBuffer;)V', ); - static final _onReadCompleted = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _onReadCompleted = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer )>)>>('globalEnv_CallVoidMethod') .asFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer)>(); /// from: `public void onReadCompleted(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, java.nio.ByteBuffer byteBuffer)` void onReadCompleted( - UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, - _$jni.JByteBuffer byteBuffer, + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, + jni$_.JByteBuffer? byteBuffer, ) { + final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; + final _$urlResponseInfo = + urlResponseInfo?.reference ?? jni$_.jNullReference; + final _$byteBuffer = byteBuffer?.reference ?? jni$_.jNullReference; _onReadCompleted( reference.pointer, - _id_onReadCompleted as _$jni.JMethodIDPtr, - urlRequest.reference.pointer, - urlResponseInfo.reference.pointer, - byteBuffer.reference.pointer) + _id_onReadCompleted as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + _$byteBuffer.pointer) .check(); } @@ -703,30 +791,33 @@ class UrlRequestCallbackProxy extends UrlRequest_Callback { r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V', ); - static final _onSucceeded = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _onSucceeded = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer )>)>>('globalEnv_CallVoidMethod') .asFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); /// from: `public void onSucceeded(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo)` void onSucceeded( - UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, ) { - _onSucceeded(reference.pointer, _id_onSucceeded as _$jni.JMethodIDPtr, - urlRequest.reference.pointer, urlResponseInfo.reference.pointer) + final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; + final _$urlResponseInfo = + urlResponseInfo?.reference ?? jni$_.jNullReference; + _onSucceeded(reference.pointer, _id_onSucceeded as jni$_.JMethodIDPtr, + _$urlRequest.pointer, _$urlResponseInfo.pointer) .check(); } @@ -735,68 +826,119 @@ class UrlRequestCallbackProxy extends UrlRequest_Callback { r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Lorg/chromium/net/CronetException;)V', ); - static final _onFailed = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _onFailed = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer )>)>>('globalEnv_CallVoidMethod') .asFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer)>(); /// from: `public void onFailed(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, org.chromium.net.CronetException cronetException)` void onFailed( - UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, - CronetException cronetException, + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, + CronetException? cronetException, ) { + final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; + final _$urlResponseInfo = + urlResponseInfo?.reference ?? jni$_.jNullReference; + final _$cronetException = + cronetException?.reference ?? jni$_.jNullReference; _onFailed( reference.pointer, - _id_onFailed as _$jni.JMethodIDPtr, - urlRequest.reference.pointer, - urlResponseInfo.reference.pointer, - cronetException.reference.pointer) + _id_onFailed as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + _$cronetException.pointer) .check(); } } -final class $UrlRequestCallbackProxy$Type - extends _$jni.JObjType { - @_$jni.internal - const $UrlRequestCallbackProxy$Type(); +final class $UrlRequestCallbackProxy$NullableType + extends jni$_.JObjType { + @jni$_.internal + const $UrlRequestCallbackProxy$NullableType(); - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override String get signature => r'Lio/flutter/plugins/cronet_http/UrlRequestCallbackProxy;'; - @_$jni.internal - @_$core.override - UrlRequestCallbackProxy fromReference(_$jni.JReference reference) => - UrlRequestCallbackProxy.fromReference(reference); + @jni$_.internal + @core$_.override + UrlRequestCallbackProxy? fromReference(jni$_.JReference reference) => + reference.isNull + ? null + : UrlRequestCallbackProxy.fromReference( + reference, + ); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const $UrlRequest$Callback$NullableType(); + + @jni$_.internal + @core$_.override + jni$_.JObjType get nullableType => this; + + @jni$_.internal + @core$_.override + final superCount = 2; + + @core$_.override + int get hashCode => ($UrlRequestCallbackProxy$NullableType).hashCode; - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const $UrlRequest_Callback$Type(); + @core$_.override + bool operator ==(Object other) { + return other.runtimeType == ($UrlRequestCallbackProxy$NullableType) && + other is $UrlRequestCallbackProxy$NullableType; + } +} + +final class $UrlRequestCallbackProxy$Type + extends jni$_.JObjType { + @jni$_.internal + const $UrlRequestCallbackProxy$Type(); + + @jni$_.internal + @core$_.override + String get signature => + r'Lio/flutter/plugins/cronet_http/UrlRequestCallbackProxy;'; - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override + UrlRequestCallbackProxy fromReference(jni$_.JReference reference) => + UrlRequestCallbackProxy.fromReference( + reference, + ); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const $UrlRequest$Callback$NullableType(); + + @jni$_.internal + @core$_.override + jni$_.JObjType get nullableType => + const $UrlRequestCallbackProxy$NullableType(); + + @jni$_.internal + @core$_.override final superCount = 2; - @_$core.override + @core$_.override int get hashCode => ($UrlRequestCallbackProxy$Type).hashCode; - @_$core.override + @core$_.override bool operator ==(Object other) { return other.runtimeType == ($UrlRequestCallbackProxy$Type) && other is $UrlRequestCallbackProxy$Type; @@ -804,61 +946,65 @@ final class $UrlRequestCallbackProxy$Type } /// from: `java.net.URL` -class URL extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; +class URL extends jni$_.JObject { + @jni$_.internal + @core$_.override + final jni$_.JObjType $type; - @_$jni.internal + @jni$_.internal URL.fromReference( - _$jni.JReference reference, + jni$_.JReference reference, ) : $type = type, super.fromReference(reference); - static final _class = _$jni.JClass.forName(r'java/net/URL'); + static final _class = jni$_.JClass.forName(r'java/net/URL'); /// The type which includes information such as the signature of this class. + static const nullableType = $URL$NullableType(); static const type = $URL$Type(); static final _id_new$ = _class.constructorId( r'(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)V', ); - static final _new$ = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _new$ = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Int32, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer )>)>>('globalEnv_NewObject') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, int, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.Pointer)>(); /// from: `public void (java.lang.String string, java.lang.String string1, int i, java.lang.String string2)` /// The returned object must be released after use, by calling the [release] method. factory URL( - _$jni.JString string, - _$jni.JString string1, + jni$_.JString? string, + jni$_.JString? string1, int i, - _$jni.JString string2, + jni$_.JString? string2, ) { + final _$string = string?.reference ?? jni$_.jNullReference; + final _$string1 = string1?.reference ?? jni$_.jNullReference; + final _$string2 = string2?.reference ?? jni$_.jNullReference; return URL.fromReference(_new$( _class.reference.pointer, - _id_new$ as _$jni.JMethodIDPtr, - string.reference.pointer, - string1.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, i, - string2.reference.pointer) + _$string2.pointer) .reference); } @@ -866,38 +1012,41 @@ class URL extends _$jni.JObject { r'(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V', ); - static final _new$1 = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _new$1 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer )>)>>('globalEnv_NewObject') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer)>(); /// from: `public void (java.lang.String string, java.lang.String string1, java.lang.String string2)` /// The returned object must be released after use, by calling the [release] method. factory URL.new$1( - _$jni.JString string, - _$jni.JString string1, - _$jni.JString string2, + jni$_.JString? string, + jni$_.JString? string1, + jni$_.JString? string2, ) { + final _$string = string?.reference ?? jni$_.jNullReference; + final _$string1 = string1?.reference ?? jni$_.jNullReference; + final _$string2 = string2?.reference ?? jni$_.jNullReference; return URL.fromReference(_new$1( _class.reference.pointer, - _id_new$1 as _$jni.JMethodIDPtr, - string.reference.pointer, - string1.reference.pointer, - string2.reference.pointer) + _id_new$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + _$string2.pointer) .reference); } @@ -905,46 +1054,51 @@ class URL extends _$jni.JObject { r'(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/net/URLStreamHandler;)V', ); - static final _new$2 = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _new$2 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Int32, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer, + jni$_.Pointer )>)>>('globalEnv_NewObject') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, int, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.Pointer, + jni$_.Pointer)>(); /// from: `public void (java.lang.String string, java.lang.String string1, int i, java.lang.String string2, java.net.URLStreamHandler uRLStreamHandler)` /// The returned object must be released after use, by calling the [release] method. factory URL.new$2( - _$jni.JString string, - _$jni.JString string1, + jni$_.JString? string, + jni$_.JString? string1, int i, - _$jni.JString string2, - _$jni.JObject uRLStreamHandler, + jni$_.JString? string2, + jni$_.JObject? uRLStreamHandler, ) { + 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 URL.fromReference(_new$2( _class.reference.pointer, - _id_new$2 as _$jni.JMethodIDPtr, - string.reference.pointer, - string1.reference.pointer, + _id_new$2 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, i, - string2.reference.pointer, - uRLStreamHandler.reference.pointer) + _$string2.pointer, + _$uRLStreamHandler.pointer) .reference); } @@ -952,24 +1106,25 @@ class URL extends _$jni.JObject { r'(Ljava/lang/String;)V', ); - static final _new$3 = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + static final _new$3 = 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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void (java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. factory URL.new$3( - _$jni.JString string, + jni$_.JString? string, ) { + final _$string = string?.reference ?? jni$_.jNullReference; return URL.fromReference(_new$3(_class.reference.pointer, - _id_new$3 as _$jni.JMethodIDPtr, string.reference.pointer) + _id_new$3 as jni$_.JMethodIDPtr, _$string.pointer) .reference); } @@ -977,34 +1132,33 @@ class URL extends _$jni.JObject { r'(Ljava/net/URL;Ljava/lang/String;)V', ); - static final _new$4 = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _new$4 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer )>)>>('globalEnv_NewObject') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); /// from: `public void (java.net.URL uRL, java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. factory URL.new$4( - URL uRL, - _$jni.JString string, + URL? uRL, + jni$_.JString? string, ) { - return URL.fromReference(_new$4( - _class.reference.pointer, - _id_new$4 as _$jni.JMethodIDPtr, - uRL.reference.pointer, - string.reference.pointer) + final _$uRL = uRL?.reference ?? jni$_.jNullReference; + final _$string = string?.reference ?? jni$_.jNullReference; + return URL.fromReference(_new$4(_class.reference.pointer, + _id_new$4 as jni$_.JMethodIDPtr, _$uRL.pointer, _$string.pointer) .reference); } @@ -1012,38 +1166,42 @@ class URL extends _$jni.JObject { r'(Ljava/net/URL;Ljava/lang/String;Ljava/net/URLStreamHandler;)V', ); - static final _new$5 = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _new$5 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer )>)>>('globalEnv_NewObject') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer)>(); /// from: `public void (java.net.URL uRL, java.lang.String string, java.net.URLStreamHandler uRLStreamHandler)` /// The returned object must be released after use, by calling the [release] method. factory URL.new$5( - URL uRL, - _$jni.JString string, - _$jni.JObject uRLStreamHandler, + URL? uRL, + jni$_.JString? string, + jni$_.JObject? uRLStreamHandler, ) { + final _$uRL = uRL?.reference ?? jni$_.jNullReference; + final _$string = string?.reference ?? jni$_.jNullReference; + final _$uRLStreamHandler = + uRLStreamHandler?.reference ?? jni$_.jNullReference; return URL.fromReference(_new$5( _class.reference.pointer, - _id_new$5 as _$jni.JMethodIDPtr, - uRL.reference.pointer, - string.reference.pointer, - uRLStreamHandler.reference.pointer) + _id_new$5 as jni$_.JMethodIDPtr, + _$uRL.pointer, + _$string.pointer, + _$uRLStreamHandler.pointer) .reference); } @@ -1052,23 +1210,23 @@ class URL extends _$jni.JObject { r'()Ljava/lang/String;', ); - static final _getQuery = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getQuery = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public java.lang.String getQuery()` /// The returned object must be released after use, by calling the [release] method. - _$jni.JString getQuery() { - return _getQuery(reference.pointer, _id_getQuery as _$jni.JMethodIDPtr) - .object(const _$jni.JStringType()); + jni$_.JString? getQuery() { + return _getQuery(reference.pointer, _id_getQuery as jni$_.JMethodIDPtr) + .object(const jni$_.JStringNullableType()); } static final _id_getPath = _class.instanceMethodId( @@ -1076,23 +1234,23 @@ class URL extends _$jni.JObject { r'()Ljava/lang/String;', ); - static final _getPath = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getPath = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public java.lang.String getPath()` /// The returned object must be released after use, by calling the [release] method. - _$jni.JString getPath() { - return _getPath(reference.pointer, _id_getPath as _$jni.JMethodIDPtr) - .object(const _$jni.JStringType()); + jni$_.JString? getPath() { + return _getPath(reference.pointer, _id_getPath as jni$_.JMethodIDPtr) + .object(const jni$_.JStringNullableType()); } static final _id_getUserInfo = _class.instanceMethodId( @@ -1100,24 +1258,24 @@ class URL extends _$jni.JObject { r'()Ljava/lang/String;', ); - static final _getUserInfo = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getUserInfo = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public java.lang.String getUserInfo()` /// The returned object must be released after use, by calling the [release] method. - _$jni.JString getUserInfo() { + jni$_.JString? getUserInfo() { return _getUserInfo( - reference.pointer, _id_getUserInfo as _$jni.JMethodIDPtr) - .object(const _$jni.JStringType()); + reference.pointer, _id_getUserInfo as jni$_.JMethodIDPtr) + .object(const jni$_.JStringNullableType()); } static final _id_getAuthority = _class.instanceMethodId( @@ -1125,24 +1283,24 @@ class URL extends _$jni.JObject { r'()Ljava/lang/String;', ); - static final _getAuthority = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getAuthority = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public java.lang.String getAuthority()` /// The returned object must be released after use, by calling the [release] method. - _$jni.JString getAuthority() { + jni$_.JString? getAuthority() { return _getAuthority( - reference.pointer, _id_getAuthority as _$jni.JMethodIDPtr) - .object(const _$jni.JStringType()); + reference.pointer, _id_getAuthority as jni$_.JMethodIDPtr) + .object(const jni$_.JStringNullableType()); } static final _id_getPort = _class.instanceMethodId( @@ -1150,21 +1308,21 @@ class URL extends _$jni.JObject { r'()I', ); - static final _getPort = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getPort = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public int getPort()` int getPort() { - return _getPort(reference.pointer, _id_getPort as _$jni.JMethodIDPtr) + return _getPort(reference.pointer, _id_getPort as jni$_.JMethodIDPtr) .integer; } @@ -1173,22 +1331,22 @@ class URL extends _$jni.JObject { r'()I', ); - static final _getDefaultPort = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getDefaultPort = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public int getDefaultPort()` int getDefaultPort() { return _getDefaultPort( - reference.pointer, _id_getDefaultPort as _$jni.JMethodIDPtr) + reference.pointer, _id_getDefaultPort as jni$_.JMethodIDPtr) .integer; } @@ -1197,24 +1355,24 @@ class URL extends _$jni.JObject { r'()Ljava/lang/String;', ); - static final _getProtocol = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getProtocol = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public java.lang.String getProtocol()` /// The returned object must be released after use, by calling the [release] method. - _$jni.JString getProtocol() { + jni$_.JString? getProtocol() { return _getProtocol( - reference.pointer, _id_getProtocol as _$jni.JMethodIDPtr) - .object(const _$jni.JStringType()); + reference.pointer, _id_getProtocol as jni$_.JMethodIDPtr) + .object(const jni$_.JStringNullableType()); } static final _id_getHost = _class.instanceMethodId( @@ -1222,23 +1380,23 @@ class URL extends _$jni.JObject { r'()Ljava/lang/String;', ); - static final _getHost = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getHost = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public java.lang.String getHost()` /// The returned object must be released after use, by calling the [release] method. - _$jni.JString getHost() { - return _getHost(reference.pointer, _id_getHost as _$jni.JMethodIDPtr) - .object(const _$jni.JStringType()); + jni$_.JString? getHost() { + return _getHost(reference.pointer, _id_getHost as jni$_.JMethodIDPtr) + .object(const jni$_.JStringNullableType()); } static final _id_getFile = _class.instanceMethodId( @@ -1246,23 +1404,23 @@ class URL extends _$jni.JObject { r'()Ljava/lang/String;', ); - static final _getFile = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getFile = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public java.lang.String getFile()` /// The returned object must be released after use, by calling the [release] method. - _$jni.JString getFile() { - return _getFile(reference.pointer, _id_getFile as _$jni.JMethodIDPtr) - .object(const _$jni.JStringType()); + jni$_.JString? getFile() { + return _getFile(reference.pointer, _id_getFile as jni$_.JMethodIDPtr) + .object(const jni$_.JStringNullableType()); } static final _id_getRef = _class.instanceMethodId( @@ -1270,23 +1428,23 @@ class URL extends _$jni.JObject { r'()Ljava/lang/String;', ); - static final _getRef = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getRef = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public java.lang.String getRef()` /// The returned object must be released after use, by calling the [release] method. - _$jni.JString getRef() { - return _getRef(reference.pointer, _id_getRef as _$jni.JMethodIDPtr) - .object(const _$jni.JStringType()); + jni$_.JString? getRef() { + return _getRef(reference.pointer, _id_getRef as jni$_.JMethodIDPtr) + .object(const jni$_.JStringNullableType()); } static final _id_equals = _class.instanceMethodId( @@ -1294,23 +1452,24 @@ class URL extends _$jni.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public boolean equals(java.lang.Object object)` bool equals( - _$jni.JObject object, + jni$_.JObject? object, ) { - return _equals(reference.pointer, _id_equals as _$jni.JMethodIDPtr, - object.reference.pointer) + final _$object = object?.reference ?? jni$_.jNullReference; + return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, + _$object.pointer) .boolean; } @@ -1319,21 +1478,21 @@ class URL extends _$jni.JObject { r'()I', ); - static final _hashCode$1 = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + 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.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public int hashCode()` int hashCode$1() { - return _hashCode$1(reference.pointer, _id_hashCode$1 as _$jni.JMethodIDPtr) + return _hashCode$1(reference.pointer, _id_hashCode$1 as jni$_.JMethodIDPtr) .integer; } @@ -1342,23 +1501,24 @@ class URL extends _$jni.JObject { r'(Ljava/net/URL;)Z', ); - static final _sameFile = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + static final _sameFile = 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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public boolean sameFile(java.net.URL uRL)` bool sameFile( - URL uRL, + URL? uRL, ) { - return _sameFile(reference.pointer, _id_sameFile as _$jni.JMethodIDPtr, - uRL.reference.pointer) + final _$uRL = uRL?.reference ?? jni$_.jNullReference; + return _sameFile(reference.pointer, _id_sameFile as jni$_.JMethodIDPtr, + _$uRL.pointer) .boolean; } @@ -1367,23 +1527,23 @@ class URL extends _$jni.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + 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.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// 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.JStringType()); + jni$_.JString? toString$1() { + return _toString$1(reference.pointer, _id_toString$1 as jni$_.JMethodIDPtr) + .object(const jni$_.JStringNullableType()); } static final _id_toExternalForm = _class.instanceMethodId( @@ -1391,24 +1551,24 @@ class URL extends _$jni.JObject { r'()Ljava/lang/String;', ); - static final _toExternalForm = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _toExternalForm = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public java.lang.String toExternalForm()` /// The returned object must be released after use, by calling the [release] method. - _$jni.JString toExternalForm() { + jni$_.JString? toExternalForm() { return _toExternalForm( - reference.pointer, _id_toExternalForm as _$jni.JMethodIDPtr) - .object(const _$jni.JStringType()); + reference.pointer, _id_toExternalForm as jni$_.JMethodIDPtr) + .object(const jni$_.JStringNullableType()); } static final _id_toURI = _class.instanceMethodId( @@ -1416,23 +1576,23 @@ class URL extends _$jni.JObject { r'()Ljava/net/URI;', ); - static final _toURI = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _toURI = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// 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 as _$jni.JMethodIDPtr) - .object(const _$jni.JObjectType()); + jni$_.JObject? toURI() { + return _toURI(reference.pointer, _id_toURI as jni$_.JMethodIDPtr) + .object(const jni$_.JObjectNullableType()); } static final _id_openConnection = _class.instanceMethodId( @@ -1440,24 +1600,24 @@ class URL extends _$jni.JObject { r'()Ljava/net/URLConnection;', ); - static final _openConnection = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _openConnection = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public java.net.URLConnection openConnection()` /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject openConnection() { + jni$_.JObject? openConnection() { return _openConnection( - reference.pointer, _id_openConnection as _$jni.JMethodIDPtr) - .object(const _$jni.JObjectType()); + reference.pointer, _id_openConnection as jni$_.JMethodIDPtr) + .object(const jni$_.JObjectNullableType()); } static final _id_openConnection$1 = _class.instanceMethodId( @@ -1465,25 +1625,26 @@ class URL extends _$jni.JObject { r'(Ljava/net/Proxy;)Ljava/net/URLConnection;', ); - static final _openConnection$1 = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + static final _openConnection$1 = 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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// 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, + jni$_.JObject? openConnection$1( + jni$_.JObject? proxy, ) { + final _$proxy = proxy?.reference ?? jni$_.jNullReference; return _openConnection$1(reference.pointer, - _id_openConnection$1 as _$jni.JMethodIDPtr, proxy.reference.pointer) - .object(const _$jni.JObjectType()); + _id_openConnection$1 as jni$_.JMethodIDPtr, _$proxy.pointer) + .object(const jni$_.JObjectNullableType()); } static final _id_openStream = _class.instanceMethodId( @@ -1491,23 +1652,23 @@ class URL extends _$jni.JObject { r'()Ljava/io/InputStream;', ); - static final _openStream = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _openStream = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// 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 as _$jni.JMethodIDPtr) - .object(const _$jni.JObjectType()); + jni$_.JObject? openStream() { + return _openStream(reference.pointer, _id_openStream as jni$_.JMethodIDPtr) + .object(const jni$_.JObjectNullableType()); } static final _id_getContent = _class.instanceMethodId( @@ -1515,23 +1676,23 @@ class URL extends _$jni.JObject { r'()Ljava/lang/Object;', ); - static final _getContent = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getContent = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public java.lang.Object getContent()` /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject getContent() { - return _getContent(reference.pointer, _id_getContent as _$jni.JMethodIDPtr) - .object(const _$jni.JObjectType()); + jni$_.JObject? getContent() { + return _getContent(reference.pointer, _id_getContent as jni$_.JMethodIDPtr) + .object(const jni$_.JObjectNullableType()); } static final _id_getContent$1 = _class.instanceMethodId( @@ -1539,25 +1700,26 @@ class URL extends _$jni.JObject { r'([Ljava/lang/Class;)Ljava/lang/Object;', ); - static final _getContent$1 = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + static final _getContent$1 = 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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// 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$1( - _$jni.JArray<_$jni.JObject> classs, + jni$_.JObject? getContent$1( + jni$_.JArray? classs, ) { + final _$classs = classs?.reference ?? jni$_.jNullReference; return _getContent$1(reference.pointer, - _id_getContent$1 as _$jni.JMethodIDPtr, classs.reference.pointer) - .object(const _$jni.JObjectType()); + _id_getContent$1 as jni$_.JMethodIDPtr, _$classs.pointer) + .object(const jni$_.JObjectNullableType()); } static final _id_setURLStreamHandlerFactory = _class.staticMethodId( @@ -1566,96 +1728,141 @@ class URL extends _$jni.JObject { ); static final _setURLStreamHandlerFactory = - _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `static public void setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory uRLStreamHandlerFactory)` static void setURLStreamHandlerFactory( - _$jni.JObject uRLStreamHandlerFactory, + jni$_.JObject? uRLStreamHandlerFactory, ) { + final _$uRLStreamHandlerFactory = + uRLStreamHandlerFactory?.reference ?? jni$_.jNullReference; _setURLStreamHandlerFactory( _class.reference.pointer, - _id_setURLStreamHandlerFactory as _$jni.JMethodIDPtr, - uRLStreamHandlerFactory.reference.pointer) + _id_setURLStreamHandlerFactory as jni$_.JMethodIDPtr, + _$uRLStreamHandlerFactory.pointer) .check(); } } -final class $URL$Type extends _$jni.JObjType { - @_$jni.internal - const $URL$Type(); +final class $URL$NullableType extends jni$_.JObjType { + @jni$_.internal + const $URL$NullableType(); - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override String get signature => r'Ljava/net/URL;'; - @_$jni.internal - @_$core.override - URL fromReference(_$jni.JReference reference) => URL.fromReference(reference); + @jni$_.internal + @core$_.override + URL? fromReference(jni$_.JReference reference) => reference.isNull + ? null + : URL.fromReference( + reference, + ); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + @jni$_.internal + @core$_.override + jni$_.JObjType get nullableType => this; - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override final superCount = 1; - @_$core.override + @core$_.override + int get hashCode => ($URL$NullableType).hashCode; + + @core$_.override + bool operator ==(Object other) { + return other.runtimeType == ($URL$NullableType) && + other is $URL$NullableType; + } +} + +final class $URL$Type extends jni$_.JObjType { + @jni$_.internal + const $URL$Type(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/net/URL;'; + + @jni$_.internal + @core$_.override + URL fromReference(jni$_.JReference reference) => URL.fromReference( + reference, + ); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + + @jni$_.internal + @core$_.override + jni$_.JObjType get nullableType => const $URL$NullableType(); + + @jni$_.internal + @core$_.override + final superCount = 1; + + @core$_.override int get hashCode => ($URL$Type).hashCode; - @_$core.override + @core$_.override bool operator ==(Object other) { return other.runtimeType == ($URL$Type) && other is $URL$Type; } } /// from: `java.util.concurrent.Executors` -class Executors extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; +class Executors extends jni$_.JObject { + @jni$_.internal + @core$_.override + final jni$_.JObjType $type; - @_$jni.internal + @jni$_.internal Executors.fromReference( - _$jni.JReference reference, + jni$_.JReference reference, ) : $type = type, super.fromReference(reference); - static final _class = _$jni.JClass.forName(r'java/util/concurrent/Executors'); + static final _class = jni$_.JClass.forName(r'java/util/concurrent/Executors'); /// The type which includes information such as the signature of this class. + static const nullableType = $Executors$NullableType(); static const type = $Executors$Type(); static final _id_newFixedThreadPool = _class.staticMethodId( r'newFixedThreadPool', r'(I)Ljava/util/concurrent/ExecutorService;', ); - static final _newFixedThreadPool = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Int32,)>)>>( + static final _newFixedThreadPool = 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.Void>, _$jni.JMethodIDPtr, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); /// 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 jni$_.JObject? newFixedThreadPool( int i, ) { return _newFixedThreadPool(_class.reference.pointer, - _id_newFixedThreadPool as _$jni.JMethodIDPtr, i) - .object(const _$jni.JObjectType()); + _id_newFixedThreadPool as jni$_.JMethodIDPtr, i) + .object(const jni$_.JObjectNullableType()); } static final _id_newWorkStealingPool = _class.staticMethodId( @@ -1663,23 +1870,23 @@ class Executors extends _$jni.JObject { r'(I)Ljava/util/concurrent/ExecutorService;', ); - static final _newWorkStealingPool = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Int32,)>)>>( + static final _newWorkStealingPool = 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.Void>, _$jni.JMethodIDPtr, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); /// 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( + static jni$_.JObject? newWorkStealingPool( int i, ) { return _newWorkStealingPool(_class.reference.pointer, - _id_newWorkStealingPool as _$jni.JMethodIDPtr, i) - .object(const _$jni.JObjectType()); + _id_newWorkStealingPool as jni$_.JMethodIDPtr, i) + .object(const jni$_.JObjectNullableType()); } static final _id_newWorkStealingPool$1 = _class.staticMethodId( @@ -1687,24 +1894,24 @@ class Executors extends _$jni.JObject { r'()Ljava/util/concurrent/ExecutorService;', ); - static final _newWorkStealingPool$1 = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _newWorkStealingPool$1 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallStaticObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// 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$1() { + static jni$_.JObject? newWorkStealingPool$1() { return _newWorkStealingPool$1(_class.reference.pointer, - _id_newWorkStealingPool$1 as _$jni.JMethodIDPtr) - .object(const _$jni.JObjectType()); + _id_newWorkStealingPool$1 as jni$_.JMethodIDPtr) + .object(const jni$_.JObjectNullableType()); } static final _id_newFixedThreadPool$1 = _class.staticMethodId( @@ -1712,30 +1919,31 @@ class Executors extends _$jni.JObject { r'(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;', ); - static final _newFixedThreadPool$1 = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni - .VarArgs<(_$jni.Int32, _$jni.Pointer<_$jni.Void>)>)>>( + static final _newFixedThreadPool$1 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_ + .VarArgs<(jni$_.Int32, jni$_.Pointer)>)>>( 'globalEnv_CallStaticObjectMethod') .asFunction< - _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, int, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); /// 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 jni$_.JObject? newFixedThreadPool$1( int i, - _$jni.JObject threadFactory, + jni$_.JObject? threadFactory, ) { + final _$threadFactory = threadFactory?.reference ?? jni$_.jNullReference; return _newFixedThreadPool$1( _class.reference.pointer, - _id_newFixedThreadPool$1 as _$jni.JMethodIDPtr, + _id_newFixedThreadPool$1 as jni$_.JMethodIDPtr, i, - threadFactory.reference.pointer) - .object(const _$jni.JObjectType()); + _$threadFactory.pointer) + .object(const jni$_.JObjectNullableType()); } static final _id_newSingleThreadExecutor = _class.staticMethodId( @@ -1743,24 +1951,24 @@ class Executors extends _$jni.JObject { r'()Ljava/util/concurrent/ExecutorService;', ); - static final _newSingleThreadExecutor = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _newSingleThreadExecutor = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallStaticObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// 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 jni$_.JObject? newSingleThreadExecutor() { return _newSingleThreadExecutor(_class.reference.pointer, - _id_newSingleThreadExecutor as _$jni.JMethodIDPtr) - .object(const _$jni.JObjectType()); + _id_newSingleThreadExecutor as jni$_.JMethodIDPtr) + .object(const jni$_.JObjectNullableType()); } static final _id_newSingleThreadExecutor$1 = _class.staticMethodId( @@ -1768,27 +1976,28 @@ class Executors extends _$jni.JObject { r'(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;', ); - static final _newSingleThreadExecutor$1 = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + static final _newSingleThreadExecutor$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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// 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 jni$_.JObject? newSingleThreadExecutor$1( + jni$_.JObject? threadFactory, ) { + final _$threadFactory = threadFactory?.reference ?? jni$_.jNullReference; return _newSingleThreadExecutor$1( _class.reference.pointer, - _id_newSingleThreadExecutor$1 as _$jni.JMethodIDPtr, - threadFactory.reference.pointer) - .object(const _$jni.JObjectType()); + _id_newSingleThreadExecutor$1 as jni$_.JMethodIDPtr, + _$threadFactory.pointer) + .object(const jni$_.JObjectNullableType()); } static final _id_newCachedThreadPool = _class.staticMethodId( @@ -1796,24 +2005,24 @@ class Executors extends _$jni.JObject { r'()Ljava/util/concurrent/ExecutorService;', ); - static final _newCachedThreadPool = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _newCachedThreadPool = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallStaticObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// 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 jni$_.JObject? newCachedThreadPool() { return _newCachedThreadPool(_class.reference.pointer, - _id_newCachedThreadPool as _$jni.JMethodIDPtr) - .object(const _$jni.JObjectType()); + _id_newCachedThreadPool as jni$_.JMethodIDPtr) + .object(const jni$_.JObjectNullableType()); } static final _id_newCachedThreadPool$1 = _class.staticMethodId( @@ -1821,27 +2030,28 @@ class Executors extends _$jni.JObject { r'(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;', ); - static final _newCachedThreadPool$1 = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + static final _newCachedThreadPool$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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// 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 jni$_.JObject? newCachedThreadPool$1( + jni$_.JObject? threadFactory, ) { + final _$threadFactory = threadFactory?.reference ?? jni$_.jNullReference; return _newCachedThreadPool$1( _class.reference.pointer, - _id_newCachedThreadPool$1 as _$jni.JMethodIDPtr, - threadFactory.reference.pointer) - .object(const _$jni.JObjectType()); + _id_newCachedThreadPool$1 as jni$_.JMethodIDPtr, + _$threadFactory.pointer) + .object(const jni$_.JObjectNullableType()); } static final _id_newSingleThreadScheduledExecutor = _class.staticMethodId( @@ -1850,24 +2060,24 @@ class Executors extends _$jni.JObject { ); static final _newSingleThreadScheduledExecutor = - _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallStaticObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// 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() { + static jni$_.JObject? newSingleThreadScheduledExecutor() { return _newSingleThreadScheduledExecutor(_class.reference.pointer, - _id_newSingleThreadScheduledExecutor as _$jni.JMethodIDPtr) - .object(const _$jni.JObjectType()); + _id_newSingleThreadScheduledExecutor as jni$_.JMethodIDPtr) + .object(const jni$_.JObjectNullableType()); } static final _id_newSingleThreadScheduledExecutor$1 = _class.staticMethodId( @@ -1876,27 +2086,28 @@ class Executors extends _$jni.JObject { ); static final _newSingleThreadScheduledExecutor$1 = - _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// 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 jni$_.JObject? newSingleThreadScheduledExecutor$1( + jni$_.JObject? threadFactory, ) { + final _$threadFactory = threadFactory?.reference ?? jni$_.jNullReference; return _newSingleThreadScheduledExecutor$1( _class.reference.pointer, - _id_newSingleThreadScheduledExecutor$1 as _$jni.JMethodIDPtr, - threadFactory.reference.pointer) - .object(const _$jni.JObjectType()); + _id_newSingleThreadScheduledExecutor$1 as jni$_.JMethodIDPtr, + _$threadFactory.pointer) + .object(const jni$_.JObjectNullableType()); } static final _id_newScheduledThreadPool = _class.staticMethodId( @@ -1904,23 +2115,23 @@ class Executors extends _$jni.JObject { r'(I)Ljava/util/concurrent/ScheduledExecutorService;', ); - static final _newScheduledThreadPool = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Int32,)>)>>( + static final _newScheduledThreadPool = 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.Void>, _$jni.JMethodIDPtr, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); /// 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 jni$_.JObject? newScheduledThreadPool( int i, ) { return _newScheduledThreadPool(_class.reference.pointer, - _id_newScheduledThreadPool as _$jni.JMethodIDPtr, i) - .object(const _$jni.JObjectType()); + _id_newScheduledThreadPool as jni$_.JMethodIDPtr, i) + .object(const jni$_.JObjectNullableType()); } static final _id_newScheduledThreadPool$1 = _class.staticMethodId( @@ -1928,30 +2139,31 @@ class Executors extends _$jni.JObject { r'(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;', ); - static final _newScheduledThreadPool$1 = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni - .VarArgs<(_$jni.Int32, _$jni.Pointer<_$jni.Void>)>)>>( + static final _newScheduledThreadPool$1 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_ + .VarArgs<(jni$_.Int32, jni$_.Pointer)>)>>( 'globalEnv_CallStaticObjectMethod') .asFunction< - _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, int, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); /// 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 jni$_.JObject? newScheduledThreadPool$1( int i, - _$jni.JObject threadFactory, + jni$_.JObject? threadFactory, ) { + final _$threadFactory = threadFactory?.reference ?? jni$_.jNullReference; return _newScheduledThreadPool$1( _class.reference.pointer, - _id_newScheduledThreadPool$1 as _$jni.JMethodIDPtr, + _id_newScheduledThreadPool$1 as jni$_.JMethodIDPtr, i, - threadFactory.reference.pointer) - .object(const _$jni.JObjectType()); + _$threadFactory.pointer) + .object(const jni$_.JObjectNullableType()); } static final _id_unconfigurableExecutorService = _class.staticMethodId( @@ -1960,27 +2172,29 @@ class Executors extends _$jni.JObject { ); static final _unconfigurableExecutorService = - _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// 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 jni$_.JObject? unconfigurableExecutorService( + jni$_.JObject? executorService, ) { + final _$executorService = + executorService?.reference ?? jni$_.jNullReference; return _unconfigurableExecutorService( _class.reference.pointer, - _id_unconfigurableExecutorService as _$jni.JMethodIDPtr, - executorService.reference.pointer) - .object(const _$jni.JObjectType()); + _id_unconfigurableExecutorService as jni$_.JMethodIDPtr, + _$executorService.pointer) + .object(const jni$_.JObjectNullableType()); } static final _id_unconfigurableScheduledExecutorService = @@ -1990,27 +2204,29 @@ class Executors extends _$jni.JObject { ); static final _unconfigurableScheduledExecutorService = - _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// 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 jni$_.JObject? unconfigurableScheduledExecutorService( + jni$_.JObject? scheduledExecutorService, ) { + final _$scheduledExecutorService = + scheduledExecutorService?.reference ?? jni$_.jNullReference; return _unconfigurableScheduledExecutorService( _class.reference.pointer, - _id_unconfigurableScheduledExecutorService as _$jni.JMethodIDPtr, - scheduledExecutorService.reference.pointer) - .object(const _$jni.JObjectType()); + _id_unconfigurableScheduledExecutorService as jni$_.JMethodIDPtr, + _$scheduledExecutorService.pointer) + .object(const jni$_.JObjectNullableType()); } static final _id_defaultThreadFactory = _class.staticMethodId( @@ -2018,24 +2234,24 @@ class Executors extends _$jni.JObject { r'()Ljava/util/concurrent/ThreadFactory;', ); - static final _defaultThreadFactory = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _defaultThreadFactory = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallStaticObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// 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 jni$_.JObject? defaultThreadFactory() { return _defaultThreadFactory(_class.reference.pointer, - _id_defaultThreadFactory as _$jni.JMethodIDPtr) - .object(const _$jni.JObjectType()); + _id_defaultThreadFactory as jni$_.JMethodIDPtr) + .object(const jni$_.JObjectNullableType()); } static final _id_privilegedThreadFactory = _class.staticMethodId( @@ -2043,24 +2259,24 @@ class Executors extends _$jni.JObject { r'()Ljava/util/concurrent/ThreadFactory;', ); - static final _privilegedThreadFactory = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _privilegedThreadFactory = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallStaticObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// 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() { + static jni$_.JObject? privilegedThreadFactory() { return _privilegedThreadFactory(_class.reference.pointer, - _id_privilegedThreadFactory as _$jni.JMethodIDPtr) - .object(const _$jni.JObjectType()); + _id_privilegedThreadFactory as jni$_.JMethodIDPtr) + .object(const jni$_.JObjectNullableType()); } static final _id_callable = _class.staticMethodId( @@ -2068,39 +2284,38 @@ class Executors extends _$jni.JObject { r'(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Callable;', ); - static final _callable = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _callable = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); /// 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<$T extends _$jni.JObject>( - _$jni.JObject runnable, - $T object, { - _$jni.JObjType<$T>? T, + static jni$_.JObject? callable<$T extends jni$_.JObject?>( + jni$_.JObject? runnable, + $T? object, { + required jni$_.JObjType<$T> T, }) { - T ??= _$jni.lowestCommonSuperType([ - object.$type, - ]) as _$jni.JObjType<$T>; + final _$runnable = runnable?.reference ?? jni$_.jNullReference; + final _$object = object?.reference ?? jni$_.jNullReference; return _callable( _class.reference.pointer, - _id_callable as _$jni.JMethodIDPtr, - runnable.reference.pointer, - object.reference.pointer) - .object(const _$jni.JObjectType()); + _id_callable as jni$_.JMethodIDPtr, + _$runnable.pointer, + _$object.pointer) + .object(const jni$_.JObjectNullableType()); } static final _id_callable$1 = _class.staticMethodId( @@ -2108,25 +2323,26 @@ class Executors extends _$jni.JObject { r'(Ljava/lang/Runnable;)Ljava/util/concurrent/Callable;', ); - static final _callable$1 = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + static final _callable$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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// 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$1( - _$jni.JObject runnable, + static jni$_.JObject? callable$1( + jni$_.JObject? runnable, ) { + final _$runnable = runnable?.reference ?? jni$_.jNullReference; return _callable$1(_class.reference.pointer, - _id_callable$1 as _$jni.JMethodIDPtr, runnable.reference.pointer) - .object(const _$jni.JObjectType()); + _id_callable$1 as jni$_.JMethodIDPtr, _$runnable.pointer) + .object(const jni$_.JObjectNullableType()); } static final _id_callable$2 = _class.staticMethodId( @@ -2134,27 +2350,27 @@ class Executors extends _$jni.JObject { r'(Ljava/security/PrivilegedAction;)Ljava/util/concurrent/Callable;', ); - static final _callable$2 = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + static final _callable$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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// 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 jni$_.JObject? callable$2( + jni$_.JObject? privilegedAction, ) { - return _callable$2( - _class.reference.pointer, - _id_callable$2 as _$jni.JMethodIDPtr, - privilegedAction.reference.pointer) - .object(const _$jni.JObjectType()); + final _$privilegedAction = + privilegedAction?.reference ?? jni$_.jNullReference; + return _callable$2(_class.reference.pointer, + _id_callable$2 as jni$_.JMethodIDPtr, _$privilegedAction.pointer) + .object(const jni$_.JObjectNullableType()); } static final _id_callable$3 = _class.staticMethodId( @@ -2162,27 +2378,29 @@ class Executors extends _$jni.JObject { r'(Ljava/security/PrivilegedExceptionAction;)Ljava/util/concurrent/Callable;', ); - static final _callable$3 = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + static final _callable$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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// 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 jni$_.JObject? callable$3( + jni$_.JObject? privilegedExceptionAction, ) { + final _$privilegedExceptionAction = + privilegedExceptionAction?.reference ?? jni$_.jNullReference; return _callable$3( _class.reference.pointer, - _id_callable$3 as _$jni.JMethodIDPtr, - privilegedExceptionAction.reference.pointer) - .object(const _$jni.JObjectType()); + _id_callable$3 as jni$_.JMethodIDPtr, + _$privilegedExceptionAction.pointer) + .object(const jni$_.JObjectNullableType()); } static final _id_privilegedCallable = _class.staticMethodId( @@ -2190,28 +2408,27 @@ class Executors extends _$jni.JObject { r'(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Callable;', ); - static final _privilegedCallable = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + static final _privilegedCallable = 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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `static public java.util.concurrent.Callable privilegedCallable(java.util.concurrent.Callable callable)` /// The returned object must be released after use, by calling the [release] method. - static _$jni.JObject privilegedCallable<$T extends _$jni.JObject>( - _$jni.JObject callable, { - required _$jni.JObjType<$T> T, + static jni$_.JObject? privilegedCallable<$T extends jni$_.JObject?>( + jni$_.JObject? callable, { + required jni$_.JObjType<$T> T, }) { - return _privilegedCallable( - _class.reference.pointer, - _id_privilegedCallable as _$jni.JMethodIDPtr, - callable.reference.pointer) - .object(const _$jni.JObjectType()); + final _$callable = callable?.reference ?? jni$_.jNullReference; + return _privilegedCallable(_class.reference.pointer, + _id_privilegedCallable as jni$_.JMethodIDPtr, _$callable.pointer) + .object(const jni$_.JObjectNullableType()); } static final _id_privilegedCallableUsingCurrentClassLoader = @@ -2221,156 +2438,253 @@ class Executors extends _$jni.JObject { ); static final _privilegedCallableUsingCurrentClassLoader = - _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// 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 - privilegedCallableUsingCurrentClassLoader<$T extends _$jni.JObject>( - _$jni.JObject callable, { - required _$jni.JObjType<$T> T, + static jni$_.JObject? + privilegedCallableUsingCurrentClassLoader<$T extends jni$_.JObject?>( + jni$_.JObject? callable, { + required jni$_.JObjType<$T> T, }) { + final _$callable = callable?.reference ?? jni$_.jNullReference; return _privilegedCallableUsingCurrentClassLoader( _class.reference.pointer, - _id_privilegedCallableUsingCurrentClassLoader as _$jni.JMethodIDPtr, - callable.reference.pointer) - .object(const _$jni.JObjectType()); + _id_privilegedCallableUsingCurrentClassLoader as jni$_.JMethodIDPtr, + _$callable.pointer) + .object(const jni$_.JObjectNullableType()); } } -final class $Executors$Type extends _$jni.JObjType { - @_$jni.internal - const $Executors$Type(); +final class $Executors$NullableType extends jni$_.JObjType { + @jni$_.internal + const $Executors$NullableType(); - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override String get signature => r'Ljava/util/concurrent/Executors;'; - @_$jni.internal - @_$core.override - Executors fromReference(_$jni.JReference reference) => - Executors.fromReference(reference); + @jni$_.internal + @core$_.override + Executors? fromReference(jni$_.JReference reference) => reference.isNull + ? null + : Executors.fromReference( + reference, + ); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + @jni$_.internal + @core$_.override + jni$_.JObjType get nullableType => this; - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override final superCount = 1; - @_$core.override + @core$_.override + int get hashCode => ($Executors$NullableType).hashCode; + + @core$_.override + bool operator ==(Object other) { + return other.runtimeType == ($Executors$NullableType) && + other is $Executors$NullableType; + } +} + +final class $Executors$Type extends jni$_.JObjType { + @jni$_.internal + const $Executors$Type(); + + @jni$_.internal + @core$_.override + String get signature => r'Ljava/util/concurrent/Executors;'; + + @jni$_.internal + @core$_.override + Executors fromReference(jni$_.JReference reference) => + Executors.fromReference( + reference, + ); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + + @jni$_.internal + @core$_.override + jni$_.JObjType get nullableType => + const $Executors$NullableType(); + + @jni$_.internal + @core$_.override + final superCount = 1; + + @core$_.override int get hashCode => ($Executors$Type).hashCode; - @_$core.override + @core$_.override bool operator ==(Object other) { return other.runtimeType == ($Executors$Type) && other is $Executors$Type; } } /// from: `org.chromium.net.CronetEngine$Builder$LibraryLoader` -class CronetEngine_Builder_LibraryLoader extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; - - @_$jni.internal - CronetEngine_Builder_LibraryLoader.fromReference( - _$jni.JReference reference, +class CronetEngine$Builder$LibraryLoader extends jni$_.JObject { + @jni$_.internal + @core$_.override + final jni$_.JObjType $type; + + @jni$_.internal + CronetEngine$Builder$LibraryLoader.fromReference( + jni$_.JReference reference, ) : $type = type, super.fromReference(reference); - static final _class = _$jni.JClass.forName( + static final _class = jni$_.JClass.forName( r'org/chromium/net/CronetEngine$Builder$LibraryLoader'); /// The type which includes information such as the signature of this class. - static const type = $CronetEngine_Builder_LibraryLoader$Type(); + static const nullableType = + $CronetEngine$Builder$LibraryLoader$NullableType(); + static const type = $CronetEngine$Builder$LibraryLoader$Type(); static final _id_loadLibrary = _class.instanceMethodId( r'loadLibrary', r'(Ljava/lang/String;)V', ); - static final _loadLibrary = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + static final _loadLibrary = 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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public abstract void loadLibrary(java.lang.String string)` void loadLibrary( - _$jni.JString string, + jni$_.JString? string, ) { - _loadLibrary(reference.pointer, _id_loadLibrary as _$jni.JMethodIDPtr, - string.reference.pointer) + final _$string = string?.reference ?? jni$_.jNullReference; + _loadLibrary(reference.pointer, _id_loadLibrary as jni$_.JMethodIDPtr, + _$string.pointer) .check(); } } -final class $CronetEngine_Builder_LibraryLoader$Type - extends _$jni.JObjType { - @_$jni.internal - const $CronetEngine_Builder_LibraryLoader$Type(); +final class $CronetEngine$Builder$LibraryLoader$NullableType + extends jni$_.JObjType { + @jni$_.internal + const $CronetEngine$Builder$LibraryLoader$NullableType(); - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override String get signature => r'Lorg/chromium/net/CronetEngine$Builder$LibraryLoader;'; - @_$jni.internal - @_$core.override - CronetEngine_Builder_LibraryLoader fromReference( - _$jni.JReference reference) => - CronetEngine_Builder_LibraryLoader.fromReference(reference); + @jni$_.internal + @core$_.override + CronetEngine$Builder$LibraryLoader? fromReference( + jni$_.JReference reference) => + reference.isNull + ? null + : CronetEngine$Builder$LibraryLoader.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; - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + @core$_.override + int get hashCode => + ($CronetEngine$Builder$LibraryLoader$NullableType).hashCode; - @_$jni.internal - @_$core.override + @core$_.override + bool operator ==(Object other) { + return other.runtimeType == + ($CronetEngine$Builder$LibraryLoader$NullableType) && + other is $CronetEngine$Builder$LibraryLoader$NullableType; + } +} + +final class $CronetEngine$Builder$LibraryLoader$Type + extends jni$_.JObjType { + @jni$_.internal + const $CronetEngine$Builder$LibraryLoader$Type(); + + @jni$_.internal + @core$_.override + String get signature => + r'Lorg/chromium/net/CronetEngine$Builder$LibraryLoader;'; + + @jni$_.internal + @core$_.override + CronetEngine$Builder$LibraryLoader fromReference( + jni$_.JReference reference) => + CronetEngine$Builder$LibraryLoader.fromReference( + reference, + ); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + + @jni$_.internal + @core$_.override + jni$_.JObjType get nullableType => + const $CronetEngine$Builder$LibraryLoader$NullableType(); + + @jni$_.internal + @core$_.override final superCount = 1; - @_$core.override - int get hashCode => ($CronetEngine_Builder_LibraryLoader$Type).hashCode; + @core$_.override + int get hashCode => ($CronetEngine$Builder$LibraryLoader$Type).hashCode; - @_$core.override + @core$_.override bool operator ==(Object other) { - return other.runtimeType == ($CronetEngine_Builder_LibraryLoader$Type) && - other is $CronetEngine_Builder_LibraryLoader$Type; + return other.runtimeType == ($CronetEngine$Builder$LibraryLoader$Type) && + other is $CronetEngine$Builder$LibraryLoader$Type; } } /// from: `org.chromium.net.CronetEngine$Builder` -class CronetEngine_Builder extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; - - @_$jni.internal - CronetEngine_Builder.fromReference( - _$jni.JReference reference, +class CronetEngine$Builder extends jni$_.JObject { + @jni$_.internal + @core$_.override + final jni$_.JObjType $type; + + @jni$_.internal + CronetEngine$Builder.fromReference( + jni$_.JReference reference, ) : $type = type, super.fromReference(reference); static final _class = - _$jni.JClass.forName(r'org/chromium/net/CronetEngine$Builder'); + jni$_.JClass.forName(r'org/chromium/net/CronetEngine$Builder'); /// The type which includes information such as the signature of this class. - static const type = $CronetEngine_Builder$Type(); + static const nullableType = $CronetEngine$Builder$NullableType(); + static const type = $CronetEngine$Builder$Type(); /// from: `static public final int HTTP_CACHE_DISABLED` static const HTTP_CACHE_DISABLED = 0; @@ -2387,24 +2701,25 @@ class CronetEngine_Builder extends _$jni.JObject { r'(Landroid/content/Context;)V', ); - static final _new$ = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// 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, + factory CronetEngine$Builder( + jni$_.JObject? context, ) { - return CronetEngine_Builder.fromReference(_new$(_class.reference.pointer, - _id_new$ as _$jni.JMethodIDPtr, context.reference.pointer) + final _$context = context?.reference ?? jni$_.jNullReference; + return CronetEngine$Builder.fromReference(_new$(_class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, _$context.pointer) .reference); } @@ -2412,26 +2727,26 @@ class CronetEngine_Builder extends _$jni.JObject { r'(Lorg/chromium/net/ICronetEngineBuilder;)V', ); - static final _new$1 = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void (org.chromium.net.ICronetEngineBuilder iCronetEngineBuilder)` /// The returned object must be released after use, by calling the [release] method. - factory CronetEngine_Builder.new$1( - _$jni.JObject iCronetEngineBuilder, + factory CronetEngine$Builder.new$1( + jni$_.JObject? iCronetEngineBuilder, ) { - return CronetEngine_Builder.fromReference(_new$1( - _class.reference.pointer, - _id_new$1 as _$jni.JMethodIDPtr, - iCronetEngineBuilder.reference.pointer) + final _$iCronetEngineBuilder = + iCronetEngineBuilder?.reference ?? jni$_.jNullReference; + return CronetEngine$Builder.fromReference(_new$1(_class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, _$iCronetEngineBuilder.pointer) .reference); } @@ -2440,24 +2755,24 @@ class CronetEngine_Builder extends _$jni.JObject { r'()Ljava/lang/String;', ); - static final _getDefaultUserAgent = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getDefaultUserAgent = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public java.lang.String getDefaultUserAgent()` /// The returned object must be released after use, by calling the [release] method. - _$jni.JString getDefaultUserAgent() { + jni$_.JString? getDefaultUserAgent() { return _getDefaultUserAgent( - reference.pointer, _id_getDefaultUserAgent as _$jni.JMethodIDPtr) - .object(const _$jni.JStringType()); + reference.pointer, _id_getDefaultUserAgent as jni$_.JMethodIDPtr) + .object(const jni$_.JStringNullableType()); } static final _id_setUserAgent = _class.instanceMethodId( @@ -2465,25 +2780,27 @@ class CronetEngine_Builder extends _$jni.JObject { r'(Ljava/lang/String;)Lorg/chromium/net/CronetEngine$Builder;', ); - static final _setUserAgent = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + static final _setUserAgent = 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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public org.chromium.net.CronetEngine$Builder setUserAgent(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - CronetEngine_Builder setUserAgent( - _$jni.JString string, + CronetEngine$Builder? setUserAgent( + jni$_.JString? string, ) { + final _$string = string?.reference ?? jni$_.jNullReference; return _setUserAgent(reference.pointer, - _id_setUserAgent as _$jni.JMethodIDPtr, string.reference.pointer) - .object(const $CronetEngine_Builder$Type()); + _id_setUserAgent as jni$_.JMethodIDPtr, _$string.pointer) + .object( + const $CronetEngine$Builder$NullableType()); } static final _id_setStoragePath = _class.instanceMethodId( @@ -2491,25 +2808,27 @@ class CronetEngine_Builder extends _$jni.JObject { r'(Ljava/lang/String;)Lorg/chromium/net/CronetEngine$Builder;', ); - static final _setStoragePath = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + static final _setStoragePath = 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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public org.chromium.net.CronetEngine$Builder setStoragePath(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - CronetEngine_Builder setStoragePath( - _$jni.JString string, + CronetEngine$Builder? setStoragePath( + jni$_.JString? string, ) { + final _$string = string?.reference ?? jni$_.jNullReference; return _setStoragePath(reference.pointer, - _id_setStoragePath as _$jni.JMethodIDPtr, string.reference.pointer) - .object(const $CronetEngine_Builder$Type()); + _id_setStoragePath as jni$_.JMethodIDPtr, _$string.pointer) + .object( + const $CronetEngine$Builder$NullableType()); } static final _id_setLibraryLoader = _class.instanceMethodId( @@ -2517,27 +2836,27 @@ class CronetEngine_Builder extends _$jni.JObject { r'(Lorg/chromium/net/CronetEngine$Builder$LibraryLoader;)Lorg/chromium/net/CronetEngine$Builder;', ); - static final _setLibraryLoader = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + static final _setLibraryLoader = 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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public org.chromium.net.CronetEngine$Builder setLibraryLoader(org.chromium.net.CronetEngine$Builder$LibraryLoader libraryLoader)` /// The returned object must be released after use, by calling the [release] method. - CronetEngine_Builder setLibraryLoader( - CronetEngine_Builder_LibraryLoader libraryLoader, + CronetEngine$Builder? setLibraryLoader( + CronetEngine$Builder$LibraryLoader? libraryLoader, ) { - return _setLibraryLoader( - reference.pointer, - _id_setLibraryLoader as _$jni.JMethodIDPtr, - libraryLoader.reference.pointer) - .object(const $CronetEngine_Builder$Type()); + final _$libraryLoader = libraryLoader?.reference ?? jni$_.jNullReference; + return _setLibraryLoader(reference.pointer, + _id_setLibraryLoader as jni$_.JMethodIDPtr, _$libraryLoader.pointer) + .object( + const $CronetEngine$Builder$NullableType()); } static final _id_enableQuic = _class.instanceMethodId( @@ -2545,24 +2864,25 @@ class CronetEngine_Builder extends _$jni.JObject { r'(Z)Lorg/chromium/net/CronetEngine$Builder;', ); - static final _enableQuic = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallObjectMethod') + static final _enableQuic = 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.Void>, _$jni.JMethodIDPtr, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); /// from: `public org.chromium.net.CronetEngine$Builder enableQuic(boolean z)` /// The returned object must be released after use, by calling the [release] method. - CronetEngine_Builder enableQuic( + CronetEngine$Builder? enableQuic( bool z, ) { return _enableQuic( - reference.pointer, _id_enableQuic as _$jni.JMethodIDPtr, z ? 1 : 0) - .object(const $CronetEngine_Builder$Type()); + reference.pointer, _id_enableQuic as jni$_.JMethodIDPtr, z ? 1 : 0) + .object( + const $CronetEngine$Builder$NullableType()); } static final _id_enableHttp2 = _class.instanceMethodId( @@ -2570,24 +2890,25 @@ class CronetEngine_Builder extends _$jni.JObject { r'(Z)Lorg/chromium/net/CronetEngine$Builder;', ); - static final _enableHttp2 = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallObjectMethod') + static final _enableHttp2 = 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.Void>, _$jni.JMethodIDPtr, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); /// from: `public org.chromium.net.CronetEngine$Builder enableHttp2(boolean z)` /// The returned object must be released after use, by calling the [release] method. - CronetEngine_Builder enableHttp2( + CronetEngine$Builder? enableHttp2( bool z, ) { return _enableHttp2( - reference.pointer, _id_enableHttp2 as _$jni.JMethodIDPtr, z ? 1 : 0) - .object(const $CronetEngine_Builder$Type()); + reference.pointer, _id_enableHttp2 as jni$_.JMethodIDPtr, z ? 1 : 0) + .object( + const $CronetEngine$Builder$NullableType()); } static final _id_enableSdch = _class.instanceMethodId( @@ -2595,24 +2916,25 @@ class CronetEngine_Builder extends _$jni.JObject { r'(Z)Lorg/chromium/net/CronetEngine$Builder;', ); - static final _enableSdch = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallObjectMethod') + static final _enableSdch = 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.Void>, _$jni.JMethodIDPtr, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); /// from: `public org.chromium.net.CronetEngine$Builder enableSdch(boolean z)` /// The returned object must be released after use, by calling the [release] method. - CronetEngine_Builder enableSdch( + CronetEngine$Builder? enableSdch( bool z, ) { return _enableSdch( - reference.pointer, _id_enableSdch as _$jni.JMethodIDPtr, z ? 1 : 0) - .object(const $CronetEngine_Builder$Type()); + reference.pointer, _id_enableSdch as jni$_.JMethodIDPtr, z ? 1 : 0) + .object( + const $CronetEngine$Builder$NullableType()); } static final _id_enableBrotli = _class.instanceMethodId( @@ -2620,24 +2942,25 @@ class CronetEngine_Builder extends _$jni.JObject { r'(Z)Lorg/chromium/net/CronetEngine$Builder;', ); - static final _enableBrotli = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallObjectMethod') + static final _enableBrotli = 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.Void>, _$jni.JMethodIDPtr, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); /// from: `public org.chromium.net.CronetEngine$Builder enableBrotli(boolean z)` /// The returned object must be released after use, by calling the [release] method. - CronetEngine_Builder enableBrotli( + CronetEngine$Builder? enableBrotli( bool z, ) { return _enableBrotli(reference.pointer, - _id_enableBrotli as _$jni.JMethodIDPtr, z ? 1 : 0) - .object(const $CronetEngine_Builder$Type()); + _id_enableBrotli as jni$_.JMethodIDPtr, z ? 1 : 0) + .object( + const $CronetEngine$Builder$NullableType()); } static final _id_enableHttpCache = _class.instanceMethodId( @@ -2645,26 +2968,27 @@ class CronetEngine_Builder extends _$jni.JObject { r'(IJ)Lorg/chromium/net/CronetEngine$Builder;', ); - static final _enableHttpCache = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Int32, _$jni.Int64)>)>>( + static final _enableHttpCache = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32, jni$_.Int64)>)>>( 'globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, jni$_.JMethodIDPtr, int, int)>(); /// from: `public org.chromium.net.CronetEngine$Builder enableHttpCache(int i, long j)` /// The returned object must be released after use, by calling the [release] method. - CronetEngine_Builder enableHttpCache( + CronetEngine$Builder? enableHttpCache( int i, int j, ) { return _enableHttpCache( - reference.pointer, _id_enableHttpCache as _$jni.JMethodIDPtr, i, j) - .object(const $CronetEngine_Builder$Type()); + reference.pointer, _id_enableHttpCache as jni$_.JMethodIDPtr, i, j) + .object( + const $CronetEngine$Builder$NullableType()); } static final _id_addQuicHint = _class.instanceMethodId( @@ -2672,35 +2996,33 @@ class CronetEngine_Builder extends _$jni.JObject { r'(Ljava/lang/String;II)Lorg/chromium/net/CronetEngine$Builder;', ); - static final _addQuicHint = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _addQuicHint = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Int32, - _$jni.Int32 + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32 )>)>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int, int)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); /// from: `public org.chromium.net.CronetEngine$Builder addQuicHint(java.lang.String string, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. - CronetEngine_Builder addQuicHint( - _$jni.JString string, + CronetEngine$Builder? addQuicHint( + jni$_.JString? string, int i, int i1, ) { - return _addQuicHint( - reference.pointer, - _id_addQuicHint as _$jni.JMethodIDPtr, - string.reference.pointer, - i, - i1) - .object(const $CronetEngine_Builder$Type()); + final _$string = string?.reference ?? jni$_.jNullReference; + return _addQuicHint(reference.pointer, + _id_addQuicHint as jni$_.JMethodIDPtr, _$string.pointer, i, i1) + .object( + const $CronetEngine$Builder$NullableType()); } static final _id_addPublicKeyPins = _class.instanceMethodId( @@ -2708,43 +3030,47 @@ class CronetEngine_Builder extends _$jni.JObject { r'(Ljava/lang/String;Ljava/util/Set;ZLjava/util/Date;)Lorg/chromium/net/CronetEngine$Builder;', ); - static final _addPublicKeyPins = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _addPublicKeyPins = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Int32, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer )>)>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, int, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.Pointer)>(); /// from: `public org.chromium.net.CronetEngine$Builder addPublicKeyPins(java.lang.String string, java.util.Set set, boolean z, java.util.Date date)` /// The returned object must be released after use, by calling the [release] method. - CronetEngine_Builder addPublicKeyPins( - _$jni.JString string, - _$jni.JSet<_$jni.JArray<_$jni.jbyte>> set, + CronetEngine$Builder? addPublicKeyPins( + jni$_.JString? string, + jni$_.JSet? set, bool z, - _$jni.JObject date, + jni$_.JObject? date, ) { + final _$string = string?.reference ?? jni$_.jNullReference; + final _$set = set?.reference ?? jni$_.jNullReference; + final _$date = date?.reference ?? jni$_.jNullReference; return _addPublicKeyPins( reference.pointer, - _id_addPublicKeyPins as _$jni.JMethodIDPtr, - string.reference.pointer, - set.reference.pointer, + _id_addPublicKeyPins as jni$_.JMethodIDPtr, + _$string.pointer, + _$set.pointer, z ? 1 : 0, - date.reference.pointer) - .object(const $CronetEngine_Builder$Type()); + _$date.pointer) + .object( + const $CronetEngine$Builder$NullableType()); } static final _id_enablePublicKeyPinningBypassForLocalTrustAnchors = @@ -2754,26 +3080,27 @@ class CronetEngine_Builder extends _$jni.JObject { ); static final _enablePublicKeyPinningBypassForLocalTrustAnchors = - _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Int32,)>)>>( + 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.Void>, _$jni.JMethodIDPtr, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); /// from: `public org.chromium.net.CronetEngine$Builder enablePublicKeyPinningBypassForLocalTrustAnchors(boolean z)` /// The returned object must be released after use, by calling the [release] method. - CronetEngine_Builder enablePublicKeyPinningBypassForLocalTrustAnchors( + CronetEngine$Builder? enablePublicKeyPinningBypassForLocalTrustAnchors( bool z, ) { return _enablePublicKeyPinningBypassForLocalTrustAnchors( reference.pointer, _id_enablePublicKeyPinningBypassForLocalTrustAnchors - as _$jni.JMethodIDPtr, + as jni$_.JMethodIDPtr, z ? 1 : 0) - .object(const $CronetEngine_Builder$Type()); + .object( + const $CronetEngine$Builder$NullableType()); } static final _id_build = _class.instanceMethodId( @@ -2781,97 +3108,143 @@ class CronetEngine_Builder extends _$jni.JObject { r'()Lorg/chromium/net/CronetEngine;', ); - static final _build = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _build = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// 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 as _$jni.JMethodIDPtr) - .object(const $CronetEngine$Type()); + CronetEngine? build() { + return _build(reference.pointer, _id_build as jni$_.JMethodIDPtr) + .object(const $CronetEngine$NullableType()); } } -final class $CronetEngine_Builder$Type - extends _$jni.JObjType { - @_$jni.internal - const $CronetEngine_Builder$Type(); +final class $CronetEngine$Builder$NullableType + extends jni$_.JObjType { + @jni$_.internal + const $CronetEngine$Builder$NullableType(); - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override String get signature => r'Lorg/chromium/net/CronetEngine$Builder;'; - @_$jni.internal - @_$core.override - CronetEngine_Builder fromReference(_$jni.JReference reference) => - CronetEngine_Builder.fromReference(reference); + @jni$_.internal + @core$_.override + CronetEngine$Builder? fromReference(jni$_.JReference reference) => + reference.isNull + ? null + : CronetEngine$Builder.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; - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + @core$_.override + int get hashCode => ($CronetEngine$Builder$NullableType).hashCode; - @_$jni.internal - @_$core.override + @core$_.override + bool operator ==(Object other) { + return other.runtimeType == ($CronetEngine$Builder$NullableType) && + other is $CronetEngine$Builder$NullableType; + } +} + +final class $CronetEngine$Builder$Type + extends jni$_.JObjType { + @jni$_.internal + const $CronetEngine$Builder$Type(); + + @jni$_.internal + @core$_.override + String get signature => r'Lorg/chromium/net/CronetEngine$Builder;'; + + @jni$_.internal + @core$_.override + CronetEngine$Builder fromReference(jni$_.JReference reference) => + CronetEngine$Builder.fromReference( + reference, + ); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + + @jni$_.internal + @core$_.override + jni$_.JObjType get nullableType => + const $CronetEngine$Builder$NullableType(); + + @jni$_.internal + @core$_.override final superCount = 1; - @_$core.override - int get hashCode => ($CronetEngine_Builder$Type).hashCode; + @core$_.override + int get hashCode => ($CronetEngine$Builder$Type).hashCode; - @_$core.override + @core$_.override bool operator ==(Object other) { - return other.runtimeType == ($CronetEngine_Builder$Type) && - other is $CronetEngine_Builder$Type; + return other.runtimeType == ($CronetEngine$Builder$Type) && + other is $CronetEngine$Builder$Type; } } /// from: `org.chromium.net.CronetEngine` -class CronetEngine extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; +class CronetEngine extends jni$_.JObject { + @jni$_.internal + @core$_.override + final jni$_.JObjType $type; - @_$jni.internal + @jni$_.internal CronetEngine.fromReference( - _$jni.JReference reference, + jni$_.JReference reference, ) : $type = type, super.fromReference(reference); - static final _class = _$jni.JClass.forName(r'org/chromium/net/CronetEngine'); + static final _class = jni$_.JClass.forName(r'org/chromium/net/CronetEngine'); /// The type which includes information such as the signature of this class. + static const nullableType = $CronetEngine$NullableType(); static const type = $CronetEngine$Type(); static final _id_getVersionString = _class.instanceMethodId( r'getVersionString', r'()Ljava/lang/String;', ); - static final _getVersionString = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getVersionString = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public abstract java.lang.String getVersionString()` /// The returned object must be released after use, by calling the [release] method. - _$jni.JString getVersionString() { + jni$_.JString? getVersionString() { return _getVersionString( - reference.pointer, _id_getVersionString as _$jni.JMethodIDPtr) - .object(const _$jni.JStringType()); + reference.pointer, _id_getVersionString as jni$_.JMethodIDPtr) + .object(const jni$_.JStringNullableType()); } static final _id_shutdown = _class.instanceMethodId( @@ -2879,21 +3252,21 @@ class CronetEngine extends _$jni.JObject { r'()V', ); - static final _shutdown = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _shutdown = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallVoidMethod') .asFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public abstract void shutdown()` void shutdown() { - _shutdown(reference.pointer, _id_shutdown as _$jni.JMethodIDPtr).check(); + _shutdown(reference.pointer, _id_shutdown as jni$_.JMethodIDPtr).check(); } static final _id_startNetLogToFile = _class.instanceMethodId( @@ -2901,27 +3274,28 @@ class CronetEngine extends _$jni.JObject { r'(Ljava/lang/String;Z)V', ); - static final _startNetLogToFile = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni - .VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int32)>)>>( + static final _startNetLogToFile = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_ + .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( 'globalEnv_CallVoidMethod') .asFunction< - _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int)>(); + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); /// from: `public abstract void startNetLogToFile(java.lang.String string, boolean z)` void startNetLogToFile( - _$jni.JString string, + jni$_.JString? string, bool z, ) { + final _$string = string?.reference ?? jni$_.jNullReference; _startNetLogToFile( reference.pointer, - _id_startNetLogToFile as _$jni.JMethodIDPtr, - string.reference.pointer, + _id_startNetLogToFile as jni$_.JMethodIDPtr, + _$string.pointer, z ? 1 : 0) .check(); } @@ -2931,21 +3305,21 @@ class CronetEngine extends _$jni.JObject { r'()V', ); - static final _stopNetLog = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _stopNetLog = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallVoidMethod') .asFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public abstract void stopNetLog()` void stopNetLog() { - _stopNetLog(reference.pointer, _id_stopNetLog as _$jni.JMethodIDPtr) + _stopNetLog(reference.pointer, _id_stopNetLog as jni$_.JMethodIDPtr) .check(); } @@ -2954,24 +3328,24 @@ class CronetEngine extends _$jni.JObject { r'()[B', ); - static final _getGlobalMetricsDeltas = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getGlobalMetricsDeltas = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public abstract byte[] getGlobalMetricsDeltas()` /// The returned object must be released after use, by calling the [release] method. - _$jni.JArray<_$jni.jbyte> getGlobalMetricsDeltas() { + jni$_.JByteArray? getGlobalMetricsDeltas() { return _getGlobalMetricsDeltas( - reference.pointer, _id_getGlobalMetricsDeltas as _$jni.JMethodIDPtr) - .object(const _$jni.JArrayType(_$jni.jbyteType())); + reference.pointer, _id_getGlobalMetricsDeltas as jni$_.JMethodIDPtr) + .object(const jni$_.JByteArrayNullableType()); } static final _id_openConnection = _class.instanceMethodId( @@ -2979,25 +3353,26 @@ class CronetEngine extends _$jni.JObject { r'(Ljava/net/URL;)Ljava/net/URLConnection;', ); - static final _openConnection = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + static final _openConnection = 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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public abstract java.net.URLConnection openConnection(java.net.URL uRL)` /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject openConnection( - URL uRL, + jni$_.JObject? openConnection( + URL? uRL, ) { + final _$uRL = uRL?.reference ?? jni$_.jNullReference; return _openConnection(reference.pointer, - _id_openConnection as _$jni.JMethodIDPtr, uRL.reference.pointer) - .object(const _$jni.JObjectType()); + _id_openConnection as jni$_.JMethodIDPtr, _$uRL.pointer) + .object(const jni$_.JObjectNullableType()); } static final _id_createURLStreamHandlerFactory = _class.instanceMethodId( @@ -3006,24 +3381,24 @@ class CronetEngine extends _$jni.JObject { ); static final _createURLStreamHandlerFactory = - _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public abstract java.net.URLStreamHandlerFactory createURLStreamHandlerFactory()` /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject createURLStreamHandlerFactory() { + jni$_.JObject? createURLStreamHandlerFactory() { return _createURLStreamHandlerFactory(reference.pointer, - _id_createURLStreamHandlerFactory as _$jni.JMethodIDPtr) - .object(const _$jni.JObjectType()); + _id_createURLStreamHandlerFactory as jni$_.JMethodIDPtr) + .object(const jni$_.JObjectNullableType()); } static final _id_newUrlRequestBuilder = _class.instanceMethodId( @@ -3031,67 +3406,113 @@ class CronetEngine extends _$jni.JObject { r'(Ljava/lang/String;Lorg/chromium/net/UrlRequest$Callback;Ljava/util/concurrent/Executor;)Lorg/chromium/net/UrlRequest$Builder;', ); - static final _newUrlRequestBuilder = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _newUrlRequestBuilder = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer )>)>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer)>(); /// from: `public abstract org.chromium.net.UrlRequest$Builder newUrlRequestBuilder(java.lang.String string, org.chromium.net.UrlRequest$Callback callback, java.util.concurrent.Executor executor)` /// The returned object must be released after use, by calling the [release] method. - UrlRequest_Builder newUrlRequestBuilder( - _$jni.JString string, - UrlRequest_Callback callback, - _$jni.JObject executor, + UrlRequest$Builder? newUrlRequestBuilder( + jni$_.JString? string, + UrlRequest$Callback? callback, + jni$_.JObject? executor, ) { + final _$string = string?.reference ?? jni$_.jNullReference; + final _$callback = callback?.reference ?? jni$_.jNullReference; + final _$executor = executor?.reference ?? jni$_.jNullReference; return _newUrlRequestBuilder( reference.pointer, - _id_newUrlRequestBuilder as _$jni.JMethodIDPtr, - string.reference.pointer, - callback.reference.pointer, - executor.reference.pointer) - .object(const $UrlRequest_Builder$Type()); + _id_newUrlRequestBuilder as jni$_.JMethodIDPtr, + _$string.pointer, + _$callback.pointer, + _$executor.pointer) + .object(const $UrlRequest$Builder$NullableType()); } } -final class $CronetEngine$Type extends _$jni.JObjType { - @_$jni.internal - const $CronetEngine$Type(); +final class $CronetEngine$NullableType extends jni$_.JObjType { + @jni$_.internal + const $CronetEngine$NullableType(); - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override String get signature => r'Lorg/chromium/net/CronetEngine;'; - @_$jni.internal - @_$core.override - CronetEngine fromReference(_$jni.JReference reference) => - CronetEngine.fromReference(reference); + @jni$_.internal + @core$_.override + CronetEngine? fromReference(jni$_.JReference reference) => reference.isNull + ? null + : CronetEngine.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 => ($CronetEngine$NullableType).hashCode; - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + @core$_.override + bool operator ==(Object other) { + return other.runtimeType == ($CronetEngine$NullableType) && + other is $CronetEngine$NullableType; + } +} - @_$jni.internal - @_$core.override +final class $CronetEngine$Type extends jni$_.JObjType { + @jni$_.internal + const $CronetEngine$Type(); + + @jni$_.internal + @core$_.override + String get signature => r'Lorg/chromium/net/CronetEngine;'; + + @jni$_.internal + @core$_.override + CronetEngine fromReference(jni$_.JReference reference) => + CronetEngine.fromReference( + reference, + ); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + + @jni$_.internal + @core$_.override + jni$_.JObjType get nullableType => + const $CronetEngine$NullableType(); + + @jni$_.internal + @core$_.override final superCount = 1; - @_$core.override + @core$_.override int get hashCode => ($CronetEngine$Type).hashCode; - @_$core.override + @core$_.override bool operator ==(Object other) { return other.runtimeType == ($CronetEngine$Type) && other is $CronetEngine$Type; @@ -3099,49 +3520,94 @@ final class $CronetEngine$Type extends _$jni.JObjType { } /// from: `org.chromium.net.CronetException` -class CronetException extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; +class CronetException extends jni$_.JObject { + @jni$_.internal + @core$_.override + final jni$_.JObjType $type; - @_$jni.internal + @jni$_.internal CronetException.fromReference( - _$jni.JReference reference, + jni$_.JReference reference, ) : $type = type, super.fromReference(reference); static final _class = - _$jni.JClass.forName(r'org/chromium/net/CronetException'); + jni$_.JClass.forName(r'org/chromium/net/CronetException'); /// The type which includes information such as the signature of this class. + static const nullableType = $CronetException$NullableType(); static const type = $CronetException$Type(); } -final class $CronetException$Type extends _$jni.JObjType { - @_$jni.internal - const $CronetException$Type(); +final class $CronetException$NullableType + extends jni$_.JObjType { + @jni$_.internal + const $CronetException$NullableType(); - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override String get signature => r'Lorg/chromium/net/CronetException;'; - @_$jni.internal - @_$core.override - CronetException fromReference(_$jni.JReference reference) => - CronetException.fromReference(reference); + @jni$_.internal + @core$_.override + CronetException? fromReference(jni$_.JReference reference) => reference.isNull + ? null + : CronetException.fromReference( + reference, + ); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + @jni$_.internal + @core$_.override + jni$_.JObjType get nullableType => this; - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override final superCount = 1; - @_$core.override + @core$_.override + int get hashCode => ($CronetException$NullableType).hashCode; + + @core$_.override + bool operator ==(Object other) { + return other.runtimeType == ($CronetException$NullableType) && + other is $CronetException$NullableType; + } +} + +final class $CronetException$Type extends jni$_.JObjType { + @jni$_.internal + const $CronetException$Type(); + + @jni$_.internal + @core$_.override + String get signature => r'Lorg/chromium/net/CronetException;'; + + @jni$_.internal + @core$_.override + CronetException fromReference(jni$_.JReference reference) => + CronetException.fromReference( + reference, + ); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + + @jni$_.internal + @core$_.override + jni$_.JObjType get nullableType => + const $CronetException$NullableType(); + + @jni$_.internal + @core$_.override + final superCount = 1; + + @core$_.override int get hashCode => ($CronetException$Type).hashCode; - @_$core.override + @core$_.override bool operator ==(Object other) { return other.runtimeType == ($CronetException$Type) && other is $CronetException$Type; @@ -3149,46 +3615,48 @@ final class $CronetException$Type extends _$jni.JObjType { } /// from: `org.chromium.net.UploadDataProviders` -class UploadDataProviders extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; +class UploadDataProviders extends jni$_.JObject { + @jni$_.internal + @core$_.override + final jni$_.JObjType $type; - @_$jni.internal + @jni$_.internal UploadDataProviders.fromReference( - _$jni.JReference reference, + jni$_.JReference reference, ) : $type = type, super.fromReference(reference); static final _class = - _$jni.JClass.forName(r'org/chromium/net/UploadDataProviders'); + jni$_.JClass.forName(r'org/chromium/net/UploadDataProviders'); /// The type which includes information such as the signature of this class. + static const nullableType = $UploadDataProviders$NullableType(); static const type = $UploadDataProviders$Type(); static final _id_create = _class.staticMethodId( r'create', r'(Ljava/io/File;)Lorg/chromium/net/UploadDataProvider;', ); - static final _create = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + static final _create = 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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// 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 jni$_.JObject? create( + jni$_.JObject? file, ) { - return _create(_class.reference.pointer, _id_create as _$jni.JMethodIDPtr, - file.reference.pointer) - .object(const _$jni.JObjectType()); + final _$file = file?.reference ?? jni$_.jNullReference; + return _create(_class.reference.pointer, _id_create as jni$_.JMethodIDPtr, + _$file.pointer) + .object(const jni$_.JObjectNullableType()); } static final _id_create$1 = _class.staticMethodId( @@ -3196,27 +3664,27 @@ class UploadDataProviders extends _$jni.JObject { r'(Landroid/os/ParcelFileDescriptor;)Lorg/chromium/net/UploadDataProvider;', ); - static final _create$1 = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + static final _create$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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `static public org.chromium.net.UploadDataProvider create(android.os.ParcelFileDescriptor parcelFileDescriptor)` /// The returned object must be released after use, by calling the [release] method. - static _$jni.JObject create$1( - _$jni.JObject parcelFileDescriptor, + static jni$_.JObject? create$1( + jni$_.JObject? parcelFileDescriptor, ) { - return _create$1( - _class.reference.pointer, - _id_create$1 as _$jni.JMethodIDPtr, - parcelFileDescriptor.reference.pointer) - .object(const _$jni.JObjectType()); + final _$parcelFileDescriptor = + parcelFileDescriptor?.reference ?? jni$_.jNullReference; + return _create$1(_class.reference.pointer, + _id_create$1 as jni$_.JMethodIDPtr, _$parcelFileDescriptor.pointer) + .object(const jni$_.JObjectNullableType()); } static final _id_create$2 = _class.staticMethodId( @@ -3224,25 +3692,26 @@ class UploadDataProviders extends _$jni.JObject { r'(Ljava/nio/ByteBuffer;)Lorg/chromium/net/UploadDataProvider;', ); - static final _create$2 = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + static final _create$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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `static public org.chromium.net.UploadDataProvider create(java.nio.ByteBuffer byteBuffer)` /// The returned object must be released after use, by calling the [release] method. - static _$jni.JObject create$2( - _$jni.JByteBuffer byteBuffer, + static jni$_.JObject? create$2( + jni$_.JByteBuffer? byteBuffer, ) { + final _$byteBuffer = byteBuffer?.reference ?? jni$_.jNullReference; return _create$2(_class.reference.pointer, - _id_create$2 as _$jni.JMethodIDPtr, byteBuffer.reference.pointer) - .object(const _$jni.JObjectType()); + _id_create$2 as jni$_.JMethodIDPtr, _$byteBuffer.pointer) + .object(const jni$_.JObjectNullableType()); } static final _id_create$3 = _class.staticMethodId( @@ -3250,31 +3719,32 @@ class UploadDataProviders extends _$jni.JObject { r'([BII)Lorg/chromium/net/UploadDataProvider;', ); - static final _create$3 = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _create$3 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Int32, - _$jni.Int32 + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32 )>)>>('globalEnv_CallStaticObjectMethod') .asFunction< - _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int, int)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); /// from: `static public org.chromium.net.UploadDataProvider create(byte[] bs, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. - static _$jni.JObject create$3( - _$jni.JArray<_$jni.jbyte> bs, + static jni$_.JObject? create$3( + jni$_.JByteArray? bs, int i, int i1, ) { + final _$bs = bs?.reference ?? jni$_.jNullReference; return _create$3(_class.reference.pointer, - _id_create$3 as _$jni.JMethodIDPtr, bs.reference.pointer, i, i1) - .object(const _$jni.JObjectType()); + _id_create$3 as jni$_.JMethodIDPtr, _$bs.pointer, i, i1) + .object(const jni$_.JObjectNullableType()); } static final _id_create$4 = _class.staticMethodId( @@ -3282,54 +3752,100 @@ class UploadDataProviders extends _$jni.JObject { r'([B)Lorg/chromium/net/UploadDataProvider;', ); - static final _create$4 = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + static final _create$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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `static public org.chromium.net.UploadDataProvider create(byte[] bs)` /// The returned object must be released after use, by calling the [release] method. - static _$jni.JObject create$4( - _$jni.JArray<_$jni.jbyte> bs, + static jni$_.JObject? create$4( + jni$_.JByteArray? bs, ) { + final _$bs = bs?.reference ?? jni$_.jNullReference; return _create$4(_class.reference.pointer, - _id_create$4 as _$jni.JMethodIDPtr, bs.reference.pointer) - .object(const _$jni.JObjectType()); + _id_create$4 as jni$_.JMethodIDPtr, _$bs.pointer) + .object(const jni$_.JObjectNullableType()); } } -final class $UploadDataProviders$Type - extends _$jni.JObjType { - @_$jni.internal - const $UploadDataProviders$Type(); +final class $UploadDataProviders$NullableType + extends jni$_.JObjType { + @jni$_.internal + const $UploadDataProviders$NullableType(); - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override String get signature => r'Lorg/chromium/net/UploadDataProviders;'; - @_$jni.internal - @_$core.override - UploadDataProviders fromReference(_$jni.JReference reference) => - UploadDataProviders.fromReference(reference); + @jni$_.internal + @core$_.override + UploadDataProviders? fromReference(jni$_.JReference reference) => + reference.isNull + ? null + : UploadDataProviders.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; - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + @core$_.override + int get hashCode => ($UploadDataProviders$NullableType).hashCode; - @_$jni.internal - @_$core.override + @core$_.override + bool operator ==(Object other) { + return other.runtimeType == ($UploadDataProviders$NullableType) && + other is $UploadDataProviders$NullableType; + } +} + +final class $UploadDataProviders$Type + extends jni$_.JObjType { + @jni$_.internal + const $UploadDataProviders$Type(); + + @jni$_.internal + @core$_.override + String get signature => r'Lorg/chromium/net/UploadDataProviders;'; + + @jni$_.internal + @core$_.override + UploadDataProviders fromReference(jni$_.JReference reference) => + UploadDataProviders.fromReference( + reference, + ); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + + @jni$_.internal + @core$_.override + jni$_.JObjType get nullableType => + const $UploadDataProviders$NullableType(); + + @jni$_.internal + @core$_.override final superCount = 1; - @_$core.override + @core$_.override int get hashCode => ($UploadDataProviders$Type).hashCode; - @_$core.override + @core$_.override bool operator ==(Object other) { return other.runtimeType == ($UploadDataProviders$Type) && other is $UploadDataProviders$Type; @@ -3337,22 +3853,23 @@ final class $UploadDataProviders$Type } /// from: `org.chromium.net.UrlRequest$Builder` -class UrlRequest_Builder extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; - - @_$jni.internal - UrlRequest_Builder.fromReference( - _$jni.JReference reference, +class UrlRequest$Builder extends jni$_.JObject { + @jni$_.internal + @core$_.override + final jni$_.JObjType $type; + + @jni$_.internal + UrlRequest$Builder.fromReference( + jni$_.JReference reference, ) : $type = type, super.fromReference(reference); static final _class = - _$jni.JClass.forName(r'org/chromium/net/UrlRequest$Builder'); + jni$_.JClass.forName(r'org/chromium/net/UrlRequest$Builder'); /// The type which includes information such as the signature of this class. - static const type = $UrlRequest_Builder$Type(); + static const nullableType = $UrlRequest$Builder$NullableType(); + static const type = $UrlRequest$Builder$Type(); /// from: `static public final int REQUEST_PRIORITY_IDLE` static const REQUEST_PRIORITY_IDLE = 0; @@ -3373,25 +3890,26 @@ class UrlRequest_Builder extends _$jni.JObject { r'(Ljava/lang/String;)Lorg/chromium/net/UrlRequest$Builder;', ); - static final _setHttpMethod = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + static final _setHttpMethod = 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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public abstract org.chromium.net.UrlRequest$Builder setHttpMethod(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - UrlRequest_Builder setHttpMethod( - _$jni.JString string, + UrlRequest$Builder? setHttpMethod( + jni$_.JString? string, ) { + final _$string = string?.reference ?? jni$_.jNullReference; return _setHttpMethod(reference.pointer, - _id_setHttpMethod as _$jni.JMethodIDPtr, string.reference.pointer) - .object(const $UrlRequest_Builder$Type()); + _id_setHttpMethod as jni$_.JMethodIDPtr, _$string.pointer) + .object(const $UrlRequest$Builder$NullableType()); } static final _id_addHeader = _class.instanceMethodId( @@ -3399,32 +3917,34 @@ class UrlRequest_Builder extends _$jni.JObject { r'(Ljava/lang/String;Ljava/lang/String;)Lorg/chromium/net/UrlRequest$Builder;', ); - static final _addHeader = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _addHeader = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer )>)>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); /// from: `public abstract org.chromium.net.UrlRequest$Builder addHeader(java.lang.String string, java.lang.String string1)` /// The returned object must be released after use, by calling the [release] method. - UrlRequest_Builder addHeader( - _$jni.JString string, - _$jni.JString string1, + UrlRequest$Builder? addHeader( + jni$_.JString? string, + jni$_.JString? string1, ) { - return _addHeader(reference.pointer, _id_addHeader as _$jni.JMethodIDPtr, - string.reference.pointer, string1.reference.pointer) - .object(const $UrlRequest_Builder$Type()); + final _$string = string?.reference ?? jni$_.jNullReference; + final _$string1 = string1?.reference ?? jni$_.jNullReference; + return _addHeader(reference.pointer, _id_addHeader as jni$_.JMethodIDPtr, + _$string.pointer, _$string1.pointer) + .object(const $UrlRequest$Builder$NullableType()); } static final _id_disableCache = _class.instanceMethodId( @@ -3432,24 +3952,24 @@ class UrlRequest_Builder extends _$jni.JObject { r'()Lorg/chromium/net/UrlRequest$Builder;', ); - static final _disableCache = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _disableCache = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// 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() { + UrlRequest$Builder? disableCache() { return _disableCache( - reference.pointer, _id_disableCache as _$jni.JMethodIDPtr) - .object(const $UrlRequest_Builder$Type()); + reference.pointer, _id_disableCache as jni$_.JMethodIDPtr) + .object(const $UrlRequest$Builder$NullableType()); } static final _id_setPriority = _class.instanceMethodId( @@ -3457,24 +3977,24 @@ class UrlRequest_Builder extends _$jni.JObject { r'(I)Lorg/chromium/net/UrlRequest$Builder;', ); - static final _setPriority = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallObjectMethod') + static final _setPriority = 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.Void>, _$jni.JMethodIDPtr, int)>(); + jni$_.JniResult Function( + jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); /// from: `public abstract org.chromium.net.UrlRequest$Builder setPriority(int i)` /// The returned object must be released after use, by calling the [release] method. - UrlRequest_Builder setPriority( + UrlRequest$Builder? setPriority( int i, ) { return _setPriority( - reference.pointer, _id_setPriority as _$jni.JMethodIDPtr, i) - .object(const $UrlRequest_Builder$Type()); + reference.pointer, _id_setPriority as jni$_.JMethodIDPtr, i) + .object(const $UrlRequest$Builder$NullableType()); } static final _id_setUploadDataProvider = _class.instanceMethodId( @@ -3482,35 +4002,38 @@ class UrlRequest_Builder extends _$jni.JObject { r'(Lorg/chromium/net/UploadDataProvider;Ljava/util/concurrent/Executor;)Lorg/chromium/net/UrlRequest$Builder;', ); - static final _setUploadDataProvider = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _setUploadDataProvider = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer )>)>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); /// 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, + UrlRequest$Builder? setUploadDataProvider( + jni$_.JObject? uploadDataProvider, + jni$_.JObject? executor, ) { + final _$uploadDataProvider = + uploadDataProvider?.reference ?? jni$_.jNullReference; + final _$executor = executor?.reference ?? jni$_.jNullReference; return _setUploadDataProvider( reference.pointer, - _id_setUploadDataProvider as _$jni.JMethodIDPtr, - uploadDataProvider.reference.pointer, - executor.reference.pointer) - .object(const $UrlRequest_Builder$Type()); + _id_setUploadDataProvider as jni$_.JMethodIDPtr, + _$uploadDataProvider.pointer, + _$executor.pointer) + .object(const $UrlRequest$Builder$NullableType()); } static final _id_allowDirectExecutor = _class.instanceMethodId( @@ -3518,24 +4041,24 @@ class UrlRequest_Builder extends _$jni.JObject { r'()Lorg/chromium/net/UrlRequest$Builder;', ); - static final _allowDirectExecutor = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _allowDirectExecutor = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// 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() { + UrlRequest$Builder? allowDirectExecutor() { return _allowDirectExecutor( - reference.pointer, _id_allowDirectExecutor as _$jni.JMethodIDPtr) - .object(const $UrlRequest_Builder$Type()); + reference.pointer, _id_allowDirectExecutor as jni$_.JMethodIDPtr) + .object(const $UrlRequest$Builder$NullableType()); } static final _id_build = _class.instanceMethodId( @@ -3543,111 +4066,161 @@ class UrlRequest_Builder extends _$jni.JObject { r'()Lorg/chromium/net/UrlRequest;', ); - static final _build = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _build = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// 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 as _$jni.JMethodIDPtr) - .object(const $UrlRequest$Type()); + UrlRequest? build() { + return _build(reference.pointer, _id_build as jni$_.JMethodIDPtr) + .object(const $UrlRequest$NullableType()); } } -final class $UrlRequest_Builder$Type - extends _$jni.JObjType { - @_$jni.internal - const $UrlRequest_Builder$Type(); +final class $UrlRequest$Builder$NullableType + extends jni$_.JObjType { + @jni$_.internal + const $UrlRequest$Builder$NullableType(); - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override String get signature => r'Lorg/chromium/net/UrlRequest$Builder;'; - @_$jni.internal - @_$core.override - UrlRequest_Builder fromReference(_$jni.JReference reference) => - UrlRequest_Builder.fromReference(reference); + @jni$_.internal + @core$_.override + UrlRequest$Builder? fromReference(jni$_.JReference reference) => + reference.isNull + ? null + : UrlRequest$Builder.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 => ($UrlRequest$Builder$NullableType).hashCode; - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + @core$_.override + bool operator ==(Object other) { + return other.runtimeType == ($UrlRequest$Builder$NullableType) && + other is $UrlRequest$Builder$NullableType; + } +} - @_$jni.internal - @_$core.override +final class $UrlRequest$Builder$Type + extends jni$_.JObjType { + @jni$_.internal + const $UrlRequest$Builder$Type(); + + @jni$_.internal + @core$_.override + String get signature => r'Lorg/chromium/net/UrlRequest$Builder;'; + + @jni$_.internal + @core$_.override + UrlRequest$Builder fromReference(jni$_.JReference reference) => + UrlRequest$Builder.fromReference( + reference, + ); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + + @jni$_.internal + @core$_.override + jni$_.JObjType get nullableType => + const $UrlRequest$Builder$NullableType(); + + @jni$_.internal + @core$_.override final superCount = 1; - @_$core.override - int get hashCode => ($UrlRequest_Builder$Type).hashCode; + @core$_.override + int get hashCode => ($UrlRequest$Builder$Type).hashCode; - @_$core.override + @core$_.override bool operator ==(Object other) { - return other.runtimeType == ($UrlRequest_Builder$Type) && - other is $UrlRequest_Builder$Type; + return other.runtimeType == ($UrlRequest$Builder$Type) && + other is $UrlRequest$Builder$Type; } } /// from: `org.chromium.net.UrlRequest$Callback` -class UrlRequest_Callback extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; - - @_$jni.internal - UrlRequest_Callback.fromReference( - _$jni.JReference reference, +class UrlRequest$Callback extends jni$_.JObject { + @jni$_.internal + @core$_.override + final jni$_.JObjType $type; + + @jni$_.internal + UrlRequest$Callback.fromReference( + jni$_.JReference reference, ) : $type = type, super.fromReference(reference); static final _class = - _$jni.JClass.forName(r'org/chromium/net/UrlRequest$Callback'); + jni$_.JClass.forName(r'org/chromium/net/UrlRequest$Callback'); /// The type which includes information such as the signature of this class. - static const type = $UrlRequest_Callback$Type(); + static const nullableType = $UrlRequest$Callback$NullableType(); + static const type = $UrlRequest$Callback$Type(); static final _id_onRedirectReceived = _class.instanceMethodId( r'onRedirectReceived', r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/lang/String;)V', ); - static final _onRedirectReceived = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _onRedirectReceived = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer )>)>>('globalEnv_CallVoidMethod') .asFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer)>(); /// from: `public abstract void onRedirectReceived(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, java.lang.String string)` void onRedirectReceived( - UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, - _$jni.JString string, + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, + jni$_.JString? string, ) { + final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; + final _$urlResponseInfo = + urlResponseInfo?.reference ?? jni$_.jNullReference; + final _$string = string?.reference ?? jni$_.jNullReference; _onRedirectReceived( reference.pointer, - _id_onRedirectReceived as _$jni.JMethodIDPtr, - urlRequest.reference.pointer, - urlResponseInfo.reference.pointer, - string.reference.pointer) + _id_onRedirectReceived as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + _$string.pointer) .check(); } @@ -3656,33 +4229,36 @@ class UrlRequest_Callback extends _$jni.JObject { r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V', ); - static final _onResponseStarted = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _onResponseStarted = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer )>)>>('globalEnv_CallVoidMethod') .asFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); /// from: `public abstract void onResponseStarted(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo)` void onResponseStarted( - UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, ) { + final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; + final _$urlResponseInfo = + urlResponseInfo?.reference ?? jni$_.jNullReference; _onResponseStarted( reference.pointer, - _id_onResponseStarted as _$jni.JMethodIDPtr, - urlRequest.reference.pointer, - urlResponseInfo.reference.pointer) + _id_onResponseStarted as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer) .check(); } @@ -3691,37 +4267,41 @@ class UrlRequest_Callback extends _$jni.JObject { r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/nio/ByteBuffer;)V', ); - static final _onReadCompleted = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _onReadCompleted = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer )>)>>('globalEnv_CallVoidMethod') .asFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer)>(); /// from: `public abstract void onReadCompleted(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, java.nio.ByteBuffer byteBuffer)` void onReadCompleted( - UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, - _$jni.JByteBuffer byteBuffer, + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, + jni$_.JByteBuffer? byteBuffer, ) { + final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; + final _$urlResponseInfo = + urlResponseInfo?.reference ?? jni$_.jNullReference; + final _$byteBuffer = byteBuffer?.reference ?? jni$_.jNullReference; _onReadCompleted( reference.pointer, - _id_onReadCompleted as _$jni.JMethodIDPtr, - urlRequest.reference.pointer, - urlResponseInfo.reference.pointer, - byteBuffer.reference.pointer) + _id_onReadCompleted as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + _$byteBuffer.pointer) .check(); } @@ -3730,30 +4310,33 @@ class UrlRequest_Callback extends _$jni.JObject { r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V', ); - static final _onSucceeded = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _onSucceeded = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer )>)>>('globalEnv_CallVoidMethod') .asFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); /// from: `public abstract void onSucceeded(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo)` void onSucceeded( - UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, ) { - _onSucceeded(reference.pointer, _id_onSucceeded as _$jni.JMethodIDPtr, - urlRequest.reference.pointer, urlResponseInfo.reference.pointer) + final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; + final _$urlResponseInfo = + urlResponseInfo?.reference ?? jni$_.jNullReference; + _onSucceeded(reference.pointer, _id_onSucceeded as jni$_.JMethodIDPtr, + _$urlRequest.pointer, _$urlResponseInfo.pointer) .check(); } @@ -3762,37 +4345,42 @@ class UrlRequest_Callback extends _$jni.JObject { r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Lorg/chromium/net/CronetException;)V', ); - static final _onFailed = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _onFailed = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer )>)>>('globalEnv_CallVoidMethod') .asFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer)>(); /// from: `public abstract void onFailed(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo, org.chromium.net.CronetException cronetException)` void onFailed( - UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, - CronetException cronetException, + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, + CronetException? cronetException, ) { + final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; + final _$urlResponseInfo = + urlResponseInfo?.reference ?? jni$_.jNullReference; + final _$cronetException = + cronetException?.reference ?? jni$_.jNullReference; _onFailed( reference.pointer, - _id_onFailed as _$jni.JMethodIDPtr, - urlRequest.reference.pointer, - urlResponseInfo.reference.pointer, - cronetException.reference.pointer) + _id_onFailed as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + _$cronetException.pointer) .check(); } @@ -3801,83 +4389,132 @@ class UrlRequest_Callback extends _$jni.JObject { r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V', ); - static final _onCanceled = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< + static final _onCanceled = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< ( - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void> + jni$_.Pointer, + jni$_.Pointer )>)>>('globalEnv_CallVoidMethod') .asFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - _$jni.Pointer<_$jni.Void>)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); /// from: `public void onCanceled(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo)` void onCanceled( - UrlRequest urlRequest, - UrlResponseInfo urlResponseInfo, + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, ) { - _onCanceled(reference.pointer, _id_onCanceled as _$jni.JMethodIDPtr, - urlRequest.reference.pointer, urlResponseInfo.reference.pointer) + final _$urlRequest = urlRequest?.reference ?? jni$_.jNullReference; + final _$urlResponseInfo = + urlResponseInfo?.reference ?? jni$_.jNullReference; + _onCanceled(reference.pointer, _id_onCanceled as jni$_.JMethodIDPtr, + _$urlRequest.pointer, _$urlResponseInfo.pointer) .check(); } } -final class $UrlRequest_Callback$Type - extends _$jni.JObjType { - @_$jni.internal - const $UrlRequest_Callback$Type(); +final class $UrlRequest$Callback$NullableType + extends jni$_.JObjType { + @jni$_.internal + const $UrlRequest$Callback$NullableType(); - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override String get signature => r'Lorg/chromium/net/UrlRequest$Callback;'; - @_$jni.internal - @_$core.override - UrlRequest_Callback fromReference(_$jni.JReference reference) => - UrlRequest_Callback.fromReference(reference); + @jni$_.internal + @core$_.override + UrlRequest$Callback? fromReference(jni$_.JReference reference) => + reference.isNull + ? null + : UrlRequest$Callback.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 => ($UrlRequest$Callback$NullableType).hashCode; - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + @core$_.override + bool operator ==(Object other) { + return other.runtimeType == ($UrlRequest$Callback$NullableType) && + other is $UrlRequest$Callback$NullableType; + } +} + +final class $UrlRequest$Callback$Type + extends jni$_.JObjType { + @jni$_.internal + const $UrlRequest$Callback$Type(); + + @jni$_.internal + @core$_.override + String get signature => r'Lorg/chromium/net/UrlRequest$Callback;'; - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override + UrlRequest$Callback fromReference(jni$_.JReference reference) => + UrlRequest$Callback.fromReference( + reference, + ); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + + @jni$_.internal + @core$_.override + jni$_.JObjType get nullableType => + const $UrlRequest$Callback$NullableType(); + + @jni$_.internal + @core$_.override final superCount = 1; - @_$core.override - int get hashCode => ($UrlRequest_Callback$Type).hashCode; + @core$_.override + int get hashCode => ($UrlRequest$Callback$Type).hashCode; - @_$core.override + @core$_.override bool operator ==(Object other) { - return other.runtimeType == ($UrlRequest_Callback$Type) && - other is $UrlRequest_Callback$Type; + return other.runtimeType == ($UrlRequest$Callback$Type) && + other is $UrlRequest$Callback$Type; } } /// from: `org.chromium.net.UrlRequest$Status` -class UrlRequest_Status extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; - - @_$jni.internal - UrlRequest_Status.fromReference( - _$jni.JReference reference, +class UrlRequest$Status extends jni$_.JObject { + @jni$_.internal + @core$_.override + final jni$_.JObjType $type; + + @jni$_.internal + UrlRequest$Status.fromReference( + jni$_.JReference reference, ) : $type = type, super.fromReference(reference); static final _class = - _$jni.JClass.forName(r'org/chromium/net/UrlRequest$Status'); + jni$_.JClass.forName(r'org/chromium/net/UrlRequest$Status'); /// The type which includes information such as the signature of this class. - static const type = $UrlRequest_Status$Type(); + static const nullableType = $UrlRequest$Status$NullableType(); + static const type = $UrlRequest$Status$Type(); /// from: `static public final int INVALID` static const INVALID = -1; @@ -3928,145 +4565,237 @@ class UrlRequest_Status extends _$jni.JObject { static const READING_RESPONSE = 14; } -final class $UrlRequest_Status$Type extends _$jni.JObjType { - @_$jni.internal - const $UrlRequest_Status$Type(); +final class $UrlRequest$Status$NullableType + extends jni$_.JObjType { + @jni$_.internal + const $UrlRequest$Status$NullableType(); - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override String get signature => r'Lorg/chromium/net/UrlRequest$Status;'; - @_$jni.internal - @_$core.override - UrlRequest_Status fromReference(_$jni.JReference reference) => - UrlRequest_Status.fromReference(reference); + @jni$_.internal + @core$_.override + UrlRequest$Status? fromReference(jni$_.JReference reference) => + reference.isNull + ? null + : UrlRequest$Status.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 => ($UrlRequest$Status$NullableType).hashCode; + + @core$_.override + bool operator ==(Object other) { + return other.runtimeType == ($UrlRequest$Status$NullableType) && + other is $UrlRequest$Status$NullableType; + } +} + +final class $UrlRequest$Status$Type extends jni$_.JObjType { + @jni$_.internal + const $UrlRequest$Status$Type(); - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + @jni$_.internal + @core$_.override + String get signature => r'Lorg/chromium/net/UrlRequest$Status;'; - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override + UrlRequest$Status fromReference(jni$_.JReference reference) => + UrlRequest$Status.fromReference( + reference, + ); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + + @jni$_.internal + @core$_.override + jni$_.JObjType get nullableType => + const $UrlRequest$Status$NullableType(); + + @jni$_.internal + @core$_.override final superCount = 1; - @_$core.override - int get hashCode => ($UrlRequest_Status$Type).hashCode; + @core$_.override + int get hashCode => ($UrlRequest$Status$Type).hashCode; - @_$core.override + @core$_.override bool operator ==(Object other) { - return other.runtimeType == ($UrlRequest_Status$Type) && - other is $UrlRequest_Status$Type; + return other.runtimeType == ($UrlRequest$Status$Type) && + other is $UrlRequest$Status$Type; } } /// from: `org.chromium.net.UrlRequest$StatusListener` -class UrlRequest_StatusListener extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; - - @_$jni.internal - UrlRequest_StatusListener.fromReference( - _$jni.JReference reference, +class UrlRequest$StatusListener extends jni$_.JObject { + @jni$_.internal + @core$_.override + final jni$_.JObjType $type; + + @jni$_.internal + UrlRequest$StatusListener.fromReference( + jni$_.JReference reference, ) : $type = type, super.fromReference(reference); static final _class = - _$jni.JClass.forName(r'org/chromium/net/UrlRequest$StatusListener'); + jni$_.JClass.forName(r'org/chromium/net/UrlRequest$StatusListener'); /// The type which includes information such as the signature of this class. - static const type = $UrlRequest_StatusListener$Type(); + static const nullableType = $UrlRequest$StatusListener$NullableType(); + static const type = $UrlRequest$StatusListener$Type(); static final _id_onStatus = _class.instanceMethodId( r'onStatus', r'(I)V', ); - static final _onStatus = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallVoidMethod') + static final _onStatus = 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.Void>, _$jni.JMethodIDPtr, int)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); /// from: `public abstract void onStatus(int i)` void onStatus( int i, ) { - _onStatus(reference.pointer, _id_onStatus as _$jni.JMethodIDPtr, i).check(); + _onStatus(reference.pointer, _id_onStatus as jni$_.JMethodIDPtr, i).check(); } } -final class $UrlRequest_StatusListener$Type - extends _$jni.JObjType { - @_$jni.internal - const $UrlRequest_StatusListener$Type(); +final class $UrlRequest$StatusListener$NullableType + extends jni$_.JObjType { + @jni$_.internal + const $UrlRequest$StatusListener$NullableType(); - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override String get signature => r'Lorg/chromium/net/UrlRequest$StatusListener;'; - @_$jni.internal - @_$core.override - UrlRequest_StatusListener fromReference(_$jni.JReference reference) => - UrlRequest_StatusListener.fromReference(reference); + @jni$_.internal + @core$_.override + UrlRequest$StatusListener? fromReference(jni$_.JReference reference) => + reference.isNull + ? null + : UrlRequest$StatusListener.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 => ($UrlRequest$StatusListener$NullableType).hashCode; + + @core$_.override + bool operator ==(Object other) { + return other.runtimeType == ($UrlRequest$StatusListener$NullableType) && + other is $UrlRequest$StatusListener$NullableType; + } +} - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); +final class $UrlRequest$StatusListener$Type + extends jni$_.JObjType { + @jni$_.internal + const $UrlRequest$StatusListener$Type(); - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override + String get signature => r'Lorg/chromium/net/UrlRequest$StatusListener;'; + + @jni$_.internal + @core$_.override + UrlRequest$StatusListener fromReference(jni$_.JReference reference) => + UrlRequest$StatusListener.fromReference( + reference, + ); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + + @jni$_.internal + @core$_.override + jni$_.JObjType get nullableType => + const $UrlRequest$StatusListener$NullableType(); + + @jni$_.internal + @core$_.override final superCount = 1; - @_$core.override - int get hashCode => ($UrlRequest_StatusListener$Type).hashCode; + @core$_.override + int get hashCode => ($UrlRequest$StatusListener$Type).hashCode; - @_$core.override + @core$_.override bool operator ==(Object other) { - return other.runtimeType == ($UrlRequest_StatusListener$Type) && - other is $UrlRequest_StatusListener$Type; + return other.runtimeType == ($UrlRequest$StatusListener$Type) && + other is $UrlRequest$StatusListener$Type; } } /// from: `org.chromium.net.UrlRequest` -class UrlRequest extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; +class UrlRequest extends jni$_.JObject { + @jni$_.internal + @core$_.override + final jni$_.JObjType $type; - @_$jni.internal + @jni$_.internal UrlRequest.fromReference( - _$jni.JReference reference, + jni$_.JReference reference, ) : $type = type, super.fromReference(reference); - static final _class = _$jni.JClass.forName(r'org/chromium/net/UrlRequest'); + static final _class = jni$_.JClass.forName(r'org/chromium/net/UrlRequest'); /// The type which includes information such as the signature of this class. + static const nullableType = $UrlRequest$NullableType(); static const type = $UrlRequest$Type(); static final _id_start = _class.instanceMethodId( r'start', r'()V', ); - static final _start = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _start = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallVoidMethod') .asFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public abstract void start()` void start() { - _start(reference.pointer, _id_start as _$jni.JMethodIDPtr).check(); + _start(reference.pointer, _id_start as jni$_.JMethodIDPtr).check(); } static final _id_followRedirect = _class.instanceMethodId( @@ -4074,21 +4803,21 @@ class UrlRequest extends _$jni.JObject { r'()V', ); - static final _followRedirect = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _followRedirect = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallVoidMethod') .asFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public abstract void followRedirect()` void followRedirect() { - _followRedirect(reference.pointer, _id_followRedirect as _$jni.JMethodIDPtr) + _followRedirect(reference.pointer, _id_followRedirect as jni$_.JMethodIDPtr) .check(); } @@ -4097,23 +4826,24 @@ class UrlRequest extends _$jni.JObject { r'(Ljava/nio/ByteBuffer;)V', ); - static final _read = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + static final _read = 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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public abstract void read(java.nio.ByteBuffer byteBuffer)` void read( - _$jni.JByteBuffer byteBuffer, + jni$_.JByteBuffer? byteBuffer, ) { - _read(reference.pointer, _id_read as _$jni.JMethodIDPtr, - byteBuffer.reference.pointer) + final _$byteBuffer = byteBuffer?.reference ?? jni$_.jNullReference; + _read(reference.pointer, _id_read as jni$_.JMethodIDPtr, + _$byteBuffer.pointer) .check(); } @@ -4122,21 +4852,21 @@ class UrlRequest extends _$jni.JObject { r'()V', ); - static final _cancel = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _cancel = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallVoidMethod') .asFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public abstract void cancel()` void cancel() { - _cancel(reference.pointer, _id_cancel as _$jni.JMethodIDPtr).check(); + _cancel(reference.pointer, _id_cancel as jni$_.JMethodIDPtr).check(); } static final _id_isDone = _class.instanceMethodId( @@ -4144,21 +4874,21 @@ class UrlRequest extends _$jni.JObject { r'()Z', ); - static final _isDone = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _isDone = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public abstract boolean isDone()` bool isDone() { - return _isDone(reference.pointer, _id_isDone as _$jni.JMethodIDPtr).boolean; + return _isDone(reference.pointer, _id_isDone as jni$_.JMethodIDPtr).boolean; } static final _id_getStatus = _class.instanceMethodId( @@ -4166,96 +4896,143 @@ class UrlRequest extends _$jni.JObject { r'(Lorg/chromium/net/UrlRequest$StatusListener;)V', ); - static final _getStatus = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JThrowablePtr Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + static final _getStatus = 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.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public abstract void getStatus(org.chromium.net.UrlRequest$StatusListener statusListener)` void getStatus( - UrlRequest_StatusListener statusListener, + UrlRequest$StatusListener? statusListener, ) { - _getStatus(reference.pointer, _id_getStatus as _$jni.JMethodIDPtr, - statusListener.reference.pointer) + final _$statusListener = statusListener?.reference ?? jni$_.jNullReference; + _getStatus(reference.pointer, _id_getStatus as jni$_.JMethodIDPtr, + _$statusListener.pointer) .check(); } } -final class $UrlRequest$Type extends _$jni.JObjType { - @_$jni.internal - const $UrlRequest$Type(); +final class $UrlRequest$NullableType extends jni$_.JObjType { + @jni$_.internal + const $UrlRequest$NullableType(); - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override String get signature => r'Lorg/chromium/net/UrlRequest;'; - @_$jni.internal - @_$core.override - UrlRequest fromReference(_$jni.JReference reference) => - UrlRequest.fromReference(reference); + @jni$_.internal + @core$_.override + UrlRequest? fromReference(jni$_.JReference reference) => reference.isNull + ? null + : UrlRequest.fromReference( + reference, + ); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const jni$_.JObjectNullableType(); - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + @jni$_.internal + @core$_.override + jni$_.JObjType get nullableType => this; - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override final superCount = 1; - @_$core.override + @core$_.override + int get hashCode => ($UrlRequest$NullableType).hashCode; + + @core$_.override + bool operator ==(Object other) { + return other.runtimeType == ($UrlRequest$NullableType) && + other is $UrlRequest$NullableType; + } +} + +final class $UrlRequest$Type extends jni$_.JObjType { + @jni$_.internal + const $UrlRequest$Type(); + + @jni$_.internal + @core$_.override + String get signature => r'Lorg/chromium/net/UrlRequest;'; + + @jni$_.internal + @core$_.override + UrlRequest fromReference(jni$_.JReference reference) => + UrlRequest.fromReference( + reference, + ); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + + @jni$_.internal + @core$_.override + jni$_.JObjType get nullableType => + const $UrlRequest$NullableType(); + + @jni$_.internal + @core$_.override + final superCount = 1; + + @core$_.override int get hashCode => ($UrlRequest$Type).hashCode; - @_$core.override + @core$_.override bool operator ==(Object other) { return other.runtimeType == ($UrlRequest$Type) && other is $UrlRequest$Type; } } /// from: `org.chromium.net.UrlResponseInfo$HeaderBlock` -class UrlResponseInfo_HeaderBlock extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; - - @_$jni.internal - UrlResponseInfo_HeaderBlock.fromReference( - _$jni.JReference reference, +class UrlResponseInfo$HeaderBlock extends jni$_.JObject { + @jni$_.internal + @core$_.override + final jni$_.JObjType $type; + + @jni$_.internal + UrlResponseInfo$HeaderBlock.fromReference( + jni$_.JReference reference, ) : $type = type, super.fromReference(reference); static final _class = - _$jni.JClass.forName(r'org/chromium/net/UrlResponseInfo$HeaderBlock'); + jni$_.JClass.forName(r'org/chromium/net/UrlResponseInfo$HeaderBlock'); /// The type which includes information such as the signature of this class. - static const type = $UrlResponseInfo_HeaderBlock$Type(); + static const nullableType = $UrlResponseInfo$HeaderBlock$NullableType(); + static const type = $UrlResponseInfo$HeaderBlock$Type(); static final _id_getAsList = _class.instanceMethodId( r'getAsList', r'()Ljava/util/List;', ); - static final _getAsList = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getAsList = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public abstract java.util.List getAsList()` /// The returned object must be released after use, by calling the [release] method. - _$jni.JList<_$jni.JObject> getAsList() { - return _getAsList(reference.pointer, _id_getAsList as _$jni.JMethodIDPtr) - .object(const _$jni.JListType(_$jni.JObjectType())); + jni$_.JList? getAsList() { + return _getAsList(reference.pointer, _id_getAsList as jni$_.JMethodIDPtr) + .object?>( + const jni$_.JListNullableType( + jni$_.JObjectNullableType())); } static final _id_getAsMap = _class.instanceMethodId( @@ -4263,98 +5040,148 @@ class UrlResponseInfo_HeaderBlock extends _$jni.JObject { r'()Ljava/util/Map;', ); - static final _getAsMap = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getAsMap = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public abstract java.util.Map getAsMap()` /// The returned object must be released after use, by calling the [release] method. - _$jni.JMap<_$jni.JString, _$jni.JList<_$jni.JString>> getAsMap() { - return _getAsMap(reference.pointer, _id_getAsMap as _$jni.JMethodIDPtr) - .object(const _$jni.JMapType( - _$jni.JStringType(), _$jni.JListType(_$jni.JStringType()))); + jni$_.JMap?>? getAsMap() { + return _getAsMap(reference.pointer, _id_getAsMap as jni$_.JMethodIDPtr) + .object?>?>( + const jni$_ + .JMapNullableType?>( + jni$_.JStringNullableType(), + jni$_.JListNullableType( + jni$_.JStringNullableType()))); } } -final class $UrlResponseInfo_HeaderBlock$Type - extends _$jni.JObjType { - @_$jni.internal - const $UrlResponseInfo_HeaderBlock$Type(); +final class $UrlResponseInfo$HeaderBlock$NullableType + extends jni$_.JObjType { + @jni$_.internal + const $UrlResponseInfo$HeaderBlock$NullableType(); - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override String get signature => r'Lorg/chromium/net/UrlResponseInfo$HeaderBlock;'; - @_$jni.internal - @_$core.override - UrlResponseInfo_HeaderBlock fromReference(_$jni.JReference reference) => - UrlResponseInfo_HeaderBlock.fromReference(reference); + @jni$_.internal + @core$_.override + UrlResponseInfo$HeaderBlock? fromReference(jni$_.JReference reference) => + reference.isNull + ? null + : UrlResponseInfo$HeaderBlock.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 => ($UrlResponseInfo$HeaderBlock$NullableType).hashCode; - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + @core$_.override + bool operator ==(Object other) { + return other.runtimeType == ($UrlResponseInfo$HeaderBlock$NullableType) && + other is $UrlResponseInfo$HeaderBlock$NullableType; + } +} - @_$jni.internal - @_$core.override +final class $UrlResponseInfo$HeaderBlock$Type + extends jni$_.JObjType { + @jni$_.internal + const $UrlResponseInfo$HeaderBlock$Type(); + + @jni$_.internal + @core$_.override + String get signature => r'Lorg/chromium/net/UrlResponseInfo$HeaderBlock;'; + + @jni$_.internal + @core$_.override + UrlResponseInfo$HeaderBlock fromReference(jni$_.JReference reference) => + UrlResponseInfo$HeaderBlock.fromReference( + reference, + ); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + + @jni$_.internal + @core$_.override + jni$_.JObjType get nullableType => + const $UrlResponseInfo$HeaderBlock$NullableType(); + + @jni$_.internal + @core$_.override final superCount = 1; - @_$core.override - int get hashCode => ($UrlResponseInfo_HeaderBlock$Type).hashCode; + @core$_.override + int get hashCode => ($UrlResponseInfo$HeaderBlock$Type).hashCode; - @_$core.override + @core$_.override bool operator ==(Object other) { - return other.runtimeType == ($UrlResponseInfo_HeaderBlock$Type) && - other is $UrlResponseInfo_HeaderBlock$Type; + return other.runtimeType == ($UrlResponseInfo$HeaderBlock$Type) && + other is $UrlResponseInfo$HeaderBlock$Type; } } /// from: `org.chromium.net.UrlResponseInfo` -class UrlResponseInfo extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; +class UrlResponseInfo extends jni$_.JObject { + @jni$_.internal + @core$_.override + final jni$_.JObjType $type; - @_$jni.internal + @jni$_.internal UrlResponseInfo.fromReference( - _$jni.JReference reference, + jni$_.JReference reference, ) : $type = type, super.fromReference(reference); static final _class = - _$jni.JClass.forName(r'org/chromium/net/UrlResponseInfo'); + jni$_.JClass.forName(r'org/chromium/net/UrlResponseInfo'); /// The type which includes information such as the signature of this class. + static const nullableType = $UrlResponseInfo$NullableType(); static const type = $UrlResponseInfo$Type(); static final _id_getUrl = _class.instanceMethodId( r'getUrl', r'()Ljava/lang/String;', ); - static final _getUrl = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getUrl = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public abstract java.lang.String getUrl()` /// The returned object must be released after use, by calling the [release] method. - _$jni.JString getUrl() { - return _getUrl(reference.pointer, _id_getUrl as _$jni.JMethodIDPtr) - .object(const _$jni.JStringType()); + jni$_.JString? getUrl() { + return _getUrl(reference.pointer, _id_getUrl as jni$_.JMethodIDPtr) + .object(const jni$_.JStringNullableType()); } static final _id_getUrlChain = _class.instanceMethodId( @@ -4362,24 +5189,26 @@ class UrlResponseInfo extends _$jni.JObject { r'()Ljava/util/List;', ); - static final _getUrlChain = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getUrlChain = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public abstract java.util.List getUrlChain()` /// The returned object must be released after use, by calling the [release] method. - _$jni.JList<_$jni.JString> getUrlChain() { + jni$_.JList? getUrlChain() { return _getUrlChain( - reference.pointer, _id_getUrlChain as _$jni.JMethodIDPtr) - .object(const _$jni.JListType(_$jni.JStringType())); + reference.pointer, _id_getUrlChain as jni$_.JMethodIDPtr) + .object?>( + const jni$_.JListNullableType( + jni$_.JStringNullableType())); } static final _id_getHttpStatusCode = _class.instanceMethodId( @@ -4387,22 +5216,22 @@ class UrlResponseInfo extends _$jni.JObject { r'()I', ); - static final _getHttpStatusCode = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getHttpStatusCode = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallIntMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public abstract int getHttpStatusCode()` int getHttpStatusCode() { return _getHttpStatusCode( - reference.pointer, _id_getHttpStatusCode as _$jni.JMethodIDPtr) + reference.pointer, _id_getHttpStatusCode as jni$_.JMethodIDPtr) .integer; } @@ -4411,24 +5240,24 @@ class UrlResponseInfo extends _$jni.JObject { r'()Ljava/lang/String;', ); - static final _getHttpStatusText = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getHttpStatusText = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public abstract java.lang.String getHttpStatusText()` /// The returned object must be released after use, by calling the [release] method. - _$jni.JString getHttpStatusText() { + jni$_.JString? getHttpStatusText() { return _getHttpStatusText( - reference.pointer, _id_getHttpStatusText as _$jni.JMethodIDPtr) - .object(const _$jni.JStringType()); + reference.pointer, _id_getHttpStatusText as jni$_.JMethodIDPtr) + .object(const jni$_.JStringNullableType()); } static final _id_getAllHeadersAsList = _class.instanceMethodId( @@ -4436,24 +5265,26 @@ class UrlResponseInfo extends _$jni.JObject { r'()Ljava/util/List;', ); - static final _getAllHeadersAsList = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getAllHeadersAsList = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public abstract java.util.List getAllHeadersAsList()` /// The returned object must be released after use, by calling the [release] method. - _$jni.JList<_$jni.JObject> getAllHeadersAsList() { + jni$_.JList? getAllHeadersAsList() { return _getAllHeadersAsList( - reference.pointer, _id_getAllHeadersAsList as _$jni.JMethodIDPtr) - .object(const _$jni.JListType(_$jni.JObjectType())); + reference.pointer, _id_getAllHeadersAsList as jni$_.JMethodIDPtr) + .object?>( + const jni$_.JListNullableType( + jni$_.JObjectNullableType())); } static final _id_getAllHeaders = _class.instanceMethodId( @@ -4461,25 +5292,29 @@ class UrlResponseInfo extends _$jni.JObject { r'()Ljava/util/Map;', ); - static final _getAllHeaders = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getAllHeaders = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public abstract java.util.Map getAllHeaders()` /// The returned object must be released after use, by calling the [release] method. - _$jni.JMap<_$jni.JString, _$jni.JList<_$jni.JString>> getAllHeaders() { + jni$_.JMap?>? getAllHeaders() { return _getAllHeaders( - reference.pointer, _id_getAllHeaders as _$jni.JMethodIDPtr) - .object(const _$jni.JMapType( - _$jni.JStringType(), _$jni.JListType(_$jni.JStringType()))); + reference.pointer, _id_getAllHeaders as jni$_.JMethodIDPtr) + .object?>?>( + const jni$_ + .JMapNullableType?>( + jni$_.JStringNullableType(), + jni$_.JListNullableType( + jni$_.JStringNullableType()))); } static final _id_wasCached = _class.instanceMethodId( @@ -4487,21 +5322,21 @@ class UrlResponseInfo extends _$jni.JObject { r'()Z', ); - static final _wasCached = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _wasCached = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public abstract boolean wasCached()` bool wasCached() { - return _wasCached(reference.pointer, _id_wasCached as _$jni.JMethodIDPtr) + return _wasCached(reference.pointer, _id_wasCached as jni$_.JMethodIDPtr) .boolean; } @@ -4510,24 +5345,24 @@ class UrlResponseInfo extends _$jni.JObject { r'()Ljava/lang/String;', ); - static final _getNegotiatedProtocol = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getNegotiatedProtocol = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public abstract java.lang.String getNegotiatedProtocol()` /// The returned object must be released after use, by calling the [release] method. - _$jni.JString getNegotiatedProtocol() { + jni$_.JString? getNegotiatedProtocol() { return _getNegotiatedProtocol( - reference.pointer, _id_getNegotiatedProtocol as _$jni.JMethodIDPtr) - .object(const _$jni.JStringType()); + reference.pointer, _id_getNegotiatedProtocol as jni$_.JMethodIDPtr) + .object(const jni$_.JStringNullableType()); } static final _id_getProxyServer = _class.instanceMethodId( @@ -4535,24 +5370,24 @@ class UrlResponseInfo extends _$jni.JObject { r'()Ljava/lang/String;', ); - static final _getProxyServer = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getProxyServer = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public abstract java.lang.String getProxyServer()` /// The returned object must be released after use, by calling the [release] method. - _$jni.JString getProxyServer() { + jni$_.JString? getProxyServer() { return _getProxyServer( - reference.pointer, _id_getProxyServer as _$jni.JMethodIDPtr) - .object(const _$jni.JStringType()); + reference.pointer, _id_getProxyServer as jni$_.JMethodIDPtr) + .object(const jni$_.JStringNullableType()); } static final _id_getReceivedByteCount = _class.instanceMethodId( @@ -4560,51 +5395,95 @@ class UrlResponseInfo extends _$jni.JObject { r'()J', ); - static final _getReceivedByteCount = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + static final _getReceivedByteCount = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>>('globalEnv_CallLongMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, )>(); /// from: `public abstract long getReceivedByteCount()` int getReceivedByteCount() { return _getReceivedByteCount( - reference.pointer, _id_getReceivedByteCount as _$jni.JMethodIDPtr) + reference.pointer, _id_getReceivedByteCount as jni$_.JMethodIDPtr) .long; } } -final class $UrlResponseInfo$Type extends _$jni.JObjType { - @_$jni.internal - const $UrlResponseInfo$Type(); +final class $UrlResponseInfo$NullableType + extends jni$_.JObjType { + @jni$_.internal + const $UrlResponseInfo$NullableType(); - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override String get signature => r'Lorg/chromium/net/UrlResponseInfo;'; - @_$jni.internal - @_$core.override - UrlResponseInfo fromReference(_$jni.JReference reference) => - UrlResponseInfo.fromReference(reference); + @jni$_.internal + @core$_.override + UrlResponseInfo? fromReference(jni$_.JReference reference) => reference.isNull + ? null + : UrlResponseInfo.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 => ($UrlResponseInfo$NullableType).hashCode; - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + @core$_.override + bool operator ==(Object other) { + return other.runtimeType == ($UrlResponseInfo$NullableType) && + other is $UrlResponseInfo$NullableType; + } +} + +final class $UrlResponseInfo$Type extends jni$_.JObjType { + @jni$_.internal + const $UrlResponseInfo$Type(); + + @jni$_.internal + @core$_.override + String get signature => r'Lorg/chromium/net/UrlResponseInfo;'; - @_$jni.internal - @_$core.override + @jni$_.internal + @core$_.override + UrlResponseInfo fromReference(jni$_.JReference reference) => + UrlResponseInfo.fromReference( + reference, + ); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + + @jni$_.internal + @core$_.override + jni$_.JObjType get nullableType => + const $UrlResponseInfo$NullableType(); + + @jni$_.internal + @core$_.override final superCount = 1; - @_$core.override + @core$_.override int get hashCode => ($UrlResponseInfo$Type).hashCode; - @_$core.override + @core$_.override bool operator ==(Object other) { return other.runtimeType == ($UrlResponseInfo$Type) && other is $UrlResponseInfo$Type; diff --git a/pkgs/cronet_http/pubspec.yaml b/pkgs/cronet_http/pubspec.yaml index ab55257ae2..69bb4184a5 100644 --- a/pkgs/cronet_http/pubspec.yaml +++ b/pkgs/cronet_http/pubspec.yaml @@ -13,11 +13,11 @@ dependencies: sdk: flutter http: ^1.2.0 http_profile: ^0.1.0 - jni: ^0.12.0 + jni: ^0.14.0 dev_dependencies: dart_flutter_team_lints: ^3.0.0 - jnigen: ^0.12.0 + jnigen: ^0.14.0 xml: ^6.1.0 yaml_edit: ^2.0.3