diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 3a87f6881a..06ea8f185f 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -40,23 +40,23 @@ jobs: - name: mono_repo self validate run: dart pub global run mono_repo generate --validate job_002: - name: "analyze_and_format; linux; Dart 3.4.0; PKGS: pkgs/http, pkgs/http_client_conformance_tests, pkgs/http_profile, pkgs/web_socket, pkgs/web_socket_conformance_tests; `dart analyze --fatal-infos`" + name: "analyze_and_format; linux; Dart 3.9.0; PKGS: pkgs/http, pkgs/http_client_conformance_tests, pkgs/http_profile, pkgs/web_socket, pkgs/web_socket_conformance_tests; `dart analyze --fatal-infos`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0;packages:pkgs/http-pkgs/http_client_conformance_tests-pkgs/http_profile-pkgs/web_socket-pkgs/web_socket_conformance_tests;commands:analyze_1" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.9.0;packages:pkgs/http-pkgs/http_client_conformance_tests-pkgs/http_profile-pkgs/web_socket-pkgs/web_socket_conformance_tests;commands:analyze_1" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0;packages:pkgs/http-pkgs/http_client_conformance_tests-pkgs/http_profile-pkgs/web_socket-pkgs/web_socket_conformance_tests - os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0 + os:ubuntu-latest;pub-cache-hosted;sdk:3.9.0;packages:pkgs/http-pkgs/http_client_conformance_tests-pkgs/http_profile-pkgs/web_socket-pkgs/web_socket_conformance_tests + os:ubuntu-latest;pub-cache-hosted;sdk:3.9.0 os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260 with: - sdk: "3.4.0" + sdk: "3.9.0" - id: checkout name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd @@ -298,23 +298,23 @@ jobs: if: "always() && steps.pkgs_flutter_http_example_pub_upgrade.conclusion == 'success'" working-directory: pkgs/flutter_http_example job_007: - name: "unit_test; linux; Dart 3.4.0; PKG: pkgs/http; `dart run --define=no_default_http_client=true test/no_default_http_client_test.dart`" + name: "unit_test; linux; Dart 3.9.0; PKG: pkgs/http; `dart run --define=no_default_http_client=true test/no_default_http_client_test.dart`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0;packages:pkgs/http;commands:command_2" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.9.0;packages:pkgs/http;commands:command_2" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0;packages:pkgs/http - os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0 + os:ubuntu-latest;pub-cache-hosted;sdk:3.9.0;packages:pkgs/http + os:ubuntu-latest;pub-cache-hosted;sdk:3.9.0 os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260 with: - sdk: "3.4.0" + sdk: "3.9.0" - id: checkout name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd @@ -335,23 +335,23 @@ jobs: - job_005 - job_006 job_008: - name: "unit_test; linux; Dart 3.4.0; PKG: pkgs/http; `dart test --test-randomize-ordering-seed=random --platform chrome`" + name: "unit_test; linux; Dart 3.9.0; PKG: pkgs/http; `dart test --test-randomize-ordering-seed=random --platform chrome`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0;packages:pkgs/http;commands:test_3" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.9.0;packages:pkgs/http;commands:test_3" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0;packages:pkgs/http - os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0 + os:ubuntu-latest;pub-cache-hosted;sdk:3.9.0;packages:pkgs/http + os:ubuntu-latest;pub-cache-hosted;sdk:3.9.0 os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260 with: - sdk: "3.4.0" + sdk: "3.9.0" - id: checkout name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd @@ -372,23 +372,23 @@ jobs: - job_005 - job_006 job_009: - name: "unit_test; linux; Dart 3.4.0; PKG: pkgs/http; `dart test --test-randomize-ordering-seed=random --platform vm`" + name: "unit_test; linux; Dart 3.9.0; PKG: pkgs/http; `dart test --test-randomize-ordering-seed=random --platform vm`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0;packages:pkgs/http;commands:test_2" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.9.0;packages:pkgs/http;commands:test_2" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0;packages:pkgs/http - os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0 + os:ubuntu-latest;pub-cache-hosted;sdk:3.9.0;packages:pkgs/http + os:ubuntu-latest;pub-cache-hosted;sdk:3.9.0 os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260 with: - sdk: "3.4.0" + sdk: "3.9.0" - id: checkout name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd @@ -409,23 +409,23 @@ jobs: - job_005 - job_006 job_010: - name: "unit_test; linux; Dart 3.4.0; PKG: pkgs/http; `xvfb-run -s \"-screen 0 1024x768x24\" dart test --test-randomize-ordering-seed=random --platform firefox`" + name: "unit_test; linux; Dart 3.9.0; PKG: pkgs/http; `xvfb-run -s \"-screen 0 1024x768x24\" dart test --test-randomize-ordering-seed=random --platform firefox`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0;packages:pkgs/http;commands:command_1" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.9.0;packages:pkgs/http;commands:command_1" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0;packages:pkgs/http - os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0 + os:ubuntu-latest;pub-cache-hosted;sdk:3.9.0;packages:pkgs/http + os:ubuntu-latest;pub-cache-hosted;sdk:3.9.0 os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260 with: - sdk: "3.4.0" + sdk: "3.9.0" - id: checkout name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd @@ -446,23 +446,23 @@ jobs: - job_005 - job_006 job_011: - name: "unit_test; linux; Dart 3.4.0; PKG: pkgs/http_profile; `dart test --platform vm`" + name: "unit_test; linux; Dart 3.9.0; PKG: pkgs/http_profile; `dart test --platform vm`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0;packages:pkgs/http_profile;commands:test_5" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.9.0;packages:pkgs/http_profile;commands:test_5" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0;packages:pkgs/http_profile - os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0 + os:ubuntu-latest;pub-cache-hosted;sdk:3.9.0;packages:pkgs/http_profile + os:ubuntu-latest;pub-cache-hosted;sdk:3.9.0 os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260 with: - sdk: "3.4.0" + sdk: "3.9.0" - id: checkout name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd @@ -483,23 +483,23 @@ jobs: - job_005 - job_006 job_012: - name: "unit_test; linux; Dart 3.4.0; PKG: pkgs/web_socket; `dart test --test-randomize-ordering-seed=random -p chrome -c dart2js`" + name: "unit_test; linux; Dart 3.9.0; PKG: pkgs/web_socket; `dart test --test-randomize-ordering-seed=random -p chrome -c dart2js`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0;packages:pkgs/web_socket;commands:test_7" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.9.0;packages:pkgs/web_socket;commands:test_7" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0;packages:pkgs/web_socket - os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0 + os:ubuntu-latest;pub-cache-hosted;sdk:3.9.0;packages:pkgs/web_socket + os:ubuntu-latest;pub-cache-hosted;sdk:3.9.0 os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260 with: - sdk: "3.4.0" + sdk: "3.9.0" - id: checkout name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd @@ -520,23 +520,23 @@ jobs: - job_005 - job_006 job_013: - name: "unit_test; linux; Dart 3.4.0; PKG: pkgs/web_socket; `dart test --test-randomize-ordering-seed=random -p vm`" + name: "unit_test; linux; Dart 3.9.0; PKG: pkgs/web_socket; `dart test --test-randomize-ordering-seed=random -p vm`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0;packages:pkgs/web_socket;commands:test_6" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.9.0;packages:pkgs/web_socket;commands:test_6" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0;packages:pkgs/web_socket - os:ubuntu-latest;pub-cache-hosted;sdk:3.4.0 + os:ubuntu-latest;pub-cache-hosted;sdk:3.9.0;packages:pkgs/web_socket + os:ubuntu-latest;pub-cache-hosted;sdk:3.9.0 os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest - name: Setup Dart SDK uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260 with: - sdk: "3.4.0" + sdk: "3.9.0" - id: checkout name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd diff --git a/.github/workflows/http2.yaml b/.github/workflows/http2.yaml index 106df919e2..f9662ee38d 100644 --- a/.github/workflows/http2.yaml +++ b/.github/workflows/http2.yaml @@ -14,8 +14,8 @@ on: schedule: - cron: "0 0 * * 0" -defaults: - run: +defaults: + run: working-directory: pkgs/http2/ env: @@ -52,7 +52,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - sdk: [3.7, stable, dev] + sdk: [3.9, stable, dev] steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd - uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260 diff --git a/.github/workflows/http_multi_server.yaml b/.github/workflows/http_multi_server.yaml index 8af6911a2d..d479553558 100644 --- a/.github/workflows/http_multi_server.yaml +++ b/.github/workflows/http_multi_server.yaml @@ -14,8 +14,8 @@ on: schedule: - cron: "0 0 * * 0" -defaults: - run: +defaults: + run: working-directory: pkgs/http_multi_server/ env: @@ -56,7 +56,7 @@ jobs: matrix: # Add macos-latest and/or windows-latest if relevant for this package. os: [ubuntu-latest] - sdk: [3.2, dev] + sdk: [3.9, dev] steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd - uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260 diff --git a/.github/workflows/http_parser.yaml b/.github/workflows/http_parser.yaml index ccc7216f17..90633108b4 100644 --- a/.github/workflows/http_parser.yaml +++ b/.github/workflows/http_parser.yaml @@ -17,8 +17,8 @@ on: env: PUB_ENVIRONMENT: bot.github -defaults: - run: +defaults: + run: working-directory: pkgs/http_parser/ permissions: read-all @@ -54,7 +54,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - sdk: [3.4, dev] + sdk: [3.9, dev] steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd - uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260 diff --git a/.github/workflows/web_socket_channel.yaml b/.github/workflows/web_socket_channel.yaml index 2c4222cd4f..ce17b778af 100644 --- a/.github/workflows/web_socket_channel.yaml +++ b/.github/workflows/web_socket_channel.yaml @@ -14,8 +14,8 @@ on: schedule: - cron: "0 0 * * 0" -defaults: - run: +defaults: + run: working-directory: pkgs/web_socket_channel/ env: @@ -51,7 +51,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - sdk: [3.3, dev] + sdk: [3.9, dev] steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd - uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260 diff --git a/pkgs/cronet_http/example/integration_test/client_profile_test.dart b/pkgs/cronet_http/example/integration_test/client_profile_test.dart index 8cb4f7d605..bb78946118 100644 --- a/pkgs/cronet_http/example/integration_test/client_profile_test.dart +++ b/pkgs/cronet_http/example/integration_test/client_profile_test.dart @@ -41,8 +41,11 @@ void main() { }); successServerUri = Uri.http('localhost:${successServer.port}'); final client = CronetClientWithProfile.defaultCronetEngine(); - await client.post(successServerUri, - headers: {'Content-Type': 'text/plain'}, body: 'Hi'); + await client.post( + successServerUri, + headers: {'Content-Type': 'text/plain'}, + body: 'Hi', + ); profile = client.profile!; }); tearDownAll(() { @@ -53,8 +56,10 @@ void main() { expect(profile.events, isEmpty); expect(profile.requestMethod, 'POST'); expect(profile.requestUri, successServerUri.toString()); - expect(profile.connectionInfo, - containsPair('package', 'package:cronet_http')); + expect( + profile.connectionInfo, + containsPair('package', 'package:cronet_http'), + ); }); test('request attributes', () { @@ -63,9 +68,13 @@ void main() { expect(profile.requestData.endTime, isNotNull); expect(profile.requestData.error, isNull); expect( - profile.requestData.headers, containsPair('Content-Length', ['2'])); - expect(profile.requestData.headers, - containsPair('Content-Type', ['text/plain; charset=utf-8'])); + profile.requestData.headers, + containsPair('Content-Length', ['2']), + ); + expect( + profile.requestData.headers, + containsPair('Content-Type', ['text/plain; charset=utf-8']), + ); expect(profile.requestData.persistentConnection, isNull); expect(profile.requestData.proxyDetails, isNull); expect(profile.requestData.startTime, isNotNull); @@ -77,10 +86,14 @@ void main() { expect(profile.responseData.contentLength, 11); expect(profile.responseData.endTime, isNotNull); expect(profile.responseData.error, isNull); - expect(profile.responseData.headers, - containsPair('content-type', ['text/plain'])); - expect(profile.responseData.headers, - containsPair('content-length', ['11'])); + expect( + profile.responseData.headers, + containsPair('content-type', ['text/plain']), + ); + expect( + profile.responseData.headers, + containsPair('content-length', ['11']), + ); expect(profile.responseData.isRedirect, false); expect(profile.responseData.persistentConnection, isNull); expect(profile.responseData.reasonPhrase, 'OK'); @@ -96,8 +109,11 @@ void main() { setUpAll(() async { final client = CronetClientWithProfile.defaultCronetEngine(); try { - await client.post(Uri.http('thisisnotahost'), - headers: {'Content-Type': 'text/plain'}, body: 'Hi'); + await client.post( + Uri.http('thisisnotahost'), + headers: {'Content-Type': 'text/plain'}, + body: 'Hi', + ); fail('expected exception'); } on ClientException { // Expected exception. @@ -109,8 +125,10 @@ void main() { expect(profile.events, isEmpty); expect(profile.requestMethod, 'POST'); expect(profile.requestUri, 'http://thisisnotahost'); - expect(profile.connectionInfo, - containsPair('package', 'package:cronet_http')); + expect( + profile.connectionInfo, + containsPair('package', 'package:cronet_http'), + ); }); test('request attributes', () { @@ -119,9 +137,13 @@ void main() { expect(profile.requestData.endTime, isNotNull); expect(profile.requestData.error, startsWith('ClientException:')); expect( - profile.requestData.headers, containsPair('Content-Length', ['2'])); - expect(profile.requestData.headers, - containsPair('Content-Type', ['text/plain; charset=utf-8'])); + profile.requestData.headers, + containsPair('Content-Length', ['2']), + ); + expect( + profile.requestData.headers, + containsPair('Content-Type', ['text/plain; charset=utf-8']), + ); expect(profile.requestData.persistentConnection, isNull); expect(profile.requestData.proxyDetails, isNull); expect(profile.requestData.startTime, isNotNull); @@ -161,8 +183,11 @@ void main() { final client = CronetClientWithProfile.defaultCronetEngine(); try { - await client.post(successServerUri, - headers: {'Content-Type': 'text/plain'}, body: 'Hi'); + await client.post( + successServerUri, + headers: {'Content-Type': 'text/plain'}, + body: 'Hi', + ); fail('expected exception'); } on ClientException { // Expected exception. @@ -177,8 +202,10 @@ void main() { expect(profile.events, isEmpty); expect(profile.requestMethod, 'POST'); expect(profile.requestUri, successServerUri.toString()); - expect(profile.connectionInfo, - containsPair('package', 'package:cronet_http')); + expect( + profile.connectionInfo, + containsPair('package', 'package:cronet_http'), + ); }); test('request attributes', () { @@ -187,9 +214,13 @@ void main() { expect(profile.requestData.endTime, isNotNull); expect(profile.requestData.error, isNull); expect( - profile.requestData.headers, containsPair('Content-Length', ['2'])); - expect(profile.requestData.headers, - containsPair('Content-Type', ['text/plain; charset=utf-8'])); + profile.requestData.headers, + containsPair('Content-Length', ['2']), + ); + expect( + profile.requestData.headers, + containsPair('Content-Type', ['text/plain; charset=utf-8']), + ); expect(profile.requestData.persistentConnection, isNull); expect(profile.requestData.proxyDetails, isNull); expect(profile.requestData.startTime, isNotNull); @@ -201,10 +232,14 @@ void main() { expect(profile.responseData.contentLength, 11); expect(profile.responseData.endTime, isNotNull); expect(profile.responseData.error, startsWith('ClientException:')); - expect(profile.responseData.headers, - containsPair('content-type', ['text/plain'])); - expect(profile.responseData.headers, - containsPair('content-length', ['11'])); + expect( + profile.responseData.headers, + containsPair('content-type', ['text/plain']), + ); + expect( + profile.responseData.headers, + containsPair('content-length', ['11']), + ); expect(profile.responseData.isRedirect, false); expect(profile.responseData.persistentConnection, isNull); expect(profile.responseData.reasonPhrase, 'OK'); @@ -279,8 +314,11 @@ void main() { }); successServerUri = Uri.http('localhost:${successServer.port}'); final client = CronetClientWithProfile.defaultCronetEngine(); - final request = AbortableStreamedRequest('GET', successServerUri, - abortTrigger: abortCompleter.future); + final request = AbortableStreamedRequest( + 'GET', + successServerUri, + abortTrigger: abortCompleter.future, + ); final responseFuture = client.send(request); abortCompleter.complete(); unawaited(request.sink.close()); @@ -341,8 +379,11 @@ void main() { }); successServerUri = Uri.http('localhost:${successServer.port}'); final client = CronetClientWithProfile.defaultCronetEngine(); - final request = AbortableStreamedRequest('GET', successServerUri, - abortTrigger: abortCompleter.future); + final request = AbortableStreamedRequest( + 'GET', + successServerUri, + abortTrigger: abortCompleter.future, + ); unawaited(request.sink.close()); final response = await client.send(request); var i = 0; @@ -392,8 +433,11 @@ void main() { } else { final n = int.parse(request.requestedUri.pathSegments.last); final nextPath = n - 1 == 0 ? '' : '${n - 1}'; - unawaited(request.response - .redirect(successServerUri.replace(path: '/$nextPath'))); + unawaited( + request.response.redirect( + successServerUri.replace(path: '/$nextPath'), + ), + ); } }); successServerUri = Uri.http('localhost:${successServer.port}'); @@ -412,9 +456,11 @@ void main() { test('follow redirects', () async { final client = CronetClientWithProfile.defaultCronetEngine(); - await client.send(Request('GET', successServerUri.replace(path: '/3')) - ..followRedirects = true - ..maxRedirects = 4); + await client.send( + Request('GET', successServerUri.replace(path: '/3')) + ..followRedirects = true + ..maxRedirects = 4, + ); profile = client.profile!; expect(profile.requestData.followRedirects, true); @@ -423,25 +469,29 @@ void main() { expect(profile.responseData.redirects, [ HttpProfileRedirectData( - statusCode: 302, - method: 'GET', - location: successServerUri.replace(path: '/2').toString()), + statusCode: 302, + method: 'GET', + location: successServerUri.replace(path: '/2').toString(), + ), HttpProfileRedirectData( - statusCode: 302, - method: 'GET', - location: successServerUri.replace(path: '/1').toString()), + statusCode: 302, + method: 'GET', + location: successServerUri.replace(path: '/1').toString(), + ), HttpProfileRedirectData( statusCode: 302, method: 'GET', location: successServerUri.replace(path: '/').toString(), - ) + ), ]); }); test('no follow redirects', () async { final client = CronetClientWithProfile.defaultCronetEngine(); - await client.send(Request('GET', successServerUri.replace(path: '/3')) - ..followRedirects = false); + await client.send( + Request('GET', successServerUri.replace(path: '/3')) + ..followRedirects = false, + ); profile = client.profile!; expect(profile.requestData.followRedirects, false); diff --git a/pkgs/cronet_http/example/integration_test/client_test.dart b/pkgs/cronet_http/example/integration_test/client_test.dart index aa7fd93cc3..ba6c89294f 100644 --- a/pkgs/cronet_http/example/integration_test/client_test.dart +++ b/pkgs/cronet_http/example/integration_test/client_test.dart @@ -49,7 +49,9 @@ Future testConformance() async { testAll( () { final engine = CronetEngine.build( - cacheMode: CacheMode.disabled, userAgent: 'Test Agent (Future)'); + cacheMode: CacheMode.disabled, + userAgent: 'Test Agent (Future)', + ); return CronetClient.fromCronetEngine(engine); }, canStreamRequestBody: false, @@ -70,8 +72,10 @@ Future testCronetStreamedResponse() async { ..listen((request) async { await request.drain(); request.response.headers.set('Content-Type', 'text/plain'); - request.response.headers - .set('Cache-Control', 'public, max-age=30, immutable'); + request.response.headers.set( + 'Cache-Control', + 'public, max-age=30, immutable', + ); request.response.headers.set('etag', '12345'); await request.response.close(); }); @@ -101,7 +105,9 @@ Future testCronetStreamedResponse() async { test('wasCached', () async { final engine = CronetEngine.build( - cacheMode: CacheMode.memory, cacheMaxSize: 1024 * 1024); + cacheMode: CacheMode.memory, + cacheMaxSize: 1024 * 1024, + ); final client = CronetClient.fromCronetEngine(engine); final response1 = await client.send(Request('GET', serverUri)); diff --git a/pkgs/cronet_http/example/integration_test/cronet_engine_test.dart b/pkgs/cronet_http/example/integration_test/cronet_engine_test.dart index 2c07e18859..18f8bee9c8 100644 --- a/pkgs/cronet_http/example/integration_test/cronet_engine_test.dart +++ b/pkgs/cronet_http/example/integration_test/cronet_engine_test.dart @@ -21,8 +21,10 @@ void testCache() { await request.drain(); ++numRequests; request.response.headers.set('Content-Type', 'text/plain'); - request.response.headers - .set('Cache-Control', 'public, max-age=30, immutable'); + request.response.headers.set( + 'Cache-Control', + 'public, max-age=30, immutable', + ); request.response.headers.set('etag', '12345'); await request.response.close(); }); @@ -41,7 +43,9 @@ void testCache() { test('memory', () async { final engine = CronetEngine.build( - cacheMode: CacheMode.memory, cacheMaxSize: 1024 * 1024); + cacheMode: CacheMode.memory, + cacheMaxSize: 1024 * 1024, + ); final client = CronetClient.fromCronetEngine(engine); await client.get(Uri.parse('http://localhost:${server.port}')); await client.get(Uri.parse('http://localhost:${server.port}')); @@ -50,9 +54,10 @@ void testCache() { test('disk', () async { final engine = CronetEngine.build( - cacheMode: CacheMode.disk, - cacheMaxSize: 1024 * 1024, - storagePath: (await Directory.systemTemp.createTemp()).absolute.path); + cacheMode: CacheMode.disk, + cacheMaxSize: 1024 * 1024, + storagePath: (await Directory.systemTemp.createTemp()).absolute.path, + ); final client = CronetClient.fromCronetEngine(engine); await client.get(Uri.parse('http://localhost:${server.port}')); await client.get(Uri.parse('http://localhost:${server.port}')); @@ -61,9 +66,10 @@ void testCache() { test('diskNoHttp', () async { final engine = CronetEngine.build( - cacheMode: CacheMode.diskNoHttp, - cacheMaxSize: 1024 * 1024, - storagePath: (await Directory.systemTemp.createTemp()).absolute.path); + cacheMode: CacheMode.diskNoHttp, + cacheMaxSize: 1024 * 1024, + storagePath: (await Directory.systemTemp.createTemp()).absolute.path, + ); final client = CronetClient.fromCronetEngine(engine); await client.get(Uri.parse('http://localhost:${server.port}')); @@ -77,18 +83,23 @@ void testInvalidConfigurations() { group('invalidConfigurations', () { test('no storagePath', () async { expect( - () async => CronetEngine.build( - cacheMode: CacheMode.disk, cacheMaxSize: 1024 * 1024), - throwsArgumentError); + () async => CronetEngine.build( + cacheMode: CacheMode.disk, + cacheMaxSize: 1024 * 1024, + ), + throwsArgumentError, + ); }); test('non-existing storagePath', () async { expect( - () async => CronetEngine.build( - cacheMode: CacheMode.disk, - cacheMaxSize: 1024 * 1024, - storagePath: '/a/b/c/d'), - throwsArgumentError); + () async => CronetEngine.build( + cacheMode: CacheMode.disk, + cacheMaxSize: 1024 * 1024, + storagePath: '/a/b/c/d', + ), + throwsArgumentError, + ); }); }); } @@ -114,8 +125,9 @@ void testUserAgent() { test('userAgent', () async { final engine = CronetEngine.build(userAgent: 'fake-agent'); - await CronetClient.fromCronetEngine(engine) - .get(Uri.parse('http://localhost:${server.port}')); + await CronetClient.fromCronetEngine( + engine, + ).get(Uri.parse('http://localhost:${server.port}')); expect(requestHeaders['user-agent'], ['fake-agent']); }); }); @@ -140,14 +152,14 @@ void testQuicHints() { test('quic hints', () async { final engine = CronetEngine.build( - cacheMode: CacheMode.diskNoHttp, - enableQuic: true, - enableHttp2: false, - quicHints: [ - ('www.google.com', 443, 443), - ]); - final response = await CronetClient.fromCronetEngine(engine) - .send(Request('GET', Uri.parse('https://www.google.com/'))); + cacheMode: CacheMode.diskNoHttp, + enableQuic: true, + enableHttp2: false, + quicHints: [('www.google.com', 443, 443)], + ); + final response = await CronetClient.fromCronetEngine( + engine, + ).send(Request('GET', Uri.parse('https://www.google.com/'))); expect(response.negotiatedProtocol, 'h3'); }, skip: 'requires internet access'); @@ -157,8 +169,9 @@ void testQuicHints() { enableQuic: true, enableHttp2: false, ); - final response = await CronetClient.fromCronetEngine(engine) - .send(Request('GET', Uri.parse('https://www.google.com/'))); + final response = await CronetClient.fromCronetEngine( + engine, + ).send(Request('GET', Uri.parse('https://www.google.com/'))); expect(response.negotiatedProtocol, 'http1.1'); }, skip: 'requires internet access'); }); @@ -217,8 +230,10 @@ void testEngineClose() { test('request after close', () async { final closedEngine = CronetEngine.build()..close(); final client = CronetClient.fromCronetEngine(closedEngine); - await expectLater(() => client.get(Uri.https('example.com', '/')), - throwsA(isA())); + await expectLater( + () => client.get(Uri.https('example.com', '/')), + throwsA(isA()), + ); }); test('engine owned close', () { diff --git a/pkgs/cronet_http/example/lib/book.dart b/pkgs/cronet_http/example/lib/book.dart index 584ae9a361..5c2bf7d86d 100644 --- a/pkgs/cronet_http/example/lib/book.dart +++ b/pkgs/cronet_http/example/lib/book.dart @@ -15,12 +15,11 @@ class Book { if (json['items'] case final List items) { for (final item in items) { if (item case {'volumeInfo': final Map volumeInfo}) { - if (volumeInfo - case { - 'title': final String title, - 'description': final String description, - 'imageLinks': {'smallThumbnail': final String thumbnail} - }) { + if (volumeInfo case { + 'title': final String title, + 'description': final String description, + 'imageLinks': {'smallThumbnail': final String thumbnail}, + }) { books.add(Book(title, description, Uri.parse(thumbnail))); } } diff --git a/pkgs/cronet_http/example/lib/main.dart b/pkgs/cronet_http/example/lib/main.dart index 37136a2afb..0de1bb4885 100644 --- a/pkgs/cronet_http/example/lib/main.dart +++ b/pkgs/cronet_http/example/lib/main.dart @@ -19,18 +19,22 @@ void main() { if (Platform.isAndroid) { WidgetsFlutterBinding.ensureInitialized(); final engine = CronetEngine.build( - cacheMode: CacheMode.memory, - cacheMaxSize: 2 * 1024 * 1024, - userAgent: 'Book Agent'); + cacheMode: CacheMode.memory, + cacheMaxSize: 2 * 1024 * 1024, + userAgent: 'Book Agent', + ); httpClient = CronetClient.fromCronetEngine(engine, closeEngine: true); } else { httpClient = IOClient(HttpClient()..userAgent = 'Book Agent'); } - runApp(Provider( + runApp( + Provider( create: (_) => httpClient, child: const BookSearchApp(), - dispose: (_, client) => client.close())); + dispose: (_, client) => client.close(), + ), + ); } class BookSearchApp extends StatelessWidget { @@ -38,11 +42,11 @@ class BookSearchApp extends StatelessWidget { @override Widget build(BuildContext context) => const MaterialApp( - // Remove the debug banner. - debugShowCheckedModeBanner: false, - title: 'Book Search', - home: HomePage(), - ); + // Remove the debug banner. + debugShowCheckedModeBanner: false, + title: 'Book Search', + home: HomePage(), + ); } class HomePage extends StatefulWidget { @@ -67,11 +71,11 @@ class _HomePageState extends State { // The `get` call will automatically use the `client` configured in `main`. Future> _findMatchingBooks(String query) async { final response = await _client.get( - Uri.https( - 'www.googleapis.com', - '/books/v1/volumes', - {'q': query, 'maxResults': '20', 'printType': 'books'}, - ), + Uri.https('www.googleapis.com', '/books/v1/volumes', { + 'q': query, + 'maxResults': '20', + 'printType': 'books', + }), ); final json = jsonDecode(utf8.decode(response.bodyBytes)) as Map; @@ -101,8 +105,8 @@ class _HomePageState extends State { final searchResult = _books == null ? const Text('Please enter a query', style: TextStyle(fontSize: 24)) : _books!.isNotEmpty - ? BookList(_books!) - : const Text('No results found', style: TextStyle(fontSize: 24)); + ? BookList(_books!) + : const Text('No results found', style: TextStyle(fontSize: 24)); return Scaffold( appBar: AppBar(title: const Text('Book Search')), @@ -138,17 +142,19 @@ class BookList extends StatefulWidget { class _BookListState extends State { @override Widget build(BuildContext context) => ListView.builder( - itemCount: widget.books.length, - itemBuilder: (context, index) => Card( - key: ValueKey(widget.books[index].title), - child: ListTile( - leading: Image( - image: HttpImageProvider( - widget.books[index].imageUrl.replace(scheme: 'https'), - client: context.read())), - title: Text(widget.books[index].title), - subtitle: Text(widget.books[index].description), + itemCount: widget.books.length, + itemBuilder: (context, index) => Card( + key: ValueKey(widget.books[index].title), + child: ListTile( + leading: Image( + image: HttpImageProvider( + widget.books[index].imageUrl.replace(scheme: 'https'), + client: context.read(), ), ), - ); + title: Text(widget.books[index].title), + subtitle: Text(widget.books[index].description), + ), + ), + ); } diff --git a/pkgs/cronet_http/example/pubspec.yaml b/pkgs/cronet_http/example/pubspec.yaml index 79fc4fa89c..42a07e2596 100644 --- a/pkgs/cronet_http/example/pubspec.yaml +++ b/pkgs/cronet_http/example/pubspec.yaml @@ -4,7 +4,7 @@ description: Demonstrates how to use the cronet_http plugin. publish_to: 'none' environment: - sdk: ^3.4.0 + sdk: ^3.9.0 dependencies: cronet_http: diff --git a/pkgs/cronet_http/lib/src/cronet_client.dart b/pkgs/cronet_http/lib/src/cronet_client.dart index d579eec57b..3e627a9156 100644 --- a/pkgs/cronet_http/lib/src/cronet_client.dart +++ b/pkgs/cronet_http/lib/src/cronet_client.dart @@ -74,12 +74,7 @@ class CronetStreamedResponse extends _StreamedResponseWithUrl { } /// The type of caching to use when making HTTP requests. -enum CacheMode { - disabled, - memory, - diskNoHttp, - disk, -} +enum CacheMode { disabled, memory, diskNoHttp, disk } /// An environment that can be used to make HTTP requests. class CronetEngine { @@ -124,21 +119,22 @@ class CronetEngine { /// of (host, port, alternativePort) that indicates that the host supports /// QUIC. Note that [CacheMode.disk] or [CacheMode.diskNoHttp] is needed to /// take advantage of 0-RTT connection establishment between sessions. - static CronetEngine build( - {CacheMode? cacheMode, - int? cacheMaxSize, - bool? enableBrotli, - bool? enableHttp2, - bool? enablePublicKeyPinningBypassForLocalTrustAnchors, - bool? enableQuic, - String? storagePath, - String? userAgent, - List<(String, int, int)>? quicHints}) { + static CronetEngine build({ + CacheMode? cacheMode, + int? cacheMaxSize, + bool? enableBrotli, + bool? enableHttp2, + bool? enablePublicKeyPinningBypassForLocalTrustAnchors, + bool? enableQuic, + String? storagePath, + String? userAgent, + List<(String, int, int)>? quicHints, + }) { try { return using((arena) { final builder = jb.CronetEngine$Builder( - Jni.androidApplicationContext..releasedBy(arena)) - ..releasedBy(arena); + Jni.androidApplicationContext..releasedBy(arena), + )..releasedBy(arena); if (storagePath != null) { builder @@ -165,7 +161,8 @@ class CronetEngine { if (enablePublicKeyPinningBypassForLocalTrustAnchors != null) { builder .enablePublicKeyPinningBypassForLocalTrustAnchors( - enablePublicKeyPinningBypassForLocalTrustAnchors) + enablePublicKeyPinningBypassForLocalTrustAnchors, + ) ?.release(); } @@ -182,7 +179,10 @@ class CronetEngine { if (quicHints != null) { for (final (host, port, alternativePort) in quicHints) { builder.addQuicHint( - host.toJString()..releasedBy(arena), port, alternativePort); + host.toJString()..releasedBy(arena), + port, + alternativePort, + ); } } @@ -193,7 +193,8 @@ class CronetEngine { // https://github.com/dart-lang/jnigen/issues/239 is fixed. if (e.message.contains('java.lang.IllegalArgumentException:')) { throw ArgumentError( - e.message.split('java.lang.IllegalArgumentException:').last); + e.message.split('java.lang.IllegalArgumentException:').last, + ); } rethrow; } @@ -226,7 +227,9 @@ class CronetEngine { void startNetLogToFile(String fileName, bool logAll) { using((arena) { _engine.startNetLogToFile( - fileName.toJString()..releasedBy(arena), logAll); + fileName.toJString()..releasedBy(arena), + logAll, + ); }); } @@ -239,19 +242,21 @@ class CronetEngine { } Map _cronetToClientHeaders( - JMap?> cronetHeaders) => - cronetHeaders.map((key, value) { - final entry = MapEntry( - key!.toDartString(releaseOriginal: true).toLowerCase(), - value!.join(',')); - value.release(); - return entry; - }); + JMap?> cronetHeaders, +) => cronetHeaders.map((key, value) { + final entry = MapEntry( + key!.toDartString(releaseOriginal: true).toLowerCase(), + value!.join(','), + ); + value.release(); + return entry; +}); jb.UrlRequestCallbackProxy$UrlRequestCallbackInterface _urlRequestCallbacks( - BaseRequest request, - Completer responseCompleter, - HttpClientRequestProfile? profile) { + BaseRequest request, + Completer responseCompleter, + HttpClientRequestProfile? profile, +) { StreamController>? responseStream; JByteBuffer? jByteBuffer; var numRedirects = 0; @@ -260,224 +265,245 @@ 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( - // All of the variables in the interface are non-nullable with the - // exception of onFailed's UrlResponseInfo as specified in: - // https://source.chromium.org/chromium/chromium/src/+/main:components/cronet/android/api/src/org/chromium/net/UrlRequest.java;l=232 - jb.$UrlRequestCallbackProxy$UrlRequestCallbackInterface( - onResponseStarted$async: true, - onResponseStarted: (urlRequest, responseInfo) { - using((arena) { - // `urlRequest` is captured by the `onCancel` callback of the - // `StreamController` below. So it must not be registered to be later - // released here. - responseInfo?.releasedBy(arena); - responseStream = StreamController(onCancel: () { - // The user did `response.stream.cancel()`. We can just pretend that - // the response completed normally. + // All of the variables in the interface are non-nullable with the + // exception of onFailed's UrlResponseInfo as specified in: + // https://source.chromium.org/chromium/chromium/src/+/main:components/cronet/android/api/src/org/chromium/net/UrlRequest.java;l=232 + jb.$UrlRequestCallbackProxy$UrlRequestCallbackInterface( + onResponseStarted$async: true, + onResponseStarted: (urlRequest, responseInfo) { + using((arena) { + // `urlRequest` is captured by the `onCancel` callback of the + // `StreamController` below. So it must not be registered to be later + // released here. + responseInfo?.releasedBy(arena); + responseStream = StreamController( + onCancel: () { + // The user did `response.stream.cancel()`. We can just + // pretend that the response completed normally. + if (responseStreamCancelled) return; + responseStreamCancelled = true; + urlRequest! + ..cancel() + ..release(); + responseStream!.sink.close(); + jByteBuffer?.release(); + profile?.responseData.close(); + }, + ); + final responseHeaders = _cronetToClientHeaders( + responseInfo!.getAllHeaders()!..releasedBy(arena), + ); + int? contentLength; + + switch (responseHeaders['content-length']) { + case final contentLengthHeader? + when !_digitRegex.hasMatch(contentLengthHeader): + responseCompleter.completeError( + ClientException( + 'Invalid content-length header [$contentLengthHeader].', + request.url, + ), + ); + urlRequest + ?..cancel() + ..release(); + return; + case final contentLengthHeader?: + contentLength = int.parse(contentLengthHeader); + } + responseCompleter.complete( + CronetStreamedResponse._( + responseStream!.stream, + responseInfo.getHttpStatusCode(), + negotiatedProtocol: responseInfo + .getNegotiatedProtocol()! + .toDartString(releaseOriginal: true), + receivedByteCount: responseInfo.getReceivedByteCount(), + wasCached: responseInfo.wasCached(), + url: Uri.parse( + responseInfo.getUrl()!.toDartString(releaseOriginal: true), + ), + contentLength: contentLength, + reasonPhrase: responseInfo.getHttpStatusText()!.toDartString( + releaseOriginal: true, + ), + request: request, + isRedirect: false, + headers: responseHeaders, + ), + ); + + profile?.requestData.close(); + profile?.responseData + ?..contentLength = contentLength + ..headersCommaValues = responseHeaders + ..isRedirect = false + ..reasonPhrase = responseInfo.getHttpStatusText()!.toDartString( + releaseOriginal: true, + ) + ..startTime = DateTime.now() + ..statusCode = responseInfo.getHttpStatusCode(); + jByteBuffer = JByteBuffer.allocateDirect(_bufferSize); + urlRequest?.read(jByteBuffer!); + }); + }, + onRedirectReceived$async: true, + onRedirectReceived: (urlRequest, responseInfo, newLocationUrl) { + using((arena) { + urlRequest?.releasedBy(arena); + responseInfo?.releasedBy(arena); + newLocationUrl?.releasedBy(arena); + if (responseStreamCancelled) return; + final responseHeaders = _cronetToClientHeaders( + responseInfo!.getAllHeaders()!, + ); + + if (!request.followRedirects) { + urlRequest!.cancel(); + responseCompleter.complete( + CronetStreamedResponse._( + const Stream.empty(), // Cronet provides no body for redirects. + responseInfo.getHttpStatusCode(), + negotiatedProtocol: responseInfo + .getNegotiatedProtocol()! + .toDartString(releaseOriginal: true), + receivedByteCount: responseInfo.getReceivedByteCount(), + wasCached: responseInfo.wasCached(), + url: Uri.parse( + responseInfo.getUrl()!.toDartString(releaseOriginal: true), + ), + contentLength: 0, + reasonPhrase: responseInfo.getHttpStatusText()!.toDartString( + releaseOriginal: true, + ), + request: request, + isRedirect: true, + headers: responseHeaders, + ), + ); + + profile?.responseData + ?..headersCommaValues = responseHeaders + ..isRedirect = true + ..reasonPhrase = responseInfo.getHttpStatusText()!.toDartString( + releaseOriginal: true, + ) + ..startTime = DateTime.now() + ..statusCode = responseInfo.getHttpStatusCode(); + + return; + } + ++numRedirects; + if (numRedirects <= request.maxRedirects) { + profile?.responseData.addRedirect( + HttpProfileRedirectData( + statusCode: responseInfo.getHttpStatusCode(), + // 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(); + } else { + urlRequest!.cancel(); + responseCompleter.completeError( + ClientException('Redirect limit exceeded', request.url), + ); + } + }); + }, + onReadCompleted$async: true, + onReadCompleted: (urlRequest, responseInfo, byteBuffer) { + using((arena) { + urlRequest?.releasedBy(arena); + responseInfo?.releasedBy(arena); + byteBuffer?.releasedBy(arena); + if (responseStreamCancelled) return; + byteBuffer!.flip(); + final data = jByteBuffer!.asUint8List().sublist( + 0, + byteBuffer.remaining, + ); + responseStream!.add(data); + profile?.responseData.bodySink.add(data); + + byteBuffer.clear(); + urlRequest!.read(byteBuffer); + }); + }, + onSucceeded$async: true, + onSucceeded: (urlRequest, responseInfo) { + using((arena) { + urlRequest?.releasedBy(arena); + responseInfo?.releasedBy(arena); if (responseStreamCancelled) return; responseStreamCancelled = true; - urlRequest! - ..cancel() - ..release(); responseStream!.sink.close(); jByteBuffer?.release(); profile?.responseData.close(); }); - final responseHeaders = _cronetToClientHeaders( - responseInfo!.getAllHeaders()!..releasedBy(arena)); - int? contentLength; - - switch (responseHeaders['content-length']) { - case final contentLengthHeader? - when !_digitRegex.hasMatch(contentLengthHeader): - responseCompleter.completeError(ClientException( - 'Invalid content-length header [$contentLengthHeader].', - request.url, - )); - urlRequest - ?..cancel() - ..release(); - return; - case final contentLengthHeader?: - contentLength = int.parse(contentLengthHeader); - } - responseCompleter.complete(CronetStreamedResponse._( - responseStream!.stream, - responseInfo.getHttpStatusCode(), - negotiatedProtocol: responseInfo - .getNegotiatedProtocol()! - .toDartString(releaseOriginal: true), - receivedByteCount: responseInfo.getReceivedByteCount(), - wasCached: responseInfo.wasCached(), - url: Uri.parse( - responseInfo.getUrl()!.toDartString(releaseOriginal: true)), - contentLength: contentLength, - reasonPhrase: responseInfo - .getHttpStatusText()! - .toDartString(releaseOriginal: true), - request: request, - isRedirect: false, - headers: responseHeaders, - )); - - profile?.requestData.close(); - profile?.responseData - ?..contentLength = contentLength - ..headersCommaValues = responseHeaders - ..isRedirect = false - ..reasonPhrase = responseInfo - .getHttpStatusText()! - .toDartString(releaseOriginal: true) - ..startTime = DateTime.now() - ..statusCode = responseInfo.getHttpStatusCode(); - jByteBuffer = JByteBuffer.allocateDirect(_bufferSize); - urlRequest?.read(jByteBuffer!); - }); - }, - onRedirectReceived$async: true, - onRedirectReceived: (urlRequest, responseInfo, newLocationUrl) { - using((arena) { - urlRequest?.releasedBy(arena); - responseInfo?.releasedBy(arena); - newLocationUrl?.releasedBy(arena); - if (responseStreamCancelled) return; - final responseHeaders = - _cronetToClientHeaders(responseInfo!.getAllHeaders()!); - - if (!request.followRedirects) { - urlRequest!.cancel(); - responseCompleter.complete(CronetStreamedResponse._( - const Stream.empty(), // Cronet provides no body for redirects. - responseInfo.getHttpStatusCode(), - negotiatedProtocol: responseInfo - .getNegotiatedProtocol()! - .toDartString(releaseOriginal: true), - receivedByteCount: responseInfo.getReceivedByteCount(), - wasCached: responseInfo.wasCached(), - url: Uri.parse( - responseInfo.getUrl()!.toDartString(releaseOriginal: true)), - contentLength: 0, - reasonPhrase: responseInfo - .getHttpStatusText()! - .toDartString(releaseOriginal: true), - request: request, - isRedirect: true, - headers: responseHeaders, - )); - - profile?.responseData - ?..headersCommaValues = responseHeaders - ..isRedirect = true - ..reasonPhrase = responseInfo - .getHttpStatusText()! - .toDartString(releaseOriginal: true) - ..startTime = DateTime.now() - ..statusCode = responseInfo.getHttpStatusCode(); - - return; - } - ++numRedirects; - if (numRedirects <= request.maxRedirects) { - profile?.responseData.addRedirect(HttpProfileRedirectData( - statusCode: responseInfo.getHttpStatusCode(), - // 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(); - } else { - urlRequest!.cancel(); - responseCompleter.completeError( - ClientException('Redirect limit exceeded', request.url)); - } - }); - }, - onReadCompleted$async: true, - onReadCompleted: (urlRequest, responseInfo, byteBuffer) { - using((arena) { - urlRequest?.releasedBy(arena); - responseInfo?.releasedBy(arena); - byteBuffer?.releasedBy(arena); - if (responseStreamCancelled) return; - byteBuffer!.flip(); - final data = - jByteBuffer!.asUint8List().sublist(0, byteBuffer.remaining); - responseStream!.add(data); - profile?.responseData.bodySink.add(data); - - byteBuffer.clear(); - urlRequest!.read(byteBuffer); - }); - }, - onSucceeded$async: true, - onSucceeded: (urlRequest, responseInfo) { - using((arena) { - urlRequest?.releasedBy(arena); - responseInfo?.releasedBy(arena); - if (responseStreamCancelled) return; - responseStreamCancelled = true; - responseStream!.sink.close(); - jByteBuffer?.release(); - profile?.responseData.close(); - }); - }, - onFailed$async: true, - onFailed: (urlRequest, responseInfo /* can be null */, cronetException) { - using((arena) { - urlRequest?.releasedBy(arena); - responseInfo?.releasedBy(arena); - cronetException?.releasedBy(arena); - if (responseStreamCancelled) return; - responseStreamCancelled = true; - final error = ClientException( - 'Cronet exception: ${cronetException.toString()}', request.url); - if (responseStream == null) { - responseCompleter.completeError(error); - } else { - responseStream!.addError(error); - responseStream!.close(); - } - - if (profile != null) { - if (profile.requestData.endTime == null) { - profile.requestData.closeWithError(error.toString()); + }, + onFailed$async: true, + onFailed: (urlRequest, responseInfo /* can be null */, cronetException) { + using((arena) { + urlRequest?.releasedBy(arena); + responseInfo?.releasedBy(arena); + cronetException?.releasedBy(arena); + if (responseStreamCancelled) return; + responseStreamCancelled = true; + final error = ClientException( + 'Cronet exception: ${cronetException.toString()}', + request.url, + ); + if (responseStream == null) { + responseCompleter.completeError(error); } else { - profile.responseData.closeWithError(error.toString()); - } - } - jByteBuffer?.release(); - }); - }, - onCanceled$async: true, - // Will always be the last callback invoked. - // See https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/UrlRequest#cancel() - onCanceled: (urlRequest, urlResponseInfo /* can be null */) { - using((arena) { - urlRequest?.releasedBy(arena); - urlResponseInfo?.releasedBy(arena); - if (responseStreamCancelled) return; - responseStreamCancelled = true; - final error = RequestAbortedException(request.url); - if (responseStream == null) { - responseCompleter.completeError(error); - } else { - if (!responseStream!.isClosed) { - responseStream!.sink.addError(error); + responseStream!.addError(error); responseStream!.close(); } - } - if (profile != null) { - if (profile.requestData.endTime == null) { - profile.requestData.closeWithError(error.toString()); + + if (profile != null) { + if (profile.requestData.endTime == null) { + profile.requestData.closeWithError(error.toString()); + } else { + profile.responseData.closeWithError(error.toString()); + } + } + jByteBuffer?.release(); + }); + }, + onCanceled$async: true, + // Will always be the last callback invoked. + // See https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/UrlRequest#cancel() + onCanceled: (urlRequest, urlResponseInfo /* can be null */) { + using((arena) { + urlRequest?.releasedBy(arena); + urlResponseInfo?.releasedBy(arena); + if (responseStreamCancelled) return; + responseStreamCancelled = true; + final error = RequestAbortedException(request.url); + if (responseStream == null) { + responseCompleter.completeError(error); } else { - profile.responseData.closeWithError(error.toString()); + if (!responseStream!.isClosed) { + responseStream!.sink.addError(error); + responseStream!.close(); + } } - } - jByteBuffer?.release(); - }); - }, - )); + if (profile != null) { + if (profile.requestData.endTime == null) { + profile.requestData.closeWithError(error.toString()); + } else { + profile.responseData.closeWithError(error.toString()); + } + } + jByteBuffer?.release(); + }); + }, + ), + ); } /// A HTTP [Client] based on the @@ -501,9 +527,10 @@ class CronetClient extends BaseClient { /// If [closeEngine] is `true`, then [engine] will be closed when [close] is /// called on this [CronetClient]. This can simplify lifetime management if /// [engine] is only used in one [CronetClient]. - factory CronetClient.fromCronetEngine(CronetEngine engine, - {bool closeEngine = false}) => - CronetClient._(engine, closeEngine); + factory CronetClient.fromCronetEngine( + CronetEngine engine, { + bool closeEngine = false, + }) => CronetClient._(engine, closeEngine); /// A [CronetClient] configured with a [Future] containing a [CronetEngine]. /// @@ -531,16 +558,19 @@ class CronetClient extends BaseClient { HttpClientRequestProfile? _createProfile(BaseRequest request) => HttpClientRequestProfile.profile( - requestStartTime: DateTime.now(), - requestMethod: request.method, - requestUri: request.url.toString()); + requestStartTime: DateTime.now(), + requestMethod: request.method, + requestUri: request.url.toString(), + ); /// Sends an HTTP request and asynchronously returns the response. @override Future send(BaseRequest request) async { if (_isClosed) { throw ClientException( - 'HTTP request failed. Client is already closed.', request.url); + 'HTTP request failed. Client is already closed.', + request.url, + ); } final engine = _engine ?? CronetEngine.build(); @@ -548,7 +578,9 @@ class CronetClient extends BaseClient { if (engine._isClosed) { throw ClientException( - 'HTTP request failed. CronetEngine is already closed.', request.url); + 'HTTP request failed. CronetEngine is already closed.', + request.url, + ); } final profile = _createProfile(request); @@ -564,7 +596,7 @@ class CronetClient extends BaseClient { if (profile != null && request.contentLength != null) { profile.requestData.headersListValues = { 'Content-Length': ['${request.contentLength}'], - ...profile.requestData.headers! + ...profile.requestData.headers!, }; } @@ -577,14 +609,16 @@ class CronetClient extends BaseClient { return await using((arena) async { final jUrl = request.url.toString().toJString()..releasedBy(arena); final jMethod = request.method.toJString()..releasedBy(arena); - final builder = engine._engine.newUrlRequestBuilder( - jUrl, - jb.UrlRequestCallbackProxy( - _urlRequestCallbacks(request, responseCompleter, profile)), - _executor, - )! - ..releasedBy(arena) - ..setHttpMethod(jMethod); + final builder = + engine._engine.newUrlRequestBuilder( + jUrl, + jb.UrlRequestCallbackProxy( + _urlRequestCallbacks(request, responseCompleter, profile), + ), + _executor, + )! + ..releasedBy(arena) + ..setHttpMethod(jMethod); var headers = request.headers; if (body.isNotEmpty && @@ -593,8 +627,12 @@ class CronetClient extends BaseClient { // 'Content-Type' header. headers = {...headers, 'content-type': 'application/octet-stream'}; } - headers.forEach((k, v) => builder.addHeader( - k.toJString()..releasedBy(arena), v.toJString()..releasedBy(arena))); + headers.forEach( + (k, v) => builder.addHeader( + k.toJString()..releasedBy(arena), + v.toJString()..releasedBy(arena), + ), + ); if (body.isNotEmpty) { final JByteBuffer data; @@ -606,14 +644,17 @@ class CronetClient extends BaseClient { // `CronetClient.post` until you get this exception. if (e.message.contains('java.lang.OutOfMemoryError:')) { throw ClientException( - 'Not enough memory for request body: ${e.message}', - request.url); + 'Not enough memory for request body: ${e.message}', + request.url, + ); } rethrow; } builder.setUploadDataProvider( - jb.UploadDataProviders.create$2(data), _executor); + jb.UploadDataProviders.create$2(data), + _executor, + ); } // Not releasing `cronetRequest` as it's used in `whenComplete` callback. diff --git a/pkgs/cronet_http/lib/src/jni/jni_bindings.dart b/pkgs/cronet_http/lib/src/jni/jni_bindings.dart index c03a8b8da7..0f7ec14f05 100644 --- a/pkgs/cronet_http/lib/src/jni/jni_bindings.dart +++ b/pkgs/cronet_http/lib/src/jni/jni_bindings.dart @@ -46,43 +46,51 @@ class UrlRequestCallbackProxy$UrlRequestCallbackInterface @jni$_.internal UrlRequestCallbackProxy$UrlRequestCallbackInterface.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'io/flutter/plugins/cronet_http/UrlRequestCallbackProxy$UrlRequestCallbackInterface'); + r'io/flutter/plugins/cronet_http/UrlRequestCallbackProxy$UrlRequestCallbackInterface', + ); /// The type which includes information such as the signature of this class. static const jni$_.JType - nullableType = + nullableType = $UrlRequestCallbackProxy$UrlRequestCallbackInterface$NullableType$(); /// The type which includes information such as the signature of this class. static const jni$_.JType - type = $UrlRequestCallbackProxy$UrlRequestCallbackInterface$Type$(); + 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< + static final _onRedirectReceived = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public fun onRedirectReceived(request: org.chromium.net.UrlRequest?, info: org.chromium.net.UrlResponseInfo?, newLocationUrl: kotlin.String?): kotlin.Unit` void onRedirectReceived( @@ -95,12 +103,12 @@ class UrlRequestCallbackProxy$UrlRequestCallbackInterface urlResponseInfo?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; _onRedirectReceived( - reference.pointer, - _id_onRedirectReceived as jni$_.JMethodIDPtr, - _$urlRequest.pointer, - _$urlResponseInfo.pointer, - _$string.pointer) - .check(); + reference.pointer, + _id_onRedirectReceived as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + _$string.pointer, + ).check(); } static final _id_onResponseStarted = _class.instanceMethodId( @@ -108,22 +116,26 @@ class UrlRequestCallbackProxy$UrlRequestCallbackInterface r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V', ); - static final _onResponseStarted = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onResponseStarted = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public fun onResponseStarted(request: org.chromium.net.UrlRequest?, info: org.chromium.net.UrlResponseInfo?): kotlin.Unit` void onResponseStarted( @@ -134,11 +146,11 @@ class UrlRequestCallbackProxy$UrlRequestCallbackInterface final _$urlResponseInfo = urlResponseInfo?.reference ?? jni$_.jNullReference; _onResponseStarted( - reference.pointer, - _id_onResponseStarted as jni$_.JMethodIDPtr, - _$urlRequest.pointer, - _$urlResponseInfo.pointer) - .check(); + reference.pointer, + _id_onResponseStarted as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + ).check(); } static final _id_onReadCompleted = _class.instanceMethodId( @@ -146,24 +158,31 @@ class UrlRequestCallbackProxy$UrlRequestCallbackInterface r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/nio/ByteBuffer;)V', ); - static final _onReadCompleted = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onReadCompleted = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public fun onReadCompleted(request: org.chromium.net.UrlRequest?, info: org.chromium.net.UrlResponseInfo?, byteBuffer: java.nio.ByteBuffer?): kotlin.Unit` void onReadCompleted( @@ -176,12 +195,12 @@ class UrlRequestCallbackProxy$UrlRequestCallbackInterface urlResponseInfo?.reference ?? jni$_.jNullReference; final _$byteBuffer = byteBuffer?.reference ?? jni$_.jNullReference; _onReadCompleted( - reference.pointer, - _id_onReadCompleted as jni$_.JMethodIDPtr, - _$urlRequest.pointer, - _$urlResponseInfo.pointer, - _$byteBuffer.pointer) - .check(); + reference.pointer, + _id_onReadCompleted as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + _$byteBuffer.pointer, + ).check(); } static final _id_onSucceeded = _class.instanceMethodId( @@ -189,34 +208,38 @@ class UrlRequestCallbackProxy$UrlRequestCallbackInterface r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V', ); - static final _onSucceeded = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onSucceeded = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public fun onSucceeded(request: org.chromium.net.UrlRequest?, info: org.chromium.net.UrlResponseInfo?): kotlin.Unit` - void onSucceeded( - UrlRequest? urlRequest, - UrlResponseInfo? urlResponseInfo, - ) { + void onSucceeded(UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo) { 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(); + _onSucceeded( + reference.pointer, + _id_onSucceeded as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + ).check(); } static final _id_onCanceled = _class.instanceMethodId( @@ -224,34 +247,38 @@ class UrlRequestCallbackProxy$UrlRequestCallbackInterface r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V', ); - static final _onCanceled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onCanceled = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public fun onCanceled(request: org.chromium.net.UrlRequest?, info: org.chromium.net.UrlResponseInfo?): kotlin.Unit` - void onCanceled( - UrlRequest? urlRequest, - UrlResponseInfo? urlResponseInfo, - ) { + void onCanceled(UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo) { 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(); + _onCanceled( + reference.pointer, + _id_onCanceled as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + ).check(); } static final _id_onFailed = _class.instanceMethodId( @@ -259,24 +286,31 @@ 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< + static final _onFailed = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public fun onFailed(request: org.chromium.net.UrlRequest?, info: org.chromium.net.UrlResponseInfo?, error: org.chromium.net.CronetException?): kotlin.Unit` void onFailed( @@ -290,18 +324,20 @@ class UrlRequestCallbackProxy$UrlRequestCallbackInterface final _$cronetException = cronetException?.reference ?? jni$_.jNullReference; _onFailed( - reference.pointer, - _id_onFailed as jni$_.JMethodIDPtr, - _$urlRequest.pointer, - _$urlResponseInfo.pointer, - _$cronetException.pointer) - .check(); + 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 - _$impls = {}; + static final core$_.Map< + int, + $UrlRequestCallbackProxy$UrlRequestCallbackInterface + > + _$impls = {}; static jni$_.JObjectPtr _$invoke( int port, jni$_.JObjectPtr descriptor, @@ -309,19 +345,16 @@ class UrlRequestCallbackProxy$UrlRequestCallbackInterface ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address), ); } static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -438,115 +471,176 @@ class UrlRequestCallbackProxy$UrlRequestCallbackInterface abstract base mixin class $UrlRequestCallbackProxy$UrlRequestCallbackInterface { factory $UrlRequestCallbackProxy$UrlRequestCallbackInterface({ - required void Function(UrlRequest? urlRequest, - UrlResponseInfo? urlResponseInfo, jni$_.JString? string) - onRedirectReceived, + required void Function( + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, + jni$_.JString? string, + ) + onRedirectReceived, bool onRedirectReceived$async, required void Function( - UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo) - onResponseStarted, + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, + ) + onResponseStarted, bool onResponseStarted$async, - required void Function(UrlRequest? urlRequest, - UrlResponseInfo? urlResponseInfo, jni$_.JByteBuffer? byteBuffer) - onReadCompleted, + required void Function( + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, + jni$_.JByteBuffer? byteBuffer, + ) + onReadCompleted, bool onReadCompleted$async, required void Function( - UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo) - onSucceeded, + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, + ) + onSucceeded, bool onSucceeded$async, required void Function( - UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo) - onCanceled, + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, + ) + onCanceled, bool onCanceled$async, - required void Function(UrlRequest? urlRequest, - UrlResponseInfo? urlResponseInfo, CronetException? cronetException) - onFailed, + required void Function( + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, + CronetException? cronetException, + ) + onFailed, bool onFailed$async, }) = _$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); bool get onSucceeded$async => false; void onCanceled(UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo); bool get onCanceled$async => false; - void onFailed(UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo, - CronetException? cronetException); + void onFailed( + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, + CronetException? cronetException, + ); bool get onFailed$async => false; } final class _$UrlRequestCallbackProxy$UrlRequestCallbackInterface with $UrlRequestCallbackProxy$UrlRequestCallbackInterface { _$UrlRequestCallbackProxy$UrlRequestCallbackInterface({ - required void Function(UrlRequest? urlRequest, - UrlResponseInfo? urlResponseInfo, jni$_.JString? string) - onRedirectReceived, + required void Function( + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, + jni$_.JString? string, + ) + onRedirectReceived, this.onRedirectReceived$async = false, required void Function( - UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo) - onResponseStarted, + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, + ) + onResponseStarted, this.onResponseStarted$async = false, - required void Function(UrlRequest? urlRequest, - UrlResponseInfo? urlResponseInfo, jni$_.JByteBuffer? byteBuffer) - onReadCompleted, + required void Function( + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, + jni$_.JByteBuffer? byteBuffer, + ) + onReadCompleted, this.onReadCompleted$async = false, required void Function( - UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo) - onSucceeded, + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, + ) + onSucceeded, this.onSucceeded$async = false, required void Function( - UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo) - onCanceled, + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, + ) + onCanceled, this.onCanceled$async = false, - required void Function(UrlRequest? urlRequest, - UrlResponseInfo? urlResponseInfo, CronetException? cronetException) - onFailed, + required void Function( + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, + CronetException? cronetException, + ) + onFailed, this.onFailed$async = false, - }) : _onRedirectReceived = onRedirectReceived, - _onResponseStarted = onResponseStarted, - _onReadCompleted = onReadCompleted, - _onSucceeded = onSucceeded, - _onCanceled = onCanceled, - _onFailed = onFailed; - - final void Function(UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo, - jni$_.JString? string) _onRedirectReceived; + }) : _onRedirectReceived = onRedirectReceived, + _onResponseStarted = onResponseStarted, + _onReadCompleted = onReadCompleted, + _onSucceeded = onSucceeded, + _onCanceled = onCanceled, + _onFailed = onFailed; + + final void Function( + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, + jni$_.JString? string, + ) + _onRedirectReceived; final bool onRedirectReceived$async; final void Function(UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo) - _onResponseStarted; + _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) - _onSucceeded; + _onSucceeded; final bool onSucceeded$async; final void Function(UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo) - _onCanceled; + _onCanceled; final bool onCanceled$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); } @@ -558,8 +652,11 @@ final class _$UrlRequestCallbackProxy$UrlRequestCallbackInterface return _onCanceled(urlRequest, urlResponseInfo); } - void onFailed(UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo, - CronetException? cronetException) { + void onFailed( + UrlRequest? urlRequest, + UrlResponseInfo? urlResponseInfo, + CronetException? cronetException, + ) { return _onFailed(urlRequest, urlResponseInfo, cronetException); } } @@ -577,12 +674,12 @@ final class $UrlRequestCallbackProxy$UrlRequestCallbackInterface$NullableType$ @jni$_.internal @core$_.override UrlRequestCallbackProxy$UrlRequestCallbackInterface? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : UrlRequestCallbackProxy$UrlRequestCallbackInterface.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : UrlRequestCallbackProxy$UrlRequestCallbackInterface.fromReference( + reference, + ); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$Type$(); @@ -590,7 +687,7 @@ final class $UrlRequestCallbackProxy$UrlRequestCallbackInterface$NullableType$ @jni$_.internal @core$_.override jni$_.JType - get nullableType => this; + get nullableType => this; @jni$_.internal @core$_.override @@ -623,10 +720,10 @@ final class $UrlRequestCallbackProxy$UrlRequestCallbackInterface$Type$ @jni$_.internal @core$_.override UrlRequestCallbackProxy$UrlRequestCallbackInterface fromReference( - jni$_.JReference reference) => - UrlRequestCallbackProxy$UrlRequestCallbackInterface.fromReference( - reference, - ); + jni$_.JReference reference, + ) => UrlRequestCallbackProxy$UrlRequestCallbackInterface.fromReference( + reference, + ); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$Type$(); @@ -634,8 +731,8 @@ final class $UrlRequestCallbackProxy$UrlRequestCallbackInterface$Type$ @jni$_.internal @core$_.override jni$_.JType - get nullableType => - const $UrlRequestCallbackProxy$UrlRequestCallbackInterface$NullableType$(); + get nullableType => + const $UrlRequestCallbackProxy$UrlRequestCallbackInterface$NullableType$(); @jni$_.internal @core$_.override @@ -660,13 +757,13 @@ class UrlRequestCallbackProxy extends UrlRequest$Callback { final jni$_.JType $type; @jni$_.internal - UrlRequestCallbackProxy.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + UrlRequestCallbackProxy.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'io/flutter/plugins/cronet_http/UrlRequestCallbackProxy'); + r'io/flutter/plugins/cronet_http/UrlRequestCallbackProxy', + ); /// The type which includes information such as the signature of this class. static const jni$_.JType nullableType = @@ -679,29 +776,38 @@ class UrlRequestCallbackProxy extends UrlRequest$Callback { r'(Lio/flutter/plugins/cronet_http/UrlRequestCallbackProxy$UrlRequestCallbackInterface;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `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 - urlRequestCallbackInterface, + urlRequestCallbackInterface, ) { final _$urlRequestCallbackInterface = urlRequestCallbackInterface.reference; - return UrlRequestCallbackProxy.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$urlRequestCallbackInterface.pointer) - .reference); + return UrlRequestCallbackProxy.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$urlRequestCallbackInterface.pointer, + ).reference, + ); } static final _id_getCallback = _class.instanceMethodId( @@ -709,25 +815,31 @@ class UrlRequestCallbackProxy extends UrlRequest$Callback { r'()Lio/flutter/plugins/cronet_http/UrlRequestCallbackProxy$UrlRequestCallbackInterface;', ); - static final _getCallback = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getCallback = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final io.flutter.plugins.cronet_http.UrlRequestCallbackProxy$UrlRequestCallbackInterface getCallback()` /// The returned object must be released after use, by calling the [release] method. UrlRequestCallbackProxy$UrlRequestCallbackInterface getCallback() { return _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( @@ -735,24 +847,31 @@ 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< + static final _onRedirectReceived = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public fun onRedirectReceived(request: org.chromium.net.UrlRequest?, info: org.chromium.net.UrlResponseInfo?, newLocationUrl: kotlin.String?): kotlin.Unit` void onRedirectReceived( @@ -765,12 +884,12 @@ class UrlRequestCallbackProxy extends UrlRequest$Callback { urlResponseInfo?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; _onRedirectReceived( - reference.pointer, - _id_onRedirectReceived as jni$_.JMethodIDPtr, - _$urlRequest.pointer, - _$urlResponseInfo.pointer, - _$string.pointer) - .check(); + reference.pointer, + _id_onRedirectReceived as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + _$string.pointer, + ).check(); } static final _id_onResponseStarted = _class.instanceMethodId( @@ -778,22 +897,26 @@ class UrlRequestCallbackProxy extends UrlRequest$Callback { r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V', ); - static final _onResponseStarted = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onResponseStarted = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public fun onResponseStarted(request: org.chromium.net.UrlRequest?, info: org.chromium.net.UrlResponseInfo?): kotlin.Unit` void onResponseStarted( @@ -804,11 +927,11 @@ class UrlRequestCallbackProxy extends UrlRequest$Callback { final _$urlResponseInfo = urlResponseInfo?.reference ?? jni$_.jNullReference; _onResponseStarted( - reference.pointer, - _id_onResponseStarted as jni$_.JMethodIDPtr, - _$urlRequest.pointer, - _$urlResponseInfo.pointer) - .check(); + reference.pointer, + _id_onResponseStarted as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + ).check(); } static final _id_onReadCompleted = _class.instanceMethodId( @@ -816,24 +939,31 @@ 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< + static final _onReadCompleted = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public fun onReadCompleted(request: org.chromium.net.UrlRequest?, info: org.chromium.net.UrlResponseInfo?, byteBuffer: java.nio.ByteBuffer?): kotlin.Unit` void onReadCompleted( @@ -846,12 +976,12 @@ class UrlRequestCallbackProxy extends UrlRequest$Callback { urlResponseInfo?.reference ?? jni$_.jNullReference; final _$byteBuffer = byteBuffer?.reference ?? jni$_.jNullReference; _onReadCompleted( - reference.pointer, - _id_onReadCompleted as jni$_.JMethodIDPtr, - _$urlRequest.pointer, - _$urlResponseInfo.pointer, - _$byteBuffer.pointer) - .check(); + reference.pointer, + _id_onReadCompleted as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + _$byteBuffer.pointer, + ).check(); } static final _id_onSucceeded = _class.instanceMethodId( @@ -859,34 +989,38 @@ class UrlRequestCallbackProxy extends UrlRequest$Callback { r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V', ); - static final _onSucceeded = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onSucceeded = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public fun onSucceeded(request: org.chromium.net.UrlRequest?, info: org.chromium.net.UrlResponseInfo?): kotlin.Unit` - void onSucceeded( - UrlRequest? urlRequest, - UrlResponseInfo? urlResponseInfo, - ) { + void onSucceeded(UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo) { 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(); + _onSucceeded( + reference.pointer, + _id_onSucceeded as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + ).check(); } static final _id_onCanceled = _class.instanceMethodId( @@ -894,34 +1028,38 @@ class UrlRequestCallbackProxy extends UrlRequest$Callback { r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V', ); - static final _onCanceled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onCanceled = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public fun onCanceled(request: org.chromium.net.UrlRequest?, info: org.chromium.net.UrlResponseInfo?): kotlin.Unit` - void onCanceled( - UrlRequest? urlRequest, - UrlResponseInfo? urlResponseInfo, - ) { + void onCanceled(UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo) { 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(); + _onCanceled( + reference.pointer, + _id_onCanceled as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + ).check(); } static final _id_onFailed = _class.instanceMethodId( @@ -929,24 +1067,31 @@ 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< + static final _onFailed = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public fun onFailed(request: org.chromium.net.UrlRequest?, info: org.chromium.net.UrlResponseInfo?, error: org.chromium.net.CronetException?): kotlin.Unit` void onFailed( @@ -960,12 +1105,12 @@ class UrlRequestCallbackProxy extends UrlRequest$Callback { final _$cronetException = cronetException?.reference ?? jni$_.jNullReference; _onFailed( - reference.pointer, - _id_onFailed as jni$_.JMethodIDPtr, - _$urlRequest.pointer, - _$urlResponseInfo.pointer, - _$cronetException.pointer) - .check(); + reference.pointer, + _id_onFailed as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + _$cronetException.pointer, + ).check(); } } @@ -983,10 +1128,8 @@ final class $UrlRequestCallbackProxy$NullableType$ @core$_.override UrlRequestCallbackProxy? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : UrlRequestCallbackProxy.fromReference( - reference, - ); + ? null + : UrlRequestCallbackProxy.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const $UrlRequest$Callback$Type$(); @@ -1022,9 +1165,7 @@ final class $UrlRequestCallbackProxy$Type$ @jni$_.internal @core$_.override UrlRequestCallbackProxy fromReference(jni$_.JReference reference) => - UrlRequestCallbackProxy.fromReference( - reference, - ); + UrlRequestCallbackProxy.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const $UrlRequest$Callback$Type$(); @@ -1055,10 +1196,9 @@ class URL extends jni$_.JObject { final jni$_.JType $type; @jni$_.internal - URL.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + URL.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'java/net/URL'); @@ -1067,56 +1207,70 @@ class URL extends jni$_.JObject { /// The type which includes information such as the signature of this class. static const jni$_.JType type = $URL$Type$(); - static final _id_new$ = _class.constructorId( - r'(Ljava/lang/String;)V', - ); + static final _id_new$ = _class.constructorId(r'(Ljava/lang/String;)V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void (java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - factory URL( - jni$_.JString? string, - ) { + factory URL(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return URL.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$string.pointer) - .reference); + return URL.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$string.pointer, + ).reference, + ); } static final _id_new$1 = _class.constructorId( r'(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)V', ); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, int, - jni$_.Pointer)>(); + 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. @@ -1129,42 +1283,51 @@ class URL extends jni$_.JObject { 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.pointer, - _$string1.pointer, - i, - _$string2.pointer) - .reference); + return URL.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + i, + _$string2.pointer, + ).reference, + ); } static final _id_new$2 = _class.constructorId( r'(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/net/URLStreamHandler;)V', ); - static final _new$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, int, jni$_.Pointer, - 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. @@ -1180,39 +1343,48 @@ class URL extends jni$_.JObject { 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.pointer, - _$string1.pointer, - i, - _$string2.pointer, - _$uRLStreamHandler.pointer) - .reference); + return URL.fromReference( + _new$2( + _class.reference.pointer, + _id_new$2 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + i, + _$string2.pointer, + _$uRLStreamHandler.pointer, + ).reference, + ); } static final _id_new$3 = _class.constructorId( r'(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V', ); - static final _new$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, 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. @@ -1224,71 +1396,86 @@ class URL extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; final _$string2 = string2?.reference ?? jni$_.jNullReference; - return URL.fromReference(_new$3( - _class.reference.pointer, - _id_new$3 as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer, - _$string2.pointer) - .reference); + return URL.fromReference( + _new$3( + _class.reference.pointer, + _id_new$3 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + _$string2.pointer, + ).reference, + ); } static final _id_new$4 = _class.constructorId( r'(Ljava/net/URL;Ljava/lang/String;)V', ); - static final _new$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - 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, - ) { + factory URL.new$4(URL? uRL, jni$_.JString? string) { 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); + return URL.fromReference( + _new$4( + _class.reference.pointer, + _id_new$4 as jni$_.JMethodIDPtr, + _$uRL.pointer, + _$string.pointer, + ).reference, + ); } static final _id_new$5 = _class.constructorId( r'(Ljava/net/URL;Ljava/lang/String;Ljava/net/URLStreamHandler;)V', ); - static final _new$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, 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. @@ -1301,13 +1488,15 @@ class URL extends jni$_.JObject { 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.pointer, - _$string.pointer, - _$uRLStreamHandler.pointer) - .reference); + return URL.fromReference( + _new$5( + _class.reference.pointer, + _id_new$5 as jni$_.JMethodIDPtr, + _$uRL.pointer, + _$string.pointer, + _$uRLStreamHandler.pointer, + ).reference, + ); } static final _id_equals = _class.instanceMethodId( @@ -1315,25 +1504,32 @@ class URL extends jni$_.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( - jni$_.JObject? object, - ) { + bool equals(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; + return _equals( + reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + _$object.pointer, + ).boolean; } static final _id_getAuthority = _class.instanceMethodId( @@ -1341,24 +1537,29 @@ class URL extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getAuthority = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAuthority = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.lang.String getAuthority()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getAuthority() { return _getAuthority( - reference.pointer, _id_getAuthority as jni$_.JMethodIDPtr) - .object(const jni$_.$JString$NullableType$()); + reference.pointer, + _id_getAuthority as jni$_.JMethodIDPtr, + ).object(const jni$_.$JString$NullableType$()); } static final _id_getContent = _class.instanceMethodId( @@ -1366,23 +1567,29 @@ class URL extends jni$_.JObject { r'()Ljava/lang/Object;', ); - static final _getContent = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getContent = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public 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$_.$JObject$NullableType$()); + return _getContent( + reference.pointer, + _id_getContent as jni$_.JMethodIDPtr, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_getContent$1 = _class.instanceMethodId( @@ -1390,26 +1597,33 @@ 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$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - 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? classs, - ) { - final _$classs = classs?.reference ?? jni$_.jNullReference; - return _getContent$1(reference.pointer, - _id_getContent$1 as jni$_.JMethodIDPtr, _$classs.pointer) - .object(const jni$_.$JObject$NullableType$()); + 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$_.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? classs) { + final _$classs = classs?.reference ?? jni$_.jNullReference; + return _getContent$1( + reference.pointer, + _id_getContent$1 as jni$_.JMethodIDPtr, + _$classs.pointer, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_getDefaultPort = _class.instanceMethodId( @@ -1417,23 +1631,28 @@ class URL extends jni$_.JObject { r'()I', ); - static final _getDefaultPort = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getDefaultPort = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int getDefaultPort()` int getDefaultPort() { return _getDefaultPort( - reference.pointer, _id_getDefaultPort as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_getDefaultPort as jni$_.JMethodIDPtr, + ).integer; } static final _id_getFile = _class.instanceMethodId( @@ -1441,23 +1660,29 @@ class URL extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getFile = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getFile = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public 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$_.$JString$NullableType$()); + return _getFile( + reference.pointer, + _id_getFile as jni$_.JMethodIDPtr, + ).object(const jni$_.$JString$NullableType$()); } static final _id_getHost = _class.instanceMethodId( @@ -1465,23 +1690,29 @@ class URL extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getHost = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getHost = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public 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$_.$JString$NullableType$()); + return _getHost( + reference.pointer, + _id_getHost as jni$_.JMethodIDPtr, + ).object(const jni$_.$JString$NullableType$()); } static final _id_getPath = _class.instanceMethodId( @@ -1489,46 +1720,55 @@ class URL extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getPath = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getPath = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public 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$_.$JString$NullableType$()); + return _getPath( + reference.pointer, + _id_getPath as jni$_.JMethodIDPtr, + ).object(const jni$_.$JString$NullableType$()); } - static final _id_getPort = _class.instanceMethodId( - r'getPort', - r'()I', - ); + static final _id_getPort = _class.instanceMethodId(r'getPort', r'()I'); - static final _getPort = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getPort = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int getPort()` int getPort() { - return _getPort(reference.pointer, _id_getPort as jni$_.JMethodIDPtr) - .integer; + return _getPort( + reference.pointer, + _id_getPort as jni$_.JMethodIDPtr, + ).integer; } static final _id_getProtocol = _class.instanceMethodId( @@ -1536,24 +1776,29 @@ class URL extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getProtocol = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getProtocol = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.lang.String getProtocol()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getProtocol() { return _getProtocol( - reference.pointer, _id_getProtocol as jni$_.JMethodIDPtr) - .object(const jni$_.$JString$NullableType$()); + reference.pointer, + _id_getProtocol as jni$_.JMethodIDPtr, + ).object(const jni$_.$JString$NullableType$()); } static final _id_getQuery = _class.instanceMethodId( @@ -1561,23 +1806,29 @@ class URL extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getQuery = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getQuery = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public 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$_.$JString$NullableType$()); + return _getQuery( + reference.pointer, + _id_getQuery as jni$_.JMethodIDPtr, + ).object(const jni$_.$JString$NullableType$()); } static final _id_getRef = _class.instanceMethodId( @@ -1585,23 +1836,29 @@ class URL extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getRef = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getRef = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public 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$_.$JString$NullableType$()); + return _getRef( + reference.pointer, + _id_getRef as jni$_.JMethodIDPtr, + ).object(const jni$_.$JString$NullableType$()); } static final _id_getUserInfo = _class.instanceMethodId( @@ -1609,47 +1866,55 @@ class URL extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getUserInfo = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getUserInfo = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.lang.String getUserInfo()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getUserInfo() { return _getUserInfo( - reference.pointer, _id_getUserInfo as jni$_.JMethodIDPtr) - .object(const jni$_.$JString$NullableType$()); + reference.pointer, + _id_getUserInfo as jni$_.JMethodIDPtr, + ).object(const jni$_.$JString$NullableType$()); } - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); + static final _id_hashCode$1 = _class.instanceMethodId(r'hashCode', r'()I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + 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) - .integer; + return _hashCode$1( + reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + ).integer; } static final _id_openConnection = _class.instanceMethodId( @@ -1657,24 +1922,29 @@ class URL extends jni$_.JObject { r'()Ljava/net/URLConnection;', ); - static final _openConnection = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _openConnection = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.net.URLConnection openConnection()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? openConnection() { return _openConnection( - reference.pointer, _id_openConnection as jni$_.JMethodIDPtr) - .object(const jni$_.$JObject$NullableType$()); + reference.pointer, + _id_openConnection as jni$_.JMethodIDPtr, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_openConnection$1 = _class.instanceMethodId( @@ -1682,26 +1952,33 @@ 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$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + 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$_.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.pointer) - .object(const jni$_.$JObject$NullableType$()); + return _openConnection$1( + reference.pointer, + _id_openConnection$1 as jni$_.JMethodIDPtr, + _$proxy.pointer, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_openStream = _class.instanceMethodId( @@ -1709,23 +1986,29 @@ class URL extends jni$_.JObject { r'()Ljava/io/InputStream;', ); - static final _openStream = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _openStream = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public 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$_.$JObject$NullableType$()); + return _openStream( + reference.pointer, + _id_openStream as jni$_.JMethodIDPtr, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_sameFile = _class.instanceMethodId( @@ -1733,25 +2016,32 @@ class URL extends jni$_.JObject { r'(Ljava/net/URL;)Z', ); - 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$_.JMethodIDPtr, jni$_.Pointer)>(); + 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$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean sameFile(java.net.URL uRL)` - bool sameFile( - URL? uRL, - ) { + bool sameFile(URL? uRL) { final _$uRL = uRL?.reference ?? jni$_.jNullReference; - return _sameFile(reference.pointer, _id_sameFile as jni$_.JMethodIDPtr, - _$uRL.pointer) - .boolean; + return _sameFile( + reference.pointer, + _id_sameFile as jni$_.JMethodIDPtr, + _$uRL.pointer, + ).boolean; } static final _id_setURLStreamHandlerFactory = _class.staticMethodId( @@ -1761,15 +2051,21 @@ class URL extends jni$_.JObject { static final _setURLStreamHandlerFactory = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public void setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory uRLStreamHandlerFactory)` static void setURLStreamHandlerFactory( @@ -1778,10 +2074,10 @@ class URL extends jni$_.JObject { final _$uRLStreamHandlerFactory = uRLStreamHandlerFactory?.reference ?? jni$_.jNullReference; _setURLStreamHandlerFactory( - _class.reference.pointer, - _id_setURLStreamHandlerFactory as jni$_.JMethodIDPtr, - _$uRLStreamHandlerFactory.pointer) - .check(); + _class.reference.pointer, + _id_setURLStreamHandlerFactory as jni$_.JMethodIDPtr, + _$uRLStreamHandlerFactory.pointer, + ).check(); } static final _id_toExternalForm = _class.instanceMethodId( @@ -1789,24 +2085,29 @@ class URL extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toExternalForm = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toExternalForm = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.lang.String toExternalForm()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? toExternalForm() { return _toExternalForm( - reference.pointer, _id_toExternalForm as jni$_.JMethodIDPtr) - .object(const jni$_.$JString$NullableType$()); + reference.pointer, + _id_toExternalForm as jni$_.JMethodIDPtr, + ).object(const jni$_.$JString$NullableType$()); } static final _id_toString$1 = _class.instanceMethodId( @@ -1814,23 +2115,29 @@ class URL extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + 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$_.$JString$NullableType$()); + return _toString$1( + reference.pointer, + _id_toString$1 as jni$_.JMethodIDPtr, + ).object(const jni$_.$JString$NullableType$()); } static final _id_toURI = _class.instanceMethodId( @@ -1838,23 +2145,29 @@ class URL extends jni$_.JObject { r'()Ljava/net/URI;', ); - static final _toURI = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toURI = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public 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$_.$JObject$NullableType$()); + return _toURI( + reference.pointer, + _id_toURI as jni$_.JMethodIDPtr, + ).object(const jni$_.$JObject$NullableType$()); } } @@ -1868,11 +2181,8 @@ final class $URL$NullableType$ extends jni$_.JType { @jni$_.internal @core$_.override - URL? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : URL.fromReference( - reference, - ); + URL? fromReference(jni$_.JReference reference) => + reference.isNull ? null : URL.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -1905,9 +2215,7 @@ final class $URL$Type$ extends jni$_.JType { @jni$_.internal @core$_.override - URL fromReference(jni$_.JReference reference) => URL.fromReference( - reference, - ); + URL fromReference(jni$_.JReference reference) => URL.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -1936,10 +2244,9 @@ class Executors extends jni$_.JObject { final jni$_.JType $type; @jni$_.internal - Executors.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Executors.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'java/util/concurrent/Executors'); @@ -1954,26 +2261,33 @@ class Executors extends jni$_.JObject { r'(Ljava/lang/Runnable;)Ljava/util/concurrent/Callable;', ); - static final _callable = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _callable = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.util.concurrent.Callable callable(java.lang.Runnable runnable)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? callable( - jni$_.JObject? runnable, - ) { + static jni$_.JObject? callable(jni$_.JObject? runnable) { final _$runnable = runnable?.reference ?? jni$_.jNullReference; - return _callable(_class.reference.pointer, - _id_callable as jni$_.JMethodIDPtr, _$runnable.pointer) - .object(const jni$_.$JObject$NullableType$()); + return _callable( + _class.reference.pointer, + _id_callable as jni$_.JMethodIDPtr, + _$runnable.pointer, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_callable$1 = _class.staticMethodId( @@ -1981,22 +2295,26 @@ class Executors extends jni$_.JObject { r'(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Callable;', ); - static final _callable$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _callable$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - 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. @@ -2008,11 +2326,11 @@ class Executors extends jni$_.JObject { final _$runnable = runnable?.reference ?? jni$_.jNullReference; final _$object = object?.reference ?? jni$_.jNullReference; return _callable$1( - _class.reference.pointer, - _id_callable$1 as jni$_.JMethodIDPtr, - _$runnable.pointer, - _$object.pointer) - .object(const jni$_.$JObject$NullableType$()); + _class.reference.pointer, + _id_callable$1 as jni$_.JMethodIDPtr, + _$runnable.pointer, + _$object.pointer, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_callable$2 = _class.staticMethodId( @@ -2020,27 +2338,34 @@ 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$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + 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$_.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) { final _$privilegedAction = privilegedAction?.reference ?? jni$_.jNullReference; - return _callable$2(_class.reference.pointer, - _id_callable$2 as jni$_.JMethodIDPtr, _$privilegedAction.pointer) - .object(const jni$_.$JObject$NullableType$()); + return _callable$2( + _class.reference.pointer, + _id_callable$2 as jni$_.JMethodIDPtr, + _$privilegedAction.pointer, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_callable$3 = _class.staticMethodId( @@ -2048,29 +2373,34 @@ 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$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + 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$_.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.pointer) - .object(const jni$_.$JObject$NullableType$()); + _class.reference.pointer, + _id_callable$3 as jni$_.JMethodIDPtr, + _$privilegedExceptionAction.pointer, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_defaultThreadFactory = _class.staticMethodId( @@ -2078,24 +2408,29 @@ class Executors extends jni$_.JObject { r'()Ljava/util/concurrent/ThreadFactory;', ); - static final _defaultThreadFactory = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _defaultThreadFactory = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + 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() { - return _defaultThreadFactory(_class.reference.pointer, - _id_defaultThreadFactory as jni$_.JMethodIDPtr) - .object(const jni$_.$JObject$NullableType$()); + return _defaultThreadFactory( + _class.reference.pointer, + _id_defaultThreadFactory as jni$_.JMethodIDPtr, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_newCachedThreadPool = _class.staticMethodId( @@ -2103,24 +2438,29 @@ class Executors extends jni$_.JObject { r'()Ljava/util/concurrent/ExecutorService;', ); - static final _newCachedThreadPool = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _newCachedThreadPool = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + 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() { - return _newCachedThreadPool(_class.reference.pointer, - _id_newCachedThreadPool as jni$_.JMethodIDPtr) - .object(const jni$_.$JObject$NullableType$()); + return _newCachedThreadPool( + _class.reference.pointer, + _id_newCachedThreadPool as jni$_.JMethodIDPtr, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_newCachedThreadPool$1 = _class.staticMethodId( @@ -2128,28 +2468,33 @@ 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$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + 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$_.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.pointer) - .object(const jni$_.$JObject$NullableType$()); + _class.reference.pointer, + _id_newCachedThreadPool$1 as jni$_.JMethodIDPtr, + _$threadFactory.pointer, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_newFixedThreadPool = _class.staticMethodId( @@ -2157,23 +2502,32 @@ class Executors extends jni$_.JObject { r'(I)Ljava/util/concurrent/ExecutorService;', ); - 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$_.JMethodIDPtr, int)>(); + 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$_.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( - int i, - ) { - return _newFixedThreadPool(_class.reference.pointer, - _id_newFixedThreadPool as jni$_.JMethodIDPtr, i) - .object(const jni$_.$JObject$NullableType$()); + static jni$_.JObject? newFixedThreadPool(int i) { + return _newFixedThreadPool( + _class.reference.pointer, + _id_newFixedThreadPool as jni$_.JMethodIDPtr, + i, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_newFixedThreadPool$1 = _class.staticMethodId( @@ -2181,17 +2535,24 @@ 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$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Int32, jni$_.Pointer)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + 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$_.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. @@ -2201,11 +2562,11 @@ class Executors extends jni$_.JObject { ) { final _$threadFactory = threadFactory?.reference ?? jni$_.jNullReference; return _newFixedThreadPool$1( - _class.reference.pointer, - _id_newFixedThreadPool$1 as jni$_.JMethodIDPtr, - i, - _$threadFactory.pointer) - .object(const jni$_.$JObject$NullableType$()); + _class.reference.pointer, + _id_newFixedThreadPool$1 as jni$_.JMethodIDPtr, + i, + _$threadFactory.pointer, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_newScheduledThreadPool = _class.staticMethodId( @@ -2213,23 +2574,32 @@ 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$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int32,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + 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$_.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( - int i, - ) { - return _newScheduledThreadPool(_class.reference.pointer, - _id_newScheduledThreadPool as jni$_.JMethodIDPtr, i) - .object(const jni$_.$JObject$NullableType$()); + static jni$_.JObject? newScheduledThreadPool(int i) { + return _newScheduledThreadPool( + _class.reference.pointer, + _id_newScheduledThreadPool as jni$_.JMethodIDPtr, + i, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_newScheduledThreadPool$1 = _class.staticMethodId( @@ -2237,17 +2607,24 @@ 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$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Int32, jni$_.Pointer)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + 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$_.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. @@ -2257,11 +2634,11 @@ class Executors extends jni$_.JObject { ) { final _$threadFactory = threadFactory?.reference ?? jni$_.jNullReference; return _newScheduledThreadPool$1( - _class.reference.pointer, - _id_newScheduledThreadPool$1 as jni$_.JMethodIDPtr, - i, - _$threadFactory.pointer) - .object(const jni$_.$JObject$NullableType$()); + _class.reference.pointer, + _id_newScheduledThreadPool$1 as jni$_.JMethodIDPtr, + i, + _$threadFactory.pointer, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_newSingleThreadExecutor = _class.staticMethodId( @@ -2269,24 +2646,29 @@ class Executors extends jni$_.JObject { r'()Ljava/util/concurrent/ExecutorService;', ); - static final _newSingleThreadExecutor = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _newSingleThreadExecutor = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + 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() { - return _newSingleThreadExecutor(_class.reference.pointer, - _id_newSingleThreadExecutor as jni$_.JMethodIDPtr) - .object(const jni$_.$JObject$NullableType$()); + return _newSingleThreadExecutor( + _class.reference.pointer, + _id_newSingleThreadExecutor as jni$_.JMethodIDPtr, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_newSingleThreadExecutor$1 = _class.staticMethodId( @@ -2294,16 +2676,23 @@ 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$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + 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$_.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. @@ -2312,10 +2701,10 @@ class Executors extends jni$_.JObject { ) { final _$threadFactory = threadFactory?.reference ?? jni$_.jNullReference; return _newSingleThreadExecutor$1( - _class.reference.pointer, - _id_newSingleThreadExecutor$1 as jni$_.JMethodIDPtr, - _$threadFactory.pointer) - .object(const jni$_.$JObject$NullableType$()); + _class.reference.pointer, + _id_newSingleThreadExecutor$1 as jni$_.JMethodIDPtr, + _$threadFactory.pointer, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_newSingleThreadScheduledExecutor = _class.staticMethodId( @@ -2325,23 +2714,27 @@ class Executors extends jni$_.JObject { static final _newSingleThreadScheduledExecutor = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `static public java.util.concurrent.ScheduledExecutorService newSingleThreadScheduledExecutor()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JObject? newSingleThreadScheduledExecutor() { - return _newSingleThreadScheduledExecutor(_class.reference.pointer, - _id_newSingleThreadScheduledExecutor as jni$_.JMethodIDPtr) - .object(const jni$_.$JObject$NullableType$()); + return _newSingleThreadScheduledExecutor( + _class.reference.pointer, + _id_newSingleThreadScheduledExecutor as jni$_.JMethodIDPtr, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_newSingleThreadScheduledExecutor$1 = _class.staticMethodId( @@ -2351,15 +2744,21 @@ class Executors extends jni$_.JObject { static final _newSingleThreadScheduledExecutor$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.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. @@ -2368,10 +2767,10 @@ class Executors extends jni$_.JObject { ) { final _$threadFactory = threadFactory?.reference ?? jni$_.jNullReference; return _newSingleThreadScheduledExecutor$1( - _class.reference.pointer, - _id_newSingleThreadScheduledExecutor$1 as jni$_.JMethodIDPtr, - _$threadFactory.pointer) - .object(const jni$_.$JObject$NullableType$()); + _class.reference.pointer, + _id_newSingleThreadScheduledExecutor$1 as jni$_.JMethodIDPtr, + _$threadFactory.pointer, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_newWorkStealingPool = _class.staticMethodId( @@ -2379,24 +2778,29 @@ class Executors extends jni$_.JObject { r'()Ljava/util/concurrent/ExecutorService;', ); - static final _newWorkStealingPool = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _newWorkStealingPool = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + 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() { - return _newWorkStealingPool(_class.reference.pointer, - _id_newWorkStealingPool as jni$_.JMethodIDPtr) - .object(const jni$_.$JObject$NullableType$()); + return _newWorkStealingPool( + _class.reference.pointer, + _id_newWorkStealingPool as jni$_.JMethodIDPtr, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_newWorkStealingPool$1 = _class.staticMethodId( @@ -2404,23 +2808,32 @@ class Executors extends jni$_.JObject { r'(I)Ljava/util/concurrent/ExecutorService;', ); - static final _newWorkStealingPool$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int32,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + static final _newWorkStealingPool$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `static public java.util.concurrent.ExecutorService newWorkStealingPool(int i)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? newWorkStealingPool$1( - int i, - ) { - return _newWorkStealingPool$1(_class.reference.pointer, - _id_newWorkStealingPool$1 as jni$_.JMethodIDPtr, i) - .object(const jni$_.$JObject$NullableType$()); + static jni$_.JObject? newWorkStealingPool$1(int i) { + return _newWorkStealingPool$1( + _class.reference.pointer, + _id_newWorkStealingPool$1 as jni$_.JMethodIDPtr, + i, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_privilegedCallable = _class.staticMethodId( @@ -2428,16 +2841,23 @@ 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$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + 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$_.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. @@ -2446,42 +2866,48 @@ class Executors extends jni$_.JObject { required jni$_.JType<$T> T, }) { final _$callable = callable?.reference ?? jni$_.jNullReference; - return _privilegedCallable(_class.reference.pointer, - _id_privilegedCallable as jni$_.JMethodIDPtr, _$callable.pointer) - .object(const jni$_.$JObject$NullableType$()); + return _privilegedCallable( + _class.reference.pointer, + _id_privilegedCallable as jni$_.JMethodIDPtr, + _$callable.pointer, + ).object(const jni$_.$JObject$NullableType$()); } - static final _id_privilegedCallableUsingCurrentClassLoader = - _class.staticMethodId( - r'privilegedCallableUsingCurrentClassLoader', - r'(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Callable;', - ); + static final _id_privilegedCallableUsingCurrentClassLoader = _class + .staticMethodId( + r'privilegedCallableUsingCurrentClassLoader', + r'(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Callable;', + ); static final _privilegedCallableUsingCurrentClassLoader = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.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$_.JType<$T> T, - }) { + static jni$_.JObject? privilegedCallableUsingCurrentClassLoader< + $T extends jni$_.JObject? + >(jni$_.JObject? callable, {required jni$_.JType<$T> T}) { final _$callable = callable?.reference ?? jni$_.jNullReference; return _privilegedCallableUsingCurrentClassLoader( - _class.reference.pointer, - _id_privilegedCallableUsingCurrentClassLoader as jni$_.JMethodIDPtr, - _$callable.pointer) - .object(const jni$_.$JObject$NullableType$()); + _class.reference.pointer, + _id_privilegedCallableUsingCurrentClassLoader as jni$_.JMethodIDPtr, + _$callable.pointer, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_privilegedThreadFactory = _class.staticMethodId( @@ -2489,24 +2915,29 @@ class Executors extends jni$_.JObject { r'()Ljava/util/concurrent/ThreadFactory;', ); - static final _privilegedThreadFactory = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _privilegedThreadFactory = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + 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() { - return _privilegedThreadFactory(_class.reference.pointer, - _id_privilegedThreadFactory as jni$_.JMethodIDPtr) - .object(const jni$_.$JObject$NullableType$()); + return _privilegedThreadFactory( + _class.reference.pointer, + _id_privilegedThreadFactory as jni$_.JMethodIDPtr, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_unconfigurableExecutorService = _class.staticMethodId( @@ -2516,15 +2947,21 @@ class Executors extends jni$_.JObject { static final _unconfigurableExecutorService = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.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. @@ -2534,29 +2971,34 @@ class Executors extends jni$_.JObject { final _$executorService = executorService?.reference ?? jni$_.jNullReference; return _unconfigurableExecutorService( - _class.reference.pointer, - _id_unconfigurableExecutorService as jni$_.JMethodIDPtr, - _$executorService.pointer) - .object(const jni$_.$JObject$NullableType$()); + _class.reference.pointer, + _id_unconfigurableExecutorService as jni$_.JMethodIDPtr, + _$executorService.pointer, + ).object(const jni$_.$JObject$NullableType$()); } - static final _id_unconfigurableScheduledExecutorService = - _class.staticMethodId( + static final _id_unconfigurableScheduledExecutorService = _class.staticMethodId( r'unconfigurableScheduledExecutorService', r'(Ljava/util/concurrent/ScheduledExecutorService;)Ljava/util/concurrent/ScheduledExecutorService;', ); static final _unconfigurableScheduledExecutorService = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.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. @@ -2566,10 +3008,10 @@ class Executors extends jni$_.JObject { final _$scheduledExecutorService = scheduledExecutorService?.reference ?? jni$_.jNullReference; return _unconfigurableScheduledExecutorService( - _class.reference.pointer, - _id_unconfigurableScheduledExecutorService as jni$_.JMethodIDPtr, - _$scheduledExecutorService.pointer) - .object(const jni$_.$JObject$NullableType$()); + _class.reference.pointer, + _id_unconfigurableScheduledExecutorService as jni$_.JMethodIDPtr, + _$scheduledExecutorService.pointer, + ).object(const jni$_.$JObject$NullableType$()); } } @@ -2583,11 +3025,8 @@ final class $Executors$NullableType$ extends jni$_.JType { @jni$_.internal @core$_.override - Executors? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Executors.fromReference( - reference, - ); + Executors? fromReference(jni$_.JReference reference) => + reference.isNull ? null : Executors.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -2621,9 +3060,7 @@ final class $Executors$Type$ extends jni$_.JType { @jni$_.internal @core$_.override Executors fromReference(jni$_.JReference reference) => - Executors.fromReference( - reference, - ); + Executors.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -2652,13 +3089,13 @@ class CronetEngine$Builder$LibraryLoader extends jni$_.JObject { final jni$_.JType $type; @jni$_.internal - CronetEngine$Builder$LibraryLoader.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + CronetEngine$Builder$LibraryLoader.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'org/chromium/net/CronetEngine$Builder$LibraryLoader'); + r'org/chromium/net/CronetEngine$Builder$LibraryLoader', + ); /// The type which includes information such as the signature of this class. static const jni$_.JType nullableType = @@ -2672,25 +3109,32 @@ class CronetEngine$Builder$LibraryLoader extends jni$_.JObject { r'(Ljava/lang/String;)V', ); - 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$_.JMethodIDPtr, jni$_.Pointer)>(); + 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$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract void loadLibrary(java.lang.String string)` - void loadLibrary( - jni$_.JString? string, - ) { + void loadLibrary(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _loadLibrary(reference.pointer, _id_loadLibrary as jni$_.JMethodIDPtr, - _$string.pointer) - .check(); + _loadLibrary( + reference.pointer, + _id_loadLibrary as jni$_.JMethodIDPtr, + _$string.pointer, + ).check(); } } @@ -2707,12 +3151,10 @@ final class $CronetEngine$Builder$LibraryLoader$NullableType$ @jni$_.internal @core$_.override CronetEngine$Builder$LibraryLoader? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : CronetEngine$Builder$LibraryLoader.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : CronetEngine$Builder$LibraryLoader.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -2750,10 +3192,8 @@ final class $CronetEngine$Builder$LibraryLoader$Type$ @jni$_.internal @core$_.override CronetEngine$Builder$LibraryLoader fromReference( - jni$_.JReference reference) => - CronetEngine$Builder$LibraryLoader.fromReference( - reference, - ); + jni$_.JReference reference, + ) => CronetEngine$Builder$LibraryLoader.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -2784,13 +3224,13 @@ class CronetEngine$Builder extends jni$_.JObject { final jni$_.JType $type; @jni$_.internal - CronetEngine$Builder.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + CronetEngine$Builder.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/chromium/net/CronetEngine$Builder'); + static final _class = jni$_.JClass.forName( + r'org/chromium/net/CronetEngine$Builder', + ); /// The type which includes information such as the signature of this class. static const jni$_.JType nullableType = @@ -2811,57 +3251,73 @@ class CronetEngine$Builder extends jni$_.JObject { /// from: `static public final int HTTP_CACHE_DISK` static const HTTP_CACHE_DISK = 3; - static final _id_new$ = _class.constructorId( - r'(Landroid/content/Context;)V', - ); + static final _id_new$ = _class.constructorId(r'(Landroid/content/Context;)V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `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) { final _$context = context?.reference ?? jni$_.jNullReference; - return CronetEngine$Builder.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$context.pointer) - .reference); + return CronetEngine$Builder.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$context.pointer, + ).reference, + ); } static final _id_new$1 = _class.constructorId( r'(Lorg/chromium/net/ICronetEngineBuilder;)V', ); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void (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) { final _$iCronetEngineBuilder = iCronetEngineBuilder?.reference ?? jni$_.jNullReference; - return CronetEngine$Builder.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, _$iCronetEngineBuilder.pointer) - .reference); + return CronetEngine$Builder.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$iCronetEngineBuilder.pointer, + ).reference, + ); } static final _id_getDefaultUserAgent = _class.instanceMethodId( @@ -2869,24 +3325,29 @@ class CronetEngine$Builder extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getDefaultUserAgent = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getDefaultUserAgent = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.lang.String getDefaultUserAgent()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getDefaultUserAgent() { return _getDefaultUserAgent( - reference.pointer, _id_getDefaultUserAgent as jni$_.JMethodIDPtr) - .object(const jni$_.$JString$NullableType$()); + reference.pointer, + _id_getDefaultUserAgent as jni$_.JMethodIDPtr, + ).object(const jni$_.$JString$NullableType$()); } static final _id_setUserAgent = _class.instanceMethodId( @@ -2894,27 +3355,35 @@ 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$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + 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$_.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.pointer) - .object( - const $CronetEngine$Builder$NullableType$()); + return _setUserAgent( + reference.pointer, + _id_setUserAgent as jni$_.JMethodIDPtr, + _$string.pointer, + ).object( + const $CronetEngine$Builder$NullableType$(), + ); } static final _id_setStoragePath = _class.instanceMethodId( @@ -2922,27 +3391,35 @@ 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$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + 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$_.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.pointer) - .object( - const $CronetEngine$Builder$NullableType$()); + return _setStoragePath( + reference.pointer, + _id_setStoragePath as jni$_.JMethodIDPtr, + _$string.pointer, + ).object( + const $CronetEngine$Builder$NullableType$(), + ); } static final _id_setLibraryLoader = _class.instanceMethodId( @@ -2950,16 +3427,23 @@ 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$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + 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$_.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. @@ -2967,10 +3451,13 @@ class CronetEngine$Builder extends jni$_.JObject { CronetEngine$Builder$LibraryLoader? libraryLoader, ) { final _$libraryLoader = libraryLoader?.reference ?? jni$_.jNullReference; - return _setLibraryLoader(reference.pointer, - _id_setLibraryLoader as jni$_.JMethodIDPtr, _$libraryLoader.pointer) - .object( - const $CronetEngine$Builder$NullableType$()); + return _setLibraryLoader( + reference.pointer, + _id_setLibraryLoader as jni$_.JMethodIDPtr, + _$libraryLoader.pointer, + ).object( + const $CronetEngine$Builder$NullableType$(), + ); } static final _id_enableQuic = _class.instanceMethodId( @@ -2978,25 +3465,34 @@ class CronetEngine$Builder extends jni$_.JObject { r'(Z)Lorg/chromium/net/CronetEngine$Builder;', ); - static final _enableQuic = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + 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$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + 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( - bool z, - ) { + CronetEngine$Builder? enableQuic(bool z) { return _enableQuic( - reference.pointer, _id_enableQuic as jni$_.JMethodIDPtr, z ? 1 : 0) - .object( - const $CronetEngine$Builder$NullableType$()); + reference.pointer, + _id_enableQuic as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object( + const $CronetEngine$Builder$NullableType$(), + ); } static final _id_enableHttp2 = _class.instanceMethodId( @@ -3004,25 +3500,34 @@ class CronetEngine$Builder extends jni$_.JObject { r'(Z)Lorg/chromium/net/CronetEngine$Builder;', ); - static final _enableHttp2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + 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$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + 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( - bool z, - ) { + CronetEngine$Builder? enableHttp2(bool z) { return _enableHttp2( - reference.pointer, _id_enableHttp2 as jni$_.JMethodIDPtr, z ? 1 : 0) - .object( - const $CronetEngine$Builder$NullableType$()); + reference.pointer, + _id_enableHttp2 as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object( + const $CronetEngine$Builder$NullableType$(), + ); } static final _id_enableSdch = _class.instanceMethodId( @@ -3030,25 +3535,34 @@ class CronetEngine$Builder extends jni$_.JObject { r'(Z)Lorg/chromium/net/CronetEngine$Builder;', ); - static final _enableSdch = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + 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$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + 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( - bool z, - ) { + CronetEngine$Builder? enableSdch(bool z) { return _enableSdch( - reference.pointer, _id_enableSdch as jni$_.JMethodIDPtr, z ? 1 : 0) - .object( - const $CronetEngine$Builder$NullableType$()); + reference.pointer, + _id_enableSdch as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object( + const $CronetEngine$Builder$NullableType$(), + ); } static final _id_enableBrotli = _class.instanceMethodId( @@ -3056,25 +3570,34 @@ class CronetEngine$Builder extends jni$_.JObject { r'(Z)Lorg/chromium/net/CronetEngine$Builder;', ); - static final _enableBrotli = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + 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$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + 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( - bool z, - ) { - return _enableBrotli(reference.pointer, - _id_enableBrotli as jni$_.JMethodIDPtr, z ? 1 : 0) - .object( - const $CronetEngine$Builder$NullableType$()); + CronetEngine$Builder? enableBrotli(bool z) { + return _enableBrotli( + reference.pointer, + _id_enableBrotli as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object( + const $CronetEngine$Builder$NullableType$(), + ); } static final _id_enableHttpCache = _class.instanceMethodId( @@ -3082,27 +3605,36 @@ 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$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32, jni$_.Int64)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int, int)>(); + 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$_.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( - int i, - int j, - ) { + CronetEngine$Builder? enableHttpCache(int i, int j) { return _enableHttpCache( - reference.pointer, _id_enableHttpCache as jni$_.JMethodIDPtr, i, j) - .object( - const $CronetEngine$Builder$NullableType$()); + reference.pointer, + _id_enableHttpCache as jni$_.JMethodIDPtr, + i, + j, + ).object( + const $CronetEngine$Builder$NullableType$(), + ); } static final _id_addQuicHint = _class.instanceMethodId( @@ -3110,33 +3642,41 @@ class CronetEngine$Builder extends jni$_.JObject { r'(Ljava/lang/String;II)Lorg/chromium/net/CronetEngine$Builder;', ); - static final _addQuicHint = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _addQuicHint = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + 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, - int i, - int i1, - ) { + CronetEngine$Builder? addQuicHint(jni$_.JString? string, int i, int i1) { final _$string = string?.reference ?? jni$_.jNullReference; - return _addQuicHint(reference.pointer, - _id_addQuicHint as jni$_.JMethodIDPtr, _$string.pointer, i, i1) - .object( - const $CronetEngine$Builder$NullableType$()); + return _addQuicHint( + reference.pointer, + _id_addQuicHint as jni$_.JMethodIDPtr, + _$string.pointer, + i, + i1, + ).object( + const $CronetEngine$Builder$NullableType$(), + ); } static final _id_addPublicKeyPins = _class.instanceMethodId( @@ -3144,26 +3684,33 @@ 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< + static final _addPublicKeyPins = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, int, - jni$_.Pointer)>(); + 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. @@ -3177,31 +3724,40 @@ class CronetEngine$Builder extends jni$_.JObject { final _$set = set?.reference ?? jni$_.jNullReference; final _$date = date?.reference ?? jni$_.jNullReference; return _addPublicKeyPins( - reference.pointer, - _id_addPublicKeyPins as jni$_.JMethodIDPtr, - _$string.pointer, - _$set.pointer, - z ? 1 : 0, - _$date.pointer) - .object( - const $CronetEngine$Builder$NullableType$()); - } - - static final _id_enablePublicKeyPinningBypassForLocalTrustAnchors = - _class.instanceMethodId( - r'enablePublicKeyPinningBypassForLocalTrustAnchors', - r'(Z)Lorg/chromium/net/CronetEngine$Builder;', - ); + reference.pointer, + _id_addPublicKeyPins as jni$_.JMethodIDPtr, + _$string.pointer, + _$set.pointer, + z ? 1 : 0, + _$date.pointer, + ).object( + const $CronetEngine$Builder$NullableType$(), + ); + } + + static final _id_enablePublicKeyPinningBypassForLocalTrustAnchors = _class + .instanceMethodId( + r'enablePublicKeyPinningBypassForLocalTrustAnchors', + r'(Z)Lorg/chromium/net/CronetEngine$Builder;', + ); static final _enablePublicKeyPinningBypassForLocalTrustAnchors = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int32,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + 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. @@ -3209,12 +3765,13 @@ class CronetEngine$Builder extends jni$_.JObject { bool z, ) { return _enablePublicKeyPinningBypassForLocalTrustAnchors( - reference.pointer, - _id_enablePublicKeyPinningBypassForLocalTrustAnchors - as jni$_.JMethodIDPtr, - z ? 1 : 0) - .object( - const $CronetEngine$Builder$NullableType$()); + reference.pointer, + _id_enablePublicKeyPinningBypassForLocalTrustAnchors + as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object( + const $CronetEngine$Builder$NullableType$(), + ); } static final _id_build = _class.instanceMethodId( @@ -3222,23 +3779,29 @@ class CronetEngine$Builder extends jni$_.JObject { r'()Lorg/chromium/net/CronetEngine;', ); - static final _build = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _build = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public 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$NullableType$()); + return _build( + reference.pointer, + _id_build as jni$_.JMethodIDPtr, + ).object(const $CronetEngine$NullableType$()); } } @@ -3254,11 +3817,7 @@ final class $CronetEngine$Builder$NullableType$ @jni$_.internal @core$_.override CronetEngine$Builder? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : CronetEngine$Builder.fromReference( - reference, - ); + reference.isNull ? null : CronetEngine$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -3293,9 +3852,7 @@ final class $CronetEngine$Builder$Type$ @jni$_.internal @core$_.override CronetEngine$Builder fromReference(jni$_.JReference reference) => - CronetEngine$Builder.fromReference( - reference, - ); + CronetEngine$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -3326,10 +3883,9 @@ class CronetEngine extends jni$_.JObject { final jni$_.JType $type; @jni$_.internal - CronetEngine.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + CronetEngine.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'org/chromium/net/CronetEngine'); @@ -3344,42 +3900,48 @@ class CronetEngine extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getVersionString = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getVersionString = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.lang.String getVersionString()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getVersionString() { return _getVersionString( - reference.pointer, _id_getVersionString as jni$_.JMethodIDPtr) - .object(const jni$_.$JString$NullableType$()); + reference.pointer, + _id_getVersionString as jni$_.JMethodIDPtr, + ).object(const jni$_.$JString$NullableType$()); } - static final _id_shutdown = _class.instanceMethodId( - r'shutdown', - r'()V', - ); + static final _id_shutdown = _class.instanceMethodId(r'shutdown', r'()V'); - static final _shutdown = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _shutdown = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void shutdown()` void shutdown() { @@ -3391,53 +3953,60 @@ 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$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + 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$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public abstract void startNetLogToFile(java.lang.String string, boolean z)` - void startNetLogToFile( - jni$_.JString? string, - bool z, - ) { + void startNetLogToFile(jni$_.JString? string, bool z) { final _$string = string?.reference ?? jni$_.jNullReference; _startNetLogToFile( - reference.pointer, - _id_startNetLogToFile as jni$_.JMethodIDPtr, - _$string.pointer, - z ? 1 : 0) - .check(); + reference.pointer, + _id_startNetLogToFile as jni$_.JMethodIDPtr, + _$string.pointer, + z ? 1 : 0, + ).check(); } - static final _id_stopNetLog = _class.instanceMethodId( - r'stopNetLog', - r'()V', - ); + static final _id_stopNetLog = _class.instanceMethodId(r'stopNetLog', r'()V'); - static final _stopNetLog = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _stopNetLog = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void stopNetLog()` void stopNetLog() { - _stopNetLog(reference.pointer, _id_stopNetLog as jni$_.JMethodIDPtr) - .check(); + _stopNetLog( + reference.pointer, + _id_stopNetLog as jni$_.JMethodIDPtr, + ).check(); } static final _id_getGlobalMetricsDeltas = _class.instanceMethodId( @@ -3445,24 +4014,29 @@ class CronetEngine extends jni$_.JObject { r'()[B', ); - static final _getGlobalMetricsDeltas = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getGlobalMetricsDeltas = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract byte[] getGlobalMetricsDeltas()` /// The returned object must be released after use, by calling the [release] method. jni$_.JByteArray? getGlobalMetricsDeltas() { return _getGlobalMetricsDeltas( - reference.pointer, _id_getGlobalMetricsDeltas as jni$_.JMethodIDPtr) - .object(const jni$_.$JByteArray$NullableType$()); + reference.pointer, + _id_getGlobalMetricsDeltas as jni$_.JMethodIDPtr, + ).object(const jni$_.$JByteArray$NullableType$()); } static final _id_openConnection = _class.instanceMethodId( @@ -3470,26 +4044,33 @@ 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$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + 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$_.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.pointer) - .object(const jni$_.$JObject$NullableType$()); + return _openConnection( + reference.pointer, + _id_openConnection as jni$_.JMethodIDPtr, + _$uRL.pointer, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_createURLStreamHandlerFactory = _class.instanceMethodId( @@ -3499,23 +4080,27 @@ class CronetEngine extends jni$_.JObject { static final _createURLStreamHandlerFactory = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + 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() { - return _createURLStreamHandlerFactory(reference.pointer, - _id_createURLStreamHandlerFactory as jni$_.JMethodIDPtr) - .object(const jni$_.$JObject$NullableType$()); + return _createURLStreamHandlerFactory( + reference.pointer, + _id_createURLStreamHandlerFactory as jni$_.JMethodIDPtr, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_newUrlRequestBuilder = _class.instanceMethodId( @@ -3523,24 +4108,31 @@ 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< + static final _newUrlRequestBuilder = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, 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. @@ -3553,12 +4145,12 @@ class CronetEngine extends jni$_.JObject { final _$callback = callback?.reference ?? jni$_.jNullReference; final _$executor = executor?.reference ?? jni$_.jNullReference; return _newUrlRequestBuilder( - reference.pointer, - _id_newUrlRequestBuilder as jni$_.JMethodIDPtr, - _$string.pointer, - _$callback.pointer, - _$executor.pointer) - .object(const $UrlRequest$Builder$NullableType$()); + reference.pointer, + _id_newUrlRequestBuilder as jni$_.JMethodIDPtr, + _$string.pointer, + _$callback.pointer, + _$executor.pointer, + ).object(const $UrlRequest$Builder$NullableType$()); } } @@ -3572,11 +4164,8 @@ final class $CronetEngine$NullableType$ extends jni$_.JType { @jni$_.internal @core$_.override - CronetEngine? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : CronetEngine.fromReference( - reference, - ); + CronetEngine? fromReference(jni$_.JReference reference) => + reference.isNull ? null : CronetEngine.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -3610,9 +4199,7 @@ final class $CronetEngine$Type$ extends jni$_.JType { @jni$_.internal @core$_.override CronetEngine fromReference(jni$_.JReference reference) => - CronetEngine.fromReference( - reference, - ); + CronetEngine.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -3643,13 +4230,13 @@ class CronetException extends jni$_.JObject { final jni$_.JType $type; @jni$_.internal - CronetException.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + CronetException.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/chromium/net/CronetException'); + static final _class = jni$_.JClass.forName( + r'org/chromium/net/CronetException', + ); /// The type which includes information such as the signature of this class. static const jni$_.JType nullableType = @@ -3670,11 +4257,8 @@ final class $CronetException$NullableType$ @jni$_.internal @core$_.override - CronetException? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : CronetException.fromReference( - reference, - ); + CronetException? fromReference(jni$_.JReference reference) => + reference.isNull ? null : CronetException.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -3708,9 +4292,7 @@ final class $CronetException$Type$ extends jni$_.JType { @jni$_.internal @core$_.override CronetException fromReference(jni$_.JReference reference) => - CronetException.fromReference( - reference, - ); + CronetException.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -3741,13 +4323,13 @@ class UploadDataProviders extends jni$_.JObject { final jni$_.JType $type; @jni$_.internal - UploadDataProviders.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + UploadDataProviders.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/chromium/net/UploadDataProviders'); + static final _class = jni$_.JClass.forName( + r'org/chromium/net/UploadDataProviders', + ); /// The type which includes information such as the signature of this class. static const jni$_.JType nullableType = @@ -3761,26 +4343,33 @@ class UploadDataProviders extends jni$_.JObject { r'(Ljava/io/File;)Lorg/chromium/net/UploadDataProvider;', ); - 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$_.JMethodIDPtr, jni$_.Pointer)>(); + 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$_.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) { final _$file = file?.reference ?? jni$_.jNullReference; - return _create(_class.reference.pointer, _id_create as jni$_.JMethodIDPtr, - _$file.pointer) - .object(const jni$_.$JObject$NullableType$()); + return _create( + _class.reference.pointer, + _id_create as jni$_.JMethodIDPtr, + _$file.pointer, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_create$1 = _class.staticMethodId( @@ -3788,27 +4377,34 @@ 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$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + 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$_.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) { final _$parcelFileDescriptor = parcelFileDescriptor?.reference ?? jni$_.jNullReference; - return _create$1(_class.reference.pointer, - _id_create$1 as jni$_.JMethodIDPtr, _$parcelFileDescriptor.pointer) - .object(const jni$_.$JObject$NullableType$()); + return _create$1( + _class.reference.pointer, + _id_create$1 as jni$_.JMethodIDPtr, + _$parcelFileDescriptor.pointer, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_create$2 = _class.staticMethodId( @@ -3816,26 +4412,33 @@ 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$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + 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$_.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.pointer) - .object(const jni$_.$JObject$NullableType$()); + return _create$2( + _class.reference.pointer, + _id_create$2 as jni$_.JMethodIDPtr, + _$byteBuffer.pointer, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_create$3 = _class.staticMethodId( @@ -3843,32 +4446,39 @@ class UploadDataProviders extends jni$_.JObject { r'([BII)Lorg/chromium/net/UploadDataProvider;', ); - static final _create$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// 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$_.JByteArray? bs, - int i, - int i1, - ) { + 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.pointer, i, i1) - .object(const jni$_.$JObject$NullableType$()); + return _create$3( + _class.reference.pointer, + _id_create$3 as jni$_.JMethodIDPtr, + _$bs.pointer, + i, + i1, + ).object(const jni$_.$JObject$NullableType$()); } static final _id_create$4 = _class.staticMethodId( @@ -3876,26 +4486,33 @@ 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$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + 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$_.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$_.JByteArray? 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.pointer) - .object(const jni$_.$JObject$NullableType$()); + return _create$4( + _class.reference.pointer, + _id_create$4 as jni$_.JMethodIDPtr, + _$bs.pointer, + ).object(const jni$_.$JObject$NullableType$()); } } @@ -3911,11 +4528,7 @@ final class $UploadDataProviders$NullableType$ @jni$_.internal @core$_.override UploadDataProviders? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : UploadDataProviders.fromReference( - reference, - ); + reference.isNull ? null : UploadDataProviders.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -3950,9 +4563,7 @@ final class $UploadDataProviders$Type$ @jni$_.internal @core$_.override UploadDataProviders fromReference(jni$_.JReference reference) => - UploadDataProviders.fromReference( - reference, - ); + UploadDataProviders.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -3983,13 +4594,13 @@ class UrlRequest$Builder extends jni$_.JObject { final jni$_.JType $type; @jni$_.internal - UrlRequest$Builder.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + UrlRequest$Builder.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/chromium/net/UrlRequest$Builder'); + static final _class = jni$_.JClass.forName( + r'org/chromium/net/UrlRequest$Builder', + ); /// The type which includes information such as the signature of this class. static const jni$_.JType nullableType = @@ -4018,26 +4629,33 @@ 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$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + 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$_.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.pointer) - .object(const $UrlRequest$Builder$NullableType$()); + return _setHttpMethod( + reference.pointer, + _id_setHttpMethod as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $UrlRequest$Builder$NullableType$()); } static final _id_addHeader = _class.instanceMethodId( @@ -4045,34 +4663,38 @@ 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< + static final _addHeader = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - 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) { 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$()); + return _addHeader( + reference.pointer, + _id_addHeader as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).object(const $UrlRequest$Builder$NullableType$()); } static final _id_disableCache = _class.instanceMethodId( @@ -4080,24 +4702,29 @@ class UrlRequest$Builder extends jni$_.JObject { r'()Lorg/chromium/net/UrlRequest$Builder;', ); - static final _disableCache = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _disableCache = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract org.chromium.net.UrlRequest$Builder disableCache()` /// The returned object must be released after use, by calling the [release] method. UrlRequest$Builder? disableCache() { return _disableCache( - reference.pointer, _id_disableCache as jni$_.JMethodIDPtr) - .object(const $UrlRequest$Builder$NullableType$()); + reference.pointer, + _id_disableCache as jni$_.JMethodIDPtr, + ).object(const $UrlRequest$Builder$NullableType$()); } static final _id_setPriority = _class.instanceMethodId( @@ -4105,24 +4732,32 @@ class UrlRequest$Builder extends jni$_.JObject { r'(I)Lorg/chromium/net/UrlRequest$Builder;', ); - static final _setPriority = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + 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$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + 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( - int i, - ) { + UrlRequest$Builder? setPriority(int i) { return _setPriority( - reference.pointer, _id_setPriority as jni$_.JMethodIDPtr, i) - .object(const $UrlRequest$Builder$NullableType$()); + reference.pointer, + _id_setPriority as jni$_.JMethodIDPtr, + i, + ).object(const $UrlRequest$Builder$NullableType$()); } static final _id_setUploadDataProvider = _class.instanceMethodId( @@ -4130,22 +4765,26 @@ 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< + static final _setUploadDataProvider = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - 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. @@ -4157,11 +4796,11 @@ class UrlRequest$Builder extends jni$_.JObject { uploadDataProvider?.reference ?? jni$_.jNullReference; final _$executor = executor?.reference ?? jni$_.jNullReference; return _setUploadDataProvider( - reference.pointer, - _id_setUploadDataProvider as jni$_.JMethodIDPtr, - _$uploadDataProvider.pointer, - _$executor.pointer) - .object(const $UrlRequest$Builder$NullableType$()); + reference.pointer, + _id_setUploadDataProvider as jni$_.JMethodIDPtr, + _$uploadDataProvider.pointer, + _$executor.pointer, + ).object(const $UrlRequest$Builder$NullableType$()); } static final _id_allowDirectExecutor = _class.instanceMethodId( @@ -4169,24 +4808,29 @@ class UrlRequest$Builder extends jni$_.JObject { r'()Lorg/chromium/net/UrlRequest$Builder;', ); - static final _allowDirectExecutor = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _allowDirectExecutor = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract org.chromium.net.UrlRequest$Builder allowDirectExecutor()` /// The returned object must be released after use, by calling the [release] method. UrlRequest$Builder? allowDirectExecutor() { return _allowDirectExecutor( - reference.pointer, _id_allowDirectExecutor as jni$_.JMethodIDPtr) - .object(const $UrlRequest$Builder$NullableType$()); + reference.pointer, + _id_allowDirectExecutor as jni$_.JMethodIDPtr, + ).object(const $UrlRequest$Builder$NullableType$()); } static final _id_build = _class.instanceMethodId( @@ -4194,23 +4838,29 @@ class UrlRequest$Builder extends jni$_.JObject { r'()Lorg/chromium/net/UrlRequest;', ); - static final _build = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _build = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract 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$NullableType$()); + return _build( + reference.pointer, + _id_build as jni$_.JMethodIDPtr, + ).object(const $UrlRequest$NullableType$()); } } @@ -4226,11 +4876,7 @@ final class $UrlRequest$Builder$NullableType$ @jni$_.internal @core$_.override UrlRequest$Builder? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : UrlRequest$Builder.fromReference( - reference, - ); + reference.isNull ? null : UrlRequest$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -4264,9 +4910,7 @@ final class $UrlRequest$Builder$Type$ extends jni$_.JType { @jni$_.internal @core$_.override UrlRequest$Builder fromReference(jni$_.JReference reference) => - UrlRequest$Builder.fromReference( - reference, - ); + UrlRequest$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -4297,13 +4941,13 @@ class UrlRequest$Callback extends jni$_.JObject { final jni$_.JType $type; @jni$_.internal - UrlRequest$Callback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + UrlRequest$Callback.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/chromium/net/UrlRequest$Callback'); + static final _class = jni$_.JClass.forName( + r'org/chromium/net/UrlRequest$Callback', + ); /// The type which includes information such as the signature of this class. static const jni$_.JType nullableType = @@ -4317,24 +4961,31 @@ class UrlRequest$Callback extends jni$_.JObject { r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;Ljava/lang/String;)V', ); - static final _onRedirectReceived = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onRedirectReceived = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, 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( @@ -4347,12 +4998,12 @@ class UrlRequest$Callback extends jni$_.JObject { urlResponseInfo?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; _onRedirectReceived( - reference.pointer, - _id_onRedirectReceived as jni$_.JMethodIDPtr, - _$urlRequest.pointer, - _$urlResponseInfo.pointer, - _$string.pointer) - .check(); + reference.pointer, + _id_onRedirectReceived as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + _$string.pointer, + ).check(); } static final _id_onResponseStarted = _class.instanceMethodId( @@ -4360,22 +5011,26 @@ class UrlRequest$Callback extends jni$_.JObject { r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V', ); - static final _onResponseStarted = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onResponseStarted = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void onResponseStarted(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo)` void onResponseStarted( @@ -4386,11 +5041,11 @@ class UrlRequest$Callback extends jni$_.JObject { final _$urlResponseInfo = urlResponseInfo?.reference ?? jni$_.jNullReference; _onResponseStarted( - reference.pointer, - _id_onResponseStarted as jni$_.JMethodIDPtr, - _$urlRequest.pointer, - _$urlResponseInfo.pointer) - .check(); + reference.pointer, + _id_onResponseStarted as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + ).check(); } static final _id_onReadCompleted = _class.instanceMethodId( @@ -4398,24 +5053,31 @@ 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< + static final _onReadCompleted = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, 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( @@ -4428,12 +5090,12 @@ class UrlRequest$Callback extends jni$_.JObject { urlResponseInfo?.reference ?? jni$_.jNullReference; final _$byteBuffer = byteBuffer?.reference ?? jni$_.jNullReference; _onReadCompleted( - reference.pointer, - _id_onReadCompleted as jni$_.JMethodIDPtr, - _$urlRequest.pointer, - _$urlResponseInfo.pointer, - _$byteBuffer.pointer) - .check(); + reference.pointer, + _id_onReadCompleted as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + _$byteBuffer.pointer, + ).check(); } static final _id_onSucceeded = _class.instanceMethodId( @@ -4441,34 +5103,38 @@ class UrlRequest$Callback extends jni$_.JObject { r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V', ); - static final _onSucceeded = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onSucceeded = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - 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, - ) { + void onSucceeded(UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo) { 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(); + _onSucceeded( + reference.pointer, + _id_onSucceeded as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + ).check(); } static final _id_onFailed = _class.instanceMethodId( @@ -4476,24 +5142,31 @@ 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< + static final _onFailed = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, 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( @@ -4507,12 +5180,12 @@ class UrlRequest$Callback extends jni$_.JObject { final _$cronetException = cronetException?.reference ?? jni$_.jNullReference; _onFailed( - reference.pointer, - _id_onFailed as jni$_.JMethodIDPtr, - _$urlRequest.pointer, - _$urlResponseInfo.pointer, - _$cronetException.pointer) - .check(); + reference.pointer, + _id_onFailed as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + _$cronetException.pointer, + ).check(); } static final _id_onCanceled = _class.instanceMethodId( @@ -4520,34 +5193,38 @@ class UrlRequest$Callback extends jni$_.JObject { r'(Lorg/chromium/net/UrlRequest;Lorg/chromium/net/UrlResponseInfo;)V', ); - static final _onCanceled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onCanceled = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void onCanceled(org.chromium.net.UrlRequest urlRequest, org.chromium.net.UrlResponseInfo urlResponseInfo)` - void onCanceled( - UrlRequest? urlRequest, - UrlResponseInfo? urlResponseInfo, - ) { + void onCanceled(UrlRequest? urlRequest, UrlResponseInfo? urlResponseInfo) { 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(); + _onCanceled( + reference.pointer, + _id_onCanceled as jni$_.JMethodIDPtr, + _$urlRequest.pointer, + _$urlResponseInfo.pointer, + ).check(); } } @@ -4563,11 +5240,7 @@ final class $UrlRequest$Callback$NullableType$ @jni$_.internal @core$_.override UrlRequest$Callback? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : UrlRequest$Callback.fromReference( - reference, - ); + reference.isNull ? null : UrlRequest$Callback.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -4602,9 +5275,7 @@ final class $UrlRequest$Callback$Type$ @jni$_.internal @core$_.override UrlRequest$Callback fromReference(jni$_.JReference reference) => - UrlRequest$Callback.fromReference( - reference, - ); + UrlRequest$Callback.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -4635,13 +5306,13 @@ class UrlRequest$Status extends jni$_.JObject { final jni$_.JType $type; @jni$_.internal - UrlRequest$Status.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + UrlRequest$Status.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/chromium/net/UrlRequest$Status'); + static final _class = jni$_.JClass.forName( + r'org/chromium/net/UrlRequest$Status', + ); /// The type which includes information such as the signature of this class. static const jni$_.JType nullableType = @@ -4711,11 +5382,7 @@ final class $UrlRequest$Status$NullableType$ @jni$_.internal @core$_.override UrlRequest$Status? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : UrlRequest$Status.fromReference( - reference, - ); + reference.isNull ? null : UrlRequest$Status.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -4749,9 +5416,7 @@ final class $UrlRequest$Status$Type$ extends jni$_.JType { @jni$_.internal @core$_.override UrlRequest$Status fromReference(jni$_.JReference reference) => - UrlRequest$Status.fromReference( - reference, - ); + UrlRequest$Status.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -4782,13 +5447,13 @@ class UrlRequest$StatusListener extends jni$_.JObject { final jni$_.JType $type; @jni$_.internal - UrlRequest$StatusListener.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + UrlRequest$StatusListener.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/chromium/net/UrlRequest$StatusListener'); + static final _class = jni$_.JClass.forName( + r'org/chromium/net/UrlRequest$StatusListener', + ); /// The type which includes information such as the signature of this class. static const jni$_.JType nullableType = @@ -4797,25 +5462,28 @@ class UrlRequest$StatusListener extends jni$_.JObject { /// The type which includes information such as the signature of this class. static const jni$_.JType type = $UrlRequest$StatusListener$Type$(); - static final _id_onStatus = _class.instanceMethodId( - r'onStatus', - r'(I)V', - ); + static final _id_onStatus = _class.instanceMethodId(r'onStatus', r'(I)V'); - static final _onStatus = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + 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$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public abstract void onStatus(int i)` - void onStatus( - int i, - ) { + void onStatus(int i) { _onStatus(reference.pointer, _id_onStatus as jni$_.JMethodIDPtr, i).check(); } } @@ -4833,10 +5501,8 @@ final class $UrlRequest$StatusListener$NullableType$ @core$_.override UrlRequest$StatusListener? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : UrlRequest$StatusListener.fromReference( - reference, - ); + ? null + : UrlRequest$StatusListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -4871,9 +5537,7 @@ final class $UrlRequest$StatusListener$Type$ @jni$_.internal @core$_.override UrlRequest$StatusListener fromReference(jni$_.JReference reference) => - UrlRequest$StatusListener.fromReference( - reference, - ); + UrlRequest$StatusListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -4904,10 +5568,9 @@ class UrlRequest extends jni$_.JObject { final jni$_.JType $type; @jni$_.internal - UrlRequest.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + UrlRequest.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'org/chromium/net/UrlRequest'); @@ -4917,22 +5580,23 @@ class UrlRequest extends jni$_.JObject { /// The type which includes information such as the signature of this class. static const jni$_.JType type = $UrlRequest$Type$(); - static final _id_start = _class.instanceMethodId( - r'start', - r'()V', - ); + static final _id_start = _class.instanceMethodId(r'start', r'()V'); - static final _start = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _start = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void start()` void start() { @@ -4944,22 +5608,28 @@ class UrlRequest extends jni$_.JObject { r'()V', ); - static final _followRedirect = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _followRedirect = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void followRedirect()` void followRedirect() { - _followRedirect(reference.pointer, _id_followRedirect as jni$_.JMethodIDPtr) - .check(); + _followRedirect( + reference.pointer, + _id_followRedirect as jni$_.JMethodIDPtr, + ).check(); } static final _id_read = _class.instanceMethodId( @@ -4967,65 +5637,74 @@ class UrlRequest extends jni$_.JObject { r'(Ljava/nio/ByteBuffer;)V', ); - 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$_.JMethodIDPtr, jni$_.Pointer)>(); + 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$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract void read(java.nio.ByteBuffer byteBuffer)` - void read( - jni$_.JByteBuffer? byteBuffer, - ) { + void read(jni$_.JByteBuffer? byteBuffer) { final _$byteBuffer = byteBuffer?.reference ?? jni$_.jNullReference; - _read(reference.pointer, _id_read as jni$_.JMethodIDPtr, - _$byteBuffer.pointer) - .check(); + _read( + reference.pointer, + _id_read as jni$_.JMethodIDPtr, + _$byteBuffer.pointer, + ).check(); } - static final _id_cancel = _class.instanceMethodId( - r'cancel', - r'()V', - ); + static final _id_cancel = _class.instanceMethodId(r'cancel', r'()V'); - static final _cancel = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _cancel = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void cancel()` void cancel() { _cancel(reference.pointer, _id_cancel as jni$_.JMethodIDPtr).check(); } - static final _id_isDone = _class.instanceMethodId( - r'isDone', - r'()Z', - ); + static final _id_isDone = _class.instanceMethodId(r'isDone', r'()Z'); - static final _isDone = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _isDone = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract boolean isDone()` bool isDone() { @@ -5037,25 +5716,32 @@ 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$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + 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$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract void getStatus(org.chromium.net.UrlRequest$StatusListener statusListener)` - void getStatus( - UrlRequest$StatusListener? statusListener, - ) { + void getStatus(UrlRequest$StatusListener? statusListener) { final _$statusListener = statusListener?.reference ?? jni$_.jNullReference; - _getStatus(reference.pointer, _id_getStatus as jni$_.JMethodIDPtr, - _$statusListener.pointer) - .check(); + _getStatus( + reference.pointer, + _id_getStatus as jni$_.JMethodIDPtr, + _$statusListener.pointer, + ).check(); } } @@ -5069,11 +5755,8 @@ final class $UrlRequest$NullableType$ extends jni$_.JType { @jni$_.internal @core$_.override - UrlRequest? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : UrlRequest.fromReference( - reference, - ); + UrlRequest? fromReference(jni$_.JReference reference) => + reference.isNull ? null : UrlRequest.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -5107,9 +5790,7 @@ final class $UrlRequest$Type$ extends jni$_.JType { @jni$_.internal @core$_.override UrlRequest fromReference(jni$_.JReference reference) => - UrlRequest.fromReference( - reference, - ); + UrlRequest.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -5140,13 +5821,13 @@ class UrlResponseInfo$HeaderBlock extends jni$_.JObject { final jni$_.JType $type; @jni$_.internal - UrlResponseInfo$HeaderBlock.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + UrlResponseInfo$HeaderBlock.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/chromium/net/UrlResponseInfo$HeaderBlock'); + static final _class = jni$_.JClass.forName( + r'org/chromium/net/UrlResponseInfo$HeaderBlock', + ); /// The type which includes information such as the signature of this class. static const jni$_.JType nullableType = @@ -5160,25 +5841,33 @@ class UrlResponseInfo$HeaderBlock extends jni$_.JObject { r'()Ljava/util/List;', ); - static final _getAsList = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAsList = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.util.List> getAsList()` /// The returned object must be released after use, by calling the [release] method. jni$_.JList? getAsList() { - return _getAsList(reference.pointer, _id_getAsList as jni$_.JMethodIDPtr) - .object?>( - const jni$_.$JList$NullableType$( - jni$_.$JObject$NullableType$())); + return _getAsList( + reference.pointer, + _id_getAsList as jni$_.JMethodIDPtr, + ).object?>( + const jni$_.$JList$NullableType$( + jni$_.$JObject$NullableType$(), + ), + ); } static final _id_getAsMap = _class.instanceMethodId( @@ -5186,28 +5875,39 @@ class UrlResponseInfo$HeaderBlock extends jni$_.JObject { r'()Ljava/util/Map;', ); - static final _getAsMap = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAsMap = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.util.Map> getAsMap()` /// The returned object must be released after use, by calling the [release] method. jni$_.JMap?>? getAsMap() { - return _getAsMap(reference.pointer, _id_getAsMap as jni$_.JMethodIDPtr) - .object?>?>( - const jni$_.$JMap$NullableType$?>( - jni$_.$JString$NullableType$(), - jni$_.$JList$NullableType$( - jni$_.$JString$NullableType$()))); + return _getAsMap( + reference.pointer, + _id_getAsMap as jni$_.JMethodIDPtr, + ).object?>?>( + const jni$_.$JMap$NullableType$< + jni$_.JString?, + jni$_.JList? + >( + jni$_.$JString$NullableType$(), + jni$_.$JList$NullableType$( + jni$_.$JString$NullableType$(), + ), + ), + ); } } @@ -5224,10 +5924,8 @@ final class $UrlResponseInfo$HeaderBlock$NullableType$ @core$_.override UrlResponseInfo$HeaderBlock? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : UrlResponseInfo$HeaderBlock.fromReference( - reference, - ); + ? null + : UrlResponseInfo$HeaderBlock.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -5262,9 +5960,7 @@ final class $UrlResponseInfo$HeaderBlock$Type$ @jni$_.internal @core$_.override UrlResponseInfo$HeaderBlock fromReference(jni$_.JReference reference) => - UrlResponseInfo$HeaderBlock.fromReference( - reference, - ); + UrlResponseInfo$HeaderBlock.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -5295,13 +5991,13 @@ class UrlResponseInfo extends jni$_.JObject { final jni$_.JType $type; @jni$_.internal - UrlResponseInfo.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + UrlResponseInfo.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'org/chromium/net/UrlResponseInfo'); + static final _class = jni$_.JClass.forName( + r'org/chromium/net/UrlResponseInfo', + ); /// The type which includes information such as the signature of this class. static const jni$_.JType nullableType = @@ -5314,23 +6010,29 @@ class UrlResponseInfo extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getUrl = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getUrl = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract 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$_.$JString$NullableType$()); + return _getUrl( + reference.pointer, + _id_getUrl as jni$_.JMethodIDPtr, + ).object(const jni$_.$JString$NullableType$()); } static final _id_getUrlChain = _class.instanceMethodId( @@ -5338,26 +6040,33 @@ class UrlResponseInfo extends jni$_.JObject { r'()Ljava/util/List;', ); - static final _getUrlChain = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getUrlChain = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.util.List getUrlChain()` /// The returned object must be released after use, by calling the [release] method. jni$_.JList? getUrlChain() { return _getUrlChain( - reference.pointer, _id_getUrlChain as jni$_.JMethodIDPtr) - .object?>( - const jni$_.$JList$NullableType$( - jni$_.$JString$NullableType$())); + reference.pointer, + _id_getUrlChain as jni$_.JMethodIDPtr, + ).object?>( + const jni$_.$JList$NullableType$( + jni$_.$JString$NullableType$(), + ), + ); } static final _id_getHttpStatusCode = _class.instanceMethodId( @@ -5365,23 +6074,28 @@ class UrlResponseInfo extends jni$_.JObject { r'()I', ); - static final _getHttpStatusCode = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getHttpStatusCode = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract int getHttpStatusCode()` int getHttpStatusCode() { return _getHttpStatusCode( - reference.pointer, _id_getHttpStatusCode as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_getHttpStatusCode as jni$_.JMethodIDPtr, + ).integer; } static final _id_getHttpStatusText = _class.instanceMethodId( @@ -5389,24 +6103,29 @@ class UrlResponseInfo extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getHttpStatusText = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getHttpStatusText = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.lang.String getHttpStatusText()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getHttpStatusText() { return _getHttpStatusText( - reference.pointer, _id_getHttpStatusText as jni$_.JMethodIDPtr) - .object(const jni$_.$JString$NullableType$()); + reference.pointer, + _id_getHttpStatusText as jni$_.JMethodIDPtr, + ).object(const jni$_.$JString$NullableType$()); } static final _id_getAllHeadersAsList = _class.instanceMethodId( @@ -5414,26 +6133,33 @@ class UrlResponseInfo extends jni$_.JObject { r'()Ljava/util/List;', ); - static final _getAllHeadersAsList = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAllHeadersAsList = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.util.List> getAllHeadersAsList()` /// The returned object must be released after use, by calling the [release] method. jni$_.JList? getAllHeadersAsList() { return _getAllHeadersAsList( - reference.pointer, _id_getAllHeadersAsList as jni$_.JMethodIDPtr) - .object?>( - const jni$_.$JList$NullableType$( - jni$_.$JObject$NullableType$())); + reference.pointer, + _id_getAllHeadersAsList as jni$_.JMethodIDPtr, + ).object?>( + const jni$_.$JList$NullableType$( + jni$_.$JObject$NullableType$(), + ), + ); } static final _id_getAllHeaders = _class.instanceMethodId( @@ -5441,52 +6167,65 @@ class UrlResponseInfo extends jni$_.JObject { r'()Ljava/util/Map;', ); - static final _getAllHeaders = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAllHeaders = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.util.Map> getAllHeaders()` /// The returned object must be released after use, by calling the [release] method. jni$_.JMap?>? getAllHeaders() { return _getAllHeaders( - reference.pointer, _id_getAllHeaders as jni$_.JMethodIDPtr) - .object?>?>( - const jni$_.$JMap$NullableType$?>( - jni$_.$JString$NullableType$(), - jni$_.$JList$NullableType$( - jni$_.$JString$NullableType$()))); + reference.pointer, + _id_getAllHeaders as jni$_.JMethodIDPtr, + ).object?>?>( + const jni$_.$JMap$NullableType$< + jni$_.JString?, + jni$_.JList? + >( + jni$_.$JString$NullableType$(), + jni$_.$JList$NullableType$( + jni$_.$JString$NullableType$(), + ), + ), + ); } - static final _id_wasCached = _class.instanceMethodId( - r'wasCached', - r'()Z', - ); + static final _id_wasCached = _class.instanceMethodId(r'wasCached', r'()Z'); - static final _wasCached = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _wasCached = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract boolean wasCached()` bool wasCached() { - return _wasCached(reference.pointer, _id_wasCached as jni$_.JMethodIDPtr) - .boolean; + return _wasCached( + reference.pointer, + _id_wasCached as jni$_.JMethodIDPtr, + ).boolean; } static final _id_getNegotiatedProtocol = _class.instanceMethodId( @@ -5494,24 +6233,29 @@ class UrlResponseInfo extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getNegotiatedProtocol = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getNegotiatedProtocol = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.lang.String getNegotiatedProtocol()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getNegotiatedProtocol() { return _getNegotiatedProtocol( - reference.pointer, _id_getNegotiatedProtocol as jni$_.JMethodIDPtr) - .object(const jni$_.$JString$NullableType$()); + reference.pointer, + _id_getNegotiatedProtocol as jni$_.JMethodIDPtr, + ).object(const jni$_.$JString$NullableType$()); } static final _id_getProxyServer = _class.instanceMethodId( @@ -5519,24 +6263,29 @@ class UrlResponseInfo extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getProxyServer = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getProxyServer = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.lang.String getProxyServer()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getProxyServer() { return _getProxyServer( - reference.pointer, _id_getProxyServer as jni$_.JMethodIDPtr) - .object(const jni$_.$JString$NullableType$()); + reference.pointer, + _id_getProxyServer as jni$_.JMethodIDPtr, + ).object(const jni$_.$JString$NullableType$()); } static final _id_getReceivedByteCount = _class.instanceMethodId( @@ -5544,23 +6293,28 @@ class UrlResponseInfo extends jni$_.JObject { r'()J', ); - static final _getReceivedByteCount = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getReceivedByteCount = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract long getReceivedByteCount()` int getReceivedByteCount() { return _getReceivedByteCount( - reference.pointer, _id_getReceivedByteCount as jni$_.JMethodIDPtr) - .long; + reference.pointer, + _id_getReceivedByteCount as jni$_.JMethodIDPtr, + ).long; } } @@ -5575,11 +6329,8 @@ final class $UrlResponseInfo$NullableType$ @jni$_.internal @core$_.override - UrlResponseInfo? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : UrlResponseInfo.fromReference( - reference, - ); + UrlResponseInfo? fromReference(jni$_.JReference reference) => + reference.isNull ? null : UrlResponseInfo.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); @@ -5613,9 +6364,7 @@ final class $UrlResponseInfo$Type$ extends jni$_.JType { @jni$_.internal @core$_.override UrlResponseInfo fromReference(jni$_.JReference reference) => - UrlResponseInfo.fromReference( - reference, - ); + UrlResponseInfo.fromReference(reference); @jni$_.internal @core$_.override jni$_.JType get superType => const jni$_.$JObject$NullableType$(); diff --git a/pkgs/cronet_http/pubspec.yaml b/pkgs/cronet_http/pubspec.yaml index fd04e3cb4f..54f21adf1e 100644 --- a/pkgs/cronet_http/pubspec.yaml +++ b/pkgs/cronet_http/pubspec.yaml @@ -5,7 +5,7 @@ description: >- repository: https://github.com/dart-lang/http/tree/master/pkgs/cronet_http environment: - sdk: ^3.4.0 + sdk: ^3.9.0 flutter: '>=3.22.0' dependencies: diff --git a/pkgs/flutter_http_example/lib/book.dart b/pkgs/flutter_http_example/lib/book.dart index b47ca9e67e..5d83d66982 100644 --- a/pkgs/flutter_http_example/lib/book.dart +++ b/pkgs/flutter_http_example/lib/book.dart @@ -15,12 +15,11 @@ class Book { if (json['items'] case final List items) { for (final item in items) { if (item case {'volumeInfo': final Map volumeInfo}) { - if (volumeInfo - case { - 'title': final String title, - 'description': final String description, - 'imageLinks': {'smallThumbnail': final String thumbnail} - }) { + if (volumeInfo case { + 'title': final String title, + 'description': final String description, + 'imageLinks': {'smallThumbnail': final String thumbnail}, + }) { books.add(Book(title, description, Uri.parse(thumbnail))); } } diff --git a/pkgs/flutter_http_example/lib/http_client_factory.dart b/pkgs/flutter_http_example/lib/http_client_factory.dart index 51109e520c..52fd1ebd60 100644 --- a/pkgs/flutter_http_example/lib/http_client_factory.dart +++ b/pkgs/flutter_http_example/lib/http_client_factory.dart @@ -16,9 +16,10 @@ Client httpClient() { if (Platform.isAndroid) { WidgetsFlutterBinding.ensureInitialized(); final engine = CronetEngine.build( - cacheMode: CacheMode.memory, - cacheMaxSize: _maxCacheSize, - userAgent: 'Book Agent'); + cacheMode: CacheMode.memory, + cacheMaxSize: _maxCacheSize, + userAgent: 'Book Agent', + ); return CronetClient.fromCronetEngine(engine); } if (Platform.isIOS || Platform.isMacOS) { diff --git a/pkgs/flutter_http_example/lib/main.dart b/pkgs/flutter_http_example/lib/main.dart index 899105b227..a2ffde8708 100644 --- a/pkgs/flutter_http_example/lib/main.dart +++ b/pkgs/flutter_http_example/lib/main.dart @@ -11,10 +11,12 @@ import 'package:provider/provider.dart'; import 'book.dart'; import 'http_client_factory.dart' - if (dart.library.js_interop) 'http_client_factory_web.dart' as http_factory; + if (dart.library.js_interop) 'http_client_factory_web.dart' + as http_factory; void main() { - runApp(Provider( + runApp( + Provider( // `Provider` calls its `create` argument once when a `Client` is // first requested (through `BuildContext.read()`) and uses that // same instance for all future requests. @@ -25,7 +27,9 @@ void main() { // - allow connections to be persisted create: (_) => http_factory.httpClient(), child: const BookSearchApp(), - dispose: (_, client) => client.close())); + dispose: (_, client) => client.close(), + ), + ); } class BookSearchApp extends StatelessWidget { @@ -33,11 +37,11 @@ class BookSearchApp extends StatelessWidget { @override Widget build(BuildContext context) => const MaterialApp( - // Remove the debug banner. - debugShowCheckedModeBanner: false, - title: 'Book Search', - home: HomePage(), - ); + // Remove the debug banner. + debugShowCheckedModeBanner: false, + title: 'Book Search', + home: HomePage(), + ); } class HomePage extends StatefulWidget { @@ -62,11 +66,11 @@ class _HomePageState extends State { // The `get` call will automatically use the `client` configured in `main`. Future> _findMatchingBooks(String query) async { final response = await _client.get( - Uri.https( - 'www.googleapis.com', - '/books/v1/volumes', - {'q': query, 'maxResults': '20', 'printType': 'books'}, - ), + Uri.https('www.googleapis.com', '/books/v1/volumes', { + 'q': query, + 'maxResults': '20', + 'printType': 'books', + }), ); final json = jsonDecode(utf8.decode(response.bodyBytes)) as Map; @@ -96,8 +100,8 @@ class _HomePageState extends State { final searchResult = _books == null ? const Text('Please enter a query', style: TextStyle(fontSize: 24)) : _books!.isNotEmpty - ? BookList(_books!) - : const Text('No results found', style: TextStyle(fontSize: 24)); + ? BookList(_books!) + : const Text('No results found', style: TextStyle(fontSize: 24)); return Scaffold( appBar: AppBar(title: const Text('Book Search')), @@ -133,17 +137,19 @@ class BookList extends StatefulWidget { class _BookListState extends State { @override Widget build(BuildContext context) => ListView.builder( - itemCount: widget.books.length, - itemBuilder: (context, index) => Card( - key: ValueKey(widget.books[index].title), - child: ListTile( - leading: Image( - image: HttpImageProvider( - widget.books[index].imageUrl.replace(scheme: 'https'), - client: context.read())), - title: Text(widget.books[index].title), - subtitle: Text(widget.books[index].description), + itemCount: widget.books.length, + itemBuilder: (context, index) => Card( + key: ValueKey(widget.books[index].title), + child: ListTile( + leading: Image( + image: HttpImageProvider( + widget.books[index].imageUrl.replace(scheme: 'https'), + client: context.read(), ), ), - ); + title: Text(widget.books[index].title), + subtitle: Text(widget.books[index].description), + ), + ), + ); } diff --git a/pkgs/flutter_http_example/pubspec.yaml b/pkgs/flutter_http_example/pubspec.yaml index 92844828d2..7c3ba3842c 100644 --- a/pkgs/flutter_http_example/pubspec.yaml +++ b/pkgs/flutter_http_example/pubspec.yaml @@ -5,7 +5,7 @@ description: Demonstrates how to use package:http in a Flutter app. publish_to: 'none' environment: - sdk: ^3.0.0 + sdk: ^3.9.0 flutter: '>=3.10.0' dependencies: diff --git a/pkgs/flutter_http_example/test/widget_test.dart b/pkgs/flutter_http_example/test/widget_test.dart index f890a1bb11..47ad117694 100644 --- a/pkgs/flutter_http_example/test/widget_test.dart +++ b/pkgs/flutter_http_example/test/widget_test.dart @@ -34,13 +34,15 @@ final _dummyPngImage = base64Decode( void main() { Widget app(Client client) => Provider( - create: (_) => client, - child: const BookSearchApp(), - dispose: (_, client) => client.close()); + create: (_) => client, + child: const BookSearchApp(), + dispose: (_, client) => client.close(), + ); testWidgets('test initial load', (WidgetTester tester) async { final mockClient = MockClient( - (request) async => throw StateError('unexpected HTTP request')); + (request) async => throw StateError('unexpected HTTP request'), + ); await tester.pumpWidget(app(mockClient)); @@ -53,8 +55,11 @@ void main() { request.url.queryParameters['q'] == 'Flutter') { return Response(_singleBookResponse, 200); } else if (request.url == Uri.https('thumbnailurl', '/')) { - return Response.bytes(_dummyPngImage, 200, - headers: const {'Content-Type': 'image/png'}); + return Response.bytes( + _dummyPngImage, + 200, + headers: const {'Content-Type': 'image/png'}, + ); } return Response('', 404); }); @@ -67,8 +72,11 @@ void main() { expect(find.text('Flutter Cookbook'), findsOneWidget); // The book description. expect( - find.text('Write, test, and publish your web, desktop...', - skipOffstage: false), - findsOneWidget); + find.text( + 'Write, test, and publish your web, desktop...', + skipOffstage: false, + ), + findsOneWidget, + ); }); } diff --git a/pkgs/http/example/main.dart b/pkgs/http/example/main.dart index 34149188ba..c7f28e5f38 100644 --- a/pkgs/http/example/main.dart +++ b/pkgs/http/example/main.dart @@ -5,8 +5,9 @@ import 'package:http/http.dart' as http; void main(List arguments) async { // This example uses the Google Books API to search for books about http. // https://developers.google.com/books/docs/overview - var url = - Uri.https('www.googleapis.com', '/books/v1/volumes', {'q': '{http}'}); + var url = Uri.https('www.googleapis.com', '/books/v1/volumes', { + 'q': '{http}', + }); // Await the http get response, then decode the json-formatted response. var response = await http.get(url); diff --git a/pkgs/http/lib/http.dart b/pkgs/http/lib/http.dart index dda7fede3d..3e1f212d60 100644 --- a/pkgs/http/lib/http.dart +++ b/pkgs/http/lib/http.dart @@ -69,10 +69,15 @@ Future get(Uri url, {Map? headers}) => /// /// For more fine-grained control over the request, use [Request] or /// [StreamedRequest] instead. -Future post(Uri url, - {Map? headers, Object? body, Encoding? encoding}) => - _withClient((client) => - client.post(url, headers: headers, body: body, encoding: encoding)); +Future post( + Uri url, { + Map? headers, + Object? body, + Encoding? encoding, +}) => _withClient( + (client) => + client.post(url, headers: headers, body: body, encoding: encoding), +); /// Sends an HTTP PUT request with the given headers and body to the given URL. /// @@ -92,10 +97,14 @@ Future post(Uri url, /// /// For more fine-grained control over the request, use [Request] or /// [StreamedRequest] instead. -Future put(Uri url, - {Map? headers, Object? body, Encoding? encoding}) => - _withClient((client) => - client.put(url, headers: headers, body: body, encoding: encoding)); +Future put( + Uri url, { + Map? headers, + Object? body, + Encoding? encoding, +}) => _withClient( + (client) => client.put(url, headers: headers, body: body, encoding: encoding), +); /// Sends an HTTP PATCH request with the given headers and body to the given /// URL. @@ -116,10 +125,15 @@ Future put(Uri url, /// /// For more fine-grained control over the request, use [Request] or /// [StreamedRequest] instead. -Future patch(Uri url, - {Map? headers, Object? body, Encoding? encoding}) => - _withClient((client) => - client.patch(url, headers: headers, body: body, encoding: encoding)); +Future patch( + Uri url, { + Map? headers, + Object? body, + Encoding? encoding, +}) => _withClient( + (client) => + client.patch(url, headers: headers, body: body, encoding: encoding), +); /// Sends an HTTP DELETE request with the given headers to the given URL. /// @@ -128,10 +142,15 @@ Future patch(Uri url, /// the same server, you should use a single [Client] for all of those requests. /// /// For more fine-grained control over the request, use [Request] instead. -Future delete(Uri url, - {Map? headers, Object? body, Encoding? encoding}) => - _withClient((client) => - client.delete(url, headers: headers, body: body, encoding: encoding)); +Future delete( + Uri url, { + Map? headers, + Object? body, + Encoding? encoding, +}) => _withClient( + (client) => + client.delete(url, headers: headers, body: body, encoding: encoding), +); /// Sends an HTTP GET request with the given headers to the given URL and /// returns a Future that completes to the body of the response as a [String]. diff --git a/pkgs/http/lib/retry.dart b/pkgs/http/lib/retry.dart index 8d8c370d71..f290ef458f 100644 --- a/pkgs/http/lib/retry.dart +++ b/pkgs/http/lib/retry.dart @@ -64,12 +64,12 @@ final class RetryClient extends BaseClient { FutureOr Function(Object, StackTrace) whenError = _defaultWhenError, Duration Function(int retryCount) delay = _defaultDelay, FutureOr Function(BaseRequest, BaseResponse?, int retryCount)? - onRetry, - }) : _retries = retries, - _when = when, - _whenError = whenError, - _delay = delay, - _onRetry = onRetry { + onRetry, + }) : _retries = retries, + _when = when, + _whenError = whenError, + _delay = delay, + _onRetry = onRetry { RangeError.checkNotNegative(_retries, 'retries'); } @@ -85,14 +85,14 @@ final class RetryClient extends BaseClient { FutureOr Function(BaseResponse) when = _defaultWhen, FutureOr Function(Object, StackTrace) whenError = _defaultWhenError, FutureOr Function(BaseRequest, BaseResponse?, int retryCount)? - onRetry, + onRetry, }) : this._withDelays( - inner, - delays.toList(), - when: when, - whenError: whenError, - onRetry: onRetry, - ); + inner, + delays.toList(), + when: when, + whenError: whenError, + onRetry: onRetry, + ); RetryClient._withDelays( Client inner, @@ -101,13 +101,13 @@ final class RetryClient extends BaseClient { required FutureOr Function(Object, StackTrace) whenError, required FutureOr Function(BaseRequest, BaseResponse?, int)? onRetry, }) : this( - inner, - retries: delays.length, - delay: (retryCount) => delays[retryCount], - when: when, - whenError: whenError, - onRetry: onRetry, - ); + inner, + retries: delays.length, + delay: (retryCount) => delays[retryCount], + when: when, + whenError: whenError, + onRetry: onRetry, + ); @override Future send(BaseRequest request) async { @@ -167,10 +167,12 @@ final class RetryClient extends BaseClient { ..maxRedirects = original.maxRedirects ..persistentConnection = original.persistentConnection; - body.listen(request.sink.add, - onError: request.sink.addError, - onDone: request.sink.close, - cancelOnError: true); + body.listen( + request.sink.add, + onError: request.sink.addError, + onDone: request.sink.close, + cancelOnError: true, + ); return request; } diff --git a/pkgs/http/lib/src/abortable.dart b/pkgs/http/lib/src/abortable.dart index dd26a48a00..f995ffb39d 100644 --- a/pkgs/http/lib/src/abortable.dart +++ b/pkgs/http/lib/src/abortable.dart @@ -39,5 +39,5 @@ abstract mixin class Abortable implements BaseRequest { /// This exception is triggered when [Abortable.abortTrigger] completes. class RequestAbortedException extends ClientException { RequestAbortedException([Uri? uri]) - : super('Request aborted by `abortTrigger`', uri); + : super('Request aborted by `abortTrigger`', uri); } diff --git a/pkgs/http/lib/src/base_client.dart b/pkgs/http/lib/src/base_client.dart index 48a7f92fe9..777bd6f5c3 100644 --- a/pkgs/http/lib/src/base_client.dart +++ b/pkgs/http/lib/src/base_client.dart @@ -27,24 +27,36 @@ abstract mixin class BaseClient implements Client { _sendUnstreamed('GET', url, headers); @override - Future post(Uri url, - {Map? headers, Object? body, Encoding? encoding}) => - _sendUnstreamed('POST', url, headers, body, encoding); + Future post( + Uri url, { + Map? headers, + Object? body, + Encoding? encoding, + }) => _sendUnstreamed('POST', url, headers, body, encoding); @override - Future put(Uri url, - {Map? headers, Object? body, Encoding? encoding}) => - _sendUnstreamed('PUT', url, headers, body, encoding); + Future put( + Uri url, { + Map? headers, + Object? body, + Encoding? encoding, + }) => _sendUnstreamed('PUT', url, headers, body, encoding); @override - Future patch(Uri url, - {Map? headers, Object? body, Encoding? encoding}) => - _sendUnstreamed('PATCH', url, headers, body, encoding); + Future patch( + Uri url, { + Map? headers, + Object? body, + Encoding? encoding, + }) => _sendUnstreamed('PATCH', url, headers, body, encoding); @override - Future delete(Uri url, - {Map? headers, Object? body, Encoding? encoding}) => - _sendUnstreamed('DELETE', url, headers, body, encoding); + Future delete( + Uri url, { + Map? headers, + Object? body, + Encoding? encoding, + }) => _sendUnstreamed('DELETE', url, headers, body, encoding); @override Future read(Uri url, {Map? headers}) async { @@ -72,8 +84,12 @@ abstract mixin class BaseClient implements Client { /// Sends a non-streaming [Request] and returns a non-streaming [Response]. Future _sendUnstreamed( - String method, Uri url, Map? headers, - [Object? body, Encoding? encoding]) async { + String method, + Uri url, + Map? headers, [ + Object? body, + Encoding? encoding, + ]) async { var request = Request(method, url); if (headers != null) request.headers.addAll(headers); diff --git a/pkgs/http/lib/src/base_request.dart b/pkgs/http/lib/src/base_request.dart index 616eff9b60..e61e61faaf 100644 --- a/pkgs/http/lib/src/base_request.dart +++ b/pkgs/http/lib/src/base_request.dart @@ -108,10 +108,11 @@ abstract class BaseRequest { } BaseRequest(String method, this.url) - : method = _validateMethod(method), - headers = LinkedHashMap( - equals: (key1, key2) => key1.toLowerCase() == key2.toLowerCase(), - hashCode: (key) => key.toLowerCase().hashCode); + : method = _validateMethod(method), + headers = LinkedHashMap( + equals: (key1, key2) => key1.toLowerCase() == key2.toLowerCase(), + hashCode: (key) => key.toLowerCase().hashCode, + ); /// Finalizes the HTTP request in preparation for it being sent. /// @@ -145,22 +146,28 @@ abstract class BaseRequest { var stream = onDone(response.stream, client.close); if (response case BaseResponseWithUrl(:final url)) { - return StreamedResponseV2(ByteStream(stream), response.statusCode, - contentLength: response.contentLength, - request: response.request, - headers: response.headers, - isRedirect: response.isRedirect, - url: url, - persistentConnection: response.persistentConnection, - reasonPhrase: response.reasonPhrase); + return StreamedResponseV2( + ByteStream(stream), + response.statusCode, + contentLength: response.contentLength, + request: response.request, + headers: response.headers, + isRedirect: response.isRedirect, + url: url, + persistentConnection: response.persistentConnection, + reasonPhrase: response.reasonPhrase, + ); } else { - return StreamedResponse(ByteStream(stream), response.statusCode, - contentLength: response.contentLength, - request: response.request, - headers: response.headers, - isRedirect: response.isRedirect, - persistentConnection: response.persistentConnection, - reasonPhrase: response.reasonPhrase); + return StreamedResponse( + ByteStream(stream), + response.statusCode, + contentLength: response.contentLength, + request: response.request, + headers: response.headers, + isRedirect: response.isRedirect, + persistentConnection: response.persistentConnection, + reasonPhrase: response.reasonPhrase, + ); } } catch (_) { client.close(); diff --git a/pkgs/http/lib/src/base_response.dart b/pkgs/http/lib/src/base_response.dart index 507f521ac3..6afbd0843d 100644 --- a/pkgs/http/lib/src/base_response.dart +++ b/pkgs/http/lib/src/base_response.dart @@ -71,13 +71,15 @@ abstract class BaseResponse { /// Whether the server requested that a persistent connection be maintained. final bool persistentConnection; - BaseResponse(this.statusCode, - {this.contentLength, - this.request, - this.headers = const {}, - this.isRedirect = false, - this.persistentConnection = true, - this.reasonPhrase}) { + BaseResponse( + this.statusCode, { + this.contentLength, + this.request, + this.headers = const {}, + this.isRedirect = false, + this.persistentConnection = true, + this.reasonPhrase, + }) { if (statusCode < 100) { throw ArgumentError('Invalid status code $statusCode.'); } else if (contentLength != null && contentLength! < 0) { @@ -119,7 +121,8 @@ abstract interface class BaseResponseWithUrl implements BaseResponse { /// "token" as defined in RFC 2616, 2.2 /// See https://datatracker.ietf.org/doc/html/rfc2616#section-2.2 -const _tokenChars = r"!#$%&'*+\-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`" +const _tokenChars = + r"!#$%&'*+\-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`" 'abcdefghijklmnopqrstuvwxyz|~'; /// Splits comma-seperated header values. diff --git a/pkgs/http/lib/src/boundary_characters.dart b/pkgs/http/lib/src/boundary_characters.dart index 5dcc6013c1..dab68f103b 100644 --- a/pkgs/http/lib/src/boundary_characters.dart +++ b/pkgs/http/lib/src/boundary_characters.dart @@ -76,5 +76,5 @@ const List boundaryCharacters = [ 119, 120, 121, - 122 + 122, ]; diff --git a/pkgs/http/lib/src/browser_client.dart b/pkgs/http/lib/src/browser_client.dart index e4e30a3886..b2ec4d27be 100644 --- a/pkgs/http/lib/src/browser_client.dart +++ b/pkgs/http/lib/src/browser_client.dart @@ -27,17 +27,16 @@ import 'streamed_response.dart'; /// Used from conditional imports, matches the definition in `client_stub.dart`. BaseClient createClient() { if (const bool.fromEnvironment('no_default_http_client')) { - throw StateError('no_default_http_client was defined but runWithClient ' - 'was not used to configure a Client implementation.'); + throw StateError( + 'no_default_http_client was defined but runWithClient ' + 'was not used to configure a Client implementation.', + ); } return BrowserClient(); } @JS('fetch') -external JSPromise _fetch( - RequestInfo input, [ - RequestInit init, -]); +external JSPromise _fetch(RequestInfo input, [RequestInit init]); /// A `package:web`-based HTTP client that runs in the browser and is backed by /// [`window.fetch`](https://fetch.spec.whatwg.org/). @@ -66,7 +65,9 @@ class BrowserClient extends BaseClient { Future send(BaseRequest request) async { if (_isClosed) { throw ClientException( - 'HTTP request failed. Client is already closed.', request.url); + 'HTTP request failed. Client is already closed.', + request.url, + ); } final abortController = AbortController(); @@ -86,12 +87,14 @@ class BrowserClient extends BaseClient { method: request.method, body: bodyBytes.isNotEmpty ? bodyBytes.toJS : null, credentials: withCredentials ? 'include' : 'same-origin', - headers: { - if (request.contentLength case final contentLength?) - 'content-length': contentLength, - for (var header in request.headers.entries) - header.key: header.value, - }.jsify()! as HeadersInit, + headers: + { + if (request.contentLength case final contentLength?) + 'content-length': contentLength, + for (var header in request.headers.entries) + header.key: header.value, + }.jsify()! + as HeadersInit, signal: abortController.signal, redirect: request.followRedirects ? 'follow' : 'error', ), @@ -111,10 +114,11 @@ class BrowserClient extends BaseClient { } final headers = {}; - (response.headers as _IterableHeaders) - .forEach((String value, String header, [JSAny? _]) { - headers[header.toLowerCase()] = value; - }.toJS); + (response.headers as _IterableHeaders).forEach( + (String value, String header, [JSAny? _]) { + headers[header.toLowerCase()] = value; + }.toJS, + ); return StreamedResponseV2( _bodyToStream(request, response), @@ -169,8 +173,11 @@ Stream> _bodyToStream(BaseRequest request, Response response) => (listener) => _readStreamBody(request, response, listener), ); -Future _readStreamBody(BaseRequest request, Response response, - MultiStreamController> controller) async { +Future _readStreamBody( + BaseRequest request, + Response response, + MultiStreamController> controller, +) async { final reader = response.body?.getReader() as ReadableStreamDefaultReader?; if (reader == null) { // No response? Treat that as an empty stream. diff --git a/pkgs/http/lib/src/byte_stream.dart b/pkgs/http/lib/src/byte_stream.dart index d8ae4dc4d2..a0cc48ecde 100644 --- a/pkgs/http/lib/src/byte_stream.dart +++ b/pkgs/http/lib/src/byte_stream.dart @@ -19,11 +19,14 @@ final class ByteStream extends StreamView> { Future toBytes() { var completer = Completer(); var sink = ByteConversionSink.withCallback( - (bytes) => completer.complete(Uint8List.fromList(bytes))); - listen(sink.add, - onError: completer.completeError, - onDone: sink.close, - cancelOnError: true); + (bytes) => completer.complete(Uint8List.fromList(bytes)), + ); + listen( + sink.add, + onError: completer.completeError, + onDone: sink.close, + cancelOnError: true, + ); return completer.future; } diff --git a/pkgs/http/lib/src/client.dart b/pkgs/http/lib/src/client.dart index 8ee554a241..cb609fa383 100644 --- a/pkgs/http/lib/src/client.dart +++ b/pkgs/http/lib/src/client.dart @@ -71,8 +71,12 @@ abstract interface class Client { /// [encoding] defaults to [utf8]. /// /// For more fine-grained control over the request, use [send] instead. - Future post(Uri url, - {Map? headers, Object? body, Encoding? encoding}); + Future post( + Uri url, { + Map? headers, + Object? body, + Encoding? encoding, + }); /// Sends an HTTP PUT request with the given headers and body to the given /// URL. @@ -92,8 +96,12 @@ abstract interface class Client { /// [encoding] defaults to [utf8]. /// /// For more fine-grained control over the request, use [send] instead. - Future put(Uri url, - {Map? headers, Object? body, Encoding? encoding}); + Future put( + Uri url, { + Map? headers, + Object? body, + Encoding? encoding, + }); /// Sends an HTTP PATCH request with the given headers and body to the given /// URL. @@ -113,14 +121,22 @@ abstract interface class Client { /// [encoding] defaults to [utf8]. /// /// For more fine-grained control over the request, use [send] instead. - Future patch(Uri url, - {Map? headers, Object? body, Encoding? encoding}); + Future patch( + Uri url, { + Map? headers, + Object? body, + Encoding? encoding, + }); /// Sends an HTTP DELETE request with the given headers to the given URL. /// /// For more fine-grained control over the request, use [send] instead. - Future delete(Uri url, - {Map? headers, Object? body, Encoding? encoding}); + Future delete( + Uri url, { + Map? headers, + Object? body, + Encoding? encoding, + }); /// Sends an HTTP GET request with the given headers to the given URL and /// returns a Future that completes to the body of the response as a String. @@ -225,8 +241,12 @@ Client? get zoneClient { /// > /// > See the /// > [Flutter Http Example](https://github.com/dart-lang/http/tree/master/pkgs/flutter_http_example). -R runWithClient(R Function() body, Client Function() clientFactory, - {ZoneSpecification? zoneSpecification}) => - runZoned(body, - zoneValues: {#_clientToken: Zone.current.bindCallback(clientFactory)}, - zoneSpecification: zoneSpecification); +R runWithClient( + R Function() body, + Client Function() clientFactory, { + ZoneSpecification? zoneSpecification, +}) => runZoned( + body, + zoneValues: {#_clientToken: Zone.current.bindCallback(clientFactory)}, + zoneSpecification: zoneSpecification, +); diff --git a/pkgs/http/lib/src/client_stub.dart b/pkgs/http/lib/src/client_stub.dart index 6384fd0a3f..9b2c832cb4 100644 --- a/pkgs/http/lib/src/client_stub.dart +++ b/pkgs/http/lib/src/client_stub.dart @@ -6,4 +6,5 @@ import 'base_client.dart'; /// Implemented in `browser_client.dart` and `io_client.dart`. BaseClient createClient() => throw UnsupportedError( - 'Cannot create a client without dart:js_interop or dart:io.'); + 'Cannot create a client without dart:js_interop or dart:io.', +); diff --git a/pkgs/http/lib/src/io_client.dart b/pkgs/http/lib/src/io_client.dart index f259181c90..a67cad524b 100644 --- a/pkgs/http/lib/src/io_client.dart +++ b/pkgs/http/lib/src/io_client.dart @@ -13,8 +13,10 @@ import 'io_streamed_response.dart'; /// Used from conditional imports, matches the definition in `client_stub.dart`. BaseClient createClient() { if (const bool.fromEnvironment('no_default_http_client')) { - throw StateError('no_default_http_client was defined but runWithClient ' - 'was not used to configure a Client implementation.'); + throw StateError( + 'no_default_http_client was defined but runWithClient ' + 'was not used to configure a Client implementation.', + ); } return IOClient(); } @@ -28,8 +30,8 @@ class _ClientSocketException extends ClientException implements SocketException { final SocketException cause; _ClientSocketException(SocketException e, Uri uri) - : cause = e, - super(e.message, uri); + : cause = e, + super(e.message, uri); @override InternetAddress? get address => cause.address; @@ -49,15 +51,18 @@ class _IOStreamedResponseV2 extends IOStreamedResponse @override final Uri url; - _IOStreamedResponseV2(super.stream, super.statusCode, - {required this.url, - super.contentLength, - super.request, - super.headers, - super.isRedirect, - super.persistentConnection, - super.reasonPhrase, - super.inner}); + _IOStreamedResponseV2( + super.stream, + super.statusCode, { + required this.url, + super.contentLength, + super.request, + super.headers, + super.isRedirect, + super.persistentConnection, + super.reasonPhrase, + super.inner, + }); } /// A `dart:io`-based HTTP [Client]. @@ -105,7 +110,9 @@ class IOClient extends BaseClient { Future send(BaseRequest request) async { if (_inner == null) { throw ClientException( - 'HTTP request failed. Client is already closed.', request.url); + 'HTTP request failed. Client is already closed.', + request.url, + ); } var stream = request.finalize(); @@ -211,8 +218,9 @@ class IOClient extends BaseClient { return _IOStreamedResponseV2( responseController.stream, response.statusCode, - contentLength: - response.contentLength == -1 ? null : response.contentLength, + contentLength: response.contentLength == -1 + ? null + : response.contentLength, request: request, headers: headers, isRedirect: response.isRedirect, diff --git a/pkgs/http/lib/src/io_streamed_response.dart b/pkgs/http/lib/src/io_streamed_response.dart index 95b818c2b3..3fdd495848 100644 --- a/pkgs/http/lib/src/io_streamed_response.dart +++ b/pkgs/http/lib/src/io_streamed_response.dart @@ -16,15 +16,17 @@ class IOStreamedResponse extends StreamedResponse { /// [stream] should be a single-subscription stream. /// /// If [inner] is not provided, [detachSocket] will throw. - IOStreamedResponse(super.stream, super.statusCode, - {super.contentLength, - super.request, - super.headers, - super.isRedirect, - super.persistentConnection, - super.reasonPhrase, - HttpClientResponse? inner}) - : _inner = inner; + IOStreamedResponse( + super.stream, + super.statusCode, { + super.contentLength, + super.request, + super.headers, + super.isRedirect, + super.persistentConnection, + super.reasonPhrase, + HttpClientResponse? inner, + }) : _inner = inner; /// Detaches the underlying socket from the HTTP server. /// diff --git a/pkgs/http/lib/src/mock_client.dart b/pkgs/http/lib/src/mock_client.dart index cc02ffc028..d65bf2b91d 100644 --- a/pkgs/http/lib/src/mock_client.dart +++ b/pkgs/http/lib/src/mock_client.dart @@ -41,40 +41,45 @@ class MockClient extends BaseClient { /// Creates a [MockClient] with a handler that receives [Request]s and sends /// [Response]s. MockClient(MockClientHandler fn) - : this._((baseRequest, bodyStream) async { - final bodyBytes = await bodyStream.toBytes(); - var request = Request(baseRequest.method, baseRequest.url) - ..persistentConnection = baseRequest.persistentConnection - ..followRedirects = baseRequest.followRedirects - ..maxRedirects = baseRequest.maxRedirects - ..headers.addAll(baseRequest.headers) - ..bodyBytes = bodyBytes - ..finalize(); + : this._((baseRequest, bodyStream) async { + final bodyBytes = await bodyStream.toBytes(); + var request = Request(baseRequest.method, baseRequest.url) + ..persistentConnection = baseRequest.persistentConnection + ..followRedirects = baseRequest.followRedirects + ..maxRedirects = baseRequest.maxRedirects + ..headers.addAll(baseRequest.headers) + ..bodyBytes = bodyBytes + ..finalize(); - final response = await fn(request); - return StreamedResponse( - ByteStream.fromBytes(response.bodyBytes), response.statusCode, - contentLength: response.contentLength, - request: response.request, - headers: response.headers, - isRedirect: response.isRedirect, - persistentConnection: response.persistentConnection, - reasonPhrase: response.reasonPhrase); - }); + final response = await fn(request); + return StreamedResponse( + ByteStream.fromBytes(response.bodyBytes), + response.statusCode, + contentLength: response.contentLength, + request: response.request, + headers: response.headers, + isRedirect: response.isRedirect, + persistentConnection: response.persistentConnection, + reasonPhrase: response.reasonPhrase, + ); + }); /// Creates a [MockClient] with a handler that receives [StreamedRequest]s and /// sends [StreamedResponse]s. MockClient.streaming(MockClientStreamHandler fn) - : this._((request, bodyStream) async { - final response = await fn(request, bodyStream); - return StreamedResponse(response.stream, response.statusCode, - contentLength: response.contentLength, - request: response.request, - headers: response.headers, - isRedirect: response.isRedirect, - persistentConnection: response.persistentConnection, - reasonPhrase: response.reasonPhrase); - }); + : this._((request, bodyStream) async { + final response = await fn(request, bodyStream); + return StreamedResponse( + response.stream, + response.statusCode, + contentLength: response.contentLength, + request: response.request, + headers: response.headers, + isRedirect: response.isRedirect, + persistentConnection: response.persistentConnection, + reasonPhrase: response.reasonPhrase, + ); + }); @override Future send(BaseRequest request) async { @@ -86,11 +91,16 @@ class MockClient extends BaseClient { static Response pngResponse({BaseRequest? request}) { final headers = { 'content-type': 'image/png', - 'content-length': '${_pngImageData.length}' + 'content-length': '${_pngImageData.length}', }; - return Response.bytes(_pngImageData, 200, - request: request, headers: headers, reasonPhrase: 'OK'); + return Response.bytes( + _pngImageData, + 200, + request: request, + headers: headers, + reasonPhrase: 'OK', + ); } } @@ -98,8 +108,11 @@ class MockClient extends BaseClient { /// [StreamedResponse]s. /// /// Note that [request] will be finalized. -typedef MockClientStreamHandler = Future Function( - BaseRequest request, ByteStream bodyStream); +typedef MockClientStreamHandler = + Future Function( + BaseRequest request, + ByteStream bodyStream, + ); /// A handler function that receives [Request]s and sends [Response]s. /// diff --git a/pkgs/http/lib/src/multipart_file.dart b/pkgs/http/lib/src/multipart_file.dart index 47ed3c96ac..f8e622c623 100644 --- a/pkgs/http/lib/src/multipart_file.dart +++ b/pkgs/http/lib/src/multipart_file.dart @@ -48,20 +48,33 @@ class MultipartFile { /// /// [contentType] currently defaults to `application/octet-stream`, but in the /// future may be inferred from [filename]. - MultipartFile(this.field, Stream> stream, this.length, - {this.filename, MediaType? contentType}) - : _stream = toByteStream(stream), - contentType = contentType ?? MediaType('application', 'octet-stream'); + MultipartFile( + this.field, + Stream> stream, + this.length, { + this.filename, + MediaType? contentType, + }) : _stream = toByteStream(stream), + contentType = contentType ?? MediaType('application', 'octet-stream'); /// Creates a new [MultipartFile] from a byte array. /// /// [contentType] currently defaults to `application/octet-stream`, but in the /// future may be inferred from [filename]. - factory MultipartFile.fromBytes(String field, List value, - {String? filename, MediaType? contentType}) { + factory MultipartFile.fromBytes( + String field, + List value, { + String? filename, + MediaType? contentType, + }) { var stream = ByteStream.fromBytes(value); - return MultipartFile(field, stream, value.length, - filename: filename, contentType: contentType); + return MultipartFile( + field, + stream, + value.length, + filename: filename, + contentType: contentType, + ); } /// Creates a new [MultipartFile] from a string. @@ -70,14 +83,22 @@ class MultipartFile { /// [contentType] if it has a charset set. Otherwise, it defaults to UTF-8. /// [contentType] currently defaults to `text/plain; charset=utf-8`, but in /// the future may be inferred from [filename]. - factory MultipartFile.fromString(String field, String value, - {String? filename, MediaType? contentType}) { + factory MultipartFile.fromString( + String field, + String value, { + String? filename, + MediaType? contentType, + }) { contentType ??= MediaType('text', 'plain'); var encoding = encodingForContentTypeHeader(contentType, utf8); contentType = contentType.change(parameters: {'charset': encoding.name}); - return MultipartFile.fromBytes(field, encoding.encode(value), - filename: filename, contentType: contentType); + return MultipartFile.fromBytes( + field, + encoding.encode(value), + filename: filename, + contentType: contentType, + ); } // TODO(nweiz): Infer the content-type from the filename. @@ -89,10 +110,17 @@ class MultipartFile { /// /// Throws an [UnsupportedError] if `dart:io` isn't supported in this /// environment. - static Future fromPath(String field, String filePath, - {String? filename, MediaType? contentType}) => - multipartFileFromPath(field, filePath, - filename: filename, contentType: contentType); + static Future fromPath( + String field, + String filePath, { + String? filename, + MediaType? contentType, + }) => multipartFileFromPath( + field, + filePath, + filename: filename, + contentType: contentType, + ); // Finalizes the file in preparation for it being sent as part of a // [MultipartRequest]. This returns a [ByteStream] that should emit the body diff --git a/pkgs/http/lib/src/multipart_file_io.dart b/pkgs/http/lib/src/multipart_file_io.dart index fdb1071355..e4363c1e14 100644 --- a/pkgs/http/lib/src/multipart_file_io.dart +++ b/pkgs/http/lib/src/multipart_file_io.dart @@ -9,13 +9,22 @@ import 'package:http_parser/http_parser.dart'; import 'byte_stream.dart'; import 'multipart_file.dart'; -Future multipartFileFromPath(String field, String filePath, - {String? filename, MediaType? contentType}) async { +Future multipartFileFromPath( + String field, + String filePath, { + String? filename, + MediaType? contentType, +}) async { late var segments = Uri.file(filePath).pathSegments; filename ??= segments.isEmpty ? '' : segments.last; var file = File(filePath); var length = await file.length(); var stream = ByteStream(file.openRead()); - return MultipartFile(field, stream, length, - filename: filename, contentType: contentType); + return MultipartFile( + field, + stream, + length, + filename: filename, + contentType: contentType, + ); } diff --git a/pkgs/http/lib/src/multipart_file_stub.dart b/pkgs/http/lib/src/multipart_file_stub.dart index 326914b50d..b7d424ed5c 100644 --- a/pkgs/http/lib/src/multipart_file_stub.dart +++ b/pkgs/http/lib/src/multipart_file_stub.dart @@ -6,7 +6,11 @@ import 'package:http_parser/http_parser.dart'; import 'multipart_file.dart'; -Future multipartFileFromPath(String field, String filePath, - {String? filename, MediaType? contentType}) => - throw UnsupportedError( - 'MultipartFile is only supported where dart:io is available.'); +Future multipartFileFromPath( + String field, + String filePath, { + String? filename, + MediaType? contentType, +}) => throw UnsupportedError( + 'MultipartFile is only supported where dart:io is available.', +); diff --git a/pkgs/http/lib/src/multipart_request.dart b/pkgs/http/lib/src/multipart_request.dart index e571574d21..f67e52df90 100644 --- a/pkgs/http/lib/src/multipart_request.dart +++ b/pkgs/http/lib/src/multipart_request.dart @@ -56,7 +56,8 @@ class MultipartRequest extends BaseRequest { var length = 0; fields.forEach((name, value) { - length += '--'.length + + length += + '--'.length + _boundaryLength + '\r\n'.length + utf8.encode(_headerForField(name, value)).length + @@ -65,7 +66,8 @@ class MultipartRequest extends BaseRequest { }); for (var file in files) { - length += '--'.length + + length += + '--'.length + _boundaryLength + '\r\n'.length + utf8.encode(_headerForFile(file)).length + @@ -78,8 +80,10 @@ class MultipartRequest extends BaseRequest { @override set contentLength(int? value) { - throw UnsupportedError('Cannot set the contentLength property of ' - 'multipart requests.'); + throw UnsupportedError( + 'Cannot set the contentLength property of ' + 'multipart requests.', + ); } /// Freezes all mutable fields and returns a single-subscription [ByteStream] @@ -121,7 +125,8 @@ class MultipartRequest extends BaseRequest { var header = 'content-disposition: form-data; name="${_browserEncode(name)}"'; if (!isPlainAscii(value)) { - header = '$header\r\n' + header = + '$header\r\n' 'content-type: text/plain; charset=utf-8\r\n' 'content-transfer-encoding: binary'; } @@ -132,7 +137,8 @@ class MultipartRequest extends BaseRequest { /// /// The return value is guaranteed to contain only ASCII characters. String _headerForFile(MultipartFile file) { - var header = 'content-type: ${file.contentType}\r\n' + var header = + 'content-type: ${file.contentType}\r\n' 'content-disposition: form-data; name="${_browserEncode(file.field)}"'; if (file.filename != null) { @@ -154,10 +160,10 @@ class MultipartRequest extends BaseRequest { String _boundaryString() { var prefix = 'dart-http-boundary-'; var list = List.generate( - _boundaryLength - prefix.length, - (index) => - boundaryCharacters[_random.nextInt(boundaryCharacters.length)], - growable: false); + _boundaryLength - prefix.length, + (index) => boundaryCharacters[_random.nextInt(boundaryCharacters.length)], + growable: false, + ); return '$prefix${String.fromCharCodes(list)}'; } } @@ -168,7 +174,7 @@ class MultipartRequest extends BaseRequest { /// [MultipartRequest], making it a requirement. final class AbortableMultipartRequest extends MultipartRequest with Abortable { AbortableMultipartRequest(super.method, super.url, {this.abortTrigger}) - : super(); + : super(); @override final Future? abortTrigger; diff --git a/pkgs/http/lib/src/request.dart b/pkgs/http/lib/src/request.dart index 41bd130d15..a7908fd8bb 100644 --- a/pkgs/http/lib/src/request.dart +++ b/pkgs/http/lib/src/request.dart @@ -40,8 +40,10 @@ class Request extends BaseRequest { @override set contentLength(int? value) { - throw UnsupportedError('Cannot set the contentLength property of ' - 'non-streaming Request objects.'); + throw UnsupportedError( + 'Cannot set the contentLength property of ' + 'non-streaming Request objects.', + ); } /// The default encoding to use when converting between [bodyBytes] and @@ -156,8 +158,10 @@ class Request extends BaseRequest { var contentType = _contentType; if (contentType == null || contentType.mimeType != 'application/x-www-form-urlencoded') { - throw StateError('Cannot access the body fields of a Request without ' - 'content-type "application/x-www-form-urlencoded".'); + throw StateError( + 'Cannot access the body fields of a Request without ' + 'content-type "application/x-www-form-urlencoded".', + ); } return Uri.splitQueryString(body, encoding: encoding); @@ -168,16 +172,18 @@ class Request extends BaseRequest { if (contentType == null) { _contentType = MediaType('application', 'x-www-form-urlencoded'); } else if (contentType.mimeType != 'application/x-www-form-urlencoded') { - throw StateError('Cannot set the body fields of a Request with ' - 'content-type "${contentType.mimeType}".'); + throw StateError( + 'Cannot set the body fields of a Request with ' + 'content-type "${contentType.mimeType}".', + ); } body = mapToQuery(fields, encoding: encoding); } Request(super.method, super.url) - : _defaultEncoding = utf8, - _bodyBytes = Uint8List(0); + : _defaultEncoding = utf8, + _bodyBytes = Uint8List(0); /// Freezes all mutable fields and returns a single-subscription [ByteStream] /// containing the request body. diff --git a/pkgs/http/lib/src/response.dart b/pkgs/http/lib/src/response.dart index 3d8943e999..6315b04aae 100644 --- a/pkgs/http/lib/src/response.dart +++ b/pkgs/http/lib/src/response.dart @@ -30,39 +30,49 @@ class Response extends BaseResponse { String get body => _encodingForHeaders(headers).decode(bodyBytes); /// Creates a new HTTP response with a string body. - Response(String body, int statusCode, - {BaseRequest? request, - Map headers = const {}, - bool isRedirect = false, - bool persistentConnection = true, - String? reasonPhrase}) - : this.bytes(_encodingForHeaders(headers).encode(body), statusCode, - request: request, - headers: headers, - isRedirect: isRedirect, - persistentConnection: persistentConnection, - reasonPhrase: reasonPhrase); + Response( + String body, + int statusCode, { + BaseRequest? request, + Map headers = const {}, + bool isRedirect = false, + bool persistentConnection = true, + String? reasonPhrase, + }) : this.bytes( + _encodingForHeaders(headers).encode(body), + statusCode, + request: request, + headers: headers, + isRedirect: isRedirect, + persistentConnection: persistentConnection, + reasonPhrase: reasonPhrase, + ); /// Create a new HTTP response with a byte array body. - Response.bytes(List bodyBytes, super.statusCode, - {super.request, - super.headers, - super.isRedirect, - super.persistentConnection, - super.reasonPhrase}) - : bodyBytes = toUint8List(bodyBytes), - super(contentLength: bodyBytes.length); + Response.bytes( + List bodyBytes, + super.statusCode, { + super.request, + super.headers, + super.isRedirect, + super.persistentConnection, + super.reasonPhrase, + }) : bodyBytes = toUint8List(bodyBytes), + super(contentLength: bodyBytes.length); /// Creates a new HTTP response by waiting for the full body to become /// available from a [StreamedResponse]. static Future fromStream(StreamedResponse response) async { final body = await response.stream.toBytes(); - return Response.bytes(body, response.statusCode, - request: response.request, - headers: response.headers, - isRedirect: response.isRedirect, - persistentConnection: response.persistentConnection, - reasonPhrase: response.reasonPhrase); + return Response.bytes( + body, + response.statusCode, + request: response.request, + headers: response.headers, + isRedirect: response.isRedirect, + persistentConnection: response.persistentConnection, + reasonPhrase: response.reasonPhrase, + ); } } diff --git a/pkgs/http/lib/src/streamed_request.dart b/pkgs/http/lib/src/streamed_request.dart index 8a910c54f9..431ec46f17 100644 --- a/pkgs/http/lib/src/streamed_request.dart +++ b/pkgs/http/lib/src/streamed_request.dart @@ -44,7 +44,7 @@ class StreamedRequest extends BaseRequest { /// Creates a new streaming request. StreamedRequest(super.method, super.url) - : _controller = StreamController>(sync: true); + : _controller = StreamController>(sync: true); /// Freezes all mutable fields and returns a single-subscription [ByteStream] /// that emits the data being written to [sink]. @@ -61,7 +61,7 @@ class StreamedRequest extends BaseRequest { /// [StreamedRequest], making it a requirement. final class AbortableStreamedRequest extends StreamedRequest with Abortable { AbortableStreamedRequest(super.method, super.url, {this.abortTrigger}) - : super(); + : super(); @override final Future? abortTrigger; diff --git a/pkgs/http/lib/src/streamed_response.dart b/pkgs/http/lib/src/streamed_response.dart index 44389d7061..45c55abd4c 100644 --- a/pkgs/http/lib/src/streamed_response.dart +++ b/pkgs/http/lib/src/streamed_response.dart @@ -17,14 +17,16 @@ class StreamedResponse extends BaseResponse { /// Creates a new streaming response. /// /// [stream] should be a single-subscription stream. - StreamedResponse(Stream> stream, super.statusCode, - {super.contentLength, - super.request, - super.headers, - super.isRedirect, - super.persistentConnection, - super.reasonPhrase}) - : stream = toByteStream(stream); + StreamedResponse( + Stream> stream, + super.statusCode, { + super.contentLength, + super.request, + super.headers, + super.isRedirect, + super.persistentConnection, + super.reasonPhrase, + }) : stream = toByteStream(stream); } /// This class is private to `package:http` and will be removed when @@ -34,12 +36,15 @@ class StreamedResponseV2 extends StreamedResponse @override final Uri url; - StreamedResponseV2(super.stream, super.statusCode, - {required this.url, - super.contentLength, - super.request, - super.headers, - super.isRedirect, - super.persistentConnection, - super.reasonPhrase}); + StreamedResponseV2( + super.stream, + super.statusCode, { + required this.url, + super.contentLength, + super.request, + super.headers, + super.isRedirect, + super.persistentConnection, + super.reasonPhrase, + }); } diff --git a/pkgs/http/lib/src/utils.dart b/pkgs/http/lib/src/utils.dart index 89d938a45d..66691110eb 100644 --- a/pkgs/http/lib/src/utils.dart +++ b/pkgs/http/lib/src/utils.dart @@ -14,11 +14,14 @@ import 'byte_stream.dart'; /// /// mapToQuery({"foo": "bar", "baz": "bang"}); /// //=> "foo=bar&baz=bang" -String mapToQuery(Map map, {required Encoding encoding}) => - map.entries - .map((e) => '${Uri.encodeQueryComponent(e.key, encoding: encoding)}' - '=${Uri.encodeQueryComponent(e.value, encoding: encoding)}') - .join('&'); +String mapToQuery(Map map, {required Encoding encoding}) => map + .entries + .map( + (e) => + '${Uri.encodeQueryComponent(e.key, encoding: encoding)}' + '=${Uri.encodeQueryComponent(e.value, encoding: encoding)}', + ) + .join('&'); /// Determines the appropriate [Encoding] based on the given [contentTypeHeader] /// @@ -28,8 +31,10 @@ String mapToQuery(Map map, {required Encoding encoding}) => /// it attempts to find a matching [Encoding]. /// - If no charset is specified or the charset is unknown, /// it falls back to the provided [fallback], which defaults to [latin1]. -Encoding encodingForContentTypeHeader(MediaType contentTypeHeader, - [Encoding fallback = latin1]) { +Encoding encodingForContentTypeHeader( + MediaType contentTypeHeader, [ + Encoding fallback = latin1, +]) { final charset = contentTypeHeader.parameters['charset']; // Default to utf8 for application/json when charset is unspecified. @@ -80,7 +85,11 @@ ByteStream toByteStream(Stream> stream) { /// The return value, also a single-subscription [Stream] should be used in /// place of [stream] after calling this method. Stream onDone(Stream stream, void Function() onDone) => - stream.transform(StreamTransformer.fromHandlers(handleDone: (sink) { - sink.close(); - onDone(); - })); + stream.transform( + StreamTransformer.fromHandlers( + handleDone: (sink) { + sink.close(); + onDone(); + }, + ), + ); diff --git a/pkgs/http/pubspec.yaml b/pkgs/http/pubspec.yaml index b140067b54..0cade30b85 100644 --- a/pkgs/http/pubspec.yaml +++ b/pkgs/http/pubspec.yaml @@ -9,7 +9,7 @@ topics: - protocols environment: - sdk: ^3.4.0 + sdk: ^3.9.0 dependencies: async: ^2.5.0 diff --git a/pkgs/http/test/html/streamed_request_test.dart b/pkgs/http/test/html/streamed_request_test.dart index 1668656046..39a5ac21bd 100644 --- a/pkgs/http/test/html/streamed_request_test.dart +++ b/pkgs/http/test/html/streamed_request_test.dart @@ -23,8 +23,10 @@ void main() { final response = await BrowserClient().send(request); - expect(await response.stream.toBytes(), - equals([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])); + expect( + await response.stream.toBytes(), + equals([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]), + ); }); test("works when it's not set", () async { @@ -33,8 +35,10 @@ void main() { unawaited(request.sink.close()); final response = await BrowserClient().send(request); - expect(await response.stream.toBytes(), - equals([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])); + expect( + await response.stream.toBytes(), + equals([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]), + ); }); }, skip: 'Need to fix server tests for browser'); } diff --git a/pkgs/http/test/http_retry_test.dart b/pkgs/http/test/http_retry_test.dart index f29be9abec..b5ebdb3f86 100644 --- a/pkgs/http/test/http_retry_test.dart +++ b/pkgs/http/test/http_retry_test.dart @@ -14,23 +14,26 @@ void main() { group("doesn't retry when", () { test('a request has a non-503 error code', () async { final client = RetryClient( - MockClient(expectAsync1((_) async => Response('', 502), count: 1))); + MockClient(expectAsync1((_) async => Response('', 502), count: 1)), + ); final response = await client.get(Uri.http('example.org', '')); expect(response.statusCode, equals(502)); }); test("a request doesn't match when()", () async { final client = RetryClient( - MockClient(expectAsync1((_) async => Response('', 503), count: 1)), - when: (_) => false); + MockClient(expectAsync1((_) async => Response('', 503), count: 1)), + when: (_) => false, + ); final response = await client.get(Uri.http('example.org', '')); expect(response.statusCode, equals(503)); }); test('retries is 0', () async { final client = RetryClient( - MockClient(expectAsync1((_) async => Response('', 503), count: 1)), - retries: 0); + MockClient(expectAsync1((_) async => Response('', 503), count: 1)), + retries: 0, + ); final response = await client.get(Uri.http('example.org', '')); expect(response.statusCode, equals(503)); }); @@ -39,11 +42,14 @@ void main() { test('retries on a 503 by default', () async { var count = 0; final client = RetryClient( - MockClient(expectAsync1((request) async { + MockClient( + expectAsync1((request) async { count++; return count < 2 ? Response('', 503) : Response('', 200); - }, count: 2)), - delay: (_) => Duration.zero); + }, count: 2), + ), + delay: (_) => Duration.zero, + ); final response = await client.get(Uri.http('example.org', '')); expect(response.statusCode, equals(200)); @@ -52,13 +58,19 @@ void main() { test('retries on any request where when() returns true', () async { var count = 0; final client = RetryClient( - MockClient(expectAsync1((request) async { + MockClient( + expectAsync1((request) async { count++; - return Response('', 503, - headers: {'retry': count < 2 ? 'true' : 'false'}); - }, count: 2)), - when: (response) => response.headers['retry'] == 'true', - delay: (_) => Duration.zero); + return Response( + '', + 503, + headers: {'retry': count < 2 ? 'true' : 'false'}, + ); + }, count: 2), + ), + when: (response) => response.headers['retry'] == 'true', + delay: (_) => Duration.zero, + ); final response = await client.get(Uri.http('example.org', '')); expect(response.headers, containsPair('retry', 'false')); @@ -68,14 +80,16 @@ void main() { test('retries on any request where whenError() returns true', () async { var count = 0; final client = RetryClient( - MockClient(expectAsync1((request) async { + MockClient( + expectAsync1((request) async { count++; if (count < 2) throw StateError('oh no'); return Response('', 200); - }, count: 2)), - whenError: (error, _) => - error is StateError && error.message == 'oh no', - delay: (_) => Duration.zero); + }, count: 2), + ), + whenError: (error, _) => error is StateError && error.message == 'oh no', + delay: (_) => Duration.zero, + ); final response = await client.get(Uri.http('example.org', '')); expect(response.statusCode, equals(200)); @@ -83,27 +97,32 @@ void main() { test("doesn't retry a request where whenError() returns false", () async { final client = RetryClient( - MockClient(expectAsync1((request) async => throw StateError('oh no'))), - whenError: (error, _) => error == 'oh yeah', - delay: (_) => Duration.zero); + MockClient(expectAsync1((request) async => throw StateError('oh no'))), + whenError: (error, _) => error == 'oh yeah', + delay: (_) => Duration.zero, + ); - expect(client.get(Uri.http('example.org', '')), - throwsA(isStateError.having((e) => e.message, 'message', 'oh no'))); + expect( + client.get(Uri.http('example.org', '')), + throwsA(isStateError.having((e) => e.message, 'message', 'oh no')), + ); }); test('retries three times by default', () async { final client = RetryClient( - MockClient(expectAsync1((_) async => Response('', 503), count: 4)), - delay: (_) => Duration.zero); + MockClient(expectAsync1((_) async => Response('', 503), count: 4)), + delay: (_) => Duration.zero, + ); final response = await client.get(Uri.http('example.org', '')); expect(response.statusCode, equals(503)); }); test('retries the given number of times', () async { final client = RetryClient( - MockClient(expectAsync1((_) async => Response('', 503), count: 13)), - retries: 12, - delay: (_) => Duration.zero); + MockClient(expectAsync1((_) async => Response('', 503), count: 13)), + retries: 12, + delay: (_) => Duration.zero, + ); final response = await client.get(Uri.http('example.org', '')); expect(response.statusCode, equals(503)); }); @@ -111,20 +130,24 @@ void main() { test('waits 1.5x as long each time by default', () { FakeAsync().run((fake) { var count = 0; - final client = RetryClient(MockClient(expectAsync1((_) async { - count++; - if (count == 1) { - expect(fake.elapsed, equals(Duration.zero)); - } else if (count == 2) { - expect(fake.elapsed, equals(const Duration(milliseconds: 500))); - } else if (count == 3) { - expect(fake.elapsed, equals(const Duration(milliseconds: 1250))); - } else if (count == 4) { - expect(fake.elapsed, equals(const Duration(milliseconds: 2375))); - } - - return Response('', 503); - }, count: 4))); + final client = RetryClient( + MockClient( + expectAsync1((_) async { + count++; + if (count == 1) { + expect(fake.elapsed, equals(Duration.zero)); + } else if (count == 2) { + expect(fake.elapsed, equals(const Duration(milliseconds: 500))); + } else if (count == 3) { + expect(fake.elapsed, equals(const Duration(milliseconds: 1250))); + } else if (count == 4) { + expect(fake.elapsed, equals(const Duration(milliseconds: 2375))); + } + + return Response('', 503); + }, count: 4), + ), + ); expect(client.get(Uri.http('example.org', '')), completes); fake.elapse(const Duration(minutes: 10)); @@ -135,7 +158,8 @@ void main() { FakeAsync().run((fake) { var count = 0; final client = RetryClient( - MockClient(expectAsync1((_) async { + MockClient( + expectAsync1((_) async { count++; if (count == 1) { expect(fake.elapsed, equals(Duration.zero)); @@ -148,8 +172,10 @@ void main() { } return Response('', 503); - }, count: 4)), - delay: (requestCount) => Duration(seconds: requestCount)); + }, count: 4), + ), + delay: (requestCount) => Duration(seconds: requestCount), + ); expect(client.get(Uri.http('example.org', '')), completes); fake.elapse(const Duration(minutes: 10)); @@ -160,7 +186,8 @@ void main() { FakeAsync().run((fake) { var count = 0; final client = RetryClient.withDelays( - MockClient(expectAsync1((_) async { + MockClient( + expectAsync1((_) async { count++; if (count == 1) { expect(fake.elapsed, equals(Duration.zero)); @@ -173,12 +200,14 @@ void main() { } return Response('', 503); - }, count: 4)), - const [ - Duration(seconds: 1), - Duration(minutes: 1), - Duration(seconds: 12) - ]); + }, count: 4), + ), + const [ + Duration(seconds: 1), + Duration(minutes: 1), + Duration(seconds: 12), + ], + ); expect(client.get(Uri.http('example.org', '')), completes); fake.elapse(const Duration(minutes: 10)); @@ -188,22 +217,24 @@ void main() { test('calls onRetry for each retry', () async { var count = 0; final client = RetryClient( - MockClient(expectAsync1((_) async => Response('', 503), count: 3)), - retries: 2, - delay: (_) => Duration.zero, - onRetry: expectAsync3((request, response, retryCount) { - expect(request.url, equals(Uri.http('example.org', ''))); - expect(response?.statusCode, equals(503)); - expect(retryCount, equals(count)); - count++; - }, count: 2)); + MockClient(expectAsync1((_) async => Response('', 503), count: 3)), + retries: 2, + delay: (_) => Duration.zero, + onRetry: expectAsync3((request, response, retryCount) { + expect(request.url, equals(Uri.http('example.org', ''))); + expect(response?.statusCode, equals(503)); + expect(retryCount, equals(count)); + count++; + }, count: 2), + ); final response = await client.get(Uri.http('example.org', '')); expect(response.statusCode, equals(503)); }); test('copies all request attributes for each attempt', () async { final client = RetryClient.withDelays( - MockClient(expectAsync1((request) async { + MockClient( + expectAsync1((request) async { expect(request.contentLength, equals(5)); expect(request.followRedirects, isFalse); expect(request.headers, containsPair('foo', 'bar')); @@ -213,8 +244,10 @@ void main() { expect(request.url, equals(Uri.http('example.org', ''))); expect(request.body, equals('hello')); return Response('', 503); - }, count: 2)), - [Duration.zero]); + }, count: 2), + ), + [Duration.zero], + ); final request = Request('POST', Uri.http('example.org', '')) ..body = 'hello' @@ -229,11 +262,14 @@ void main() { test('async when, whenError and onRetry', () async { final client = RetryClient( - MockClient(expectAsync1( + MockClient( + expectAsync1( (request) async => request.headers['Authorization'] != null ? Response('', 200) : Response('', 401), - count: 2)), + count: 2, + ), + ), retries: 1, delay: (_) => Duration.zero, when: (response) async { @@ -271,13 +307,10 @@ void main() { var count = 0; final client = RetryClient( MockClient( - expectAsync1( - (_) async { - if (++count == 1) return Response('', 503); - throw RequestAbortedException(); - }, - count: 2, - ), + expectAsync1((_) async { + if (++count == 1) return Response('', 503); + throw RequestAbortedException(); + }, count: 2), ), delay: (_) => Duration.zero, ); @@ -292,26 +325,20 @@ void main() { var count = 0; final client = RetryClient( MockClient.streaming( - expectAsync2( - (_, __) async { - if (++count == 1) { - return StreamedResponse(const Stream.empty(), 503); - } - return StreamedResponse( - Stream.error(RequestAbortedException()), - 200, - ); - }, - count: 2, - ), + expectAsync2((_, __) async { + if (++count == 1) { + return StreamedResponse(const Stream.empty(), 503); + } + return StreamedResponse(Stream.error(RequestAbortedException()), 200); + }, count: 2), ), delay: (_) => Duration.zero, ); expect( - (await client.send(StreamedRequest('GET', Uri.http('example.org', '')))) - .stream - .single, + (await client.send( + StreamedRequest('GET', Uri.http('example.org', '')), + )).stream.single, throwsA(isA()), ); }); @@ -322,13 +349,10 @@ void main() { var count = 0; final client = RetryClient( MockClient( - expectAsync1( - (_) async { - if (++count == 2) abortCompleter.complete(); - return Response('', 503); - }, - count: 2, - ), + expectAsync1((_) async { + if (++count == 2) abortCompleter.complete(); + return Response('', 503); + }, count: 2), ), delay: (_) => Duration.zero, ); diff --git a/pkgs/http/test/io/client_conformance_test.dart b/pkgs/http/test/io/client_conformance_test.dart index 149b041a4e..09428961a5 100644 --- a/pkgs/http/test/io/client_conformance_test.dart +++ b/pkgs/http/test/io/client_conformance_test.dart @@ -11,7 +11,8 @@ import 'package:test/test.dart'; void main() { testAll( - IOClient.new, preservesMethodCase: false, // https://dartbug.com/54187 + IOClient.new, + preservesMethodCase: false, // https://dartbug.com/54187 canReceiveSetCookieHeaders: true, canSendCookieHeaders: true, correctlyHandlesNullHeaderValues: diff --git a/pkgs/http/test/io/client_test.dart b/pkgs/http/test/io/client_test.dart index fd426a8b3f..6fa29ccb1f 100644 --- a/pkgs/http/test/io/client_test.dart +++ b/pkgs/http/test/io/client_test.dart @@ -58,18 +58,21 @@ void main() { var bytesString = await response.stream.bytesToString(); client.close(); expect( - bytesString, - parse(equals({ + bytesString, + parse( + equals({ 'method': 'POST', 'path': '/', 'headers': { 'content-type': ['application/json; charset=utf-8'], 'accept-encoding': ['gzip'], 'user-agent': ['Dart'], - 'transfer-encoding': ['chunked'] + 'transfer-encoding': ['chunked'], }, - 'body': '{"hello": "world"}' - }))); + 'body': '{"hello": "world"}', + }), + ), + ); }); test('#send a StreamedRequest with a custom client', () async { @@ -96,18 +99,21 @@ void main() { var bytesString = await response.stream.bytesToString(); client.close(); expect( - bytesString, - parse(equals({ + bytesString, + parse( + equals({ 'method': 'POST', 'path': '/', 'headers': { 'content-type': ['application/json; charset=utf-8'], 'accept-encoding': ['gzip'], 'user-agent': ['Dart'], - 'transfer-encoding': ['chunked'] + 'transfer-encoding': ['chunked'], }, - 'body': '{"hello": "world"}' - }))); + 'body': '{"hello": "world"}', + }), + ), + ); }); test('#send with an invalid URL', () { @@ -118,14 +124,21 @@ void main() { 'application/json; charset=utf-8'; expect( - client.send(request), - throwsA(allOf( - isA().having((e) => e.uri, 'uri', url), - isA().having( - (e) => e.toString(), - 'SocketException.toString', - matches('ClientException with SocketException.*,' - ' uri=http://http.invalid'))))); + client.send(request), + throwsA( + allOf( + isA().having((e) => e.uri, 'uri', url), + isA().having( + (e) => e.toString(), + 'SocketException.toString', + matches( + 'ClientException with SocketException.*,' + ' uri=http://http.invalid', + ), + ), + ), + ), + ); request.sink.add('{"hello": "world"}'.codeUnits); request.sink.close(); @@ -140,8 +153,9 @@ void main() { var bytesString = await response.stream.bytesToString(); client.close(); - var headers = (jsonDecode(bytesString) as Map)['headers'] - as Map; + var headers = + (jsonDecode(bytesString) as Map)['headers'] + as Map; var contentType = (headers['content-type'] as List).single; expect(contentType, startsWith('multipart/form-data; boundary=')); }); diff --git a/pkgs/http/test/io/http_test.dart b/pkgs/http/test/io/http_test.dart index d4c19bd987..3d2eb844d6 100644 --- a/pkgs/http/test/io/http_test.dart +++ b/pkgs/http/test/io/http_test.dart @@ -32,48 +32,63 @@ void main() { test('head runWithClient', () { expect( - () => http.runWithClient(() => http.head(serverUrl), TestClient.new), - throwsUnimplementedError); + () => http.runWithClient(() => http.head(serverUrl), TestClient.new), + throwsUnimplementedError, + ); }); test('get', () async { - var response = await http.get(serverUrl, headers: { - 'X-Random-Header': 'Value', - 'X-Other-Header': 'Other Value', - 'User-Agent': 'Dart' - }); + var response = await http.get( + serverUrl, + headers: { + 'X-Random-Header': 'Value', + 'X-Other-Header': 'Other Value', + 'User-Agent': 'Dart', + }, + ); expect(response.statusCode, equals(200)); expect( - response.body, - parse(allOf( - containsPair('method', 'GET'), - containsPair('path', '/'), - containsPair( - 'headers', - allOf( - containsPair('accept-encoding', ['gzip']), - containsPair('user-agent', ['Dart']), - containsPair('x-random-header', ['Value']), - containsPair('x-other-header', ['Other Value'])))))); + response.body, + parse( + allOf( + containsPair('method', 'GET'), + containsPair('path', '/'), + containsPair( + 'headers', + allOf( + containsPair('accept-encoding', ['gzip']), + containsPair('user-agent', ['Dart']), + containsPair('x-random-header', ['Value']), + containsPair('x-other-header', ['Other Value']), + ), + ), + ), + ), + ); }); test('get runWithClient', () { expect( - () => http.runWithClient(() => http.get(serverUrl), TestClient.new), - throwsUnimplementedError); + () => http.runWithClient(() => http.get(serverUrl), TestClient.new), + throwsUnimplementedError, + ); }); test('post', () async { - var response = await http.post(serverUrl, headers: { - 'X-Random-Header': 'Value', - 'X-Other-Header': 'Other Value', - 'Content-Type': 'text/plain', - 'User-Agent': 'Dart' - }); + var response = await http.post( + serverUrl, + headers: { + 'X-Random-Header': 'Value', + 'X-Other-Header': 'Other Value', + 'Content-Type': 'text/plain', + 'User-Agent': 'Dart', + }, + ); expect(response.statusCode, equals(200)); expect( - response.body, - parse(equals({ + response.body, + parse( + equals({ 'method': 'POST', 'path': '/', 'headers': { @@ -82,23 +97,28 @@ void main() { 'content-type': ['text/plain'], 'user-agent': ['Dart'], 'x-random-header': ['Value'], - 'x-other-header': ['Other Value'] - } - }))); + 'x-other-header': ['Other Value'], + }, + }), + ), + ); }); test('post with string', () async { - var response = await http.post(serverUrl, - headers: { - 'X-Random-Header': 'Value', - 'X-Other-Header': 'Other Value', - 'User-Agent': 'Dart' - }, - body: 'request body'); + var response = await http.post( + serverUrl, + headers: { + 'X-Random-Header': 'Value', + 'X-Other-Header': 'Other Value', + 'User-Agent': 'Dart', + }, + body: 'request body', + ); expect(response.statusCode, equals(200)); expect( - response.body, - parse(equals({ + response.body, + parse( + equals({ 'method': 'POST', 'path': '/', 'headers': { @@ -107,28 +127,29 @@ void main() { 'accept-encoding': ['gzip'], 'user-agent': ['Dart'], 'x-random-header': ['Value'], - 'x-other-header': ['Other Value'] + 'x-other-header': ['Other Value'], }, - 'body': 'request body' - }))); + 'body': 'request body', + }), + ), + ); }); test('post with bytes', () async { - var response = await http.post(serverUrl, headers: { - 'X-Random-Header': 'Value', - 'X-Other-Header': 'Other Value', - 'User-Agent': 'Dart' - }, body: [ - 104, - 101, - 108, - 108, - 111 - ]); + var response = await http.post( + serverUrl, + headers: { + 'X-Random-Header': 'Value', + 'X-Other-Header': 'Other Value', + 'User-Agent': 'Dart', + }, + body: [104, 101, 108, 108, 111], + ); expect(response.statusCode, equals(200)); expect( - response.body, - parse(equals({ + response.body, + parse( + equals({ 'method': 'POST', 'path': '/', 'headers': { @@ -136,25 +157,29 @@ void main() { 'accept-encoding': ['gzip'], 'user-agent': ['Dart'], 'x-random-header': ['Value'], - 'x-other-header': ['Other Value'] + 'x-other-header': ['Other Value'], }, - 'body': [104, 101, 108, 108, 111] - }))); + 'body': [104, 101, 108, 108, 111], + }), + ), + ); }); test('post with fields', () async { - var response = await http.post(serverUrl, headers: { - 'X-Random-Header': 'Value', - 'X-Other-Header': 'Other Value', - 'User-Agent': 'Dart' - }, body: { - 'some-field': 'value', - 'other-field': 'other value' - }); + var response = await http.post( + serverUrl, + headers: { + 'X-Random-Header': 'Value', + 'X-Other-Header': 'Other Value', + 'User-Agent': 'Dart', + }, + body: {'some-field': 'value', 'other-field': 'other value'}, + ); expect(response.statusCode, equals(200)); expect( - response.body, - parse(equals({ + response.body, + parse( + equals({ 'method': 'POST', 'path': '/', 'headers': { @@ -163,30 +188,39 @@ void main() { 'accept-encoding': ['gzip'], 'user-agent': ['Dart'], 'x-random-header': ['Value'], - 'x-other-header': ['Other Value'] + 'x-other-header': ['Other Value'], }, - 'body': 'some-field=value&other-field=other+value' - }))); + 'body': 'some-field=value&other-field=other+value', + }), + ), + ); }); test('post runWithClient', () { expect( - () => http.runWithClient( - () => http.post(serverUrl, body: 'testing'), TestClient.new), - throwsUnimplementedError); + () => http.runWithClient( + () => http.post(serverUrl, body: 'testing'), + TestClient.new, + ), + throwsUnimplementedError, + ); }); test('put', () async { - var response = await http.put(serverUrl, headers: { - 'X-Random-Header': 'Value', - 'X-Other-Header': 'Other Value', - 'Content-Type': 'text/plain', - 'User-Agent': 'Dart' - }); + var response = await http.put( + serverUrl, + headers: { + 'X-Random-Header': 'Value', + 'X-Other-Header': 'Other Value', + 'Content-Type': 'text/plain', + 'User-Agent': 'Dart', + }, + ); expect(response.statusCode, equals(200)); expect( - response.body, - parse(equals({ + response.body, + parse( + equals({ 'method': 'PUT', 'path': '/', 'headers': { @@ -195,23 +229,28 @@ void main() { 'content-type': ['text/plain'], 'user-agent': ['Dart'], 'x-random-header': ['Value'], - 'x-other-header': ['Other Value'] - } - }))); + 'x-other-header': ['Other Value'], + }, + }), + ), + ); }); test('put with string', () async { - var response = await http.put(serverUrl, - headers: { - 'X-Random-Header': 'Value', - 'X-Other-Header': 'Other Value', - 'User-Agent': 'Dart' - }, - body: 'request body'); + var response = await http.put( + serverUrl, + headers: { + 'X-Random-Header': 'Value', + 'X-Other-Header': 'Other Value', + 'User-Agent': 'Dart', + }, + body: 'request body', + ); expect(response.statusCode, equals(200)); expect( - response.body, - parse(equals({ + response.body, + parse( + equals({ 'method': 'PUT', 'path': '/', 'headers': { @@ -220,28 +259,29 @@ void main() { 'accept-encoding': ['gzip'], 'user-agent': ['Dart'], 'x-random-header': ['Value'], - 'x-other-header': ['Other Value'] + 'x-other-header': ['Other Value'], }, - 'body': 'request body' - }))); + 'body': 'request body', + }), + ), + ); }); test('put with bytes', () async { - var response = await http.put(serverUrl, headers: { - 'X-Random-Header': 'Value', - 'X-Other-Header': 'Other Value', - 'User-Agent': 'Dart' - }, body: [ - 104, - 101, - 108, - 108, - 111 - ]); + var response = await http.put( + serverUrl, + headers: { + 'X-Random-Header': 'Value', + 'X-Other-Header': 'Other Value', + 'User-Agent': 'Dart', + }, + body: [104, 101, 108, 108, 111], + ); expect(response.statusCode, equals(200)); expect( - response.body, - parse(equals({ + response.body, + parse( + equals({ 'method': 'PUT', 'path': '/', 'headers': { @@ -249,25 +289,29 @@ void main() { 'accept-encoding': ['gzip'], 'user-agent': ['Dart'], 'x-random-header': ['Value'], - 'x-other-header': ['Other Value'] + 'x-other-header': ['Other Value'], }, - 'body': [104, 101, 108, 108, 111] - }))); + 'body': [104, 101, 108, 108, 111], + }), + ), + ); }); test('put with fields', () async { - var response = await http.put(serverUrl, headers: { - 'X-Random-Header': 'Value', - 'X-Other-Header': 'Other Value', - 'User-Agent': 'Dart' - }, body: { - 'some-field': 'value', - 'other-field': 'other value' - }); + var response = await http.put( + serverUrl, + headers: { + 'X-Random-Header': 'Value', + 'X-Other-Header': 'Other Value', + 'User-Agent': 'Dart', + }, + body: {'some-field': 'value', 'other-field': 'other value'}, + ); expect(response.statusCode, equals(200)); expect( - response.body, - parse(equals({ + response.body, + parse( + equals({ 'method': 'PUT', 'path': '/', 'headers': { @@ -276,30 +320,39 @@ void main() { 'accept-encoding': ['gzip'], 'user-agent': ['Dart'], 'x-random-header': ['Value'], - 'x-other-header': ['Other Value'] + 'x-other-header': ['Other Value'], }, - 'body': 'some-field=value&other-field=other+value' - }))); + 'body': 'some-field=value&other-field=other+value', + }), + ), + ); }); test('put runWithClient', () { expect( - () => http.runWithClient( - () => http.put(serverUrl, body: 'testing'), TestClient.new), - throwsUnimplementedError); + () => http.runWithClient( + () => http.put(serverUrl, body: 'testing'), + TestClient.new, + ), + throwsUnimplementedError, + ); }); test('patch', () async { - var response = await http.patch(serverUrl, headers: { - 'X-Random-Header': 'Value', - 'X-Other-Header': 'Other Value', - 'Content-Type': 'text/plain', - 'User-Agent': 'Dart' - }); + var response = await http.patch( + serverUrl, + headers: { + 'X-Random-Header': 'Value', + 'X-Other-Header': 'Other Value', + 'Content-Type': 'text/plain', + 'User-Agent': 'Dart', + }, + ); expect(response.statusCode, equals(200)); expect( - response.body, - parse(equals({ + response.body, + parse( + equals({ 'method': 'PATCH', 'path': '/', 'headers': { @@ -308,23 +361,28 @@ void main() { 'content-type': ['text/plain'], 'user-agent': ['Dart'], 'x-random-header': ['Value'], - 'x-other-header': ['Other Value'] - } - }))); + 'x-other-header': ['Other Value'], + }, + }), + ), + ); }); test('patch with string', () async { - var response = await http.patch(serverUrl, - headers: { - 'X-Random-Header': 'Value', - 'X-Other-Header': 'Other Value', - 'User-Agent': 'Dart' - }, - body: 'request body'); + var response = await http.patch( + serverUrl, + headers: { + 'X-Random-Header': 'Value', + 'X-Other-Header': 'Other Value', + 'User-Agent': 'Dart', + }, + body: 'request body', + ); expect(response.statusCode, equals(200)); expect( - response.body, - parse(equals({ + response.body, + parse( + equals({ 'method': 'PATCH', 'path': '/', 'headers': { @@ -333,28 +391,29 @@ void main() { 'accept-encoding': ['gzip'], 'user-agent': ['Dart'], 'x-random-header': ['Value'], - 'x-other-header': ['Other Value'] + 'x-other-header': ['Other Value'], }, - 'body': 'request body' - }))); + 'body': 'request body', + }), + ), + ); }); test('patch with bytes', () async { - var response = await http.patch(serverUrl, headers: { - 'X-Random-Header': 'Value', - 'X-Other-Header': 'Other Value', - 'User-Agent': 'Dart' - }, body: [ - 104, - 101, - 108, - 108, - 111 - ]); + var response = await http.patch( + serverUrl, + headers: { + 'X-Random-Header': 'Value', + 'X-Other-Header': 'Other Value', + 'User-Agent': 'Dart', + }, + body: [104, 101, 108, 108, 111], + ); expect(response.statusCode, equals(200)); expect( - response.body, - parse(equals({ + response.body, + parse( + equals({ 'method': 'PATCH', 'path': '/', 'headers': { @@ -362,25 +421,29 @@ void main() { 'accept-encoding': ['gzip'], 'user-agent': ['Dart'], 'x-random-header': ['Value'], - 'x-other-header': ['Other Value'] + 'x-other-header': ['Other Value'], }, - 'body': [104, 101, 108, 108, 111] - }))); + 'body': [104, 101, 108, 108, 111], + }), + ), + ); }); test('patch with fields', () async { - var response = await http.patch(serverUrl, headers: { - 'X-Random-Header': 'Value', - 'X-Other-Header': 'Other Value', - 'User-Agent': 'Dart' - }, body: { - 'some-field': 'value', - 'other-field': 'other value' - }); + var response = await http.patch( + serverUrl, + headers: { + 'X-Random-Header': 'Value', + 'X-Other-Header': 'Other Value', + 'User-Agent': 'Dart', + }, + body: {'some-field': 'value', 'other-field': 'other value'}, + ); expect(response.statusCode, equals(200)); expect( - response.body, - parse(equals({ + response.body, + parse( + equals({ 'method': 'PATCH', 'path': '/', 'headers': { @@ -389,58 +452,81 @@ void main() { 'accept-encoding': ['gzip'], 'user-agent': ['Dart'], 'x-random-header': ['Value'], - 'x-other-header': ['Other Value'] + 'x-other-header': ['Other Value'], }, - 'body': 'some-field=value&other-field=other+value' - }))); + 'body': 'some-field=value&other-field=other+value', + }), + ), + ); }); test('delete', () async { - var response = await http.delete(serverUrl, headers: { - 'X-Random-Header': 'Value', - 'X-Other-Header': 'Other Value', - 'User-Agent': 'Dart' - }); + var response = await http.delete( + serverUrl, + headers: { + 'X-Random-Header': 'Value', + 'X-Other-Header': 'Other Value', + 'User-Agent': 'Dart', + }, + ); expect(response.statusCode, equals(200)); expect( - response.body, - parse(allOf( - containsPair('method', 'DELETE'), - containsPair('path', '/'), - containsPair( - 'headers', - allOf( - containsPair('accept-encoding', ['gzip']), - containsPair('user-agent', ['Dart']), - containsPair('x-random-header', ['Value']), - containsPair('x-other-header', ['Other Value'])))))); + response.body, + parse( + allOf( + containsPair('method', 'DELETE'), + containsPair('path', '/'), + containsPair( + 'headers', + allOf( + containsPair('accept-encoding', ['gzip']), + containsPair('user-agent', ['Dart']), + containsPair('x-random-header', ['Value']), + containsPair('x-other-header', ['Other Value']), + ), + ), + ), + ), + ); }); test('patch runWithClient', () { expect( - () => http.runWithClient( - () => http.patch(serverUrl, body: 'testing'), TestClient.new), - throwsUnimplementedError); + () => http.runWithClient( + () => http.patch(serverUrl, body: 'testing'), + TestClient.new, + ), + throwsUnimplementedError, + ); }); test('read', () async { - var response = await http.read(serverUrl, headers: { - 'X-Random-Header': 'Value', - 'X-Other-Header': 'Other Value', - 'User-Agent': 'Dart' - }); + var response = await http.read( + serverUrl, + headers: { + 'X-Random-Header': 'Value', + 'X-Other-Header': 'Other Value', + 'User-Agent': 'Dart', + }, + ); expect( - response, - parse(allOf( - containsPair('method', 'GET'), - containsPair('path', '/'), - containsPair( - 'headers', - allOf( - containsPair('accept-encoding', ['gzip']), - containsPair('user-agent', ['Dart']), - containsPair('x-random-header', ['Value']), - containsPair('x-other-header', ['Other Value'])))))); + response, + parse( + allOf( + containsPair('method', 'GET'), + containsPair('path', '/'), + containsPair( + 'headers', + allOf( + containsPair('accept-encoding', ['gzip']), + containsPair('user-agent', ['Dart']), + containsPair('x-random-header', ['Value']), + containsPair('x-other-header', ['Other Value']), + ), + ), + ), + ), + ); }); test('read throws an error for a 4** status code', () { @@ -449,41 +535,54 @@ void main() { test('read runWithClient', () { expect( - () => http.runWithClient(() => http.read(serverUrl), TestClient.new), - throwsUnimplementedError); + () => http.runWithClient(() => http.read(serverUrl), TestClient.new), + throwsUnimplementedError, + ); }); test('readBytes', () async { - var bytes = await http.readBytes(serverUrl, headers: { - 'X-Random-Header': 'Value', - 'X-Other-Header': 'Other Value', - 'User-Agent': 'Dart' - }); + var bytes = await http.readBytes( + serverUrl, + headers: { + 'X-Random-Header': 'Value', + 'X-Other-Header': 'Other Value', + 'User-Agent': 'Dart', + }, + ); expect( - String.fromCharCodes(bytes), - parse(allOf( - containsPair('method', 'GET'), - containsPair('path', '/'), - containsPair( - 'headers', - allOf( - containsPair('accept-encoding', ['gzip']), - containsPair('user-agent', ['Dart']), - containsPair('x-random-header', ['Value']), - containsPair('x-other-header', ['Other Value'])))))); + String.fromCharCodes(bytes), + parse( + allOf( + containsPair('method', 'GET'), + containsPair('path', '/'), + containsPair( + 'headers', + allOf( + containsPair('accept-encoding', ['gzip']), + containsPair('user-agent', ['Dart']), + containsPair('x-random-header', ['Value']), + containsPair('x-other-header', ['Other Value']), + ), + ), + ), + ), + ); }); test('readBytes throws an error for a 4** status code', () { expect( - http.readBytes(serverUrl.resolve('/error')), throwsClientException()); + http.readBytes(serverUrl.resolve('/error')), + throwsClientException(), + ); }); test('readBytes runWithClient', () { expect( - () => http.runWithClient( - () => http.readBytes(serverUrl), TestClient.new), - throwsUnimplementedError); + () => + http.runWithClient(() => http.readBytes(serverUrl), TestClient.new), + throwsUnimplementedError, + ); }); }); } diff --git a/pkgs/http/test/io/multipart_test.dart b/pkgs/http/test/io/multipart_test.dart index 3ab90c27cb..f70bfe5f42 100644 --- a/pkgs/http/test/io/multipart_test.dart +++ b/pkgs/http/test/io/multipart_test.dart @@ -27,13 +27,16 @@ void main() { var request = http.MultipartRequest('POST', dummyUrl); request.files.add(file); - expect(request, bodyMatches(''' + expect( + request, + bodyMatches(''' --{{boundary}} content-type: application/octet-stream content-disposition: form-data; name="file"; filename="test-file" hello --{{boundary}}-- - ''')); + '''), + ); }); } diff --git a/pkgs/http/test/io/request_test.dart b/pkgs/http/test/io/request_test.dart index 226781fbeb..1b4552948a 100644 --- a/pkgs/http/test/io/request_test.dart +++ b/pkgs/http/test/io/request_test.dart @@ -26,18 +26,21 @@ void main() { expect(response.statusCode, equals(200)); final bytesString = await response.stream.bytesToString(); expect( - bytesString, - parse(equals({ + bytesString, + parse( + equals({ 'method': 'GET', 'path': '/', 'headers': { 'content-type': ['text/plain; charset=utf-8'], 'accept-encoding': ['gzip'], 'user-agent': ['Dart'], - 'content-length': ['5'] + 'content-length': ['5'], }, 'body': 'hello', - }))); + }), + ), + ); }); test('without redirects', () async { @@ -47,9 +50,13 @@ void main() { expect(response.statusCode, equals(302)); expect( - response, - isA() - .having((r) => r.url, 'url', serverUrl.resolve('/redirect'))); + response, + isA().having( + (r) => r.url, + 'url', + serverUrl.resolve('/redirect'), + ), + ); }); test('with redirects', () async { @@ -59,17 +66,27 @@ void main() { final bytesString = await response.stream.bytesToString(); expect(bytesString, parse(containsPair('path', '/'))); expect( - response, - isA() - .having((r) => r.url, 'url', serverUrl.resolve('/'))); + response, + isA().having( + (r) => r.url, + 'url', + serverUrl.resolve('/'), + ), + ); }); test('exceeding max redirects', () async { final request = http.Request('GET', serverUrl.resolve('/loop?1')) ..maxRedirects = 2; expect( - request.send(), - throwsA(isA() - .having((e) => e.message, 'message', 'Redirect limit exceeded'))); + request.send(), + throwsA( + isA().having( + (e) => e.message, + 'message', + 'Redirect limit exceeded', + ), + ), + ); }); } diff --git a/pkgs/http/test/io/streamed_request_test.dart b/pkgs/http/test/io/streamed_request_test.dart index f0e990c767..f8efc99e8f 100644 --- a/pkgs/http/test/io/streamed_request_test.dart +++ b/pkgs/http/test/io/streamed_request_test.dart @@ -27,9 +27,9 @@ void main() { unawaited(request.sink.close()); var response = await request.send(); expect( - await utf8.decodeStream(response.stream), - parse( - containsPair('headers', containsPair('content-length', ['10'])))); + await utf8.decodeStream(response.stream), + parse(containsPair('headers', containsPair('content-length', ['10']))), + ); }); test('defaults to sending no Content-Length', () async { @@ -37,15 +37,19 @@ void main() { request.sink.add([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); unawaited(request.sink.close()); var response = await request.send(); - expect(await utf8.decodeStream(response.stream), - parse(containsPair('headers', isNot(contains('content-length'))))); + expect( + await utf8.decodeStream(response.stream), + parse(containsPair('headers', isNot(contains('content-length')))), + ); }); }); // Regression test. test('.send() with a response with no content length', () async { - var request = - http.StreamedRequest('GET', serverUrl.resolve('/no-content-length')); + var request = http.StreamedRequest( + 'GET', + serverUrl.resolve('/no-content-length'), + ); unawaited(request.sink.close()); var response = await request.send(); expect(await utf8.decodeStream(response.stream), equals('body')); diff --git a/pkgs/http/test/mock_client_test.dart b/pkgs/http/test/mock_client_test.dart index 625285cb33..c8cec6e5ae 100644 --- a/pkgs/http/test/mock_client_test.dart +++ b/pkgs/http/test/mock_client_test.dart @@ -13,21 +13,31 @@ import 'utils.dart'; void main() { test('handles a request', () async { - var client = MockClient((request) async => http.Response( - json.encode(request.bodyFields), 200, - request: request, headers: {'content-type': 'application/json'})); + var client = MockClient( + (request) async => http.Response( + json.encode(request.bodyFields), + 200, + request: request, + headers: {'content-type': 'application/json'}, + ), + ); - var response = await client.post(Uri.http('example.com', '/foo'), - body: {'field1': 'value1', 'field2': 'value2'}); + var response = await client.post( + Uri.http('example.com', '/foo'), + body: {'field1': 'value1', 'field2': 'value2'}, + ); expect( - response.body, parse(equals({'field1': 'value1', 'field2': 'value2'}))); + response.body, + parse(equals({'field1': 'value1', 'field2': 'value2'})), + ); }); test('handles a streamed request', () async { var client = MockClient.streaming((request, bodyStream) async { var bodyString = await bodyStream.bytesToString(); - var stream = - Stream.fromIterable(['Request body was "$bodyString"'.codeUnits]); + var stream = Stream.fromIterable([ + 'Request body was "$bodyString"'.codeUnits, + ]); return http.StreamedResponse(stream, 200); }); @@ -41,16 +51,19 @@ void main() { test('handles a request with no body', () async { var client = MockClient((_) async => http.Response('you did it', 200)); - expect(await client.read(Uri.http('example.com', '/foo')), - equals('you did it')); + expect( + await client.read(Uri.http('example.com', '/foo')), + equals('you did it'), + ); }); test('pngResponse with default options', () { final response = MockClient.pngResponse(); expect(response.statusCode, 200); - expect(response.bodyBytes.take(8), - [137, 80, 78, 71, 13, 10, 26, 10] // PNG header - ); + expect( + response.bodyBytes.take(8), + [137, 80, 78, 71, 13, 10, 26, 10], // PNG header + ); expect(response.request, null); expect(response.headers, containsPair('content-type', 'image/png')); }); @@ -59,9 +72,10 @@ void main() { final request = Request('GET', Uri.https('example.com')); final response = MockClient.pngResponse(request: request); expect(response.statusCode, 200); - expect(response.bodyBytes.take(8), - [137, 80, 78, 71, 13, 10, 26, 10] // PNG header - ); + expect( + response.bodyBytes.take(8), + [137, 80, 78, 71, 13, 10, 26, 10], // PNG header + ); expect(response.request, request); expect(response.headers, containsPair('content-type', 'image/png')); }); diff --git a/pkgs/http/test/multipart_test.dart b/pkgs/http/test/multipart_test.dart index ef0fe85e77..2c381a49ed 100644 --- a/pkgs/http/test/multipart_test.dart +++ b/pkgs/http/test/multipart_test.dart @@ -13,15 +13,19 @@ import 'utils.dart'; void main() { test('empty', () { var request = http.MultipartRequest('POST', dummyUrl); - expect(request, bodyMatches(''' + expect( + request, + bodyMatches(''' --{{boundary}}-- - ''')); + '''), + ); }); test('boundary characters', () { var testBoundary = String.fromCharCodes(boundaryCharacters); - var contentType = - http.MediaType.parse('text/plain; boundary=$testBoundary'); + var contentType = http.MediaType.parse( + 'text/plain; boundary=$testBoundary', + ); var boundary = contentType.parameters['boundary']; expect(boundary, testBoundary); }); @@ -30,11 +34,18 @@ void main() { var request = http.MultipartRequest('POST', dummyUrl); request.fields['field1'] = 'value1'; request.fields['field2'] = 'value2'; - request.files.add(http.MultipartFile.fromString('file1', 'contents1', - filename: 'filename1.txt')); + request.files.add( + http.MultipartFile.fromString( + 'file1', + 'contents1', + filename: 'filename1.txt', + ), + ); request.files.add(http.MultipartFile.fromString('file2', 'contents2')); - expect(request, bodyMatches(''' + expect( + request, + bodyMatches(''' --{{boundary}} content-disposition: form-data; name="field1" @@ -54,53 +65,65 @@ void main() { contents2 --{{boundary}}-- - ''')); + '''), + ); }); test('with a unicode field name', () { var request = http.MultipartRequest('POST', dummyUrl); request.fields['fïēld'] = 'value'; - expect(request, bodyMatches(''' + expect( + request, + bodyMatches(''' --{{boundary}} content-disposition: form-data; name="fïēld" value --{{boundary}}-- - ''')); + '''), + ); }); test('with a field name with newlines', () { var request = http.MultipartRequest('POST', dummyUrl); request.fields['foo\nbar\rbaz\r\nbang'] = 'value'; - expect(request, bodyMatches(''' + expect( + request, + bodyMatches(''' --{{boundary}} content-disposition: form-data; name="foo%0D%0Abar%0D%0Abaz%0D%0Abang" value --{{boundary}}-- - ''')); + '''), + ); }); test('with a field name with a quote', () { var request = http.MultipartRequest('POST', dummyUrl); request.fields['foo"bar'] = 'value'; - expect(request, bodyMatches(''' + expect( + request, + bodyMatches(''' --{{boundary}} content-disposition: form-data; name="foo%22bar" value --{{boundary}}-- - ''')); + '''), + ); }); test('with a unicode field value', () { var request = http.MultipartRequest('POST', dummyUrl); request.fields['field'] = 'vⱥlūe'; - expect(request, bodyMatches(''' + expect( + request, + bodyMatches(''' --{{boundary}} content-disposition: form-data; name="field" content-type: text/plain; charset=utf-8 @@ -108,68 +131,95 @@ void main() { vⱥlūe --{{boundary}}-- - ''')); + '''), + ); }); test('with a unicode filename', () { var request = http.MultipartRequest('POST', dummyUrl); - request.files.add(http.MultipartFile.fromString('file', 'contents', - filename: 'fïlēname.txt')); + request.files.add( + http.MultipartFile.fromString( + 'file', + 'contents', + filename: 'fïlēname.txt', + ), + ); - expect(request, bodyMatches(''' + expect( + request, + bodyMatches(''' --{{boundary}} content-type: text/plain; charset=utf-8 content-disposition: form-data; name="file"; filename="fïlēname.txt" contents --{{boundary}}-- - ''')); + '''), + ); }); test('with a filename with newlines', () { var request = http.MultipartRequest('POST', dummyUrl); - request.files.add(http.MultipartFile.fromString('file', 'contents', - filename: 'foo\nbar\rbaz\r\nbang')); + request.files.add( + http.MultipartFile.fromString( + 'file', + 'contents', + filename: 'foo\nbar\rbaz\r\nbang', + ), + ); - expect(request, bodyMatches(''' + expect( + request, + bodyMatches(''' --{{boundary}} content-type: text/plain; charset=utf-8 content-disposition: form-data; name="file"; filename="foo%0D%0Abar%0D%0Abaz%0D%0Abang" contents --{{boundary}}-- - ''')); + '''), + ); }); test('with a filename with a quote', () { var request = http.MultipartRequest('POST', dummyUrl); request.files.add( - http.MultipartFile.fromString('file', 'contents', filename: 'foo"bar')); + http.MultipartFile.fromString('file', 'contents', filename: 'foo"bar'), + ); - expect(request, bodyMatches(''' + expect( + request, + bodyMatches(''' --{{boundary}} content-type: text/plain; charset=utf-8 content-disposition: form-data; name="file"; filename="foo%22bar" contents --{{boundary}}-- - ''')); + '''), + ); }); test('with a string file with a content-type but no charset', () { var request = http.MultipartRequest('POST', dummyUrl); - var file = http.MultipartFile.fromString('file', '{"hello": "world"}', - contentType: http.MediaType('application', 'json')); + var file = http.MultipartFile.fromString( + 'file', + '{"hello": "world"}', + contentType: http.MediaType('application', 'json'), + ); request.files.add(file); - expect(request, bodyMatches(''' + expect( + request, + bodyMatches(''' --{{boundary}} content-type: application/json; charset=utf-8 content-disposition: form-data; name="file" {"hello": "world"} --{{boundary}}-- - ''')); + '''), + ); }); test('with a file with a iso-8859-1 body', () { @@ -182,14 +232,17 @@ void main() { ); request.files.add(file); - expect(request, bodyMatches(''' + expect( + request, + bodyMatches(''' --{{boundary}} content-type: text/plain; charset=iso-8859-1 content-disposition: form-data; name="file" non-ascii: "å" --{{boundary}}-- - ''')); + '''), + ); }); test('with a stream file', () { @@ -197,14 +250,17 @@ void main() { var controller = StreamController>(sync: true); request.files.add(http.MultipartFile('file', controller.stream, 5)); - expect(request, bodyMatches(''' + expect( + request, + bodyMatches(''' --{{boundary}} content-type: application/octet-stream content-disposition: form-data; name="file" hello --{{boundary}}-- - ''')); + '''), + ); controller ..add([104, 101, 108, 108, 111]) @@ -216,14 +272,17 @@ void main() { var controller = StreamController>(sync: true); request.files.add(http.MultipartFile('file', controller.stream, 0)); - expect(request, bodyMatches(''' + expect( + request, + bodyMatches(''' --{{boundary}} content-type: application/octet-stream content-disposition: form-data; name="file" --{{boundary}}-- - ''')); + '''), + ); controller.close(); }); @@ -233,19 +292,25 @@ void main() { var file = http.MultipartFile.fromBytes('file', [104, 101, 108, 108, 111]); request.files.add(file); - expect(request, bodyMatches(''' + expect( + request, + bodyMatches(''' --{{boundary}} content-type: application/octet-stream content-disposition: form-data; name="file" hello --{{boundary}}-- - ''')); + '''), + ); }); test('with a file that has an error', () async { var file = http.MultipartFile( - 'file', Future>.error('error').asStream(), 1); + 'file', + Future>.error('error').asStream(), + 1, + ); var request = http.MultipartRequest('POST', dummyUrl)..files.add(file); expect(request.finalize().drain(), throwsA('error')); }); diff --git a/pkgs/http/test/request_test.dart b/pkgs/http/test/request_test.dart index a02d0b5820..699ebb7038 100644 --- a/pkgs/http/test/request_test.dart +++ b/pkgs/http/test/request_test.dart @@ -48,16 +48,18 @@ void main() { expect(request.encoding.name, equals(latin1.name)); }); - test('remains the default if the content-type charset is set and unset', - () { - var request = http.Request('POST', dummyUrl) - ..encoding = latin1 - ..headers['Content-Type'] = 'text/plain; charset=utf-8'; - expect(request.encoding.name, equals(utf8.name)); - - request.headers.remove('Content-Type'); - expect(request.encoding.name, equals(latin1.name)); - }); + test( + 'remains the default if the content-type charset is set and unset', + () { + var request = http.Request('POST', dummyUrl) + ..encoding = latin1 + ..headers['Content-Type'] = 'text/plain; charset=utf-8'; + expect(request.encoding.name, equals(utf8.name)); + + request.headers.remove('Content-Type'); + expect(request.encoding.name, equals(latin1.name)); + }, + ); test('throws an error if the content-type charset is unknown', () { var request = http.Request('POST', dummyUrl); @@ -151,8 +153,10 @@ void main() { var request = http.Request('POST', dummyUrl); request.headers['Content-Type'] = 'application/x-www-form-urlencoded'; request.body = 'key%201=value&key+2=other%2bvalue'; - expect(request.bodyFields, - equals({'key 1': 'value', 'key 2': 'other+value'})); + expect( + request.bodyFields, + equals({'key 1': 'value', 'key 2': 'other+value'}), + ); }); test('is encoded according to the given encoding', () { @@ -189,92 +193,112 @@ void main() { expect(request.headers, containsPair('content-type', 'application/json')); }); - test('is set to application/x-www-form-urlencoded if bodyFields is set', - () { - var request = http.Request('POST', dummyUrl) - ..bodyFields = {'hello': 'world'}; - expect(request.headers['Content-Type'], - equals('application/x-www-form-urlencoded')); - }); - test( - 'is set to text/plain and the given encoding if body and encoding are ' + 'is set to application/x-www-form-urlencoded if bodyFields is set', + () { + var request = http.Request('POST', dummyUrl) + ..bodyFields = {'hello': 'world'}; + expect( + request.headers['Content-Type'], + equals('application/x-www-form-urlencoded'), + ); + }, + ); + + test('is set to text/plain and the given encoding if body and encoding are ' 'both set', () { var request = http.Request('POST', dummyUrl) ..encoding = latin1 ..body = 'hello, world'; - expect(request.headers['Content-Type'], - equals('text/plain; charset=iso-8859-1')); - }); - - test('is modified to include utf-8 if body is set and mime type is text', - () { - var request = http.Request('POST', dummyUrl); - request.headers['Content-Type'] = 'text/plain'; - request.body = 'Hello World!'; expect( - request.headers['Content-Type'], equals('text/plain; charset=utf-8')); + request.headers['Content-Type'], + equals('text/plain; charset=iso-8859-1'), + ); }); - test('is modified to include utf-8 if body is set and mime type is xml', - () { - var request = http.Request('POST', dummyUrl); - request.headers['Content-Type'] = 'application/xml'; - request.body = '>(sync: true); - var streamResponse = - http.StreamedResponse(controller.stream, 200, contentLength: 13); + var streamResponse = http.StreamedResponse( + controller.stream, + 200, + contentLength: 13, + ); controller ..add([72, 101, 108, 108, 111, 44, 32]) ..add([119, 111, 114, 108, 100, 33]); @@ -106,8 +135,11 @@ void main() { test('sets bodyBytes', () async { var controller = StreamController>(sync: true); - var streamResponse = - http.StreamedResponse(controller.stream, 200, contentLength: 5); + var streamResponse = http.StreamedResponse( + controller.stream, + 200, + contentLength: 5, + ); controller.add([104, 101, 108, 108, 111]); unawaited(controller.close()); var response = await http.Response.fromStream(streamResponse); @@ -122,64 +154,86 @@ void main() { }); test('one header', () async { - var response = - http.Response('Hello, world!', 200, headers: {'fruit': 'apple'}); + var response = http.Response( + 'Hello, world!', + 200, + headers: {'fruit': 'apple'}, + ); expect(response.headersSplitValues, const { - 'fruit': ['apple'] + 'fruit': ['apple'], }); }); test('two headers', () async { - var response = http.Response('Hello, world!', 200, - headers: {'fruit': 'apple,banana'}); + var response = http.Response( + 'Hello, world!', + 200, + headers: {'fruit': 'apple,banana'}, + ); expect(response.headersSplitValues, const { - 'fruit': ['apple', 'banana'] + 'fruit': ['apple', 'banana'], }); }); test('two headers with lots of spaces', () async { - var response = http.Response('Hello, world!', 200, - headers: {'fruit': 'apple \t , \tbanana'}); + var response = http.Response( + 'Hello, world!', + 200, + headers: {'fruit': 'apple \t , \tbanana'}, + ); expect(response.headersSplitValues, const { - 'fruit': ['apple', 'banana'] + 'fruit': ['apple', 'banana'], }); }); test('one set-cookie', () async { - var response = http.Response('Hello, world!', 200, headers: { - 'set-cookie': 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT' - }); + var response = http.Response( + 'Hello, world!', + 200, + headers: { + 'set-cookie': 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT', + }, + ); expect(response.headersSplitValues, const { - 'set-cookie': ['id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT'] + 'set-cookie': ['id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT'], }); }); test('two set-cookie, with comma in expires', () async { - var response = http.Response('Hello, world!', 200, headers: { - // ignore: missing_whitespace_between_adjacent_strings - 'set-cookie': 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT,' - 'sessionId=e8bb43229de9; Domain=foo.example.com' - }); + var response = http.Response( + 'Hello, world!', + 200, + headers: { + 'set-cookie': + // ignore: missing_whitespace_between_adjacent_strings + 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT,' + 'sessionId=e8bb43229de9; Domain=foo.example.com', + }, + ); expect(response.headersSplitValues, const { 'set-cookie': [ 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT', - 'sessionId=e8bb43229de9; Domain=foo.example.com' - ] + 'sessionId=e8bb43229de9; Domain=foo.example.com', + ], }); }); test('two set-cookie, with lots of commas', () async { - var response = http.Response('Hello, world!', 200, headers: { - 'set-cookie': - // ignore: missing_whitespace_between_adjacent_strings - 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT; Path=/,,HE,=L=LO,' - 'sessionId=e8bb43229de9; Domain=foo.example.com' - }); + var response = http.Response( + 'Hello, world!', + 200, + headers: { + 'set-cookie': + // ignore: missing_whitespace_between_adjacent_strings + 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT; Path=/,,HE,=L=LO,' + 'sessionId=e8bb43229de9; Domain=foo.example.com', + }, + ); expect(response.headersSplitValues, const { 'set-cookie': [ 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT; Path=/,,HE,=L=LO', - 'sessionId=e8bb43229de9; Domain=foo.example.com' - ] + 'sessionId=e8bb43229de9; Domain=foo.example.com', + ], }); }); }); diff --git a/pkgs/http/test/streamed_request_test.dart b/pkgs/http/test/streamed_request_test.dart index 4baa3e603e..03e7e11674 100644 --- a/pkgs/http/test/streamed_request_test.dart +++ b/pkgs/http/test/streamed_request_test.dart @@ -26,8 +26,10 @@ void main() { }); group('#method', () { test('must be a token', () { - expect(() => http.StreamedRequest('SUPER LLAMA', dummyUrl), - throwsArgumentError); + expect( + () => http.StreamedRequest('SUPER LLAMA', dummyUrl), + throwsArgumentError, + ); }); }); } diff --git a/pkgs/http/test/stub_server.dart b/pkgs/http/test/stub_server.dart index 366d505d66..5b843b678a 100644 --- a/pkgs/http/test/stub_server.dart +++ b/pkgs/http/test/stub_server.dart @@ -55,11 +55,15 @@ void hybridMain(StreamChannel channel) async { var requestBodyBytes = await ByteStream(request).toBytes(); var encodingName = request.uri.queryParameters['response-encoding']; - var outputEncoding = - encodingName == null ? ascii : requiredEncodingForCharset(encodingName); + var outputEncoding = encodingName == null + ? ascii + : requiredEncodingForCharset(encodingName); - response.headers.contentType = - ContentType('application', 'json', charset: outputEncoding.name); + response.headers.contentType = ContentType( + 'application', + 'json', + charset: outputEncoding.name, + ); response.headers.set('single', 'value'); dynamic requestBody; @@ -68,10 +72,11 @@ void hybridMain(StreamChannel channel) async { } else { requestBody = switch (( request.headers.contentType?.mimeType, - request.headers.contentType?.charset + request.headers.contentType?.charset, )) { - (_, var charset?) => - requiredEncodingForCharset(charset).decode(requestBodyBytes), + (_, var charset?) => requiredEncodingForCharset( + charset, + ).decode(requestBodyBytes), // This is not a complete set of mime types that default to utf-8, // just the ones found in the tests. ('application/json' || 'application/x-www-form-urlencoded', null) => diff --git a/pkgs/http/test/utils.dart b/pkgs/http/test/utils.dart index afa0b93067..4619a3dbeb 100644 --- a/pkgs/http/test/utils.dart +++ b/pkgs/http/test/utils.dart @@ -92,9 +92,9 @@ class _BodyMatches extends Matcher { var body = utf8.decode(bodyBytes); var contentType = http.MediaType.parse(item.headers['content-type']!); var boundary = contentType.parameters['boundary']!; - var expected = cleanUpLiteral(_pattern) - .replaceAll('\n', '\r\n') - .replaceAll('{{boundary}}', boundary); + var expected = cleanUpLiteral( + _pattern, + ).replaceAll('\n', '\r\n').replaceAll('{{boundary}}', boundary); expect(body, equals(expected)); expect(item.contentLength, equals(bodyBytes.length)); diff --git a/pkgs/http2/lib/src/connection.dart b/pkgs/http2/lib/src/connection.dart index 6a9f3fc9de..fb082ecbee 100644 --- a/pkgs/http2/lib/src/connection.dart +++ b/pkgs/http2/lib/src/connection.dart @@ -165,8 +165,10 @@ abstract class Connection { Settings settingsObject, ) { // Setup frame reading. - var incomingFrames = - FrameReader(incoming, acknowledgedSettings).startDecoding(); + var incomingFrames = FrameReader( + incoming, + acknowledgedSettings, + ).startDecoding(); _frameReaderSubscription = incomingFrames.listen( (Frame frame) { _catchProtocolErrors(() => _handleFrameImpl(frame)); diff --git a/pkgs/http2/lib/src/frames/frame_types.dart b/pkgs/http2/lib/src/frames/frame_types.dart index 9d8d3c4d55..242615eba6 100644 --- a/pkgs/http2/lib/src/frames/frame_types.dart +++ b/pkgs/http2/lib/src/frames/frame_types.dart @@ -77,12 +77,12 @@ class DataFrame extends Frame { bool get hasPaddedFlag => _isFlagSet(header.flags, FLAG_PADDED); @override - Map toJson() => - super.toJson()..addAll({ - 'padLength': padLength, - 'bytes (length)': bytes.length, - 'bytes (up to 4 bytes)': bytes.length > 4 ? bytes.sublist(0, 4) : bytes, - }); + Map toJson() => super.toJson() + ..addAll({ + 'padLength': padLength, + 'bytes (length)': bytes.length, + 'bytes (up to 4 bytes)': bytes.length > 4 ? bytes.sublist(0, 4) : bytes, + }); } class HeadersFrame extends Frame { @@ -157,14 +157,14 @@ class HeadersFrame extends Frame { } @override - Map toJson() => - super.toJson()..addAll({ - 'padLength': padLength, - 'exclusiveDependency': exclusiveDependency, - 'streamDependency': streamDependency, - 'weight': weight, - 'headerBlockFragment (length)': headerBlockFragment.length, - }); + Map toJson() => super.toJson() + ..addAll({ + 'padLength': padLength, + 'exclusiveDependency': exclusiveDependency, + 'streamDependency': streamDependency, + 'weight': weight, + 'headerBlockFragment (length)': headerBlockFragment.length, + }); } class PriorityFrame extends Frame { @@ -182,12 +182,12 @@ class PriorityFrame extends Frame { ); @override - Map toJson() => - super.toJson()..addAll({ - 'exclusiveDependency': exclusiveDependency, - 'streamDependency': streamDependency, - 'weight': weight, - }); + Map toJson() => super.toJson() + ..addAll({ + 'exclusiveDependency': exclusiveDependency, + 'streamDependency': streamDependency, + 'weight': weight, + }); } class RstStreamFrame extends Frame { @@ -295,12 +295,12 @@ class PushPromiseFrame extends Frame { } @override - Map toJson() => - super.toJson()..addAll({ - 'padLength': padLength, - 'promisedStreamId': promisedStreamId, - 'headerBlockFragment (len)': headerBlockFragment.length, - }); + Map toJson() => super.toJson() + ..addAll({ + 'padLength': padLength, + 'promisedStreamId': promisedStreamId, + 'headerBlockFragment (len)': headerBlockFragment.length, + }); } class PingFrame extends Frame { @@ -326,12 +326,12 @@ class GoawayFrame extends Frame { GoawayFrame(super.header, this.lastStreamId, this.errorCode, this.debugData); @override - Map toJson() => - super.toJson()..addAll({ - 'lastStreamId': lastStreamId, - 'errorCode': errorCode, - 'debugData (length)': debugData.length, - }); + Map toJson() => super.toJson() + ..addAll({ + 'lastStreamId': lastStreamId, + 'errorCode': errorCode, + 'debugData (length)': debugData.length, + }); } class WindowUpdateFrame extends Frame { diff --git a/pkgs/http2/lib/src/streams/stream_handler.dart b/pkgs/http2/lib/src/streams/stream_handler.dart index 7db1310658..25884578cc 100644 --- a/pkgs/http2/lib/src/streams/stream_handler.dart +++ b/pkgs/http2/lib/src/streams/stream_handler.dart @@ -241,10 +241,9 @@ class StreamHandler extends Object with TerminatableMixin, ClosableMixin { void processGoawayFrame(GoawayFrame frame) { var lastStreamId = frame.lastStreamId; - var streamIds = - _openStreams.keys - .where((id) => id > lastStreamId && !_isPeerInitiatedStream(id)) - .toList(); + var streamIds = _openStreams.keys + .where((id) => id > lastStreamId && !_isPeerInitiatedStream(id)) + .toList(); for (var id in streamIds) { var exception = StreamException( id, @@ -588,10 +587,9 @@ class StreamHandler extends Object with TerminatableMixin, ClosableMixin { var streamId = frame.header.streamId; var isServerStreamId = frame.header.streamId.isEven; var isLocalStream = isServerStreamId == isServer; - var isIdleStream = - isLocalStream - ? streamId >= nextStreamId - : streamId > lastRemoteStreamId; + var isIdleStream = isLocalStream + ? streamId >= nextStreamId + : streamId > lastRemoteStreamId; return isIdleStream; } diff --git a/pkgs/http2/pubspec.yaml b/pkgs/http2/pubspec.yaml index e65f0a31a4..19140b1f97 100644 --- a/pkgs/http2/pubspec.yaml +++ b/pkgs/http2/pubspec.yaml @@ -9,7 +9,7 @@ topics: - protocols environment: - sdk: ^3.7.0 + sdk: ^3.9.0 dev_dependencies: build_runner: ^2.4.15 diff --git a/pkgs/http2/test/multiprotocol_server_test.dart b/pkgs/http2/test/multiprotocol_server_test.dart index 515716fc05..7d2e0d5336 100644 --- a/pkgs/http2/test/multiprotocol_server_test.dart +++ b/pkgs/http2/test/multiprotocol_server_test.dart @@ -11,13 +11,9 @@ import 'package:http2/transport.dart'; import 'package:test/test.dart'; void main() { - var context = - SecurityContext() - ..useCertificateChain('test/certificates/server_chain.pem') - ..usePrivateKey( - 'test/certificates/server_key.pem', - password: 'dartdart', - ); + var context = SecurityContext() + ..useCertificateChain('test/certificates/server_chain.pem') + ..usePrivateKey('test/certificates/server_key.pem', password: 'dartdart'); group('multiprotocol-server', () { test('http/1.1', () async { diff --git a/pkgs/http2/test/src/flowcontrol/stream_queues_test.dart b/pkgs/http2/test/src/flowcontrol/stream_queues_test.dart index cbeb147a3a..94ac031346 100644 --- a/pkgs/http2/test/src/flowcontrol/stream_queues_test.dart +++ b/pkgs/http2/test/src/flowcontrol/stream_queues_test.dart @@ -37,10 +37,9 @@ void main() { queue.enqueueMessage(DataMessage(STREAM_ID, BYTES, true)); verify(windowMock.decreaseWindow(BYTES.length)).called(1); - final capturedMessage = - verify( - connectionQueueMock.enqueueMessage(captureAny), - ).captured.single; + final capturedMessage = verify( + connectionQueueMock.enqueueMessage(captureAny), + ).captured.single; expect(capturedMessage, const TypeMatcher()); var capturedDataMessage = capturedMessage as DataMessage; expect(capturedDataMessage.bytes, BYTES); @@ -70,8 +69,9 @@ void main() { expect(queue.pendingMessages, 0); verify(windowMock.decreaseWindow(1)).called(BYTES.length); - final messages = - verify(connectionQueueMock.enqueueMessage(captureAny)).captured; + final messages = verify( + connectionQueueMock.enqueueMessage(captureAny), + ).captured; expect(messages, hasLength(BYTES.length)); for (var counter = 0; counter < messages.length; counter++) { expect(messages[counter], const TypeMatcher()); diff --git a/pkgs/http2/test/transport_test.dart b/pkgs/http2/test/transport_test.dart index 72aedf9ae7..032eff35e8 100644 --- a/pkgs/http2/test/transport_test.dart +++ b/pkgs/http2/test/transport_test.dart @@ -207,8 +207,8 @@ void main() { await for (TransportStreamPush pushedStream in stream.peerPushes) { numberOfPushes++; - var messages = - await pushedStream.stream.incomingMessages.toList(); + var messages = await pushedStream.stream.incomingMessages + .toList(); expect(messages, hasLength(1)); expect( (messages[0] as HeadersStreamMessage).headers[0], diff --git a/pkgs/http_client_conformance_tests/bin/generate_server_wrappers.dart b/pkgs/http_client_conformance_tests/bin/generate_server_wrappers.dart index 52e9d766c3..1ff75abd71 100644 --- a/pkgs/http_client_conformance_tests/bin/generate_server_wrappers.dart +++ b/pkgs/http_client_conformance_tests/bin/generate_server_wrappers.dart @@ -13,7 +13,8 @@ import 'package:dart_style/dart_style.dart'; const _export = '''export 'server_queue_helpers.dart' show StreamQueueOfNullableObjectExtension;'''; -const _vm = '''// Generated by generate_server_wrappers.dart. Do not edit. +const _vm = + '''// Generated by generate_server_wrappers.dart. Do not edit. import 'package:stream_channel/stream_channel.dart'; @@ -29,7 +30,8 @@ Future> startServer() async { } '''; -const _web = '''// Generated by generate_server_wrappers.dart. Do not edit. +const _web = + '''// Generated by generate_server_wrappers.dart. Do not edit. import 'package:stream_channel/stream_channel.dart'; import 'package:test/test.dart'; @@ -44,16 +46,26 @@ Future> startServer() async => spawnHybridUri(Uri( void main() async { final files = await Directory('lib/src').list().toList(); - final formatter = - DartFormatter(languageVersion: DartFormatter.latestLanguageVersion); + final formatter = DartFormatter( + languageVersion: DartFormatter.latestLanguageVersion, + ); files.where((file) => file.path.endsWith('_server.dart')).forEach((file) { final vmPath = file.path.replaceAll('_server.dart', '_server_vm.dart'); - File(vmPath).writeAsStringSync(formatter.format(_vm.replaceAll( - '', file.uri.pathSegments.last))); + File(vmPath).writeAsStringSync( + formatter.format( + _vm.replaceAll('', file.uri.pathSegments.last), + ), + ); final webPath = file.path.replaceAll('_server.dart', '_server_web.dart'); - File(webPath).writeAsStringSync(formatter.format(_web.replaceAll( - '', file.uri.pathSegments.last))); + File(webPath).writeAsStringSync( + formatter.format( + _web.replaceAll( + '', + file.uri.pathSegments.last, + ), + ), + ); }); } diff --git a/pkgs/http_client_conformance_tests/lib/http_client_conformance_tests.dart b/pkgs/http_client_conformance_tests/lib/http_client_conformance_tests.dart index 4a317838dd..094bb036ff 100644 --- a/pkgs/http_client_conformance_tests/lib/http_client_conformance_tests.dart +++ b/pkgs/http_client_conformance_tests/lib/http_client_conformance_tests.dart @@ -98,30 +98,42 @@ void testAll( bool supportsAbort = false, }) { testRequestBody(clientFactory); - testRequestBodyStreamed(clientFactory, - canStreamRequestBody: canStreamRequestBody); + testRequestBodyStreamed( + clientFactory, + canStreamRequestBody: canStreamRequestBody, + ); testResponseBody(clientFactory, canStreamResponseBody: canStreamResponseBody); - testResponseBodyStreamed(clientFactory, - canStreamResponseBody: canStreamResponseBody); + testResponseBodyStreamed( + clientFactory, + canStreamResponseBody: canStreamResponseBody, + ); testRequestHeaders(clientFactory); testRequestMethods(clientFactory, preservesMethodCase: preservesMethodCase); - testResponseHeaders(clientFactory, - supportsFoldedHeaders: supportsFoldedHeaders, - correctlyHandlesNullHeaderValues: correctlyHandlesNullHeaderValues); + testResponseHeaders( + clientFactory, + supportsFoldedHeaders: supportsFoldedHeaders, + correctlyHandlesNullHeaderValues: correctlyHandlesNullHeaderValues, + ); testResponseStatusLine(clientFactory); testRedirect(clientFactory, redirectAlwaysAllowed: redirectAlwaysAllowed); testServerErrors(clientFactory); testCompressedResponseBody(clientFactory); testMultipleClients(clientFactory); - testMultipartRequests(clientFactory, - supportsMultipartRequest: supportsMultipartRequest); + testMultipartRequests( + clientFactory, + supportsMultipartRequest: supportsMultipartRequest, + ); testClose(clientFactory); testIsolate(clientFactory, canWorkInIsolates: canWorkInIsolates); testRequestCookies(clientFactory, canSendCookieHeaders: canSendCookieHeaders); - testResponseCookies(clientFactory, - canReceiveSetCookieHeaders: canReceiveSetCookieHeaders); - testAbort(clientFactory, - supportsAbort: supportsAbort, - canStreamRequestBody: canStreamRequestBody, - canStreamResponseBody: canStreamResponseBody); + testResponseCookies( + clientFactory, + canReceiveSetCookieHeaders: canReceiveSetCookieHeaders, + ); + testAbort( + clientFactory, + supportsAbort: supportsAbort, + canStreamRequestBody: canStreamRequestBody, + canStreamResponseBody: canStreamResponseBody, + ); } diff --git a/pkgs/http_client_conformance_tests/lib/src/abort_server_web.dart b/pkgs/http_client_conformance_tests/lib/src/abort_server_web.dart index 3dd1104a31..0b3520def8 100644 --- a/pkgs/http_client_conformance_tests/lib/src/abort_server_web.dart +++ b/pkgs/http_client_conformance_tests/lib/src/abort_server_web.dart @@ -7,8 +7,8 @@ export 'server_queue_helpers.dart' show StreamQueueOfNullableObjectExtension; /// Starts the redirect test HTTP server out-of-process. Future> startServer() async => spawnHybridUri( - Uri( - scheme: 'package', - path: 'http_client_conformance_tests/src/abort_server.dart', - ), - ); + Uri( + scheme: 'package', + path: 'http_client_conformance_tests/src/abort_server.dart', + ), +); diff --git a/pkgs/http_client_conformance_tests/lib/src/abort_tests.dart b/pkgs/http_client_conformance_tests/lib/src/abort_tests.dart index d7a0dbc7f5..8e60b1c5a5 100644 --- a/pkgs/http_client_conformance_tests/lib/src/abort_tests.dart +++ b/pkgs/http_client_conformance_tests/lib/src/abort_tests.dart @@ -57,72 +57,69 @@ void testAbort( ); abortTrigger.complete(); - expect( - client.send(request), - throwsA(isA()), - ); + expect(client.send(request), throwsA(isA())); }); - test('before first streamed item', () async { - final abortTrigger = Completer(); + test( + 'before first streamed item', + () async { + final abortTrigger = Completer(); - final request = AbortableStreamedRequest( - 'POST', - serverUrl, - abortTrigger: abortTrigger.future, - ); + final request = AbortableStreamedRequest( + 'POST', + serverUrl, + abortTrigger: abortTrigger.future, + ); - final response = client.send(request); + final response = client.send(request); - abortTrigger.complete(); + abortTrigger.complete(); - expect( - response, - throwsA(isA()), - ); + expect(response, throwsA(isA())); - // Ensure that `request.sink` is still writeable after the request is - // aborted. - for (var i = 0; i < 1000; ++i) { - request.sink.add('Hello World'.codeUnits); - await Future.delayed(const Duration()); - } - await request.sink.close(); - }, - skip: supportsAbort - ? (canStreamRequestBody ? false : 'does not stream response bodies') - : 'does not support aborting requests'); + // Ensure that `request.sink` is still writeable after the request is + // aborted. + for (var i = 0; i < 1000; ++i) { + request.sink.add('Hello World'.codeUnits); + await Future.delayed(const Duration()); + } + await request.sink.close(); + }, + skip: supportsAbort + ? (canStreamRequestBody ? false : 'does not stream response bodies') + : 'does not support aborting requests', + ); - test('during request stream', () async { - final abortTrigger = Completer(); + test( + 'during request stream', + () async { + final abortTrigger = Completer(); - final request = AbortableStreamedRequest( - 'POST', - serverUrl, - abortTrigger: abortTrigger.future, - ); + final request = AbortableStreamedRequest( + 'POST', + serverUrl, + abortTrigger: abortTrigger.future, + ); - final response = client.send(request); - request.sink.add('Hello World'.codeUnits); + final response = client.send(request); + request.sink.add('Hello World'.codeUnits); - abortTrigger.complete(); + abortTrigger.complete(); - expect( - response, - throwsA(isA()), - ); + expect(response, throwsA(isA())); - // Ensure that `request.sink` is still writeable after the request is - // aborted. - for (var i = 0; i < 1000; ++i) { - request.sink.add('Hello World'.codeUnits); - await Future.delayed(const Duration()); - } - await request.sink.close(); - }, - skip: supportsAbort - ? (canStreamRequestBody ? false : 'does not stream request bodies') - : 'does not support aborting requests'); + // Ensure that `request.sink` is still writeable after the request is + // aborted. + for (var i = 0; i < 1000; ++i) { + request.sink.add('Hello World'.codeUnits); + await Future.delayed(const Duration()); + } + await request.sink.close(); + }, + skip: supportsAbort + ? (canStreamRequestBody ? false : 'does not stream request bodies') + : 'does not support aborting requests', + ); test('after response, response stream listener', () async { final abortTrigger = Completer(); @@ -136,10 +133,7 @@ void testAbort( abortTrigger.complete(); - expect( - response.stream.single, - throwsA(isA()), - ); + expect(response.stream.single, throwsA(isA())); }); test('after response, response stream no listener', () async { @@ -157,10 +151,7 @@ void testAbort( // stream await Future.delayed(const Duration()); - expect( - response.stream.single, - throwsA(isA()), - ); + expect(response.stream.single, throwsA(isA())); }); test('after response, response stream paused', () async { @@ -205,13 +196,12 @@ void testAbort( response.stream .transform(const Utf8Decoder()) .transform(const LineSplitter()) - .listen( - (_) { - if (++i >= 1000 && !abortTrigger.isCompleted) { - abortTrigger.complete(); - } - }, - ).asFuture(), + .listen((_) { + if (++i >= 1000 && !abortTrigger.isCompleted) { + abortTrigger.complete(); + } + }) + .asFuture(), throwsA(isA()), ); expect(i, lessThan(10000)); diff --git a/pkgs/http_client_conformance_tests/lib/src/close_tests.dart b/pkgs/http_client_conformance_tests/lib/src/close_tests.dart index 39324ad7c6..fc61fa67cc 100644 --- a/pkgs/http_client_conformance_tests/lib/src/close_tests.dart +++ b/pkgs/http_client_conformance_tests/lib/src/close_tests.dart @@ -46,8 +46,10 @@ void testClose(Client Function() clientFactory) { final client = clientFactory(); await client.post(Uri.http(host, ''), body: 'Hello'); client.close(); - expect(() async => await client.post(Uri.http(host, ''), body: 'Hello'), - throwsA(isA())); + expect( + () async => await client.post(Uri.http(host, ''), body: 'Hello'), + throwsA(isA()), + ); }); }); } diff --git a/pkgs/http_client_conformance_tests/lib/src/compressed_response_body_server.dart b/pkgs/http_client_conformance_tests/lib/src/compressed_response_body_server.dart index bb4b95d1e8..6b76a4c66b 100644 --- a/pkgs/http_client_conformance_tests/lib/src/compressed_response_body_server.dart +++ b/pkgs/http_client_conformance_tests/lib/src/compressed_response_body_server.dart @@ -57,6 +57,7 @@ void hybridMain(StreamChannel channel) async { channel.sink.add(server.port); await channel - .stream.first; // Any writes indicates that the server should exit. + .stream + .first; // Any writes indicates that the server should exit. unawaited(server.close()); } diff --git a/pkgs/http_client_conformance_tests/lib/src/compressed_response_body_server_web.dart b/pkgs/http_client_conformance_tests/lib/src/compressed_response_body_server_web.dart index 7b1d1a6368..5ff536942a 100644 --- a/pkgs/http_client_conformance_tests/lib/src/compressed_response_body_server_web.dart +++ b/pkgs/http_client_conformance_tests/lib/src/compressed_response_body_server_web.dart @@ -6,7 +6,10 @@ import 'package:test/test.dart'; export 'server_queue_helpers.dart' show StreamQueueOfNullableObjectExtension; /// Starts the redirect test HTTP server out-of-process. -Future> startServer() async => spawnHybridUri(Uri( +Future> startServer() async => spawnHybridUri( + Uri( scheme: 'package', path: - 'http_client_conformance_tests/src/compressed_response_body_server.dart')); + 'http_client_conformance_tests/src/compressed_response_body_server.dart', + ), +); diff --git a/pkgs/http_client_conformance_tests/lib/src/compressed_response_body_tests.dart b/pkgs/http_client_conformance_tests/lib/src/compressed_response_body_tests.dart index 49e11598fb..6608a3f9b7 100644 --- a/pkgs/http_client_conformance_tests/lib/src/compressed_response_body_tests.dart +++ b/pkgs/http_client_conformance_tests/lib/src/compressed_response_body_tests.dart @@ -44,8 +44,10 @@ void testCompressedResponseBody(Client Function() clientFactory) { final response = await client.get(Uri.http(host, '/gzip')); final requestHeaders = await httpServerQueue.next as Map; - expect((requestHeaders['accept-encoding'] as List).join(', '), - contains('gzip')); + expect( + (requestHeaders['accept-encoding'] as List).join(', '), + contains('gzip'), + ); expect(response.body, message); expect(response.bodyBytes, message.codeUnits); expect(response.contentLength, message.length); @@ -62,8 +64,10 @@ void testCompressedResponseBody(Client Function() clientFactory) { final response = await client.send(request); final requestHeaders = await httpServerQueue.next as Map; - expect((requestHeaders['accept-encoding'] as List).join(', '), - contains('gzip')); + expect( + (requestHeaders['accept-encoding'] as List).join(', '), + contains('gzip'), + ); expect(await response.stream.bytesToString(), message); expect(response.headers['content-type'], 'text/plain'); expect(response.isRedirect, isFalse); diff --git a/pkgs/http_client_conformance_tests/lib/src/dummy_isolate.dart b/pkgs/http_client_conformance_tests/lib/src/dummy_isolate.dart index 3b07886960..e3910e9f65 100644 --- a/pkgs/http_client_conformance_tests/lib/src/dummy_isolate.dart +++ b/pkgs/http_client_conformance_tests/lib/src/dummy_isolate.dart @@ -8,8 +8,12 @@ import 'dart:async'; /// An Isolate implementation for the web that throws when used. abstract class Isolate { - static Future run(FutureOr Function() computation, - {String? debugName}) => - throw ArgumentError.value('true', 'canWorkInIsolates', - 'isolate tests are not supported on the web'); + static Future run( + FutureOr Function() computation, { + String? debugName, + }) => throw ArgumentError.value( + 'true', + 'canWorkInIsolates', + 'isolate tests are not supported on the web', + ); } diff --git a/pkgs/http_client_conformance_tests/lib/src/isolate_test.dart b/pkgs/http_client_conformance_tests/lib/src/isolate_test.dart index 1f5559b69d..0ba571f482 100644 --- a/pkgs/http_client_conformance_tests/lib/src/isolate_test.dart +++ b/pkgs/http_client_conformance_tests/lib/src/isolate_test.dart @@ -14,38 +14,44 @@ import 'request_body_server_vm.dart' Future _testPost(Client Function() clientFactory, String host) async { await Isolate.run( - () => clientFactory().post(Uri.http(host, ''), body: 'Hello World!')); + () => clientFactory().post(Uri.http(host, ''), body: 'Hello World!'), + ); } /// Tests that the [Client] is usable from Isolates other than the main /// isolate. /// /// If [canWorkInIsolates] is `false` then the tests will be skipped. -void testIsolate(Client Function() clientFactory, - {bool canWorkInIsolates = true}) { - group('test isolate', () { - late final String host; - late final StreamChannel httpServerChannel; - late final StreamQueue httpServerQueue; - - setUpAll(() async { - httpServerChannel = await startServer(); - httpServerQueue = StreamQueue(httpServerChannel.stream); - host = 'localhost:${await httpServerQueue.nextAsInt}'; - }); - tearDownAll(() => httpServerChannel.sink.add(null)); - - test('client.post() with string body', () async { - await _testPost(clientFactory, host); - - final serverReceivedContentType = await httpServerQueue.next; - final serverReceivedBody = await httpServerQueue.next; - - expect(serverReceivedContentType, ['text/plain; charset=utf-8']); - expect(serverReceivedBody, 'Hello World!'); - }); - }, - skip: canWorkInIsolates - ? false - : 'does not work outside of the main isolate'); +void testIsolate( + Client Function() clientFactory, { + bool canWorkInIsolates = true, +}) { + group( + 'test isolate', + () { + late final String host; + late final StreamChannel httpServerChannel; + late final StreamQueue httpServerQueue; + + setUpAll(() async { + httpServerChannel = await startServer(); + httpServerQueue = StreamQueue(httpServerChannel.stream); + host = 'localhost:${await httpServerQueue.nextAsInt}'; + }); + tearDownAll(() => httpServerChannel.sink.add(null)); + + test('client.post() with string body', () async { + await _testPost(clientFactory, host); + + final serverReceivedContentType = await httpServerQueue.next; + final serverReceivedBody = await httpServerQueue.next; + + expect(serverReceivedContentType, ['text/plain; charset=utf-8']); + expect(serverReceivedBody, 'Hello World!'); + }); + }, + skip: canWorkInIsolates + ? false + : 'does not work outside of the main isolate', + ); } diff --git a/pkgs/http_client_conformance_tests/lib/src/multipart_server.dart b/pkgs/http_client_conformance_tests/lib/src/multipart_server.dart index 3072090dec..bb1e8f9738 100644 --- a/pkgs/http_client_conformance_tests/lib/src/multipart_server.dart +++ b/pkgs/http_client_conformance_tests/lib/src/multipart_server.dart @@ -39,8 +39,9 @@ void hybridMain(StreamChannel channel) async { request.headers.forEach((field, value) { headers[field] = value; }); - final body = - await const Utf8Decoder().bind(request).fold('', (x, y) => '$x$y'); + final body = await const Utf8Decoder() + .bind(request) + .fold('', (x, y) => '$x$y'); await request.response.close(); channel.sink.add([headers, body]); } @@ -48,6 +49,7 @@ void hybridMain(StreamChannel channel) async { channel.sink.add(server.port); await channel - .stream.first; // Any writes indicates that the server should exit. + .stream + .first; // Any writes indicates that the server should exit. unawaited(server.close()); } diff --git a/pkgs/http_client_conformance_tests/lib/src/multipart_server_web.dart b/pkgs/http_client_conformance_tests/lib/src/multipart_server_web.dart index 8d8e88108a..42c27311c9 100644 --- a/pkgs/http_client_conformance_tests/lib/src/multipart_server_web.dart +++ b/pkgs/http_client_conformance_tests/lib/src/multipart_server_web.dart @@ -6,6 +6,9 @@ import 'package:test/test.dart'; export 'server_queue_helpers.dart' show StreamQueueOfNullableObjectExtension; /// Starts the redirect test HTTP server out-of-process. -Future> startServer() async => spawnHybridUri(Uri( +Future> startServer() async => spawnHybridUri( + Uri( scheme: 'package', - path: 'http_client_conformance_tests/src/multipart_server.dart')); + path: 'http_client_conformance_tests/src/multipart_server.dart', + ), +); diff --git a/pkgs/http_client_conformance_tests/lib/src/multipart_tests.dart b/pkgs/http_client_conformance_tests/lib/src/multipart_tests.dart index 721308dd2f..9f368dffdc 100644 --- a/pkgs/http_client_conformance_tests/lib/src/multipart_tests.dart +++ b/pkgs/http_client_conformance_tests/lib/src/multipart_tests.dart @@ -14,43 +14,53 @@ import 'multipart_server_vm.dart' /// /// If [supportsMultipartRequest] is `false` then tests that assume that /// multipart requests can be sent will be skipped. -void testMultipartRequests(Client Function() clientFactory, - {required bool supportsMultipartRequest}) async { - group('multipart requests', () { - late Client client; - late final String host; - late final StreamChannel httpServerChannel; - late final StreamQueue httpServerQueue; +void testMultipartRequests( + Client Function() clientFactory, { + required bool supportsMultipartRequest, +}) async { + group( + 'multipart requests', + () { + late Client client; + late final String host; + late final StreamChannel httpServerChannel; + late final StreamQueue httpServerQueue; - setUp(() => client = clientFactory()); - setUpAll(() async { - httpServerChannel = await startServer(); - httpServerQueue = StreamQueue(httpServerChannel.stream); - host = 'localhost:${await httpServerQueue.nextAsInt}'; - }); - tearDown(() => client.close()); - tearDownAll(() => httpServerChannel.sink.add(null)); + setUp(() => client = clientFactory()); + setUpAll(() async { + httpServerChannel = await startServer(); + httpServerQueue = StreamQueue(httpServerChannel.stream); + host = 'localhost:${await httpServerQueue.nextAsInt}'; + }); + tearDown(() => client.close()); + tearDownAll(() => httpServerChannel.sink.add(null)); - test('attached file', () async { - final request = MultipartRequest('POST', Uri.http(host, '')); + test('attached file', () async { + final request = MultipartRequest('POST', Uri.http(host, '')); - request.files.add(MultipartFile.fromString('file1', 'Hello World')); + request.files.add(MultipartFile.fromString('file1', 'Hello World')); - final response = await client.send(request); - await response.stream.drain(); - final serverRequest = await httpServerQueue.next as List; - final headers = (serverRequest[0] as Map).cast>(); - final body = serverRequest[1] as String; - expect(headers['content-length']!.single, '${request.contentLength}'); - expect(headers['content-type']!.single, - startsWith('multipart/form-data; boundary=')); - expect(body, contains('''content-type: text/plain; charset=utf-8\r + final response = await client.send(request); + await response.stream.drain(); + final serverRequest = await httpServerQueue.next as List; + final headers = (serverRequest[0] as Map).cast>(); + final body = serverRequest[1] as String; + expect(headers['content-length']!.single, '${request.contentLength}'); + expect( + headers['content-type']!.single, + startsWith('multipart/form-data; boundary='), + ); + expect( + body, + contains('''content-type: text/plain; charset=utf-8\r content-disposition: form-data; name="file1"\r \r -Hello World''')); - }); - }, - skip: supportsMultipartRequest - ? false - : 'does not support multipart requests'); +Hello World'''), + ); + }); + }, + skip: supportsMultipartRequest + ? false + : 'does not support multipart requests', + ); } diff --git a/pkgs/http_client_conformance_tests/lib/src/multiple_clients_server.dart b/pkgs/http_client_conformance_tests/lib/src/multiple_clients_server.dart index 171f6aeb04..872564c717 100644 --- a/pkgs/http_client_conformance_tests/lib/src/multiple_clients_server.dart +++ b/pkgs/http_client_conformance_tests/lib/src/multiple_clients_server.dart @@ -30,6 +30,7 @@ void hybridMain(StreamChannel channel) async { channel.sink.add(server.port); await channel - .stream.first; // Any writes indicates that the server should exit. + .stream + .first; // Any writes indicates that the server should exit. unawaited(server.close()); } diff --git a/pkgs/http_client_conformance_tests/lib/src/multiple_clients_server_web.dart b/pkgs/http_client_conformance_tests/lib/src/multiple_clients_server_web.dart index 3f71aa75cb..efdb2a9a4b 100644 --- a/pkgs/http_client_conformance_tests/lib/src/multiple_clients_server_web.dart +++ b/pkgs/http_client_conformance_tests/lib/src/multiple_clients_server_web.dart @@ -6,6 +6,9 @@ import 'package:test/test.dart'; export 'server_queue_helpers.dart' show StreamQueueOfNullableObjectExtension; /// Starts the redirect test HTTP server out-of-process. -Future> startServer() async => spawnHybridUri(Uri( +Future> startServer() async => spawnHybridUri( + Uri( scheme: 'package', - path: 'http_client_conformance_tests/src/multiple_clients_server.dart')); + path: 'http_client_conformance_tests/src/multiple_clients_server.dart', + ), +); diff --git a/pkgs/http_client_conformance_tests/lib/src/redirect_server.dart b/pkgs/http_client_conformance_tests/lib/src/redirect_server.dart index 2813e32239..bad929b378 100644 --- a/pkgs/http_client_conformance_tests/lib/src/redirect_server.dart +++ b/pkgs/http_client_conformance_tests/lib/src/redirect_server.dart @@ -28,18 +28,25 @@ void hybridMain(StreamChannel channel) async { if (request.requestedUri.pathSegments.isEmpty) { unawaited(request.response.close()); } else if (request.requestedUri.pathSegments.last == 'loop') { - unawaited(request.response - .redirect(Uri.http('localhost:${server.port}', '/loop'))); + unawaited( + request.response.redirect( + Uri.http('localhost:${server.port}', '/loop'), + ), + ); } else { final n = int.parse(request.requestedUri.pathSegments.last); final nextPath = n - 1 == 0 ? '' : '${n - 1}'; - unawaited(request.response - .redirect(Uri.http('localhost:${server.port}', '/$nextPath'))); + unawaited( + request.response.redirect( + Uri.http('localhost:${server.port}', '/$nextPath'), + ), + ); } }); channel.sink.add(server.port); await channel - .stream.first; // Any writes indicates that the server should exit. + .stream + .first; // Any writes indicates that the server should exit. unawaited(server.close()); } diff --git a/pkgs/http_client_conformance_tests/lib/src/redirect_server_web.dart b/pkgs/http_client_conformance_tests/lib/src/redirect_server_web.dart index a5fb0f2880..587254f01e 100644 --- a/pkgs/http_client_conformance_tests/lib/src/redirect_server_web.dart +++ b/pkgs/http_client_conformance_tests/lib/src/redirect_server_web.dart @@ -6,6 +6,9 @@ import 'package:test/test.dart'; export 'server_queue_helpers.dart' show StreamQueueOfNullableObjectExtension; /// Starts the redirect test HTTP server out-of-process. -Future> startServer() async => spawnHybridUri(Uri( +Future> startServer() async => spawnHybridUri( + Uri( scheme: 'package', - path: 'http_client_conformance_tests/src/redirect_server.dart')); + path: 'http_client_conformance_tests/src/redirect_server.dart', + ), +); diff --git a/pkgs/http_client_conformance_tests/lib/src/redirect_tests.dart b/pkgs/http_client_conformance_tests/lib/src/redirect_tests.dart index 494c77391d..69cf9eca72 100644 --- a/pkgs/http_client_conformance_tests/lib/src/redirect_tests.dart +++ b/pkgs/http_client_conformance_tests/lib/src/redirect_tests.dart @@ -14,8 +14,10 @@ import 'redirect_server_vm.dart' /// /// If [redirectAlwaysAllowed] is `true` then tests that require the [Client] /// to limit redirects will be skipped. -void testRedirect(Client Function() clientFactory, - {bool redirectAlwaysAllowed = false}) { +void testRedirect( + Client Function() clientFactory, { + bool redirectAlwaysAllowed = false, +}) { group('redirects', () { late Client client; late final String host; @@ -43,30 +45,38 @@ void testRedirect(Client Function() clientFactory, } }); - test('disallow redirect', () async { - final request = Request('GET', Uri.http(host, '/1')) - ..followRedirects = false; - final response = await client.send(request); - await response.stream.drain(); - expect(response.statusCode, 302); - expect(response.isRedirect, true); - if (response case BaseResponseWithUrl(url: final url)) { - expect(url, Uri.http(host, '/1')); - } - }, skip: redirectAlwaysAllowed ? 'redirects always allowed' : false); + test( + 'disallow redirect', + () async { + final request = Request('GET', Uri.http(host, '/1')) + ..followRedirects = false; + final response = await client.send(request); + await response.stream.drain(); + expect(response.statusCode, 302); + expect(response.isRedirect, true); + if (response case BaseResponseWithUrl(url: final url)) { + expect(url, Uri.http(host, '/1')); + } + }, + skip: redirectAlwaysAllowed ? 'redirects always allowed' : false, + ); - test('disallow redirect, 0 maxRedirects', () async { - final request = Request('GET', Uri.http(host, '/1')) - ..followRedirects = false - ..maxRedirects = 0; - final response = await client.send(request); - await response.stream.drain(); - expect(response.statusCode, 302); - expect(response.isRedirect, true); - if (response case BaseResponseWithUrl(url: final url)) { - expect(url, Uri.http(host, '/1')); - } - }, skip: redirectAlwaysAllowed ? 'redirects always allowed' : false); + test( + 'disallow redirect, 0 maxRedirects', + () async { + final request = Request('GET', Uri.http(host, '/1')) + ..followRedirects = false + ..maxRedirects = 0; + final response = await client.send(request); + await response.stream.drain(); + expect(response.statusCode, 302); + expect(response.isRedirect, true); + if (response case BaseResponseWithUrl(url: final url)) { + expect(url, Uri.http(host, '/1')); + } + }, + skip: redirectAlwaysAllowed ? 'redirects always allowed' : false, + ); test('allow redirect', () async { final request = Request('GET', Uri.http(host, '/1')) @@ -80,47 +90,68 @@ void testRedirect(Client Function() clientFactory, } }); - test('allow redirect, 0 maxRedirects', () async { - final request = Request('GET', Uri.http(host, '/1')) - ..followRedirects = true - ..maxRedirects = 0; - expect( + test( + 'allow redirect, 0 maxRedirects', + () async { + final request = Request('GET', Uri.http(host, '/1')) + ..followRedirects = true + ..maxRedirects = 0; + expect( client.send(request), - throwsA(isA() - .having((e) => e.message, 'message', 'Redirect limit exceeded'))); - }, skip: redirectAlwaysAllowed ? 'redirects always allowed' : false); - - test('exactly the right number of allowed redirects', () async { - final request = Request('GET', Uri.http(host, '/5')) - ..followRedirects = true - ..maxRedirects = 5; - final response = await client.send(request); - await response.stream.drain(); - expect(response.statusCode, 200); - expect(response.isRedirect, false); - if (response case BaseResponseWithUrl(url: final url)) { - expect(url, Uri.http(host, '/')); - } - }, skip: redirectAlwaysAllowed ? 'redirects always allowed' : false); + throwsA( + isA().having( + (e) => e.message, + 'message', + 'Redirect limit exceeded', + ), + ), + ); + }, + skip: redirectAlwaysAllowed ? 'redirects always allowed' : false, + ); - test('too many redirects', () async { - final request = Request('GET', Uri.http(host, '/6')) - ..followRedirects = true - ..maxRedirects = 5; - expect( - client.send(request), - throwsA(isA() - .having((e) => e.message, 'message', 'Redirect limit exceeded'))); - }, skip: redirectAlwaysAllowed ? 'redirects always allowed' : false); + test( + 'exactly the right number of allowed redirects', + () async { + final request = Request('GET', Uri.http(host, '/5')) + ..followRedirects = true + ..maxRedirects = 5; + final response = await client.send(request); + await response.stream.drain(); + expect(response.statusCode, 200); + expect(response.isRedirect, false); + if (response case BaseResponseWithUrl(url: final url)) { + expect(url, Uri.http(host, '/')); + } + }, + skip: redirectAlwaysAllowed ? 'redirects always allowed' : false, + ); test( - 'loop', + 'too many redirects', () async { - final request = Request('GET', Uri.http(host, '/loop')) + final request = Request('GET', Uri.http(host, '/6')) ..followRedirects = true ..maxRedirects = 5; - expect(client.send(request), throwsA(isA())); + expect( + client.send(request), + throwsA( + isA().having( + (e) => e.message, + 'message', + 'Redirect limit exceeded', + ), + ), + ); }, + skip: redirectAlwaysAllowed ? 'redirects always allowed' : false, ); + + test('loop', () async { + final request = Request('GET', Uri.http(host, '/loop')) + ..followRedirects = true + ..maxRedirects = 5; + expect(client.send(request), throwsA(isA())); + }); }); } diff --git a/pkgs/http_client_conformance_tests/lib/src/request_body_server.dart b/pkgs/http_client_conformance_tests/lib/src/request_body_server.dart index 9b61f4f64a..d2eef1e23c 100644 --- a/pkgs/http_client_conformance_tests/lib/src/request_body_server.dart +++ b/pkgs/http_client_conformance_tests/lib/src/request_body_server.dart @@ -51,6 +51,7 @@ void hybridMain(StreamChannel channel) async { channel.sink.add(server.port); await channel - .stream.first; // Any writes indicates that the server should exit. + .stream + .first; // Any writes indicates that the server should exit. unawaited(server.close()); } diff --git a/pkgs/http_client_conformance_tests/lib/src/request_body_server_web.dart b/pkgs/http_client_conformance_tests/lib/src/request_body_server_web.dart index 6b6ab0076a..40ff693d9f 100644 --- a/pkgs/http_client_conformance_tests/lib/src/request_body_server_web.dart +++ b/pkgs/http_client_conformance_tests/lib/src/request_body_server_web.dart @@ -6,6 +6,9 @@ import 'package:test/test.dart'; export 'server_queue_helpers.dart' show StreamQueueOfNullableObjectExtension; /// Starts the redirect test HTTP server out-of-process. -Future> startServer() async => spawnHybridUri(Uri( +Future> startServer() async => spawnHybridUri( + Uri( scheme: 'package', - path: 'http_client_conformance_tests/src/request_body_server.dart')); + path: 'http_client_conformance_tests/src/request_body_server.dart', + ), +); diff --git a/pkgs/http_client_conformance_tests/lib/src/request_body_streamed_server.dart b/pkgs/http_client_conformance_tests/lib/src/request_body_streamed_server.dart index 428bb781eb..0aa28c75cf 100644 --- a/pkgs/http_client_conformance_tests/lib/src/request_body_streamed_server.dart +++ b/pkgs/http_client_conformance_tests/lib/src/request_body_streamed_server.dart @@ -27,16 +27,17 @@ void hybridMain(StreamChannel channel) async { await const LineSplitter() .bind(const Utf8Decoder().bind(request)) .forEach((s) { - final lastReceived = int.parse(s.trim()); - if (lastReceived == 1000) { - channel.sink.add(lastReceived); - } - }); + final lastReceived = int.parse(s.trim()); + if (lastReceived == 1000) { + channel.sink.add(lastReceived); + } + }); unawaited(request.response.close()); }); channel.sink.add(server.port); await channel - .stream.first; // Any writes indicates that the server should exit. + .stream + .first; // Any writes indicates that the server should exit. unawaited(server.close()); } diff --git a/pkgs/http_client_conformance_tests/lib/src/request_body_streamed_server_web.dart b/pkgs/http_client_conformance_tests/lib/src/request_body_streamed_server_web.dart index 41477eef4d..5d3a54bce6 100644 --- a/pkgs/http_client_conformance_tests/lib/src/request_body_streamed_server_web.dart +++ b/pkgs/http_client_conformance_tests/lib/src/request_body_streamed_server_web.dart @@ -6,7 +6,9 @@ import 'package:test/test.dart'; export 'server_queue_helpers.dart' show StreamQueueOfNullableObjectExtension; /// Starts the redirect test HTTP server out-of-process. -Future> startServer() async => spawnHybridUri(Uri( +Future> startServer() async => spawnHybridUri( + Uri( scheme: 'package', - path: - 'http_client_conformance_tests/src/request_body_streamed_server.dart')); + path: 'http_client_conformance_tests/src/request_body_streamed_server.dart', + ), +); diff --git a/pkgs/http_client_conformance_tests/lib/src/request_body_streamed_tests.dart b/pkgs/http_client_conformance_tests/lib/src/request_body_streamed_tests.dart index ad6b6cefd9..ca2e1237db 100644 --- a/pkgs/http_client_conformance_tests/lib/src/request_body_streamed_tests.dart +++ b/pkgs/http_client_conformance_tests/lib/src/request_body_streamed_tests.dart @@ -19,52 +19,64 @@ import 'request_body_streamed_server_vm.dart' /// If [canStreamRequestBody] is `false` then tests that assume that the /// [Client] supports sending HTTP requests with unbounded body sizes will be /// skipped. -void testRequestBodyStreamed(Client Function() clientFactory, - {bool canStreamRequestBody = true}) { - group('streamed requests', () { - late Client client; - late String host; - late StreamChannel httpServerChannel; - late StreamQueue httpServerQueue; +void testRequestBodyStreamed( + Client Function() clientFactory, { + bool canStreamRequestBody = true, +}) { + group( + 'streamed requests', + () { + late Client client; + late String host; + late StreamChannel httpServerChannel; + late StreamQueue httpServerQueue; - setUp(() async { - client = clientFactory(); - httpServerChannel = await startServer(); - httpServerQueue = StreamQueue(httpServerChannel.stream); - host = 'localhost:${await httpServerQueue.nextAsInt}'; - }); - tearDown(() { - client.close(); - httpServerChannel.sink.add(null); - }); + setUp(() async { + client = clientFactory(); + httpServerChannel = await startServer(); + httpServerQueue = StreamQueue(httpServerChannel.stream); + host = 'localhost:${await httpServerQueue.nextAsInt}'; + }); + tearDown(() { + client.close(); + httpServerChannel.sink.add(null); + }); - test('client.send() with StreamedRequest', () async { - // The client continuously streams data to the server until - // instructed to stop (by setting `clientWriting` to `false`). - // The server sets `serverWriting` to `false` after it has - // already received some data. - // - // This ensures that the client supports streamed data sends. - var lastReceived = 0; + test('client.send() with StreamedRequest', () async { + // The client continuously streams data to the server until + // instructed to stop (by setting `clientWriting` to `false`). + // The server sets `serverWriting` to `false` after it has + // already received some data. + // + // This ensures that the client supports streamed data sends. + var lastReceived = 0; - Stream count() async* { - var i = 0; - unawaited( - httpServerQueue.next.then((value) => lastReceived = value as int)); - do { - yield '${i++}\n'; - // Let the event loop run. - await Future.delayed(const Duration()); - } while (lastReceived < 1000); - } + Stream count() async* { + var i = 0; + unawaited( + httpServerQueue.next.then((value) => lastReceived = value as int), + ); + do { + yield '${i++}\n'; + // Let the event loop run. + await Future.delayed(const Duration()); + } while (lastReceived < 1000); + } - final request = StreamedRequest('POST', Uri.http(host, '')); - const Utf8Encoder().bind(count()).listen(request.sink.add, - onError: request.sink.addError, onDone: request.sink.close); - final response = await client.send(request); - await response.stream.drain(); + final request = StreamedRequest('POST', Uri.http(host, '')); + const Utf8Encoder() + .bind(count()) + .listen( + request.sink.add, + onError: request.sink.addError, + onDone: request.sink.close, + ); + final response = await client.send(request); + await response.stream.drain(); - expect(lastReceived, greaterThanOrEqualTo(1000)); - }); - }, skip: canStreamRequestBody ? false : 'does not stream request bodies'); + expect(lastReceived, greaterThanOrEqualTo(1000)); + }); + }, + skip: canStreamRequestBody ? false : 'does not stream request bodies', + ); } diff --git a/pkgs/http_client_conformance_tests/lib/src/request_body_tests.dart b/pkgs/http_client_conformance_tests/lib/src/request_body_tests.dart index 5cdefd6ee3..cf600a5e21 100644 --- a/pkgs/http_client_conformance_tests/lib/src/request_body_tests.dart +++ b/pkgs/http_client_conformance_tests/lib/src/request_body_tests.dart @@ -67,8 +67,11 @@ void testRequestBody(Client Function() clientFactory) { }); test('client.post() with string body and custom encoding', () async { - await client.post(Uri.http(host, ''), - body: 'Hello', encoding: _Plus2Encoding()); + await client.post( + Uri.http(host, ''), + body: 'Hello', + encoding: _Plus2Encoding(), + ); final serverReceivedContentType = await httpServerQueue.next; final serverReceivedBody = await httpServerQueue.next; @@ -88,8 +91,11 @@ void testRequestBody(Client Function() clientFactory) { }); test('client.post() with map body and encoding', () async { - await client.post(Uri.http(host, ''), - body: {'key': 'value'}, encoding: _Plus2Encoding()); + await client.post( + Uri.http(host, ''), + body: {'key': 'value'}, + encoding: _Plus2Encoding(), + ); final serverReceivedContentType = await httpServerQueue.next; final serverReceivedBody = await httpServerQueue.next; @@ -113,8 +119,11 @@ void testRequestBody(Client Function() clientFactory) { }); test('client.post() with List and content-type', () async { - await client.post(Uri.http(host, ''), - headers: {'Content-Type': 'image/png'}, body: [1, 2, 3, 4, 5]); + await client.post( + Uri.http(host, ''), + headers: {'Content-Type': 'image/png'}, + body: [1, 2, 3, 4, 5], + ); final serverReceivedContentType = await httpServerQueue.next; final serverReceivedBody = await httpServerQueue.next as String; @@ -125,8 +134,11 @@ void testRequestBody(Client Function() clientFactory) { test('client.post() with List with encoding', () async { // Encoding should not affect binary payloads. - await client.post(Uri.http(host, ''), - body: [1, 2, 3, 4, 5], encoding: _Plus2Encoding()); + await client.post( + Uri.http(host, ''), + body: [1, 2, 3, 4, 5], + encoding: _Plus2Encoding(), + ); await httpServerQueue.next; // Content-Type. final serverReceivedBody = await httpServerQueue.next as String; @@ -139,22 +151,26 @@ void testRequestBody(Client Function() clientFactory) { expect(serverReceivedBody.codeUnits, [1, 2, 3, 4, 5]); }); - test('client.post() with List with encoding and content-type', - () async { - // Encoding should not affect the payload but it should affect the - // content-type. + test( + 'client.post() with List with encoding and content-type', + () async { + // Encoding should not affect the payload but it should affect the + // content-type. - await client.post(Uri.http(host, ''), + await client.post( + Uri.http(host, ''), headers: {'Content-Type': 'image/png'}, body: [1, 2, 3, 4, 5], - encoding: _Plus2Encoding()); + encoding: _Plus2Encoding(), + ); - final serverReceivedContentType = await httpServerQueue.next; - final serverReceivedBody = await httpServerQueue.next as String; + final serverReceivedContentType = await httpServerQueue.next; + final serverReceivedBody = await httpServerQueue.next as String; - expect(serverReceivedContentType, ['image/png']); - expect(serverReceivedBody.codeUnits, [1, 2, 3, 4, 5]); - }); + expect(serverReceivedContentType, ['image/png']); + expect(serverReceivedBody.codeUnits, [1, 2, 3, 4, 5]); + }, + ); test('client.send() with stream containing empty lists', () async { final request = StreamedRequest('POST', Uri.http(host, '')); @@ -201,8 +217,11 @@ void testRequestBody(Client Function() clientFactory) { final request = StreamedRequest('POST', Uri.http(host, '')); request.headers['Content-Type'] = 'image/png'; - stream().listen(request.sink.add, - onError: request.sink.addError, onDone: request.sink.close); + stream().listen( + request.sink.add, + onError: request.sink.addError, + onDone: request.sink.close, + ); final response = await client.send(request); await response.stream.drain(); @@ -223,11 +242,16 @@ void testRequestBody(Client Function() clientFactory) { final request = StreamedRequest('POST', Uri.http(host, '')); request.headers['Content-Type'] = 'image/png'; - stream().listen(request.sink.add, - onError: request.sink.addError, onDone: request.sink.close); + stream().listen( + request.sink.add, + onError: request.sink.addError, + onDone: request.sink.close, + ); - await expectLater(client.send(request), - throwsA(anyOf(isA(), isA()))); + await expectLater( + client.send(request), + throwsA(anyOf(isA(), isA())), + ); }); test('client.send() GET with empty stream', () async { @@ -310,24 +334,28 @@ void testRequestBody(Client Function() clientFactory) { expect(serverReceivedBody, body); }); - test('client.send() GET with non-empty stream', () async { - final request = StreamedRequest('GET', Uri.http(host, '')); - request.headers['Content-Type'] = 'image/png'; - request.sink.add('Hello World!'.codeUnits); - // ignore: unawaited_futures - request.sink.close(); + test( + 'client.send() GET with non-empty stream', + () async { + final request = StreamedRequest('GET', Uri.http(host, '')); + request.headers['Content-Type'] = 'image/png'; + request.sink.add('Hello World!'.codeUnits); + // ignore: unawaited_futures + request.sink.close(); - final response = await client.send(request); - await response.stream.drain(); - expect(response.statusCode, 200); + final response = await client.send(request); + await response.stream.drain(); + expect(response.statusCode, 200); - final serverReceivedContentType = await httpServerQueue.next; - final serverReceivedBody = await httpServerQueue.next as String; + final serverReceivedContentType = await httpServerQueue.next; + final serverReceivedBody = await httpServerQueue.next as String; - expect(serverReceivedContentType, ['image/png']); - expect(serverReceivedBody, 'Hello World!'); - // using io passes, on web body is not transmitted, on cupertino_http - // exception. - }, skip: 'unclear semantics for GET requests with body'); + expect(serverReceivedContentType, ['image/png']); + expect(serverReceivedBody, 'Hello World!'); + // using io passes, on web body is not transmitted, on cupertino_http + // exception. + }, + skip: 'unclear semantics for GET requests with body', + ); }); } diff --git a/pkgs/http_client_conformance_tests/lib/src/request_cookies_server.dart b/pkgs/http_client_conformance_tests/lib/src/request_cookies_server.dart index 512fb5b1b4..ce7263a73f 100644 --- a/pkgs/http_client_conformance_tests/lib/src/request_cookies_server.dart +++ b/pkgs/http_client_conformance_tests/lib/src/request_cookies_server.dart @@ -51,6 +51,7 @@ void hybridMain(StreamChannel channel) async { channel.sink.add(server.port); await channel - .stream.first; // Any writes indicates that the server should exit. + .stream + .first; // Any writes indicates that the server should exit. unawaited(server.close()); } diff --git a/pkgs/http_client_conformance_tests/lib/src/request_cookies_server_web.dart b/pkgs/http_client_conformance_tests/lib/src/request_cookies_server_web.dart index 31d961b047..c0a0017dce 100644 --- a/pkgs/http_client_conformance_tests/lib/src/request_cookies_server_web.dart +++ b/pkgs/http_client_conformance_tests/lib/src/request_cookies_server_web.dart @@ -6,6 +6,9 @@ import 'package:test/test.dart'; export 'server_queue_helpers.dart' show StreamQueueOfNullableObjectExtension; /// Starts the redirect test HTTP server out-of-process. -Future> startServer() async => spawnHybridUri(Uri( +Future> startServer() async => spawnHybridUri( + Uri( scheme: 'package', - path: 'http_client_conformance_tests/src/request_cookies_server.dart')); + path: 'http_client_conformance_tests/src/request_cookies_server.dart', + ), +); diff --git a/pkgs/http_client_conformance_tests/lib/src/request_cookies_test.dart b/pkgs/http_client_conformance_tests/lib/src/request_cookies_test.dart index 756bbcfd75..af2d5d63c0 100644 --- a/pkgs/http_client_conformance_tests/lib/src/request_cookies_test.dart +++ b/pkgs/http_client_conformance_tests/lib/src/request_cookies_test.dart @@ -17,8 +17,10 @@ final headerSplitter = RegExp(':[ \t]+'); /// /// If [canSendCookieHeaders] is `false` then tests that require that "cookie" /// headers be sent by the client will not be run. -void testRequestCookies(Client Function() clientFactory, - {bool canSendCookieHeaders = false}) { +void testRequestCookies( + Client Function() clientFactory, { + bool canSendCookieHeaders = false, +}) { group('request cookies', () { late Client client; late final String host; @@ -34,26 +36,38 @@ void testRequestCookies(Client Function() clientFactory, tearDown(() => client.close()); tearDownAll(() => httpServerChannel.sink.add(null)); - test('one cookie', () async { - await client - .get(Uri.http(host, ''), headers: {'cookie': 'SID=298zf09hf012fh2'}); - - final cookies = (await httpServerQueue.next as List).cast(); - expect(cookies, hasLength(1)); - final [header, value] = cookies[0].split(headerSplitter); - expect(header.toLowerCase(), 'cookie'); - expect(value, 'SID=298zf09hf012fh2'); - }, skip: canSendCookieHeaders ? false : 'cannot send cookie headers'); - - test('multiple cookies semicolon separated', () async { - await client.get(Uri.http(host, ''), - headers: {'cookie': 'SID=298zf09hf012fh2; lang=en-US'}); - - final cookies = (await httpServerQueue.next as List).cast(); - expect(cookies, hasLength(1)); - final [header, value] = cookies[0].split(headerSplitter); - expect(header.toLowerCase(), 'cookie'); - expect(value, 'SID=298zf09hf012fh2; lang=en-US'); - }, skip: canSendCookieHeaders ? false : 'cannot send cookie headers'); + test( + 'one cookie', + () async { + await client.get( + Uri.http(host, ''), + headers: {'cookie': 'SID=298zf09hf012fh2'}, + ); + + final cookies = (await httpServerQueue.next as List).cast(); + expect(cookies, hasLength(1)); + final [header, value] = cookies[0].split(headerSplitter); + expect(header.toLowerCase(), 'cookie'); + expect(value, 'SID=298zf09hf012fh2'); + }, + skip: canSendCookieHeaders ? false : 'cannot send cookie headers', + ); + + test( + 'multiple cookies semicolon separated', + () async { + await client.get( + Uri.http(host, ''), + headers: {'cookie': 'SID=298zf09hf012fh2; lang=en-US'}, + ); + + final cookies = (await httpServerQueue.next as List).cast(); + expect(cookies, hasLength(1)); + final [header, value] = cookies[0].split(headerSplitter); + expect(header.toLowerCase(), 'cookie'); + expect(value, 'SID=298zf09hf012fh2; lang=en-US'); + }, + skip: canSendCookieHeaders ? false : 'cannot send cookie headers', + ); }); } diff --git a/pkgs/http_client_conformance_tests/lib/src/request_headers_server.dart b/pkgs/http_client_conformance_tests/lib/src/request_headers_server.dart index ad3fdfe0cc..05fedc42db 100644 --- a/pkgs/http_client_conformance_tests/lib/src/request_headers_server.dart +++ b/pkgs/http_client_conformance_tests/lib/src/request_headers_server.dart @@ -40,6 +40,7 @@ void hybridMain(StreamChannel channel) async { channel.sink.add(server.port); await channel - .stream.first; // Any writes indicates that the server should exit. + .stream + .first; // Any writes indicates that the server should exit. unawaited(server.close()); } diff --git a/pkgs/http_client_conformance_tests/lib/src/request_headers_server_web.dart b/pkgs/http_client_conformance_tests/lib/src/request_headers_server_web.dart index a15b69b75e..f0f2f8bf6b 100644 --- a/pkgs/http_client_conformance_tests/lib/src/request_headers_server_web.dart +++ b/pkgs/http_client_conformance_tests/lib/src/request_headers_server_web.dart @@ -6,6 +6,9 @@ import 'package:test/test.dart'; export 'server_queue_helpers.dart' show StreamQueueOfNullableObjectExtension; /// Starts the redirect test HTTP server out-of-process. -Future> startServer() async => spawnHybridUri(Uri( +Future> startServer() async => spawnHybridUri( + Uri( scheme: 'package', - path: 'http_client_conformance_tests/src/request_headers_server.dart')); + path: 'http_client_conformance_tests/src/request_headers_server.dart', + ), +); diff --git a/pkgs/http_client_conformance_tests/lib/src/request_headers_tests.dart b/pkgs/http_client_conformance_tests/lib/src/request_headers_tests.dart index c49ca71910..e3ad7da9e5 100644 --- a/pkgs/http_client_conformance_tests/lib/src/request_headers_tests.dart +++ b/pkgs/http_client_conformance_tests/lib/src/request_headers_tests.dart @@ -44,8 +44,10 @@ void testRequestHeaders(Client Function() clientFactory) async { }); test('test headers different only in case', () async { - await client - .get(Uri.http(host, ''), headers: {'foo': 'bar', 'Foo': 'Bar'}); + await client.get( + Uri.http(host, ''), + headers: {'foo': 'bar', 'Foo': 'Bar'}, + ); final headers = await httpServerQueue.next as Map; // ignore: avoid_dynamic_calls @@ -55,8 +57,10 @@ void testRequestHeaders(Client Function() clientFactory) async { test('multiple headers', () async { // The `http.Client` API does not offer a way of sending the name field // more than once. - await client - .get(Uri.http(host, ''), headers: {'fruit': 'apple', 'color': 'red'}); + await client.get( + Uri.http(host, ''), + headers: {'fruit': 'apple', 'color': 'red'}, + ); final headers = await httpServerQueue.next as Map; expect(headers['fruit'], ['apple']); diff --git a/pkgs/http_client_conformance_tests/lib/src/request_methods_server.dart b/pkgs/http_client_conformance_tests/lib/src/request_methods_server.dart index bf05ec08e2..6cd6c1763f 100644 --- a/pkgs/http_client_conformance_tests/lib/src/request_methods_server.dart +++ b/pkgs/http_client_conformance_tests/lib/src/request_methods_server.dart @@ -36,6 +36,7 @@ void hybridMain(StreamChannel channel) async { channel.sink.add(server.port); await channel - .stream.first; // Any writes indicates that the server should exit. + .stream + .first; // Any writes indicates that the server should exit. unawaited(server.close()); } diff --git a/pkgs/http_client_conformance_tests/lib/src/request_methods_server_web.dart b/pkgs/http_client_conformance_tests/lib/src/request_methods_server_web.dart index f9c924e217..7a587d4254 100644 --- a/pkgs/http_client_conformance_tests/lib/src/request_methods_server_web.dart +++ b/pkgs/http_client_conformance_tests/lib/src/request_methods_server_web.dart @@ -6,6 +6,9 @@ import 'package:test/test.dart'; export 'server_queue_helpers.dart' show StreamQueueOfNullableObjectExtension; /// Starts the redirect test HTTP server out-of-process. -Future> startServer() async => spawnHybridUri(Uri( +Future> startServer() async => spawnHybridUri( + Uri( scheme: 'package', - path: 'http_client_conformance_tests/src/request_methods_server.dart')); + path: 'http_client_conformance_tests/src/request_methods_server.dart', + ), +); diff --git a/pkgs/http_client_conformance_tests/lib/src/request_methods_tests.dart b/pkgs/http_client_conformance_tests/lib/src/request_methods_tests.dart index 1a97f6eb21..47fac58ea4 100644 --- a/pkgs/http_client_conformance_tests/lib/src/request_methods_tests.dart +++ b/pkgs/http_client_conformance_tests/lib/src/request_methods_tests.dart @@ -15,8 +15,10 @@ import 'request_methods_server_vm.dart' /// /// If [preservesMethodCase] is `false` then tests that assume that the /// [Client] preserves custom request method casing will be skipped. -void testRequestMethods(Client Function() clientFactory, - {bool preservesMethodCase = true}) async { +void testRequestMethods( + Client Function() clientFactory, { + bool preservesMethodCase = true, +}) async { group('request methods', () { late Client client; late final String host; @@ -33,27 +35,26 @@ void testRequestMethods(Client Function() clientFactory, tearDownAll(() => httpServerChannel.sink.add(null)); test('custom method - not case preserving', () async { - final response = await client.send(Request( - 'CuStOm', - Uri.http(host, ''), - )); + final response = await client.send(Request('CuStOm', Uri.http(host, ''))); await response.stream.drain(); final method = await httpServerQueue.next as String; expect('CUSTOM', method.toUpperCase()); }); - test('custom method case preserving', () async { - final response = await client.send(Request( - 'CuStOm', - Uri.http(host, ''), - )); - await response.stream.drain(); - final method = await httpServerQueue.next as String; - expect('CuStOm', method); - }, - skip: preservesMethodCase - ? false - : 'does not preserve HTTP request method case'); + test( + 'custom method case preserving', + () async { + final response = await client.send( + Request('CuStOm', Uri.http(host, '')), + ); + await response.stream.drain(); + final method = await httpServerQueue.next as String; + expect('CuStOm', method); + }, + skip: preservesMethodCase + ? false + : 'does not preserve HTTP request method case', + ); test('delete', () async { await client.delete(Uri.http(host, '')); diff --git a/pkgs/http_client_conformance_tests/lib/src/response_body_server.dart b/pkgs/http_client_conformance_tests/lib/src/response_body_server.dart index 396c9c93d5..75b08395c9 100644 --- a/pkgs/http_client_conformance_tests/lib/src/response_body_server.dart +++ b/pkgs/http_client_conformance_tests/lib/src/response_body_server.dart @@ -31,6 +31,7 @@ void hybridMain(StreamChannel channel) async { channel.sink.add(server.port); await channel - .stream.first; // Any writes indicates that the server should exit. + .stream + .first; // Any writes indicates that the server should exit. unawaited(server.close()); } diff --git a/pkgs/http_client_conformance_tests/lib/src/response_body_server_web.dart b/pkgs/http_client_conformance_tests/lib/src/response_body_server_web.dart index 4d23a48a50..5b0221aea6 100644 --- a/pkgs/http_client_conformance_tests/lib/src/response_body_server_web.dart +++ b/pkgs/http_client_conformance_tests/lib/src/response_body_server_web.dart @@ -6,6 +6,9 @@ import 'package:test/test.dart'; export 'server_queue_helpers.dart' show StreamQueueOfNullableObjectExtension; /// Starts the redirect test HTTP server out-of-process. -Future> startServer() async => spawnHybridUri(Uri( +Future> startServer() async => spawnHybridUri( + Uri( scheme: 'package', - path: 'http_client_conformance_tests/src/response_body_server.dart')); + path: 'http_client_conformance_tests/src/response_body_server.dart', + ), +); diff --git a/pkgs/http_client_conformance_tests/lib/src/response_body_streamed_server_web.dart b/pkgs/http_client_conformance_tests/lib/src/response_body_streamed_server_web.dart index e04ebd622b..30894a485c 100644 --- a/pkgs/http_client_conformance_tests/lib/src/response_body_streamed_server_web.dart +++ b/pkgs/http_client_conformance_tests/lib/src/response_body_streamed_server_web.dart @@ -6,7 +6,10 @@ import 'package:test/test.dart'; export 'server_queue_helpers.dart' show StreamQueueOfNullableObjectExtension; /// Starts the redirect test HTTP server out-of-process. -Future> startServer() async => spawnHybridUri(Uri( +Future> startServer() async => spawnHybridUri( + Uri( scheme: 'package', path: - 'http_client_conformance_tests/src/response_body_streamed_server.dart')); + 'http_client_conformance_tests/src/response_body_streamed_server.dart', + ), +); diff --git a/pkgs/http_client_conformance_tests/lib/src/response_body_streamed_test.dart b/pkgs/http_client_conformance_tests/lib/src/response_body_streamed_test.dart index cf1715db92..9c997ddff8 100644 --- a/pkgs/http_client_conformance_tests/lib/src/response_body_streamed_test.dart +++ b/pkgs/http_client_conformance_tests/lib/src/response_body_streamed_test.dart @@ -19,238 +19,254 @@ import 'response_body_streamed_server_vm.dart' /// If [canStreamResponseBody] is `false` then tests that assume that the /// [Client] supports receiving HTTP responses with unbounded body sizes will /// be skipped -void testResponseBodyStreamed(Client Function() clientFactory, - {bool canStreamResponseBody = true}) { - group('streamed response body', () { - late Client client; - late String host; - late StreamChannel httpServerChannel; - late StreamQueue httpServerQueue; - - setUp(() async { - client = clientFactory(); - httpServerChannel = await startServer(); - httpServerQueue = StreamQueue(httpServerChannel.stream); - host = 'localhost:${await httpServerQueue.nextAsInt}'; - }); - tearDown(() { - client.close(); - httpServerChannel.sink.add(null); - }); - - test('large response streamed without content length', () async { - // The server continuously streams data to the client until - // instructed to stop. - // - // This ensures that the client supports streamed responses. - - final request = Request('GET', Uri.http(host, '')); - final response = await client.send(request); - expect(response.contentLength, null); - var lastReceived = 0; - await const LineSplitter() - .bind(const Utf8Decoder().bind(response.stream)) - .forEach((s) { - lastReceived = int.parse(s.trim()); - if (lastReceived == 1000) { - httpServerChannel.sink.add(true); - } +void testResponseBodyStreamed( + Client Function() clientFactory, { + bool canStreamResponseBody = true, +}) { + group( + 'streamed response body', + () { + late Client client; + late String host; + late StreamChannel httpServerChannel; + late StreamQueue httpServerQueue; + + setUp(() async { + client = clientFactory(); + httpServerChannel = await startServer(); + httpServerQueue = StreamQueue(httpServerChannel.stream); + host = 'localhost:${await httpServerQueue.nextAsInt}'; }); - expect(response.headers['content-type'], 'text/plain'); - expect(lastReceived, greaterThanOrEqualTo(1000)); - expect(response.isRedirect, isFalse); - expect(response.reasonPhrase, 'OK'); - expect(response.request!.method, 'GET'); - expect(response.statusCode, 200); - }); - - test('pausing response stream after events', () async { - final response = await client.send(Request('GET', Uri.http(host, ''))); - expect(response.reasonPhrase, 'OK'); - expect(response.statusCode, 200); - - // The server responds with a streamed response of lines containing - // incrementing integers. Verify that pausing the stream after each one - // does not cause any missed lines. - final stream = response.stream - .transform(const Utf8Decoder()) - .transform(const LineSplitter()) - .map(int.parse); - var expectedLine = 0; - final cancelCompleter = Completer(); - late StreamSubscription subscription; - - subscription = stream.listen((line) async { - expect(line, expectedLine); - expectedLine++; - - if (expectedLine == 10) { - subscription.pause(); - Future.delayed( - const Duration(seconds: 1), () => subscription.resume()); - } - - if (expectedLine == 100) { - cancelCompleter.complete(subscription.cancel()); - } - await pumpEventQueue(); + tearDown(() { + client.close(); + httpServerChannel.sink.add(null); }); - await cancelCompleter.future; - expect(expectedLine, 100); - }); - - test('pausing response stream asynchronously', () async { - final response = await client.send(Request('GET', Uri.http(host, ''))); - expect(response.reasonPhrase, 'OK'); - expect(response.statusCode, 200); - - final originalSubscription = response.stream - .transform(const Utf8Decoder()) - .transform(const LineSplitter()) - .map(int.parse) - .listen(null); - var expectedLine = 0; - await for (final line in SubscriptionStream(originalSubscription)) { - expect(line, expectedLine); - expectedLine++; - if (expectedLine == 100) { - break; - } + test('large response streamed without content length', () async { + // The server continuously streams data to the client until + // instructed to stop. + // + // This ensures that the client supports streamed responses. + + final request = Request('GET', Uri.http(host, '')); + final response = await client.send(request); + expect(response.contentLength, null); + var lastReceived = 0; + await const LineSplitter() + .bind(const Utf8Decoder().bind(response.stream)) + .forEach((s) { + lastReceived = int.parse(s.trim()); + if (lastReceived == 1000) { + httpServerChannel.sink.add(true); + } + }); + expect(response.headers['content-type'], 'text/plain'); + expect(lastReceived, greaterThanOrEqualTo(1000)); + expect(response.isRedirect, isFalse); + expect(response.reasonPhrase, 'OK'); + expect(response.request!.method, 'GET'); + expect(response.statusCode, 200); + }); - // Instead of pausing the subscription in response to an event, pause it - // after the event has already been delivered. - Timer.run(() { - originalSubscription.pause(Future(pumpEventQueue)); - }); - } - }); - - test('cancel paused stream', () async { - final response = await client.send(Request('GET', Uri.http(host, ''))); - expect(response.reasonPhrase, 'OK'); - expect(response.statusCode, 200); - - final completer = Completer(); - late StreamSubscription subscription; - subscription = response.stream - .transform(const Utf8Decoder()) - .transform(const LineSplitter()) - .listen((line) async { - subscription.pause(); - - completer.complete(Future(() async { + test('pausing response stream after events', () async { + final response = await client.send(Request('GET', Uri.http(host, ''))); + expect(response.reasonPhrase, 'OK'); + expect(response.statusCode, 200); + + // The server responds with a streamed response of lines containing + // incrementing integers. Verify that pausing the stream after each one + // does not cause any missed lines. + final stream = response.stream + .transform(const Utf8Decoder()) + .transform(const LineSplitter()) + .map(int.parse); + var expectedLine = 0; + final cancelCompleter = Completer(); + late StreamSubscription subscription; + + subscription = stream.listen((line) async { + expect(line, expectedLine); + expectedLine++; + + if (expectedLine == 10) { + subscription.pause(); + Future.delayed( + const Duration(seconds: 1), + () => subscription.resume(), + ); + } + + if (expectedLine == 100) { + cancelCompleter.complete(subscription.cancel()); + } await pumpEventQueue(); - await subscription.cancel(); - })); + }); + + await cancelCompleter.future; + expect(expectedLine, 100); }); - await completer.future; - }); - - test('cancel paused stream via abortable request', () async { - final abortTrigger = Completer(); - final response = await client.send(AbortableRequest( - 'GET', Uri.http(host, ''), - abortTrigger: abortTrigger.future)); - expect(response.reasonPhrase, 'OK'); - expect(response.statusCode, 200); - - late StreamSubscription subscription; - subscription = response.stream - .transform(const Utf8Decoder()) - .transform(const LineSplitter()) - .listen((line) { - if (!abortTrigger.isCompleted) { - abortTrigger.complete(); + test('pausing response stream asynchronously', () async { + final response = await client.send(Request('GET', Uri.http(host, ''))); + expect(response.reasonPhrase, 'OK'); + expect(response.statusCode, 200); + + final originalSubscription = response.stream + .transform(const Utf8Decoder()) + .transform(const LineSplitter()) + .map(int.parse) + .listen(null); + var expectedLine = 0; + await for (final line in SubscriptionStream(originalSubscription)) { + expect(line, expectedLine); + expectedLine++; + if (expectedLine == 100) { + break; + } + + // Instead of pausing the subscription in response to an event, pause it + // after the event has already been delivered. + Timer.run(() { + originalSubscription.pause(Future(pumpEventQueue)); + }); } }); - final aborted = expectLater(subscription.asFuture(), - throwsA(isA())); - await abortTrigger.future; - - // We need to resume the subscription after the response has been - // cancelled to record that error event. - subscription.resume(); - await aborted; - }); - - test('cancel streamed response', () async { - final request = Request('GET', Uri.http(host, '')); - final response = await client.send(request); - final cancelled = Completer(); - expect(response.reasonPhrase, 'OK'); - expect(response.statusCode, 200); - late StreamSubscription subscription; - subscription = const LineSplitter() - .bind(const Utf8Decoder().bind(response.stream)) - .listen((s) async { - final lastReceived = int.parse(s.trim()); - if (lastReceived == 1000) { - unawaited(subscription.cancel()); - cancelled.complete(); - } + test('cancel paused stream', () async { + final response = await client.send(Request('GET', Uri.http(host, ''))); + expect(response.reasonPhrase, 'OK'); + expect(response.statusCode, 200); + + final completer = Completer(); + late StreamSubscription subscription; + subscription = response.stream + .transform(const Utf8Decoder()) + .transform(const LineSplitter()) + .listen((line) async { + subscription.pause(); + + completer.complete( + Future(() async { + await pumpEventQueue(); + await subscription.cancel(); + }), + ); + }); + + await completer.future; + }); + + test('cancel paused stream via abortable request', () async { + final abortTrigger = Completer(); + final response = await client.send( + AbortableRequest( + 'GET', + Uri.http(host, ''), + abortTrigger: abortTrigger.future, + ), + ); + expect(response.reasonPhrase, 'OK'); + expect(response.statusCode, 200); + + late StreamSubscription subscription; + subscription = response.stream + .transform(const Utf8Decoder()) + .transform(const LineSplitter()) + .listen((line) { + if (!abortTrigger.isCompleted) { + abortTrigger.complete(); + } + }); + + final aborted = expectLater( + subscription.asFuture(), + throwsA(isA()), + ); + await abortTrigger.future; + + // We need to resume the subscription after the response has been + // cancelled to record that error event. + subscription.resume(); + await aborted; }); - await cancelled.future; - }); - - test('cancelling stream subscription after chunk', () async { - // Request a 10s delay between subsequent lines. - const delayMillis = 10000; - final request = Request('GET', Uri.http(host, '$delayMillis')); - final response = await client.send(request); - expect(response.reasonPhrase, 'OK'); - expect(response.statusCode, 200); - - final cancelled = Completer(); - var stopwatch = Stopwatch(); - final subscription = response.stream - .transform(const Utf8Decoder()) - .transform(const LineSplitter()) - .listen(null); - subscription.onData((line) { - stopwatch.start(); - cancelled.complete(subscription.cancel()); - expect(line, '0'); + + test('cancel streamed response', () async { + final request = Request('GET', Uri.http(host, '')); + final response = await client.send(request); + final cancelled = Completer(); + expect(response.reasonPhrase, 'OK'); + expect(response.statusCode, 200); + late StreamSubscription subscription; + subscription = const LineSplitter() + .bind(const Utf8Decoder().bind(response.stream)) + .listen((s) async { + final lastReceived = int.parse(s.trim()); + if (lastReceived == 1000) { + unawaited(subscription.cancel()); + cancelled.complete(); + } + }); + await cancelled.future; }); - await cancelled.future; - stopwatch.stop(); - - // Receiving the first line and cancelling the stream should not wait for - // the second line, which is sent much later. - expect(stopwatch.elapsed.inMilliseconds, lessThan(delayMillis)); - }); - - test('cancelling stream subscription after chunk with delay', () async { - // Request a 10s delay between subsequent lines. - const delayMillis = 10000; - final request = Request('GET', Uri.http(host, '$delayMillis')); - final response = await client.send(request); - expect(response.reasonPhrase, 'OK'); - expect(response.statusCode, 200); - - var stopwatch = Stopwatch()..start(); - final done = Completer(); - late StreamSubscription sub; - sub = response.stream - .transform(utf8.decoder) - .transform(const LineSplitter()) - .listen((line) { - // Don't cancel in direct response to event, we want to test cancelling - // while the client is actively waiting for data. - Timer.run(() { + test('cancelling stream subscription after chunk', () async { + // Request a 10s delay between subsequent lines. + const delayMillis = 10000; + final request = Request('GET', Uri.http(host, '$delayMillis')); + final response = await client.send(request); + expect(response.reasonPhrase, 'OK'); + expect(response.statusCode, 200); + + final cancelled = Completer(); + var stopwatch = Stopwatch(); + final subscription = response.stream + .transform(const Utf8Decoder()) + .transform(const LineSplitter()) + .listen(null); + subscription.onData((line) { stopwatch.start(); - done.complete(sub.cancel()); + cancelled.complete(subscription.cancel()); + expect(line, '0'); }); + + await cancelled.future; + stopwatch.stop(); + + // Receiving the first line and cancelling the stream should not wait for + // the second line, which is sent much later. + expect(stopwatch.elapsed.inMilliseconds, lessThan(delayMillis)); }); - await done.future; - stopwatch.stop(); - // Receiving the first line and cancelling the stream should not wait for - // the second line, which is sent much later. - expect(stopwatch.elapsed.inMilliseconds, lessThan(delayMillis)); - }); - }, skip: canStreamResponseBody ? false : 'does not stream response bodies'); + test('cancelling stream subscription after chunk with delay', () async { + // Request a 10s delay between subsequent lines. + const delayMillis = 10000; + final request = Request('GET', Uri.http(host, '$delayMillis')); + final response = await client.send(request); + expect(response.reasonPhrase, 'OK'); + expect(response.statusCode, 200); + + var stopwatch = Stopwatch()..start(); + final done = Completer(); + late StreamSubscription sub; + sub = response.stream + .transform(utf8.decoder) + .transform(const LineSplitter()) + .listen((line) { + // Don't cancel in direct response to event, we want to test cancelling + // while the client is actively waiting for data. + Timer.run(() { + stopwatch.start(); + done.complete(sub.cancel()); + }); + }); + + await done.future; + stopwatch.stop(); + // Receiving the first line and cancelling the stream should not wait for + // the second line, which is sent much later. + expect(stopwatch.elapsed.inMilliseconds, lessThan(delayMillis)); + }); + }, + skip: canStreamResponseBody ? false : 'does not stream response bodies', + ); } diff --git a/pkgs/http_client_conformance_tests/lib/src/response_body_tests.dart b/pkgs/http_client_conformance_tests/lib/src/response_body_tests.dart index d0e75db72a..0119737c0b 100644 --- a/pkgs/http_client_conformance_tests/lib/src/response_body_tests.dart +++ b/pkgs/http_client_conformance_tests/lib/src/response_body_tests.dart @@ -15,8 +15,10 @@ import 'response_body_server_vm.dart' /// If [canStreamResponseBody] is `false` then tests that assume that the /// [Client] supports receiving HTTP responses with unbounded body sizes will /// be skipped -void testResponseBody(Client Function() clientFactory, - {bool canStreamResponseBody = true}) { +void testResponseBody( + Client Function() clientFactory, { + bool canStreamResponseBody = true, +}) { group('response body', () { late Client client; late final String host; diff --git a/pkgs/http_client_conformance_tests/lib/src/response_cookies_server_web.dart b/pkgs/http_client_conformance_tests/lib/src/response_cookies_server_web.dart index cb8e384ed4..e28c3e640d 100644 --- a/pkgs/http_client_conformance_tests/lib/src/response_cookies_server_web.dart +++ b/pkgs/http_client_conformance_tests/lib/src/response_cookies_server_web.dart @@ -6,6 +6,9 @@ import 'package:test/test.dart'; export 'server_queue_helpers.dart' show StreamQueueOfNullableObjectExtension; /// Starts the redirect test HTTP server out-of-process. -Future> startServer() async => spawnHybridUri(Uri( +Future> startServer() async => spawnHybridUri( + Uri( scheme: 'package', - path: 'http_client_conformance_tests/src/response_cookies_server.dart')); + path: 'http_client_conformance_tests/src/response_cookies_server.dart', + ), +); diff --git a/pkgs/http_client_conformance_tests/lib/src/response_cookies_test.dart b/pkgs/http_client_conformance_tests/lib/src/response_cookies_test.dart index 3b7a64c212..69037ab9ee 100644 --- a/pkgs/http_client_conformance_tests/lib/src/response_cookies_test.dart +++ b/pkgs/http_client_conformance_tests/lib/src/response_cookies_test.dart @@ -14,8 +14,10 @@ import 'response_cookies_server_vm.dart' /// /// If [canReceiveSetCookieHeaders] is `false` then tests that require that /// "set-cookie" headers be received by the client will not be run. -void testResponseCookies(Client Function() clientFactory, - {required bool canReceiveSetCookieHeaders}) async { +void testResponseCookies( + Client Function() clientFactory, { + required bool canReceiveSetCookieHeaders, +}) async { group('response cookies', () { late Client client; late String host; @@ -30,66 +32,89 @@ void testResponseCookies(Client Function() clientFactory, }); tearDown(() => client.close()); - test('single session cookie', () async { - httpServerChannel.sink.add(['Set-Cookie: SID=1231AB3']); - final response = await client.get(Uri.http(host, '')); + test( + 'single session cookie', + () async { + httpServerChannel.sink.add(['Set-Cookie: SID=1231AB3']); + final response = await client.get(Uri.http(host, '')); - expect(response.headers['set-cookie'], 'SID=1231AB3'); - }, - skip: canReceiveSetCookieHeaders - ? false - : 'cannot receive set-cookie headers'); + expect(response.headers['set-cookie'], 'SID=1231AB3'); + }, + skip: canReceiveSetCookieHeaders + ? false + : 'cannot receive set-cookie headers', + ); - test('multiple session cookies', () async { - // RFC-2616 4.2 says: - // "The field value MAY be preceded by any amount of LWS, though a single - // SP is preferred." and - // "The field-content does not include any leading or trailing LWS ..." - httpServerChannel.sink - .add(['Set-Cookie: SID=1231AB3', 'Set-Cookie: lang=en_US']); - final response = await client.get(Uri.http(host, '')); + test( + 'multiple session cookies', + () async { + // RFC-2616 4.2 says: + // "The field value MAY be preceded by any amount of LWS, though a single + // SP is preferred." and + // "The field-content does not include any leading or trailing LWS ..." + httpServerChannel.sink.add([ + 'Set-Cookie: SID=1231AB3', + 'Set-Cookie: lang=en_US', + ]); + final response = await client.get(Uri.http(host, '')); - expect( + expect( response.headers['set-cookie'], - matches(r'SID=1231AB3' - r'[ \t]*,[ \t]*' - r'lang=en_US')); - }, - skip: canReceiveSetCookieHeaders - ? false - : 'cannot receive set-cookie headers'); + matches( + r'SID=1231AB3' + r'[ \t]*,[ \t]*' + r'lang=en_US', + ), + ); + }, + skip: canReceiveSetCookieHeaders + ? false + : 'cannot receive set-cookie headers', + ); - test('permanent cookie with expires', () async { - httpServerChannel.sink - .add(['Set-Cookie: id=a3fWa; Expires=Wed, 10 Jan 2024 07:28:00 GMT']); - final response = await client.get(Uri.http(host, '')); + test( + 'permanent cookie with expires', + () async { + httpServerChannel.sink.add([ + 'Set-Cookie: id=a3fWa; Expires=Wed, 10 Jan 2024 07:28:00 GMT', + ]); + final response = await client.get(Uri.http(host, '')); - expect(response.headers['set-cookie'], - 'id=a3fWa; Expires=Wed, 10 Jan 2024 07:28:00 GMT'); - }, - skip: canReceiveSetCookieHeaders - ? false - : 'cannot receive set-cookie headers'); + expect( + response.headers['set-cookie'], + 'id=a3fWa; Expires=Wed, 10 Jan 2024 07:28:00 GMT', + ); + }, + skip: canReceiveSetCookieHeaders + ? false + : 'cannot receive set-cookie headers', + ); - test('multiple permanent cookies with expires', () async { - // RFC-2616 4.2 says: - // "The field value MAY be preceded by any amount of LWS, though a single - // SP is preferred." and - // "The field-content does not include any leading or trailing LWS ..." - httpServerChannel.sink.add([ - 'Set-Cookie: id=a3fWa; Expires=Wed, 10 Jan 2024 07:28:00 GMT', - 'Set-Cookie: id=2fasd; Expires=Wed, 21 Oct 2025 07:28:00 GMT' - ]); - final response = await client.get(Uri.http(host, '')); + test( + 'multiple permanent cookies with expires', + () async { + // RFC-2616 4.2 says: + // "The field value MAY be preceded by any amount of LWS, though a single + // SP is preferred." and + // "The field-content does not include any leading or trailing LWS ..." + httpServerChannel.sink.add([ + 'Set-Cookie: id=a3fWa; Expires=Wed, 10 Jan 2024 07:28:00 GMT', + 'Set-Cookie: id=2fasd; Expires=Wed, 21 Oct 2025 07:28:00 GMT', + ]); + final response = await client.get(Uri.http(host, '')); - expect( + expect( response.headers['set-cookie'], - matches(r'id=a3fWa; Expires=Wed, 10 Jan 2024 07:28:00 GMT' - r'[ \t]*,[ \t]*' - r'id=2fasd; Expires=Wed, 21 Oct 2025 07:28:00 GMT')); - }, - skip: canReceiveSetCookieHeaders - ? false - : 'cannot receive set-cookie headers'); + matches( + r'id=a3fWa; Expires=Wed, 10 Jan 2024 07:28:00 GMT' + r'[ \t]*,[ \t]*' + r'id=2fasd; Expires=Wed, 21 Oct 2025 07:28:00 GMT', + ), + ); + }, + skip: canReceiveSetCookieHeaders + ? false + : 'cannot receive set-cookie headers', + ); }); } diff --git a/pkgs/http_client_conformance_tests/lib/src/response_headers_server_web.dart b/pkgs/http_client_conformance_tests/lib/src/response_headers_server_web.dart index 0e6dabd17a..7fea63ef8e 100644 --- a/pkgs/http_client_conformance_tests/lib/src/response_headers_server_web.dart +++ b/pkgs/http_client_conformance_tests/lib/src/response_headers_server_web.dart @@ -6,6 +6,9 @@ import 'package:test/test.dart'; export 'server_queue_helpers.dart' show StreamQueueOfNullableObjectExtension; /// Starts the redirect test HTTP server out-of-process. -Future> startServer() async => spawnHybridUri(Uri( +Future> startServer() async => spawnHybridUri( + Uri( scheme: 'package', - path: 'http_client_conformance_tests/src/response_headers_server.dart')); + path: 'http_client_conformance_tests/src/response_headers_server.dart', + ), +); diff --git a/pkgs/http_client_conformance_tests/lib/src/response_headers_tests.dart b/pkgs/http_client_conformance_tests/lib/src/response_headers_tests.dart index 7cf8b3c785..52312f9b3f 100644 --- a/pkgs/http_client_conformance_tests/lib/src/response_headers_tests.dart +++ b/pkgs/http_client_conformance_tests/lib/src/response_headers_tests.dart @@ -17,9 +17,11 @@ import 'response_headers_server_vm.dart' /// /// If [correctlyHandlesNullHeaderValues] is `false` then the tests that assume /// that the [Client] correctly deals with NUL in header values are skipped. -void testResponseHeaders(Client Function() clientFactory, - {bool supportsFoldedHeaders = true, - bool correctlyHandlesNullHeaderValues = true}) async { +void testResponseHeaders( + Client Function() clientFactory, { + bool supportsFoldedHeaders = true, + bool correctlyHandlesNullHeaderValues = true, +}) async { group('server headers', () { late Client client; late String host; @@ -79,12 +81,17 @@ void testResponseHeaders(Client Function() clientFactory, final response = await client.get(Uri.http(host, '')); expect( - response.headers['foo'], matches(RegExp('BAR {0,2}[ \t] {0,3}BAZ'))); + response.headers['foo'], + matches(RegExp('BAR {0,2}[ \t] {0,3}BAZ')), + ); }); test('multiple headers', () async { - httpServerChannel.sink - .add('field1: value1\r\n' 'field2: value2\r\n' 'field3: value3\r\n'); + httpServerChannel.sink.add( + 'field1: value1\r\n' + 'field2: value2\r\n' + 'field3: value3\r\n', + ); final response = await client.get(Uri.http(host, '')); expect(response.headers['field1'], 'value1'); @@ -100,37 +107,50 @@ void testResponseHeaders(Client Function() clientFactory, httpServerChannel.sink.add('list: apple, orange, banana\r\n'); final response = await client.get(Uri.http(host, '')); - expect(response.headers['list'], - matches(r'apple[ \t]*,[ \t]*orange[ \t]*,[ \t]*banana')); + expect( + response.headers['list'], + matches(r'apple[ \t]*,[ \t]*orange[ \t]*,[ \t]*banana'), + ); }); test('multiple values per header surrounded with spaces', () async { - httpServerChannel.sink - .add('list: \t apple \t, \t orange \t , \t banana\t \t \r\n'); + httpServerChannel.sink.add( + 'list: \t apple \t, \t orange \t , \t banana\t \t \r\n', + ); final response = await client.get(Uri.http(host, '')); - expect(response.headers['list'], - matches(r'apple[ \t]*,[ \t]*orange[ \t]*,[ \t]*banana')); + expect( + response.headers['list'], + matches(r'apple[ \t]*,[ \t]*orange[ \t]*,[ \t]*banana'), + ); }); test('multiple headers with the same name', () async { - httpServerChannel.sink.add('list: apple\r\n' - 'list: orange\r\n' - 'list: banana\r\n'); + httpServerChannel.sink.add( + 'list: apple\r\n' + 'list: orange\r\n' + 'list: banana\r\n', + ); final response = await client.get(Uri.http(host, '')); - expect(response.headers['list'], - matches(r'apple[ \t]*,[ \t]*orange[ \t]*,[ \t]*banana')); + expect( + response.headers['list'], + matches(r'apple[ \t]*,[ \t]*orange[ \t]*,[ \t]*banana'), + ); }); test('multiple headers with the same name but different cases', () async { - httpServerChannel.sink.add('list: apple\r\n' - 'LIST: orange\r\n' - 'List: banana\r\n'); + httpServerChannel.sink.add( + 'list: apple\r\n' + 'LIST: orange\r\n' + 'List: banana\r\n', + ); final response = await client.get(Uri.http(host, '')); - expect(response.headers['list'], - matches(r'apple[ \t]*,[ \t]*orange[ \t]*,[ \t]*banana')); + expect( + response.headers['list'], + matches(r'apple[ \t]*,[ \t]*orange[ \t]*,[ \t]*banana'), + ); }); group('invalid headers values', () { @@ -141,19 +161,22 @@ void testResponseHeaders(Client Function() clientFactory, // field value MUST either reject the message or replace each of those // characters with SP before further processing or forwarding of that // message. - test('NUL', () async { - httpServerChannel.sink.add('invalid: 1\x002\r\n'); - - try { - final response = await client.get(Uri.http(host, '')); - expect(response.headers['invalid'], '1 2'); - } on ClientException { - // The client rejected the response, which is allowed per RFC-9110. - } - }, - skip: !correctlyHandlesNullHeaderValues - ? 'does not correctly handle NUL in header values' - : false); + test( + 'NUL', + () async { + httpServerChannel.sink.add('invalid: 1\x002\r\n'); + + try { + final response = await client.get(Uri.http(host, '')); + expect(response.headers['invalid'], '1 2'); + } on ClientException { + // The client rejected the response, which is allowed per RFC-9110. + } + }, + skip: !correctlyHandlesNullHeaderValues + ? 'does not correctly handle NUL in header values' + : false, + ); // Bare CR/LF seem to be interpreted the same as CR + LF by most clients // so allow that behavior. @@ -163,11 +186,13 @@ void testResponseHeaders(Client Function() clientFactory, try { final response = await client.get(Uri.http(host, '')); expect( - response.headers['foo'], - anyOf( - '1 2', // RFC-specified behavior - // Common client behavior (Cronet, Apple URL Loading System). - '1')); + response.headers['foo'], + anyOf( + '1 2', // RFC-specified behavior + // Common client behavior (Cronet, Apple URL Loading System). + '1', + ), + ); } on ClientException { // The client rejected the response, which is allowed per RFC-9110. } @@ -179,14 +204,15 @@ void testResponseHeaders(Client Function() clientFactory, try { final response = await client.get(Uri.http(host, '')); expect( - response.headers['foo'], - anyOf( - '1 2', // RFC-specified behavior - // Common client behavior (Cronet, Apple URL Loading System). - '1', - '1\r2', // Common client behavior (Java). - isNull, // Common client behavior (Firefox). - )); + response.headers['foo'], + anyOf( + '1 2', // RFC-specified behavior + // Common client behavior (Cronet, Apple URL Loading System). + '1', + '1\r2', // Common client behavior (Java). + isNull, // Common client behavior (Firefox). + ), + ); } on ClientException { // The client rejected the response, which is allowed per RFC-9110. } @@ -221,45 +247,56 @@ void testResponseHeaders(Client Function() clientFactory, test('non-integer', () async { httpServerChannel.sink.add('content-length: cat\r\n'); await expectLater( - client.get(Uri.http(host, '')), throwsA(isA())); + client.get(Uri.http(host, '')), + throwsA(isA()), + ); }); test('negative', () async { httpServerChannel.sink.add('content-length: -5\r\n'); await expectLater( - client.get(Uri.http(host, '')), throwsA(isA())); + client.get(Uri.http(host, '')), + throwsA(isA()), + ); }); test('bigger than actual body', () async { httpServerChannel.sink.add('content-length: 100\r\n'); await expectLater( - client.get(Uri.http(host, '')), throwsA(isA())); + client.get(Uri.http(host, '')), + throwsA(isA()), + ); }); }); - group('folded headers', () { - // RFC2616 says that HTTP Headers can be split across multiple lines. - // See https://datatracker.ietf.org/doc/html/rfc2616#section-2.2 - test('leading space', () async { - httpServerChannel.sink.add('foo: BAR\r\n BAZ\r\n'); + group( + 'folded headers', + () { + // RFC2616 says that HTTP Headers can be split across multiple lines. + // See https://datatracker.ietf.org/doc/html/rfc2616#section-2.2 + test('leading space', () async { + httpServerChannel.sink.add('foo: BAR\r\n BAZ\r\n'); - final response = await client.get(Uri.http(host, '')); - expect(response.headers['foo'], 'BAR BAZ'); - }); + final response = await client.get(Uri.http(host, '')); + expect(response.headers['foo'], 'BAR BAZ'); + }); - test('extra whitespace', () async { - httpServerChannel.sink.add('foo: BAR \t \r\n \t BAZ \t \r\n'); + test('extra whitespace', () async { + httpServerChannel.sink.add('foo: BAR \t \r\n \t BAZ \t \r\n'); - final response = await client.get(Uri.http(host, '')); - // RFC 2616 4.2 allows LWS between header values to be replace with a - // single space. - expect( + final response = await client.get(Uri.http(host, '')); + // RFC 2616 4.2 allows LWS between header values to be replace with a + // single space. + expect( response.headers['foo'], - allOf(matches(RegExp(r'BAR {0,3}[ \t]? {0,7}[ \t]? {0,3}BAZ')), - contains(' '))); - }); - }, - skip: - !supportsFoldedHeaders ? 'does not support folded headers' : false); + allOf( + matches(RegExp(r'BAR {0,3}[ \t]? {0,7}[ \t]? {0,3}BAZ')), + contains(' '), + ), + ); + }); + }, + skip: !supportsFoldedHeaders ? 'does not support folded headers' : false, + ); }); } diff --git a/pkgs/http_client_conformance_tests/lib/src/response_status_line_server_web.dart b/pkgs/http_client_conformance_tests/lib/src/response_status_line_server_web.dart index d70a325a50..b7b67f5a97 100644 --- a/pkgs/http_client_conformance_tests/lib/src/response_status_line_server_web.dart +++ b/pkgs/http_client_conformance_tests/lib/src/response_status_line_server_web.dart @@ -6,7 +6,9 @@ import 'package:test/test.dart'; export 'server_queue_helpers.dart' show StreamQueueOfNullableObjectExtension; /// Starts the redirect test HTTP server out-of-process. -Future> startServer() async => spawnHybridUri(Uri( +Future> startServer() async => spawnHybridUri( + Uri( scheme: 'package', - path: - 'http_client_conformance_tests/src/response_status_line_server.dart')); + path: 'http_client_conformance_tests/src/response_status_line_server.dart', + ), +); diff --git a/pkgs/http_client_conformance_tests/lib/src/server_errors_server.dart b/pkgs/http_client_conformance_tests/lib/src/server_errors_server.dart index 47470a41f4..23ee63982f 100644 --- a/pkgs/http_client_conformance_tests/lib/src/server_errors_server.dart +++ b/pkgs/http_client_conformance_tests/lib/src/server_errors_server.dart @@ -26,6 +26,7 @@ void hybridMain(StreamChannel channel) async { channel.sink.add(server.port); await channel - .stream.first; // Any writes indicates that the server should exit. + .stream + .first; // Any writes indicates that the server should exit. unawaited(server.close()); } diff --git a/pkgs/http_client_conformance_tests/lib/src/server_errors_server_web.dart b/pkgs/http_client_conformance_tests/lib/src/server_errors_server_web.dart index 9614f3601d..630140ebd7 100644 --- a/pkgs/http_client_conformance_tests/lib/src/server_errors_server_web.dart +++ b/pkgs/http_client_conformance_tests/lib/src/server_errors_server_web.dart @@ -6,6 +6,9 @@ import 'package:test/test.dart'; export 'server_queue_helpers.dart' show StreamQueueOfNullableObjectExtension; /// Starts the redirect test HTTP server out-of-process. -Future> startServer() async => spawnHybridUri(Uri( +Future> startServer() async => spawnHybridUri( + Uri( scheme: 'package', - path: 'http_client_conformance_tests/src/server_errors_server.dart')); + path: 'http_client_conformance_tests/src/server_errors_server.dart', + ), +); diff --git a/pkgs/http_client_conformance_tests/lib/src/server_errors_test.dart b/pkgs/http_client_conformance_tests/lib/src/server_errors_test.dart index 86a89d3fb3..53a649dfda 100644 --- a/pkgs/http_client_conformance_tests/lib/src/server_errors_test.dart +++ b/pkgs/http_client_conformance_tests/lib/src/server_errors_test.dart @@ -11,8 +11,10 @@ import 'server_errors_server_vm.dart' if (dart.library.js_interop) 'server_errors_server_web.dart'; /// Tests that the [Client] correctly handles server errors. -void testServerErrors(Client Function() clientFactory, - {bool redirectAlwaysAllowed = false}) { +void testServerErrors( + Client Function() clientFactory, { + bool redirectAlwaysAllowed = false, +}) { group('server errors', () { late Client client; late final String host; @@ -30,16 +32,28 @@ void testServerErrors(Client Function() clientFactory, test('no such host', () async { expect( - client.get(Uri.http('thisisnotahost', '')), - throwsA(isA() - .having((e) => e.uri, 'uri', Uri.http('thisisnotahost', '')))); + client.get(Uri.http('thisisnotahost', '')), + throwsA( + isA().having( + (e) => e.uri, + 'uri', + Uri.http('thisisnotahost', ''), + ), + ), + ); }); test('disconnect', () async { expect( - client.get(Uri.http(host, '')), - throwsA(isA() - .having((e) => e.uri, 'uri', Uri.http(host, '')))); + client.get(Uri.http(host, '')), + throwsA( + isA().having( + (e) => e.uri, + 'uri', + Uri.http(host, ''), + ), + ), + ); }); }); } diff --git a/pkgs/http_client_conformance_tests/pubspec.yaml b/pkgs/http_client_conformance_tests/pubspec.yaml index dd566b8798..f60c969053 100644 --- a/pkgs/http_client_conformance_tests/pubspec.yaml +++ b/pkgs/http_client_conformance_tests/pubspec.yaml @@ -6,7 +6,7 @@ repository: https://github.com/dart-lang/http/tree/master/pkgs/http_client_confo publish_to: none environment: - sdk: ^3.4.0 + sdk: ^3.9.0 dependencies: async: ^2.8.2 diff --git a/pkgs/http_multi_server/lib/http_multi_server.dart b/pkgs/http_multi_server/lib/http_multi_server.dart index 18fba335e4..0a4c916231 100644 --- a/pkgs/http_multi_server/lib/http_multi_server.dart +++ b/pkgs/http_multi_server/lib/http_multi_server.dart @@ -96,37 +96,54 @@ class HttpMultiServer extends StreamView implements HttpServer { /// All [servers] should have the same configuration and none should be /// listened to when this is called. HttpMultiServer(Iterable servers) - : _servers = servers.toSet(), - defaultResponseHeaders = MultiHeaders( - servers.map((server) => server.defaultResponseHeaders)), - super(StreamGroup.merge(servers)); + : _servers = servers.toSet(), + defaultResponseHeaders = MultiHeaders( + servers.map((server) => server.defaultResponseHeaders), + ), + super(StreamGroup.merge(servers)); /// Creates an [HttpServer] listening on all available loopback addresses for /// this computer. /// /// See [HttpServer.bind]. - static Future loopback(int port, - {int backlog = 0, bool v6Only = false, bool shared = false}) => - _loopback( - port, - (address, port) => HttpServer.bind(address, port, - backlog: backlog, v6Only: v6Only, shared: shared)); + static Future loopback( + int port, { + int backlog = 0, + bool v6Only = false, + bool shared = false, + }) => _loopback( + port, + (address, port) => HttpServer.bind( + address, + port, + backlog: backlog, + v6Only: v6Only, + shared: shared, + ), + ); /// Like [loopback], but supports HTTPS requests. /// /// See [HttpServer.bindSecure]. - static Future loopbackSecure(int port, SecurityContext context, - {int backlog = 0, - bool v6Only = false, - bool requestClientCertificate = false, - bool shared = false}) => - _loopback( - port, - (address, port) => HttpServer.bindSecure(address, port, context, - backlog: backlog, - v6Only: v6Only, - shared: shared, - requestClientCertificate: requestClientCertificate)); + static Future loopbackSecure( + int port, + SecurityContext context, { + int backlog = 0, + bool v6Only = false, + bool requestClientCertificate = false, + bool shared = false, + }) => _loopback( + port, + (address, port) => HttpServer.bindSecure( + address, + port, + context, + backlog: backlog, + v6Only: v6Only, + shared: shared, + requestClientCertificate: requestClientCertificate, + ), + ); /// Bind an [HttpServer] with handling for special addresses 'localhost' and /// 'any'. @@ -141,24 +158,37 @@ class HttpMultiServer extends StreamView implements HttpServer { /// the IPvX support may vary. /// /// See [HttpServer.bind]. - static Future bind(dynamic address, int port, - {int backlog = 0, bool v6Only = false, bool shared = false}) async { + static Future bind( + dynamic address, + int port, { + int backlog = 0, + bool v6Only = false, + bool shared = false, + }) async { if (address == 'localhost') { - return HttpMultiServer.loopback(port, - backlog: backlog, v6Only: v6Only, shared: shared); + return HttpMultiServer.loopback( + port, + backlog: backlog, + v6Only: v6Only, + shared: shared, + ); } if (address == 'any') { return HttpServer.bind( - await supportsIPv6 - ? InternetAddress.anyIPv6 - : InternetAddress.anyIPv4, - port, - backlog: backlog, - v6Only: v6Only, - shared: shared); + await supportsIPv6 ? InternetAddress.anyIPv6 : InternetAddress.anyIPv4, + port, + backlog: backlog, + v6Only: v6Only, + shared: shared, + ); } - return HttpServer.bind(address, port, - backlog: backlog, v6Only: v6Only, shared: shared); + return HttpServer.bind( + address, + port, + backlog: backlog, + v6Only: v6Only, + shared: shared, + ); } /// Bind a secure [HttpServer] with handling for special addresses 'localhost' @@ -172,25 +202,40 @@ class HttpMultiServer extends StreamView implements HttpServer { /// /// See [HttpServer.bindSecure]. static Future bindSecure( - dynamic address, int port, SecurityContext context, - {int backlog = 0, bool v6Only = false, bool shared = false}) async { + dynamic address, + int port, + SecurityContext context, { + int backlog = 0, + bool v6Only = false, + bool shared = false, + }) async { if (address == 'localhost') { - return await HttpMultiServer.loopbackSecure(port, context, - backlog: backlog, v6Only: v6Only, shared: shared); + return await HttpMultiServer.loopbackSecure( + port, + context, + backlog: backlog, + v6Only: v6Only, + shared: shared, + ); } if (address == 'any') { return await HttpServer.bindSecure( - await supportsIPv6 - ? InternetAddress.anyIPv6 - : InternetAddress.anyIPv4, - port, - context, - backlog: backlog, - v6Only: v6Only, - shared: shared); + await supportsIPv6 ? InternetAddress.anyIPv6 : InternetAddress.anyIPv4, + port, + context, + backlog: backlog, + v6Only: v6Only, + shared: shared, + ); } - return await HttpServer.bindSecure(address, port, context, - backlog: backlog, v6Only: v6Only, shared: shared); + return await HttpServer.bindSecure( + address, + port, + context, + backlog: backlog, + v6Only: v6Only, + shared: shared, + ); } /// A helper method for initializing loopback servers. @@ -198,8 +243,10 @@ class HttpMultiServer extends StreamView implements HttpServer { /// [bind] should forward to either [HttpServer.bind] or /// [HttpServer.bindSecure]. static Future _loopback( - int port, Future Function(InternetAddress, int port) bind, - [int remainingRetries = 5]) async { + int port, + Future Function(InternetAddress, int port) bind, [ + int remainingRetries = 5, + ]) async { if (!await supportsIPv4) { return await bind(InternetAddress.loopbackIPv6, port); } diff --git a/pkgs/http_multi_server/pubspec.yaml b/pkgs/http_multi_server/pubspec.yaml index a9829ff52e..b80ae3c999 100644 --- a/pkgs/http_multi_server/pubspec.yaml +++ b/pkgs/http_multi_server/pubspec.yaml @@ -5,7 +5,7 @@ description: >- repository: https://github.com/dart-lang/http/tree/master/pkgs/http_multi_server environment: - sdk: ^3.2.0 + sdk: ^3.9.0 dependencies: async: ^2.5.0 diff --git a/pkgs/http_multi_server/test/http_multi_server_test.dart b/pkgs/http_multi_server/test/http_multi_server_test.dart index 418c7feed0..a724f23c71 100644 --- a/pkgs/http_multi_server/test/http_multi_server_test.dart +++ b/pkgs/http_multi_server/test/http_multi_server_test.dart @@ -20,11 +20,13 @@ void main() { late HttpServer subServer2; late HttpServer subServer3; - setUp(() => Future.wait([ - HttpServer.bind('localhost', 0).then((server) => subServer1 = server), - HttpServer.bind('localhost', 0).then((server) => subServer2 = server), - HttpServer.bind('localhost', 0).then((server) => subServer3 = server) - ]).then((servers) => multiServer = HttpMultiServer(servers))); + setUp( + () => Future.wait([ + HttpServer.bind('localhost', 0).then((server) => subServer1 = server), + HttpServer.bind('localhost', 0).then((server) => subServer2 = server), + HttpServer.bind('localhost', 0).then((server) => subServer3 = server), + ]).then((servers) => multiServer = HttpMultiServer(servers)), + ); tearDown(() => multiServer.close()); @@ -48,25 +50,25 @@ void main() { }); expect( - _get(subServer1).then((response) { - expect( - response.headers['server'], equals('http_multi_server test')); - }), - completes); + _get(subServer1).then((response) { + expect(response.headers['server'], equals('http_multi_server test')); + }), + completes, + ); expect( - _get(subServer2).then((response) { - expect( - response.headers['server'], equals('http_multi_server test')); - }), - completes); + _get(subServer2).then((response) { + expect(response.headers['server'], equals('http_multi_server test')); + }), + completes, + ); expect( - _get(subServer3).then((response) { - expect( - response.headers['server'], equals('http_multi_server test')); - }), - completes); + _get(subServer3).then((response) { + expect(response.headers['server'], equals('http_multi_server test')); + }), + completes, + ); }); test('autoCompress= sets the value for all servers', () { @@ -78,27 +80,32 @@ void main() { }); expect( - _get(subServer1).then((response) { - expect(response.headers['content-encoding'], equals('gzip')); - }), - completes); + _get(subServer1).then((response) { + expect(response.headers['content-encoding'], equals('gzip')); + }), + completes, + ); expect( - _get(subServer2).then((response) { - expect(response.headers['content-encoding'], equals('gzip')); - }), - completes); + _get(subServer2).then((response) { + expect(response.headers['content-encoding'], equals('gzip')); + }), + completes, + ); expect( - _get(subServer3).then((response) { - expect(response.headers['content-encoding'], equals('gzip')); - }), - completes); + _get(subServer3).then((response) { + expect(response.headers['content-encoding'], equals('gzip')); + }), + completes, + ); }); test('headers.set sets the value for all servers', () { - multiServer.defaultResponseHeaders - .set('server', 'http_multi_server test'); + multiServer.defaultResponseHeaders.set( + 'server', + 'http_multi_server test', + ); multiServer.listen((request) { request.response.write('got request'); @@ -106,25 +113,25 @@ void main() { }); expect( - _get(subServer1).then((response) { - expect( - response.headers['server'], equals('http_multi_server test')); - }), - completes); + _get(subServer1).then((response) { + expect(response.headers['server'], equals('http_multi_server test')); + }), + completes, + ); expect( - _get(subServer2).then((response) { - expect( - response.headers['server'], equals('http_multi_server test')); - }), - completes); + _get(subServer2).then((response) { + expect(response.headers['server'], equals('http_multi_server test')); + }), + completes, + ); expect( - _get(subServer3).then((response) { - expect( - response.headers['server'], equals('http_multi_server test')); - }), - completes); + _get(subServer3).then((response) { + expect(response.headers['server'], equals('http_multi_server test')); + }), + completes, + ); }); test('connectionsInfo sums the values for all servers', () { @@ -172,13 +179,17 @@ void main() { }); if (await supportsIPv4) { - expect(http.read(Uri.http('127.0.0.1:${server.port}', '/')), - completion(equals('got request'))); + expect( + http.read(Uri.http('127.0.0.1:${server.port}', '/')), + completion(equals('got request')), + ); } if (await supportsIPv6) { - expect(http.read(Uri.http('[::1]:${server.port}', '/')), - completion(equals('got request'))); + expect( + http.read(Uri.http('[::1]:${server.port}', '/')), + completion(equals('got request')), + ); } }); }); @@ -192,13 +203,17 @@ void main() { }); if (await supportsIPv4) { - expect(http.read(Uri.http('127.0.0.1:${server.port}', '/')), - completion(equals('got request'))); + expect( + http.read(Uri.http('127.0.0.1:${server.port}', '/')), + completion(equals('got request')), + ); } if (await supportsIPv6) { - expect(http.read(Uri.http('[::1]:${server.port}', '/')), - completion(equals('got request'))); + expect( + http.read(Uri.http('[::1]:${server.port}', '/')), + completion(equals('got request')), + ); } }); @@ -210,13 +225,17 @@ void main() { }); if (await supportsIPv4) { - expect(http.read(Uri.http('127.0.0.1:${server.port}', '/')), - completion(equals('got request'))); + expect( + http.read(Uri.http('127.0.0.1:${server.port}', '/')), + completion(equals('got request')), + ); } if (await supportsIPv6) { - expect(http.read(Uri.http('[::1]:${server.port}', '/')), - completion(equals('got request'))); + expect( + http.read(Uri.http('[::1]:${server.port}', '/')), + completion(equals('got request')), + ); } }); @@ -238,12 +257,16 @@ void main() { request.response.close(); }); - expect(http.read(Uri.http('127.0.0.1:${server.port}', '/')), - completion(equals('got request'))); + expect( + http.read(Uri.http('127.0.0.1:${server.port}', '/')), + completion(equals('got request')), + ); if (await supportsIPv6) { - expect(http.read(Uri.http('[::1]:${server.port}', '/')), - throwsA(isA())); + expect( + http.read(Uri.http('[::1]:${server.port}', '/')), + throwsA(isA()), + ); } }); }); @@ -266,13 +289,17 @@ void main() { }); if (await supportsIPv4) { - expect(client.read(Uri.https('127.0.0.1:${server.port}')), - completion(equals('got request'))); + expect( + client.read(Uri.https('127.0.0.1:${server.port}')), + completion(equals('got request')), + ); } if (await supportsIPv6) { - expect(client.read(Uri.https('[::1]:${server.port}')), - completion(equals('got request'))); + expect( + client.read(Uri.https('[::1]:${server.port}')), + completion(equals('got request')), + ); } }); @@ -284,31 +311,42 @@ void main() { }); if (await supportsIPv4) { - expect(client.read(Uri.https('127.0.0.1:${server.port}')), - completion(equals('got request'))); + expect( + client.read(Uri.https('127.0.0.1:${server.port}')), + completion(equals('got request')), + ); } if (await supportsIPv6) { - expect(client.read(Uri.https('[::1]:${server.port}')), - completion(equals('got request'))); + expect( + client.read(Uri.https('[::1]:${server.port}')), + completion(equals('got request')), + ); } }); test('listens on specified hostname', () async { if (!await supportsIPv4) return; - final server = - await HttpMultiServer.bindSecure(InternetAddress.anyIPv4, 0, context); + final server = await HttpMultiServer.bindSecure( + InternetAddress.anyIPv4, + 0, + context, + ); server.listen((request) { request.response.write('got request'); request.response.close(); }); - expect(client.read(Uri.https('127.0.0.1:${server.port}')), - completion(equals('got request'))); + expect( + client.read(Uri.https('127.0.0.1:${server.port}')), + completion(equals('got request')), + ); if (await supportsIPv6) { - expect(client.read(Uri.https('[::1]:${server.port}')), - throwsA(isA())); + expect( + client.read(Uri.https('[::1]:${server.port}')), + throwsA(isA()), + ); } }); }); diff --git a/pkgs/http_parser/lib/src/authentication_challenge.dart b/pkgs/http_parser/lib/src/authentication_challenge.dart index 7eebc431f9..bf56785f18 100644 --- a/pkgs/http_parser/lib/src/authentication_challenge.dart +++ b/pkgs/http_parser/lib/src/authentication_challenge.dart @@ -74,8 +74,10 @@ class AuthenticationChallenge { if (scanner.scan(token)) { params[name] = scanner.lastMatch![0]!; } else { - params[name] = expectQuotedString(scanner, - name: 'a token or a quoted string'); + params[name] = expectQuotedString( + scanner, + name: 'a token or a quoted string', + ); } scanner.scan(whitespace); @@ -126,7 +128,9 @@ class AuthenticationChallenge { /// Scans a single authentication parameter and stores its result in [params]. static void _scanAuthParam( - StringScanner scanner, Map params) { + StringScanner scanner, + Map params, + ) { scanner.expect(token, name: 'a token'); final name = scanner.lastMatch![0]!; scanner.scan(whitespace); @@ -136,8 +140,10 @@ class AuthenticationChallenge { if (scanner.scan(token)) { params[name] = scanner.lastMatch![0]!; } else { - params[name] = - expectQuotedString(scanner, name: 'a token or a quoted string'); + params[name] = expectQuotedString( + scanner, + name: 'a token or a quoted string', + ); } scanner.scan(whitespace); @@ -145,5 +151,5 @@ class AuthenticationChallenge { /// Creates a new challenge value with [scheme] and [parameters]. AuthenticationChallenge(this.scheme, Map parameters) - : parameters = UnmodifiableMapView(CaseInsensitiveMap.from(parameters)); + : parameters = UnmodifiableMapView(CaseInsensitiveMap.from(parameters)); } diff --git a/pkgs/http_parser/lib/src/case_insensitive_map.dart b/pkgs/http_parser/lib/src/case_insensitive_map.dart index ed344e6f24..18d998cbaf 100644 --- a/pkgs/http_parser/lib/src/case_insensitive_map.dart +++ b/pkgs/http_parser/lib/src/case_insensitive_map.dart @@ -14,12 +14,12 @@ class CaseInsensitiveMap extends CanonicalizedMap { /// Creates a case-insensitive map that is initialized with the key/value /// pairs of [other]. CaseInsensitiveMap.from(Map other) - : super.from(other, _canonicalizer); + : super.from(other, _canonicalizer); /// Creates a case-insensitive map that is initialized with the key/value /// pairs of [entries]. CaseInsensitiveMap.fromEntries(Iterable> entries) - : super.fromEntries(entries, _canonicalizer); + : super.fromEntries(entries, _canonicalizer); static String _canonicalizer(String key) => key.toLowerCase(); } diff --git a/pkgs/http_parser/lib/src/chunked_coding/decoder.dart b/pkgs/http_parser/lib/src/chunked_coding/decoder.dart index 9eb8e93b4c..610dcfbb5a 100644 --- a/pkgs/http_parser/lib/src/chunked_coding/decoder.dart +++ b/pkgs/http_parser/lib/src/chunked_coding/decoder.dart @@ -165,9 +165,10 @@ class _Sink extends ByteConversionSinkBase { } throw FormatException( - 'Invalid hexadecimal byte 0x${byte.toRadixString(16).toUpperCase()}.', - bytes, - index); + 'Invalid hexadecimal byte 0x${byte.toRadixString(16).toUpperCase()}.', + bytes, + index, + ); } } diff --git a/pkgs/http_parser/lib/src/http_date.dart b/pkgs/http_parser/lib/src/http_date.dart index 0cedd9a6d8..0e1002b3d9 100644 --- a/pkgs/http_parser/lib/src/http_date.dart +++ b/pkgs/http_parser/lib/src/http_date.dart @@ -19,12 +19,13 @@ const _months = [ 'Sep', 'Oct', 'Nov', - 'Dec' + 'Dec', ]; final _shortWeekdayRegExp = RegExp(r'Mon|Tue|Wed|Thu|Fri|Sat|Sun'); -final _longWeekdayRegExp = - RegExp(r'Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday'); +final _longWeekdayRegExp = RegExp( + r'Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday', +); final _monthRegExp = RegExp(r'Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec'); final _digitRegExp = RegExp(r'\d+'); @@ -98,8 +99,9 @@ DateTime parseHttpDate(String date) => scanner.expect(' '); final month = _parseMonth(scanner); scanner.expect(' '); - final day = - scanner.scan(' ') ? _parseInt(scanner, 1) : _parseInt(scanner, 2); + final day = scanner.scan(' ') + ? _parseInt(scanner, 1) + : _parseInt(scanner, 2); scanner.expect(' '); final time = _parseTime(scanner); scanner.expect(' '); @@ -147,8 +149,14 @@ DateTime _parseTime(StringScanner scanner) { /// Validates that [day] is a valid day for [month]. If it's not, throws a /// [FormatException]. DateTime _makeDateTime(int year, int month, int day, DateTime time) { - final dateTime = - DateTime.utc(year, month, day, time.hour, time.minute, time.second); + final dateTime = DateTime.utc( + year, + month, + day, + time.hour, + time.minute, + time.second, + ); // If [day] was too large, it will cause [month] to overflow. if (dateTime.month != month) { diff --git a/pkgs/http_parser/lib/src/media_type.dart b/pkgs/http_parser/lib/src/media_type.dart index 814de63467..5e32290866 100644 --- a/pkgs/http_parser/lib/src/media_type.dart +++ b/pkgs/http_parser/lib/src/media_type.dart @@ -76,10 +76,11 @@ class MediaType { }); MediaType(String type, String subtype, [Map? parameters]) - : type = type.toLowerCase(), - subtype = subtype.toLowerCase(), - parameters = UnmodifiableMapView( - parameters == null ? {} : CaseInsensitiveMap.from(parameters)); + : type = type.toLowerCase(), + subtype = subtype.toLowerCase(), + parameters = UnmodifiableMapView( + parameters == null ? {} : CaseInsensitiveMap.from(parameters), + ); /// Returns a copy of this [MediaType] with some fields altered. /// @@ -90,18 +91,21 @@ class MediaType { /// [parameters] overwrites and adds to the corresponding field. If /// [clearParameters] is passed, it replaces the corresponding field entirely /// instead. - MediaType change( - {String? type, - String? subtype, - String? mimeType, - Map? parameters, - bool clearParameters = false}) { + MediaType change({ + String? type, + String? subtype, + String? mimeType, + Map? parameters, + bool clearParameters = false, + }) { if (mimeType != null) { if (type != null) { throw ArgumentError('You may not pass both [type] and [mimeType].'); } else if (subtype != null) { - throw ArgumentError('You may not pass both [subtype] and ' - '[mimeType].'); + throw ArgumentError( + 'You may not pass both [subtype] and ' + '[mimeType].', + ); } final segments = mimeType.split('/'); @@ -142,7 +146,8 @@ class MediaType { buffer ..write('"') ..write( - value.replaceAllMapped(_escapedChar, (match) => '\\${match[0]}')) + value.replaceAllMapped(_escapedChar, (match) => '\\${match[0]}'), + ) ..write('"'); } else { buffer.write(value); diff --git a/pkgs/http_parser/lib/src/utils.dart b/pkgs/http_parser/lib/src/utils.dart index ca00fd3af5..7c0497a490 100644 --- a/pkgs/http_parser/lib/src/utils.dart +++ b/pkgs/http_parser/lib/src/utils.dart @@ -13,9 +13,15 @@ T wrapFormatException(String name, String value, T Function() body) { return body(); } on SourceSpanFormatException catch (error) { throw SourceSpanFormatException( - 'Invalid $name: ${error.message}', error.span, error.source); + 'Invalid $name: ${error.message}', + error.span, + error.source, + ); } on FormatException catch (error) { throw FormatException( - 'Invalid $name "$value": ${error.message}', error.source, error.offset); + 'Invalid $name "$value": ${error.message}', + error.source, + error.offset, + ); } } diff --git a/pkgs/http_parser/pubspec.yaml b/pkgs/http_parser/pubspec.yaml index 5b3d521801..f88099420d 100644 --- a/pkgs/http_parser/pubspec.yaml +++ b/pkgs/http_parser/pubspec.yaml @@ -5,7 +5,7 @@ description: >- repository: https://github.com/dart-lang/http/tree/master/pkgs/http_parser environment: - sdk: ^3.4.0 + sdk: ^3.9.0 dependencies: collection: ^1.19.0 diff --git a/pkgs/http_parser/test/authentication_challenge_test.dart b/pkgs/http_parser/test/authentication_challenge_test.dart index 3e0f63fdcf..dcd3987cfe 100644 --- a/pkgs/http_parser/test/authentication_challenge_test.dart +++ b/pkgs/http_parser/test/authentication_challenge_test.dart @@ -21,7 +21,8 @@ void main() { test('parses multiple challenges', () { final challenges = AuthenticationChallenge.parseHeader( - 'scheme1 realm=fblthp, scheme2 realm=asdfg'); + 'scheme1 realm=fblthp, scheme2 realm=asdfg', + ); expect(challenges, hasLength(2)); expect(challenges.first.scheme, equals('scheme1')); expect(challenges.first.parameters, equals({'realm': 'fblthp'})); @@ -31,16 +32,21 @@ void main() { test('parses multiple challenges with multiple parameters', () { final challenges = AuthenticationChallenge.parseHeader( - 'scheme1 realm=fblthp, foo=bar, scheme2 realm=asdfg, baz=bang'); + 'scheme1 realm=fblthp, foo=bar, scheme2 realm=asdfg, baz=bang', + ); expect(challenges, hasLength(2)); expect(challenges.first.scheme, equals('scheme1')); - expect(challenges.first.parameters, - equals({'realm': 'fblthp', 'foo': 'bar'})); + expect( + challenges.first.parameters, + equals({'realm': 'fblthp', 'foo': 'bar'}), + ); expect(challenges.last.scheme, equals('scheme2')); - expect(challenges.last.parameters, - equals({'realm': 'asdfg', 'baz': 'bang'})); + expect( + challenges.last.parameters, + equals({'realm': 'asdfg', 'baz': 'bang'}), + ); }); }); } @@ -51,7 +57,8 @@ void main() { /// [AuthenticationChallenge.parseHeader], since they use almost entirely /// separate code paths. void _singleChallengeTests( - AuthenticationChallenge Function(String challenge) parseChallenge) { + AuthenticationChallenge Function(String challenge) parseChallenge, +) { test('parses a simple challenge', () { final challenge = parseChallenge('scheme realm=fblthp'); expect(challenge.scheme, equals('scheme')); @@ -61,24 +68,32 @@ void _singleChallengeTests( test('parses multiple parameters', () { final challenge = parseChallenge('scheme realm=fblthp, foo=bar, baz=qux'); expect(challenge.scheme, equals('scheme')); - expect(challenge.parameters, - equals({'realm': 'fblthp', 'foo': 'bar', 'baz': 'qux'})); + expect( + challenge.parameters, + equals({'realm': 'fblthp', 'foo': 'bar', 'baz': 'qux'}), + ); }); test('parses quoted string parameters', () { - final challenge = - parseChallenge('scheme realm="fblthp, foo=bar", baz="qux"'); + final challenge = parseChallenge( + 'scheme realm="fblthp, foo=bar", baz="qux"', + ); expect(challenge.scheme, equals('scheme')); - expect(challenge.parameters, - equals({'realm': 'fblthp, foo=bar', 'baz': 'qux'})); + expect( + challenge.parameters, + equals({'realm': 'fblthp, foo=bar', 'baz': 'qux'}), + ); }); test('parses quoted string parameters with surrounding spaces', () { - final challenge = - parseChallenge('scheme realm= "fblthp, foo=bar" , baz= "qux" '); + final challenge = parseChallenge( + 'scheme realm= "fblthp, foo=bar" , baz= "qux" ', + ); expect(challenge.scheme, equals('scheme')); - expect(challenge.parameters, - equals({'realm': 'fblthp, foo=bar', 'baz': 'qux'})); + expect( + challenge.parameters, + equals({'realm': 'fblthp, foo=bar', 'baz': 'qux'}), + ); }); test('normalizes the case of the scheme', () { @@ -102,7 +117,8 @@ void _singleChallengeTests( test('allows extra whitespace', () { final challenge = parseChallenge( - ' scheme\t \trealm\t = \tfblthp\t, \tfoo\t\r\n =\tbar\t'); + ' scheme\t \trealm\t = \tfblthp\t, \tfoo\t\r\n =\tbar\t', + ); expect(challenge.scheme, equals('scheme')); expect(challenge.parameters, equals({'realm': 'fblthp', 'foo': 'bar'})); }); @@ -133,7 +149,9 @@ void _singleChallengeTests( expect(() => parseChallenge('scheme realm'), throwsFormatException); expect(() => parseChallenge('scheme realm='), throwsFormatException); expect( - () => parseChallenge('scheme realm, foo=bar'), throwsFormatException); + () => parseChallenge('scheme realm, foo=bar'), + throwsFormatException, + ); }); test('requires a space after the scheme', () { @@ -143,8 +161,12 @@ void _singleChallengeTests( test('disallows junk after the parameters', () { expect( - () => parseChallenge('scheme realm=fblthp foo'), throwsFormatException); - expect(() => parseChallenge('scheme realm=fblthp, foo=bar baz'), - throwsFormatException); + () => parseChallenge('scheme realm=fblthp foo'), + throwsFormatException, + ); + expect( + () => parseChallenge('scheme realm=fblthp, foo=bar baz'), + throwsFormatException, + ); }); } diff --git a/pkgs/http_parser/test/chunked_coding_test.dart b/pkgs/http_parser/test/chunked_coding_test.dart index fc4c13ff39..526f7c791f 100644 --- a/pkgs/http_parser/test/chunked_coding_test.dart +++ b/pkgs/http_parser/test/chunked_coding_test.dart @@ -12,16 +12,18 @@ import 'package:test/test.dart'; void main() { group('encoder', () { test('adds a header to the chunk of bytes', () { - expect(chunkedCoding.encode([1, 2, 3]), - equals([$3, $cr, $lf, 1, 2, 3, $cr, $lf, $0, $cr, $lf, $cr, $lf])); + expect( + chunkedCoding.encode([1, 2, 3]), + equals([$3, $cr, $lf, 1, 2, 3, $cr, $lf, $0, $cr, $lf, $cr, $lf]), + ); }); test('uses hex for chunk size', () { final data = Iterable.generate(0xA7).toList(); expect( - chunkedCoding.encode(data), - equals( - [$a, $7, $cr, $lf, ...data, $cr, $lf, $0, $cr, $lf, $cr, $lf])); + chunkedCoding.encode(data), + equals([$a, $7, $cr, $lf, ...data, $cr, $lf, $0, $cr, $lf, $cr, $lf]), + ); }); test('just generates a footer for an empty input', () { @@ -41,27 +43,30 @@ void main() { test('adds headers to each chunk of bytes', () { sink.add([1, 2, 3, 4]); expect( - results, - equals([ - [$4, $cr, $lf, 1, 2, 3, 4, $cr, $lf] - ])); + results, + equals([ + [$4, $cr, $lf, 1, 2, 3, 4, $cr, $lf], + ]), + ); sink.add([5, 6, 7]); expect( - results, - equals([ - [$4, $cr, $lf, 1, 2, 3, 4, $cr, $lf], - [$3, $cr, $lf, 5, 6, 7, $cr, $lf], - ])); + results, + equals([ + [$4, $cr, $lf, 1, 2, 3, 4, $cr, $lf], + [$3, $cr, $lf, 5, 6, 7, $cr, $lf], + ]), + ); sink.close(); expect( - results, - equals([ - [$4, $cr, $lf, 1, 2, 3, 4, $cr, $lf], - [$3, $cr, $lf, 5, 6, 7, $cr, $lf], - [$0, $cr, $lf, $cr, $lf], - ])); + results, + equals([ + [$4, $cr, $lf, 1, 2, 3, 4, $cr, $lf], + [$3, $cr, $lf, 5, 6, 7, $cr, $lf], + [$0, $cr, $lf, $cr, $lf], + ]), + ); }); test('handles empty chunks', () { @@ -70,40 +75,44 @@ void main() { sink.add([1, 2, 3]); expect( - results, - equals([ - [], - [$3, $cr, $lf, 1, 2, 3, $cr, $lf] - ])); + results, + equals([ + [], + [$3, $cr, $lf, 1, 2, 3, $cr, $lf], + ]), + ); sink.add([]); expect( - results, - equals([ - [], - [$3, $cr, $lf, 1, 2, 3, $cr, $lf], - [] - ])); + results, + equals([ + [], + [$3, $cr, $lf, 1, 2, 3, $cr, $lf], + [], + ]), + ); sink.close(); expect( - results, - equals([ - [], - [$3, $cr, $lf, 1, 2, 3, $cr, $lf], - [], - [$0, $cr, $lf, $cr, $lf], - ])); + results, + equals([ + [], + [$3, $cr, $lf, 1, 2, 3, $cr, $lf], + [], + [$0, $cr, $lf, $cr, $lf], + ]), + ); }); group('addSlice()', () { test('adds bytes from the specified slice', () { sink.addSlice([1, 2, 3, 4, 5], 1, 4, false); expect( - results, - equals([ - [$3, $cr, $lf, 2, 3, 4, $cr, $lf] - ])); + results, + equals([ + [$3, $cr, $lf, 2, 3, 4, $cr, $lf], + ]), + ); }); test("doesn't add a header if the slice is empty", () { @@ -114,10 +123,11 @@ void main() { test('adds a footer if isLast is true', () { sink.addSlice([1, 2, 3, 4, 5], 1, 4, true); expect( - results, - equals([ - [$3, $cr, $lf, 2, 3, 4, $cr, $lf, $0, $cr, $lf, $cr, $lf] - ])); + results, + equals([ + [$3, $cr, $lf, 2, 3, 4, $cr, $lf, $0, $cr, $lf, $cr, $lf], + ]), + ); // Setting isLast shuld close the sink. expect(() => sink.add([]), throwsStateError); @@ -125,18 +135,24 @@ void main() { group('disallows', () { test('start < 0', () { - expect(() => sink.addSlice([1, 2, 3, 4, 5], -1, 4, false), - throwsRangeError); + expect( + () => sink.addSlice([1, 2, 3, 4, 5], -1, 4, false), + throwsRangeError, + ); }); test('start > end', () { - expect(() => sink.addSlice([1, 2, 3, 4, 5], 3, 2, false), - throwsRangeError); + expect( + () => sink.addSlice([1, 2, 3, 4, 5], 3, 2, false), + throwsRangeError, + ); }); test('end > length', () { - expect(() => sink.addSlice([1, 2, 3, 4, 5], 1, 10, false), - throwsRangeError); + expect( + () => sink.addSlice([1, 2, 3, 4, 5], 1, 10, false), + throwsRangeError, + ); }); }); }); @@ -146,47 +162,74 @@ void main() { group('decoder', () { test('parses chunked data', () { expect( - chunkedCoding.decode([ - $3, - $cr, - $lf, - 1, - 2, - 3, - $cr, - $lf, - $4, - $cr, - $lf, - 4, - 5, - 6, - 7, - $cr, - $lf, - $0, - $cr, - $lf, - $cr, - $lf, - ]), - equals([1, 2, 3, 4, 5, 6, 7])); + chunkedCoding.decode([ + $3, + $cr, + $lf, + 1, + 2, + 3, + $cr, + $lf, + $4, + $cr, + $lf, + 4, + 5, + 6, + 7, + $cr, + $lf, + $0, + $cr, + $lf, + $cr, + $lf, + ]), + equals([1, 2, 3, 4, 5, 6, 7]), + ); }); test('parses hex size', () { final data = Iterable.generate(0xA7).toList(); expect( - chunkedCoding.decode( - [$a, $7, $cr, $lf, ...data, $cr, $lf, $0, $cr, $lf, $cr, $lf]), - equals(data)); + chunkedCoding.decode([ + $a, + $7, + $cr, + $lf, + ...data, + $cr, + $lf, + $0, + $cr, + $lf, + $cr, + $lf, + ]), + equals(data), + ); }); test('parses capital hex size', () { final data = Iterable.generate(0xA7).toList(); expect( - chunkedCoding.decode( - [$A, $7, $cr, $lf, ...data, $cr, $lf, $0, $cr, $lf, $cr, $lf]), - equals(data)); + chunkedCoding.decode([ + $A, + $7, + $cr, + $lf, + ...data, + $cr, + $lf, + $0, + $cr, + $lf, + $cr, + $lf, + ]), + equals(data), + ); }); test('parses an empty message', () { @@ -208,48 +251,65 @@ void main() { test('that ends after LF', () { expect( - () => chunkedCoding.decode([$a, $cr, $lf]), throwsFormatException); + () => chunkedCoding.decode([$a, $cr, $lf]), + throwsFormatException, + ); }); test('that ends after insufficient bytes', () { - expect(() => chunkedCoding.decode([$a, $cr, $lf, 1, 2, 3]), - throwsFormatException); + expect( + () => chunkedCoding.decode([$a, $cr, $lf, 1, 2, 3]), + throwsFormatException, + ); }); test("that ends after a chunk's bytes", () { - expect(() => chunkedCoding.decode([$1, $cr, $lf, 1]), - throwsFormatException); + expect( + () => chunkedCoding.decode([$1, $cr, $lf, 1]), + throwsFormatException, + ); }); test("that ends after a chunk's CR", () { - expect(() => chunkedCoding.decode([$1, $cr, $lf, 1, $cr]), - throwsFormatException); + expect( + () => chunkedCoding.decode([$1, $cr, $lf, 1, $cr]), + throwsFormatException, + ); }); test("that ends atfter a chunk's LF", () { - expect(() => chunkedCoding.decode([$1, $cr, $lf, 1, $cr, $lf]), - throwsFormatException); + expect( + () => chunkedCoding.decode([$1, $cr, $lf, 1, $cr, $lf]), + throwsFormatException, + ); }); test('that ends after the empty chunk', () { expect( - () => chunkedCoding.decode([$0, $cr, $lf]), throwsFormatException); + () => chunkedCoding.decode([$0, $cr, $lf]), + throwsFormatException, + ); }); test('that ends after the closing CR', () { - expect(() => chunkedCoding.decode([$0, $cr, $lf, $cr]), - throwsFormatException); + expect( + () => chunkedCoding.decode([$0, $cr, $lf, $cr]), + throwsFormatException, + ); }); test('with a chunk without a size', () { - expect(() => chunkedCoding.decode([$cr, $lf, $0, $cr, $lf, $cr, $lf]), - throwsFormatException); + expect( + () => chunkedCoding.decode([$cr, $lf, $0, $cr, $lf, $cr, $lf]), + throwsFormatException, + ); }); test('with a chunk with a non-hex size', () { expect( - () => chunkedCoding.decode([$q, $cr, $lf, $0, $cr, $lf, $cr, $lf]), - throwsFormatException); + () => chunkedCoding.decode([$q, $cr, $lf, $0, $cr, $lf, $cr, $lf]), + throwsFormatException, + ); }); }); @@ -266,27 +326,30 @@ void main() { test('decodes each chunk of bytes', () { sink.add([$4, $cr, $lf, 1, 2, 3, 4, $cr, $lf]); expect( - results, - equals([ - [1, 2, 3, 4] - ])); + results, + equals([ + [1, 2, 3, 4], + ]), + ); sink.add([$3, $cr, $lf, 5, 6, 7, $cr, $lf]); expect( - results, - equals([ - [1, 2, 3, 4], - [5, 6, 7] - ])); + results, + equals([ + [1, 2, 3, 4], + [5, 6, 7], + ]), + ); sink.add([$0, $cr, $lf, $cr, $lf]); sink.close(); expect( - results, - equals([ - [1, 2, 3, 4], - [5, 6, 7] - ])); + results, + equals([ + [1, 2, 3, 4], + [5, 6, 7], + ]), + ); }); test('handles empty chunks', () { @@ -295,25 +358,28 @@ void main() { sink.add([$3, $cr, $lf, 1, 2, 3, $cr, $lf]); expect( - results, - equals([ - [1, 2, 3] - ])); + results, + equals([ + [1, 2, 3], + ]), + ); sink.add([]); expect( - results, - equals([ - [1, 2, 3] - ])); + results, + equals([ + [1, 2, 3], + ]), + ); sink.add([$0, $cr, $lf, $cr, $lf]); sink.close(); expect( - results, - equals([ - [1, 2, 3] - ])); + results, + equals([ + [1, 2, 3], + ]), + ); }); test('throws if the sink is closed before the message is done', () { @@ -337,10 +403,11 @@ void main() { sink.add([$cr, $lf, 1, 2, 3]); expect( - results, - equals([ - [1, 2, 3] - ])); + results, + equals([ + [1, 2, 3], + ]), + ); }); test('after CR', () { @@ -349,10 +416,11 @@ void main() { sink.add([$lf, 1, 2, 3]); expect( - results, - equals([ - [1, 2, 3] - ])); + results, + equals([ + [1, 2, 3], + ]), + ); }); test('after LF', () { @@ -361,78 +429,87 @@ void main() { sink.add([1, 2, 3]); expect( - results, - equals([ - [1, 2, 3] - ])); + results, + equals([ + [1, 2, 3], + ]), + ); }); test('after some bytes', () { sink.add([$3, $cr, $lf, 1, 2]); expect( - results, - equals([ - [1, 2] - ])); + results, + equals([ + [1, 2], + ]), + ); sink.add([3]); expect( - results, - equals([ - [1, 2], - [3] - ])); + results, + equals([ + [1, 2], + [3], + ]), + ); }); test('after all bytes', () { sink.add([$3, $cr, $lf, 1, 2, 3]); expect( - results, - equals([ - [1, 2, 3] - ])); + results, + equals([ + [1, 2, 3], + ]), + ); sink.add([$cr, $lf, $3, $cr, $lf, 2, 3, 4, $cr, $lf]); expect( - results, - equals([ - [1, 2, 3], - [2, 3, 4] - ])); + results, + equals([ + [1, 2, 3], + [2, 3, 4], + ]), + ); }); test('after a post-chunk CR', () { sink.add([$3, $cr, $lf, 1, 2, 3, $cr]); expect( - results, - equals([ - [1, 2, 3] - ])); + results, + equals([ + [1, 2, 3], + ]), + ); sink.add([$lf, $3, $cr, $lf, 2, 3, 4, $cr, $lf]); expect( - results, - equals([ - [1, 2, 3], - [2, 3, 4] - ])); + results, + equals([ + [1, 2, 3], + [2, 3, 4], + ]), + ); }); test('after a post-chunk LF', () { sink.add([$3, $cr, $lf, 1, 2, 3, $cr, $lf]); expect( - results, - equals([ - [1, 2, 3] - ])); + results, + equals([ + [1, 2, 3], + ]), + ); sink.add([$3, $cr, $lf, 2, 3, 4, $cr, $lf]); expect( - results, - equals([ - [1, 2, 3], - [2, 3, 4] - ])); + results, + equals([ + [1, 2, 3], + [2, 3, 4], + ]), + ); }); test('after empty chunk size', () { @@ -484,10 +561,11 @@ void main() { test('adds bytes from the specified slice', () { sink.addSlice([1, $3, $cr, $lf, 2, 3, 4, 5], 1, 7, false); expect( - results, - equals([ - [2, 3, 4] - ])); + results, + equals([ + [2, 3, 4], + ]), + ); }); test("doesn't decode if the slice is empty", () { @@ -502,18 +580,24 @@ void main() { group('disallows', () { test('start < 0', () { - expect(() => sink.addSlice([1, 2, 3, 4, 5], -1, 4, false), - throwsRangeError); + expect( + () => sink.addSlice([1, 2, 3, 4, 5], -1, 4, false), + throwsRangeError, + ); }); test('start > end', () { - expect(() => sink.addSlice([1, 2, 3, 4, 5], 3, 2, false), - throwsRangeError); + expect( + () => sink.addSlice([1, 2, 3, 4, 5], 3, 2, false), + throwsRangeError, + ); }); test('end > length', () { - expect(() => sink.addSlice([1, 2, 3, 4, 5], 1, 10, false), - throwsRangeError); + expect( + () => sink.addSlice([1, 2, 3, 4, 5], 1, 10, false), + throwsRangeError, + ); }); }); }); diff --git a/pkgs/http_parser/test/example_test.dart b/pkgs/http_parser/test/example_test.dart index 08dca8bac6..5732b4221b 100644 --- a/pkgs/http_parser/test/example_test.dart +++ b/pkgs/http_parser/test/example_test.dart @@ -8,13 +8,10 @@ import 'package:test/test.dart'; void main() { test('validate example', () { - final result = Process.runSync( - Platform.executable, - [ - '--enable-experiment=non-nullable', - 'example/example.dart', - ], - ); + final result = Process.runSync(Platform.executable, [ + '--enable-experiment=non-nullable', + 'example/example.dart', + ]); expect(result.exitCode, 0); expect(result.stdout, ''' diff --git a/pkgs/http_parser/test/http_date_test.dart b/pkgs/http_parser/test/http_date_test.dart index d117663f50..6950ed4705 100644 --- a/pkgs/http_parser/test/http_date_test.dart +++ b/pkgs/http_parser/test/http_date_test.dart @@ -52,94 +52,144 @@ void main() { }); test('whitespace is required', () { - expect(() => parseHttpDate('Sun,06 Nov 1994 08:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sun, 06Nov 1994 08:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sun, 06 Nov1994 08:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sun, 06 Nov 199408:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sun, 06 Nov 1994 08:49:37GMT'), - throwsFormatException); + expect( + () => parseHttpDate('Sun,06 Nov 1994 08:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun, 06Nov 1994 08:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun, 06 Nov1994 08:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun, 06 Nov 199408:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun, 06 Nov 1994 08:49:37GMT'), + throwsFormatException, + ); }); test('exactly one space is required', () { - expect(() => parseHttpDate('Sun, 06 Nov 1994 08:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sun, 06 Nov 1994 08:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sun, 06 Nov 1994 08:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sun, 06 Nov 1994 08:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sun, 06 Nov 1994 08:49:37 GMT'), - throwsFormatException); + expect( + () => parseHttpDate('Sun, 06 Nov 1994 08:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun, 06 Nov 1994 08:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun, 06 Nov 1994 08:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun, 06 Nov 1994 08:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun, 06 Nov 1994 08:49:37 GMT'), + throwsFormatException, + ); }); test('requires precise number lengths', () { - expect(() => parseHttpDate('Sun, 6 Nov 1994 08:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sun, 06 Nov 94 08:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sun, 06 Nov 1994 8:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sun, 06 Nov 1994 08:9:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sun, 06 Nov 1994 08:49:7 GMT'), - throwsFormatException); + expect( + () => parseHttpDate('Sun, 6 Nov 1994 08:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun, 06 Nov 94 08:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun, 06 Nov 1994 8:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun, 06 Nov 1994 08:9:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun, 06 Nov 1994 08:49:7 GMT'), + throwsFormatException, + ); }); test('requires reasonable numbers', () { - expect(() => parseHttpDate('Sun, 00 Nov 1994 08:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sun, 31 Nov 1994 08:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sun, 32 Aug 1994 08:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sun, 06 Nov 1994 24:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sun, 06 Nov 1994 08:60:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sun, 06 Nov 1994 08:49:60 GMT'), - throwsFormatException); + expect( + () => parseHttpDate('Sun, 00 Nov 1994 08:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun, 31 Nov 1994 08:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun, 32 Aug 1994 08:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun, 06 Nov 1994 24:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun, 06 Nov 1994 08:60:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun, 06 Nov 1994 08:49:60 GMT'), + throwsFormatException, + ); }); test('only allows short weekday names', () { - expect(() => parseHttpDate('Sunday, 6 Nov 1994 08:49:37 GMT'), - throwsFormatException); + expect( + () => parseHttpDate('Sunday, 6 Nov 1994 08:49:37 GMT'), + throwsFormatException, + ); }); test('only allows short month names', () { - expect(() => parseHttpDate('Sun, 6 November 1994 08:49:37 GMT'), - throwsFormatException); + expect( + () => parseHttpDate('Sun, 6 November 1994 08:49:37 GMT'), + throwsFormatException, + ); }); test('only allows GMT', () { - expect(() => parseHttpDate('Sun, 6 Nov 1994 08:49:37 PST'), - throwsFormatException); + expect( + () => parseHttpDate('Sun, 6 Nov 1994 08:49:37 PST'), + throwsFormatException, + ); }); test('disallows trailing whitespace', () { - expect(() => parseHttpDate('Sun, 6 Nov 1994 08:49:37 GMT '), - throwsFormatException); + expect( + () => parseHttpDate('Sun, 6 Nov 1994 08:49:37 GMT '), + throwsFormatException, + ); }); }); @@ -156,82 +206,124 @@ void main() { }); test('whitespace is required', () { - expect(() => parseHttpDate('Sunday,06-Nov-94 08:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sunday, 06-Nov-9408:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sunday, 06-Nov-94 08:49:37GMT'), - throwsFormatException); + expect( + () => parseHttpDate('Sunday,06-Nov-94 08:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sunday, 06-Nov-9408:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sunday, 06-Nov-94 08:49:37GMT'), + throwsFormatException, + ); }); test('exactly one space is required', () { - expect(() => parseHttpDate('Sunday, 06-Nov-94 08:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sunday, 06-Nov-94 08:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sunday, 06-Nov-94 08:49:37 GMT'), - throwsFormatException); + expect( + () => parseHttpDate('Sunday, 06-Nov-94 08:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sunday, 06-Nov-94 08:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sunday, 06-Nov-94 08:49:37 GMT'), + throwsFormatException, + ); }); test('requires precise number lengths', () { - expect(() => parseHttpDate('Sunday, 6-Nov-94 08:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sunday, 06-Nov-1994 08:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sunday, 06-Nov-94 8:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sunday, 06-Nov-94 08:9:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sunday, 06-Nov-94 08:49:7 GMT'), - throwsFormatException); + expect( + () => parseHttpDate('Sunday, 6-Nov-94 08:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sunday, 06-Nov-1994 08:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sunday, 06-Nov-94 8:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sunday, 06-Nov-94 08:9:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sunday, 06-Nov-94 08:49:7 GMT'), + throwsFormatException, + ); }); test('requires reasonable numbers', () { - expect(() => parseHttpDate('Sunday, 00-Nov-94 08:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sunday, 31-Nov-94 08:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sunday, 32-Aug-94 08:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sunday, 06-Nov-94 24:49:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sunday, 06-Nov-94 08:60:37 GMT'), - throwsFormatException); - - expect(() => parseHttpDate('Sunday, 06-Nov-94 08:49:60 GMT'), - throwsFormatException); + expect( + () => parseHttpDate('Sunday, 00-Nov-94 08:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sunday, 31-Nov-94 08:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sunday, 32-Aug-94 08:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sunday, 06-Nov-94 24:49:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sunday, 06-Nov-94 08:60:37 GMT'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sunday, 06-Nov-94 08:49:60 GMT'), + throwsFormatException, + ); }); test('only allows long weekday names', () { - expect(() => parseHttpDate('Sun, 6-Nov-94 08:49:37 GMT'), - throwsFormatException); + expect( + () => parseHttpDate('Sun, 6-Nov-94 08:49:37 GMT'), + throwsFormatException, + ); }); test('only allows short month names', () { - expect(() => parseHttpDate('Sunday, 6-November-94 08:49:37 GMT'), - throwsFormatException); + expect( + () => parseHttpDate('Sunday, 6-November-94 08:49:37 GMT'), + throwsFormatException, + ); }); test('only allows GMT', () { - expect(() => parseHttpDate('Sunday, 6-Nov-94 08:49:37 PST'), - throwsFormatException); + expect( + () => parseHttpDate('Sunday, 6-Nov-94 08:49:37 PST'), + throwsFormatException, + ); }); test('disallows trailing whitespace', () { - expect(() => parseHttpDate('Sunday, 6-Nov-94 08:49:37 GMT '), - throwsFormatException); + expect( + () => parseHttpDate('Sunday, 6-Nov-94 08:49:37 GMT '), + throwsFormatException, + ); }); }); @@ -259,86 +351,132 @@ void main() { }); test('whitespace is required', () { - expect(() => parseHttpDate('SunNov 6 08:49:37 1994'), - throwsFormatException); - - expect(() => parseHttpDate('Sun Nov6 08:49:37 1994'), - throwsFormatException); - - expect(() => parseHttpDate('Sun Nov 608:49:37 1994'), - throwsFormatException); - - expect(() => parseHttpDate('Sun Nov 6 08:49:371994'), - throwsFormatException); + expect( + () => parseHttpDate('SunNov 6 08:49:37 1994'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun Nov6 08:49:37 1994'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun Nov 608:49:37 1994'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun Nov 6 08:49:371994'), + throwsFormatException, + ); }); test('the right amount of whitespace is required', () { - expect(() => parseHttpDate('Sun Nov 6 08:49:37 1994'), - throwsFormatException); - - expect(() => parseHttpDate('Sun Nov 6 08:49:37 1994'), - throwsFormatException); - - expect(() => parseHttpDate('Sun Nov 6 08:49:37 1994'), - throwsFormatException); - - expect(() => parseHttpDate('Sun Nov 6 08:49:37 1994'), - throwsFormatException); - - expect(() => parseHttpDate('Sun Nov 6 08:49:37 1994'), - throwsFormatException); + expect( + () => parseHttpDate('Sun Nov 6 08:49:37 1994'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun Nov 6 08:49:37 1994'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun Nov 6 08:49:37 1994'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun Nov 6 08:49:37 1994'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun Nov 6 08:49:37 1994'), + throwsFormatException, + ); }); test('requires precise number lengths', () { - expect(() => parseHttpDate('Sun Nov 016 08:49:37 1994'), - throwsFormatException); - - expect(() => parseHttpDate('Sun Nov 6 8:49:37 1994'), - throwsFormatException); - - expect(() => parseHttpDate('Sun Nov 6 08:9:37 1994'), - throwsFormatException); - - expect(() => parseHttpDate('Sun Nov 6 08:49:7 1994'), - throwsFormatException); - - expect(() => parseHttpDate('Sun Nov 6 08:49:37 94'), - throwsFormatException); + expect( + () => parseHttpDate('Sun Nov 016 08:49:37 1994'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun Nov 6 8:49:37 1994'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun Nov 6 08:9:37 1994'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun Nov 6 08:49:7 1994'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun Nov 6 08:49:37 94'), + throwsFormatException, + ); }); test('requires reasonable numbers', () { - expect(() => parseHttpDate('Sun Nov 0 08:49:37 1994'), - throwsFormatException); - - expect(() => parseHttpDate('Sun Nov 31 08:49:37 1994'), - throwsFormatException); - - expect(() => parseHttpDate('Sun Aug 32 08:49:37 1994'), - throwsFormatException); - - expect(() => parseHttpDate('Sun Nov 6 24:49:37 1994'), - throwsFormatException); - - expect(() => parseHttpDate('Sun Nov 6 08:60:37 1994'), - throwsFormatException); - - expect(() => parseHttpDate('Sun Nov 6 08:49:60 1994'), - throwsFormatException); + expect( + () => parseHttpDate('Sun Nov 0 08:49:37 1994'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun Nov 31 08:49:37 1994'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun Aug 32 08:49:37 1994'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun Nov 6 24:49:37 1994'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun Nov 6 08:60:37 1994'), + throwsFormatException, + ); + + expect( + () => parseHttpDate('Sun Nov 6 08:49:60 1994'), + throwsFormatException, + ); }); test('only allows short weekday names', () { - expect(() => parseHttpDate('Sunday Nov 0 08:49:37 1994'), - throwsFormatException); + expect( + () => parseHttpDate('Sunday Nov 0 08:49:37 1994'), + throwsFormatException, + ); }); test('only allows short month names', () { - expect(() => parseHttpDate('Sun November 0 08:49:37 1994'), - throwsFormatException); + expect( + () => parseHttpDate('Sun November 0 08:49:37 1994'), + throwsFormatException, + ); }); test('disallows trailing whitespace', () { - expect(() => parseHttpDate('Sun November 0 08:49:37 1994 '), - throwsFormatException); + expect( + () => parseHttpDate('Sun November 0 08:49:37 1994 '), + throwsFormatException, + ); }); }); }); diff --git a/pkgs/http_parser/test/media_type_test.dart b/pkgs/http_parser/test/media_type_test.dart index 9a4226c67b..5b216d9e8b 100644 --- a/pkgs/http_parser/test/media_type_test.dart +++ b/pkgs/http_parser/test/media_type_test.dart @@ -47,24 +47,35 @@ void main() { test('disallows whitespace around the equals', () { expect( - () => MediaType.parse('text/plain; foo =bar'), throwsFormatException); + () => MediaType.parse('text/plain; foo =bar'), + throwsFormatException, + ); expect( - () => MediaType.parse('text/plain; foo= bar'), throwsFormatException); + () => MediaType.parse('text/plain; foo= bar'), + throwsFormatException, + ); }); test('disallows separators in the parameters', () { expect( - () => MediaType.parse('text/plain; fo:o=bar'), throwsFormatException); + () => MediaType.parse('text/plain; fo:o=bar'), + throwsFormatException, + ); expect( - () => MediaType.parse('text/plain; foo=b@ar'), throwsFormatException); + () => MediaType.parse('text/plain; foo=b@ar'), + throwsFormatException, + ); }); test('parses quoted parameters', () { - final type = - MediaType.parse(r'text/plain; foo="bar space"; baz="bang\\escape"'); + final type = MediaType.parse( + r'text/plain; foo="bar space"; baz="bang\\escape"', + ); expect(type.mimeType, equals('text/plain')); expect( - type.parameters, equals({'foo': 'bar space', 'baz': r'bang\escape'})); + type.parameters, + equals({'foo': 'bar space', 'baz': r'bang\escape'}), + ); }); test('lower-cases type and subtype', () { @@ -111,8 +122,9 @@ void main() { test('[parameters] overrides and adds to existing parameters', () { expect( - type.change(parameters: {'foo': 'zap', 'qux': 'fblthp'}).parameters, - equals({'foo': 'zap', 'baz': 'bang', 'qux': 'fblthp'})); + type.change(parameters: {'foo': 'zap', 'qux': 'fblthp'}).parameters, + equals({'foo': 'zap', 'baz': 'bang', 'qux': 'fblthp'}), + ); }); test('[clearParameters] removes existing parameters', () { @@ -120,19 +132,25 @@ void main() { }); test('[clearParameters] with [parameters] removes before adding', () { - final newType = - type.change(parameters: {'foo': 'zap'}, clearParameters: true); + final newType = type.change( + parameters: {'foo': 'zap'}, + clearParameters: true, + ); expect(newType.parameters, equals({'foo': 'zap'})); }); test('[type] with [mimeType] is illegal', () { - expect(() => type.change(type: 'new', mimeType: 'image/png'), - throwsArgumentError); + expect( + () => type.change(type: 'new', mimeType: 'image/png'), + throwsArgumentError, + ); }); test('[subtype] with [mimeType] is illegal', () { - expect(() => type.change(subtype: 'new', mimeType: 'image/png'), - throwsArgumentError); + expect( + () => type.change(subtype: 'new', mimeType: 'image/png'), + throwsArgumentError, + ); }); }); @@ -142,24 +160,31 @@ void main() { }); test('serializes a token parameter as a token', () { - expect(MediaType('text', 'plain', {'foo': 'bar'}).toString(), - equals('text/plain; foo=bar')); + expect( + MediaType('text', 'plain', {'foo': 'bar'}).toString(), + equals('text/plain; foo=bar'), + ); }); test('serializes a non-token parameter as a quoted string', () { - expect(MediaType('text', 'plain', {'foo': 'bar baz'}).toString(), - equals('text/plain; foo="bar baz"')); + expect( + MediaType('text', 'plain', {'foo': 'bar baz'}).toString(), + equals('text/plain; foo="bar baz"'), + ); }); test('escapes a quoted string as necessary', () { - expect(MediaType('text', 'plain', {'foo': 'bar"\x7Fbaz'}).toString(), - equals('text/plain; foo="bar\\"\\\x7Fbaz"')); + expect( + MediaType('text', 'plain', {'foo': 'bar"\x7Fbaz'}).toString(), + equals('text/plain; foo="bar\\"\\\x7Fbaz"'), + ); }); test('serializes multiple parameters', () { expect( - MediaType('text', 'plain', {'foo': 'bar', 'baz': 'bang'}).toString(), - equals('text/plain; foo=bar; baz=bang')); + MediaType('text', 'plain', {'foo': 'bar', 'baz': 'bang'}).toString(), + equals('text/plain; foo=bar; baz=bang'), + ); }); }); } diff --git a/pkgs/http_parser/test/scan_test.dart b/pkgs/http_parser/test/scan_test.dart index a7710775f2..bb5de6bd6d 100644 --- a/pkgs/http_parser/test/scan_test.dart +++ b/pkgs/http_parser/test/scan_test.dart @@ -11,11 +11,14 @@ void main() { test('no open quote', () { final scanner = StringScanner('test"'); expect( - () => expectQuotedString(scanner), - throwsA(isA() + () => expectQuotedString(scanner), + throwsA( + isA() .having((e) => e.offset, 'offset', 0) .having((e) => e.message, 'message', 'expected quoted string.') - .having((e) => e.source, 'source', 'test"'))); + .having((e) => e.source, 'source', 'test"'), + ), + ); expect(scanner.isDone, isFalse); expect(scanner.lastMatch, null); expect(scanner.position, 0); @@ -24,11 +27,14 @@ void main() { test('no close quote', () { final scanner = StringScanner('"test'); expect( - () => expectQuotedString(scanner), - throwsA(isA() + () => expectQuotedString(scanner), + throwsA( + isA() .having((e) => e.offset, 'offset', 0) .having((e) => e.message, 'message', 'expected quoted string.') - .having((e) => e.source, 'source', '"test'))); + .having((e) => e.source, 'source', '"test'), + ), + ); expect(scanner.isDone, isFalse); expect(scanner.lastMatch, null); expect(scanner.position, 0); @@ -53,11 +59,14 @@ void main() { test(r'bare \', () { final scanner = StringScanner(r'"bare: \"'); expect( - () => expectQuotedString(scanner), - throwsA(isA() + () => expectQuotedString(scanner), + throwsA( + isA() .having((e) => e.offset, 'offset', 0) .having((e) => e.message, 'message', 'expected quoted string.') - .having((e) => e.source, 'source', r'"bare: \"'))); + .having((e) => e.source, 'source', r'"bare: \"'), + ), + ); expect(scanner.isDone, isFalse); expect(scanner.lastMatch, null); expect(scanner.position, 0); diff --git a/pkgs/http_profile/lib/src/http_client_request_profile.dart b/pkgs/http_profile/lib/src/http_client_request_profile.dart index c928735d44..e59495cf6e 100644 --- a/pkgs/http_profile/lib/src/http_client_request_profile.dart +++ b/pkgs/http_profile/lib/src/http_client_request_profile.dart @@ -14,20 +14,21 @@ final class HttpProfileRequestEvent { String get name => _name; HttpProfileRequestEvent({required DateTime timestamp, required String name}) - : _timestamp = timestamp.microsecondsSinceEpoch, - _name = name; + : _timestamp = timestamp.microsecondsSinceEpoch, + _name = name; static HttpProfileRequestEvent _fromJson(Map json) => HttpProfileRequestEvent( - timestamp: - DateTime.fromMicrosecondsSinceEpoch(json['timestamp'] as int), + timestamp: DateTime.fromMicrosecondsSinceEpoch( + json['timestamp'] as int, + ), name: json['event'] as String, ); Map _toJson() => { - 'timestamp': _timestamp, - 'event': _name, - }; + 'timestamp': _timestamp, + 'event': _name, + }; } /// A record of debugging information about an HTTP request. @@ -72,10 +73,11 @@ final class HttpClientRequestProfile { } /// An unmodifiable list containing the events related to the request. - List get events => - UnmodifiableListView((_data['events'] as List>).map( - HttpProfileRequestEvent._fromJson, - )); + List get events => UnmodifiableListView( + (_data['events'] as List>).map( + HttpProfileRequestEvent._fromJson, + ), + ); /// Information about the networking connection used. /// @@ -96,7 +98,7 @@ final class HttpClientRequestProfile { /// // Invalid /// profile?.connectionInfo?['localPort'] = 1285; /// ``` - set connectionInfo(Map? value) { + set connectionInfo(Map? value) { _updated(); if (value == null) { requestData._requestData.remove('connectionInfo'); @@ -114,13 +116,12 @@ final class HttpClientRequestProfile { } } - Map? get connectionInfo => + Map? get connectionInfo => requestData._requestData['connectionInfo'] == null - ? null - : UnmodifiableMapView( - requestData._requestData['connectionInfo'] - as Map, - ); + ? null + : UnmodifiableMapView( + requestData._requestData['connectionInfo'] as Map, + ); /// Details about the request. late final HttpProfileRequestData requestData; @@ -147,13 +148,14 @@ final class HttpClientRequestProfile { responseData = HttpProfileResponseData._(_data, _updated); _data['requestBodyBytes'] = []; requestData._body.stream.listen( - (final bytes) => (_data['requestBodyBytes'] as List).addAll(bytes), - onError: (e) {}); + (final bytes) => (_data['requestBodyBytes'] as List).addAll(bytes), + onError: (e) {}, + ); _data['responseBodyBytes'] = []; responseData._body.stream.listen( - (final bytes) => - (_data['responseBodyBytes'] as List).addAll(bytes), - onError: (e) {}); + (final bytes) => (_data['responseBodyBytes'] as List).addAll(bytes), + onError: (e) {}, + ); // This entry is needed to support the updatedSince parameter of // ext.dart.io.getHttpProfile. _updated(); diff --git a/pkgs/http_profile/lib/src/http_profile_request_data.dart b/pkgs/http_profile/lib/src/http_profile_request_data.dart index 60b1d8e8fe..26109f49a0 100644 --- a/pkgs/http_profile/lib/src/http_profile_request_data.dart +++ b/pkgs/http_profile/lib/src/http_profile_request_data.dart @@ -23,10 +23,10 @@ final class HttpProfileProxyData { String? username, bool? isDirect, int? port, - }) : _host = host, - _username = username, - _isDirect = isDirect, - _port = port; + }) : _host = host, + _username = username, + _isDirect = isDirect, + _port = port; static HttpProfileProxyData _fromJson(Map json) => HttpProfileProxyData( @@ -37,11 +37,11 @@ final class HttpProfileProxyData { ); Map _toJson() => { - if (_host != null) 'host': _host, - if (_username != null) 'username': _username, - if (_isDirect != null) 'isDirect': _isDirect, - if (_port != null) 'port': _port, - }; + if (_host != null) 'host': _host, + if (_username != null) 'username': _username, + if (_isDirect != null) 'isDirect': _isDirect, + if (_port != null) 'port': _port, + }; } /// Describes details about an HTTP request. @@ -144,7 +144,8 @@ final class HttpProfileRequestData { Map>? get headers => _requestData['headers'] == null ? null : UnmodifiableMapView( - _requestData['headers'] as Map>); + _requestData['headers'] as Map>, + ); /// The maximum number of redirects allowed during the request. set maxRedirects(int? value) { @@ -189,8 +190,8 @@ final class HttpProfileRequestData { /// The time at which the request was initiated. DateTime get startTime => DateTime.fromMicrosecondsSinceEpoch( - _data['requestStartTimestamp'] as int, - ); + _data['requestStartTimestamp'] as int, + ); /// The time when the request was fully sent. DateTime? get endTime => _data['requestEndTimestamp'] == null @@ -203,15 +204,14 @@ final class HttpProfileRequestData { String? get error => _requestData['error'] == null ? null : _requestData['error'] as String; - HttpProfileRequestData._( - this._data, - this._updated, - ); + HttpProfileRequestData._(this._data, this._updated); void _checkAndUpdate() { if (_isClosed) { - throw StateError('HttpProfileResponseData has been closed, no further ' - 'updates are allowed'); + throw StateError( + 'HttpProfileResponseData has been closed, no further ' + 'updates are allowed', + ); } _updated(); } diff --git a/pkgs/http_profile/lib/src/http_profile_response_data.dart b/pkgs/http_profile/lib/src/http_profile_response_data.dart index 7aead9e068..1367e78e64 100644 --- a/pkgs/http_profile/lib/src/http_profile_response_data.dart +++ b/pkgs/http_profile/lib/src/http_profile_response_data.dart @@ -20,9 +20,9 @@ class HttpProfileRedirectData { required int statusCode, required String method, required String location, - }) : _statusCode = statusCode, - _method = method, - _location = location; + }) : _statusCode = statusCode, + _method = method, + _location = location; static HttpProfileRedirectData _fromJson(Map json) => HttpProfileRedirectData( @@ -32,10 +32,10 @@ class HttpProfileRedirectData { ); Map _toJson() => { - 'statusCode': _statusCode, - 'method': _method, - 'location': _location, - }; + 'statusCode': _statusCode, + 'method': _method, + 'location': _location, + }; @override bool operator ==(Object other) => @@ -66,15 +66,18 @@ final class HttpProfileResponseData { /// Records a redirect that the connection went through. void addRedirect(HttpProfileRedirectData redirect) { _checkAndUpdate(); - (_responseData['redirects'] as List>) - .add(redirect._toJson()); + (_responseData['redirects'] as List>).add( + redirect._toJson(), + ); } /// An unmodifiable list containing the redirects that the connection went /// through. List get redirects => UnmodifiableListView( - (_responseData['redirects'] as List>) - .map(HttpProfileRedirectData._fromJson)); + (_responseData['redirects'] as List>).map( + HttpProfileRedirectData._fromJson, + ), + ); /// A sink that can be used to record the body of the response. /// @@ -142,7 +145,8 @@ final class HttpProfileResponseData { Map>? get headers => _responseData['headers'] == null ? null : UnmodifiableMapView( - _responseData['headers'] as Map>); + _responseData['headers'] as Map>, + ); // The compression state of the response. // @@ -160,9 +164,10 @@ final class HttpProfileResponseData { HttpClientResponseCompressionState? get compressionState => _responseData['compressionState'] == null - ? null - : HttpClientResponseCompressionState.values - .firstWhere((v) => v.name == _responseData['compressionState']); + ? null + : HttpClientResponseCompressionState.values.firstWhere( + (v) => v.name == _responseData['compressionState'], + ); // The reason phrase associated with the response e.g. "OK". set reasonPhrase(String? value) { @@ -247,17 +252,16 @@ final class HttpProfileResponseData { String? get error => _responseData['error'] == null ? null : _responseData['error'] as String; - HttpProfileResponseData._( - this._data, - this._updated, - ) { + HttpProfileResponseData._(this._data, this._updated) { _responseData['redirects'] = >[]; } void _checkAndUpdate() { if (_isClosed) { - throw StateError('HttpProfileResponseData has been closed, no further ' - 'updates are allowed'); + throw StateError( + 'HttpProfileResponseData has been closed, no further ' + 'updates are allowed', + ); } _updated(); } diff --git a/pkgs/http_profile/lib/src/utils.dart b/pkgs/http_profile/lib/src/utils.dart index 780bb446b8..cfb906ade2 100644 --- a/pkgs/http_profile/lib/src/utils.dart +++ b/pkgs/http_profile/lib/src/utils.dart @@ -4,7 +4,8 @@ /// "token" as defined in RFC 2616, 2.2 /// See https://datatracker.ietf.org/doc/html/rfc2616#section-2.2 -const _tokenChars = r"!#$%&'*+\-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`" +const _tokenChars = + r"!#$%&'*+\-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`" 'abcdefghijklmnopqrstuvwxyz|~'; /// Splits comma-separated header values. diff --git a/pkgs/http_profile/pubspec.yaml b/pkgs/http_profile/pubspec.yaml index 1184789c8a..9eedfbcfd3 100644 --- a/pkgs/http_profile/pubspec.yaml +++ b/pkgs/http_profile/pubspec.yaml @@ -6,7 +6,7 @@ repository: https://github.com/dart-lang/http/tree/master/pkgs/http_profile version: 0.1.1-wip environment: - sdk: ^3.4.0 + sdk: ^3.9.0 dev_dependencies: dart_flutter_team_lints: ^3.0.0 diff --git a/pkgs/http_profile/test/close_test.dart b/pkgs/http_profile/test/close_test.dart index ffa3579917..71e3ff945d 100644 --- a/pkgs/http_profile/test/close_test.dart +++ b/pkgs/http_profile/test/close_test.dart @@ -32,8 +32,10 @@ void main() { expect( backingMap['requestEndTimestamp'], - closeTo(DateTime.now().microsecondsSinceEpoch, - Duration.microsecondsPerSecond), + closeTo( + DateTime.now().microsecondsSinceEpoch, + Duration.microsecondsPerSecond, + ), ); }); @@ -59,10 +61,7 @@ void main() { test('then mutate', () async { await profile.requestData.close(); - expect( - () => profile.requestData.contentLength = 5, - throwsStateError, - ); + expect(() => profile.requestData.contentLength = 5, throwsStateError); }); }); @@ -79,8 +78,10 @@ void main() { expect( responseData['endTime'], - closeTo(DateTime.now().microsecondsSinceEpoch, - Duration.microsecondsPerSecond), + closeTo( + DateTime.now().microsecondsSinceEpoch, + Duration.microsecondsPerSecond, + ), ); }); @@ -106,10 +107,7 @@ void main() { test('then mutate', () async { await profile.responseData.close(); - expect( - () => profile.responseData.contentLength = 5, - throwsStateError, - ); + expect(() => profile.responseData.contentLength = 5, throwsStateError); }); }); } diff --git a/pkgs/http_profile/test/http_client_request_profile_test.dart b/pkgs/http_profile/test/http_client_request_profile_test.dart index 7422bffc20..ba817778e1 100644 --- a/pkgs/http_profile/test/http_client_request_profile_test.dart +++ b/pkgs/http_profile/test/http_client_request_profile_test.dart @@ -59,10 +59,12 @@ void main() { expect(profile.events, isEmpty); - profile.addEvent(HttpProfileRequestEvent( - timestamp: DateTime.parse('2024-03-22'), - name: 'an event', - )); + profile.addEvent( + HttpProfileRequestEvent( + timestamp: DateTime.parse('2024-03-22'), + name: 'an event', + ), + ); expect(eventsFromBackingMap.length, 1); final eventFromBackingMap = eventsFromBackingMap.last; @@ -88,7 +90,7 @@ void main() { profile.connectionInfo = { 'localPort': 1285, 'remotePort': 443, - 'connectionPoolId': '21x23' + 'connectionPoolId': '21x23', }; final connectionInfoFromRequestData = @@ -112,7 +114,7 @@ void main() { profile.connectionInfo = { 'localPort': 1285, 'remotePort': 443, - 'connectionPoolId': '21x23' + 'connectionPoolId': '21x23', }; final requestData = backingMap['requestData'] as Map; diff --git a/pkgs/http_profile/test/http_profile_request_data_test.dart b/pkgs/http_profile/test/http_profile_request_data_test.dart index 500cd95f52..fc41ca04f4 100644 --- a/pkgs/http_profile/test/http_profile_request_data_test.dart +++ b/pkgs/http_profile/test/http_profile_request_data_test.dart @@ -26,8 +26,7 @@ void main() { backingMap = profileBackingMaps.lastOrNull!; }); - test( - 'mandatory fields are populated when an HttpClientRequestProfile is ' + test('mandatory fields are populated when an HttpClientRequestProfile is ' 'constructed', () async { expect(backingMap['id'], isNotNull); expect(backingMap['isolateId'], Service.getIsolateId(Isolate.current)!); @@ -56,17 +55,19 @@ void main() { expect(profile.requestData.endTime, DateTime.parse('2024-03-23')); }); - test('populating HttpClientRequestProfile.requestData.contentLength', - () async { - final requestData = backingMap['requestData'] as Map; - expect(requestData['contentLength'], isNull); - expect(profile.requestData.contentLength, isNull); + test( + 'populating HttpClientRequestProfile.requestData.contentLength', + () async { + final requestData = backingMap['requestData'] as Map; + expect(requestData['contentLength'], isNull); + expect(profile.requestData.contentLength, isNull); - profile.requestData.contentLength = 1200; + profile.requestData.contentLength = 1200; - expect(requestData['contentLength'], 1200); - expect(profile.requestData.contentLength, 1200); - }); + expect(requestData['contentLength'], 1200); + expect(profile.requestData.contentLength, 1200); + }, + ); test('HttpClientRequestProfile.requestData.contentLength = null', () async { final requestData = backingMap['requestData'] as Map; @@ -91,17 +92,19 @@ void main() { expect(profile.requestData.error, 'failed'); }); - test('populating HttpClientRequestProfile.requestData.followRedirects', - () async { - final requestData = backingMap['requestData'] as Map; - expect(requestData['followRedirects'], isNull); - expect(profile.requestData.followRedirects, isNull); + test( + 'populating HttpClientRequestProfile.requestData.followRedirects', + () async { + final requestData = backingMap['requestData'] as Map; + expect(requestData['followRedirects'], isNull); + expect(profile.requestData.followRedirects, isNull); - profile.requestData.followRedirects = true; + profile.requestData.followRedirects = true; - expect(requestData['followRedirects'], true); - expect(profile.requestData.followRedirects, true); - }); + expect(requestData['followRedirects'], true); + expect(profile.requestData.followRedirects, true); + }, + ); test('HttpClientRequestProfile.requestData.followRedirects = null', () async { final requestData = backingMap['requestData'] as Map; @@ -115,139 +118,125 @@ void main() { expect(profile.requestData.followRedirects, isNull); }); - test('populating HttpClientRequestProfile.requestData.headersListValues', - () async { - final requestData = backingMap['requestData'] as Map; - expect(requestData['headers'], isNull); - expect(profile.requestData.headers, isNull); + test( + 'populating HttpClientRequestProfile.requestData.headersListValues', + () async { + final requestData = backingMap['requestData'] as Map; + expect(requestData['headers'], isNull); + expect(profile.requestData.headers, isNull); - profile.requestData.headersListValues = { - 'fruit': ['apple', 'banana', 'grape'], - 'content-length': ['0'], - }; + profile.requestData.headersListValues = { + 'fruit': ['apple', 'banana', 'grape'], + 'content-length': ['0'], + }; - expect( - requestData['headers'], - { + expect(requestData['headers'], { 'fruit': ['apple', 'banana', 'grape'], 'content-length': ['0'], - }, - ); - expect( - profile.requestData.headers, - { + }); + expect(profile.requestData.headers, { 'fruit': ['apple', 'banana', 'grape'], 'content-length': ['0'], - }, - ); - }); + }); + }, + ); - test('HttpClientRequestProfile.requestData.headersListValues = null', - () async { - final requestData = backingMap['requestData'] as Map; + test( + 'HttpClientRequestProfile.requestData.headersListValues = null', + () async { + final requestData = backingMap['requestData'] as Map; - profile.requestData.headersListValues = { - 'fruit': ['apple', 'banana', 'grape'], - 'content-length': ['0'], - }; - expect( - requestData['headers'], - { + profile.requestData.headersListValues = { 'fruit': ['apple', 'banana', 'grape'], 'content-length': ['0'], - }, - ); - expect( - profile.requestData.headers, - { + }; + expect(requestData['headers'], { 'fruit': ['apple', 'banana', 'grape'], 'content-length': ['0'], - }, - ); - - profile.requestData.headersListValues = null; - expect(requestData['headers'], isNull); - expect(profile.requestData.headers, isNull); - }); - - test('populating HttpClientRequestProfile.requestData.headersCommaValues', - () async { - final requestData = backingMap['requestData'] as Map; - expect(requestData['headers'], isNull); - expect(profile.requestData.headers, isNull); + }); + expect(profile.requestData.headers, { + 'fruit': ['apple', 'banana', 'grape'], + 'content-length': ['0'], + }); - profile.requestData.headersCommaValues = { - 'set-cookie': - // ignore: missing_whitespace_between_adjacent_strings - 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT; Path=/,,HE,=L=LO,' - 'sessionId=e8bb43229de9; Domain=foo.example.com' - }; + profile.requestData.headersListValues = null; + expect(requestData['headers'], isNull); + expect(profile.requestData.headers, isNull); + }, + ); - expect( - requestData['headers'], - { + test( + 'populating HttpClientRequestProfile.requestData.headersCommaValues', + () async { + final requestData = backingMap['requestData'] as Map; + expect(requestData['headers'], isNull); + expect(profile.requestData.headers, isNull); + + profile.requestData.headersCommaValues = { + 'set-cookie': + // ignore: missing_whitespace_between_adjacent_strings + 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT; Path=/,,HE,=L=LO,' + 'sessionId=e8bb43229de9; Domain=foo.example.com', + }; + + expect(requestData['headers'], { 'set-cookie': [ 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT; Path=/,,HE,=L=LO', - 'sessionId=e8bb43229de9; Domain=foo.example.com' - ] - }, - ); - expect( - profile.requestData.headers, - { + 'sessionId=e8bb43229de9; Domain=foo.example.com', + ], + }); + expect(profile.requestData.headers, { 'set-cookie': [ 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT; Path=/,,HE,=L=LO', - 'sessionId=e8bb43229de9; Domain=foo.example.com' - ] - }, - ); - }); - - test('HttpClientRequestProfile.requestData.headersCommaValues = null', - () async { - final requestData = backingMap['requestData'] as Map; + 'sessionId=e8bb43229de9; Domain=foo.example.com', + ], + }); + }, + ); - profile.requestData.headersCommaValues = { - 'set-cookie': - // ignore: missing_whitespace_between_adjacent_strings - 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT; Path=/,,HE,=L=LO,' - 'sessionId=e8bb43229de9; Domain=foo.example.com' - }; - expect( - requestData['headers'], - { + test( + 'HttpClientRequestProfile.requestData.headersCommaValues = null', + () async { + final requestData = backingMap['requestData'] as Map; + + profile.requestData.headersCommaValues = { + 'set-cookie': + // ignore: missing_whitespace_between_adjacent_strings + 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT; Path=/,,HE,=L=LO,' + 'sessionId=e8bb43229de9; Domain=foo.example.com', + }; + expect(requestData['headers'], { 'set-cookie': [ 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT; Path=/,,HE,=L=LO', - 'sessionId=e8bb43229de9; Domain=foo.example.com' - ] - }, - ); - expect( - profile.requestData.headers, - { + 'sessionId=e8bb43229de9; Domain=foo.example.com', + ], + }); + expect(profile.requestData.headers, { 'set-cookie': [ 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT; Path=/,,HE,=L=LO', - 'sessionId=e8bb43229de9; Domain=foo.example.com' - ] - }, - ); + 'sessionId=e8bb43229de9; Domain=foo.example.com', + ], + }); - profile.requestData.headersCommaValues = null; - expect(requestData['headers'], isNull); - expect(profile.requestData.headers, isNull); - }); + profile.requestData.headersCommaValues = null; + expect(requestData['headers'], isNull); + expect(profile.requestData.headers, isNull); + }, + ); - test('populating HttpClientRequestProfile.requestData.maxRedirects', - () async { - final requestData = backingMap['requestData'] as Map; - expect(requestData['maxRedirects'], isNull); - expect(profile.requestData.maxRedirects, isNull); + test( + 'populating HttpClientRequestProfile.requestData.maxRedirects', + () async { + final requestData = backingMap['requestData'] as Map; + expect(requestData['maxRedirects'], isNull); + expect(profile.requestData.maxRedirects, isNull); - profile.requestData.maxRedirects = 5; + profile.requestData.maxRedirects = 5; - expect(requestData['maxRedirects'], 5); - expect(profile.requestData.maxRedirects, 5); - }); + expect(requestData['maxRedirects'], 5); + expect(profile.requestData.maxRedirects, 5); + }, + ); test('HttpClientRequestProfile.requestData.maxRedirects = null', () async { final requestData = backingMap['requestData'] as Map; @@ -261,57 +250,63 @@ void main() { expect(profile.requestData.maxRedirects, isNull); }); - test('populating HttpClientRequestProfile.requestData.persistentConnection', - () async { - final requestData = backingMap['requestData'] as Map; - expect(requestData['persistentConnection'], isNull); - expect(profile.requestData.persistentConnection, isNull); - - profile.requestData.persistentConnection = true; - - expect(requestData['persistentConnection'], true); - expect(profile.requestData.persistentConnection, true); - }); + test( + 'populating HttpClientRequestProfile.requestData.persistentConnection', + () async { + final requestData = backingMap['requestData'] as Map; + expect(requestData['persistentConnection'], isNull); + expect(profile.requestData.persistentConnection, isNull); - test('HttpClientRequestProfile.requestData.persistentConnection = null', - () async { - final requestData = backingMap['requestData'] as Map; + profile.requestData.persistentConnection = true; - profile.requestData.persistentConnection = true; - expect(requestData['persistentConnection'], true); - expect(profile.requestData.persistentConnection, true); + expect(requestData['persistentConnection'], true); + expect(profile.requestData.persistentConnection, true); + }, + ); - profile.requestData.persistentConnection = null; - expect(requestData['persistentConnection'], isNull); - expect(profile.requestData.persistentConnection, isNull); - }); - - test('populating HttpClientRequestProfile.requestData.proxyDetails', - () async { - final requestData = backingMap['requestData'] as Map; - expect(requestData['proxyDetails'], isNull); - expect(profile.requestData.proxyDetails, isNull); + test( + 'HttpClientRequestProfile.requestData.persistentConnection = null', + () async { + final requestData = backingMap['requestData'] as Map; - profile.requestData.proxyDetails = HttpProfileProxyData( - host: 'https://www.example.com', - username: 'abc123', - isDirect: true, - port: 4321, - ); + profile.requestData.persistentConnection = true; + expect(requestData['persistentConnection'], true); + expect(profile.requestData.persistentConnection, true); - final proxyDetailsFromBackingMap = - requestData['proxyDetails'] as Map; - expect(proxyDetailsFromBackingMap['host'], 'https://www.example.com'); - expect(proxyDetailsFromBackingMap['username'], 'abc123'); - expect(proxyDetailsFromBackingMap['isDirect'], true); - expect(proxyDetailsFromBackingMap['port'], 4321); + profile.requestData.persistentConnection = null; + expect(requestData['persistentConnection'], isNull); + expect(profile.requestData.persistentConnection, isNull); + }, + ); - final proxyDetailsFromGetter = profile.requestData.proxyDetails!; - expect(proxyDetailsFromGetter.host, 'https://www.example.com'); - expect(proxyDetailsFromGetter.username, 'abc123'); - expect(proxyDetailsFromGetter.isDirect, true); - expect(proxyDetailsFromGetter.port, 4321); - }); + test( + 'populating HttpClientRequestProfile.requestData.proxyDetails', + () async { + final requestData = backingMap['requestData'] as Map; + expect(requestData['proxyDetails'], isNull); + expect(profile.requestData.proxyDetails, isNull); + + profile.requestData.proxyDetails = HttpProfileProxyData( + host: 'https://www.example.com', + username: 'abc123', + isDirect: true, + port: 4321, + ); + + final proxyDetailsFromBackingMap = + requestData['proxyDetails'] as Map; + expect(proxyDetailsFromBackingMap['host'], 'https://www.example.com'); + expect(proxyDetailsFromBackingMap['username'], 'abc123'); + expect(proxyDetailsFromBackingMap['isDirect'], true); + expect(proxyDetailsFromBackingMap['port'], 4321); + + final proxyDetailsFromGetter = profile.requestData.proxyDetails!; + expect(proxyDetailsFromGetter.host, 'https://www.example.com'); + expect(proxyDetailsFromGetter.username, 'abc123'); + expect(proxyDetailsFromGetter.isDirect, true); + expect(proxyDetailsFromGetter.port, 4321); + }, + ); test('HttpClientRequestProfile.requestData.proxyDetails = null', () async { final requestData = backingMap['requestData'] as Map; diff --git a/pkgs/http_profile/test/http_profile_response_data_test.dart b/pkgs/http_profile/test/http_profile_response_data_test.dart index 646c3e6729..72326198de 100644 --- a/pkgs/http_profile/test/http_profile_response_data_test.dart +++ b/pkgs/http_profile/test/http_profile_response_data_test.dart @@ -29,42 +29,85 @@ void main() { group('HttpProfileRedirectData', () { test('equal', () { expect( - HttpProfileRedirectData( - statusCode: 302, method: 'GET', location: 'http://somewhere'), - HttpProfileRedirectData( - statusCode: 302, method: 'GET', location: 'http://somewhere')); + HttpProfileRedirectData( + statusCode: 302, + method: 'GET', + location: 'http://somewhere', + ), + HttpProfileRedirectData( + statusCode: 302, + method: 'GET', + location: 'http://somewhere', + ), + ); }); test('not equal', () { expect( - HttpProfileRedirectData( - statusCode: 302, method: 'GET', location: 'http://somewhere'), - isNot(Object())); + HttpProfileRedirectData( + statusCode: 302, + method: 'GET', + location: 'http://somewhere', + ), + isNot(Object()), + ); expect( + HttpProfileRedirectData( + statusCode: 302, + method: 'GET', + location: 'http://somewhere', + ), + isNot( HttpProfileRedirectData( - statusCode: 302, method: 'GET', location: 'http://somewhere'), - isNot(HttpProfileRedirectData( - statusCode: 303, method: 'GET', location: 'http://somewhere'))); + statusCode: 303, + method: 'GET', + location: 'http://somewhere', + ), + ), + ); expect( + HttpProfileRedirectData( + statusCode: 302, + method: 'GET', + location: 'http://somewhere', + ), + isNot( HttpProfileRedirectData( - statusCode: 302, method: 'GET', location: 'http://somewhere'), - isNot(HttpProfileRedirectData( - statusCode: 302, method: 'POST', location: 'http://somewhere'))); + statusCode: 302, + method: 'POST', + location: 'http://somewhere', + ), + ), + ); expect( + HttpProfileRedirectData( + statusCode: 302, + method: 'GET', + location: 'http://somewhere', + ), + isNot( HttpProfileRedirectData( - statusCode: 302, method: 'GET', location: 'http://somewhere'), - isNot(HttpProfileRedirectData( - statusCode: 302, method: 'GET', location: 'http://notthere'))); + statusCode: 302, + method: 'GET', + location: 'http://notthere', + ), + ), + ); }); test('hash', () { expect( - HttpProfileRedirectData( - statusCode: 302, method: 'GET', location: 'http://somewhere') - .hashCode, - HttpProfileRedirectData( - statusCode: 302, method: 'GET', location: 'http://somewhere') - .hashCode); + HttpProfileRedirectData( + statusCode: 302, + method: 'GET', + location: 'http://somewhere', + ).hashCode, + HttpProfileRedirectData( + statusCode: 302, + method: 'GET', + location: 'http://somewhere', + ).hashCode, + ); }); }); @@ -75,11 +118,13 @@ void main() { expect(redirectsFromBackingMap, isEmpty); expect(profile.responseData.redirects, isEmpty); - profile.responseData.addRedirect(HttpProfileRedirectData( - statusCode: 301, - method: 'GET', - location: 'https://images.example.com/1', - )); + profile.responseData.addRedirect( + HttpProfileRedirectData( + statusCode: 301, + method: 'GET', + location: 'https://images.example.com/1', + ), + ); expect(redirectsFromBackingMap.length, 1); final redirectFromBackingMap = redirectsFromBackingMap.last; @@ -92,182 +137,172 @@ void main() { statusCode: 301, method: 'GET', location: 'https://images.example.com/1', - ) + ), ]); }); - test('populating HttpClientRequestProfile.responseData.headersListValues', - () async { - final responseData = backingMap['responseData'] as Map; - expect(responseData['headers'], isNull); - expect(profile.responseData.headers, isNull); + test( + 'populating HttpClientRequestProfile.responseData.headersListValues', + () async { + final responseData = backingMap['responseData'] as Map; + expect(responseData['headers'], isNull); + expect(profile.responseData.headers, isNull); - profile.responseData.headersListValues = { - 'connection': ['keep-alive'], - 'cache-control': ['max-age=43200'], - 'content-type': ['application/json', 'charset=utf-8'], - }; + profile.responseData.headersListValues = { + 'connection': ['keep-alive'], + 'cache-control': ['max-age=43200'], + 'content-type': ['application/json', 'charset=utf-8'], + }; - expect( - responseData['headers'], - { + expect(responseData['headers'], { 'connection': ['keep-alive'], 'cache-control': ['max-age=43200'], 'content-type': ['application/json', 'charset=utf-8'], - }, - ); - expect( - profile.responseData.headers, - { + }); + expect(profile.responseData.headers, { 'connection': ['keep-alive'], 'cache-control': ['max-age=43200'], 'content-type': ['application/json', 'charset=utf-8'], - }, - ); - }); + }); + }, + ); - test('HttpClientRequestProfile.responseData.headersListValues = null', - () async { - final responseData = backingMap['responseData'] as Map; + test( + 'HttpClientRequestProfile.responseData.headersListValues = null', + () async { + final responseData = backingMap['responseData'] as Map; - profile.responseData.headersListValues = { - 'connection': ['keep-alive'], - 'cache-control': ['max-age=43200'], - 'content-type': ['application/json', 'charset=utf-8'], - }; - expect( - responseData['headers'], - { + profile.responseData.headersListValues = { 'connection': ['keep-alive'], 'cache-control': ['max-age=43200'], 'content-type': ['application/json', 'charset=utf-8'], - }, - ); - expect( - profile.responseData.headers, - { + }; + expect(responseData['headers'], { 'connection': ['keep-alive'], 'cache-control': ['max-age=43200'], 'content-type': ['application/json', 'charset=utf-8'], - }, - ); - - profile.responseData.headersListValues = null; - expect(responseData['headers'], isNull); - expect(profile.responseData.headers, isNull); - }); - - test('populating HttpClientRequestProfile.responseData.headersCommaValues', - () async { - final responseData = backingMap['responseData'] as Map; - expect(responseData['headers'], isNull); - expect(profile.responseData.headers, isNull); - - profile.responseData.headersCommaValues = { - 'set-cookie': - // ignore: missing_whitespace_between_adjacent_strings - 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT; Path=/,,HE,=L=LO,' - 'sessionId=e8bb43229de9; Domain=foo.example.com' - }; - - expect( - responseData['headers'], - { + }); + expect(profile.responseData.headers, { + 'connection': ['keep-alive'], + 'cache-control': ['max-age=43200'], + 'content-type': ['application/json', 'charset=utf-8'], + }); + + profile.responseData.headersListValues = null; + expect(responseData['headers'], isNull); + expect(profile.responseData.headers, isNull); + }, + ); + + test( + 'populating HttpClientRequestProfile.responseData.headersCommaValues', + () async { + final responseData = backingMap['responseData'] as Map; + expect(responseData['headers'], isNull); + expect(profile.responseData.headers, isNull); + + profile.responseData.headersCommaValues = { + 'set-cookie': + // ignore: missing_whitespace_between_adjacent_strings + 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT; Path=/,,HE,=L=LO,' + 'sessionId=e8bb43229de9; Domain=foo.example.com', + }; + + expect(responseData['headers'], { 'set-cookie': [ 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT; Path=/,,HE,=L=LO', - 'sessionId=e8bb43229de9; Domain=foo.example.com' - ] - }, - ); - expect( - profile.responseData.headers, - { + 'sessionId=e8bb43229de9; Domain=foo.example.com', + ], + }); + expect(profile.responseData.headers, { 'set-cookie': [ 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT; Path=/,,HE,=L=LO', - 'sessionId=e8bb43229de9; Domain=foo.example.com' - ] - }, - ); - }); - - test('HttpClientRequestProfile.responseData.headersCommaValues = null', - () async { - final responseData = backingMap['responseData'] as Map; - - profile.responseData.headersCommaValues = { - 'set-cookie': - // ignore: missing_whitespace_between_adjacent_strings - 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT; Path=/,,HE,=L=LO,' - 'sessionId=e8bb43229de9; Domain=foo.example.com' - }; - expect( - responseData['headers'], - { + 'sessionId=e8bb43229de9; Domain=foo.example.com', + ], + }); + }, + ); + + test( + 'HttpClientRequestProfile.responseData.headersCommaValues = null', + () async { + final responseData = backingMap['responseData'] as Map; + + profile.responseData.headersCommaValues = { + 'set-cookie': + // ignore: missing_whitespace_between_adjacent_strings + 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT; Path=/,,HE,=L=LO,' + 'sessionId=e8bb43229de9; Domain=foo.example.com', + }; + expect(responseData['headers'], { 'set-cookie': [ 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT; Path=/,,HE,=L=LO', - 'sessionId=e8bb43229de9; Domain=foo.example.com' - ] - }, - ); - expect( - profile.responseData.headers, - { + 'sessionId=e8bb43229de9; Domain=foo.example.com', + ], + }); + expect(profile.responseData.headers, { 'set-cookie': [ 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT; Path=/,,HE,=L=LO', - 'sessionId=e8bb43229de9; Domain=foo.example.com' - ] - }, - ); - - profile.responseData.headersCommaValues = null; - expect(responseData['headers'], isNull); - expect(profile.responseData.headers, isNull); - }); - - test('populating HttpClientRequestProfile.responseData.compressionState', - () async { - final responseData = backingMap['responseData'] as Map; - expect(responseData['compressionState'], isNull); - expect(profile.responseData.compressionState, isNull); - - profile.responseData.compressionState = - HttpClientResponseCompressionState.decompressed; - - expect(responseData['compressionState'], 'decompressed'); - expect( - profile.responseData.compressionState, - HttpClientResponseCompressionState.decompressed, - ); - }); - - test('HttpClientRequestProfile.responseData.compressionState = null', - () async { - final responseData = backingMap['responseData'] as Map; - - profile.responseData.compressionState = - HttpClientResponseCompressionState.decompressed; - expect(responseData['compressionState'], 'decompressed'); - expect( - profile.responseData.compressionState, - HttpClientResponseCompressionState.decompressed, - ); - - profile.responseData.compressionState = null; - expect(responseData['compressionState'], isNull); - expect(profile.responseData.compressionState, isNull); - }); - - test('populating HttpClientRequestProfile.responseData.reasonPhrase', - () async { - final responseData = backingMap['responseData'] as Map; - expect(responseData['reasonPhrase'], isNull); - expect(profile.responseData.reasonPhrase, isNull); - - profile.responseData.reasonPhrase = 'OK'; - - expect(responseData['reasonPhrase'], 'OK'); - expect(profile.responseData.reasonPhrase, 'OK'); - }); + 'sessionId=e8bb43229de9; Domain=foo.example.com', + ], + }); + + profile.responseData.headersCommaValues = null; + expect(responseData['headers'], isNull); + expect(profile.responseData.headers, isNull); + }, + ); + + test( + 'populating HttpClientRequestProfile.responseData.compressionState', + () async { + final responseData = backingMap['responseData'] as Map; + expect(responseData['compressionState'], isNull); + expect(profile.responseData.compressionState, isNull); + + profile.responseData.compressionState = + HttpClientResponseCompressionState.decompressed; + + expect(responseData['compressionState'], 'decompressed'); + expect( + profile.responseData.compressionState, + HttpClientResponseCompressionState.decompressed, + ); + }, + ); + + test( + 'HttpClientRequestProfile.responseData.compressionState = null', + () async { + final responseData = backingMap['responseData'] as Map; + + profile.responseData.compressionState = + HttpClientResponseCompressionState.decompressed; + expect(responseData['compressionState'], 'decompressed'); + expect( + profile.responseData.compressionState, + HttpClientResponseCompressionState.decompressed, + ); + + profile.responseData.compressionState = null; + expect(responseData['compressionState'], isNull); + expect(profile.responseData.compressionState, isNull); + }, + ); + + test( + 'populating HttpClientRequestProfile.responseData.reasonPhrase', + () async { + final responseData = backingMap['responseData'] as Map; + expect(responseData['reasonPhrase'], isNull); + expect(profile.responseData.reasonPhrase, isNull); + + profile.responseData.reasonPhrase = 'OK'; + + expect(responseData['reasonPhrase'], 'OK'); + expect(profile.responseData.reasonPhrase, 'OK'); + }, + ); test('HttpClientRequestProfile.responseData.reasonPhrase = null', () async { final responseData = backingMap['responseData'] as Map; @@ -304,42 +339,48 @@ void main() { expect(profile.responseData.isRedirect, isNull); }); - test('populating HttpClientRequestProfile.responseData.persistentConnection', - () async { - final responseData = backingMap['responseData'] as Map; - expect(responseData['persistentConnection'], isNull); - expect(profile.responseData.persistentConnection, isNull); - - profile.responseData.persistentConnection = true; - - expect(responseData['persistentConnection'], true); - expect(profile.responseData.persistentConnection, true); - }); - - test('HttpClientRequestProfile.responseData.persistentConnection = null', - () async { - final responseData = backingMap['responseData'] as Map; - - profile.responseData.persistentConnection = true; - expect(responseData['persistentConnection'], true); - expect(profile.responseData.persistentConnection, true); - - profile.responseData.persistentConnection = null; - expect(responseData['persistentConnection'], isNull); - expect(profile.responseData.persistentConnection, isNull); - }); - - test('populating HttpClientRequestProfile.responseData.contentLength', - () async { - final responseData = backingMap['responseData'] as Map; - expect(responseData['contentLength'], isNull); - expect(profile.responseData.contentLength, isNull); - - profile.responseData.contentLength = 1200; - - expect(responseData['contentLength'], 1200); - expect(profile.responseData.contentLength, 1200); - }); + test( + 'populating HttpClientRequestProfile.responseData.persistentConnection', + () async { + final responseData = backingMap['responseData'] as Map; + expect(responseData['persistentConnection'], isNull); + expect(profile.responseData.persistentConnection, isNull); + + profile.responseData.persistentConnection = true; + + expect(responseData['persistentConnection'], true); + expect(profile.responseData.persistentConnection, true); + }, + ); + + test( + 'HttpClientRequestProfile.responseData.persistentConnection = null', + () async { + final responseData = backingMap['responseData'] as Map; + + profile.responseData.persistentConnection = true; + expect(responseData['persistentConnection'], true); + expect(profile.responseData.persistentConnection, true); + + profile.responseData.persistentConnection = null; + expect(responseData['persistentConnection'], isNull); + expect(profile.responseData.persistentConnection, isNull); + }, + ); + + test( + 'populating HttpClientRequestProfile.responseData.contentLength', + () async { + final responseData = backingMap['responseData'] as Map; + expect(responseData['contentLength'], isNull); + expect(profile.responseData.contentLength, isNull); + + profile.responseData.contentLength = 1200; + + expect(responseData['contentLength'], 1200); + expect(profile.responseData.contentLength, 1200); + }, + ); test('HttpClientRequestProfile.responseData.contentLength = null', () async { final responseData = backingMap['responseData'] as Map; diff --git a/pkgs/http_profile/test/utils_test.dart b/pkgs/http_profile/test/utils_test.dart index a15700ec8d..9f568a61fa 100644 --- a/pkgs/http_profile/test/utils_test.dart +++ b/pkgs/http_profile/test/utils_test.dart @@ -13,62 +13,66 @@ void main() { test('one header', () async { expect(splitHeaderValues({'fruit': 'apple'}), const { - 'fruit': ['apple'] + 'fruit': ['apple'], }); }); test('two header', () async { expect(splitHeaderValues({'fruit': 'apple,banana'}), const { - 'fruit': ['apple', 'banana'] + 'fruit': ['apple', 'banana'], }); }); test('two headers with lots of spaces', () async { expect(splitHeaderValues({'fruit': 'apple \t , \tbanana'}), const { - 'fruit': ['apple', 'banana'] + 'fruit': ['apple', 'banana'], }); }); test('one set-cookie', () async { expect( - splitHeaderValues({ - 'set-cookie': 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT' - }), - { - 'set-cookie': ['id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT'] - }); + splitHeaderValues({ + 'set-cookie': 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT', + }), + { + 'set-cookie': ['id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT'], + }, + ); }); test('two set-cookie, with comma in expires', () async { expect( - splitHeaderValues({ - // ignore: missing_whitespace_between_adjacent_strings - 'set-cookie': 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT,' - 'sessionId=e8bb43229de9; Domain=foo.example.com' - }), - { - 'set-cookie': [ - 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT', - 'sessionId=e8bb43229de9; Domain=foo.example.com' - ] - }); + splitHeaderValues({ + 'set-cookie': + // ignore: missing_whitespace_between_adjacent_strings + 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT,' + 'sessionId=e8bb43229de9; Domain=foo.example.com', + }), + { + 'set-cookie': [ + 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT', + 'sessionId=e8bb43229de9; Domain=foo.example.com', + ], + }, + ); }); test('two set-cookie, with lots of commas', () async { expect( - splitHeaderValues({ - // ignore: missing_whitespace_between_adjacent_strings - 'set-cookie': - // ignore: missing_whitespace_between_adjacent_strings - 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT; Path=/,,HE,=L=LO,' - 'sessionId=e8bb43229de9; Domain=foo.example.com' - }), - { - 'set-cookie': [ - 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT; Path=/,,HE,=L=LO', - 'sessionId=e8bb43229de9; Domain=foo.example.com' - ] - }); + splitHeaderValues({ + // ignore: missing_whitespace_between_adjacent_strings + 'set-cookie': + // ignore: missing_whitespace_between_adjacent_strings + 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT; Path=/,,HE,=L=LO,' + 'sessionId=e8bb43229de9; Domain=foo.example.com', + }), + { + 'set-cookie': [ + 'id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT; Path=/,,HE,=L=LO', + 'sessionId=e8bb43229de9; Domain=foo.example.com', + ], + }, + ); }); }); } diff --git a/pkgs/ok_http/example/integration_test/certificate_test.dart b/pkgs/ok_http/example/integration_test/certificate_test.dart index da2d29b3a8..4d9f8a22e0 100644 --- a/pkgs/ok_http/example/integration_test/certificate_test.dart +++ b/pkgs/ok_http/example/integration_test/certificate_test.dart @@ -24,182 +24,270 @@ void main() async { group('TLS', () { group('loadPrivateKeyAndCertificateChainFromPKCS12', () { test('success', () async { - final certBytes = - await loadCertificateBytes('test_certs/test-combined.p12'); - final (key, chain) = - loadPrivateKeyAndCertificateChainFromPKCS12(certBytes, '1234'); + final certBytes = await loadCertificateBytes( + 'test_certs/test-combined.p12', + ); + final (key, chain) = loadPrivateKeyAndCertificateChainFromPKCS12( + certBytes, + '1234', + ); expect( - key - .as(bindings.Key.type) - .getFormat()! - .toDartString(releaseOriginal: true), - 'PKCS#8'); + key + .as(bindings.Key.type) + .getFormat()! + .toDartString(releaseOriginal: true), + 'PKCS#8', + ); expect(chain.length, 1); expect(chain[0].getType()!.toDartString(), 'X.509'); }); test('no key', () async { - final certBytes = - await loadCertificateBytes('test_certs/server_chain.p12'); + final certBytes = await loadCertificateBytes( + 'test_certs/server_chain.p12', + ); expect( - () => loadPrivateKeyAndCertificateChainFromPKCS12( - certBytes, 'dartdart'), - throwsA(isA() - .having((e) => e.message, 'toString', contains('no key')))); + () => loadPrivateKeyAndCertificateChainFromPKCS12( + certBytes, + 'dartdart', + ), + throwsA( + isA().having( + (e) => e.message, + 'toString', + contains('no key'), + ), + ), + ); }); test('no chain', () async { - final certBytes = - await loadCertificateBytes('test_certs/server_key.p12'); + final certBytes = await loadCertificateBytes( + 'test_certs/server_key.p12', + ); expect( - () => loadPrivateKeyAndCertificateChainFromPKCS12( - certBytes, 'dartdart'), - throwsA(isA().having((e) => e.message, 'toString', - contains('no certificate chain')))); + () => loadPrivateKeyAndCertificateChainFromPKCS12( + certBytes, + 'dartdart', + ), + throwsA( + isA().having( + (e) => e.message, + 'toString', + contains('no certificate chain'), + ), + ), + ); }); test('bad password', () async { - final certBytes = - await loadCertificateBytes('test_certs/test-combined.p12'); + final certBytes = await loadCertificateBytes( + 'test_certs/test-combined.p12', + ); expect( - () => loadPrivateKeyAndCertificateChainFromPKCS12( - certBytes, 'incorrectpassword'), - throwsA(isA().having( - (e) => e.toString(), 'toString', contains('password')))); + () => loadPrivateKeyAndCertificateChainFromPKCS12( + certBytes, + 'incorrectpassword', + ), + throwsA( + isA().having( + (e) => e.toString(), + 'toString', + contains('password'), + ), + ), + ); }); test('bad PKCS12 data', () async { final certBytes = Uint8List.fromList([1, 2, 3, 4]); expect( - () => - loadPrivateKeyAndCertificateChainFromPKCS12(certBytes, '1234'), - throwsA(isA().having( - (e) => e.toString(), - 'toString', - contains('does not represent a PKCS12 key store')))); + () => loadPrivateKeyAndCertificateChainFromPKCS12(certBytes, '1234'), + throwsA( + isA().having( + (e) => e.toString(), + 'toString', + contains('does not represent a PKCS12 key store'), + ), + ), + ); }); }); test('unknown server cert', () async { final serverContext = io.SecurityContext() ..useCertificateChainBytes( - await loadCertificateBytes('test_certs/server_chain.p12'), - password: 'dartdart') + await loadCertificateBytes('test_certs/server_chain.p12'), + password: 'dartdart', + ) ..usePrivateKeyBytes( - await loadCertificateBytes('test_certs/server_key.p12'), - password: 'dartdart'); - final server = - await io.SecureServerSocket.bind('localhost', 0, serverContext); + await loadCertificateBytes('test_certs/server_key.p12'), + password: 'dartdart', + ); + final server = await io.SecureServerSocket.bind( + 'localhost', + 0, + serverContext, + ); final serverException = Completer(); - server.listen((socket) async { - serverException.complete(); - await socket.close(); - }, onError: (Object e) { - serverException.completeError(e); - }); + server.listen( + (socket) async { + serverException.complete(); + await socket.close(); + }, + onError: (Object e) { + serverException.completeError(e); + }, + ); addTearDown(server.close); - final config = - const OkHttpClientConfiguration(validateServerCertificates: true); + final config = const OkHttpClientConfiguration( + validateServerCertificates: true, + ); final httpClient = OkHttpClient(configuration: config); addTearDown(httpClient.close); expect( - () async => - await httpClient.get(Uri.https('localhost:${server.port}', '/')), - throwsA(isA() - .having((e) => e.message, 'message', contains('Handshake')))); + () async => + await httpClient.get(Uri.https('localhost:${server.port}', '/')), + throwsA( + isA().having( + (e) => e.message, + 'message', + contains('Handshake'), + ), + ), + ); expect( - () async => await serverException.future, - throwsA(isA() - .having((e) => e.message, 'message', contains('Handshake')))); + () async => await serverException.future, + throwsA( + isA().having( + (e) => e.message, + 'message', + contains('Handshake'), + ), + ), + ); }); test('ignore unknown server cert', () async { final serverContext = io.SecurityContext() ..useCertificateChainBytes( - await loadCertificateBytes('test_certs/server_chain.p12'), - password: 'dartdart') + await loadCertificateBytes('test_certs/server_chain.p12'), + password: 'dartdart', + ) ..usePrivateKeyBytes( - await loadCertificateBytes('test_certs/server_key.p12'), - password: 'dartdart'); - final server = - await io.SecureServerSocket.bind('localhost', 0, serverContext); + await loadCertificateBytes('test_certs/server_key.p12'), + password: 'dartdart', + ); + final server = await io.SecureServerSocket.bind( + 'localhost', + 0, + serverContext, + ); server.listen((socket) async { - socket - .writeAll(['HTTP/1.1 200 OK', 'Content-Length: 0', '\r\n'], '\r\n'); + socket.writeAll([ + 'HTTP/1.1 200 OK', + 'Content-Length: 0', + '\r\n', + ], '\r\n'); await socket.close(); }); addTearDown(server.close); - final config = - const OkHttpClientConfiguration(validateServerCertificates: false); + final config = const OkHttpClientConfiguration( + validateServerCertificates: false, + ); final httpClient = OkHttpClient(configuration: config); addTearDown(httpClient.close); expect( - (await httpClient.get(Uri.https('localhost:${server.port}', '/'))) - .statusCode, - 200); + (await httpClient.get( + Uri.https('localhost:${server.port}', '/'), + )).statusCode, + 200, + ); }); test('client cert', () async { - final certBytes = - await loadCertificateBytes('test_certs/test-combined.p12'); + final certBytes = await loadCertificateBytes( + 'test_certs/test-combined.p12', + ); final serverContext = io.SecurityContext() ..useCertificateChainBytes( - await loadCertificateBytes('test_certs/server_chain.p12'), - password: 'dartdart') + await loadCertificateBytes('test_certs/server_chain.p12'), + password: 'dartdart', + ) ..usePrivateKeyBytes( - await loadCertificateBytes('test_certs/server_key.p12'), - password: 'dartdart') + await loadCertificateBytes('test_certs/server_key.p12'), + password: 'dartdart', + ) ..setTrustedCertificatesBytes(certBytes, password: '1234'); final clientCertificate = Completer(); final server = await io.SecureServerSocket.bind( - 'localhost', 0, serverContext, - requireClientCertificate: true); + 'localhost', + 0, + serverContext, + requireClientCertificate: true, + ); server.listen((socket) async { clientCertificate.complete(socket.peerCertificate); - socket - .writeAll(['HTTP/1.1 200 OK', 'Content-Length: 0', '\r\n'], '\r\n'); + socket.writeAll([ + 'HTTP/1.1 200 OK', + 'Content-Length: 0', + '\r\n', + ], '\r\n'); await socket.close(); }); addTearDown(server.close); - final (key, chain) = - loadPrivateKeyAndCertificateChainFromPKCS12(certBytes, '1234'); + final (key, chain) = loadPrivateKeyAndCertificateChainFromPKCS12( + certBytes, + '1234', + ); final config = OkHttpClientConfiguration( - clientPrivateKey: key, - clientCertificateChain: chain, - validateServerCertificates: false); + clientPrivateKey: key, + clientCertificateChain: chain, + validateServerCertificates: false, + ); final httpClient = OkHttpClient(configuration: config); addTearDown(httpClient.close); expect( - (await httpClient.get(Uri.https('localhost:${server.port}', '/'))) - .statusCode, - 200); - expect((await clientCertificate.future)!.issuer, - contains('Internet Widgits Pty Ltd')); + (await httpClient.get( + Uri.https('localhost:${server.port}', '/'), + )).statusCode, + 200, + ); + expect( + (await clientCertificate.future)!.issuer, + contains('Internet Widgits Pty Ltd'), + ); }); test('private key without cert chain', () async { - final certBytes = - await loadCertificateBytes('test_certs/test-combined.p12'); + final certBytes = await loadCertificateBytes( + 'test_certs/test-combined.p12', + ); - final (key, chain) = - loadPrivateKeyAndCertificateChainFromPKCS12(certBytes, '1234'); + final (key, chain) = loadPrivateKeyAndCertificateChainFromPKCS12( + certBytes, + '1234', + ); final config = OkHttpClientConfiguration(clientPrivateKey: key); expect(() => OkHttpClient(configuration: config), throwsArgumentError); }); test('private key without cert chain', () async { - final certBytes = - await loadCertificateBytes('test_certs/test-combined.p12'); + final certBytes = await loadCertificateBytes( + 'test_certs/test-combined.p12', + ); - final (key, chain) = - loadPrivateKeyAndCertificateChainFromPKCS12(certBytes, '1234'); + final (key, chain) = loadPrivateKeyAndCertificateChainFromPKCS12( + certBytes, + '1234', + ); final config = OkHttpClientConfiguration(clientCertificateChain: chain); expect(() => OkHttpClient(configuration: config), throwsArgumentError); }); diff --git a/pkgs/ok_http/example/integration_test/client_configuration_test.dart b/pkgs/ok_http/example/integration_test/client_configuration_test.dart index 2cee14afb6..1dfa8517fb 100644 --- a/pkgs/ok_http/example/integration_test/client_configuration_test.dart +++ b/pkgs/ok_http/example/integration_test/client_configuration_test.dart @@ -56,10 +56,7 @@ void testTimeouts() { ), ); final response = await client.send( - Request( - 'GET', - Uri.http('localhost:${server.port}', '1'), - ), + Request('GET', Uri.http('localhost:${server.port}', '1')), ); expect(response.statusCode, 200); @@ -72,10 +69,7 @@ void testTimeouts() { expect( () async { await client.send( - Request( - 'GET', - Uri.http('localhost:${server.port}', '11'), - ), + Request('GET', Uri.http('localhost:${server.port}', '11')), ); }, throwsA( diff --git a/pkgs/ok_http/example/integration_test/client_profile_test.dart b/pkgs/ok_http/example/integration_test/client_profile_test.dart index 44975dd4b7..1b80d537a1 100644 --- a/pkgs/ok_http/example/integration_test/client_profile_test.dart +++ b/pkgs/ok_http/example/integration_test/client_profile_test.dart @@ -41,8 +41,11 @@ void main() { }); successServerUri = Uri.http('localhost:${successServer.port}'); final client = OkHttpClientWithProfile(); - await client.post(successServerUri, - headers: {'Content-Type': 'text/plain'}, body: 'Hi'); + await client.post( + successServerUri, + headers: {'Content-Type': 'text/plain'}, + body: 'Hi', + ); profile = client.profile!; }); tearDownAll(() { @@ -54,7 +57,9 @@ void main() { expect(profile.requestMethod, 'POST'); expect(profile.requestUri, successServerUri.toString()); expect( - profile.connectionInfo, containsPair('package', 'package:ok_http')); + profile.connectionInfo, + containsPair('package', 'package:ok_http'), + ); }); test('request attributes', () { @@ -63,9 +68,13 @@ void main() { expect(profile.requestData.endTime, isNotNull); expect(profile.requestData.error, isNull); expect( - profile.requestData.headers, containsPair('Content-Length', ['2'])); - expect(profile.requestData.headers, - containsPair('Content-Type', ['text/plain; charset=utf-8'])); + profile.requestData.headers, + containsPair('Content-Length', ['2']), + ); + expect( + profile.requestData.headers, + containsPair('Content-Type', ['text/plain; charset=utf-8']), + ); expect(profile.requestData.persistentConnection, isNull); expect(profile.requestData.proxyDetails, isNull); expect(profile.requestData.startTime, isNotNull); @@ -77,10 +86,14 @@ void main() { expect(profile.responseData.contentLength, 11); expect(profile.responseData.endTime, isNotNull); expect(profile.responseData.error, isNull); - expect(profile.responseData.headers, - containsPair('content-type', ['text/plain'])); - expect(profile.responseData.headers, - containsPair('content-length', ['11'])); + expect( + profile.responseData.headers, + containsPair('content-type', ['text/plain']), + ); + expect( + profile.responseData.headers, + containsPair('content-length', ['11']), + ); expect(profile.responseData.isRedirect, false); expect(profile.responseData.persistentConnection, isNull); expect(profile.responseData.reasonPhrase, 'OK'); @@ -96,8 +109,11 @@ void main() { setUpAll(() async { final client = OkHttpClientWithProfile(); try { - await client.post(Uri.http('thisisnotahost'), - headers: {'Content-Type': 'text/plain'}, body: 'Hi'); + await client.post( + Uri.http('thisisnotahost'), + headers: {'Content-Type': 'text/plain'}, + body: 'Hi', + ); fail('expected exception'); } on ClientException { // Expected exception. @@ -110,7 +126,9 @@ void main() { expect(profile.requestMethod, 'POST'); expect(profile.requestUri, 'http://thisisnotahost'); expect( - profile.connectionInfo, containsPair('package', 'package:ok_http')); + profile.connectionInfo, + containsPair('package', 'package:ok_http'), + ); }); test('request attributes', () { @@ -119,9 +137,13 @@ void main() { expect(profile.requestData.endTime, isNotNull); expect(profile.requestData.error, startsWith('ClientException:')); expect( - profile.requestData.headers, containsPair('Content-Length', ['2'])); - expect(profile.requestData.headers, - containsPair('Content-Type', ['text/plain; charset=utf-8'])); + profile.requestData.headers, + containsPair('Content-Length', ['2']), + ); + expect( + profile.requestData.headers, + containsPair('Content-Type', ['text/plain; charset=utf-8']), + ); expect(profile.requestData.persistentConnection, isNull); expect(profile.requestData.proxyDetails, isNull); expect(profile.requestData.startTime, isNotNull); @@ -161,8 +183,11 @@ void main() { final client = OkHttpClientWithProfile(); try { - await client.post(successServerUri, - headers: {'Content-Type': 'text/plain'}, body: 'Hi'); + await client.post( + successServerUri, + headers: {'Content-Type': 'text/plain'}, + body: 'Hi', + ); fail('expected exception'); } on ClientException { // Expected exception. @@ -178,7 +203,9 @@ void main() { expect(profile.requestMethod, 'POST'); expect(profile.requestUri, successServerUri.toString()); expect( - profile.connectionInfo, containsPair('package', 'package:ok_http')); + profile.connectionInfo, + containsPair('package', 'package:ok_http'), + ); }); test('request attributes', () { @@ -187,9 +214,13 @@ void main() { expect(profile.requestData.endTime, isNotNull); expect(profile.requestData.error, isNull); expect( - profile.requestData.headers, containsPair('Content-Length', ['2'])); - expect(profile.requestData.headers, - containsPair('Content-Type', ['text/plain; charset=utf-8'])); + profile.requestData.headers, + containsPair('Content-Length', ['2']), + ); + expect( + profile.requestData.headers, + containsPair('Content-Type', ['text/plain; charset=utf-8']), + ); expect(profile.requestData.persistentConnection, isNull); expect(profile.requestData.proxyDetails, isNull); expect(profile.requestData.startTime, isNotNull); @@ -201,10 +232,14 @@ void main() { expect(profile.responseData.contentLength, 11); expect(profile.responseData.endTime, isNotNull); expect(profile.responseData.error, startsWith('ClientException:')); - expect(profile.responseData.headers, - containsPair('content-type', ['text/plain'])); - expect(profile.responseData.headers, - containsPair('content-length', ['11'])); + expect( + profile.responseData.headers, + containsPair('content-type', ['text/plain']), + ); + expect( + profile.responseData.headers, + containsPair('content-length', ['11']), + ); expect(profile.responseData.isRedirect, false); expect(profile.responseData.persistentConnection, isNull); expect(profile.responseData.reasonPhrase, 'OK'); @@ -227,8 +262,11 @@ void main() { } else { final n = int.parse(request.requestedUri.pathSegments.last); final nextPath = n - 1 == 0 ? '' : '${n - 1}'; - unawaited(request.response - .redirect(successServerUri.replace(path: '/$nextPath'))); + unawaited( + request.response.redirect( + successServerUri.replace(path: '/$nextPath'), + ), + ); } }); successServerUri = Uri.http('localhost:${successServer.port}'); @@ -247,9 +285,11 @@ void main() { test('follow redirects', () async { final client = OkHttpClientWithProfile(); - await client.send(Request('GET', successServerUri.replace(path: '/3')) - ..followRedirects = true - ..maxRedirects = 4); + await client.send( + Request('GET', successServerUri.replace(path: '/3')) + ..followRedirects = true + ..maxRedirects = 4, + ); profile = client.profile!; expect(profile.requestData.followRedirects, true); @@ -258,25 +298,29 @@ void main() { expect(profile.responseData.redirects, [ HttpProfileRedirectData( - statusCode: 302, - method: 'GET', - location: successServerUri.replace(path: '/2').toString()), + statusCode: 302, + method: 'GET', + location: successServerUri.replace(path: '/2').toString(), + ), HttpProfileRedirectData( - statusCode: 302, - method: 'GET', - location: successServerUri.replace(path: '/1').toString()), + statusCode: 302, + method: 'GET', + location: successServerUri.replace(path: '/1').toString(), + ), HttpProfileRedirectData( statusCode: 302, method: 'GET', location: successServerUri.replace(path: '/').toString(), - ) + ), ]); }); test('no follow redirects', () async { final client = OkHttpClientWithProfile(); - await client.send(Request('GET', successServerUri.replace(path: '/3')) - ..followRedirects = false); + await client.send( + Request('GET', successServerUri.replace(path: '/3')) + ..followRedirects = false, + ); profile = client.profile!; expect(profile.requestData.followRedirects, false); diff --git a/pkgs/ok_http/example/lib/book.dart b/pkgs/ok_http/example/lib/book.dart index 4954d2509b..f640d7ded6 100644 --- a/pkgs/ok_http/example/lib/book.dart +++ b/pkgs/ok_http/example/lib/book.dart @@ -15,12 +15,11 @@ class Book { if (json['items'] case final List items) { for (final item in items) { if (item case {'volumeInfo': final Map volumeInfo}) { - if (volumeInfo - case { - 'title': final String title, - 'description': final String description, - 'imageLinks': {'smallThumbnail': final String thumbnail} - }) { + if (volumeInfo case { + 'title': final String title, + 'description': final String description, + 'imageLinks': {'smallThumbnail': final String thumbnail}, + }) { books.add(Book(title, description, Uri.parse(thumbnail))); } } diff --git a/pkgs/ok_http/example/lib/main.dart b/pkgs/ok_http/example/lib/main.dart index e8177895ec..7c828032be 100644 --- a/pkgs/ok_http/example/lib/main.dart +++ b/pkgs/ok_http/example/lib/main.dart @@ -22,10 +22,13 @@ void main() { httpClient = IOClient(HttpClient()..userAgent = 'Book Agent'); } - runApp(Provider( + runApp( + Provider( create: (_) => httpClient, child: const BookSearchApp(), - dispose: (_, client) => client.close())); + dispose: (_, client) => client.close(), + ), + ); } class BookSearchApp extends StatelessWidget { @@ -33,11 +36,11 @@ class BookSearchApp extends StatelessWidget { @override Widget build(BuildContext context) => const MaterialApp( - // Remove the debug banner. - debugShowCheckedModeBanner: false, - title: 'Book Search', - home: HomePage(), - ); + // Remove the debug banner. + debugShowCheckedModeBanner: false, + title: 'Book Search', + home: HomePage(), + ); } class HomePage extends StatefulWidget { @@ -62,11 +65,11 @@ class _HomePageState extends State { // The `get` call will automatically use the `client` configured in `main`. Future> _findMatchingBooks(String query) async { final response = await _client.get( - Uri.https( - 'www.googleapis.com', - '/books/v1/volumes', - {'q': query, 'maxResults': '20', 'printType': 'books'}, - ), + Uri.https('www.googleapis.com', '/books/v1/volumes', { + 'q': query, + 'maxResults': '20', + 'printType': 'books', + }), ); final json = jsonDecode(utf8.decode(response.bodyBytes)) as Map; @@ -96,8 +99,8 @@ class _HomePageState extends State { final searchResult = _books == null ? const Text('Please enter a query', style: TextStyle(fontSize: 24)) : _books!.isNotEmpty - ? BookList(_books!) - : const Text('No results found', style: TextStyle(fontSize: 24)); + ? BookList(_books!) + : const Text('No results found', style: TextStyle(fontSize: 24)); return Scaffold( appBar: AppBar(title: const Text('Book Search')), @@ -133,17 +136,19 @@ class BookList extends StatefulWidget { class _BookListState extends State { @override Widget build(BuildContext context) => ListView.builder( - itemCount: widget.books.length, - itemBuilder: (context, index) => Card( - key: ValueKey(widget.books[index].title), - child: ListTile( - leading: Image( - image: HttpImageProvider( - widget.books[index].imageUrl.replace(scheme: 'https'), - client: context.read())), - title: Text(widget.books[index].title), - subtitle: Text(widget.books[index].description), + itemCount: widget.books.length, + itemBuilder: (context, index) => Card( + key: ValueKey(widget.books[index].title), + child: ListTile( + leading: Image( + image: HttpImageProvider( + widget.books[index].imageUrl.replace(scheme: 'https'), + client: context.read(), ), ), - ); + title: Text(widget.books[index].title), + subtitle: Text(widget.books[index].description), + ), + ), + ); } diff --git a/pkgs/ok_http/example/pubspec.yaml b/pkgs/ok_http/example/pubspec.yaml index 319c5faf5d..b0d93acba8 100644 --- a/pkgs/ok_http/example/pubspec.yaml +++ b/pkgs/ok_http/example/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: "none" version: 1.0.0+1 environment: - sdk: ">=3.4.1 <4.0.0" + sdk: ^3.9.0 dependencies: cupertino_icons: ^1.0.6 diff --git a/pkgs/ok_http/lib/src/jni/bindings.dart b/pkgs/ok_http/lib/src/jni/bindings.dart index 06df64657f..8ff51e35de 100644 --- a/pkgs/ok_http/lib/src/jni/bindings.dart +++ b/pkgs/ok_http/lib/src/jni/bindings.dart @@ -44,64 +44,72 @@ class Request$Builder extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Request$Builder.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Request$Builder.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okhttp3/Request$Builder'); /// The type which includes information such as the signature of this class. static const nullableType = $Request$Builder$NullableType(); static const type = $Request$Builder$Type(); - static final _id_new$ = _class.constructorId( - r'()V', - ); + static final _id_new$ = _class.constructorId(r'()V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory Request$Builder() { return Request$Builder.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); } - static final _id_new$1 = _class.constructorId( - r'(Lokhttp3/Request;)V', - ); + static final _id_new$1 = _class.constructorId(r'(Lokhttp3/Request;)V'); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void (okhttp3.Request request)` /// The returned object must be released after use, by calling the [release] method. - factory Request$Builder.new$1( - Request request, - ) { + factory Request$Builder.new$1(Request request) { final _$request = request.reference; - return Request$Builder.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, _$request.pointer) - .reference); + return Request$Builder.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$request.pointer, + ).reference, + ); } static final _id_url = _class.instanceMethodId( @@ -109,26 +117,33 @@ class Request$Builder extends jni$_.JObject { r'(Lokhttp3/HttpUrl;)Lokhttp3/Request$Builder;', ); - static final _url = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _url = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Request$Builder url(okhttp3.HttpUrl httpUrl)` /// The returned object must be released after use, by calling the [release] method. - Request$Builder url( - jni$_.JObject httpUrl, - ) { + Request$Builder url(jni$_.JObject httpUrl) { final _$httpUrl = httpUrl.reference; return _url( - reference.pointer, _id_url as jni$_.JMethodIDPtr, _$httpUrl.pointer) - .object(const $Request$Builder$Type()); + reference.pointer, + _id_url as jni$_.JMethodIDPtr, + _$httpUrl.pointer, + ).object(const $Request$Builder$Type()); } static final _id_url$1 = _class.instanceMethodId( @@ -136,26 +151,33 @@ class Request$Builder extends jni$_.JObject { r'(Ljava/lang/String;)Lokhttp3/Request$Builder;', ); - static final _url$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$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _url$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$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Request$Builder url(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - Request$Builder url$1( - jni$_.JString string, - ) { + Request$Builder url$1(jni$_.JString string) { final _$string = string.reference; - return _url$1(reference.pointer, _id_url$1 as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const $Request$Builder$Type()); + return _url$1( + reference.pointer, + _id_url$1 as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $Request$Builder$Type()); } static final _id_url$2 = _class.instanceMethodId( @@ -163,26 +185,33 @@ class Request$Builder extends jni$_.JObject { r'(Ljava/net/URL;)Lokhttp3/Request$Builder;', ); - static final _url$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _url$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Request$Builder url(java.net.URL uRL)` /// The returned object must be released after use, by calling the [release] method. - Request$Builder url$2( - jni$_.JObject uRL, - ) { + Request$Builder url$2(jni$_.JObject uRL) { final _$uRL = uRL.reference; return _url$2( - reference.pointer, _id_url$2 as jni$_.JMethodIDPtr, _$uRL.pointer) - .object(const $Request$Builder$Type()); + reference.pointer, + _id_url$2 as jni$_.JMethodIDPtr, + _$uRL.pointer, + ).object(const $Request$Builder$Type()); } static final _id_header = _class.instanceMethodId( @@ -190,34 +219,38 @@ class Request$Builder extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Request$Builder;', ); - static final _header = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _header = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Request$Builder header(java.lang.String string, java.lang.String string1)` /// The returned object must be released after use, by calling the [release] method. - Request$Builder header( - jni$_.JString string, - jni$_.JString string1, - ) { + Request$Builder header(jni$_.JString string, jni$_.JString string1) { final _$string = string.reference; final _$string1 = string1.reference; - return _header(reference.pointer, _id_header as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) - .object(const $Request$Builder$Type()); + return _header( + reference.pointer, + _id_header as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).object(const $Request$Builder$Type()); } static final _id_addHeader = _class.instanceMethodId( @@ -225,34 +258,38 @@ class Request$Builder extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Request$Builder;', ); - static final _addHeader = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _addHeader = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Request$Builder addHeader(java.lang.String string, java.lang.String string1)` /// The returned object must be released after use, by calling the [release] method. - Request$Builder addHeader( - jni$_.JString string, - jni$_.JString string1, - ) { + Request$Builder addHeader(jni$_.JString string, jni$_.JString string1) { final _$string = string.reference; final _$string1 = string1.reference; - return _addHeader(reference.pointer, _id_addHeader as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) - .object(const $Request$Builder$Type()); + return _addHeader( + reference.pointer, + _id_addHeader as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).object(const $Request$Builder$Type()); } static final _id_removeHeader = _class.instanceMethodId( @@ -260,26 +297,33 @@ class Request$Builder extends jni$_.JObject { r'(Ljava/lang/String;)Lokhttp3/Request$Builder;', ); - static final _removeHeader = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _removeHeader = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Request$Builder removeHeader(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - Request$Builder removeHeader( - jni$_.JString string, - ) { + Request$Builder removeHeader(jni$_.JString string) { final _$string = string.reference; - return _removeHeader(reference.pointer, - _id_removeHeader as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $Request$Builder$Type()); + return _removeHeader( + reference.pointer, + _id_removeHeader as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $Request$Builder$Type()); } static final _id_headers = _class.instanceMethodId( @@ -287,26 +331,33 @@ class Request$Builder extends jni$_.JObject { r'(Lokhttp3/Headers;)Lokhttp3/Request$Builder;', ); - static final _headers = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _headers = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Request$Builder headers(okhttp3.Headers headers)` /// The returned object must be released after use, by calling the [release] method. - Request$Builder headers( - Headers headers, - ) { + Request$Builder headers(Headers headers) { final _$headers = headers.reference; - return _headers(reference.pointer, _id_headers as jni$_.JMethodIDPtr, - _$headers.pointer) - .object(const $Request$Builder$Type()); + return _headers( + reference.pointer, + _id_headers as jni$_.JMethodIDPtr, + _$headers.pointer, + ).object(const $Request$Builder$Type()); } static final _id_cacheControl = _class.instanceMethodId( @@ -314,26 +365,33 @@ class Request$Builder extends jni$_.JObject { r'(Lokhttp3/CacheControl;)Lokhttp3/Request$Builder;', ); - static final _cacheControl = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _cacheControl = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Request$Builder cacheControl(okhttp3.CacheControl cacheControl)` /// The returned object must be released after use, by calling the [release] method. - Request$Builder cacheControl( - jni$_.JObject cacheControl, - ) { + Request$Builder cacheControl(jni$_.JObject cacheControl) { final _$cacheControl = cacheControl.reference; - return _cacheControl(reference.pointer, - _id_cacheControl as jni$_.JMethodIDPtr, _$cacheControl.pointer) - .object(const $Request$Builder$Type()); + return _cacheControl( + reference.pointer, + _id_cacheControl as jni$_.JMethodIDPtr, + _$cacheControl.pointer, + ).object(const $Request$Builder$Type()); } static final _id_get = _class.instanceMethodId( @@ -341,23 +399,29 @@ class Request$Builder extends jni$_.JObject { r'()Lokhttp3/Request$Builder;', ); - static final _get = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _get = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public okhttp3.Request$Builder get()` /// The returned object must be released after use, by calling the [release] method. Request$Builder get() { - return _get(reference.pointer, _id_get as jni$_.JMethodIDPtr) - .object(const $Request$Builder$Type()); + return _get( + reference.pointer, + _id_get as jni$_.JMethodIDPtr, + ).object(const $Request$Builder$Type()); } static final _id_head = _class.instanceMethodId( @@ -365,23 +429,29 @@ class Request$Builder extends jni$_.JObject { r'()Lokhttp3/Request$Builder;', ); - static final _head = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _head = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public okhttp3.Request$Builder head()` /// The returned object must be released after use, by calling the [release] method. Request$Builder head() { - return _head(reference.pointer, _id_head as jni$_.JMethodIDPtr) - .object(const $Request$Builder$Type()); + return _head( + reference.pointer, + _id_head as jni$_.JMethodIDPtr, + ).object(const $Request$Builder$Type()); } static final _id_post = _class.instanceMethodId( @@ -389,26 +459,33 @@ class Request$Builder extends jni$_.JObject { r'(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;', ); - static final _post = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _post = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Request$Builder post(okhttp3.RequestBody requestBody)` /// The returned object must be released after use, by calling the [release] method. - Request$Builder post( - RequestBody requestBody, - ) { + Request$Builder post(RequestBody requestBody) { final _$requestBody = requestBody.reference; - return _post(reference.pointer, _id_post as jni$_.JMethodIDPtr, - _$requestBody.pointer) - .object(const $Request$Builder$Type()); + return _post( + reference.pointer, + _id_post as jni$_.JMethodIDPtr, + _$requestBody.pointer, + ).object(const $Request$Builder$Type()); } static final _id_delete = _class.instanceMethodId( @@ -416,26 +493,33 @@ class Request$Builder extends jni$_.JObject { r'(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;', ); - static final _delete = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _delete = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Request$Builder delete(okhttp3.RequestBody requestBody)` /// The returned object must be released after use, by calling the [release] method. - Request$Builder delete( - RequestBody? requestBody, - ) { + Request$Builder delete(RequestBody? requestBody) { final _$requestBody = requestBody?.reference ?? jni$_.jNullReference; - return _delete(reference.pointer, _id_delete as jni$_.JMethodIDPtr, - _$requestBody.pointer) - .object(const $Request$Builder$Type()); + return _delete( + reference.pointer, + _id_delete as jni$_.JMethodIDPtr, + _$requestBody.pointer, + ).object(const $Request$Builder$Type()); } static final _id_put = _class.instanceMethodId( @@ -443,26 +527,33 @@ class Request$Builder extends jni$_.JObject { r'(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;', ); - static final _put = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _put = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Request$Builder put(okhttp3.RequestBody requestBody)` /// The returned object must be released after use, by calling the [release] method. - Request$Builder put( - RequestBody requestBody, - ) { + Request$Builder put(RequestBody requestBody) { final _$requestBody = requestBody.reference; - return _put(reference.pointer, _id_put as jni$_.JMethodIDPtr, - _$requestBody.pointer) - .object(const $Request$Builder$Type()); + return _put( + reference.pointer, + _id_put as jni$_.JMethodIDPtr, + _$requestBody.pointer, + ).object(const $Request$Builder$Type()); } static final _id_patch = _class.instanceMethodId( @@ -470,26 +561,33 @@ class Request$Builder extends jni$_.JObject { r'(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;', ); - static final _patch = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _patch = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Request$Builder patch(okhttp3.RequestBody requestBody)` /// The returned object must be released after use, by calling the [release] method. - Request$Builder patch( - RequestBody requestBody, - ) { + Request$Builder patch(RequestBody requestBody) { final _$requestBody = requestBody.reference; - return _patch(reference.pointer, _id_patch as jni$_.JMethodIDPtr, - _$requestBody.pointer) - .object(const $Request$Builder$Type()); + return _patch( + reference.pointer, + _id_patch as jni$_.JMethodIDPtr, + _$requestBody.pointer, + ).object(const $Request$Builder$Type()); } static final _id_method = _class.instanceMethodId( @@ -497,34 +595,38 @@ class Request$Builder extends jni$_.JObject { r'(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;', ); - static final _method = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _method = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Request$Builder method(java.lang.String string, okhttp3.RequestBody requestBody)` /// The returned object must be released after use, by calling the [release] method. - Request$Builder method( - jni$_.JString string, - RequestBody? requestBody, - ) { + Request$Builder method(jni$_.JString string, RequestBody? requestBody) { final _$string = string.reference; final _$requestBody = requestBody?.reference ?? jni$_.jNullReference; - return _method(reference.pointer, _id_method as jni$_.JMethodIDPtr, - _$string.pointer, _$requestBody.pointer) - .object(const $Request$Builder$Type()); + return _method( + reference.pointer, + _id_method as jni$_.JMethodIDPtr, + _$string.pointer, + _$requestBody.pointer, + ).object(const $Request$Builder$Type()); } static final _id_tag = _class.instanceMethodId( @@ -532,26 +634,33 @@ class Request$Builder extends jni$_.JObject { r'(Ljava/lang/Object;)Lokhttp3/Request$Builder;', ); - static final _tag = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _tag = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Request$Builder tag(java.lang.Object object)` /// The returned object must be released after use, by calling the [release] method. - Request$Builder tag( - jni$_.JObject? object, - ) { + Request$Builder tag(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; return _tag( - reference.pointer, _id_tag as jni$_.JMethodIDPtr, _$object.pointer) - .object(const $Request$Builder$Type()); + reference.pointer, + _id_tag as jni$_.JMethodIDPtr, + _$object.pointer, + ).object(const $Request$Builder$Type()); } static final _id_tag$1 = _class.instanceMethodId( @@ -559,22 +668,26 @@ class Request$Builder extends jni$_.JObject { r'(Ljava/lang/Class;Ljava/lang/Object;)Lokhttp3/Request$Builder;', ); - static final _tag$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _tag$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Request$Builder tag(java.lang.Class class, T object)` /// The returned object must be released after use, by calling the [release] method. @@ -585,9 +698,12 @@ class Request$Builder extends jni$_.JObject { }) { final _$class$ = class$.reference; final _$object = object?.reference ?? jni$_.jNullReference; - return _tag$1(reference.pointer, _id_tag$1 as jni$_.JMethodIDPtr, - _$class$.pointer, _$object.pointer) - .object(const $Request$Builder$Type()); + return _tag$1( + reference.pointer, + _id_tag$1 as jni$_.JMethodIDPtr, + _$class$.pointer, + _$object.pointer, + ).object(const $Request$Builder$Type()); } static final _id_build = _class.instanceMethodId( @@ -595,23 +711,29 @@ class Request$Builder extends jni$_.JObject { r'()Lokhttp3/Request;', ); - static final _build = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _build = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public okhttp3.Request build()` /// The returned object must be released after use, by calling the [release] method. Request build() { - return _build(reference.pointer, _id_build as jni$_.JMethodIDPtr) - .object(const $Request$Type()); + return _build( + reference.pointer, + _id_build as jni$_.JMethodIDPtr, + ).object(const $Request$Type()); } static final _id_delete$1 = _class.instanceMethodId( @@ -619,23 +741,29 @@ class Request$Builder extends jni$_.JObject { r'()Lokhttp3/Request$Builder;', ); - static final _delete$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _delete$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.Request$Builder delete()` /// The returned object must be released after use, by calling the [release] method. Request$Builder delete$1() { - return _delete$1(reference.pointer, _id_delete$1 as jni$_.JMethodIDPtr) - .object(const $Request$Builder$Type()); + return _delete$1( + reference.pointer, + _id_delete$1 as jni$_.JMethodIDPtr, + ).object(const $Request$Builder$Type()); } } @@ -650,11 +778,8 @@ final class $Request$Builder$NullableType @jni$_.internal @core$_.override - Request$Builder? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Request$Builder.fromReference( - reference, - ); + Request$Builder? fromReference(jni$_.JReference reference) => + reference.isNull ? null : Request$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -688,9 +813,7 @@ final class $Request$Builder$Type extends jni$_.JObjType { @jni$_.internal @core$_.override Request$Builder fromReference(jni$_.JReference reference) => - Request$Builder.fromReference( - reference, - ); + Request$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -721,10 +844,9 @@ class Request extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Request.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Request.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okhttp3/Request'); @@ -735,28 +857,35 @@ class Request extends jni$_.JObject { r'(Lokhttp3/HttpUrl;Ljava/lang/String;Lokhttp3/Headers;Lokhttp3/RequestBody;Ljava/util/Map;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (okhttp3.HttpUrl httpUrl, java.lang.String string, okhttp3.Headers headers, okhttp3.RequestBody requestBody, java.util.Map map)` /// The returned object must be released after use, by calling the [release] method. @@ -772,15 +901,17 @@ class Request extends jni$_.JObject { final _$headers = headers.reference; final _$requestBody = requestBody?.reference ?? jni$_.jNullReference; final _$map = map.reference; - return Request.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$httpUrl.pointer, - _$string.pointer, - _$headers.pointer, - _$requestBody.pointer, - _$map.pointer) - .reference); + return Request.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$httpUrl.pointer, + _$string.pointer, + _$headers.pointer, + _$requestBody.pointer, + _$map.pointer, + ).reference, + ); } static final _id_url = _class.instanceMethodId( @@ -788,23 +919,29 @@ class Request extends jni$_.JObject { r'()Lokhttp3/HttpUrl;', ); - static final _url = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _url = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.HttpUrl url()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject url() { - return _url(reference.pointer, _id_url as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + return _url( + reference.pointer, + _id_url as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } static final _id_method = _class.instanceMethodId( @@ -812,23 +949,29 @@ class Request extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _method = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _method = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.lang.String method()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString method() { - return _method(reference.pointer, _id_method as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + return _method( + reference.pointer, + _id_method as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringType()); } static final _id_headers = _class.instanceMethodId( @@ -836,23 +979,29 @@ class Request extends jni$_.JObject { r'()Lokhttp3/Headers;', ); - static final _headers = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _headers = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.Headers headers()` /// The returned object must be released after use, by calling the [release] method. Headers headers() { - return _headers(reference.pointer, _id_headers as jni$_.JMethodIDPtr) - .object(const $Headers$Type()); + return _headers( + reference.pointer, + _id_headers as jni$_.JMethodIDPtr, + ).object(const $Headers$Type()); } static final _id_body = _class.instanceMethodId( @@ -860,46 +1009,55 @@ class Request extends jni$_.JObject { r'()Lokhttp3/RequestBody;', ); - static final _body = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _body = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.RequestBody body()` /// The returned object must be released after use, by calling the [release] method. RequestBody? body() { - return _body(reference.pointer, _id_body as jni$_.JMethodIDPtr) - .object(const $RequestBody$NullableType()); + return _body( + reference.pointer, + _id_body as jni$_.JMethodIDPtr, + ).object(const $RequestBody$NullableType()); } - static final _id_isHttps = _class.instanceMethodId( - r'isHttps', - r'()Z', - ); + static final _id_isHttps = _class.instanceMethodId(r'isHttps', r'()Z'); - static final _isHttps = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _isHttps = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final boolean isHttps()` bool isHttps() { - return _isHttps(reference.pointer, _id_isHttps as jni$_.JMethodIDPtr) - .boolean; + return _isHttps( + reference.pointer, + _id_isHttps as jni$_.JMethodIDPtr, + ).boolean; } static final _id_header = _class.instanceMethodId( @@ -907,26 +1065,33 @@ class Request extends jni$_.JObject { r'(Ljava/lang/String;)Ljava/lang/String;', ); - static final _header = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _header = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final java.lang.String header(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? header( - jni$_.JString string, - ) { + jni$_.JString? header(jni$_.JString string) { final _$string = string.reference; - return _header(reference.pointer, _id_header as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const jni$_.JStringNullableType()); + return _header( + reference.pointer, + _id_header as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const jni$_.JStringNullableType()); } static final _id_headers$1 = _class.instanceMethodId( @@ -934,27 +1099,35 @@ class Request extends jni$_.JObject { r'(Ljava/lang/String;)Ljava/util/List;', ); - static final _headers$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$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _headers$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$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final java.util.List headers(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList headers$1( - jni$_.JString string, - ) { + jni$_.JList headers$1(jni$_.JString string) { final _$string = string.reference; - return _headers$1(reference.pointer, _id_headers$1 as jni$_.JMethodIDPtr, - _$string.pointer) - .object>( - const jni$_.JListType(jni$_.JStringType())); + return _headers$1( + reference.pointer, + _id_headers$1 as jni$_.JMethodIDPtr, + _$string.pointer, + ).object>( + const jni$_.JListType(jni$_.JStringType()), + ); } static final _id_tag = _class.instanceMethodId( @@ -962,23 +1135,29 @@ class Request extends jni$_.JObject { r'()Ljava/lang/Object;', ); - static final _tag = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _tag = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.lang.Object tag()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? tag() { - return _tag(reference.pointer, _id_tag as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _tag( + reference.pointer, + _id_tag as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_tag$1 = _class.instanceMethodId( @@ -986,16 +1165,23 @@ class Request extends jni$_.JObject { r'(Ljava/lang/Class;)Ljava/lang/Object;', ); - static final _tag$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$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _tag$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$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final T tag(java.lang.Class class)` /// The returned object must be released after use, by calling the [release] method. @@ -1004,9 +1190,11 @@ class Request extends jni$_.JObject { required jni$_.JObjType<$T> T, }) { final _$class$ = class$.reference; - return _tag$1(reference.pointer, _id_tag$1 as jni$_.JMethodIDPtr, - _$class$.pointer) - .object<$T?>(T.nullableType); + return _tag$1( + reference.pointer, + _id_tag$1 as jni$_.JMethodIDPtr, + _$class$.pointer, + ).object<$T?>(T.nullableType); } static final _id_newBuilder = _class.instanceMethodId( @@ -1014,23 +1202,29 @@ class Request extends jni$_.JObject { r'()Lokhttp3/Request$Builder;', ); - static final _newBuilder = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _newBuilder = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.Request$Builder newBuilder()` /// The returned object must be released after use, by calling the [release] method. Request$Builder newBuilder() { - return _newBuilder(reference.pointer, _id_newBuilder as jni$_.JMethodIDPtr) - .object(const $Request$Builder$Type()); + return _newBuilder( + reference.pointer, + _id_newBuilder as jni$_.JMethodIDPtr, + ).object(const $Request$Builder$Type()); } static final _id_cacheControl = _class.instanceMethodId( @@ -1038,24 +1232,29 @@ class Request extends jni$_.JObject { r'()Lokhttp3/CacheControl;', ); - static final _cacheControl = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _cacheControl = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.CacheControl cacheControl()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject cacheControl() { return _cacheControl( - reference.pointer, _id_cacheControl as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + reference.pointer, + _id_cacheControl as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } static final _id_toString$1 = _class.instanceMethodId( @@ -1063,23 +1262,29 @@ class Request extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + 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()); + return _toString$1( + reference.pointer, + _id_toString$1 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringType()); } } @@ -1093,11 +1298,8 @@ final class $Request$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - Request? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Request.fromReference( - reference, - ); + Request? fromReference(jni$_.JReference reference) => + reference.isNull ? null : Request.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -1130,9 +1332,8 @@ final class $Request$Type extends jni$_.JObjType { @jni$_.internal @core$_.override - Request fromReference(jni$_.JReference reference) => Request.fromReference( - reference, - ); + Request fromReference(jni$_.JReference reference) => + Request.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -1161,10 +1362,9 @@ class RequestBody$Companion extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - RequestBody$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + RequestBody$Companion.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okhttp3/RequestBody$Companion'); @@ -1176,34 +1376,38 @@ class RequestBody$Companion extends jni$_.JObject { r'(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/RequestBody;', ); - static final _create = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.RequestBody create(java.lang.String string, okhttp3.MediaType mediaType)` /// The returned object must be released after use, by calling the [release] method. - RequestBody create( - jni$_.JString string, - jni$_.JObject? mediaType, - ) { + RequestBody create(jni$_.JString string, jni$_.JObject? mediaType) { final _$string = string.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create(reference.pointer, _id_create as jni$_.JMethodIDPtr, - _$string.pointer, _$mediaType.pointer) - .object(const $RequestBody$Type()); + return _create( + reference.pointer, + _id_create as jni$_.JMethodIDPtr, + _$string.pointer, + _$mediaType.pointer, + ).object(const $RequestBody$Type()); } static final _id_create$1 = _class.instanceMethodId( @@ -1211,34 +1415,38 @@ class RequestBody$Companion extends jni$_.JObject { r'(Lokio/ByteString;Lokhttp3/MediaType;)Lokhttp3/RequestBody;', ); - static final _create$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.RequestBody create(okio.ByteString byteString, okhttp3.MediaType mediaType)` /// The returned object must be released after use, by calling the [release] method. - RequestBody create$1( - ByteString byteString, - jni$_.JObject? mediaType, - ) { + RequestBody create$1(ByteString byteString, jni$_.JObject? mediaType) { final _$byteString = byteString.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create$1(reference.pointer, _id_create$1 as jni$_.JMethodIDPtr, - _$byteString.pointer, _$mediaType.pointer) - .object(const $RequestBody$Type()); + return _create$1( + reference.pointer, + _id_create$1 as jni$_.JMethodIDPtr, + _$byteString.pointer, + _$mediaType.pointer, + ).object(const $RequestBody$Type()); } static final _id_create$2 = _class.instanceMethodId( @@ -1246,26 +1454,33 @@ class RequestBody$Companion extends jni$_.JObject { r'([BLokhttp3/MediaType;II)Lokhttp3/RequestBody;', ); - static final _create$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `public final okhttp3.RequestBody create(byte[] bs, okhttp3.MediaType mediaType, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. @@ -1277,9 +1492,14 @@ class RequestBody$Companion extends jni$_.JObject { ) { final _$bs = bs.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create$2(reference.pointer, _id_create$2 as jni$_.JMethodIDPtr, - _$bs.pointer, _$mediaType.pointer, i, i1) - .object(const $RequestBody$Type()); + return _create$2( + reference.pointer, + _id_create$2 as jni$_.JMethodIDPtr, + _$bs.pointer, + _$mediaType.pointer, + i, + i1, + ).object(const $RequestBody$Type()); } static final _id_create$3 = _class.instanceMethodId( @@ -1287,34 +1507,38 @@ class RequestBody$Companion extends jni$_.JObject { r'(Ljava/io/File;Lokhttp3/MediaType;)Lokhttp3/RequestBody;', ); - static final _create$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.RequestBody create(java.io.File file, okhttp3.MediaType mediaType)` /// The returned object must be released after use, by calling the [release] method. - RequestBody create$3( - jni$_.JObject file, - jni$_.JObject? mediaType, - ) { + RequestBody create$3(jni$_.JObject file, jni$_.JObject? mediaType) { final _$file = file.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create$3(reference.pointer, _id_create$3 as jni$_.JMethodIDPtr, - _$file.pointer, _$mediaType.pointer) - .object(const $RequestBody$Type()); + return _create$3( + reference.pointer, + _id_create$3 as jni$_.JMethodIDPtr, + _$file.pointer, + _$mediaType.pointer, + ).object(const $RequestBody$Type()); } static final _id_create$4 = _class.instanceMethodId( @@ -1322,34 +1546,38 @@ class RequestBody$Companion extends jni$_.JObject { r'(Lokhttp3/MediaType;Ljava/lang/String;)Lokhttp3/RequestBody;', ); - static final _create$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - RequestBody create$4( - jni$_.JObject? mediaType, - jni$_.JString string, - ) { + RequestBody create$4(jni$_.JObject? mediaType, jni$_.JString string) { final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$string = string.reference; - return _create$4(reference.pointer, _id_create$4 as jni$_.JMethodIDPtr, - _$mediaType.pointer, _$string.pointer) - .object(const $RequestBody$Type()); + return _create$4( + reference.pointer, + _id_create$4 as jni$_.JMethodIDPtr, + _$mediaType.pointer, + _$string.pointer, + ).object(const $RequestBody$Type()); } static final _id_create$5 = _class.instanceMethodId( @@ -1357,34 +1585,38 @@ class RequestBody$Companion extends jni$_.JObject { r'(Lokhttp3/MediaType;Lokio/ByteString;)Lokhttp3/RequestBody;', ); - static final _create$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, okio.ByteString byteString)` /// The returned object must be released after use, by calling the [release] method. - RequestBody create$5( - jni$_.JObject? mediaType, - ByteString byteString, - ) { + RequestBody create$5(jni$_.JObject? mediaType, ByteString byteString) { final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$byteString = byteString.reference; - return _create$5(reference.pointer, _id_create$5 as jni$_.JMethodIDPtr, - _$mediaType.pointer, _$byteString.pointer) - .object(const $RequestBody$Type()); + return _create$5( + reference.pointer, + _id_create$5 as jni$_.JMethodIDPtr, + _$mediaType.pointer, + _$byteString.pointer, + ).object(const $RequestBody$Type()); } static final _id_create$6 = _class.instanceMethodId( @@ -1392,26 +1624,33 @@ class RequestBody$Companion extends jni$_.JObject { r'(Lokhttp3/MediaType;[BII)Lokhttp3/RequestBody;', ); - static final _create$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$6 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, byte[] bs, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. @@ -1423,9 +1662,14 @@ class RequestBody$Companion extends jni$_.JObject { ) { final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$bs = bs.reference; - return _create$6(reference.pointer, _id_create$6 as jni$_.JMethodIDPtr, - _$mediaType.pointer, _$bs.pointer, i, i1) - .object(const $RequestBody$Type()); + return _create$6( + reference.pointer, + _id_create$6 as jni$_.JMethodIDPtr, + _$mediaType.pointer, + _$bs.pointer, + i, + i1, + ).object(const $RequestBody$Type()); } static final _id_create$7 = _class.instanceMethodId( @@ -1433,34 +1677,38 @@ class RequestBody$Companion extends jni$_.JObject { r'(Lokhttp3/MediaType;Ljava/io/File;)Lokhttp3/RequestBody;', ); - static final _create$7 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$7 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, java.io.File file)` /// The returned object must be released after use, by calling the [release] method. - RequestBody create$7( - jni$_.JObject? mediaType, - jni$_.JObject file, - ) { + RequestBody create$7(jni$_.JObject? mediaType, jni$_.JObject file) { final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$file = file.reference; - return _create$7(reference.pointer, _id_create$7 as jni$_.JMethodIDPtr, - _$mediaType.pointer, _$file.pointer) - .object(const $RequestBody$Type()); + return _create$7( + reference.pointer, + _id_create$7 as jni$_.JMethodIDPtr, + _$mediaType.pointer, + _$file.pointer, + ).object(const $RequestBody$Type()); } static final _id_create$8 = _class.instanceMethodId( @@ -1468,37 +1716,44 @@ class RequestBody$Companion extends jni$_.JObject { r'([BLokhttp3/MediaType;I)Lokhttp3/RequestBody;', ); - static final _create$8 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$8 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32 - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int)>(); + int, + ) + >(); /// from: `public final okhttp3.RequestBody create(byte[] bs, okhttp3.MediaType mediaType, int i)` /// The returned object must be released after use, by calling the [release] method. - RequestBody create$8( - jni$_.JByteArray bs, - jni$_.JObject? mediaType, - int i, - ) { + RequestBody create$8(jni$_.JByteArray bs, jni$_.JObject? mediaType, int i) { final _$bs = bs.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create$8(reference.pointer, _id_create$8 as jni$_.JMethodIDPtr, - _$bs.pointer, _$mediaType.pointer, i) - .object(const $RequestBody$Type()); + return _create$8( + reference.pointer, + _id_create$8 as jni$_.JMethodIDPtr, + _$bs.pointer, + _$mediaType.pointer, + i, + ).object(const $RequestBody$Type()); } static final _id_create$9 = _class.instanceMethodId( @@ -1506,34 +1761,38 @@ class RequestBody$Companion extends jni$_.JObject { r'([BLokhttp3/MediaType;)Lokhttp3/RequestBody;', ); - static final _create$9 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$9 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.RequestBody create(byte[] bs, okhttp3.MediaType mediaType)` /// The returned object must be released after use, by calling the [release] method. - RequestBody create$9( - jni$_.JByteArray bs, - jni$_.JObject? mediaType, - ) { + RequestBody create$9(jni$_.JByteArray bs, jni$_.JObject? mediaType) { final _$bs = bs.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create$9(reference.pointer, _id_create$9 as jni$_.JMethodIDPtr, - _$bs.pointer, _$mediaType.pointer) - .object(const $RequestBody$Type()); + return _create$9( + reference.pointer, + _id_create$9 as jni$_.JMethodIDPtr, + _$bs.pointer, + _$mediaType.pointer, + ).object(const $RequestBody$Type()); } static final _id_create$10 = _class.instanceMethodId( @@ -1541,26 +1800,33 @@ class RequestBody$Companion extends jni$_.JObject { r'([B)Lokhttp3/RequestBody;', ); - static final _create$10 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _create$10 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.RequestBody create(byte[] bs)` /// The returned object must be released after use, by calling the [release] method. - RequestBody create$10( - jni$_.JByteArray bs, - ) { + RequestBody create$10(jni$_.JByteArray bs) { final _$bs = bs.reference; - return _create$10(reference.pointer, _id_create$10 as jni$_.JMethodIDPtr, - _$bs.pointer) - .object(const $RequestBody$Type()); + return _create$10( + reference.pointer, + _id_create$10 as jni$_.JMethodIDPtr, + _$bs.pointer, + ).object(const $RequestBody$Type()); } static final _id_create$11 = _class.instanceMethodId( @@ -1568,37 +1834,44 @@ class RequestBody$Companion extends jni$_.JObject { r'(Lokhttp3/MediaType;[BI)Lokhttp3/RequestBody;', ); - static final _create$11 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$11 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32 - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int)>(); + int, + ) + >(); /// from: `public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, byte[] bs, int i)` /// The returned object must be released after use, by calling the [release] method. - RequestBody create$11( - jni$_.JObject? mediaType, - jni$_.JByteArray bs, - int i, - ) { + RequestBody create$11(jni$_.JObject? mediaType, jni$_.JByteArray bs, int i) { final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$bs = bs.reference; - return _create$11(reference.pointer, _id_create$11 as jni$_.JMethodIDPtr, - _$mediaType.pointer, _$bs.pointer, i) - .object(const $RequestBody$Type()); + return _create$11( + reference.pointer, + _id_create$11 as jni$_.JMethodIDPtr, + _$mediaType.pointer, + _$bs.pointer, + i, + ).object(const $RequestBody$Type()); } static final _id_create$12 = _class.instanceMethodId( @@ -1606,61 +1879,74 @@ class RequestBody$Companion extends jni$_.JObject { r'(Lokhttp3/MediaType;[B)Lokhttp3/RequestBody;', ); - static final _create$12 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$12 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, byte[] bs)` /// The returned object must be released after use, by calling the [release] method. - RequestBody create$12( - jni$_.JObject? mediaType, - jni$_.JByteArray bs, - ) { + RequestBody create$12(jni$_.JObject? mediaType, jni$_.JByteArray bs) { final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$bs = bs.reference; - return _create$12(reference.pointer, _id_create$12 as jni$_.JMethodIDPtr, - _$mediaType.pointer, _$bs.pointer) - .object(const $RequestBody$Type()); + return _create$12( + reference.pointer, + _id_create$12 as jni$_.JMethodIDPtr, + _$mediaType.pointer, + _$bs.pointer, + ).object(const $RequestBody$Type()); } static final _id_new$ = _class.constructorId( r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` /// The returned object must be released after use, by calling the [release] method. - factory RequestBody$Companion( - jni$_.JObject? defaultConstructorMarker, - ) { + factory RequestBody$Companion(jni$_.JObject? defaultConstructorMarker) { final _$defaultConstructorMarker = defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return RequestBody$Companion.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$defaultConstructorMarker.pointer) - .reference); + return RequestBody$Companion.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$defaultConstructorMarker.pointer, + ).reference, + ); } } @@ -1676,11 +1962,7 @@ final class $RequestBody$Companion$NullableType @jni$_.internal @core$_.override RequestBody$Companion? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : RequestBody$Companion.fromReference( - reference, - ); + reference.isNull ? null : RequestBody$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -1715,9 +1997,7 @@ final class $RequestBody$Companion$Type @jni$_.internal @core$_.override RequestBody$Companion fromReference(jni$_.JReference reference) => - RequestBody$Companion.fromReference( - reference, - ); + RequestBody$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -1748,10 +2028,9 @@ class RequestBody extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - RequestBody.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + RequestBody.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okhttp3/RequestBody'); @@ -1773,24 +2052,29 @@ class RequestBody extends jni$_.JObject { r'()Lokhttp3/MediaType;', ); - static final _contentType = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _contentType = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract okhttp3.MediaType contentType()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? contentType() { return _contentType( - reference.pointer, _id_contentType as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_contentType as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_contentLength = _class.instanceMethodId( @@ -1798,23 +2082,28 @@ class RequestBody extends jni$_.JObject { r'()J', ); - static final _contentLength = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _contentLength = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public long contentLength()` int contentLength() { return _contentLength( - reference.pointer, _id_contentLength as jni$_.JMethodIDPtr) - .long; + reference.pointer, + _id_contentLength as jni$_.JMethodIDPtr, + ).long; } static final _id_writeTo = _class.instanceMethodId( @@ -1822,71 +2111,84 @@ class RequestBody extends jni$_.JObject { r'(Lokio/BufferedSink;)V', ); - static final _writeTo = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _writeTo = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract void writeTo(okio.BufferedSink bufferedSink)` - void writeTo( - jni$_.JObject bufferedSink, - ) { + void writeTo(jni$_.JObject bufferedSink) { final _$bufferedSink = bufferedSink.reference; - _writeTo(reference.pointer, _id_writeTo as jni$_.JMethodIDPtr, - _$bufferedSink.pointer) - .check(); + _writeTo( + reference.pointer, + _id_writeTo as jni$_.JMethodIDPtr, + _$bufferedSink.pointer, + ).check(); } - static final _id_isDuplex = _class.instanceMethodId( - r'isDuplex', - r'()Z', - ); + static final _id_isDuplex = _class.instanceMethodId(r'isDuplex', r'()Z'); - static final _isDuplex = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _isDuplex = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public boolean isDuplex()` bool isDuplex() { - return _isDuplex(reference.pointer, _id_isDuplex as jni$_.JMethodIDPtr) - .boolean; + return _isDuplex( + reference.pointer, + _id_isDuplex as jni$_.JMethodIDPtr, + ).boolean; } - static final _id_isOneShot = _class.instanceMethodId( - r'isOneShot', - r'()Z', - ); + static final _id_isOneShot = _class.instanceMethodId(r'isOneShot', r'()Z'); - static final _isOneShot = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _isOneShot = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public boolean isOneShot()` bool isOneShot() { - return _isOneShot(reference.pointer, _id_isOneShot as jni$_.JMethodIDPtr) - .boolean; + return _isOneShot( + reference.pointer, + _id_isOneShot as jni$_.JMethodIDPtr, + ).boolean; } static final _id_create = _class.staticMethodId( @@ -1894,34 +2196,38 @@ class RequestBody extends jni$_.JObject { r'(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/RequestBody;', ); - static final _create = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public final okhttp3.RequestBody create(java.lang.String string, okhttp3.MediaType mediaType)` /// The returned object must be released after use, by calling the [release] method. - static RequestBody create( - jni$_.JString string, - jni$_.JObject? mediaType, - ) { + static RequestBody create(jni$_.JString string, jni$_.JObject? mediaType) { final _$string = string.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create(_class.reference.pointer, _id_create as jni$_.JMethodIDPtr, - _$string.pointer, _$mediaType.pointer) - .object(const $RequestBody$Type()); + return _create( + _class.reference.pointer, + _id_create as jni$_.JMethodIDPtr, + _$string.pointer, + _$mediaType.pointer, + ).object(const $RequestBody$Type()); } static final _id_create$1 = _class.staticMethodId( @@ -1929,37 +2235,38 @@ class RequestBody extends jni$_.JObject { r'(Lokio/ByteString;Lokhttp3/MediaType;)Lokhttp3/RequestBody;', ); - static final _create$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public final okhttp3.RequestBody create(okio.ByteString byteString, okhttp3.MediaType mediaType)` /// The returned object must be released after use, by calling the [release] method. - static RequestBody create$1( - ByteString byteString, - jni$_.JObject? mediaType, - ) { + static RequestBody create$1(ByteString byteString, jni$_.JObject? mediaType) { final _$byteString = byteString.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; return _create$1( - _class.reference.pointer, - _id_create$1 as jni$_.JMethodIDPtr, - _$byteString.pointer, - _$mediaType.pointer) - .object(const $RequestBody$Type()); + _class.reference.pointer, + _id_create$1 as jni$_.JMethodIDPtr, + _$byteString.pointer, + _$mediaType.pointer, + ).object(const $RequestBody$Type()); } static final _id_create$2 = _class.staticMethodId( @@ -1967,26 +2274,33 @@ class RequestBody extends jni$_.JObject { r'([BLokhttp3/MediaType;II)Lokhttp3/RequestBody;', ); - static final _create$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public final okhttp3.RequestBody create(byte[] bs, okhttp3.MediaType mediaType, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. @@ -1999,13 +2313,13 @@ class RequestBody extends jni$_.JObject { final _$bs = bs.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; return _create$2( - _class.reference.pointer, - _id_create$2 as jni$_.JMethodIDPtr, - _$bs.pointer, - _$mediaType.pointer, - i, - i1) - .object(const $RequestBody$Type()); + _class.reference.pointer, + _id_create$2 as jni$_.JMethodIDPtr, + _$bs.pointer, + _$mediaType.pointer, + i, + i1, + ).object(const $RequestBody$Type()); } static final _id_create$3 = _class.staticMethodId( @@ -2013,37 +2327,38 @@ class RequestBody extends jni$_.JObject { r'(Ljava/io/File;Lokhttp3/MediaType;)Lokhttp3/RequestBody;', ); - static final _create$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public final okhttp3.RequestBody create(java.io.File file, okhttp3.MediaType mediaType)` /// The returned object must be released after use, by calling the [release] method. - static RequestBody create$3( - jni$_.JObject file, - jni$_.JObject? mediaType, - ) { + static RequestBody create$3(jni$_.JObject file, jni$_.JObject? mediaType) { final _$file = file.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; return _create$3( - _class.reference.pointer, - _id_create$3 as jni$_.JMethodIDPtr, - _$file.pointer, - _$mediaType.pointer) - .object(const $RequestBody$Type()); + _class.reference.pointer, + _id_create$3 as jni$_.JMethodIDPtr, + _$file.pointer, + _$mediaType.pointer, + ).object(const $RequestBody$Type()); } static final _id_create$4 = _class.staticMethodId( @@ -2051,37 +2366,38 @@ class RequestBody extends jni$_.JObject { r'(Lokhttp3/MediaType;Ljava/lang/String;)Lokhttp3/RequestBody;', ); - static final _create$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - static RequestBody create$4( - jni$_.JObject? mediaType, - jni$_.JString string, - ) { + static RequestBody create$4(jni$_.JObject? mediaType, jni$_.JString string) { final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$string = string.reference; return _create$4( - _class.reference.pointer, - _id_create$4 as jni$_.JMethodIDPtr, - _$mediaType.pointer, - _$string.pointer) - .object(const $RequestBody$Type()); + _class.reference.pointer, + _id_create$4 as jni$_.JMethodIDPtr, + _$mediaType.pointer, + _$string.pointer, + ).object(const $RequestBody$Type()); } static final _id_create$5 = _class.staticMethodId( @@ -2089,37 +2405,38 @@ class RequestBody extends jni$_.JObject { r'(Lokhttp3/MediaType;Lokio/ByteString;)Lokhttp3/RequestBody;', ); - static final _create$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, okio.ByteString byteString)` /// The returned object must be released after use, by calling the [release] method. - static RequestBody create$5( - jni$_.JObject? mediaType, - ByteString byteString, - ) { + static RequestBody create$5(jni$_.JObject? mediaType, ByteString byteString) { final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$byteString = byteString.reference; return _create$5( - _class.reference.pointer, - _id_create$5 as jni$_.JMethodIDPtr, - _$mediaType.pointer, - _$byteString.pointer) - .object(const $RequestBody$Type()); + _class.reference.pointer, + _id_create$5 as jni$_.JMethodIDPtr, + _$mediaType.pointer, + _$byteString.pointer, + ).object(const $RequestBody$Type()); } static final _id_create$6 = _class.staticMethodId( @@ -2127,26 +2444,33 @@ class RequestBody extends jni$_.JObject { r'(Lokhttp3/MediaType;[BII)Lokhttp3/RequestBody;', ); - static final _create$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$6 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, byte[] bs, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. @@ -2159,13 +2483,13 @@ class RequestBody extends jni$_.JObject { final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$bs = bs.reference; return _create$6( - _class.reference.pointer, - _id_create$6 as jni$_.JMethodIDPtr, - _$mediaType.pointer, - _$bs.pointer, - i, - i1) - .object(const $RequestBody$Type()); + _class.reference.pointer, + _id_create$6 as jni$_.JMethodIDPtr, + _$mediaType.pointer, + _$bs.pointer, + i, + i1, + ).object(const $RequestBody$Type()); } static final _id_create$7 = _class.staticMethodId( @@ -2173,37 +2497,38 @@ class RequestBody extends jni$_.JObject { r'(Lokhttp3/MediaType;Ljava/io/File;)Lokhttp3/RequestBody;', ); - static final _create$7 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$7 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, java.io.File file)` /// The returned object must be released after use, by calling the [release] method. - static RequestBody create$7( - jni$_.JObject? mediaType, - jni$_.JObject file, - ) { + static RequestBody create$7(jni$_.JObject? mediaType, jni$_.JObject file) { final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$file = file.reference; return _create$7( - _class.reference.pointer, - _id_create$7 as jni$_.JMethodIDPtr, - _$mediaType.pointer, - _$file.pointer) - .object(const $RequestBody$Type()); + _class.reference.pointer, + _id_create$7 as jni$_.JMethodIDPtr, + _$mediaType.pointer, + _$file.pointer, + ).object(const $RequestBody$Type()); } static final _id_create$8 = _class.staticMethodId( @@ -2211,24 +2536,31 @@ class RequestBody extends jni$_.JObject { r'([BLokhttp3/MediaType;I)Lokhttp3/RequestBody;', ); - static final _create$8 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$8 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int)>(); + int, + ) + >(); /// from: `static public final okhttp3.RequestBody create(byte[] bs, okhttp3.MediaType mediaType, int i)` /// The returned object must be released after use, by calling the [release] method. @@ -2240,12 +2572,12 @@ class RequestBody extends jni$_.JObject { final _$bs = bs.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; return _create$8( - _class.reference.pointer, - _id_create$8 as jni$_.JMethodIDPtr, - _$bs.pointer, - _$mediaType.pointer, - i) - .object(const $RequestBody$Type()); + _class.reference.pointer, + _id_create$8 as jni$_.JMethodIDPtr, + _$bs.pointer, + _$mediaType.pointer, + i, + ).object(const $RequestBody$Type()); } static final _id_create$9 = _class.staticMethodId( @@ -2253,37 +2585,38 @@ class RequestBody extends jni$_.JObject { r'([BLokhttp3/MediaType;)Lokhttp3/RequestBody;', ); - static final _create$9 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$9 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public final okhttp3.RequestBody create(byte[] bs, okhttp3.MediaType mediaType)` /// The returned object must be released after use, by calling the [release] method. - static RequestBody create$9( - jni$_.JByteArray bs, - jni$_.JObject? mediaType, - ) { + static RequestBody create$9(jni$_.JByteArray bs, jni$_.JObject? mediaType) { final _$bs = bs.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; return _create$9( - _class.reference.pointer, - _id_create$9 as jni$_.JMethodIDPtr, - _$bs.pointer, - _$mediaType.pointer) - .object(const $RequestBody$Type()); + _class.reference.pointer, + _id_create$9 as jni$_.JMethodIDPtr, + _$bs.pointer, + _$mediaType.pointer, + ).object(const $RequestBody$Type()); } static final _id_create$10 = _class.staticMethodId( @@ -2291,26 +2624,33 @@ class RequestBody extends jni$_.JObject { r'([B)Lokhttp3/RequestBody;', ); - static final _create$10 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _create$10 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public final okhttp3.RequestBody create(byte[] bs)` /// The returned object must be released after use, by calling the [release] method. - static RequestBody create$10( - jni$_.JByteArray bs, - ) { + static RequestBody create$10(jni$_.JByteArray bs) { final _$bs = bs.reference; - return _create$10(_class.reference.pointer, - _id_create$10 as jni$_.JMethodIDPtr, _$bs.pointer) - .object(const $RequestBody$Type()); + return _create$10( + _class.reference.pointer, + _id_create$10 as jni$_.JMethodIDPtr, + _$bs.pointer, + ).object(const $RequestBody$Type()); } static final _id_create$11 = _class.staticMethodId( @@ -2318,24 +2658,31 @@ class RequestBody extends jni$_.JObject { r'(Lokhttp3/MediaType;[BI)Lokhttp3/RequestBody;', ); - static final _create$11 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$11 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int)>(); + int, + ) + >(); /// from: `static public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, byte[] bs, int i)` /// The returned object must be released after use, by calling the [release] method. @@ -2347,12 +2694,12 @@ class RequestBody extends jni$_.JObject { final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$bs = bs.reference; return _create$11( - _class.reference.pointer, - _id_create$11 as jni$_.JMethodIDPtr, - _$mediaType.pointer, - _$bs.pointer, - i) - .object(const $RequestBody$Type()); + _class.reference.pointer, + _id_create$11 as jni$_.JMethodIDPtr, + _$mediaType.pointer, + _$bs.pointer, + i, + ).object(const $RequestBody$Type()); } static final _id_create$12 = _class.staticMethodId( @@ -2360,37 +2707,38 @@ class RequestBody extends jni$_.JObject { r'(Lokhttp3/MediaType;[B)Lokhttp3/RequestBody;', ); - static final _create$12 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$12 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, byte[] bs)` /// The returned object must be released after use, by calling the [release] method. - static RequestBody create$12( - jni$_.JObject? mediaType, - jni$_.JByteArray bs, - ) { + static RequestBody create$12(jni$_.JObject? mediaType, jni$_.JByteArray bs) { final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$bs = bs.reference; return _create$12( - _class.reference.pointer, - _id_create$12 as jni$_.JMethodIDPtr, - _$mediaType.pointer, - _$bs.pointer) - .object(const $RequestBody$Type()); + _class.reference.pointer, + _id_create$12 as jni$_.JMethodIDPtr, + _$mediaType.pointer, + _$bs.pointer, + ).object(const $RequestBody$Type()); } } @@ -2404,11 +2752,8 @@ final class $RequestBody$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - RequestBody? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : RequestBody.fromReference( - reference, - ); + RequestBody? fromReference(jni$_.JReference reference) => + reference.isNull ? null : RequestBody.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -2442,9 +2787,7 @@ final class $RequestBody$Type extends jni$_.JObjType { @jni$_.internal @core$_.override RequestBody fromReference(jni$_.JReference reference) => - RequestBody.fromReference( - reference, - ); + RequestBody.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -2475,64 +2818,72 @@ class Response$Builder extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Response$Builder.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Response$Builder.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okhttp3/Response$Builder'); /// The type which includes information such as the signature of this class. static const nullableType = $Response$Builder$NullableType(); static const type = $Response$Builder$Type(); - static final _id_new$ = _class.constructorId( - r'()V', - ); + static final _id_new$ = _class.constructorId(r'()V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory Response$Builder() { return Response$Builder.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); } - static final _id_new$1 = _class.constructorId( - r'(Lokhttp3/Response;)V', - ); + static final _id_new$1 = _class.constructorId(r'(Lokhttp3/Response;)V'); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void (okhttp3.Response response)` /// The returned object must be released after use, by calling the [release] method. - factory Response$Builder.new$1( - Response response, - ) { + factory Response$Builder.new$1(Response response) { final _$response = response.reference; - return Response$Builder.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, _$response.pointer) - .reference); + return Response$Builder.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$response.pointer, + ).reference, + ); } static final _id_request = _class.instanceMethodId( @@ -2540,26 +2891,33 @@ class Response$Builder extends jni$_.JObject { r'(Lokhttp3/Request;)Lokhttp3/Response$Builder;', ); - static final _request = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _request = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Response$Builder request(okhttp3.Request request)` /// The returned object must be released after use, by calling the [release] method. - Response$Builder request( - Request request, - ) { + Response$Builder request(Request request) { final _$request = request.reference; - return _request(reference.pointer, _id_request as jni$_.JMethodIDPtr, - _$request.pointer) - .object(const $Response$Builder$Type()); + return _request( + reference.pointer, + _id_request as jni$_.JMethodIDPtr, + _$request.pointer, + ).object(const $Response$Builder$Type()); } static final _id_protocol = _class.instanceMethodId( @@ -2567,26 +2925,33 @@ class Response$Builder extends jni$_.JObject { r'(Lokhttp3/Protocol;)Lokhttp3/Response$Builder;', ); - static final _protocol = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _protocol = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Response$Builder protocol(okhttp3.Protocol protocol)` /// The returned object must be released after use, by calling the [release] method. - Response$Builder protocol( - jni$_.JObject protocol, - ) { + Response$Builder protocol(jni$_.JObject protocol) { final _$protocol = protocol.reference; - return _protocol(reference.pointer, _id_protocol as jni$_.JMethodIDPtr, - _$protocol.pointer) - .object(const $Response$Builder$Type()); + return _protocol( + reference.pointer, + _id_protocol as jni$_.JMethodIDPtr, + _$protocol.pointer, + ).object(const $Response$Builder$Type()); } static final _id_code = _class.instanceMethodId( @@ -2594,23 +2959,32 @@ class Response$Builder extends jni$_.JObject { r'(I)Lokhttp3/Response$Builder;', ); - static final _code = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _code = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public okhttp3.Response$Builder code(int i)` /// The returned object must be released after use, by calling the [release] method. - Response$Builder code( - int i, - ) { - return _code(reference.pointer, _id_code as jni$_.JMethodIDPtr, i) - .object(const $Response$Builder$Type()); + Response$Builder code(int i) { + return _code( + reference.pointer, + _id_code as jni$_.JMethodIDPtr, + i, + ).object(const $Response$Builder$Type()); } static final _id_message = _class.instanceMethodId( @@ -2618,26 +2992,33 @@ class Response$Builder extends jni$_.JObject { r'(Ljava/lang/String;)Lokhttp3/Response$Builder;', ); - static final _message = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _message = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Response$Builder message(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - Response$Builder message( - jni$_.JString string, - ) { + Response$Builder message(jni$_.JString string) { final _$string = string.reference; - return _message(reference.pointer, _id_message as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const $Response$Builder$Type()); + return _message( + reference.pointer, + _id_message as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $Response$Builder$Type()); } static final _id_handshake = _class.instanceMethodId( @@ -2645,26 +3026,33 @@ class Response$Builder extends jni$_.JObject { r'(Lokhttp3/Handshake;)Lokhttp3/Response$Builder;', ); - static final _handshake = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _handshake = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Response$Builder handshake(okhttp3.Handshake handshake)` /// The returned object must be released after use, by calling the [release] method. - Response$Builder handshake( - jni$_.JObject? handshake, - ) { + Response$Builder handshake(jni$_.JObject? handshake) { final _$handshake = handshake?.reference ?? jni$_.jNullReference; - return _handshake(reference.pointer, _id_handshake as jni$_.JMethodIDPtr, - _$handshake.pointer) - .object(const $Response$Builder$Type()); + return _handshake( + reference.pointer, + _id_handshake as jni$_.JMethodIDPtr, + _$handshake.pointer, + ).object(const $Response$Builder$Type()); } static final _id_header = _class.instanceMethodId( @@ -2672,34 +3060,38 @@ class Response$Builder extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Response$Builder;', ); - static final _header = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _header = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Response$Builder header(java.lang.String string, java.lang.String string1)` /// The returned object must be released after use, by calling the [release] method. - Response$Builder header( - jni$_.JString string, - jni$_.JString string1, - ) { + Response$Builder header(jni$_.JString string, jni$_.JString string1) { final _$string = string.reference; final _$string1 = string1.reference; - return _header(reference.pointer, _id_header as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) - .object(const $Response$Builder$Type()); + return _header( + reference.pointer, + _id_header as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).object(const $Response$Builder$Type()); } static final _id_addHeader = _class.instanceMethodId( @@ -2707,34 +3099,38 @@ class Response$Builder extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Response$Builder;', ); - static final _addHeader = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _addHeader = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Response$Builder addHeader(java.lang.String string, java.lang.String string1)` /// The returned object must be released after use, by calling the [release] method. - Response$Builder addHeader( - jni$_.JString string, - jni$_.JString string1, - ) { + Response$Builder addHeader(jni$_.JString string, jni$_.JString string1) { final _$string = string.reference; final _$string1 = string1.reference; - return _addHeader(reference.pointer, _id_addHeader as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) - .object(const $Response$Builder$Type()); + return _addHeader( + reference.pointer, + _id_addHeader as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).object(const $Response$Builder$Type()); } static final _id_removeHeader = _class.instanceMethodId( @@ -2742,26 +3138,33 @@ class Response$Builder extends jni$_.JObject { r'(Ljava/lang/String;)Lokhttp3/Response$Builder;', ); - static final _removeHeader = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _removeHeader = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Response$Builder removeHeader(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - Response$Builder removeHeader( - jni$_.JString string, - ) { + Response$Builder removeHeader(jni$_.JString string) { final _$string = string.reference; - return _removeHeader(reference.pointer, - _id_removeHeader as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $Response$Builder$Type()); + return _removeHeader( + reference.pointer, + _id_removeHeader as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $Response$Builder$Type()); } static final _id_headers = _class.instanceMethodId( @@ -2769,26 +3172,33 @@ class Response$Builder extends jni$_.JObject { r'(Lokhttp3/Headers;)Lokhttp3/Response$Builder;', ); - static final _headers = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _headers = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Response$Builder headers(okhttp3.Headers headers)` /// The returned object must be released after use, by calling the [release] method. - Response$Builder headers( - Headers headers, - ) { + Response$Builder headers(Headers headers) { final _$headers = headers.reference; - return _headers(reference.pointer, _id_headers as jni$_.JMethodIDPtr, - _$headers.pointer) - .object(const $Response$Builder$Type()); + return _headers( + reference.pointer, + _id_headers as jni$_.JMethodIDPtr, + _$headers.pointer, + ).object(const $Response$Builder$Type()); } static final _id_body = _class.instanceMethodId( @@ -2796,26 +3206,33 @@ class Response$Builder extends jni$_.JObject { r'(Lokhttp3/ResponseBody;)Lokhttp3/Response$Builder;', ); - static final _body = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _body = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Response$Builder body(okhttp3.ResponseBody responseBody)` /// The returned object must be released after use, by calling the [release] method. - Response$Builder body( - ResponseBody? responseBody, - ) { + Response$Builder body(ResponseBody? responseBody) { final _$responseBody = responseBody?.reference ?? jni$_.jNullReference; - return _body(reference.pointer, _id_body as jni$_.JMethodIDPtr, - _$responseBody.pointer) - .object(const $Response$Builder$Type()); + return _body( + reference.pointer, + _id_body as jni$_.JMethodIDPtr, + _$responseBody.pointer, + ).object(const $Response$Builder$Type()); } static final _id_networkResponse = _class.instanceMethodId( @@ -2823,26 +3240,33 @@ class Response$Builder extends jni$_.JObject { r'(Lokhttp3/Response;)Lokhttp3/Response$Builder;', ); - static final _networkResponse = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _networkResponse = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Response$Builder networkResponse(okhttp3.Response response)` /// The returned object must be released after use, by calling the [release] method. - Response$Builder networkResponse( - Response? response, - ) { + Response$Builder networkResponse(Response? response) { final _$response = response?.reference ?? jni$_.jNullReference; - return _networkResponse(reference.pointer, - _id_networkResponse as jni$_.JMethodIDPtr, _$response.pointer) - .object(const $Response$Builder$Type()); + return _networkResponse( + reference.pointer, + _id_networkResponse as jni$_.JMethodIDPtr, + _$response.pointer, + ).object(const $Response$Builder$Type()); } static final _id_cacheResponse = _class.instanceMethodId( @@ -2850,26 +3274,33 @@ class Response$Builder extends jni$_.JObject { r'(Lokhttp3/Response;)Lokhttp3/Response$Builder;', ); - static final _cacheResponse = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _cacheResponse = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Response$Builder cacheResponse(okhttp3.Response response)` /// The returned object must be released after use, by calling the [release] method. - Response$Builder cacheResponse( - Response? response, - ) { + Response$Builder cacheResponse(Response? response) { final _$response = response?.reference ?? jni$_.jNullReference; - return _cacheResponse(reference.pointer, - _id_cacheResponse as jni$_.JMethodIDPtr, _$response.pointer) - .object(const $Response$Builder$Type()); + return _cacheResponse( + reference.pointer, + _id_cacheResponse as jni$_.JMethodIDPtr, + _$response.pointer, + ).object(const $Response$Builder$Type()); } static final _id_priorResponse = _class.instanceMethodId( @@ -2877,26 +3308,33 @@ class Response$Builder extends jni$_.JObject { r'(Lokhttp3/Response;)Lokhttp3/Response$Builder;', ); - static final _priorResponse = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _priorResponse = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Response$Builder priorResponse(okhttp3.Response response)` /// The returned object must be released after use, by calling the [release] method. - Response$Builder priorResponse( - Response? response, - ) { + Response$Builder priorResponse(Response? response) { final _$response = response?.reference ?? jni$_.jNullReference; - return _priorResponse(reference.pointer, - _id_priorResponse as jni$_.JMethodIDPtr, _$response.pointer) - .object(const $Response$Builder$Type()); + return _priorResponse( + reference.pointer, + _id_priorResponse as jni$_.JMethodIDPtr, + _$response.pointer, + ).object(const $Response$Builder$Type()); } static final _id_sentRequestAtMillis = _class.instanceMethodId( @@ -2904,24 +3342,32 @@ class Response$Builder extends jni$_.JObject { r'(J)Lokhttp3/Response$Builder;', ); - static final _sentRequestAtMillis = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _sentRequestAtMillis = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public okhttp3.Response$Builder sentRequestAtMillis(long j)` /// The returned object must be released after use, by calling the [release] method. - Response$Builder sentRequestAtMillis( - int j, - ) { + Response$Builder sentRequestAtMillis(int j) { return _sentRequestAtMillis( - reference.pointer, _id_sentRequestAtMillis as jni$_.JMethodIDPtr, j) - .object(const $Response$Builder$Type()); + reference.pointer, + _id_sentRequestAtMillis as jni$_.JMethodIDPtr, + j, + ).object(const $Response$Builder$Type()); } static final _id_receivedResponseAtMillis = _class.instanceMethodId( @@ -2929,24 +3375,32 @@ class Response$Builder extends jni$_.JObject { r'(J)Lokhttp3/Response$Builder;', ); - static final _receivedResponseAtMillis = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _receivedResponseAtMillis = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public okhttp3.Response$Builder receivedResponseAtMillis(long j)` /// The returned object must be released after use, by calling the [release] method. - Response$Builder receivedResponseAtMillis( - int j, - ) { - return _receivedResponseAtMillis(reference.pointer, - _id_receivedResponseAtMillis as jni$_.JMethodIDPtr, j) - .object(const $Response$Builder$Type()); + Response$Builder receivedResponseAtMillis(int j) { + return _receivedResponseAtMillis( + reference.pointer, + _id_receivedResponseAtMillis as jni$_.JMethodIDPtr, + j, + ).object(const $Response$Builder$Type()); } static final _id_build = _class.instanceMethodId( @@ -2954,23 +3408,29 @@ class Response$Builder extends jni$_.JObject { r'()Lokhttp3/Response;', ); - static final _build = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _build = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public okhttp3.Response build()` /// The returned object must be released after use, by calling the [release] method. Response build() { - return _build(reference.pointer, _id_build as jni$_.JMethodIDPtr) - .object(const $Response$Type()); + return _build( + reference.pointer, + _id_build as jni$_.JMethodIDPtr, + ).object(const $Response$Type()); } } @@ -2986,11 +3446,7 @@ final class $Response$Builder$NullableType @jni$_.internal @core$_.override Response$Builder? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : Response$Builder.fromReference( - reference, - ); + reference.isNull ? null : Response$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -3024,9 +3480,7 @@ final class $Response$Builder$Type extends jni$_.JObjType { @jni$_.internal @core$_.override Response$Builder fromReference(jni$_.JReference reference) => - Response$Builder.fromReference( - reference, - ); + Response$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -3057,10 +3511,9 @@ class Response extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Response.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Response.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okhttp3/Response'); @@ -3071,29 +3524,34 @@ class Response extends jni$_.JObject { r'(Lokhttp3/Request;Lokhttp3/Protocol;Ljava/lang/String;ILokhttp3/Handshake;Lokhttp3/Headers;Lokhttp3/ResponseBody;Lokhttp3/Response;Lokhttp3/Response;Lokhttp3/Response;JJLokhttp3/internal/connection/Exchange;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int64, - jni$_.Int64, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int64, + jni$_.Int64, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -3108,7 +3566,9 @@ class Response extends jni$_.JObject { jni$_.Pointer, int, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (okhttp3.Request request, okhttp3.Protocol protocol, java.lang.String string, int i, okhttp3.Handshake handshake, okhttp3.Headers headers, okhttp3.ResponseBody responseBody, okhttp3.Response response, okhttp3.Response response1, okhttp3.Response response2, long j, long j1, okhttp3.internal.connection.Exchange exchange)` /// The returned object must be released after use, by calling the [release] method. @@ -3137,23 +3597,25 @@ class Response extends jni$_.JObject { final _$response1 = response1?.reference ?? jni$_.jNullReference; final _$response2 = response2?.reference ?? jni$_.jNullReference; final _$exchange = exchange?.reference ?? jni$_.jNullReference; - return Response.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$request.pointer, - _$protocol.pointer, - _$string.pointer, - i, - _$handshake.pointer, - _$headers.pointer, - _$responseBody.pointer, - _$response.pointer, - _$response1.pointer, - _$response2.pointer, - j, - j1, - _$exchange.pointer) - .reference); + return Response.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$request.pointer, + _$protocol.pointer, + _$string.pointer, + i, + _$handshake.pointer, + _$headers.pointer, + _$responseBody.pointer, + _$response.pointer, + _$response1.pointer, + _$response2.pointer, + j, + j1, + _$exchange.pointer, + ).reference, + ); } static final _id_request = _class.instanceMethodId( @@ -3161,23 +3623,29 @@ class Response extends jni$_.JObject { r'()Lokhttp3/Request;', ); - static final _request = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _request = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.Request request()` /// The returned object must be released after use, by calling the [release] method. Request request() { - return _request(reference.pointer, _id_request as jni$_.JMethodIDPtr) - .object(const $Request$Type()); + return _request( + reference.pointer, + _id_request as jni$_.JMethodIDPtr, + ).object(const $Request$Type()); } static final _id_protocol = _class.instanceMethodId( @@ -3185,23 +3653,29 @@ class Response extends jni$_.JObject { r'()Lokhttp3/Protocol;', ); - static final _protocol = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _protocol = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.Protocol protocol()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject protocol() { - return _protocol(reference.pointer, _id_protocol as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + return _protocol( + reference.pointer, + _id_protocol as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } static final _id_message = _class.instanceMethodId( @@ -3209,41 +3683,48 @@ class Response extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _message = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _message = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.lang.String message()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString message() { - return _message(reference.pointer, _id_message as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + return _message( + reference.pointer, + _id_message as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringType()); } - static final _id_code = _class.instanceMethodId( - r'code', - r'()I', - ); + static final _id_code = _class.instanceMethodId(r'code', r'()I'); - static final _code = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _code = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final int code()` int code() { @@ -3255,23 +3736,29 @@ class Response extends jni$_.JObject { r'()Lokhttp3/Handshake;', ); - static final _handshake = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _handshake = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.Handshake handshake()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? handshake() { - return _handshake(reference.pointer, _id_handshake as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _handshake( + reference.pointer, + _id_handshake as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_headers = _class.instanceMethodId( @@ -3279,23 +3766,29 @@ class Response extends jni$_.JObject { r'()Lokhttp3/Headers;', ); - static final _headers = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _headers = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.Headers headers()` /// The returned object must be released after use, by calling the [release] method. Headers headers() { - return _headers(reference.pointer, _id_headers as jni$_.JMethodIDPtr) - .object(const $Headers$Type()); + return _headers( + reference.pointer, + _id_headers as jni$_.JMethodIDPtr, + ).object(const $Headers$Type()); } static final _id_body = _class.instanceMethodId( @@ -3303,23 +3796,29 @@ class Response extends jni$_.JObject { r'()Lokhttp3/ResponseBody;', ); - static final _body = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _body = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.ResponseBody body()` /// The returned object must be released after use, by calling the [release] method. ResponseBody? body() { - return _body(reference.pointer, _id_body as jni$_.JMethodIDPtr) - .object(const $ResponseBody$NullableType()); + return _body( + reference.pointer, + _id_body as jni$_.JMethodIDPtr, + ).object(const $ResponseBody$NullableType()); } static final _id_networkResponse = _class.instanceMethodId( @@ -3327,24 +3826,29 @@ class Response extends jni$_.JObject { r'()Lokhttp3/Response;', ); - static final _networkResponse = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _networkResponse = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.Response networkResponse()` /// The returned object must be released after use, by calling the [release] method. Response? networkResponse() { return _networkResponse( - reference.pointer, _id_networkResponse as jni$_.JMethodIDPtr) - .object(const $Response$NullableType()); + reference.pointer, + _id_networkResponse as jni$_.JMethodIDPtr, + ).object(const $Response$NullableType()); } static final _id_cacheResponse = _class.instanceMethodId( @@ -3352,24 +3856,29 @@ class Response extends jni$_.JObject { r'()Lokhttp3/Response;', ); - static final _cacheResponse = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _cacheResponse = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.Response cacheResponse()` /// The returned object must be released after use, by calling the [release] method. Response? cacheResponse() { return _cacheResponse( - reference.pointer, _id_cacheResponse as jni$_.JMethodIDPtr) - .object(const $Response$NullableType()); + reference.pointer, + _id_cacheResponse as jni$_.JMethodIDPtr, + ).object(const $Response$NullableType()); } static final _id_priorResponse = _class.instanceMethodId( @@ -3377,24 +3886,29 @@ class Response extends jni$_.JObject { r'()Lokhttp3/Response;', ); - static final _priorResponse = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _priorResponse = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.Response priorResponse()` /// The returned object must be released after use, by calling the [release] method. Response? priorResponse() { return _priorResponse( - reference.pointer, _id_priorResponse as jni$_.JMethodIDPtr) - .object(const $Response$NullableType()); + reference.pointer, + _id_priorResponse as jni$_.JMethodIDPtr, + ).object(const $Response$NullableType()); } static final _id_sentRequestAtMillis = _class.instanceMethodId( @@ -3402,23 +3916,28 @@ class Response extends jni$_.JObject { r'()J', ); - static final _sentRequestAtMillis = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _sentRequestAtMillis = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public final long sentRequestAtMillis()` + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); + + /// from: `public final long sentRequestAtMillis()` int sentRequestAtMillis() { return _sentRequestAtMillis( - reference.pointer, _id_sentRequestAtMillis as jni$_.JMethodIDPtr) - .long; + reference.pointer, + _id_sentRequestAtMillis as jni$_.JMethodIDPtr, + ).long; } static final _id_receivedResponseAtMillis = _class.instanceMethodId( @@ -3426,23 +3945,28 @@ class Response extends jni$_.JObject { r'()J', ); - static final _receivedResponseAtMillis = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _receivedResponseAtMillis = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final long receivedResponseAtMillis()` int receivedResponseAtMillis() { - return _receivedResponseAtMillis(reference.pointer, - _id_receivedResponseAtMillis as jni$_.JMethodIDPtr) - .long; + return _receivedResponseAtMillis( + reference.pointer, + _id_receivedResponseAtMillis as jni$_.JMethodIDPtr, + ).long; } static final _id_exchange = _class.instanceMethodId( @@ -3450,23 +3974,29 @@ class Response extends jni$_.JObject { r'()Lokhttp3/internal/connection/Exchange;', ); - static final _exchange = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _exchange = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.internal.connection.Exchange exchange()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? exchange() { - return _exchange(reference.pointer, _id_exchange as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _exchange( + reference.pointer, + _id_exchange as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_isSuccessful = _class.instanceMethodId( @@ -3474,23 +4004,28 @@ class Response extends jni$_.JObject { r'()Z', ); - static final _isSuccessful = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _isSuccessful = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final boolean isSuccessful()` bool isSuccessful() { return _isSuccessful( - reference.pointer, _id_isSuccessful as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_isSuccessful as jni$_.JMethodIDPtr, + ).boolean; } static final _id_headers$1 = _class.instanceMethodId( @@ -3498,27 +4033,35 @@ class Response extends jni$_.JObject { r'(Ljava/lang/String;)Ljava/util/List;', ); - static final _headers$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$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _headers$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$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final java.util.List headers(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList headers$1( - jni$_.JString string, - ) { + jni$_.JList headers$1(jni$_.JString string) { final _$string = string.reference; - return _headers$1(reference.pointer, _id_headers$1 as jni$_.JMethodIDPtr, - _$string.pointer) - .object>( - const jni$_.JListType(jni$_.JStringType())); + return _headers$1( + reference.pointer, + _id_headers$1 as jni$_.JMethodIDPtr, + _$string.pointer, + ).object>( + const jni$_.JListType(jni$_.JStringType()), + ); } static final _id_header = _class.instanceMethodId( @@ -3526,34 +4069,38 @@ class Response extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;', ); - static final _header = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _header = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final java.lang.String header(java.lang.String string, java.lang.String string1)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? header( - jni$_.JString string, - jni$_.JString? string1, - ) { + jni$_.JString? header(jni$_.JString string, jni$_.JString? string1) { final _$string = string.reference; final _$string1 = string1?.reference ?? jni$_.jNullReference; - return _header(reference.pointer, _id_header as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) - .object(const jni$_.JStringNullableType()); + return _header( + reference.pointer, + _id_header as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).object(const jni$_.JStringNullableType()); } static final _id_trailers = _class.instanceMethodId( @@ -3561,23 +4108,29 @@ class Response extends jni$_.JObject { r'()Lokhttp3/Headers;', ); - static final _trailers = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _trailers = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.Headers trailers()` /// The returned object must be released after use, by calling the [release] method. Headers trailers() { - return _trailers(reference.pointer, _id_trailers as jni$_.JMethodIDPtr) - .object(const $Headers$Type()); + return _trailers( + reference.pointer, + _id_trailers as jni$_.JMethodIDPtr, + ).object(const $Headers$Type()); } static final _id_peekBody = _class.instanceMethodId( @@ -3585,23 +4138,32 @@ class Response extends jni$_.JObject { r'(J)Lokhttp3/ResponseBody;', ); - static final _peekBody = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _peekBody = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public final okhttp3.ResponseBody peekBody(long j)` /// The returned object must be released after use, by calling the [release] method. - ResponseBody peekBody( - int j, - ) { - return _peekBody(reference.pointer, _id_peekBody as jni$_.JMethodIDPtr, j) - .object(const $ResponseBody$Type()); + ResponseBody peekBody(int j) { + return _peekBody( + reference.pointer, + _id_peekBody as jni$_.JMethodIDPtr, + j, + ).object(const $ResponseBody$Type()); } static final _id_newBuilder = _class.instanceMethodId( @@ -3609,46 +4171,55 @@ class Response extends jni$_.JObject { r'()Lokhttp3/Response$Builder;', ); - static final _newBuilder = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _newBuilder = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.Response$Builder newBuilder()` /// The returned object must be released after use, by calling the [release] method. Response$Builder newBuilder() { - return _newBuilder(reference.pointer, _id_newBuilder as jni$_.JMethodIDPtr) - .object(const $Response$Builder$Type()); + return _newBuilder( + reference.pointer, + _id_newBuilder as jni$_.JMethodIDPtr, + ).object(const $Response$Builder$Type()); } - static final _id_isRedirect = _class.instanceMethodId( - r'isRedirect', - r'()Z', - ); + static final _id_isRedirect = _class.instanceMethodId(r'isRedirect', r'()Z'); - static final _isRedirect = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _isRedirect = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final boolean isRedirect()` bool isRedirect() { - return _isRedirect(reference.pointer, _id_isRedirect as jni$_.JMethodIDPtr) - .boolean; + return _isRedirect( + reference.pointer, + _id_isRedirect as jni$_.JMethodIDPtr, + ).boolean; } static final _id_challenges = _class.instanceMethodId( @@ -3656,24 +4227,31 @@ class Response extends jni$_.JObject { r'()Ljava/util/List;', ); - static final _challenges = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _challenges = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.util.List challenges()` /// The returned object must be released after use, by calling the [release] method. jni$_.JList challenges() { - return _challenges(reference.pointer, _id_challenges as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JObjectType())); + return _challenges( + reference.pointer, + _id_challenges as jni$_.JMethodIDPtr, + ).object>( + const jni$_.JListType(jni$_.JObjectType()), + ); } static final _id_cacheControl = _class.instanceMethodId( @@ -3681,42 +4259,48 @@ class Response extends jni$_.JObject { r'()Lokhttp3/CacheControl;', ); - static final _cacheControl = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _cacheControl = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.CacheControl cacheControl()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject cacheControl() { return _cacheControl( - reference.pointer, _id_cacheControl as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + reference.pointer, + _id_cacheControl as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } - static final _id_close = _class.instanceMethodId( - r'close', - r'()V', - ); + static final _id_close = _class.instanceMethodId(r'close', r'()V'); - static final _close = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _close = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void close()` void close() { @@ -3728,23 +4312,29 @@ class Response extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + 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()); + return _toString$1( + reference.pointer, + _id_toString$1 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringType()); } static final _id_header$1 = _class.instanceMethodId( @@ -3752,26 +4342,33 @@ class Response extends jni$_.JObject { r'(Ljava/lang/String;)Ljava/lang/String;', ); - static final _header$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$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _header$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$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final java.lang.String header(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? header$1( - jni$_.JString string, - ) { + jni$_.JString? header$1(jni$_.JString string) { final _$string = string.reference; - return _header$1(reference.pointer, _id_header$1 as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const jni$_.JStringNullableType()); + return _header$1( + reference.pointer, + _id_header$1 as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const jni$_.JStringNullableType()); } } @@ -3785,11 +4382,8 @@ final class $Response$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - Response? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Response.fromReference( - reference, - ); + Response? fromReference(jni$_.JReference reference) => + reference.isNull ? null : Response.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -3822,9 +4416,8 @@ final class $Response$Type extends jni$_.JObjType { @jni$_.internal @core$_.override - Response fromReference(jni$_.JReference reference) => Response.fromReference( - reference, - ); + Response fromReference(jni$_.JReference reference) => + Response.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -3853,13 +4446,13 @@ class ResponseBody$BomAwareReader extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - ResponseBody$BomAwareReader.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ResponseBody$BomAwareReader.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'okhttp3/ResponseBody$BomAwareReader'); + static final _class = jni$_.JClass.forName( + r'okhttp3/ResponseBody$BomAwareReader', + ); /// The type which includes information such as the signature of this class. static const nullableType = $ResponseBody$BomAwareReader$NullableType(); @@ -3868,22 +4461,26 @@ class ResponseBody$BomAwareReader extends jni$_.JObject { r'(Lokio/BufferedSource;Ljava/nio/charset/Charset;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (okio.BufferedSource bufferedSource, java.nio.charset.Charset charset)` /// The returned object must be released after use, by calling the [release] method. @@ -3893,62 +4490,69 @@ class ResponseBody$BomAwareReader extends jni$_.JObject { ) { final _$bufferedSource = bufferedSource.reference; final _$charset = charset.reference; - return ResponseBody$BomAwareReader.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$bufferedSource.pointer, - _$charset.pointer) - .reference); + return ResponseBody$BomAwareReader.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$bufferedSource.pointer, + _$charset.pointer, + ).reference, + ); } - static final _id_read = _class.instanceMethodId( - r'read', - r'([CII)I', - ); + static final _id_read = _class.instanceMethodId(r'read', r'([CII)I'); - static final _read = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _read = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `public int read(char[] cs, int i, int i1)` - int read( - jni$_.JCharArray cs, - int i, - int i1, - ) { + int read(jni$_.JCharArray cs, int i, int i1) { final _$cs = cs.reference; - return _read(reference.pointer, _id_read as jni$_.JMethodIDPtr, - _$cs.pointer, i, i1) - .integer; + return _read( + reference.pointer, + _id_read as jni$_.JMethodIDPtr, + _$cs.pointer, + i, + i1, + ).integer; } - static final _id_close = _class.instanceMethodId( - r'close', - r'()V', - ); + static final _id_close = _class.instanceMethodId(r'close', r'()V'); - static final _close = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _close = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void close()` void close() { @@ -3969,10 +4573,8 @@ final class $ResponseBody$BomAwareReader$NullableType @core$_.override ResponseBody$BomAwareReader? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : ResponseBody$BomAwareReader.fromReference( - reference, - ); + ? null + : ResponseBody$BomAwareReader.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -4007,9 +4609,7 @@ final class $ResponseBody$BomAwareReader$Type @jni$_.internal @core$_.override ResponseBody$BomAwareReader fromReference(jni$_.JReference reference) => - ResponseBody$BomAwareReader.fromReference( - reference, - ); + ResponseBody$BomAwareReader.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -4040,10 +4640,9 @@ class ResponseBody$Companion extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - ResponseBody$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ResponseBody$Companion.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okhttp3/ResponseBody$Companion'); @@ -4055,34 +4654,38 @@ class ResponseBody$Companion extends jni$_.JObject { r'(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/ResponseBody;', ); - static final _create = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.ResponseBody create(java.lang.String string, okhttp3.MediaType mediaType)` /// The returned object must be released after use, by calling the [release] method. - ResponseBody create( - jni$_.JString string, - jni$_.JObject? mediaType, - ) { + ResponseBody create(jni$_.JString string, jni$_.JObject? mediaType) { final _$string = string.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create(reference.pointer, _id_create as jni$_.JMethodIDPtr, - _$string.pointer, _$mediaType.pointer) - .object(const $ResponseBody$Type()); + return _create( + reference.pointer, + _id_create as jni$_.JMethodIDPtr, + _$string.pointer, + _$mediaType.pointer, + ).object(const $ResponseBody$Type()); } static final _id_create$1 = _class.instanceMethodId( @@ -4090,34 +4693,38 @@ class ResponseBody$Companion extends jni$_.JObject { r'([BLokhttp3/MediaType;)Lokhttp3/ResponseBody;', ); - static final _create$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.ResponseBody create(byte[] bs, okhttp3.MediaType mediaType)` /// The returned object must be released after use, by calling the [release] method. - ResponseBody create$1( - jni$_.JByteArray bs, - jni$_.JObject? mediaType, - ) { + ResponseBody create$1(jni$_.JByteArray bs, jni$_.JObject? mediaType) { final _$bs = bs.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create$1(reference.pointer, _id_create$1 as jni$_.JMethodIDPtr, - _$bs.pointer, _$mediaType.pointer) - .object(const $ResponseBody$Type()); + return _create$1( + reference.pointer, + _id_create$1 as jni$_.JMethodIDPtr, + _$bs.pointer, + _$mediaType.pointer, + ).object(const $ResponseBody$Type()); } static final _id_create$2 = _class.instanceMethodId( @@ -4125,34 +4732,38 @@ class ResponseBody$Companion extends jni$_.JObject { r'(Lokio/ByteString;Lokhttp3/MediaType;)Lokhttp3/ResponseBody;', ); - static final _create$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.ResponseBody create(okio.ByteString byteString, okhttp3.MediaType mediaType)` /// The returned object must be released after use, by calling the [release] method. - ResponseBody create$2( - ByteString byteString, - jni$_.JObject? mediaType, - ) { + ResponseBody create$2(ByteString byteString, jni$_.JObject? mediaType) { final _$byteString = byteString.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create$2(reference.pointer, _id_create$2 as jni$_.JMethodIDPtr, - _$byteString.pointer, _$mediaType.pointer) - .object(const $ResponseBody$Type()); + return _create$2( + reference.pointer, + _id_create$2 as jni$_.JMethodIDPtr, + _$byteString.pointer, + _$mediaType.pointer, + ).object(const $ResponseBody$Type()); } static final _id_create$3 = _class.instanceMethodId( @@ -4160,24 +4771,31 @@ class ResponseBody$Companion extends jni$_.JObject { r'(Lokio/BufferedSource;Lokhttp3/MediaType;J)Lokhttp3/ResponseBody;', ); - static final _create$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int64 - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int64, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int)>(); + int, + ) + >(); /// from: `public final okhttp3.ResponseBody create(okio.BufferedSource bufferedSource, okhttp3.MediaType mediaType, long j)` /// The returned object must be released after use, by calling the [release] method. @@ -4188,9 +4806,13 @@ class ResponseBody$Companion extends jni$_.JObject { ) { final _$bufferedSource = bufferedSource.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create$3(reference.pointer, _id_create$3 as jni$_.JMethodIDPtr, - _$bufferedSource.pointer, _$mediaType.pointer, j) - .object(const $ResponseBody$Type()); + return _create$3( + reference.pointer, + _id_create$3 as jni$_.JMethodIDPtr, + _$bufferedSource.pointer, + _$mediaType.pointer, + j, + ).object(const $ResponseBody$Type()); } static final _id_create$4 = _class.instanceMethodId( @@ -4198,34 +4820,38 @@ class ResponseBody$Companion extends jni$_.JObject { r'(Lokhttp3/MediaType;Ljava/lang/String;)Lokhttp3/ResponseBody;', ); - static final _create$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - ResponseBody create$4( - jni$_.JObject? mediaType, - jni$_.JString string, - ) { + ResponseBody create$4(jni$_.JObject? mediaType, jni$_.JString string) { final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$string = string.reference; - return _create$4(reference.pointer, _id_create$4 as jni$_.JMethodIDPtr, - _$mediaType.pointer, _$string.pointer) - .object(const $ResponseBody$Type()); + return _create$4( + reference.pointer, + _id_create$4 as jni$_.JMethodIDPtr, + _$mediaType.pointer, + _$string.pointer, + ).object(const $ResponseBody$Type()); } static final _id_create$5 = _class.instanceMethodId( @@ -4233,34 +4859,38 @@ class ResponseBody$Companion extends jni$_.JObject { r'(Lokhttp3/MediaType;[B)Lokhttp3/ResponseBody;', ); - static final _create$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, byte[] bs)` /// The returned object must be released after use, by calling the [release] method. - ResponseBody create$5( - jni$_.JObject? mediaType, - jni$_.JByteArray bs, - ) { + ResponseBody create$5(jni$_.JObject? mediaType, jni$_.JByteArray bs) { final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$bs = bs.reference; - return _create$5(reference.pointer, _id_create$5 as jni$_.JMethodIDPtr, - _$mediaType.pointer, _$bs.pointer) - .object(const $ResponseBody$Type()); + return _create$5( + reference.pointer, + _id_create$5 as jni$_.JMethodIDPtr, + _$mediaType.pointer, + _$bs.pointer, + ).object(const $ResponseBody$Type()); } static final _id_create$6 = _class.instanceMethodId( @@ -4268,34 +4898,38 @@ class ResponseBody$Companion extends jni$_.JObject { r'(Lokhttp3/MediaType;Lokio/ByteString;)Lokhttp3/ResponseBody;', ); - static final _create$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$6 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, okio.ByteString byteString)` /// The returned object must be released after use, by calling the [release] method. - ResponseBody create$6( - jni$_.JObject? mediaType, - ByteString byteString, - ) { + ResponseBody create$6(jni$_.JObject? mediaType, ByteString byteString) { final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$byteString = byteString.reference; - return _create$6(reference.pointer, _id_create$6 as jni$_.JMethodIDPtr, - _$mediaType.pointer, _$byteString.pointer) - .object(const $ResponseBody$Type()); + return _create$6( + reference.pointer, + _id_create$6 as jni$_.JMethodIDPtr, + _$mediaType.pointer, + _$byteString.pointer, + ).object(const $ResponseBody$Type()); } static final _id_create$7 = _class.instanceMethodId( @@ -4303,24 +4937,31 @@ class ResponseBody$Companion extends jni$_.JObject { r'(Lokhttp3/MediaType;JLokio/BufferedSource;)Lokhttp3/ResponseBody;', ); - static final _create$7 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$7 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int64, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int64, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, long j, okio.BufferedSource bufferedSource)` /// The returned object must be released after use, by calling the [release] method. @@ -4331,36 +4972,49 @@ class ResponseBody$Companion extends jni$_.JObject { ) { final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$bufferedSource = bufferedSource.reference; - return _create$7(reference.pointer, _id_create$7 as jni$_.JMethodIDPtr, - _$mediaType.pointer, j, _$bufferedSource.pointer) - .object(const $ResponseBody$Type()); + return _create$7( + reference.pointer, + _id_create$7 as jni$_.JMethodIDPtr, + _$mediaType.pointer, + j, + _$bufferedSource.pointer, + ).object(const $ResponseBody$Type()); } static final _id_new$ = _class.constructorId( r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` /// The returned object must be released after use, by calling the [release] method. - factory ResponseBody$Companion( - jni$_.JObject? defaultConstructorMarker, - ) { + factory ResponseBody$Companion(jni$_.JObject? defaultConstructorMarker) { final _$defaultConstructorMarker = defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return ResponseBody$Companion.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$defaultConstructorMarker.pointer) - .reference); + return ResponseBody$Companion.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$defaultConstructorMarker.pointer, + ).reference, + ); } } @@ -4376,11 +5030,7 @@ final class $ResponseBody$Companion$NullableType @jni$_.internal @core$_.override ResponseBody$Companion? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : ResponseBody$Companion.fromReference( - reference, - ); + reference.isNull ? null : ResponseBody$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -4415,9 +5065,7 @@ final class $ResponseBody$Companion$Type @jni$_.internal @core$_.override ResponseBody$Companion fromReference(jni$_.JReference reference) => - ResponseBody$Companion.fromReference( - reference, - ); + ResponseBody$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -4448,10 +5096,9 @@ class ResponseBody extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - ResponseBody.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ResponseBody.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okhttp3/ResponseBody'); @@ -4473,24 +5120,29 @@ class ResponseBody extends jni$_.JObject { r'()Lokhttp3/MediaType;', ); - static final _contentType = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _contentType = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract okhttp3.MediaType contentType()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? contentType() { return _contentType( - reference.pointer, _id_contentType as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_contentType as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_contentLength = _class.instanceMethodId( @@ -4498,23 +5150,28 @@ class ResponseBody extends jni$_.JObject { r'()J', ); - static final _contentLength = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _contentLength = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract long contentLength()` int contentLength() { return _contentLength( - reference.pointer, _id_contentLength as jni$_.JMethodIDPtr) - .long; + reference.pointer, + _id_contentLength as jni$_.JMethodIDPtr, + ).long; } static final _id_byteStream = _class.instanceMethodId( @@ -4522,23 +5179,29 @@ class ResponseBody extends jni$_.JObject { r'()Ljava/io/InputStream;', ); - static final _byteStream = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _byteStream = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.io.InputStream byteStream()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject byteStream() { - return _byteStream(reference.pointer, _id_byteStream as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + return _byteStream( + reference.pointer, + _id_byteStream as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } static final _id_source = _class.instanceMethodId( @@ -4546,47 +5209,56 @@ class ResponseBody extends jni$_.JObject { r'()Lokio/BufferedSource;', ); - static final _source = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _source = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract okio.BufferedSource source()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject source() { - return _source(reference.pointer, _id_source as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + return _source( + reference.pointer, + _id_source as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } - static final _id_bytes = _class.instanceMethodId( - r'bytes', - r'()[B', - ); + static final _id_bytes = _class.instanceMethodId(r'bytes', r'()[B'); - static final _bytes = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _bytes = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final byte[] bytes()` /// The returned object must be released after use, by calling the [release] method. jni$_.JByteArray bytes() { - return _bytes(reference.pointer, _id_bytes as jni$_.JMethodIDPtr) - .object(const jni$_.JByteArrayType()); + return _bytes( + reference.pointer, + _id_bytes as jni$_.JMethodIDPtr, + ).object(const jni$_.JByteArrayType()); } static final _id_byteString = _class.instanceMethodId( @@ -4594,23 +5266,29 @@ class ResponseBody extends jni$_.JObject { r'()Lokio/ByteString;', ); - static final _byteString = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _byteString = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okio.ByteString byteString()` /// The returned object must be released after use, by calling the [release] method. ByteString byteString() { - return _byteString(reference.pointer, _id_byteString as jni$_.JMethodIDPtr) - .object(const $ByteString$Type()); + return _byteString( + reference.pointer, + _id_byteString as jni$_.JMethodIDPtr, + ).object(const $ByteString$Type()); } static final _id_charStream = _class.instanceMethodId( @@ -4618,23 +5296,29 @@ class ResponseBody extends jni$_.JObject { r'()Ljava/io/Reader;', ); - static final _charStream = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _charStream = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.io.Reader charStream()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject charStream() { - return _charStream(reference.pointer, _id_charStream as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + return _charStream( + reference.pointer, + _id_charStream as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } static final _id_string = _class.instanceMethodId( @@ -4642,41 +5326,48 @@ class ResponseBody extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _string = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _string = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.lang.String string()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString string() { - return _string(reference.pointer, _id_string as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + return _string( + reference.pointer, + _id_string as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringType()); } - static final _id_close = _class.instanceMethodId( - r'close', - r'()V', - ); + static final _id_close = _class.instanceMethodId(r'close', r'()V'); - static final _close = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _close = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void close()` void close() { @@ -4688,34 +5379,38 @@ class ResponseBody extends jni$_.JObject { r'(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/ResponseBody;', ); - static final _create = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + ) + >(); /// from: `static public final okhttp3.ResponseBody create(java.lang.String string, okhttp3.MediaType mediaType)` /// The returned object must be released after use, by calling the [release] method. - static ResponseBody create( - jni$_.JString string, - jni$_.JObject? mediaType, - ) { + static ResponseBody create(jni$_.JString string, jni$_.JObject? mediaType) { final _$string = string.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; - return _create(_class.reference.pointer, _id_create as jni$_.JMethodIDPtr, - _$string.pointer, _$mediaType.pointer) - .object(const $ResponseBody$Type()); + return _create( + _class.reference.pointer, + _id_create as jni$_.JMethodIDPtr, + _$string.pointer, + _$mediaType.pointer, + ).object(const $ResponseBody$Type()); } static final _id_create$1 = _class.staticMethodId( @@ -4723,37 +5418,38 @@ class ResponseBody extends jni$_.JObject { r'([BLokhttp3/MediaType;)Lokhttp3/ResponseBody;', ); - static final _create$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public final okhttp3.ResponseBody create(byte[] bs, okhttp3.MediaType mediaType)` /// The returned object must be released after use, by calling the [release] method. - static ResponseBody create$1( - jni$_.JByteArray bs, - jni$_.JObject? mediaType, - ) { + static ResponseBody create$1(jni$_.JByteArray bs, jni$_.JObject? mediaType) { final _$bs = bs.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; return _create$1( - _class.reference.pointer, - _id_create$1 as jni$_.JMethodIDPtr, - _$bs.pointer, - _$mediaType.pointer) - .object(const $ResponseBody$Type()); + _class.reference.pointer, + _id_create$1 as jni$_.JMethodIDPtr, + _$bs.pointer, + _$mediaType.pointer, + ).object(const $ResponseBody$Type()); } static final _id_create$2 = _class.staticMethodId( @@ -4761,22 +5457,26 @@ class ResponseBody extends jni$_.JObject { r'(Lokio/ByteString;Lokhttp3/MediaType;)Lokhttp3/ResponseBody;', ); - static final _create$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public final okhttp3.ResponseBody create(okio.ByteString byteString, okhttp3.MediaType mediaType)` /// The returned object must be released after use, by calling the [release] method. @@ -4787,11 +5487,11 @@ class ResponseBody extends jni$_.JObject { final _$byteString = byteString.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; return _create$2( - _class.reference.pointer, - _id_create$2 as jni$_.JMethodIDPtr, - _$byteString.pointer, - _$mediaType.pointer) - .object(const $ResponseBody$Type()); + _class.reference.pointer, + _id_create$2 as jni$_.JMethodIDPtr, + _$byteString.pointer, + _$mediaType.pointer, + ).object(const $ResponseBody$Type()); } static final _id_create$3 = _class.staticMethodId( @@ -4799,24 +5499,31 @@ class ResponseBody extends jni$_.JObject { r'(Lokio/BufferedSource;Lokhttp3/MediaType;J)Lokhttp3/ResponseBody;', ); - static final _create$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int64 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int64, + ) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - int)>(); + int, + ) + >(); /// from: `static public final okhttp3.ResponseBody create(okio.BufferedSource bufferedSource, okhttp3.MediaType mediaType, long j)` /// The returned object must be released after use, by calling the [release] method. @@ -4828,12 +5535,12 @@ class ResponseBody extends jni$_.JObject { final _$bufferedSource = bufferedSource.reference; final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; return _create$3( - _class.reference.pointer, - _id_create$3 as jni$_.JMethodIDPtr, - _$bufferedSource.pointer, - _$mediaType.pointer, - j) - .object(const $ResponseBody$Type()); + _class.reference.pointer, + _id_create$3 as jni$_.JMethodIDPtr, + _$bufferedSource.pointer, + _$mediaType.pointer, + j, + ).object(const $ResponseBody$Type()); } static final _id_create$4 = _class.staticMethodId( @@ -4841,37 +5548,38 @@ class ResponseBody extends jni$_.JObject { r'(Lokhttp3/MediaType;Ljava/lang/String;)Lokhttp3/ResponseBody;', ); - static final _create$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - static ResponseBody create$4( - jni$_.JObject? mediaType, - jni$_.JString string, - ) { + static ResponseBody create$4(jni$_.JObject? mediaType, jni$_.JString string) { final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$string = string.reference; return _create$4( - _class.reference.pointer, - _id_create$4 as jni$_.JMethodIDPtr, - _$mediaType.pointer, - _$string.pointer) - .object(const $ResponseBody$Type()); + _class.reference.pointer, + _id_create$4 as jni$_.JMethodIDPtr, + _$mediaType.pointer, + _$string.pointer, + ).object(const $ResponseBody$Type()); } static final _id_create$5 = _class.staticMethodId( @@ -4879,37 +5587,38 @@ class ResponseBody extends jni$_.JObject { r'(Lokhttp3/MediaType;[B)Lokhttp3/ResponseBody;', ); - static final _create$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, byte[] bs)` /// The returned object must be released after use, by calling the [release] method. - static ResponseBody create$5( - jni$_.JObject? mediaType, - jni$_.JByteArray bs, - ) { + static ResponseBody create$5(jni$_.JObject? mediaType, jni$_.JByteArray bs) { final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$bs = bs.reference; return _create$5( - _class.reference.pointer, - _id_create$5 as jni$_.JMethodIDPtr, - _$mediaType.pointer, - _$bs.pointer) - .object(const $ResponseBody$Type()); + _class.reference.pointer, + _id_create$5 as jni$_.JMethodIDPtr, + _$mediaType.pointer, + _$bs.pointer, + ).object(const $ResponseBody$Type()); } static final _id_create$6 = _class.staticMethodId( @@ -4917,22 +5626,26 @@ class ResponseBody extends jni$_.JObject { r'(Lokhttp3/MediaType;Lokio/ByteString;)Lokhttp3/ResponseBody;', ); - static final _create$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$6 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, okio.ByteString byteString)` /// The returned object must be released after use, by calling the [release] method. @@ -4943,11 +5656,11 @@ class ResponseBody extends jni$_.JObject { final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$byteString = byteString.reference; return _create$6( - _class.reference.pointer, - _id_create$6 as jni$_.JMethodIDPtr, - _$mediaType.pointer, - _$byteString.pointer) - .object(const $ResponseBody$Type()); + _class.reference.pointer, + _id_create$6 as jni$_.JMethodIDPtr, + _$mediaType.pointer, + _$byteString.pointer, + ).object(const $ResponseBody$Type()); } static final _id_create$7 = _class.staticMethodId( @@ -4955,24 +5668,31 @@ class ResponseBody extends jni$_.JObject { r'(Lokhttp3/MediaType;JLokio/BufferedSource;)Lokhttp3/ResponseBody;', ); - static final _create$7 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _create$7 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int64, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int64, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, long j, okio.BufferedSource bufferedSource)` /// The returned object must be released after use, by calling the [release] method. @@ -4984,12 +5704,12 @@ class ResponseBody extends jni$_.JObject { final _$mediaType = mediaType?.reference ?? jni$_.jNullReference; final _$bufferedSource = bufferedSource.reference; return _create$7( - _class.reference.pointer, - _id_create$7 as jni$_.JMethodIDPtr, - _$mediaType.pointer, - j, - _$bufferedSource.pointer) - .object(const $ResponseBody$Type()); + _class.reference.pointer, + _id_create$7 as jni$_.JMethodIDPtr, + _$mediaType.pointer, + j, + _$bufferedSource.pointer, + ).object(const $ResponseBody$Type()); } } @@ -5003,11 +5723,8 @@ final class $ResponseBody$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - ResponseBody? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : ResponseBody.fromReference( - reference, - ); + ResponseBody? fromReference(jni$_.JReference reference) => + reference.isNull ? null : ResponseBody.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -5041,9 +5758,7 @@ final class $ResponseBody$Type extends jni$_.JObjType { @jni$_.internal @core$_.override ResponseBody fromReference(jni$_.JReference reference) => - ResponseBody.fromReference( - reference, - ); + ResponseBody.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -5074,64 +5789,72 @@ class OkHttpClient$Builder extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - OkHttpClient$Builder.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + OkHttpClient$Builder.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okhttp3/OkHttpClient$Builder'); /// The type which includes information such as the signature of this class. static const nullableType = $OkHttpClient$Builder$NullableType(); static const type = $OkHttpClient$Builder$Type(); - static final _id_new$ = _class.constructorId( - r'()V', - ); + static final _id_new$ = _class.constructorId(r'()V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory OkHttpClient$Builder() { return OkHttpClient$Builder.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); } - static final _id_new$1 = _class.constructorId( - r'(Lokhttp3/OkHttpClient;)V', - ); + static final _id_new$1 = _class.constructorId(r'(Lokhttp3/OkHttpClient;)V'); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void (okhttp3.OkHttpClient okHttpClient)` /// The returned object must be released after use, by calling the [release] method. - factory OkHttpClient$Builder.new$1( - OkHttpClient okHttpClient, - ) { + factory OkHttpClient$Builder.new$1(OkHttpClient okHttpClient) { final _$okHttpClient = okHttpClient.reference; - return OkHttpClient$Builder.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, _$okHttpClient.pointer) - .reference); + return OkHttpClient$Builder.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$okHttpClient.pointer, + ).reference, + ); } static final _id_dispatcher = _class.instanceMethodId( @@ -5139,26 +5862,33 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Lokhttp3/Dispatcher;)Lokhttp3/OkHttpClient$Builder;', ); - static final _dispatcher = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _dispatcher = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder dispatcher(okhttp3.Dispatcher dispatcher)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder dispatcher( - Dispatcher dispatcher, - ) { + OkHttpClient$Builder dispatcher(Dispatcher dispatcher) { final _$dispatcher = dispatcher.reference; - return _dispatcher(reference.pointer, _id_dispatcher as jni$_.JMethodIDPtr, - _$dispatcher.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _dispatcher( + reference.pointer, + _id_dispatcher as jni$_.JMethodIDPtr, + _$dispatcher.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_connectionPool = _class.instanceMethodId( @@ -5166,26 +5896,33 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Lokhttp3/ConnectionPool;)Lokhttp3/OkHttpClient$Builder;', ); - static final _connectionPool = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _connectionPool = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder connectionPool(okhttp3.ConnectionPool connectionPool)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder connectionPool( - ConnectionPool connectionPool, - ) { + OkHttpClient$Builder connectionPool(ConnectionPool connectionPool) { final _$connectionPool = connectionPool.reference; - return _connectionPool(reference.pointer, - _id_connectionPool as jni$_.JMethodIDPtr, _$connectionPool.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _connectionPool( + reference.pointer, + _id_connectionPool as jni$_.JMethodIDPtr, + _$connectionPool.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_interceptors = _class.instanceMethodId( @@ -5193,25 +5930,31 @@ class OkHttpClient$Builder extends jni$_.JObject { r'()Ljava/util/List;', ); - static final _interceptors = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _interceptors = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.util.List interceptors()` /// The returned object must be released after use, by calling the [release] method. jni$_.JList interceptors() { return _interceptors( - reference.pointer, _id_interceptors as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JObjectType())); + reference.pointer, + _id_interceptors as jni$_.JMethodIDPtr, + ).object>( + const jni$_.JListType(jni$_.JObjectType()), + ); } static final _id_addInterceptor = _class.instanceMethodId( @@ -5219,26 +5962,33 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Lokhttp3/Interceptor;)Lokhttp3/OkHttpClient$Builder;', ); - static final _addInterceptor = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _addInterceptor = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder addInterceptor(okhttp3.Interceptor interceptor)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder addInterceptor( - jni$_.JObject interceptor, - ) { + OkHttpClient$Builder addInterceptor(jni$_.JObject interceptor) { final _$interceptor = interceptor.reference; - return _addInterceptor(reference.pointer, - _id_addInterceptor as jni$_.JMethodIDPtr, _$interceptor.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _addInterceptor( + reference.pointer, + _id_addInterceptor as jni$_.JMethodIDPtr, + _$interceptor.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_networkInterceptors = _class.instanceMethodId( @@ -5246,25 +5996,31 @@ class OkHttpClient$Builder extends jni$_.JObject { r'()Ljava/util/List;', ); - static final _networkInterceptors = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _networkInterceptors = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.util.List networkInterceptors()` /// The returned object must be released after use, by calling the [release] method. jni$_.JList networkInterceptors() { return _networkInterceptors( - reference.pointer, _id_networkInterceptors as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JObjectType())); + reference.pointer, + _id_networkInterceptors as jni$_.JMethodIDPtr, + ).object>( + const jni$_.JListType(jni$_.JObjectType()), + ); } static final _id_addNetworkInterceptor = _class.instanceMethodId( @@ -5272,28 +6028,33 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Lokhttp3/Interceptor;)Lokhttp3/OkHttpClient$Builder;', ); - static final _addNetworkInterceptor = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _addNetworkInterceptor = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder addNetworkInterceptor(okhttp3.Interceptor interceptor)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder addNetworkInterceptor( - jni$_.JObject interceptor, - ) { + OkHttpClient$Builder addNetworkInterceptor(jni$_.JObject interceptor) { final _$interceptor = interceptor.reference; return _addNetworkInterceptor( - reference.pointer, - _id_addNetworkInterceptor as jni$_.JMethodIDPtr, - _$interceptor.pointer) - .object(const $OkHttpClient$Builder$Type()); + reference.pointer, + _id_addNetworkInterceptor as jni$_.JMethodIDPtr, + _$interceptor.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_eventListener = _class.instanceMethodId( @@ -5301,26 +6062,33 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Lokhttp3/EventListener;)Lokhttp3/OkHttpClient$Builder;', ); - static final _eventListener = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _eventListener = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder eventListener(okhttp3.EventListener eventListener)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder eventListener( - jni$_.JObject eventListener, - ) { + OkHttpClient$Builder eventListener(jni$_.JObject eventListener) { final _$eventListener = eventListener.reference; - return _eventListener(reference.pointer, - _id_eventListener as jni$_.JMethodIDPtr, _$eventListener.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _eventListener( + reference.pointer, + _id_eventListener as jni$_.JMethodIDPtr, + _$eventListener.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_eventListenerFactory = _class.instanceMethodId( @@ -5328,26 +6096,33 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Lokhttp3/EventListener$Factory;)Lokhttp3/OkHttpClient$Builder;', ); - static final _eventListenerFactory = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _eventListenerFactory = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder eventListenerFactory(okhttp3.EventListener$Factory factory)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder eventListenerFactory( - jni$_.JObject factory, - ) { + OkHttpClient$Builder eventListenerFactory(jni$_.JObject factory) { final _$factory = factory.reference; - return _eventListenerFactory(reference.pointer, - _id_eventListenerFactory as jni$_.JMethodIDPtr, _$factory.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _eventListenerFactory( + reference.pointer, + _id_eventListenerFactory as jni$_.JMethodIDPtr, + _$factory.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_retryOnConnectionFailure = _class.instanceMethodId( @@ -5355,24 +6130,32 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Z)Lokhttp3/OkHttpClient$Builder;', ); - static final _retryOnConnectionFailure = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _retryOnConnectionFailure = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder retryOnConnectionFailure(boolean z)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder retryOnConnectionFailure( - bool z, - ) { - return _retryOnConnectionFailure(reference.pointer, - _id_retryOnConnectionFailure as jni$_.JMethodIDPtr, z ? 1 : 0) - .object(const $OkHttpClient$Builder$Type()); + OkHttpClient$Builder retryOnConnectionFailure(bool z) { + return _retryOnConnectionFailure( + reference.pointer, + _id_retryOnConnectionFailure as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_authenticator = _class.instanceMethodId( @@ -5380,26 +6163,33 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Lokhttp3/Authenticator;)Lokhttp3/OkHttpClient$Builder;', ); - static final _authenticator = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _authenticator = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder authenticator(okhttp3.Authenticator authenticator)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder authenticator( - jni$_.JObject authenticator, - ) { + OkHttpClient$Builder authenticator(jni$_.JObject authenticator) { final _$authenticator = authenticator.reference; - return _authenticator(reference.pointer, - _id_authenticator as jni$_.JMethodIDPtr, _$authenticator.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _authenticator( + reference.pointer, + _id_authenticator as jni$_.JMethodIDPtr, + _$authenticator.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_followRedirects = _class.instanceMethodId( @@ -5407,24 +6197,32 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Z)Lokhttp3/OkHttpClient$Builder;', ); - static final _followRedirects = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _followRedirects = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder followRedirects(boolean z)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder followRedirects( - bool z, - ) { - return _followRedirects(reference.pointer, - _id_followRedirects as jni$_.JMethodIDPtr, z ? 1 : 0) - .object(const $OkHttpClient$Builder$Type()); + OkHttpClient$Builder followRedirects(bool z) { + return _followRedirects( + reference.pointer, + _id_followRedirects as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_followSslRedirects = _class.instanceMethodId( @@ -5432,24 +6230,32 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Z)Lokhttp3/OkHttpClient$Builder;', ); - static final _followSslRedirects = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _followSslRedirects = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder followSslRedirects(boolean z)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder followSslRedirects( - bool z, - ) { - return _followSslRedirects(reference.pointer, - _id_followSslRedirects as jni$_.JMethodIDPtr, z ? 1 : 0) - .object(const $OkHttpClient$Builder$Type()); + OkHttpClient$Builder followSslRedirects(bool z) { + return _followSslRedirects( + reference.pointer, + _id_followSslRedirects as jni$_.JMethodIDPtr, + z ? 1 : 0, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_cookieJar = _class.instanceMethodId( @@ -5457,26 +6263,33 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Lokhttp3/CookieJar;)Lokhttp3/OkHttpClient$Builder;', ); - static final _cookieJar = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _cookieJar = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder cookieJar(okhttp3.CookieJar cookieJar)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder cookieJar( - jni$_.JObject cookieJar, - ) { + OkHttpClient$Builder cookieJar(jni$_.JObject cookieJar) { final _$cookieJar = cookieJar.reference; - return _cookieJar(reference.pointer, _id_cookieJar as jni$_.JMethodIDPtr, - _$cookieJar.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _cookieJar( + reference.pointer, + _id_cookieJar as jni$_.JMethodIDPtr, + _$cookieJar.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_cache = _class.instanceMethodId( @@ -5484,26 +6297,33 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Lokhttp3/Cache;)Lokhttp3/OkHttpClient$Builder;', ); - static final _cache = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _cache = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder cache(okhttp3.Cache cache)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder cache( - Cache? cache, - ) { + OkHttpClient$Builder cache(Cache? cache) { final _$cache = cache?.reference ?? jni$_.jNullReference; return _cache( - reference.pointer, _id_cache as jni$_.JMethodIDPtr, _$cache.pointer) - .object(const $OkHttpClient$Builder$Type()); + reference.pointer, + _id_cache as jni$_.JMethodIDPtr, + _$cache.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_dns = _class.instanceMethodId( @@ -5511,25 +6331,33 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Lokhttp3/Dns;)Lokhttp3/OkHttpClient$Builder;', ); - static final _dns = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _dns = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder dns(okhttp3.Dns dns)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder dns( - jni$_.JObject dns, - ) { + OkHttpClient$Builder dns(jni$_.JObject dns) { final _$dns = dns.reference; - return _dns(reference.pointer, _id_dns as jni$_.JMethodIDPtr, _$dns.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _dns( + reference.pointer, + _id_dns as jni$_.JMethodIDPtr, + _$dns.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_proxy = _class.instanceMethodId( @@ -5537,26 +6365,33 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Ljava/net/Proxy;)Lokhttp3/OkHttpClient$Builder;', ); - static final _proxy = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _proxy = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder proxy(java.net.Proxy proxy)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder proxy( - jni$_.JObject? proxy, - ) { + OkHttpClient$Builder proxy(jni$_.JObject? proxy) { final _$proxy = proxy?.reference ?? jni$_.jNullReference; return _proxy( - reference.pointer, _id_proxy as jni$_.JMethodIDPtr, _$proxy.pointer) - .object(const $OkHttpClient$Builder$Type()); + reference.pointer, + _id_proxy as jni$_.JMethodIDPtr, + _$proxy.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_proxySelector = _class.instanceMethodId( @@ -5564,26 +6399,33 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Ljava/net/ProxySelector;)Lokhttp3/OkHttpClient$Builder;', ); - static final _proxySelector = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _proxySelector = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder proxySelector(java.net.ProxySelector proxySelector)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder proxySelector( - jni$_.JObject proxySelector, - ) { + OkHttpClient$Builder proxySelector(jni$_.JObject proxySelector) { final _$proxySelector = proxySelector.reference; - return _proxySelector(reference.pointer, - _id_proxySelector as jni$_.JMethodIDPtr, _$proxySelector.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _proxySelector( + reference.pointer, + _id_proxySelector as jni$_.JMethodIDPtr, + _$proxySelector.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_proxyAuthenticator = _class.instanceMethodId( @@ -5591,28 +6433,33 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Lokhttp3/Authenticator;)Lokhttp3/OkHttpClient$Builder;', ); - static final _proxyAuthenticator = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _proxyAuthenticator = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder proxyAuthenticator(okhttp3.Authenticator authenticator)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder proxyAuthenticator( - jni$_.JObject authenticator, - ) { + OkHttpClient$Builder proxyAuthenticator(jni$_.JObject authenticator) { final _$authenticator = authenticator.reference; return _proxyAuthenticator( - reference.pointer, - _id_proxyAuthenticator as jni$_.JMethodIDPtr, - _$authenticator.pointer) - .object(const $OkHttpClient$Builder$Type()); + reference.pointer, + _id_proxyAuthenticator as jni$_.JMethodIDPtr, + _$authenticator.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_socketFactory = _class.instanceMethodId( @@ -5620,26 +6467,33 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Ljavax/net/SocketFactory;)Lokhttp3/OkHttpClient$Builder;', ); - static final _socketFactory = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _socketFactory = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder socketFactory(javax.net.SocketFactory socketFactory)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder socketFactory( - SocketFactory socketFactory, - ) { + OkHttpClient$Builder socketFactory(SocketFactory socketFactory) { final _$socketFactory = socketFactory.reference; - return _socketFactory(reference.pointer, - _id_socketFactory as jni$_.JMethodIDPtr, _$socketFactory.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _socketFactory( + reference.pointer, + _id_socketFactory as jni$_.JMethodIDPtr, + _$socketFactory.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_sslSocketFactory = _class.instanceMethodId( @@ -5647,28 +6501,33 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Ljavax/net/ssl/SSLSocketFactory;)Lokhttp3/OkHttpClient$Builder;', ); - static final _sslSocketFactory = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public final okhttp3.OkHttpClient$Builder sslSocketFactory(javax.net.ssl.SSLSocketFactory sSLSocketFactory)` - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder sslSocketFactory( - SSLSocketFactory sSLSocketFactory, - ) { + static final _sslSocketFactory = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); + + /// from: `public final okhttp3.OkHttpClient$Builder sslSocketFactory(javax.net.ssl.SSLSocketFactory sSLSocketFactory)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient$Builder sslSocketFactory(SSLSocketFactory sSLSocketFactory) { final _$sSLSocketFactory = sSLSocketFactory.reference; return _sslSocketFactory( - reference.pointer, - _id_sslSocketFactory as jni$_.JMethodIDPtr, - _$sSLSocketFactory.pointer) - .object(const $OkHttpClient$Builder$Type()); + reference.pointer, + _id_sslSocketFactory as jni$_.JMethodIDPtr, + _$sSLSocketFactory.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_sslSocketFactory$1 = _class.instanceMethodId( @@ -5676,22 +6535,26 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Ljavax/net/ssl/SSLSocketFactory;Ljavax/net/ssl/X509TrustManager;)Lokhttp3/OkHttpClient$Builder;', ); - static final _sslSocketFactory$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _sslSocketFactory$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder sslSocketFactory(javax.net.ssl.SSLSocketFactory sSLSocketFactory, javax.net.ssl.X509TrustManager x509TrustManager)` /// The returned object must be released after use, by calling the [release] method. @@ -5702,11 +6565,11 @@ class OkHttpClient$Builder extends jni$_.JObject { final _$sSLSocketFactory = sSLSocketFactory.reference; final _$x509TrustManager = x509TrustManager.reference; return _sslSocketFactory$1( - reference.pointer, - _id_sslSocketFactory$1 as jni$_.JMethodIDPtr, - _$sSLSocketFactory.pointer, - _$x509TrustManager.pointer) - .object(const $OkHttpClient$Builder$Type()); + reference.pointer, + _id_sslSocketFactory$1 as jni$_.JMethodIDPtr, + _$sSLSocketFactory.pointer, + _$x509TrustManager.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_connectionSpecs = _class.instanceMethodId( @@ -5714,26 +6577,33 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Ljava/util/List;)Lokhttp3/OkHttpClient$Builder;', ); - static final _connectionSpecs = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _connectionSpecs = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder connectionSpecs(java.util.List list)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder connectionSpecs( - jni$_.JList list, - ) { + OkHttpClient$Builder connectionSpecs(jni$_.JList list) { final _$list = list.reference; - return _connectionSpecs(reference.pointer, - _id_connectionSpecs as jni$_.JMethodIDPtr, _$list.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _connectionSpecs( + reference.pointer, + _id_connectionSpecs as jni$_.JMethodIDPtr, + _$list.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_protocols = _class.instanceMethodId( @@ -5741,26 +6611,33 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Ljava/util/List;)Lokhttp3/OkHttpClient$Builder;', ); - static final _protocols = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _protocols = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder protocols(java.util.List list)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder protocols( - jni$_.JList list, - ) { + OkHttpClient$Builder protocols(jni$_.JList list) { final _$list = list.reference; - return _protocols(reference.pointer, _id_protocols as jni$_.JMethodIDPtr, - _$list.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _protocols( + reference.pointer, + _id_protocols as jni$_.JMethodIDPtr, + _$list.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_hostnameVerifier = _class.instanceMethodId( @@ -5768,28 +6645,33 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Ljavax/net/ssl/HostnameVerifier;)Lokhttp3/OkHttpClient$Builder;', ); - static final _hostnameVerifier = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _hostnameVerifier = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder hostnameVerifier(javax.net.ssl.HostnameVerifier hostnameVerifier)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder hostnameVerifier( - HostnameVerifier hostnameVerifier, - ) { + OkHttpClient$Builder hostnameVerifier(HostnameVerifier hostnameVerifier) { final _$hostnameVerifier = hostnameVerifier.reference; return _hostnameVerifier( - reference.pointer, - _id_hostnameVerifier as jni$_.JMethodIDPtr, - _$hostnameVerifier.pointer) - .object(const $OkHttpClient$Builder$Type()); + reference.pointer, + _id_hostnameVerifier as jni$_.JMethodIDPtr, + _$hostnameVerifier.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_certificatePinner = _class.instanceMethodId( @@ -5797,28 +6679,33 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Lokhttp3/CertificatePinner;)Lokhttp3/OkHttpClient$Builder;', ); - static final _certificatePinner = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _certificatePinner = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder certificatePinner(okhttp3.CertificatePinner certificatePinner)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder certificatePinner( - jni$_.JObject certificatePinner, - ) { + OkHttpClient$Builder certificatePinner(jni$_.JObject certificatePinner) { final _$certificatePinner = certificatePinner.reference; return _certificatePinner( - reference.pointer, - _id_certificatePinner as jni$_.JMethodIDPtr, - _$certificatePinner.pointer) - .object(const $OkHttpClient$Builder$Type()); + reference.pointer, + _id_certificatePinner as jni$_.JMethodIDPtr, + _$certificatePinner.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_callTimeout = _class.instanceMethodId( @@ -5826,28 +6713,35 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;', ); - static final _callTimeout = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Int64, jni$_.Pointer)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + static final _callTimeout = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64, jni$_.Pointer)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder callTimeout(long j, java.util.concurrent.TimeUnit timeUnit)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder callTimeout( - int j, - TimeUnit timeUnit, - ) { + OkHttpClient$Builder callTimeout(int j, TimeUnit timeUnit) { final _$timeUnit = timeUnit.reference; - return _callTimeout(reference.pointer, - _id_callTimeout as jni$_.JMethodIDPtr, j, _$timeUnit.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _callTimeout( + reference.pointer, + _id_callTimeout as jni$_.JMethodIDPtr, + j, + _$timeUnit.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_callTimeout$1 = _class.instanceMethodId( @@ -5855,26 +6749,33 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Ljava/time/Duration;)Lokhttp3/OkHttpClient$Builder;', ); - static final _callTimeout$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$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _callTimeout$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$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder callTimeout(java.time.Duration duration)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder callTimeout$1( - jni$_.JObject duration, - ) { + OkHttpClient$Builder callTimeout$1(jni$_.JObject duration) { final _$duration = duration.reference; - return _callTimeout$1(reference.pointer, - _id_callTimeout$1 as jni$_.JMethodIDPtr, _$duration.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _callTimeout$1( + reference.pointer, + _id_callTimeout$1 as jni$_.JMethodIDPtr, + _$duration.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_connectTimeout = _class.instanceMethodId( @@ -5882,28 +6783,35 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;', ); - static final _connectTimeout = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Int64, jni$_.Pointer)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + static final _connectTimeout = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64, jni$_.Pointer)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder connectTimeout(long j, java.util.concurrent.TimeUnit timeUnit)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder connectTimeout( - int j, - TimeUnit timeUnit, - ) { + OkHttpClient$Builder connectTimeout(int j, TimeUnit timeUnit) { final _$timeUnit = timeUnit.reference; - return _connectTimeout(reference.pointer, - _id_connectTimeout as jni$_.JMethodIDPtr, j, _$timeUnit.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _connectTimeout( + reference.pointer, + _id_connectTimeout as jni$_.JMethodIDPtr, + j, + _$timeUnit.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_connectTimeout$1 = _class.instanceMethodId( @@ -5911,26 +6819,33 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Ljava/time/Duration;)Lokhttp3/OkHttpClient$Builder;', ); - static final _connectTimeout$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$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _connectTimeout$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$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder connectTimeout(java.time.Duration duration)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder connectTimeout$1( - jni$_.JObject duration, - ) { + OkHttpClient$Builder connectTimeout$1(jni$_.JObject duration) { final _$duration = duration.reference; - return _connectTimeout$1(reference.pointer, - _id_connectTimeout$1 as jni$_.JMethodIDPtr, _$duration.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _connectTimeout$1( + reference.pointer, + _id_connectTimeout$1 as jni$_.JMethodIDPtr, + _$duration.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_readTimeout = _class.instanceMethodId( @@ -5938,28 +6853,35 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;', ); - static final _readTimeout = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Int64, jni$_.Pointer)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + static final _readTimeout = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64, jni$_.Pointer)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder readTimeout(long j, java.util.concurrent.TimeUnit timeUnit)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder readTimeout( - int j, - TimeUnit timeUnit, - ) { + OkHttpClient$Builder readTimeout(int j, TimeUnit timeUnit) { final _$timeUnit = timeUnit.reference; - return _readTimeout(reference.pointer, - _id_readTimeout as jni$_.JMethodIDPtr, j, _$timeUnit.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _readTimeout( + reference.pointer, + _id_readTimeout as jni$_.JMethodIDPtr, + j, + _$timeUnit.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_readTimeout$1 = _class.instanceMethodId( @@ -5967,26 +6889,33 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Ljava/time/Duration;)Lokhttp3/OkHttpClient$Builder;', ); - static final _readTimeout$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$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _readTimeout$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$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder readTimeout(java.time.Duration duration)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder readTimeout$1( - jni$_.JObject duration, - ) { + OkHttpClient$Builder readTimeout$1(jni$_.JObject duration) { final _$duration = duration.reference; - return _readTimeout$1(reference.pointer, - _id_readTimeout$1 as jni$_.JMethodIDPtr, _$duration.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _readTimeout$1( + reference.pointer, + _id_readTimeout$1 as jni$_.JMethodIDPtr, + _$duration.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_writeTimeout = _class.instanceMethodId( @@ -5994,28 +6923,35 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;', ); - static final _writeTimeout = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Int64, jni$_.Pointer)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + static final _writeTimeout = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64, jni$_.Pointer)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder writeTimeout(long j, java.util.concurrent.TimeUnit timeUnit)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder writeTimeout( - int j, - TimeUnit timeUnit, - ) { + OkHttpClient$Builder writeTimeout(int j, TimeUnit timeUnit) { final _$timeUnit = timeUnit.reference; - return _writeTimeout(reference.pointer, - _id_writeTimeout as jni$_.JMethodIDPtr, j, _$timeUnit.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _writeTimeout( + reference.pointer, + _id_writeTimeout as jni$_.JMethodIDPtr, + j, + _$timeUnit.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_writeTimeout$1 = _class.instanceMethodId( @@ -6023,26 +6959,33 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Ljava/time/Duration;)Lokhttp3/OkHttpClient$Builder;', ); - static final _writeTimeout$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$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _writeTimeout$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$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder writeTimeout(java.time.Duration duration)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder writeTimeout$1( - jni$_.JObject duration, - ) { + OkHttpClient$Builder writeTimeout$1(jni$_.JObject duration) { final _$duration = duration.reference; - return _writeTimeout$1(reference.pointer, - _id_writeTimeout$1 as jni$_.JMethodIDPtr, _$duration.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _writeTimeout$1( + reference.pointer, + _id_writeTimeout$1 as jni$_.JMethodIDPtr, + _$duration.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_pingInterval = _class.instanceMethodId( @@ -6050,28 +6993,35 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;', ); - static final _pingInterval = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Int64, jni$_.Pointer)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + static final _pingInterval = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64, jni$_.Pointer)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder pingInterval(long j, java.util.concurrent.TimeUnit timeUnit)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder pingInterval( - int j, - TimeUnit timeUnit, - ) { + OkHttpClient$Builder pingInterval(int j, TimeUnit timeUnit) { final _$timeUnit = timeUnit.reference; - return _pingInterval(reference.pointer, - _id_pingInterval as jni$_.JMethodIDPtr, j, _$timeUnit.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _pingInterval( + reference.pointer, + _id_pingInterval as jni$_.JMethodIDPtr, + j, + _$timeUnit.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_pingInterval$1 = _class.instanceMethodId( @@ -6079,26 +7029,33 @@ class OkHttpClient$Builder extends jni$_.JObject { r'(Ljava/time/Duration;)Lokhttp3/OkHttpClient$Builder;', ); - static final _pingInterval$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$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _pingInterval$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$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder pingInterval(java.time.Duration duration)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder pingInterval$1( - jni$_.JObject duration, - ) { + OkHttpClient$Builder pingInterval$1(jni$_.JObject duration) { final _$duration = duration.reference; - return _pingInterval$1(reference.pointer, - _id_pingInterval$1 as jni$_.JMethodIDPtr, _$duration.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _pingInterval$1( + reference.pointer, + _id_pingInterval$1 as jni$_.JMethodIDPtr, + _$duration.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_minWebSocketMessageToCompress = _class.instanceMethodId( @@ -6108,22 +7065,30 @@ class OkHttpClient$Builder extends jni$_.JObject { static final _minWebSocketMessageToCompress = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int64,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder minWebSocketMessageToCompress(long j)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder minWebSocketMessageToCompress( - int j, - ) { - return _minWebSocketMessageToCompress(reference.pointer, - _id_minWebSocketMessageToCompress as jni$_.JMethodIDPtr, j) - .object(const $OkHttpClient$Builder$Type()); + OkHttpClient$Builder minWebSocketMessageToCompress(int j) { + return _minWebSocketMessageToCompress( + reference.pointer, + _id_minWebSocketMessageToCompress as jni$_.JMethodIDPtr, + j, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_build = _class.instanceMethodId( @@ -6131,23 +7096,29 @@ class OkHttpClient$Builder extends jni$_.JObject { r'()Lokhttp3/OkHttpClient;', ); - static final _build = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _build = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.OkHttpClient build()` /// The returned object must be released after use, by calling the [release] method. OkHttpClient build() { - return _build(reference.pointer, _id_build as jni$_.JMethodIDPtr) - .object(const $OkHttpClient$Type()); + return _build( + reference.pointer, + _id_build as jni$_.JMethodIDPtr, + ).object(const $OkHttpClient$Type()); } } @@ -6163,11 +7134,7 @@ final class $OkHttpClient$Builder$NullableType @jni$_.internal @core$_.override OkHttpClient$Builder? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : OkHttpClient$Builder.fromReference( - reference, - ); + reference.isNull ? null : OkHttpClient$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -6202,9 +7169,7 @@ final class $OkHttpClient$Builder$Type @jni$_.internal @core$_.override OkHttpClient$Builder fromReference(jni$_.JReference reference) => - OkHttpClient$Builder.fromReference( - reference, - ); + OkHttpClient$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -6235,10 +7200,9 @@ class OkHttpClient$Companion extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - OkHttpClient$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + OkHttpClient$Companion.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okhttp3/OkHttpClient$Companion'); @@ -6249,27 +7213,36 @@ class OkHttpClient$Companion extends jni$_.JObject { r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` /// The returned object must be released after use, by calling the [release] method. - factory OkHttpClient$Companion( - jni$_.JObject? defaultConstructorMarker, - ) { + factory OkHttpClient$Companion(jni$_.JObject? defaultConstructorMarker) { final _$defaultConstructorMarker = defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return OkHttpClient$Companion.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$defaultConstructorMarker.pointer) - .reference); + return OkHttpClient$Companion.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$defaultConstructorMarker.pointer, + ).reference, + ); } } @@ -6285,11 +7258,7 @@ final class $OkHttpClient$Companion$NullableType @jni$_.internal @core$_.override OkHttpClient$Companion? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : OkHttpClient$Companion.fromReference( - reference, - ); + reference.isNull ? null : OkHttpClient$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -6324,9 +7293,7 @@ final class $OkHttpClient$Companion$Type @jni$_.internal @core$_.override OkHttpClient$Companion fromReference(jni$_.JReference reference) => - OkHttpClient$Companion.fromReference( - reference, - ); + OkHttpClient$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -6357,10 +7324,9 @@ class OkHttpClient extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - OkHttpClient.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + OkHttpClient.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okhttp3/OkHttpClient'); @@ -6381,26 +7347,35 @@ class OkHttpClient extends jni$_.JObject { r'(Lokhttp3/OkHttpClient$Builder;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void (okhttp3.OkHttpClient$Builder builder)` /// The returned object must be released after use, by calling the [release] method. - factory OkHttpClient( - OkHttpClient$Builder builder, - ) { + factory OkHttpClient(OkHttpClient$Builder builder) { final _$builder = builder.reference; - return OkHttpClient.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$builder.pointer) - .reference); + return OkHttpClient.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$builder.pointer, + ).reference, + ); } static final _id_dispatcher = _class.instanceMethodId( @@ -6408,23 +7383,29 @@ class OkHttpClient extends jni$_.JObject { r'()Lokhttp3/Dispatcher;', ); - static final _dispatcher = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _dispatcher = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.Dispatcher dispatcher()` /// The returned object must be released after use, by calling the [release] method. Dispatcher dispatcher() { - return _dispatcher(reference.pointer, _id_dispatcher as jni$_.JMethodIDPtr) - .object(const $Dispatcher$Type()); + return _dispatcher( + reference.pointer, + _id_dispatcher as jni$_.JMethodIDPtr, + ).object(const $Dispatcher$Type()); } static final _id_connectionPool = _class.instanceMethodId( @@ -6432,24 +7413,29 @@ class OkHttpClient extends jni$_.JObject { r'()Lokhttp3/ConnectionPool;', ); - static final _connectionPool = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _connectionPool = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.ConnectionPool connectionPool()` /// The returned object must be released after use, by calling the [release] method. ConnectionPool connectionPool() { return _connectionPool( - reference.pointer, _id_connectionPool as jni$_.JMethodIDPtr) - .object(const $ConnectionPool$Type()); + reference.pointer, + _id_connectionPool as jni$_.JMethodIDPtr, + ).object(const $ConnectionPool$Type()); } static final _id_interceptors = _class.instanceMethodId( @@ -6457,25 +7443,31 @@ class OkHttpClient extends jni$_.JObject { r'()Ljava/util/List;', ); - static final _interceptors = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _interceptors = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.util.List interceptors()` /// The returned object must be released after use, by calling the [release] method. jni$_.JList interceptors() { return _interceptors( - reference.pointer, _id_interceptors as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JObjectType())); + reference.pointer, + _id_interceptors as jni$_.JMethodIDPtr, + ).object>( + const jni$_.JListType(jni$_.JObjectType()), + ); } static final _id_networkInterceptors = _class.instanceMethodId( @@ -6483,25 +7475,31 @@ class OkHttpClient extends jni$_.JObject { r'()Ljava/util/List;', ); - static final _networkInterceptors = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _networkInterceptors = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.util.List networkInterceptors()` /// The returned object must be released after use, by calling the [release] method. jni$_.JList networkInterceptors() { return _networkInterceptors( - reference.pointer, _id_networkInterceptors as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JObjectType())); + reference.pointer, + _id_networkInterceptors as jni$_.JMethodIDPtr, + ).object>( + const jni$_.JListType(jni$_.JObjectType()), + ); } static final _id_eventListenerFactory = _class.instanceMethodId( @@ -6509,24 +7507,29 @@ class OkHttpClient extends jni$_.JObject { r'()Lokhttp3/EventListener$Factory;', ); - static final _eventListenerFactory = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _eventListenerFactory = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.EventListener$Factory eventListenerFactory()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject eventListenerFactory() { return _eventListenerFactory( - reference.pointer, _id_eventListenerFactory as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + reference.pointer, + _id_eventListenerFactory as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } static final _id_retryOnConnectionFailure = _class.instanceMethodId( @@ -6534,23 +7537,28 @@ class OkHttpClient extends jni$_.JObject { r'()Z', ); - static final _retryOnConnectionFailure = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _retryOnConnectionFailure = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final boolean retryOnConnectionFailure()` bool retryOnConnectionFailure() { - return _retryOnConnectionFailure(reference.pointer, - _id_retryOnConnectionFailure as jni$_.JMethodIDPtr) - .boolean; + return _retryOnConnectionFailure( + reference.pointer, + _id_retryOnConnectionFailure as jni$_.JMethodIDPtr, + ).boolean; } static final _id_authenticator = _class.instanceMethodId( @@ -6558,24 +7566,29 @@ class OkHttpClient extends jni$_.JObject { r'()Lokhttp3/Authenticator;', ); - static final _authenticator = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _authenticator = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.Authenticator authenticator()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject authenticator() { return _authenticator( - reference.pointer, _id_authenticator as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + reference.pointer, + _id_authenticator as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } static final _id_followRedirects = _class.instanceMethodId( @@ -6583,23 +7596,28 @@ class OkHttpClient extends jni$_.JObject { r'()Z', ); - static final _followRedirects = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _followRedirects = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final boolean followRedirects()` bool followRedirects() { return _followRedirects( - reference.pointer, _id_followRedirects as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_followRedirects as jni$_.JMethodIDPtr, + ).boolean; } static final _id_followSslRedirects = _class.instanceMethodId( @@ -6607,23 +7625,28 @@ class OkHttpClient extends jni$_.JObject { r'()Z', ); - static final _followSslRedirects = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _followSslRedirects = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final boolean followSslRedirects()` bool followSslRedirects() { return _followSslRedirects( - reference.pointer, _id_followSslRedirects as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_followSslRedirects as jni$_.JMethodIDPtr, + ).boolean; } static final _id_cookieJar = _class.instanceMethodId( @@ -6631,23 +7654,29 @@ class OkHttpClient extends jni$_.JObject { r'()Lokhttp3/CookieJar;', ); - static final _cookieJar = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _cookieJar = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.CookieJar cookieJar()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject cookieJar() { - return _cookieJar(reference.pointer, _id_cookieJar as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + return _cookieJar( + reference.pointer, + _id_cookieJar as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } static final _id_cache = _class.instanceMethodId( @@ -6655,47 +7684,56 @@ class OkHttpClient extends jni$_.JObject { r'()Lokhttp3/Cache;', ); - static final _cache = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _cache = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.Cache cache()` /// The returned object must be released after use, by calling the [release] method. Cache? cache() { - return _cache(reference.pointer, _id_cache as jni$_.JMethodIDPtr) - .object(const $Cache$NullableType()); + return _cache( + reference.pointer, + _id_cache as jni$_.JMethodIDPtr, + ).object(const $Cache$NullableType()); } - static final _id_dns = _class.instanceMethodId( - r'dns', - r'()Lokhttp3/Dns;', - ); + static final _id_dns = _class.instanceMethodId(r'dns', r'()Lokhttp3/Dns;'); - static final _dns = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _dns = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.Dns dns()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject dns() { - return _dns(reference.pointer, _id_dns as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + return _dns( + reference.pointer, + _id_dns as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } static final _id_proxy = _class.instanceMethodId( @@ -6703,23 +7741,29 @@ class OkHttpClient extends jni$_.JObject { r'()Ljava/net/Proxy;', ); - static final _proxy = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _proxy = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.net.Proxy proxy()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? proxy() { - return _proxy(reference.pointer, _id_proxy as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _proxy( + reference.pointer, + _id_proxy as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_proxySelector = _class.instanceMethodId( @@ -6727,24 +7771,29 @@ class OkHttpClient extends jni$_.JObject { r'()Ljava/net/ProxySelector;', ); - static final _proxySelector = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _proxySelector = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.net.ProxySelector proxySelector()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject proxySelector() { return _proxySelector( - reference.pointer, _id_proxySelector as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + reference.pointer, + _id_proxySelector as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } static final _id_proxyAuthenticator = _class.instanceMethodId( @@ -6752,24 +7801,29 @@ class OkHttpClient extends jni$_.JObject { r'()Lokhttp3/Authenticator;', ); - static final _proxyAuthenticator = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _proxyAuthenticator = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.Authenticator proxyAuthenticator()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject proxyAuthenticator() { return _proxyAuthenticator( - reference.pointer, _id_proxyAuthenticator as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + reference.pointer, + _id_proxyAuthenticator as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } static final _id_socketFactory = _class.instanceMethodId( @@ -6777,24 +7831,29 @@ class OkHttpClient extends jni$_.JObject { r'()Ljavax/net/SocketFactory;', ); - static final _socketFactory = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _socketFactory = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final javax.net.SocketFactory socketFactory()` /// The returned object must be released after use, by calling the [release] method. SocketFactory socketFactory() { return _socketFactory( - reference.pointer, _id_socketFactory as jni$_.JMethodIDPtr) - .object(const $SocketFactory$Type()); + reference.pointer, + _id_socketFactory as jni$_.JMethodIDPtr, + ).object(const $SocketFactory$Type()); } static final _id_sslSocketFactory = _class.instanceMethodId( @@ -6802,24 +7861,29 @@ class OkHttpClient extends jni$_.JObject { r'()Ljavax/net/ssl/SSLSocketFactory;', ); - static final _sslSocketFactory = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _sslSocketFactory = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final javax.net.ssl.SSLSocketFactory sslSocketFactory()` /// The returned object must be released after use, by calling the [release] method. SSLSocketFactory sslSocketFactory() { return _sslSocketFactory( - reference.pointer, _id_sslSocketFactory as jni$_.JMethodIDPtr) - .object(const $SSLSocketFactory$Type()); + reference.pointer, + _id_sslSocketFactory as jni$_.JMethodIDPtr, + ).object(const $SSLSocketFactory$Type()); } static final _id_x509TrustManager = _class.instanceMethodId( @@ -6827,24 +7891,29 @@ class OkHttpClient extends jni$_.JObject { r'()Ljavax/net/ssl/X509TrustManager;', ); - static final _x509TrustManager = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _x509TrustManager = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final javax.net.ssl.X509TrustManager x509TrustManager()` /// The returned object must be released after use, by calling the [release] method. X509TrustManager? x509TrustManager() { return _x509TrustManager( - reference.pointer, _id_x509TrustManager as jni$_.JMethodIDPtr) - .object(const $X509TrustManager$NullableType()); + reference.pointer, + _id_x509TrustManager as jni$_.JMethodIDPtr, + ).object(const $X509TrustManager$NullableType()); } static final _id_connectionSpecs = _class.instanceMethodId( @@ -6852,25 +7921,31 @@ class OkHttpClient extends jni$_.JObject { r'()Ljava/util/List;', ); - static final _connectionSpecs = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _connectionSpecs = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.util.List connectionSpecs()` /// The returned object must be released after use, by calling the [release] method. jni$_.JList connectionSpecs() { return _connectionSpecs( - reference.pointer, _id_connectionSpecs as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JObjectType())); + reference.pointer, + _id_connectionSpecs as jni$_.JMethodIDPtr, + ).object>( + const jni$_.JListType(jni$_.JObjectType()), + ); } static final _id_protocols = _class.instanceMethodId( @@ -6878,24 +7953,31 @@ class OkHttpClient extends jni$_.JObject { r'()Ljava/util/List;', ); - static final _protocols = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _protocols = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.util.List protocols()` /// The returned object must be released after use, by calling the [release] method. jni$_.JList protocols() { - return _protocols(reference.pointer, _id_protocols as jni$_.JMethodIDPtr) - .object>( - const jni$_.JListType(jni$_.JObjectType())); + return _protocols( + reference.pointer, + _id_protocols as jni$_.JMethodIDPtr, + ).object>( + const jni$_.JListType(jni$_.JObjectType()), + ); } static final _id_hostnameVerifier = _class.instanceMethodId( @@ -6903,24 +7985,29 @@ class OkHttpClient extends jni$_.JObject { r'()Ljavax/net/ssl/HostnameVerifier;', ); - static final _hostnameVerifier = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hostnameVerifier = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final javax.net.ssl.HostnameVerifier hostnameVerifier()` /// The returned object must be released after use, by calling the [release] method. HostnameVerifier hostnameVerifier() { return _hostnameVerifier( - reference.pointer, _id_hostnameVerifier as jni$_.JMethodIDPtr) - .object(const $HostnameVerifier$Type()); + reference.pointer, + _id_hostnameVerifier as jni$_.JMethodIDPtr, + ).object(const $HostnameVerifier$Type()); } static final _id_certificatePinner = _class.instanceMethodId( @@ -6928,24 +8015,29 @@ class OkHttpClient extends jni$_.JObject { r'()Lokhttp3/CertificatePinner;', ); - static final _certificatePinner = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _certificatePinner = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.CertificatePinner certificatePinner()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject certificatePinner() { return _certificatePinner( - reference.pointer, _id_certificatePinner as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + reference.pointer, + _id_certificatePinner as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } static final _id_certificateChainCleaner = _class.instanceMethodId( @@ -6953,24 +8045,29 @@ class OkHttpClient extends jni$_.JObject { r'()Lokhttp3/internal/tls/CertificateChainCleaner;', ); - static final _certificateChainCleaner = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _certificateChainCleaner = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.internal.tls.CertificateChainCleaner certificateChainCleaner()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? certificateChainCleaner() { - return _certificateChainCleaner(reference.pointer, - _id_certificateChainCleaner as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _certificateChainCleaner( + reference.pointer, + _id_certificateChainCleaner as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_callTimeoutMillis = _class.instanceMethodId( @@ -6978,23 +8075,28 @@ class OkHttpClient extends jni$_.JObject { r'()I', ); - static final _callTimeoutMillis = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _callTimeoutMillis = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final int callTimeoutMillis()` int callTimeoutMillis() { return _callTimeoutMillis( - reference.pointer, _id_callTimeoutMillis as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_callTimeoutMillis as jni$_.JMethodIDPtr, + ).integer; } static final _id_connectTimeoutMillis = _class.instanceMethodId( @@ -7002,23 +8104,28 @@ class OkHttpClient extends jni$_.JObject { r'()I', ); - static final _connectTimeoutMillis = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _connectTimeoutMillis = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final int connectTimeoutMillis()` int connectTimeoutMillis() { return _connectTimeoutMillis( - reference.pointer, _id_connectTimeoutMillis as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_connectTimeoutMillis as jni$_.JMethodIDPtr, + ).integer; } static final _id_readTimeoutMillis = _class.instanceMethodId( @@ -7026,23 +8133,28 @@ class OkHttpClient extends jni$_.JObject { r'()I', ); - static final _readTimeoutMillis = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _readTimeoutMillis = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final int readTimeoutMillis()` int readTimeoutMillis() { return _readTimeoutMillis( - reference.pointer, _id_readTimeoutMillis as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_readTimeoutMillis as jni$_.JMethodIDPtr, + ).integer; } static final _id_writeTimeoutMillis = _class.instanceMethodId( @@ -7050,23 +8162,28 @@ class OkHttpClient extends jni$_.JObject { r'()I', ); - static final _writeTimeoutMillis = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _writeTimeoutMillis = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final int writeTimeoutMillis()` int writeTimeoutMillis() { return _writeTimeoutMillis( - reference.pointer, _id_writeTimeoutMillis as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_writeTimeoutMillis as jni$_.JMethodIDPtr, + ).integer; } static final _id_pingIntervalMillis = _class.instanceMethodId( @@ -7074,23 +8191,28 @@ class OkHttpClient extends jni$_.JObject { r'()I', ); - static final _pingIntervalMillis = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _pingIntervalMillis = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final int pingIntervalMillis()` int pingIntervalMillis() { return _pingIntervalMillis( - reference.pointer, _id_pingIntervalMillis as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_pingIntervalMillis as jni$_.JMethodIDPtr, + ).integer; } static final _id_minWebSocketMessageToCompress = _class.instanceMethodId( @@ -7100,22 +8222,26 @@ class OkHttpClient extends jni$_.JObject { static final _minWebSocketMessageToCompress = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final long minWebSocketMessageToCompress()` int minWebSocketMessageToCompress() { - return _minWebSocketMessageToCompress(reference.pointer, - _id_minWebSocketMessageToCompress as jni$_.JMethodIDPtr) - .long; + return _minWebSocketMessageToCompress( + reference.pointer, + _id_minWebSocketMessageToCompress as jni$_.JMethodIDPtr, + ).long; } static final _id_getRouteDatabase = _class.instanceMethodId( @@ -7123,48 +8249,58 @@ class OkHttpClient extends jni$_.JObject { r'()Lokhttp3/internal/connection/RouteDatabase;', ); - static final _getRouteDatabase = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getRouteDatabase = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.internal.connection.RouteDatabase getRouteDatabase()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject getRouteDatabase() { return _getRouteDatabase( - reference.pointer, _id_getRouteDatabase as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + reference.pointer, + _id_getRouteDatabase as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } - static final _id_new$1 = _class.constructorId( - r'()V', - ); + static final _id_new$1 = _class.constructorId(r'()V'); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory OkHttpClient.new$1() { return OkHttpClient.fromReference( - _new$1(_class.reference.pointer, _id_new$1 as jni$_.JMethodIDPtr) - .reference); + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + ).reference, + ); } static final _id_newCall = _class.instanceMethodId( @@ -7172,26 +8308,33 @@ class OkHttpClient extends jni$_.JObject { r'(Lokhttp3/Request;)Lokhttp3/Call;', ); - static final _newCall = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _newCall = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.Call newCall(okhttp3.Request request)` /// The returned object must be released after use, by calling the [release] method. - Call newCall( - Request request, - ) { + Call newCall(Request request) { final _$request = request.reference; - return _newCall(reference.pointer, _id_newCall as jni$_.JMethodIDPtr, - _$request.pointer) - .object(const $Call$Type()); + return _newCall( + reference.pointer, + _id_newCall as jni$_.JMethodIDPtr, + _$request.pointer, + ).object(const $Call$Type()); } static final _id_newWebSocket = _class.instanceMethodId( @@ -7199,37 +8342,38 @@ class OkHttpClient extends jni$_.JObject { r'(Lokhttp3/Request;Lokhttp3/WebSocketListener;)Lokhttp3/WebSocket;', ); - static final _newWebSocket = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _newWebSocket = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public okhttp3.WebSocket newWebSocket(okhttp3.Request request, okhttp3.WebSocketListener webSocketListener)` /// The returned object must be released after use, by calling the [release] method. - WebSocket newWebSocket( - Request request, - jni$_.JObject webSocketListener, - ) { + WebSocket newWebSocket(Request request, jni$_.JObject webSocketListener) { final _$request = request.reference; final _$webSocketListener = webSocketListener.reference; return _newWebSocket( - reference.pointer, - _id_newWebSocket as jni$_.JMethodIDPtr, - _$request.pointer, - _$webSocketListener.pointer) - .object(const $WebSocket$Type()); + reference.pointer, + _id_newWebSocket as jni$_.JMethodIDPtr, + _$request.pointer, + _$webSocketListener.pointer, + ).object(const $WebSocket$Type()); } static final _id_newBuilder = _class.instanceMethodId( @@ -7237,23 +8381,29 @@ class OkHttpClient extends jni$_.JObject { r'()Lokhttp3/OkHttpClient$Builder;', ); - static final _newBuilder = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _newBuilder = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public okhttp3.OkHttpClient$Builder newBuilder()` /// The returned object must be released after use, by calling the [release] method. OkHttpClient$Builder newBuilder() { - return _newBuilder(reference.pointer, _id_newBuilder as jni$_.JMethodIDPtr) - .object(const $OkHttpClient$Builder$Type()); + return _newBuilder( + reference.pointer, + _id_newBuilder as jni$_.JMethodIDPtr, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_clone = _class.instanceMethodId( @@ -7261,23 +8411,29 @@ class OkHttpClient extends jni$_.JObject { r'()Ljava/lang/Object;', ); - static final _clone = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _clone = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.lang.Object clone()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject clone() { - return _clone(reference.pointer, _id_clone as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + return _clone( + reference.pointer, + _id_clone as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } } @@ -7291,11 +8447,8 @@ final class $OkHttpClient$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - OkHttpClient? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : OkHttpClient.fromReference( - reference, - ); + OkHttpClient? fromReference(jni$_.JReference reference) => + reference.isNull ? null : OkHttpClient.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -7329,9 +8482,7 @@ final class $OkHttpClient$Type extends jni$_.JObjType { @jni$_.internal @core$_.override OkHttpClient fromReference(jni$_.JReference reference) => - OkHttpClient.fromReference( - reference, - ); + OkHttpClient.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -7362,10 +8513,9 @@ class Call$Factory extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Call$Factory.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Call$Factory.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okhttp3/Call$Factory'); @@ -7377,26 +8527,33 @@ class Call$Factory extends jni$_.JObject { r'(Lokhttp3/Request;)Lokhttp3/Call;', ); - static final _newCall = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _newCall = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract okhttp3.Call newCall(okhttp3.Request request)` /// The returned object must be released after use, by calling the [release] method. - Call newCall( - Request request, - ) { + Call newCall(Request request) { final _$request = request.reference; - return _newCall(reference.pointer, _id_newCall as jni$_.JMethodIDPtr, - _$request.pointer) - .object(const $Call$Type()); + return _newCall( + reference.pointer, + _id_newCall as jni$_.JMethodIDPtr, + _$request.pointer, + ).object(const $Call$Type()); } /// Maps a specific port to the implemented interface. @@ -7408,19 +8565,16 @@ class Call$Factory extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address), ); } static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -7445,10 +8599,7 @@ class Call$Factory extends jni$_.JObject { return jni$_.nullptr; } - static void implementIn( - jni$_.JImplementer implementer, - $Call$Factory $impl, - ) { + static void implementIn(jni$_.JImplementer implementer, $Call$Factory $impl) { late final jni$_.RawReceivePort $p; $p = jni$_.RawReceivePort(($m) { if ($m == null) { @@ -7460,39 +8611,28 @@ class Call$Factory extends jni$_.JObject { final $r = _$invokeMethod($p.sendPort.nativePort, $i); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); - implementer.add( - r'okhttp3.Call$Factory', - $p, - _$invokePointer, - [], - ); + implementer.add(r'okhttp3.Call$Factory', $p, _$invokePointer, []); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } - factory Call$Factory.implement( - $Call$Factory $impl, - ) { + factory Call$Factory.implement($Call$Factory $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return Call$Factory.fromReference( - $i.implementReference(), - ); + return Call$Factory.fromReference($i.implementReference()); } } abstract base mixin class $Call$Factory { - factory $Call$Factory({ - required Call Function(Request request) newCall, - }) = _$Call$Factory; + factory $Call$Factory({required Call Function(Request request) newCall}) = + _$Call$Factory; Call newCall(Request request); } final class _$Call$Factory with $Call$Factory { - _$Call$Factory({ - required Call Function(Request request) newCall, - }) : _newCall = newCall; + _$Call$Factory({required Call Function(Request request) newCall}) + : _newCall = newCall; final Call Function(Request request) _newCall; @@ -7511,11 +8651,8 @@ final class $Call$Factory$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - Call$Factory? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Call$Factory.fromReference( - reference, - ); + Call$Factory? fromReference(jni$_.JReference reference) => + reference.isNull ? null : Call$Factory.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -7549,9 +8686,7 @@ final class $Call$Factory$Type extends jni$_.JObjType { @jni$_.internal @core$_.override Call$Factory fromReference(jni$_.JReference reference) => - Call$Factory.fromReference( - reference, - ); + Call$Factory.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -7582,10 +8717,9 @@ class Call extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Call.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Call.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okhttp3/Call'); @@ -7597,23 +8731,29 @@ class Call extends jni$_.JObject { r'()Lokhttp3/Request;', ); - static final _request = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _request = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract okhttp3.Request request()` /// The returned object must be released after use, by calling the [release] method. Request request() { - return _request(reference.pointer, _id_request as jni$_.JMethodIDPtr) - .object(const $Request$Type()); + return _request( + reference.pointer, + _id_request as jni$_.JMethodIDPtr, + ).object(const $Request$Type()); } static final _id_execute = _class.instanceMethodId( @@ -7621,23 +8761,29 @@ class Call extends jni$_.JObject { r'()Lokhttp3/Response;', ); - static final _execute = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _execute = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract okhttp3.Response execute()` /// The returned object must be released after use, by calling the [release] method. Response execute() { - return _execute(reference.pointer, _id_execute as jni$_.JMethodIDPtr) - .object(const $Response$Type()); + return _execute( + reference.pointer, + _id_execute as jni$_.JMethodIDPtr, + ).object(const $Response$Type()); } static final _id_enqueue = _class.instanceMethodId( @@ -7645,93 +8791,107 @@ class Call extends jni$_.JObject { r'(Lokhttp3/Callback;)V', ); - static final _enqueue = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _enqueue = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract void enqueue(okhttp3.Callback callback)` - void enqueue( - Callback callback, - ) { + void enqueue(Callback callback) { final _$callback = callback.reference; - _enqueue(reference.pointer, _id_enqueue as jni$_.JMethodIDPtr, - _$callback.pointer) - .check(); + _enqueue( + reference.pointer, + _id_enqueue as jni$_.JMethodIDPtr, + _$callback.pointer, + ).check(); } - static final _id_cancel = _class.instanceMethodId( - r'cancel', - r'()V', - ); + static final _id_cancel = _class.instanceMethodId(r'cancel', r'()V'); - static final _cancel = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _cancel = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void cancel()` void cancel() { _cancel(reference.pointer, _id_cancel as jni$_.JMethodIDPtr).check(); } - static final _id_isExecuted = _class.instanceMethodId( - r'isExecuted', - r'()Z', - ); + static final _id_isExecuted = _class.instanceMethodId(r'isExecuted', r'()Z'); - static final _isExecuted = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _isExecuted = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract boolean isExecuted()` bool isExecuted() { - return _isExecuted(reference.pointer, _id_isExecuted as jni$_.JMethodIDPtr) - .boolean; + return _isExecuted( + reference.pointer, + _id_isExecuted as jni$_.JMethodIDPtr, + ).boolean; } - static final _id_isCanceled = _class.instanceMethodId( - r'isCanceled', - r'()Z', - ); + static final _id_isCanceled = _class.instanceMethodId(r'isCanceled', r'()Z'); - static final _isCanceled = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _isCanceled = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract boolean isCanceled()` bool isCanceled() { - return _isCanceled(reference.pointer, _id_isCanceled as jni$_.JMethodIDPtr) - .boolean; + return _isCanceled( + reference.pointer, + _id_isCanceled as jni$_.JMethodIDPtr, + ).boolean; } static final _id_timeout = _class.instanceMethodId( @@ -7739,23 +8899,29 @@ class Call extends jni$_.JObject { r'()Lokio/Timeout;', ); - static final _timeout = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _timeout = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract okio.Timeout timeout()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject timeout() { - return _timeout(reference.pointer, _id_timeout as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + return _timeout( + reference.pointer, + _id_timeout as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } static final _id_clone = _class.instanceMethodId( @@ -7763,23 +8929,29 @@ class Call extends jni$_.JObject { r'()Lokhttp3/Call;', ); - static final _clone = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _clone = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract okhttp3.Call clone()` /// The returned object must be released after use, by calling the [release] method. Call clone() { - return _clone(reference.pointer, _id_clone as jni$_.JMethodIDPtr) - .object(const $Call$Type()); + return _clone( + reference.pointer, + _id_clone as jni$_.JMethodIDPtr, + ).object(const $Call$Type()); } /// Maps a specific port to the implemented interface. @@ -7791,19 +8963,16 @@ class Call extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address), ); } static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -7868,10 +9037,7 @@ class Call extends jni$_.JObject { return jni$_.nullptr; } - static void implementIn( - jni$_.JImplementer implementer, - $Call $impl, - ) { + static void implementIn(jni$_.JImplementer implementer, $Call $impl) { late final jni$_.RawReceivePort $p; $p = jni$_.RawReceivePort(($m) { if ($m == null) { @@ -7883,27 +9049,18 @@ class Call extends jni$_.JObject { final $r = _$invokeMethod($p.sendPort.nativePort, $i); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); - implementer.add( - r'okhttp3.Call', - $p, - _$invokePointer, - [ - if ($impl.enqueue$async) r'enqueue(Lokhttp3/Callback;)V', - if ($impl.cancel$async) r'cancel()V', - ], - ); + implementer.add(r'okhttp3.Call', $p, _$invokePointer, [ + if ($impl.enqueue$async) r'enqueue(Lokhttp3/Callback;)V', + if ($impl.cancel$async) r'cancel()V', + ]); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } - factory Call.implement( - $Call $impl, - ) { + factory Call.implement($Call $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return Call.fromReference( - $i.implementReference(), - ); + return Call.fromReference($i.implementReference()); } } @@ -7945,14 +9102,14 @@ final class _$Call with $Call { required bool Function() isCanceled, required jni$_.JObject Function() timeout, required Call Function() clone, - }) : _request = request, - _execute = execute, - _enqueue = enqueue, - _cancel = cancel, - _isExecuted = isExecuted, - _isCanceled = isCanceled, - _timeout = timeout, - _clone = clone; + }) : _request = request, + _execute = execute, + _enqueue = enqueue, + _cancel = cancel, + _isExecuted = isExecuted, + _isCanceled = isCanceled, + _timeout = timeout, + _clone = clone; final Request Function() _request; final Response Function() _execute; @@ -8008,11 +9165,8 @@ final class $Call$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - Call? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Call.fromReference( - reference, - ); + Call? fromReference(jni$_.JReference reference) => + reference.isNull ? null : Call.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -8045,9 +9199,8 @@ final class $Call$Type extends jni$_.JObjType { @jni$_.internal @core$_.override - Call fromReference(jni$_.JReference reference) => Call.fromReference( - reference, - ); + Call fromReference(jni$_.JReference reference) => + Call.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -8076,38 +9229,39 @@ class Headers$Builder extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Headers$Builder.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Headers$Builder.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okhttp3/Headers$Builder'); /// The type which includes information such as the signature of this class. static const nullableType = $Headers$Builder$NullableType(); static const type = $Headers$Builder$Type(); - static final _id_new$ = _class.constructorId( - r'()V', - ); + static final _id_new$ = _class.constructorId(r'()V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory Headers$Builder() { return Headers$Builder.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); } static final _id_add = _class.instanceMethodId( @@ -8115,26 +9269,33 @@ class Headers$Builder extends jni$_.JObject { r'(Ljava/lang/String;)Lokhttp3/Headers$Builder;', ); - static final _add = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _add = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.Headers$Builder add(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - Headers$Builder add( - jni$_.JString string, - ) { + Headers$Builder add(jni$_.JString string) { final _$string = string.reference; return _add( - reference.pointer, _id_add as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $Headers$Builder$Type()); + reference.pointer, + _id_add as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $Headers$Builder$Type()); } static final _id_add$1 = _class.instanceMethodId( @@ -8142,34 +9303,38 @@ class Headers$Builder extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$Builder;', ); - static final _add$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _add$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.Headers$Builder add(java.lang.String string, java.lang.String string1)` /// The returned object must be released after use, by calling the [release] method. - Headers$Builder add$1( - jni$_.JString string, - jni$_.JString string1, - ) { + Headers$Builder add$1(jni$_.JString string, jni$_.JString string1) { final _$string = string.reference; final _$string1 = string1.reference; - return _add$1(reference.pointer, _id_add$1 as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) - .object(const $Headers$Builder$Type()); + return _add$1( + reference.pointer, + _id_add$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).object(const $Headers$Builder$Type()); } static final _id_addUnsafeNonAscii = _class.instanceMethodId( @@ -8177,22 +9342,26 @@ class Headers$Builder extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$Builder;', ); - static final _addUnsafeNonAscii = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _addUnsafeNonAscii = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.Headers$Builder addUnsafeNonAscii(java.lang.String string, java.lang.String string1)` /// The returned object must be released after use, by calling the [release] method. @@ -8203,11 +9372,11 @@ class Headers$Builder extends jni$_.JObject { final _$string = string.reference; final _$string1 = string1.reference; return _addUnsafeNonAscii( - reference.pointer, - _id_addUnsafeNonAscii as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer) - .object(const $Headers$Builder$Type()); + reference.pointer, + _id_addUnsafeNonAscii as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).object(const $Headers$Builder$Type()); } static final _id_addAll = _class.instanceMethodId( @@ -8215,26 +9384,33 @@ class Headers$Builder extends jni$_.JObject { r'(Lokhttp3/Headers;)Lokhttp3/Headers$Builder;', ); - static final _addAll = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _addAll = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.Headers$Builder addAll(okhttp3.Headers headers)` /// The returned object must be released after use, by calling the [release] method. - Headers$Builder addAll( - Headers headers, - ) { + Headers$Builder addAll(Headers headers) { final _$headers = headers.reference; - return _addAll(reference.pointer, _id_addAll as jni$_.JMethodIDPtr, - _$headers.pointer) - .object(const $Headers$Builder$Type()); + return _addAll( + reference.pointer, + _id_addAll as jni$_.JMethodIDPtr, + _$headers.pointer, + ).object(const $Headers$Builder$Type()); } static final _id_add$2 = _class.instanceMethodId( @@ -8242,34 +9418,38 @@ class Headers$Builder extends jni$_.JObject { r'(Ljava/lang/String;Ljava/util/Date;)Lokhttp3/Headers$Builder;', ); - static final _add$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _add$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.Headers$Builder add(java.lang.String string, java.util.Date date)` /// The returned object must be released after use, by calling the [release] method. - Headers$Builder add$2( - jni$_.JString string, - jni$_.JObject date, - ) { + Headers$Builder add$2(jni$_.JString string, jni$_.JObject date) { final _$string = string.reference; final _$date = date.reference; - return _add$2(reference.pointer, _id_add$2 as jni$_.JMethodIDPtr, - _$string.pointer, _$date.pointer) - .object(const $Headers$Builder$Type()); + return _add$2( + reference.pointer, + _id_add$2 as jni$_.JMethodIDPtr, + _$string.pointer, + _$date.pointer, + ).object(const $Headers$Builder$Type()); } static final _id_add$3 = _class.instanceMethodId( @@ -8277,34 +9457,38 @@ class Headers$Builder extends jni$_.JObject { r'(Ljava/lang/String;Ljava/time/Instant;)Lokhttp3/Headers$Builder;', ); - static final _add$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _add$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.Headers$Builder add(java.lang.String string, java.time.Instant instant)` /// The returned object must be released after use, by calling the [release] method. - Headers$Builder add$3( - jni$_.JString string, - jni$_.JObject instant, - ) { + Headers$Builder add$3(jni$_.JString string, jni$_.JObject instant) { final _$string = string.reference; final _$instant = instant.reference; - return _add$3(reference.pointer, _id_add$3 as jni$_.JMethodIDPtr, - _$string.pointer, _$instant.pointer) - .object(const $Headers$Builder$Type()); + return _add$3( + reference.pointer, + _id_add$3 as jni$_.JMethodIDPtr, + _$string.pointer, + _$instant.pointer, + ).object(const $Headers$Builder$Type()); } static final _id_set = _class.instanceMethodId( @@ -8312,34 +9496,38 @@ class Headers$Builder extends jni$_.JObject { r'(Ljava/lang/String;Ljava/util/Date;)Lokhttp3/Headers$Builder;', ); - static final _set = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _set = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.Headers$Builder set(java.lang.String string, java.util.Date date)` /// The returned object must be released after use, by calling the [release] method. - Headers$Builder set( - jni$_.JString string, - jni$_.JObject date, - ) { + Headers$Builder set(jni$_.JString string, jni$_.JObject date) { final _$string = string.reference; final _$date = date.reference; - return _set(reference.pointer, _id_set as jni$_.JMethodIDPtr, - _$string.pointer, _$date.pointer) - .object(const $Headers$Builder$Type()); + return _set( + reference.pointer, + _id_set as jni$_.JMethodIDPtr, + _$string.pointer, + _$date.pointer, + ).object(const $Headers$Builder$Type()); } static final _id_set$1 = _class.instanceMethodId( @@ -8347,34 +9535,38 @@ class Headers$Builder extends jni$_.JObject { r'(Ljava/lang/String;Ljava/time/Instant;)Lokhttp3/Headers$Builder;', ); - static final _set$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _set$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.Headers$Builder set(java.lang.String string, java.time.Instant instant)` /// The returned object must be released after use, by calling the [release] method. - Headers$Builder set$1( - jni$_.JString string, - jni$_.JObject instant, - ) { + Headers$Builder set$1(jni$_.JString string, jni$_.JObject instant) { final _$string = string.reference; final _$instant = instant.reference; - return _set$1(reference.pointer, _id_set$1 as jni$_.JMethodIDPtr, - _$string.pointer, _$instant.pointer) - .object(const $Headers$Builder$Type()); + return _set$1( + reference.pointer, + _id_set$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$instant.pointer, + ).object(const $Headers$Builder$Type()); } static final _id_removeAll = _class.instanceMethodId( @@ -8382,26 +9574,33 @@ class Headers$Builder extends jni$_.JObject { r'(Ljava/lang/String;)Lokhttp3/Headers$Builder;', ); - static final _removeAll = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _removeAll = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.Headers$Builder removeAll(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - Headers$Builder removeAll( - jni$_.JString string, - ) { + Headers$Builder removeAll(jni$_.JString string) { final _$string = string.reference; - return _removeAll(reference.pointer, _id_removeAll as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const $Headers$Builder$Type()); + return _removeAll( + reference.pointer, + _id_removeAll as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $Headers$Builder$Type()); } static final _id_set$2 = _class.instanceMethodId( @@ -8409,34 +9608,38 @@ class Headers$Builder extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$Builder;', ); - static final _set$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _set$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.Headers$Builder set(java.lang.String string, java.lang.String string1)` /// The returned object must be released after use, by calling the [release] method. - Headers$Builder set$2( - jni$_.JString string, - jni$_.JString string1, - ) { + Headers$Builder set$2(jni$_.JString string, jni$_.JString string1) { final _$string = string.reference; final _$string1 = string1.reference; - return _set$2(reference.pointer, _id_set$2 as jni$_.JMethodIDPtr, - _$string.pointer, _$string1.pointer) - .object(const $Headers$Builder$Type()); + return _set$2( + reference.pointer, + _id_set$2 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).object(const $Headers$Builder$Type()); } static final _id_get = _class.instanceMethodId( @@ -8444,26 +9647,33 @@ class Headers$Builder extends jni$_.JObject { r'(Ljava/lang/String;)Ljava/lang/String;', ); - static final _get = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _get = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final java.lang.String get(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? get( - jni$_.JString string, - ) { + jni$_.JString? get(jni$_.JString string) { final _$string = string.reference; return _get( - reference.pointer, _id_get as jni$_.JMethodIDPtr, _$string.pointer) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_get as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const jni$_.JStringNullableType()); } static final _id_build = _class.instanceMethodId( @@ -8471,23 +9681,29 @@ class Headers$Builder extends jni$_.JObject { r'()Lokhttp3/Headers;', ); - static final _build = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _build = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.Headers build()` /// The returned object must be released after use, by calling the [release] method. Headers build() { - return _build(reference.pointer, _id_build as jni$_.JMethodIDPtr) - .object(const $Headers$Type()); + return _build( + reference.pointer, + _id_build as jni$_.JMethodIDPtr, + ).object(const $Headers$Type()); } } @@ -8502,11 +9718,8 @@ final class $Headers$Builder$NullableType @jni$_.internal @core$_.override - Headers$Builder? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Headers$Builder.fromReference( - reference, - ); + Headers$Builder? fromReference(jni$_.JReference reference) => + reference.isNull ? null : Headers$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -8540,9 +9753,7 @@ final class $Headers$Builder$Type extends jni$_.JObjType { @jni$_.internal @core$_.override Headers$Builder fromReference(jni$_.JReference reference) => - Headers$Builder.fromReference( - reference, - ); + Headers$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -8573,10 +9784,9 @@ class Headers$Companion extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Headers$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Headers$Companion.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okhttp3/Headers$Companion'); @@ -8588,26 +9798,33 @@ class Headers$Companion extends jni$_.JObject { r'([Ljava/lang/String;)Lokhttp3/Headers;', ); - static final _of = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _of = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.Headers of(java.lang.String[] strings)` /// The returned object must be released after use, by calling the [release] method. - Headers of( - jni$_.JArray strings, - ) { + Headers of(jni$_.JArray strings) { final _$strings = strings.reference; return _of( - reference.pointer, _id_of as jni$_.JMethodIDPtr, _$strings.pointer) - .object(const $Headers$Type()); + reference.pointer, + _id_of as jni$_.JMethodIDPtr, + _$strings.pointer, + ).object(const $Headers$Type()); } static final _id_of$1 = _class.instanceMethodId( @@ -8615,53 +9832,69 @@ class Headers$Companion extends jni$_.JObject { r'(Ljava/util/Map;)Lokhttp3/Headers;', ); - static final _of$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _of$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$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.Headers of(java.util.Map map)` /// The returned object must be released after use, by calling the [release] method. - Headers of$1( - jni$_.JMap map, - ) { + Headers of$1(jni$_.JMap map) { final _$map = map.reference; return _of$1( - reference.pointer, _id_of$1 as jni$_.JMethodIDPtr, _$map.pointer) - .object(const $Headers$Type()); + reference.pointer, + _id_of$1 as jni$_.JMethodIDPtr, + _$map.pointer, + ).object(const $Headers$Type()); } static final _id_new$ = _class.constructorId( r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` /// The returned object must be released after use, by calling the [release] method. - factory Headers$Companion( - jni$_.JObject? defaultConstructorMarker, - ) { + factory Headers$Companion(jni$_.JObject? defaultConstructorMarker) { final _$defaultConstructorMarker = defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return Headers$Companion.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$defaultConstructorMarker.pointer) - .reference); + return Headers$Companion.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$defaultConstructorMarker.pointer, + ).reference, + ); } } @@ -8677,11 +9910,7 @@ final class $Headers$Companion$NullableType @jni$_.internal @core$_.override Headers$Companion? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : Headers$Companion.fromReference( - reference, - ); + reference.isNull ? null : Headers$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -8715,9 +9944,7 @@ final class $Headers$Companion$Type extends jni$_.JObjType { @jni$_.internal @core$_.override Headers$Companion fromReference(jni$_.JReference reference) => - Headers$Companion.fromReference( - reference, - ); + Headers$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -8748,10 +9975,9 @@ class Headers extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Headers.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Headers.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okhttp3/Headers'); @@ -8773,26 +9999,33 @@ class Headers extends jni$_.JObject { r'(Ljava/lang/String;)Ljava/lang/String;', ); - static final _get = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _get = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final java.lang.String get(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? get( - jni$_.JString string, - ) { + jni$_.JString? get(jni$_.JString string) { final _$string = string.reference; return _get( - reference.pointer, _id_get as jni$_.JMethodIDPtr, _$string.pointer) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_get as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const jni$_.JStringNullableType()); } static final _id_getDate = _class.instanceMethodId( @@ -8800,26 +10033,33 @@ class Headers extends jni$_.JObject { r'(Ljava/lang/String;)Ljava/util/Date;', ); - static final _getDate = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _getDate = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final java.util.Date getDate(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getDate( - jni$_.JString string, - ) { + jni$_.JObject? getDate(jni$_.JString string) { final _$string = string.reference; - return _getDate(reference.pointer, _id_getDate as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const jni$_.JObjectNullableType()); + return _getDate( + reference.pointer, + _id_getDate as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const jni$_.JObjectNullableType()); } static final _id_getInstant = _class.instanceMethodId( @@ -8827,44 +10067,52 @@ class Headers extends jni$_.JObject { r'(Ljava/lang/String;)Ljava/time/Instant;', ); - static final _getInstant = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _getInstant = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final java.time.Instant getInstant(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getInstant( - jni$_.JString string, - ) { + jni$_.JObject? getInstant(jni$_.JString string) { final _$string = string.reference; - return _getInstant(reference.pointer, _id_getInstant as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const jni$_.JObjectNullableType()); + return _getInstant( + reference.pointer, + _id_getInstant as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const jni$_.JObjectNullableType()); } - static final _id_size = _class.instanceMethodId( - r'size', - r'()I', - ); + static final _id_size = _class.instanceMethodId(r'size', r'()I'); - static final _size = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _size = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final int size()` int size() { @@ -8876,23 +10124,32 @@ class Headers extends jni$_.JObject { r'(I)Ljava/lang/String;', ); - static final _name = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _name = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public final java.lang.String name(int i)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString name( - int i, - ) { - return _name(reference.pointer, _id_name as jni$_.JMethodIDPtr, i) - .object(const jni$_.JStringType()); + jni$_.JString name(int i) { + return _name( + reference.pointer, + _id_name as jni$_.JMethodIDPtr, + i, + ).object(const jni$_.JStringType()); } static final _id_value = _class.instanceMethodId( @@ -8900,23 +10157,32 @@ class Headers extends jni$_.JObject { r'(I)Ljava/lang/String;', ); - static final _value = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _value = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public final java.lang.String value(int i)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString value( - int i, - ) { - return _value(reference.pointer, _id_value as jni$_.JMethodIDPtr, i) - .object(const jni$_.JStringType()); + jni$_.JString value(int i) { + return _value( + reference.pointer, + _id_value as jni$_.JMethodIDPtr, + i, + ).object(const jni$_.JStringType()); } static final _id_names = _class.instanceMethodId( @@ -8924,24 +10190,31 @@ class Headers extends jni$_.JObject { r'()Ljava/util/Set;', ); - static final _names = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _names = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.util.Set names()` /// The returned object must be released after use, by calling the [release] method. jni$_.JSet names() { - return _names(reference.pointer, _id_names as jni$_.JMethodIDPtr) - .object>( - const jni$_.JSetType(jni$_.JStringType())); + return _names( + reference.pointer, + _id_names as jni$_.JMethodIDPtr, + ).object>( + const jni$_.JSetType(jni$_.JStringType()), + ); } static final _id_values = _class.instanceMethodId( @@ -8949,50 +10222,61 @@ class Headers extends jni$_.JObject { r'(Ljava/lang/String;)Ljava/util/List;', ); - static final _values = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _values = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final java.util.List values(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JList values( - jni$_.JString string, - ) { + jni$_.JList values(jni$_.JString string) { final _$string = string.reference; - return _values(reference.pointer, _id_values as jni$_.JMethodIDPtr, - _$string.pointer) - .object>( - const jni$_.JListType(jni$_.JStringType())); + return _values( + reference.pointer, + _id_values as jni$_.JMethodIDPtr, + _$string.pointer, + ).object>( + const jni$_.JListType(jni$_.JStringType()), + ); } - static final _id_byteCount = _class.instanceMethodId( - r'byteCount', - r'()J', - ); + static final _id_byteCount = _class.instanceMethodId(r'byteCount', r'()J'); - static final _byteCount = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _byteCount = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final long byteCount()` int byteCount() { - return _byteCount(reference.pointer, _id_byteCount as jni$_.JMethodIDPtr) - .long; + return _byteCount( + reference.pointer, + _id_byteCount as jni$_.JMethodIDPtr, + ).long; } static final _id_iterator = _class.instanceMethodId( @@ -9000,24 +10284,31 @@ class Headers extends jni$_.JObject { r'()Ljava/util/Iterator;', ); - static final _iterator = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _iterator = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.util.Iterator iterator()` /// The returned object must be released after use, by calling the [release] method. jni$_.JIterator iterator() { - return _iterator(reference.pointer, _id_iterator as jni$_.JMethodIDPtr) - .object>( - const jni$_.JIteratorType(jni$_.JObjectType())); + return _iterator( + reference.pointer, + _id_iterator as jni$_.JMethodIDPtr, + ).object>( + const jni$_.JIteratorType(jni$_.JObjectType()), + ); } static final _id_newBuilder = _class.instanceMethodId( @@ -9025,23 +10316,29 @@ class Headers extends jni$_.JObject { r'()Lokhttp3/Headers$Builder;', ); - static final _newBuilder = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _newBuilder = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okhttp3.Headers$Builder newBuilder()` /// The returned object must be released after use, by calling the [release] method. Headers$Builder newBuilder() { - return _newBuilder(reference.pointer, _id_newBuilder as jni$_.JMethodIDPtr) - .object(const $Headers$Builder$Type()); + return _newBuilder( + reference.pointer, + _id_newBuilder as jni$_.JMethodIDPtr, + ).object(const $Headers$Builder$Type()); } static final _id_equals = _class.instanceMethodId( @@ -9049,48 +10346,58 @@ class Headers extends jni$_.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( - jni$_.JObject? object, - ) { + bool equals(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; + return _equals( + reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + _$object.pointer, + ).boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); + static final _id_hashCode$1 = _class.instanceMethodId(r'hashCode', r'()I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + 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) - .integer; + return _hashCode$1( + reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + ).integer; } static final _id_toString$1 = _class.instanceMethodId( @@ -9098,23 +10405,29 @@ class Headers extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + 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()); + return _toString$1( + reference.pointer, + _id_toString$1 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringType()); } static final _id_toMultimap = _class.instanceMethodId( @@ -9122,26 +10435,34 @@ class Headers extends jni$_.JObject { r'()Ljava/util/Map;', ); - static final _toMultimap = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toMultimap = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.util.Map toMultimap()` /// The returned object must be released after use, by calling the [release] method. jni$_.JMap> toMultimap() { - return _toMultimap(reference.pointer, _id_toMultimap as jni$_.JMethodIDPtr) - .object>>( - const jni$_.JMapType>( - jni$_.JStringType(), - jni$_.JListType(jni$_.JStringType()))); + return _toMultimap( + reference.pointer, + _id_toMultimap as jni$_.JMethodIDPtr, + ).object>>( + const jni$_.JMapType>( + jni$_.JStringType(), + jni$_.JListType(jni$_.JStringType()), + ), + ); } static final _id_of = _class.staticMethodId( @@ -9149,26 +10470,33 @@ class Headers extends jni$_.JObject { r'([Ljava/lang/String;)Lokhttp3/Headers;', ); - static final _of = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _of = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public final okhttp3.Headers of(java.lang.String[] strings)` /// The returned object must be released after use, by calling the [release] method. - static Headers of( - jni$_.JArray strings, - ) { + static Headers of(jni$_.JArray strings) { final _$strings = strings.reference; - return _of(_class.reference.pointer, _id_of as jni$_.JMethodIDPtr, - _$strings.pointer) - .object(const $Headers$Type()); + return _of( + _class.reference.pointer, + _id_of as jni$_.JMethodIDPtr, + _$strings.pointer, + ).object(const $Headers$Type()); } static final _id_of$1 = _class.staticMethodId( @@ -9176,48 +10504,59 @@ class Headers extends jni$_.JObject { r'(Ljava/util/Map;)Lokhttp3/Headers;', ); - static final _of$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _of$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public final okhttp3.Headers of(java.util.Map map)` /// The returned object must be released after use, by calling the [release] method. - static Headers of$1( - jni$_.JMap map, - ) { + static Headers of$1(jni$_.JMap map) { final _$map = map.reference; - return _of$1(_class.reference.pointer, _id_of$1 as jni$_.JMethodIDPtr, - _$map.pointer) - .object(const $Headers$Type()); + return _of$1( + _class.reference.pointer, + _id_of$1 as jni$_.JMethodIDPtr, + _$map.pointer, + ).object(const $Headers$Type()); } static final _id_new$ = _class.constructorId( r'([Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `synthetic public void (java.lang.String[] strings, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` /// The returned object must be released after use, by calling the [release] method. @@ -9228,12 +10567,14 @@ class Headers extends jni$_.JObject { final _$strings = strings?.reference ?? jni$_.jNullReference; final _$defaultConstructorMarker = defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return Headers.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$strings.pointer, - _$defaultConstructorMarker.pointer) - .reference); + return Headers.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$strings.pointer, + _$defaultConstructorMarker.pointer, + ).reference, + ); } } @@ -9247,11 +10588,8 @@ final class $Headers$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - Headers? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Headers.fromReference( - reference, - ); + Headers? fromReference(jni$_.JReference reference) => + reference.isNull ? null : Headers.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -9284,9 +10622,8 @@ final class $Headers$Type extends jni$_.JObjType { @jni$_.internal @core$_.override - Headers fromReference(jni$_.JReference reference) => Headers.fromReference( - reference, - ); + Headers fromReference(jni$_.JReference reference) => + Headers.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -9315,10 +10652,9 @@ class Callback extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Callback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Callback.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okhttp3/Callback'); @@ -9330,33 +10666,37 @@ class Callback extends jni$_.JObject { r'(Lokhttp3/Call;Ljava/io/IOException;)V', ); - static final _onFailure = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onFailure = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void onFailure(okhttp3.Call call, java.io.IOException iOException)` - void onFailure( - Call call, - jni$_.JObject iOException, - ) { + void onFailure(Call call, jni$_.JObject iOException) { final _$call = call.reference; final _$iOException = iOException.reference; - _onFailure(reference.pointer, _id_onFailure as jni$_.JMethodIDPtr, - _$call.pointer, _$iOException.pointer) - .check(); + _onFailure( + reference.pointer, + _id_onFailure as jni$_.JMethodIDPtr, + _$call.pointer, + _$iOException.pointer, + ).check(); } static final _id_onResponse = _class.instanceMethodId( @@ -9364,33 +10704,37 @@ class Callback extends jni$_.JObject { r'(Lokhttp3/Call;Lokhttp3/Response;)V', ); - static final _onResponse = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onResponse = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void onResponse(okhttp3.Call call, okhttp3.Response response)` - void onResponse( - Call call, - Response response, - ) { + void onResponse(Call call, Response response) { final _$call = call.reference; final _$response = response.reference; - _onResponse(reference.pointer, _id_onResponse as jni$_.JMethodIDPtr, - _$call.pointer, _$response.pointer) - .check(); + _onResponse( + reference.pointer, + _id_onResponse as jni$_.JMethodIDPtr, + _$call.pointer, + _$response.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -9402,19 +10746,16 @@ class Callback extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address), ); } static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -9443,10 +10784,7 @@ class Callback extends jni$_.JObject { return jni$_.nullptr; } - static void implementIn( - jni$_.JImplementer implementer, - $Callback $impl, - ) { + static void implementIn(jni$_.JImplementer implementer, $Callback $impl) { late final jni$_.RawReceivePort $p; $p = jni$_.RawReceivePort(($m) { if ($m == null) { @@ -9458,29 +10796,20 @@ class Callback extends jni$_.JObject { final $r = _$invokeMethod($p.sendPort.nativePort, $i); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); - implementer.add( - r'okhttp3.Callback', - $p, - _$invokePointer, - [ - if ($impl.onFailure$async) - r'onFailure(Lokhttp3/Call;Ljava/io/IOException;)V', - if ($impl.onResponse$async) - r'onResponse(Lokhttp3/Call;Lokhttp3/Response;)V', - ], - ); + implementer.add(r'okhttp3.Callback', $p, _$invokePointer, [ + if ($impl.onFailure$async) + r'onFailure(Lokhttp3/Call;Ljava/io/IOException;)V', + if ($impl.onResponse$async) + r'onResponse(Lokhttp3/Call;Lokhttp3/Response;)V', + ]); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } - factory Callback.implement( - $Callback $impl, - ) { + factory Callback.implement($Callback $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return Callback.fromReference( - $i.implementReference(), - ); + return Callback.fromReference($i.implementReference()); } } @@ -9504,8 +10833,8 @@ final class _$Callback with $Callback { this.onFailure$async = false, required void Function(Call call, Response response) onResponse, this.onResponse$async = false, - }) : _onFailure = onFailure, - _onResponse = onResponse; + }) : _onFailure = onFailure, + _onResponse = onResponse; final void Function(Call call, jni$_.JObject iOException) _onFailure; final bool onFailure$async; @@ -9531,11 +10860,8 @@ final class $Callback$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - Callback? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Callback.fromReference( - reference, - ); + Callback? fromReference(jni$_.JReference reference) => + reference.isNull ? null : Callback.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -9568,9 +10894,8 @@ final class $Callback$Type extends jni$_.JObjType { @jni$_.internal @core$_.override - Callback fromReference(jni$_.JReference reference) => Callback.fromReference( - reference, - ); + Callback fromReference(jni$_.JReference reference) => + Callback.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -9599,10 +10924,9 @@ class ConnectionPool extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - ConnectionPool.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ConnectionPool.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okhttp3/ConnectionPool'); @@ -9613,82 +10937,105 @@ class ConnectionPool extends jni$_.JObject { r'(Lokhttp3/internal/connection/RealConnectionPool;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public void (okhttp3.internal.connection.RealConnectionPool realConnectionPool)` + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); + + /// from: `public void (okhttp3.internal.connection.RealConnectionPool realConnectionPool)` /// The returned object must be released after use, by calling the [release] method. - factory ConnectionPool( - jni$_.JObject realConnectionPool, - ) { + factory ConnectionPool(jni$_.JObject realConnectionPool) { final _$realConnectionPool = realConnectionPool.reference; - return ConnectionPool.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$realConnectionPool.pointer) - .reference); + return ConnectionPool.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$realConnectionPool.pointer, + ).reference, + ); } static final _id_new$1 = _class.constructorId( r'(IJLjava/util/concurrent/TimeUnit;)V', ); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Int32, - jni$_.Int64, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, int, jni$_.Pointer)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Int32, jni$_.Int64, jni$_.Pointer) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + int, + jni$_.Pointer, + ) + >(); /// from: `public void (int i, long j, java.util.concurrent.TimeUnit timeUnit)` /// The returned object must be released after use, by calling the [release] method. - factory ConnectionPool.new$1( - int i, - int j, - TimeUnit timeUnit, - ) { + factory ConnectionPool.new$1(int i, int j, TimeUnit timeUnit) { final _$timeUnit = timeUnit.reference; - return ConnectionPool.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, i, j, _$timeUnit.pointer) - .reference); + return ConnectionPool.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + i, + j, + _$timeUnit.pointer, + ).reference, + ); } - static final _id_new$2 = _class.constructorId( - r'()V', - ); + static final _id_new$2 = _class.constructorId(r'()V'); - static final _new$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory ConnectionPool.new$2() { return ConnectionPool.fromReference( - _new$2(_class.reference.pointer, _id_new$2 as jni$_.JMethodIDPtr) - .reference); + _new$2( + _class.reference.pointer, + _id_new$2 as jni$_.JMethodIDPtr, + ).reference, + ); } static final _id_idleConnectionCount = _class.instanceMethodId( @@ -9696,23 +11043,28 @@ class ConnectionPool extends jni$_.JObject { r'()I', ); - static final _idleConnectionCount = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _idleConnectionCount = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final int idleConnectionCount()` int idleConnectionCount() { return _idleConnectionCount( - reference.pointer, _id_idleConnectionCount as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_idleConnectionCount as jni$_.JMethodIDPtr, + ).integer; } static final _id_connectionCount = _class.instanceMethodId( @@ -9720,41 +11072,47 @@ class ConnectionPool extends jni$_.JObject { r'()I', ); - static final _connectionCount = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _connectionCount = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final int connectionCount()` int connectionCount() { return _connectionCount( - reference.pointer, _id_connectionCount as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_connectionCount as jni$_.JMethodIDPtr, + ).integer; } - static final _id_evictAll = _class.instanceMethodId( - r'evictAll', - r'()V', - ); + static final _id_evictAll = _class.instanceMethodId(r'evictAll', r'()V'); - static final _evictAll = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _evictAll = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final void evictAll()` void evictAll() { @@ -9773,11 +11131,8 @@ final class $ConnectionPool$NullableType @jni$_.internal @core$_.override - ConnectionPool? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : ConnectionPool.fromReference( - reference, - ); + ConnectionPool? fromReference(jni$_.JReference reference) => + reference.isNull ? null : ConnectionPool.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -9811,9 +11166,7 @@ final class $ConnectionPool$Type extends jni$_.JObjType { @jni$_.internal @core$_.override ConnectionPool fromReference(jni$_.JReference reference) => - ConnectionPool.fromReference( - reference, - ); + ConnectionPool.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -9844,38 +11197,39 @@ class Dispatcher extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Dispatcher.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Dispatcher.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okhttp3/Dispatcher'); /// The type which includes information such as the signature of this class. static const nullableType = $Dispatcher$NullableType(); static const type = $Dispatcher$Type(); - static final _id_new$ = _class.constructorId( - r'()V', - ); + static final _id_new$ = _class.constructorId(r'()V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory Dispatcher() { return Dispatcher.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); } static final _id_getMaxRequests = _class.instanceMethodId( @@ -9883,23 +11237,28 @@ class Dispatcher extends jni$_.JObject { r'()I', ); - static final _getMaxRequests = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getMaxRequests = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final int getMaxRequests()` int getMaxRequests() { return _getMaxRequests( - reference.pointer, _id_getMaxRequests as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_getMaxRequests as jni$_.JMethodIDPtr, + ).integer; } static final _id_setMaxRequests = _class.instanceMethodId( @@ -9907,23 +11266,31 @@ class Dispatcher extends jni$_.JObject { r'(I)V', ); - static final _setMaxRequests = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setMaxRequests = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public final void setMaxRequests(int i)` - void setMaxRequests( - int i, - ) { + void setMaxRequests(int i) { _setMaxRequests( - reference.pointer, _id_setMaxRequests as jni$_.JMethodIDPtr, i) - .check(); + reference.pointer, + _id_setMaxRequests as jni$_.JMethodIDPtr, + i, + ).check(); } static final _id_getMaxRequestsPerHost = _class.instanceMethodId( @@ -9931,23 +11298,28 @@ class Dispatcher extends jni$_.JObject { r'()I', ); - static final _getMaxRequestsPerHost = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getMaxRequestsPerHost = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final int getMaxRequestsPerHost()` int getMaxRequestsPerHost() { return _getMaxRequestsPerHost( - reference.pointer, _id_getMaxRequestsPerHost as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_getMaxRequestsPerHost as jni$_.JMethodIDPtr, + ).integer; } static final _id_setMaxRequestsPerHost = _class.instanceMethodId( @@ -9955,23 +11327,31 @@ class Dispatcher extends jni$_.JObject { r'(I)V', ); - static final _setMaxRequestsPerHost = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setMaxRequestsPerHost = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public final void setMaxRequestsPerHost(int i)` - void setMaxRequestsPerHost( - int i, - ) { - _setMaxRequestsPerHost(reference.pointer, - _id_setMaxRequestsPerHost as jni$_.JMethodIDPtr, i) - .check(); + void setMaxRequestsPerHost(int i) { + _setMaxRequestsPerHost( + reference.pointer, + _id_setMaxRequestsPerHost as jni$_.JMethodIDPtr, + i, + ).check(); } static final _id_getIdleCallback = _class.instanceMethodId( @@ -9979,24 +11359,29 @@ class Dispatcher extends jni$_.JObject { r'()Ljava/lang/Runnable;', ); - static final _getIdleCallback = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getIdleCallback = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.lang.Runnable getIdleCallback()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getIdleCallback() { return _getIdleCallback( - reference.pointer, _id_getIdleCallback as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getIdleCallback as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_setIdleCallback = _class.instanceMethodId( @@ -10004,25 +11389,32 @@ class Dispatcher extends jni$_.JObject { r'(Ljava/lang/Runnable;)V', ); - static final _setIdleCallback = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _setIdleCallback = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final void setIdleCallback(java.lang.Runnable runnable)` - void setIdleCallback( - jni$_.JObject? runnable, - ) { + void setIdleCallback(jni$_.JObject? runnable) { final _$runnable = runnable?.reference ?? jni$_.jNullReference; - _setIdleCallback(reference.pointer, - _id_setIdleCallback as jni$_.JMethodIDPtr, _$runnable.pointer) - .check(); + _setIdleCallback( + reference.pointer, + _id_setIdleCallback as jni$_.JMethodIDPtr, + _$runnable.pointer, + ).check(); } static final _id_executorService = _class.instanceMethodId( @@ -10030,68 +11422,83 @@ class Dispatcher extends jni$_.JObject { r'()Ljava/util/concurrent/ExecutorService;', ); - static final _executorService = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _executorService = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.util.concurrent.ExecutorService executorService()` /// The returned object must be released after use, by calling the [release] method. ExecutorService executorService() { return _executorService( - reference.pointer, _id_executorService as jni$_.JMethodIDPtr) - .object(const $ExecutorService$Type()); + reference.pointer, + _id_executorService as jni$_.JMethodIDPtr, + ).object(const $ExecutorService$Type()); } static final _id_new$1 = _class.constructorId( r'(Ljava/util/concurrent/ExecutorService;)V', ); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void (java.util.concurrent.ExecutorService executorService)` /// The returned object must be released after use, by calling the [release] method. - factory Dispatcher.new$1( - ExecutorService executorService, - ) { + factory Dispatcher.new$1(ExecutorService executorService) { final _$executorService = executorService.reference; - return Dispatcher.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, _$executorService.pointer) - .reference); + return Dispatcher.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$executorService.pointer, + ).reference, + ); } - static final _id_cancelAll = _class.instanceMethodId( - r'cancelAll', - r'()V', - ); + static final _id_cancelAll = _class.instanceMethodId(r'cancelAll', r'()V'); - static final _cancelAll = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _cancelAll = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final void cancelAll()` void cancelAll() { @@ -10103,24 +11510,29 @@ class Dispatcher extends jni$_.JObject { r'()Ljava/util/List;', ); - static final _queuedCalls = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _queuedCalls = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.util.List queuedCalls()` /// The returned object must be released after use, by calling the [release] method. jni$_.JList queuedCalls() { return _queuedCalls( - reference.pointer, _id_queuedCalls as jni$_.JMethodIDPtr) - .object>(const jni$_.JListType($Call$Type())); + reference.pointer, + _id_queuedCalls as jni$_.JMethodIDPtr, + ).object>(const jni$_.JListType($Call$Type())); } static final _id_runningCalls = _class.instanceMethodId( @@ -10128,24 +11540,29 @@ class Dispatcher extends jni$_.JObject { r'()Ljava/util/List;', ); - static final _runningCalls = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _runningCalls = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.util.List runningCalls()` /// The returned object must be released after use, by calling the [release] method. jni$_.JList runningCalls() { return _runningCalls( - reference.pointer, _id_runningCalls as jni$_.JMethodIDPtr) - .object>(const jni$_.JListType($Call$Type())); + reference.pointer, + _id_runningCalls as jni$_.JMethodIDPtr, + ).object>(const jni$_.JListType($Call$Type())); } static final _id_queuedCallsCount = _class.instanceMethodId( @@ -10153,23 +11570,28 @@ class Dispatcher extends jni$_.JObject { r'()I', ); - static final _queuedCallsCount = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _queuedCallsCount = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final int queuedCallsCount()` int queuedCallsCount() { return _queuedCallsCount( - reference.pointer, _id_queuedCallsCount as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_queuedCallsCount as jni$_.JMethodIDPtr, + ).integer; } static final _id_runningCallsCount = _class.instanceMethodId( @@ -10177,23 +11599,28 @@ class Dispatcher extends jni$_.JObject { r'()I', ); - static final _runningCallsCount = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _runningCallsCount = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final int runningCallsCount()` int runningCallsCount() { return _runningCallsCount( - reference.pointer, _id_runningCallsCount as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_runningCallsCount as jni$_.JMethodIDPtr, + ).integer; } } @@ -10207,11 +11634,8 @@ final class $Dispatcher$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - Dispatcher? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Dispatcher.fromReference( - reference, - ); + Dispatcher? fromReference(jni$_.JReference reference) => + reference.isNull ? null : Dispatcher.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -10245,9 +11669,7 @@ final class $Dispatcher$Type extends jni$_.JObjType { @jni$_.internal @core$_.override Dispatcher fromReference(jni$_.JReference reference) => - Dispatcher.fromReference( - reference, - ); + Dispatcher.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -10277,33 +11699,34 @@ class ExecutorService extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - ExecutorService.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ExecutorService.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'java/util/concurrent/ExecutorService'); + static final _class = jni$_.JClass.forName( + r'java/util/concurrent/ExecutorService', + ); /// The type which includes information such as the signature of this class. static const nullableType = $ExecutorService$NullableType(); static const type = $ExecutorService$Type(); - static final _id_shutdown = _class.instanceMethodId( - r'shutdown', - r'()V', - ); + static final _id_shutdown = _class.instanceMethodId(r'shutdown', r'()V'); - static final _shutdown = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _shutdown = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void shutdown()` void shutdown() { @@ -10315,49 +11738,59 @@ class ExecutorService extends jni$_.JObject { r'()Ljava/util/List;', ); - static final _shutdownNow = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _shutdownNow = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.util.List shutdownNow()` /// The returned object must be released after use, by calling the [release] method. jni$_.JList? shutdownNow() { return _shutdownNow( - reference.pointer, _id_shutdownNow as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - jni$_.JObjectNullableType())); + reference.pointer, + _id_shutdownNow as jni$_.JMethodIDPtr, + ).object?>( + const jni$_.JListNullableType( + jni$_.JObjectNullableType(), + ), + ); } - static final _id_isShutdown = _class.instanceMethodId( - r'isShutdown', - r'()Z', - ); + static final _id_isShutdown = _class.instanceMethodId(r'isShutdown', r'()Z'); - static final _isShutdown = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _isShutdown = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract boolean isShutdown()` bool isShutdown() { - return _isShutdown(reference.pointer, _id_isShutdown as jni$_.JMethodIDPtr) - .boolean; + return _isShutdown( + reference.pointer, + _id_isShutdown as jni$_.JMethodIDPtr, + ).boolean; } static final _id_isTerminated = _class.instanceMethodId( @@ -10365,23 +11798,28 @@ class ExecutorService extends jni$_.JObject { r'()Z', ); - static final _isTerminated = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _isTerminated = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract boolean isTerminated()` bool isTerminated() { return _isTerminated( - reference.pointer, _id_isTerminated as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_isTerminated as jni$_.JMethodIDPtr, + ).boolean; } static final _id_awaitTermination = _class.instanceMethodId( @@ -10389,27 +11827,34 @@ class ExecutorService extends jni$_.JObject { r'(JLjava/util/concurrent/TimeUnit;)Z', ); - static final _awaitTermination = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Int64, jni$_.Pointer)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + static final _awaitTermination = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64, jni$_.Pointer)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + jni$_.Pointer, + ) + >(); /// from: `public abstract boolean awaitTermination(long j, java.util.concurrent.TimeUnit timeUnit)` - bool awaitTermination( - int j, - TimeUnit? timeUnit, - ) { + bool awaitTermination(int j, TimeUnit? timeUnit) { final _$timeUnit = timeUnit?.reference ?? jni$_.jNullReference; - return _awaitTermination(reference.pointer, - _id_awaitTermination as jni$_.JMethodIDPtr, j, _$timeUnit.pointer) - .boolean; + return _awaitTermination( + reference.pointer, + _id_awaitTermination as jni$_.JMethodIDPtr, + j, + _$timeUnit.pointer, + ).boolean; } static final _id_submit = _class.instanceMethodId( @@ -10417,16 +11862,23 @@ class ExecutorService extends jni$_.JObject { r'(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;', ); - static final _submit = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _submit = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract java.util.concurrent.Future submit(java.util.concurrent.Callable callable)` /// The returned object must be released after use, by calling the [release] method. @@ -10435,9 +11887,11 @@ class ExecutorService extends jni$_.JObject { required jni$_.JObjType<$T> T, }) { final _$callable = callable?.reference ?? jni$_.jNullReference; - return _submit(reference.pointer, _id_submit as jni$_.JMethodIDPtr, - _$callable.pointer) - .object(const jni$_.JObjectNullableType()); + return _submit( + reference.pointer, + _id_submit as jni$_.JMethodIDPtr, + _$callable.pointer, + ).object(const jni$_.JObjectNullableType()); } static final _id_submit$1 = _class.instanceMethodId( @@ -10445,22 +11899,26 @@ class ExecutorService extends jni$_.JObject { r'(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Future;', ); - static final _submit$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _submit$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract java.util.concurrent.Future submit(java.lang.Runnable runnable, T object)` /// The returned object must be released after use, by calling the [release] method. @@ -10471,9 +11929,12 @@ class ExecutorService extends jni$_.JObject { }) { final _$runnable = runnable?.reference ?? jni$_.jNullReference; final _$object = object?.reference ?? jni$_.jNullReference; - return _submit$1(reference.pointer, _id_submit$1 as jni$_.JMethodIDPtr, - _$runnable.pointer, _$object.pointer) - .object(const jni$_.JObjectNullableType()); + return _submit$1( + reference.pointer, + _id_submit$1 as jni$_.JMethodIDPtr, + _$runnable.pointer, + _$object.pointer, + ).object(const jni$_.JObjectNullableType()); } static final _id_submit$2 = _class.instanceMethodId( @@ -10481,26 +11942,33 @@ class ExecutorService extends jni$_.JObject { r'(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;', ); - static final _submit$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _submit$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract java.util.concurrent.Future submit(java.lang.Runnable runnable)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? submit$2( - jni$_.JObject? runnable, - ) { + jni$_.JObject? submit$2(jni$_.JObject? runnable) { final _$runnable = runnable?.reference ?? jni$_.jNullReference; - return _submit$2(reference.pointer, _id_submit$2 as jni$_.JMethodIDPtr, - _$runnable.pointer) - .object(const jni$_.JObjectNullableType()); + return _submit$2( + reference.pointer, + _id_submit$2 as jni$_.JMethodIDPtr, + _$runnable.pointer, + ).object(const jni$_.JObjectNullableType()); } static final _id_invokeAll = _class.instanceMethodId( @@ -10508,16 +11976,23 @@ class ExecutorService extends jni$_.JObject { r'(Ljava/util/Collection;)Ljava/util/List;', ); - static final _invokeAll = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _invokeAll = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract java.util.List invokeAll(java.util.Collection collection)` /// The returned object must be released after use, by calling the [release] method. @@ -10526,11 +12001,15 @@ class ExecutorService extends jni$_.JObject { required jni$_.JObjType<$T> T, }) { final _$collection = collection?.reference ?? jni$_.jNullReference; - return _invokeAll(reference.pointer, _id_invokeAll as jni$_.JMethodIDPtr, - _$collection.pointer) - .object?>( - const jni$_.JListNullableType( - jni$_.JObjectNullableType())); + return _invokeAll( + reference.pointer, + _id_invokeAll as jni$_.JMethodIDPtr, + _$collection.pointer, + ).object?>( + const jni$_.JListNullableType( + jni$_.JObjectNullableType(), + ), + ); } static final _id_invokeAll$1 = _class.instanceMethodId( @@ -10538,24 +12017,31 @@ class ExecutorService extends jni$_.JObject { r'(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/util/List;', ); - static final _invokeAll$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _invokeAll$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int64, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int64, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract java.util.List invokeAll(java.util.Collection collection, long j, java.util.concurrent.TimeUnit timeUnit)` /// The returned object must be released after use, by calling the [release] method. @@ -10568,14 +12054,16 @@ class ExecutorService extends jni$_.JObject { final _$collection = collection?.reference ?? jni$_.jNullReference; final _$timeUnit = timeUnit?.reference ?? jni$_.jNullReference; return _invokeAll$1( - reference.pointer, - _id_invokeAll$1 as jni$_.JMethodIDPtr, - _$collection.pointer, - j, - _$timeUnit.pointer) - .object?>( - const jni$_.JListNullableType( - jni$_.JObjectNullableType())); + reference.pointer, + _id_invokeAll$1 as jni$_.JMethodIDPtr, + _$collection.pointer, + j, + _$timeUnit.pointer, + ).object?>( + const jni$_.JListNullableType( + jni$_.JObjectNullableType(), + ), + ); } static final _id_invokeAny = _class.instanceMethodId( @@ -10583,16 +12071,23 @@ class ExecutorService extends jni$_.JObject { r'(Ljava/util/Collection;)Ljava/lang/Object;', ); - static final _invokeAny = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _invokeAny = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract T invokeAny(java.util.Collection collection)` /// The returned object must be released after use, by calling the [release] method. @@ -10601,9 +12096,11 @@ class ExecutorService extends jni$_.JObject { required jni$_.JObjType<$T> T, }) { final _$collection = collection?.reference ?? jni$_.jNullReference; - return _invokeAny(reference.pointer, _id_invokeAny as jni$_.JMethodIDPtr, - _$collection.pointer) - .object<$T?>(T.nullableType); + return _invokeAny( + reference.pointer, + _id_invokeAny as jni$_.JMethodIDPtr, + _$collection.pointer, + ).object<$T?>(T.nullableType); } static final _id_invokeAny$1 = _class.instanceMethodId( @@ -10611,24 +12108,31 @@ class ExecutorService extends jni$_.JObject { r'(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;', ); - static final _invokeAny$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _invokeAny$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int64, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int64, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract T invokeAny(java.util.Collection collection, long j, java.util.concurrent.TimeUnit timeUnit)` /// The returned object must be released after use, by calling the [release] method. @@ -10641,12 +12145,12 @@ class ExecutorService extends jni$_.JObject { final _$collection = collection?.reference ?? jni$_.jNullReference; final _$timeUnit = timeUnit?.reference ?? jni$_.jNullReference; return _invokeAny$1( - reference.pointer, - _id_invokeAny$1 as jni$_.JMethodIDPtr, - _$collection.pointer, - j, - _$timeUnit.pointer) - .object<$T?>(T.nullableType); + reference.pointer, + _id_invokeAny$1 as jni$_.JMethodIDPtr, + _$collection.pointer, + j, + _$timeUnit.pointer, + ).object<$T?>(T.nullableType); } /// Maps a specific port to the implemented interface. @@ -10658,19 +12162,16 @@ class ExecutorService extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address), ); } static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -10816,22 +12317,16 @@ class ExecutorService extends jni$_.JObject { r'java.util.concurrent.ExecutorService', $p, _$invokePointer, - [ - if ($impl.shutdown$async) r'shutdown()V', - ], + [if ($impl.shutdown$async) r'shutdown()V'], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } - factory ExecutorService.implement( - $ExecutorService $impl, - ) { + factory ExecutorService.implement($ExecutorService $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return ExecutorService.fromReference( - $i.implementReference(), - ); + return ExecutorService.fromReference($i.implementReference()); } } @@ -10845,18 +12340,26 @@ abstract base mixin class $ExecutorService { required bool Function(int j, TimeUnit? timeUnit) awaitTermination, required jni$_.JObject? Function(jni$_.JObject? callable) submit, required jni$_.JObject? Function( - jni$_.JObject? runnable, jni$_.JObject? object) - submit$1, + jni$_.JObject? runnable, + jni$_.JObject? object, + ) + submit$1, required jni$_.JObject? Function(jni$_.JObject? runnable) submit$2, required jni$_.JList? Function(jni$_.JObject? collection) - invokeAll, + invokeAll, required jni$_.JList? Function( - jni$_.JObject? collection, int j, TimeUnit? timeUnit) - invokeAll$1, + jni$_.JObject? collection, + int j, + TimeUnit? timeUnit, + ) + invokeAll$1, required jni$_.JObject? Function(jni$_.JObject? collection) invokeAny, required jni$_.JObject? Function( - jni$_.JObject? collection, int j, TimeUnit? timeUnit) - invokeAny$1, + jni$_.JObject? collection, + int j, + TimeUnit? timeUnit, + ) + invokeAny$1, }) = _$ExecutorService; void shutdown(); @@ -10870,10 +12373,16 @@ abstract base mixin class $ExecutorService { jni$_.JObject? submit$2(jni$_.JObject? runnable); jni$_.JList? invokeAll(jni$_.JObject? collection); jni$_.JList? invokeAll$1( - jni$_.JObject? collection, int j, TimeUnit? timeUnit); + jni$_.JObject? collection, + int j, + TimeUnit? timeUnit, + ); jni$_.JObject? invokeAny(jni$_.JObject? collection); jni$_.JObject? invokeAny$1( - jni$_.JObject? collection, int j, TimeUnit? timeUnit); + jni$_.JObject? collection, + int j, + TimeUnit? timeUnit, + ); } final class _$ExecutorService with $ExecutorService { @@ -10886,30 +12395,38 @@ final class _$ExecutorService with $ExecutorService { required bool Function(int j, TimeUnit? timeUnit) awaitTermination, required jni$_.JObject? Function(jni$_.JObject? callable) submit, required jni$_.JObject? Function( - jni$_.JObject? runnable, jni$_.JObject? object) - submit$1, + jni$_.JObject? runnable, + jni$_.JObject? object, + ) + submit$1, required jni$_.JObject? Function(jni$_.JObject? runnable) submit$2, required jni$_.JList? Function(jni$_.JObject? collection) - invokeAll, + invokeAll, required jni$_.JList? Function( - jni$_.JObject? collection, int j, TimeUnit? timeUnit) - invokeAll$1, + jni$_.JObject? collection, + int j, + TimeUnit? timeUnit, + ) + invokeAll$1, required jni$_.JObject? Function(jni$_.JObject? collection) invokeAny, required jni$_.JObject? Function( - jni$_.JObject? collection, int j, TimeUnit? timeUnit) - invokeAny$1, - }) : _shutdown = shutdown, - _shutdownNow = shutdownNow, - _isShutdown = isShutdown, - _isTerminated = isTerminated, - _awaitTermination = awaitTermination, - _submit = submit, - _submit$1 = submit$1, - _submit$2 = submit$2, - _invokeAll = invokeAll, - _invokeAll$1 = invokeAll$1, - _invokeAny = invokeAny, - _invokeAny$1 = invokeAny$1; + jni$_.JObject? collection, + int j, + TimeUnit? timeUnit, + ) + invokeAny$1, + }) : _shutdown = shutdown, + _shutdownNow = shutdownNow, + _isShutdown = isShutdown, + _isTerminated = isTerminated, + _awaitTermination = awaitTermination, + _submit = submit, + _submit$1 = submit$1, + _submit$2 = submit$2, + _invokeAll = invokeAll, + _invokeAll$1 = invokeAll$1, + _invokeAny = invokeAny, + _invokeAny$1 = invokeAny$1; final void Function() _shutdown; final bool shutdown$async; @@ -10919,17 +12436,25 @@ final class _$ExecutorService with $ExecutorService { final bool Function(int j, TimeUnit? timeUnit) _awaitTermination; final jni$_.JObject? Function(jni$_.JObject? callable) _submit; final jni$_.JObject? Function(jni$_.JObject? runnable, jni$_.JObject? object) - _submit$1; + _submit$1; final jni$_.JObject? Function(jni$_.JObject? runnable) _submit$2; final jni$_.JList? Function(jni$_.JObject? collection) - _invokeAll; + _invokeAll; final jni$_.JList? Function( - jni$_.JObject? collection, int j, TimeUnit? timeUnit) _invokeAll$1; + jni$_.JObject? collection, + int j, + TimeUnit? timeUnit, + ) + _invokeAll$1; final jni$_.JObject? Function(jni$_.JObject? collection) _invokeAny; final jni$_.JObject? Function( - jni$_.JObject? collection, int j, TimeUnit? timeUnit) _invokeAny$1; - - void shutdown() { + jni$_.JObject? collection, + int j, + TimeUnit? timeUnit, + ) + _invokeAny$1; + + void shutdown() { return _shutdown(); } @@ -10966,7 +12491,10 @@ final class _$ExecutorService with $ExecutorService { } jni$_.JList? invokeAll$1( - jni$_.JObject? collection, int j, TimeUnit? timeUnit) { + jni$_.JObject? collection, + int j, + TimeUnit? timeUnit, + ) { return _invokeAll$1(collection, j, timeUnit); } @@ -10975,7 +12503,10 @@ final class _$ExecutorService with $ExecutorService { } jni$_.JObject? invokeAny$1( - jni$_.JObject? collection, int j, TimeUnit? timeUnit) { + jni$_.JObject? collection, + int j, + TimeUnit? timeUnit, + ) { return _invokeAny$1(collection, j, timeUnit); } } @@ -10991,11 +12522,8 @@ final class $ExecutorService$NullableType @jni$_.internal @core$_.override - ExecutorService? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : ExecutorService.fromReference( - reference, - ); + ExecutorService? fromReference(jni$_.JReference reference) => + reference.isNull ? null : ExecutorService.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -11029,9 +12557,7 @@ final class $ExecutorService$Type extends jni$_.JObjType { @jni$_.internal @core$_.override ExecutorService fromReference(jni$_.JReference reference) => - ExecutorService.fromReference( - reference, - ); + ExecutorService.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -11062,10 +12588,9 @@ class Cache$Companion extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Cache$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Cache$Companion.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okhttp3/Cache$Companion'); @@ -11077,26 +12602,33 @@ class Cache$Companion extends jni$_.JObject { r'(Lokhttp3/HttpUrl;)Ljava/lang/String;', ); - static final _key = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _key = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final java.lang.String key(okhttp3.HttpUrl httpUrl)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString key( - jni$_.JObject httpUrl, - ) { + jni$_.JString key(jni$_.JObject httpUrl) { final _$httpUrl = httpUrl.reference; return _key( - reference.pointer, _id_key as jni$_.JMethodIDPtr, _$httpUrl.pointer) - .object(const jni$_.JStringType()); + reference.pointer, + _id_key as jni$_.JMethodIDPtr, + _$httpUrl.pointer, + ).object(const jni$_.JStringType()); } static final _id_varyMatches = _class.instanceMethodId( @@ -11104,41 +12636,44 @@ class Cache$Companion extends jni$_.JObject { r'(Lokhttp3/Response;Lokhttp3/Headers;Lokhttp3/Request;)Z', ); - static final _varyMatches = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _varyMatches = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final boolean varyMatches(okhttp3.Response response, okhttp3.Headers headers, okhttp3.Request request)` - bool varyMatches( - Response response, - Headers headers, - Request request, - ) { + bool varyMatches(Response response, Headers headers, Request request) { final _$response = response.reference; final _$headers = headers.reference; final _$request = request.reference; return _varyMatches( - reference.pointer, - _id_varyMatches as jni$_.JMethodIDPtr, - _$response.pointer, - _$headers.pointer, - _$request.pointer) - .boolean; + reference.pointer, + _id_varyMatches as jni$_.JMethodIDPtr, + _$response.pointer, + _$headers.pointer, + _$request.pointer, + ).boolean; } static final _id_hasVaryAll = _class.instanceMethodId( @@ -11146,25 +12681,32 @@ class Cache$Companion extends jni$_.JObject { r'(Lokhttp3/Response;)Z', ); - static final _hasVaryAll = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _hasVaryAll = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final boolean hasVaryAll(okhttp3.Response response)` - bool hasVaryAll( - Response response, - ) { + bool hasVaryAll(Response response) { final _$response = response.reference; - return _hasVaryAll(reference.pointer, _id_hasVaryAll as jni$_.JMethodIDPtr, - _$response.pointer) - .boolean; + return _hasVaryAll( + reference.pointer, + _id_hasVaryAll as jni$_.JMethodIDPtr, + _$response.pointer, + ).boolean; } static final _id_varyHeaders = _class.instanceMethodId( @@ -11172,53 +12714,69 @@ class Cache$Companion extends jni$_.JObject { r'(Lokhttp3/Response;)Lokhttp3/Headers;', ); - static final _varyHeaders = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _varyHeaders = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.Headers varyHeaders(okhttp3.Response response)` /// The returned object must be released after use, by calling the [release] method. - Headers varyHeaders( - Response response, - ) { + Headers varyHeaders(Response response) { final _$response = response.reference; - return _varyHeaders(reference.pointer, - _id_varyHeaders as jni$_.JMethodIDPtr, _$response.pointer) - .object(const $Headers$Type()); + return _varyHeaders( + reference.pointer, + _id_varyHeaders as jni$_.JMethodIDPtr, + _$response.pointer, + ).object(const $Headers$Type()); } static final _id_new$ = _class.constructorId( r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` /// The returned object must be released after use, by calling the [release] method. - factory Cache$Companion( - jni$_.JObject? defaultConstructorMarker, - ) { + factory Cache$Companion(jni$_.JObject? defaultConstructorMarker) { final _$defaultConstructorMarker = defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return Cache$Companion.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$defaultConstructorMarker.pointer) - .reference); + return Cache$Companion.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$defaultConstructorMarker.pointer, + ).reference, + ); } } @@ -11233,11 +12791,8 @@ final class $Cache$Companion$NullableType @jni$_.internal @core$_.override - Cache$Companion? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Cache$Companion.fromReference( - reference, - ); + Cache$Companion? fromReference(jni$_.JReference reference) => + reference.isNull ? null : Cache$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -11271,9 +12826,7 @@ final class $Cache$Companion$Type extends jni$_.JObjType { @jni$_.internal @core$_.override Cache$Companion fromReference(jni$_.JReference reference) => - Cache$Companion.fromReference( - reference, - ); + Cache$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -11304,10 +12857,9 @@ class JObject$Companion extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - JObject$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + JObject$Companion.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okhttp3/Cache$Entry$Companion'); @@ -11318,27 +12870,36 @@ class JObject$Companion extends jni$_.JObject { r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` /// The returned object must be released after use, by calling the [release] method. - factory JObject$Companion( - jni$_.JObject? defaultConstructorMarker, - ) { + factory JObject$Companion(jni$_.JObject? defaultConstructorMarker) { final _$defaultConstructorMarker = defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return JObject$Companion.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$defaultConstructorMarker.pointer) - .reference); + return JObject$Companion.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$defaultConstructorMarker.pointer, + ).reference, + ); } } @@ -11354,11 +12915,7 @@ final class $JObject$Companion$NullableType @jni$_.internal @core$_.override JObject$Companion? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : JObject$Companion.fromReference( - reference, - ); + reference.isNull ? null : JObject$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -11392,9 +12949,7 @@ final class $JObject$Companion$Type extends jni$_.JObjType { @jni$_.internal @core$_.override JObject$Companion fromReference(jni$_.JReference reference) => - JObject$Companion.fromReference( - reference, - ); + JObject$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -11425,10 +12980,9 @@ class Cache extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Cache.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Cache.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okhttp3/Cache'); @@ -11449,155 +13003,175 @@ class Cache extends jni$_.JObject { r'(Ljava/io/File;JLokhttp3/internal/io/FileSystem;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int64, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int64, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (java.io.File file, long j, okhttp3.internal.io.FileSystem fileSystem)` /// The returned object must be released after use, by calling the [release] method. - factory Cache( - jni$_.JObject file, - int j, - jni$_.JObject fileSystem, - ) { + factory Cache(jni$_.JObject file, int j, jni$_.JObject fileSystem) { final _$file = file.reference; final _$fileSystem = fileSystem.reference; - return Cache.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$file.pointer, - j, - _$fileSystem.pointer) - .reference); + return Cache.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$file.pointer, + j, + _$fileSystem.pointer, + ).reference, + ); } - static final _id_isClosed = _class.instanceMethodId( - r'isClosed', - r'()Z', - ); + static final _id_isClosed = _class.instanceMethodId(r'isClosed', r'()Z'); - static final _isClosed = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _isClosed = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final boolean isClosed()` bool isClosed() { - return _isClosed(reference.pointer, _id_isClosed as jni$_.JMethodIDPtr) - .boolean; + return _isClosed( + reference.pointer, + _id_isClosed as jni$_.JMethodIDPtr, + ).boolean; } - static final _id_new$1 = _class.constructorId( - r'(Ljava/io/File;J)V', - ); + static final _id_new$1 = _class.constructorId(r'(Ljava/io/File;J)V'); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int64)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int64)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public void (java.io.File file, long j)` /// The returned object must be released after use, by calling the [release] method. - factory Cache.new$1( - jni$_.JObject file, - int j, - ) { + factory Cache.new$1(jni$_.JObject file, int j) { final _$file = file.reference; - return Cache.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, _$file.pointer, j) - .reference); + return Cache.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$file.pointer, + j, + ).reference, + ); } - static final _id_initialize = _class.instanceMethodId( - r'initialize', - r'()V', - ); + static final _id_initialize = _class.instanceMethodId(r'initialize', r'()V'); - static final _initialize = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _initialize = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final void initialize()` void initialize() { - _initialize(reference.pointer, _id_initialize as jni$_.JMethodIDPtr) - .check(); + _initialize( + reference.pointer, + _id_initialize as jni$_.JMethodIDPtr, + ).check(); } - static final _id_delete = _class.instanceMethodId( - r'delete', - r'()V', - ); + static final _id_delete = _class.instanceMethodId(r'delete', r'()V'); - static final _delete = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _delete = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final void delete()` void delete() { _delete(reference.pointer, _id_delete as jni$_.JMethodIDPtr).check(); } - static final _id_evictAll = _class.instanceMethodId( - r'evictAll', - r'()V', - ); + static final _id_evictAll = _class.instanceMethodId(r'evictAll', r'()V'); - static final _evictAll = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _evictAll = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final void evictAll()` void evictAll() { @@ -11609,24 +13183,31 @@ class Cache extends jni$_.JObject { r'()Ljava/util/Iterator;', ); - static final _urls = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _urls = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.util.Iterator urls()` /// The returned object must be released after use, by calling the [release] method. jni$_.JIterator urls() { - return _urls(reference.pointer, _id_urls as jni$_.JMethodIDPtr) - .object>( - const jni$_.JIteratorType(jni$_.JStringType())); + return _urls( + reference.pointer, + _id_urls as jni$_.JMethodIDPtr, + ).object>( + const jni$_.JIteratorType(jni$_.JStringType()), + ); } static final _id_writeAbortCount = _class.instanceMethodId( @@ -11634,23 +13215,28 @@ class Cache extends jni$_.JObject { r'()I', ); - static final _writeAbortCount = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _writeAbortCount = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final int writeAbortCount()` int writeAbortCount() { return _writeAbortCount( - reference.pointer, _id_writeAbortCount as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_writeAbortCount as jni$_.JMethodIDPtr, + ).integer; } static final _id_writeSuccessCount = _class.instanceMethodId( @@ -11658,107 +13244,116 @@ class Cache extends jni$_.JObject { r'()I', ); - static final _writeSuccessCount = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _writeSuccessCount = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final int writeSuccessCount()` int writeSuccessCount() { return _writeSuccessCount( - reference.pointer, _id_writeSuccessCount as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_writeSuccessCount as jni$_.JMethodIDPtr, + ).integer; } - static final _id_size = _class.instanceMethodId( - r'size', - r'()J', - ); + static final _id_size = _class.instanceMethodId(r'size', r'()J'); - static final _size = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _size = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final long size()` int size() { return _size(reference.pointer, _id_size as jni$_.JMethodIDPtr).long; } - static final _id_maxSize = _class.instanceMethodId( - r'maxSize', - r'()J', - ); + static final _id_maxSize = _class.instanceMethodId(r'maxSize', r'()J'); - static final _maxSize = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _maxSize = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final long maxSize()` int maxSize() { return _maxSize(reference.pointer, _id_maxSize as jni$_.JMethodIDPtr).long; } - static final _id_flush = _class.instanceMethodId( - r'flush', - r'()V', - ); + static final _id_flush = _class.instanceMethodId(r'flush', r'()V'); - static final _flush = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _flush = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void flush()` void flush() { _flush(reference.pointer, _id_flush as jni$_.JMethodIDPtr).check(); } - static final _id_close = _class.instanceMethodId( - r'close', - r'()V', - ); + static final _id_close = _class.instanceMethodId(r'close', r'()V'); - static final _close = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _close = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void close()` void close() { @@ -11770,23 +13365,29 @@ class Cache extends jni$_.JObject { r'()Ljava/io/File;', ); - static final _directory = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _directory = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.io.File directory()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject directory() { - return _directory(reference.pointer, _id_directory as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); + return _directory( + reference.pointer, + _id_directory as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectType()); } static final _id_networkCount = _class.instanceMethodId( @@ -11794,46 +13395,54 @@ class Cache extends jni$_.JObject { r'()I', ); - static final _networkCount = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _networkCount = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final int networkCount()` int networkCount() { return _networkCount( - reference.pointer, _id_networkCount as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_networkCount as jni$_.JMethodIDPtr, + ).integer; } - static final _id_hitCount = _class.instanceMethodId( - r'hitCount', - r'()I', - ); + static final _id_hitCount = _class.instanceMethodId(r'hitCount', r'()I'); - static final _hitCount = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hitCount = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final int hitCount()` int hitCount() { - return _hitCount(reference.pointer, _id_hitCount as jni$_.JMethodIDPtr) - .integer; + return _hitCount( + reference.pointer, + _id_hitCount as jni$_.JMethodIDPtr, + ).integer; } static final _id_requestCount = _class.instanceMethodId( @@ -11841,23 +13450,28 @@ class Cache extends jni$_.JObject { r'()I', ); - static final _requestCount = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _requestCount = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final int requestCount()` int requestCount() { return _requestCount( - reference.pointer, _id_requestCount as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_requestCount as jni$_.JMethodIDPtr, + ).integer; } static final _id_key = _class.staticMethodId( @@ -11865,26 +13479,33 @@ class Cache extends jni$_.JObject { r'(Lokhttp3/HttpUrl;)Ljava/lang/String;', ); - static final _key = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _key = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public final java.lang.String key(okhttp3.HttpUrl httpUrl)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString key( - jni$_.JObject httpUrl, - ) { + static jni$_.JString key(jni$_.JObject httpUrl) { final _$httpUrl = httpUrl.reference; - return _key(_class.reference.pointer, _id_key as jni$_.JMethodIDPtr, - _$httpUrl.pointer) - .object(const jni$_.JStringType()); + return _key( + _class.reference.pointer, + _id_key as jni$_.JMethodIDPtr, + _$httpUrl.pointer, + ).object(const jni$_.JStringType()); } } @@ -11898,11 +13519,8 @@ final class $Cache$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - Cache? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Cache.fromReference( - reference, - ); + Cache? fromReference(jni$_.JReference reference) => + reference.isNull ? null : Cache.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -11935,9 +13553,8 @@ final class $Cache$Type extends jni$_.JObjType { @jni$_.internal @core$_.override - Cache fromReference(jni$_.JReference reference) => Cache.fromReference( - reference, - ); + Cache fromReference(jni$_.JReference reference) => + Cache.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -11966,13 +13583,13 @@ class RedirectReceivedCallback extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - RedirectReceivedCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + RedirectReceivedCallback.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'com/example/ok_http/RedirectReceivedCallback'); + static final _class = jni$_.JClass.forName( + r'com/example/ok_http/RedirectReceivedCallback', + ); /// The type which includes information such as the signature of this class. static const nullableType = $RedirectReceivedCallback$NullableType(); @@ -11982,36 +13599,37 @@ class RedirectReceivedCallback extends jni$_.JObject { r'(Lokhttp3/Response;Ljava/lang/String;)V', ); - static final _onRedirectReceived = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onRedirectReceived = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void onRedirectReceived(okhttp3.Response response, java.lang.String string)` - void onRedirectReceived( - Response response, - jni$_.JString string, - ) { + void onRedirectReceived(Response response, jni$_.JString string) { final _$response = response.reference; final _$string = string.reference; _onRedirectReceived( - reference.pointer, - _id_onRedirectReceived as jni$_.JMethodIDPtr, - _$response.pointer, - _$string.pointer) - .check(); + reference.pointer, + _id_onRedirectReceived as jni$_.JMethodIDPtr, + _$response.pointer, + _$string.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -12023,19 +13641,16 @@ class RedirectReceivedCallback extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address), ); } static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -12085,21 +13700,17 @@ class RedirectReceivedCallback extends jni$_.JObject { _$impls[$a] = $impl; } - factory RedirectReceivedCallback.implement( - $RedirectReceivedCallback $impl, - ) { + factory RedirectReceivedCallback.implement($RedirectReceivedCallback $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return RedirectReceivedCallback.fromReference( - $i.implementReference(), - ); + return RedirectReceivedCallback.fromReference($i.implementReference()); } } abstract base mixin class $RedirectReceivedCallback { factory $RedirectReceivedCallback({ required void Function(Response response, jni$_.JString string) - onRedirectReceived, + onRedirectReceived, bool onRedirectReceived$async, }) = _$RedirectReceivedCallback; @@ -12110,12 +13721,12 @@ abstract base mixin class $RedirectReceivedCallback { final class _$RedirectReceivedCallback with $RedirectReceivedCallback { _$RedirectReceivedCallback({ required void Function(Response response, jni$_.JString string) - onRedirectReceived, + onRedirectReceived, this.onRedirectReceived$async = false, }) : _onRedirectReceived = onRedirectReceived; final void Function(Response response, jni$_.JString string) - _onRedirectReceived; + _onRedirectReceived; final bool onRedirectReceived$async; void onRedirectReceived(Response response, jni$_.JString string) { @@ -12136,10 +13747,8 @@ final class $RedirectReceivedCallback$NullableType @core$_.override RedirectReceivedCallback? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : RedirectReceivedCallback.fromReference( - reference, - ); + ? null + : RedirectReceivedCallback.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -12174,9 +13783,7 @@ final class $RedirectReceivedCallback$Type @jni$_.internal @core$_.override RedirectReceivedCallback fromReference(jni$_.JReference reference) => - RedirectReceivedCallback.fromReference( - reference, - ); + RedirectReceivedCallback.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -12207,13 +13814,13 @@ class RedirectInterceptor$Companion extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - RedirectInterceptor$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + RedirectInterceptor$Companion.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'com/example/ok_http/RedirectInterceptor$Companion'); + r'com/example/ok_http/RedirectInterceptor$Companion', + ); /// The type which includes information such as the signature of this class. static const nullableType = $RedirectInterceptor$Companion$NullableType(); @@ -12223,26 +13830,33 @@ class RedirectInterceptor$Companion extends jni$_.JObject { r'(Lokhttp3/OkHttpClient$Builder;IZLcom/example/ok_http/RedirectReceivedCallback;)Lokhttp3/OkHttpClient$Builder;', ); - static final _addRedirectInterceptor = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _addRedirectInterceptor = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder addRedirectInterceptor(okhttp3.OkHttpClient$Builder builder, int i, boolean z, com.example.ok_http.RedirectReceivedCallback redirectReceivedCallback)` /// The returned object must be released after use, by calling the [release] method. @@ -12255,29 +13869,36 @@ class RedirectInterceptor$Companion extends jni$_.JObject { final _$builder = builder.reference; final _$redirectReceivedCallback = redirectReceivedCallback.reference; return _addRedirectInterceptor( - reference.pointer, - _id_addRedirectInterceptor as jni$_.JMethodIDPtr, - _$builder.pointer, - i, - z ? 1 : 0, - _$redirectReceivedCallback.pointer) - .object(const $OkHttpClient$Builder$Type()); + reference.pointer, + _id_addRedirectInterceptor as jni$_.JMethodIDPtr, + _$builder.pointer, + i, + z ? 1 : 0, + _$redirectReceivedCallback.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_new$ = _class.constructorId( r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` /// The returned object must be released after use, by calling the [release] method. @@ -12286,11 +13907,13 @@ class RedirectInterceptor$Companion extends jni$_.JObject { ) { final _$defaultConstructorMarker = defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return RedirectInterceptor$Companion.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$defaultConstructorMarker.pointer) - .reference); + return RedirectInterceptor$Companion.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$defaultConstructorMarker.pointer, + ).reference, + ); } } @@ -12308,10 +13931,8 @@ final class $RedirectInterceptor$Companion$NullableType @core$_.override RedirectInterceptor$Companion? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : RedirectInterceptor$Companion.fromReference( - reference, - ); + ? null + : RedirectInterceptor$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -12347,9 +13968,7 @@ final class $RedirectInterceptor$Companion$Type @jni$_.internal @core$_.override RedirectInterceptor$Companion fromReference(jni$_.JReference reference) => - RedirectInterceptor$Companion.fromReference( - reference, - ); + RedirectInterceptor$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -12380,13 +13999,13 @@ class RedirectInterceptor extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - RedirectInterceptor.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + RedirectInterceptor.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'com/example/ok_http/RedirectInterceptor'); + static final _class = jni$_.JClass.forName( + r'com/example/ok_http/RedirectInterceptor', + ); /// The type which includes information such as the signature of this class. static const nullableType = $RedirectInterceptor$NullableType(); @@ -12401,28 +14020,30 @@ class RedirectInterceptor extends jni$_.JObject { static RedirectInterceptor$Companion get Companion => _id_Companion.get(_class, const $RedirectInterceptor$Companion$Type()); - static final _id_new$ = _class.constructorId( - r'()V', - ); + static final _id_new$ = _class.constructorId(r'()V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory RedirectInterceptor() { return RedirectInterceptor.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); } } @@ -12438,11 +14059,7 @@ final class $RedirectInterceptor$NullableType @jni$_.internal @core$_.override RedirectInterceptor? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : RedirectInterceptor.fromReference( - reference, - ); + reference.isNull ? null : RedirectInterceptor.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -12477,9 +14094,7 @@ final class $RedirectInterceptor$Type @jni$_.internal @core$_.override RedirectInterceptor fromReference(jni$_.JReference reference) => - RedirectInterceptor.fromReference( - reference, - ); + RedirectInterceptor.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -12510,39 +14125,41 @@ class AsyncInputStreamReader extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - AsyncInputStreamReader.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + AsyncInputStreamReader.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'com/example/ok_http/AsyncInputStreamReader'); + static final _class = jni$_.JClass.forName( + r'com/example/ok_http/AsyncInputStreamReader', + ); /// The type which includes information such as the signature of this class. static const nullableType = $AsyncInputStreamReader$NullableType(); static const type = $AsyncInputStreamReader$Type(); - static final _id_new$ = _class.constructorId( - r'()V', - ); + static final _id_new$ = _class.constructorId(r'()V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory AsyncInputStreamReader() { return AsyncInputStreamReader.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); } static final _id_readAsync = _class.instanceMethodId( @@ -12550,22 +14167,26 @@ class AsyncInputStreamReader extends jni$_.JObject { r'(Ljava/io/InputStream;Lcom/example/ok_http/DataCallback;)Ljava/util/concurrent/Future;', ); - static final _readAsync = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _readAsync = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final java.util.concurrent.Future readAsync(java.io.InputStream inputStream, com.example.ok_http.DataCallback dataCallback)` /// The returned object must be released after use, by calling the [release] method. @@ -12575,27 +14196,31 @@ class AsyncInputStreamReader extends jni$_.JObject { ) { final _$inputStream = inputStream.reference; final _$dataCallback = dataCallback.reference; - return _readAsync(reference.pointer, _id_readAsync as jni$_.JMethodIDPtr, - _$inputStream.pointer, _$dataCallback.pointer) - .object(const jni$_.JObjectType()); + return _readAsync( + reference.pointer, + _id_readAsync as jni$_.JMethodIDPtr, + _$inputStream.pointer, + _$dataCallback.pointer, + ).object(const jni$_.JObjectType()); } - static final _id_shutdown = _class.instanceMethodId( - r'shutdown', - r'()V', - ); + static final _id_shutdown = _class.instanceMethodId(r'shutdown', r'()V'); - static final _shutdown = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _shutdown = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final void shutdown()` void shutdown() { @@ -12615,11 +14240,7 @@ final class $AsyncInputStreamReader$NullableType @jni$_.internal @core$_.override AsyncInputStreamReader? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : AsyncInputStreamReader.fromReference( - reference, - ); + reference.isNull ? null : AsyncInputStreamReader.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -12654,9 +14275,7 @@ final class $AsyncInputStreamReader$Type @jni$_.internal @core$_.override AsyncInputStreamReader fromReference(jni$_.JReference reference) => - AsyncInputStreamReader.fromReference( - reference, - ); + AsyncInputStreamReader.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -12687,13 +14306,13 @@ class DataCallback extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - DataCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + DataCallback.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'com/example/ok_http/DataCallback'); + static final _class = jni$_.JClass.forName( + r'com/example/ok_http/DataCallback', + ); /// The type which includes information such as the signature of this class. static const nullableType = $DataCallback$NullableType(); @@ -12703,48 +14322,58 @@ class DataCallback extends jni$_.JObject { r'([B)V', ); - static final _onDataRead = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _onDataRead = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract void onDataRead(byte[] bs)` - void onDataRead( - jni$_.JByteArray bs, - ) { + void onDataRead(jni$_.JByteArray bs) { final _$bs = bs.reference; - _onDataRead(reference.pointer, _id_onDataRead as jni$_.JMethodIDPtr, - _$bs.pointer) - .check(); + _onDataRead( + reference.pointer, + _id_onDataRead as jni$_.JMethodIDPtr, + _$bs.pointer, + ).check(); } - static final _id_onFinished = _class.instanceMethodId( - r'onFinished', - r'()V', - ); + static final _id_onFinished = _class.instanceMethodId(r'onFinished', r'()V'); - static final _onFinished = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onFinished = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void onFinished()` void onFinished() { - _onFinished(reference.pointer, _id_onFinished as jni$_.JMethodIDPtr) - .check(); + _onFinished( + reference.pointer, + _id_onFinished as jni$_.JMethodIDPtr, + ).check(); } static final _id_onError = _class.instanceMethodId( @@ -12752,25 +14381,32 @@ class DataCallback extends jni$_.JObject { r'(Ljava/io/IOException;)V', ); - static final _onError = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _onError = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract void onError(java.io.IOException iOException)` - void onError( - jni$_.JObject iOException, - ) { + void onError(jni$_.JObject iOException) { final _$iOException = iOException.reference; - _onError(reference.pointer, _id_onError as jni$_.JMethodIDPtr, - _$iOException.pointer) - .check(); + _onError( + reference.pointer, + _id_onError as jni$_.JMethodIDPtr, + _$iOException.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -12782,19 +14418,16 @@ class DataCallback extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address), ); } static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -12825,10 +14458,7 @@ class DataCallback extends jni$_.JObject { return jni$_.nullptr; } - static void implementIn( - jni$_.JImplementer implementer, - $DataCallback $impl, - ) { + static void implementIn(jni$_.JImplementer implementer, $DataCallback $impl) { late final jni$_.RawReceivePort $p; $p = jni$_.RawReceivePort(($m) { if ($m == null) { @@ -12840,28 +14470,19 @@ class DataCallback extends jni$_.JObject { final $r = _$invokeMethod($p.sendPort.nativePort, $i); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); - implementer.add( - r'com.example.ok_http.DataCallback', - $p, - _$invokePointer, - [ - if ($impl.onDataRead$async) r'onDataRead([B)V', - if ($impl.onFinished$async) r'onFinished()V', - if ($impl.onError$async) r'onError(Ljava/io/IOException;)V', - ], - ); + implementer.add(r'com.example.ok_http.DataCallback', $p, _$invokePointer, [ + if ($impl.onDataRead$async) r'onDataRead([B)V', + if ($impl.onFinished$async) r'onFinished()V', + if ($impl.onError$async) r'onError(Ljava/io/IOException;)V', + ]); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } - factory DataCallback.implement( - $DataCallback $impl, - ) { + factory DataCallback.implement($DataCallback $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return DataCallback.fromReference( - $i.implementReference(), - ); + return DataCallback.fromReference($i.implementReference()); } } @@ -12891,9 +14512,9 @@ final class _$DataCallback with $DataCallback { this.onFinished$async = false, required void Function(jni$_.JObject iOException) onError, this.onError$async = false, - }) : _onDataRead = onDataRead, - _onFinished = onFinished, - _onError = onError; + }) : _onDataRead = onDataRead, + _onFinished = onFinished, + _onError = onError; final void Function(jni$_.JByteArray bs) _onDataRead; final bool onDataRead$async; @@ -12925,11 +14546,8 @@ final class $DataCallback$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - DataCallback? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : DataCallback.fromReference( - reference, - ); + DataCallback? fromReference(jni$_.JReference reference) => + reference.isNull ? null : DataCallback.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -12963,9 +14581,7 @@ final class $DataCallback$Type extends jni$_.JObjType { @jni$_.internal @core$_.override DataCallback fromReference(jni$_.JReference reference) => - DataCallback.fromReference( - reference, - ); + DataCallback.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -12996,10 +14612,9 @@ class WebSocket$Factory extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - WebSocket$Factory.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + WebSocket$Factory.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okhttp3/WebSocket$Factory'); @@ -13011,37 +14626,38 @@ class WebSocket$Factory extends jni$_.JObject { r'(Lokhttp3/Request;Lokhttp3/WebSocketListener;)Lokhttp3/WebSocket;', ); - static final _newWebSocket = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _newWebSocket = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract okhttp3.WebSocket newWebSocket(okhttp3.Request request, okhttp3.WebSocketListener webSocketListener)` /// The returned object must be released after use, by calling the [release] method. - WebSocket newWebSocket( - Request request, - jni$_.JObject webSocketListener, - ) { + WebSocket newWebSocket(Request request, jni$_.JObject webSocketListener) { final _$request = request.reference; final _$webSocketListener = webSocketListener.reference; return _newWebSocket( - reference.pointer, - _id_newWebSocket as jni$_.JMethodIDPtr, - _$request.pointer, - _$webSocketListener.pointer) - .object(const $WebSocket$Type()); + reference.pointer, + _id_newWebSocket as jni$_.JMethodIDPtr, + _$request.pointer, + _$webSocketListener.pointer, + ).object(const $WebSocket$Type()); } /// Maps a specific port to the implemented interface. @@ -13053,19 +14669,16 @@ class WebSocket$Factory extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address), ); } static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -13107,32 +14720,25 @@ class WebSocket$Factory extends jni$_.JObject { final $r = _$invokeMethod($p.sendPort.nativePort, $i); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); - implementer.add( - r'okhttp3.WebSocket$Factory', - $p, - _$invokePointer, - [], - ); + implementer.add(r'okhttp3.WebSocket$Factory', $p, _$invokePointer, []); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } - factory WebSocket$Factory.implement( - $WebSocket$Factory $impl, - ) { + factory WebSocket$Factory.implement($WebSocket$Factory $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return WebSocket$Factory.fromReference( - $i.implementReference(), - ); + return WebSocket$Factory.fromReference($i.implementReference()); } } abstract base mixin class $WebSocket$Factory { factory $WebSocket$Factory({ required WebSocket Function( - Request request, jni$_.JObject webSocketListener) - newWebSocket, + Request request, + jni$_.JObject webSocketListener, + ) + newWebSocket, }) = _$WebSocket$Factory; WebSocket newWebSocket(Request request, jni$_.JObject webSocketListener); @@ -13141,12 +14747,14 @@ abstract base mixin class $WebSocket$Factory { final class _$WebSocket$Factory with $WebSocket$Factory { _$WebSocket$Factory({ required WebSocket Function( - Request request, jni$_.JObject webSocketListener) - newWebSocket, + Request request, + jni$_.JObject webSocketListener, + ) + newWebSocket, }) : _newWebSocket = newWebSocket; final WebSocket Function(Request request, jni$_.JObject webSocketListener) - _newWebSocket; + _newWebSocket; WebSocket newWebSocket(Request request, jni$_.JObject webSocketListener) { return _newWebSocket(request, webSocketListener); @@ -13165,11 +14773,7 @@ final class $WebSocket$Factory$NullableType @jni$_.internal @core$_.override WebSocket$Factory? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : WebSocket$Factory.fromReference( - reference, - ); + reference.isNull ? null : WebSocket$Factory.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -13203,9 +14807,7 @@ final class $WebSocket$Factory$Type extends jni$_.JObjType { @jni$_.internal @core$_.override WebSocket$Factory fromReference(jni$_.JReference reference) => - WebSocket$Factory.fromReference( - reference, - ); + WebSocket$Factory.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -13236,10 +14838,9 @@ class WebSocket extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - WebSocket.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + WebSocket.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okhttp3/WebSocket'); @@ -13251,46 +14852,55 @@ class WebSocket extends jni$_.JObject { r'()Lokhttp3/Request;', ); - static final _request = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _request = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract okhttp3.Request request()` /// The returned object must be released after use, by calling the [release] method. Request request() { - return _request(reference.pointer, _id_request as jni$_.JMethodIDPtr) - .object(const $Request$Type()); + return _request( + reference.pointer, + _id_request as jni$_.JMethodIDPtr, + ).object(const $Request$Type()); } - static final _id_queueSize = _class.instanceMethodId( - r'queueSize', - r'()J', - ); + static final _id_queueSize = _class.instanceMethodId(r'queueSize', r'()J'); - static final _queueSize = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _queueSize = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract long queueSize()` int queueSize() { - return _queueSize(reference.pointer, _id_queueSize as jni$_.JMethodIDPtr) - .long; + return _queueSize( + reference.pointer, + _id_queueSize as jni$_.JMethodIDPtr, + ).long; } static final _id_send = _class.instanceMethodId( @@ -13298,25 +14908,32 @@ class WebSocket extends jni$_.JObject { r'(Ljava/lang/String;)Z', ); - static final _send = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _send = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract boolean send(java.lang.String string)` - bool send( - jni$_.JString string, - ) { + bool send(jni$_.JString string) { final _$string = string.reference; return _send( - reference.pointer, _id_send as jni$_.JMethodIDPtr, _$string.pointer) - .boolean; + reference.pointer, + _id_send as jni$_.JMethodIDPtr, + _$string.pointer, + ).boolean; } static final _id_send$1 = _class.instanceMethodId( @@ -13324,25 +14941,32 @@ class WebSocket extends jni$_.JObject { r'(Lokio/ByteString;)Z', ); - static final _send$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _send$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract boolean send(okio.ByteString byteString)` - bool send$1( - ByteString byteString, - ) { + bool send$1(ByteString byteString) { final _$byteString = byteString.reference; - return _send$1(reference.pointer, _id_send$1 as jni$_.JMethodIDPtr, - _$byteString.pointer) - .boolean; + return _send$1( + reference.pointer, + _id_send$1 as jni$_.JMethodIDPtr, + _$byteString.pointer, + ).boolean; } static final _id_close = _class.instanceMethodId( @@ -13350,45 +14974,53 @@ class WebSocket extends jni$_.JObject { r'(ILjava/lang/String;)Z', ); - static final _close = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Int32, jni$_.Pointer)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + static final _close = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32, jni$_.Pointer)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + jni$_.Pointer, + ) + >(); /// from: `public abstract boolean close(int i, java.lang.String string)` - bool close( - int i, - jni$_.JString? string, - ) { + bool close(int i, jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _close(reference.pointer, _id_close as jni$_.JMethodIDPtr, i, - _$string.pointer) - .boolean; + return _close( + reference.pointer, + _id_close as jni$_.JMethodIDPtr, + i, + _$string.pointer, + ).boolean; } - static final _id_cancel = _class.instanceMethodId( - r'cancel', - r'()V', - ); + static final _id_cancel = _class.instanceMethodId(r'cancel', r'()V'); - static final _cancel = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _cancel = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void cancel()` void cancel() { @@ -13404,19 +15036,16 @@ class WebSocket extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address), ); } static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -13468,10 +15097,7 @@ class WebSocket extends jni$_.JObject { return jni$_.nullptr; } - static void implementIn( - jni$_.JImplementer implementer, - $WebSocket $impl, - ) { + static void implementIn(jni$_.JImplementer implementer, $WebSocket $impl) { late final jni$_.RawReceivePort $p; $p = jni$_.RawReceivePort(($m) { if ($m == null) { @@ -13483,26 +15109,17 @@ class WebSocket extends jni$_.JObject { final $r = _$invokeMethod($p.sendPort.nativePort, $i); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); - implementer.add( - r'okhttp3.WebSocket', - $p, - _$invokePointer, - [ - if ($impl.cancel$async) r'cancel()V', - ], - ); + implementer.add(r'okhttp3.WebSocket', $p, _$invokePointer, [ + if ($impl.cancel$async) r'cancel()V', + ]); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } - factory WebSocket.implement( - $WebSocket $impl, - ) { + factory WebSocket.implement($WebSocket $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return WebSocket.fromReference( - $i.implementReference(), - ); + return WebSocket.fromReference($i.implementReference()); } } @@ -13535,12 +15152,12 @@ final class _$WebSocket with $WebSocket { required bool Function(int i, jni$_.JString? string) close, required void Function() cancel, this.cancel$async = false, - }) : _request = request, - _queueSize = queueSize, - _send = send, - _send$1 = send$1, - _close = close, - _cancel = cancel; + }) : _request = request, + _queueSize = queueSize, + _send = send, + _send$1 = send$1, + _close = close, + _cancel = cancel; final Request Function() _request; final int Function() _queueSize; @@ -13585,11 +15202,8 @@ final class $WebSocket$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - WebSocket? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : WebSocket.fromReference( - reference, - ); + WebSocket? fromReference(jni$_.JReference reference) => + reference.isNull ? null : WebSocket.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -13623,9 +15237,7 @@ final class $WebSocket$Type extends jni$_.JObjType { @jni$_.internal @core$_.override WebSocket fromReference(jni$_.JReference reference) => - WebSocket.fromReference( - reference, - ); + WebSocket.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -13657,11 +15269,12 @@ class WebSocketListenerProxy$WebSocketListener extends jni$_.JObject { @jni$_.internal WebSocketListenerProxy$WebSocketListener.fromReference( jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ) : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'com/example/ok_http/WebSocketListenerProxy$WebSocketListener'); + r'com/example/ok_http/WebSocketListenerProxy$WebSocketListener', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -13672,33 +15285,37 @@ class WebSocketListenerProxy$WebSocketListener extends jni$_.JObject { r'(Lokhttp3/WebSocket;Lokhttp3/Response;)V', ); - static final _onOpen = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onOpen = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void onOpen(okhttp3.WebSocket webSocket, okhttp3.Response response)` - void onOpen( - WebSocket webSocket, - Response response, - ) { + void onOpen(WebSocket webSocket, Response response) { final _$webSocket = webSocket.reference; final _$response = response.reference; - _onOpen(reference.pointer, _id_onOpen as jni$_.JMethodIDPtr, - _$webSocket.pointer, _$response.pointer) - .check(); + _onOpen( + reference.pointer, + _id_onOpen as jni$_.JMethodIDPtr, + _$webSocket.pointer, + _$response.pointer, + ).check(); } static final _id_onMessage = _class.instanceMethodId( @@ -13706,33 +15323,37 @@ class WebSocketListenerProxy$WebSocketListener extends jni$_.JObject { r'(Lokhttp3/WebSocket;Ljava/lang/String;)V', ); - static final _onMessage = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onMessage = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void onMessage(okhttp3.WebSocket webSocket, java.lang.String string)` - void onMessage( - WebSocket webSocket, - jni$_.JString string, - ) { + void onMessage(WebSocket webSocket, jni$_.JString string) { final _$webSocket = webSocket.reference; final _$string = string.reference; - _onMessage(reference.pointer, _id_onMessage as jni$_.JMethodIDPtr, - _$webSocket.pointer, _$string.pointer) - .check(); + _onMessage( + reference.pointer, + _id_onMessage as jni$_.JMethodIDPtr, + _$webSocket.pointer, + _$string.pointer, + ).check(); } static final _id_onMessage$1 = _class.instanceMethodId( @@ -13740,33 +15361,37 @@ class WebSocketListenerProxy$WebSocketListener extends jni$_.JObject { r'(Lokhttp3/WebSocket;Lokio/ByteString;)V', ); - static final _onMessage$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onMessage$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void onMessage(okhttp3.WebSocket webSocket, okio.ByteString byteString)` - void onMessage$1( - WebSocket webSocket, - ByteString byteString, - ) { + void onMessage$1(WebSocket webSocket, ByteString byteString) { final _$webSocket = webSocket.reference; final _$byteString = byteString.reference; - _onMessage$1(reference.pointer, _id_onMessage$1 as jni$_.JMethodIDPtr, - _$webSocket.pointer, _$byteString.pointer) - .check(); + _onMessage$1( + reference.pointer, + _id_onMessage$1 as jni$_.JMethodIDPtr, + _$webSocket.pointer, + _$byteString.pointer, + ).check(); } static final _id_onClosing = _class.instanceMethodId( @@ -13774,36 +15399,43 @@ class WebSocketListenerProxy$WebSocketListener extends jni$_.JObject { r'(Lokhttp3/WebSocket;ILjava/lang/String;)V', ); - static final _onClosing = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onClosing = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void onClosing(okhttp3.WebSocket webSocket, int i, java.lang.String string)` - void onClosing( - WebSocket webSocket, - int i, - jni$_.JString string, - ) { + void onClosing(WebSocket webSocket, int i, jni$_.JString string) { final _$webSocket = webSocket.reference; final _$string = string.reference; - _onClosing(reference.pointer, _id_onClosing as jni$_.JMethodIDPtr, - _$webSocket.pointer, i, _$string.pointer) - .check(); + _onClosing( + reference.pointer, + _id_onClosing as jni$_.JMethodIDPtr, + _$webSocket.pointer, + i, + _$string.pointer, + ).check(); } static final _id_onFailure = _class.instanceMethodId( @@ -13811,24 +15443,31 @@ class WebSocketListenerProxy$WebSocketListener extends jni$_.JObject { r'(Lokhttp3/WebSocket;Ljava/lang/Throwable;Lokhttp3/Response;)V', ); - static final _onFailure = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onFailure = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void onFailure(okhttp3.WebSocket webSocket, java.lang.Throwable throwable, okhttp3.Response response)` void onFailure( @@ -13839,14 +15478,18 @@ class WebSocketListenerProxy$WebSocketListener extends jni$_.JObject { final _$webSocket = webSocket.reference; final _$throwable = throwable.reference; final _$response = response?.reference ?? jni$_.jNullReference; - _onFailure(reference.pointer, _id_onFailure as jni$_.JMethodIDPtr, - _$webSocket.pointer, _$throwable.pointer, _$response.pointer) - .check(); + _onFailure( + reference.pointer, + _id_onFailure as jni$_.JMethodIDPtr, + _$webSocket.pointer, + _$throwable.pointer, + _$response.pointer, + ).check(); } /// Maps a specific port to the implemented interface. static final core$_.Map - _$impls = {}; + _$impls = {}; static jni$_.JObjectPtr _$invoke( int port, jni$_.JObjectPtr descriptor, @@ -13854,19 +15497,16 @@ class WebSocketListenerProxy$WebSocketListener extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address), ); } static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -13975,14 +15615,17 @@ abstract base mixin class $WebSocketListenerProxy$WebSocketListener { required void Function(WebSocket webSocket, jni$_.JString string) onMessage, bool onMessage$async, required void Function(WebSocket webSocket, ByteString byteString) - onMessage$1, + onMessage$1, bool onMessage$1$async, required void Function(WebSocket webSocket, int i, jni$_.JString string) - onClosing, + onClosing, bool onClosing$async, required void Function( - WebSocket webSocket, jni$_.JObject throwable, Response? response) - onFailure, + WebSocket webSocket, + jni$_.JObject throwable, + Response? response, + ) + onFailure, bool onFailure$async, }) = _$WebSocketListenerProxy$WebSocketListener; @@ -13995,7 +15638,10 @@ abstract base mixin class $WebSocketListenerProxy$WebSocketListener { void onClosing(WebSocket webSocket, int i, jni$_.JString string); bool get onClosing$async => false; void onFailure( - WebSocket webSocket, jni$_.JObject throwable, Response? response); + WebSocket webSocket, + jni$_.JObject throwable, + Response? response, + ); bool get onFailure$async => false; } @@ -14007,20 +15653,23 @@ final class _$WebSocketListenerProxy$WebSocketListener required void Function(WebSocket webSocket, jni$_.JString string) onMessage, this.onMessage$async = false, required void Function(WebSocket webSocket, ByteString byteString) - onMessage$1, + onMessage$1, this.onMessage$1$async = false, required void Function(WebSocket webSocket, int i, jni$_.JString string) - onClosing, + onClosing, this.onClosing$async = false, required void Function( - WebSocket webSocket, jni$_.JObject throwable, Response? response) - onFailure, + WebSocket webSocket, + jni$_.JObject throwable, + Response? response, + ) + onFailure, this.onFailure$async = false, - }) : _onOpen = onOpen, - _onMessage = onMessage, - _onMessage$1 = onMessage$1, - _onClosing = onClosing, - _onFailure = onFailure; + }) : _onOpen = onOpen, + _onMessage = onMessage, + _onMessage$1 = onMessage$1, + _onClosing = onClosing, + _onFailure = onFailure; final void Function(WebSocket webSocket, Response response) _onOpen; final bool onOpen$async; @@ -14029,11 +15678,14 @@ final class _$WebSocketListenerProxy$WebSocketListener final void Function(WebSocket webSocket, ByteString byteString) _onMessage$1; final bool onMessage$1$async; final void Function(WebSocket webSocket, int i, jni$_.JString string) - _onClosing; + _onClosing; final bool onClosing$async; final void Function( - WebSocket webSocket, jni$_.JObject throwable, Response? response) - _onFailure; + WebSocket webSocket, + jni$_.JObject throwable, + Response? response, + ) + _onFailure; final bool onFailure$async; void onOpen(WebSocket webSocket, Response response) { @@ -14053,7 +15705,10 @@ final class _$WebSocketListenerProxy$WebSocketListener } void onFailure( - WebSocket webSocket, jni$_.JObject throwable, Response? response) { + WebSocket webSocket, + jni$_.JObject throwable, + Response? response, + ) { return _onFailure(webSocket, throwable, response); } } @@ -14071,12 +15726,10 @@ final class $WebSocketListenerProxy$WebSocketListener$NullableType @jni$_.internal @core$_.override WebSocketListenerProxy$WebSocketListener? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : WebSocketListenerProxy$WebSocketListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : WebSocketListenerProxy$WebSocketListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -14115,10 +15768,8 @@ final class $WebSocketListenerProxy$WebSocketListener$Type @jni$_.internal @core$_.override WebSocketListenerProxy$WebSocketListener fromReference( - jni$_.JReference reference) => - WebSocketListenerProxy$WebSocketListener.fromReference( - reference, - ); + jni$_.JReference reference, + ) => WebSocketListenerProxy$WebSocketListener.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -14150,13 +15801,13 @@ class WebSocketListenerProxy extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - WebSocketListenerProxy.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + WebSocketListenerProxy.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'com/example/ok_http/WebSocketListenerProxy'); + static final _class = jni$_.JClass.forName( + r'com/example/ok_http/WebSocketListenerProxy', + ); /// The type which includes information such as the signature of this class. static const nullableType = $WebSocketListenerProxy$NullableType(); @@ -14165,16 +15816,23 @@ class WebSocketListenerProxy extends jni$_.JObject { r'(Lcom/example/ok_http/WebSocketListenerProxy$WebSocketListener;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void (com.example.ok_http.WebSocketListenerProxy$WebSocketListener webSocketListener)` /// The returned object must be released after use, by calling the [release] method. @@ -14182,9 +15840,13 @@ class WebSocketListenerProxy extends jni$_.JObject { WebSocketListenerProxy$WebSocketListener webSocketListener, ) { final _$webSocketListener = webSocketListener.reference; - return WebSocketListenerProxy.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$webSocketListener.pointer) - .reference); + return WebSocketListenerProxy.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$webSocketListener.pointer, + ).reference, + ); } static final _id_onOpen = _class.instanceMethodId( @@ -14192,33 +15854,37 @@ class WebSocketListenerProxy extends jni$_.JObject { r'(Lokhttp3/WebSocket;Lokhttp3/Response;)V', ); - static final _onOpen = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onOpen = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void onOpen(okhttp3.WebSocket webSocket, okhttp3.Response response)` - void onOpen( - WebSocket webSocket, - Response response, - ) { + void onOpen(WebSocket webSocket, Response response) { final _$webSocket = webSocket.reference; final _$response = response.reference; - _onOpen(reference.pointer, _id_onOpen as jni$_.JMethodIDPtr, - _$webSocket.pointer, _$response.pointer) - .check(); + _onOpen( + reference.pointer, + _id_onOpen as jni$_.JMethodIDPtr, + _$webSocket.pointer, + _$response.pointer, + ).check(); } static final _id_onMessage = _class.instanceMethodId( @@ -14226,33 +15892,37 @@ class WebSocketListenerProxy extends jni$_.JObject { r'(Lokhttp3/WebSocket;Ljava/lang/String;)V', ); - static final _onMessage = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onMessage = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void onMessage(okhttp3.WebSocket webSocket, java.lang.String string)` - void onMessage( - WebSocket webSocket, - jni$_.JString string, - ) { + void onMessage(WebSocket webSocket, jni$_.JString string) { final _$webSocket = webSocket.reference; final _$string = string.reference; - _onMessage(reference.pointer, _id_onMessage as jni$_.JMethodIDPtr, - _$webSocket.pointer, _$string.pointer) - .check(); + _onMessage( + reference.pointer, + _id_onMessage as jni$_.JMethodIDPtr, + _$webSocket.pointer, + _$string.pointer, + ).check(); } static final _id_onMessage$1 = _class.instanceMethodId( @@ -14260,33 +15930,37 @@ class WebSocketListenerProxy extends jni$_.JObject { r'(Lokhttp3/WebSocket;Lokio/ByteString;)V', ); - static final _onMessage$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onMessage$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void onMessage(okhttp3.WebSocket webSocket, okio.ByteString byteString)` - void onMessage$1( - WebSocket webSocket, - ByteString byteString, - ) { + void onMessage$1(WebSocket webSocket, ByteString byteString) { final _$webSocket = webSocket.reference; final _$byteString = byteString.reference; - _onMessage$1(reference.pointer, _id_onMessage$1 as jni$_.JMethodIDPtr, - _$webSocket.pointer, _$byteString.pointer) - .check(); + _onMessage$1( + reference.pointer, + _id_onMessage$1 as jni$_.JMethodIDPtr, + _$webSocket.pointer, + _$byteString.pointer, + ).check(); } static final _id_onClosing = _class.instanceMethodId( @@ -14294,36 +15968,43 @@ class WebSocketListenerProxy extends jni$_.JObject { r'(Lokhttp3/WebSocket;ILjava/lang/String;)V', ); - static final _onClosing = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onClosing = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void onClosing(okhttp3.WebSocket webSocket, int i, java.lang.String string)` - void onClosing( - WebSocket webSocket, - int i, - jni$_.JString string, - ) { + void onClosing(WebSocket webSocket, int i, jni$_.JString string) { final _$webSocket = webSocket.reference; final _$string = string.reference; - _onClosing(reference.pointer, _id_onClosing as jni$_.JMethodIDPtr, - _$webSocket.pointer, i, _$string.pointer) - .check(); + _onClosing( + reference.pointer, + _id_onClosing as jni$_.JMethodIDPtr, + _$webSocket.pointer, + i, + _$string.pointer, + ).check(); } static final _id_onFailure = _class.instanceMethodId( @@ -14331,24 +16012,31 @@ class WebSocketListenerProxy extends jni$_.JObject { r'(Lokhttp3/WebSocket;Ljava/lang/Throwable;Lokhttp3/Response;)V', ); - static final _onFailure = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _onFailure = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void onFailure(okhttp3.WebSocket webSocket, java.lang.Throwable throwable, okhttp3.Response response)` void onFailure( @@ -14359,9 +16047,13 @@ class WebSocketListenerProxy extends jni$_.JObject { final _$webSocket = webSocket.reference; final _$throwable = throwable.reference; final _$response = response?.reference ?? jni$_.jNullReference; - _onFailure(reference.pointer, _id_onFailure as jni$_.JMethodIDPtr, - _$webSocket.pointer, _$throwable.pointer, _$response.pointer) - .check(); + _onFailure( + reference.pointer, + _id_onFailure as jni$_.JMethodIDPtr, + _$webSocket.pointer, + _$throwable.pointer, + _$response.pointer, + ).check(); } } @@ -14377,11 +16069,7 @@ final class $WebSocketListenerProxy$NullableType @jni$_.internal @core$_.override WebSocketListenerProxy? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : WebSocketListenerProxy.fromReference( - reference, - ); + reference.isNull ? null : WebSocketListenerProxy.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -14416,9 +16104,7 @@ final class $WebSocketListenerProxy$Type @jni$_.internal @core$_.override WebSocketListenerProxy fromReference(jni$_.JReference reference) => - WebSocketListenerProxy.fromReference( - reference, - ); + WebSocketListenerProxy.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -14449,13 +16135,13 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { final jni$_.JObjType $type; @jni$_.internal - FixedResponseX509ExtendedKeyManager.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + FixedResponseX509ExtendedKeyManager.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'com/example/ok_http/FixedResponseX509ExtendedKeyManager'); + r'com/example/ok_http/FixedResponseX509ExtendedKeyManager', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -14465,24 +16151,31 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { r'([Ljava/security/cert/X509Certificate;Ljava/security/PrivateKey;Ljava/lang/String;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (java.security.cert.X509Certificate[] x509Certificates, java.security.PrivateKey privateKey, java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. @@ -14494,13 +16187,15 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { final _$x509Certificates = x509Certificates.reference; final _$privateKey = privateKey.reference; final _$string = string.reference; - return FixedResponseX509ExtendedKeyManager.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$x509Certificates.pointer, - _$privateKey.pointer, - _$string.pointer) - .reference); + return FixedResponseX509ExtendedKeyManager.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$x509Certificates.pointer, + _$privateKey.pointer, + _$string.pointer, + ).reference, + ); } static final _id_getClientAliases = _class.instanceMethodId( @@ -14508,22 +16203,26 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { r'(Ljava/lang/String;[Ljava/security/Principal;)[Ljava/lang/String;', ); - static final _getClientAliases = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getClientAliases = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public java.lang.String[] getClientAliases(java.lang.String string, java.security.Principal[] principals)` /// The returned object must be released after use, by calling the [release] method. @@ -14534,12 +16233,13 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { final _$string = string.reference; final _$principals = principals?.reference ?? jni$_.jNullReference; return _getClientAliases( - reference.pointer, - _id_getClientAliases as jni$_.JMethodIDPtr, - _$string.pointer, - _$principals.pointer) - .object>( - const jni$_.JArrayType(jni$_.JStringType())); + reference.pointer, + _id_getClientAliases as jni$_.JMethodIDPtr, + _$string.pointer, + _$principals.pointer, + ).object>( + const jni$_.JArrayType(jni$_.JStringType()), + ); } static final _id_chooseClientAlias = _class.instanceMethodId( @@ -14547,24 +16247,31 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { r'([Ljava/lang/String;[Ljava/security/Principal;Ljava/net/Socket;)Ljava/lang/String;', ); - static final _chooseClientAlias = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _chooseClientAlias = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public java.lang.String chooseClientAlias(java.lang.String[] strings, java.security.Principal[] principals, java.net.Socket socket)` /// The returned object must be released after use, by calling the [release] method. @@ -14577,12 +16284,12 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { final _$principals = principals?.reference ?? jni$_.jNullReference; final _$socket = socket?.reference ?? jni$_.jNullReference; return _chooseClientAlias( - reference.pointer, - _id_chooseClientAlias as jni$_.JMethodIDPtr, - _$strings.pointer, - _$principals.pointer, - _$socket.pointer) - .object(const jni$_.JStringType()); + reference.pointer, + _id_chooseClientAlias as jni$_.JMethodIDPtr, + _$strings.pointer, + _$principals.pointer, + _$socket.pointer, + ).object(const jni$_.JStringType()); } static final _id_getServerAliases = _class.instanceMethodId( @@ -14590,22 +16297,26 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { r'(Ljava/lang/String;[Ljava/security/Principal;)[Ljava/lang/String;', ); - static final _getServerAliases = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getServerAliases = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public java.lang.String[] getServerAliases(java.lang.String string, java.security.Principal[] principals)` /// The returned object must be released after use, by calling the [release] method. @@ -14616,12 +16327,13 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { final _$string = string.reference; final _$principals = principals?.reference ?? jni$_.jNullReference; return _getServerAliases( - reference.pointer, - _id_getServerAliases as jni$_.JMethodIDPtr, - _$string.pointer, - _$principals.pointer) - .object>( - const jni$_.JArrayType(jni$_.JStringType())); + reference.pointer, + _id_getServerAliases as jni$_.JMethodIDPtr, + _$string.pointer, + _$principals.pointer, + ).object>( + const jni$_.JArrayType(jni$_.JStringType()), + ); } static final _id_chooseServerAlias = _class.instanceMethodId( @@ -14629,24 +16341,31 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { r'(Ljava/lang/String;[Ljava/security/Principal;Ljava/net/Socket;)Ljava/lang/String;', ); - static final _chooseServerAlias = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _chooseServerAlias = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public java.lang.String chooseServerAlias(java.lang.String string, java.security.Principal[] principals, java.net.Socket socket)` /// The returned object must be released after use, by calling the [release] method. @@ -14659,12 +16378,12 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { final _$principals = principals?.reference ?? jni$_.jNullReference; final _$socket = socket?.reference ?? jni$_.jNullReference; return _chooseServerAlias( - reference.pointer, - _id_chooseServerAlias as jni$_.JMethodIDPtr, - _$string.pointer, - _$principals.pointer, - _$socket.pointer) - .object(const jni$_.JStringType()); + reference.pointer, + _id_chooseServerAlias as jni$_.JMethodIDPtr, + _$string.pointer, + _$principals.pointer, + _$socket.pointer, + ).object(const jni$_.JStringType()); } static final _id_getCertificateChain = _class.instanceMethodId( @@ -14672,27 +16391,35 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { r'(Ljava/lang/String;)[Ljava/security/cert/X509Certificate;', ); - static final _getCertificateChain = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _getCertificateChain = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public java.security.cert.X509Certificate[] getCertificateChain(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JArray getCertificateChain( - jni$_.JString string, - ) { + jni$_.JArray getCertificateChain(jni$_.JString string) { final _$string = string.reference; - return _getCertificateChain(reference.pointer, - _id_getCertificateChain as jni$_.JMethodIDPtr, _$string.pointer) - .object>( - const jni$_.JArrayType($X509Certificate$Type())); + return _getCertificateChain( + reference.pointer, + _id_getCertificateChain as jni$_.JMethodIDPtr, + _$string.pointer, + ).object>( + const jni$_.JArrayType($X509Certificate$Type()), + ); } static final _id_getPrivateKey = _class.instanceMethodId( @@ -14700,26 +16427,33 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { r'(Ljava/lang/String;)Ljava/security/PrivateKey;', ); - static final _getPrivateKey = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _getPrivateKey = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public java.security.PrivateKey getPrivateKey(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - PrivateKey getPrivateKey( - jni$_.JString string, - ) { + PrivateKey getPrivateKey(jni$_.JString string) { final _$string = string.reference; - return _getPrivateKey(reference.pointer, - _id_getPrivateKey as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $PrivateKey$Type()); + return _getPrivateKey( + reference.pointer, + _id_getPrivateKey as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $PrivateKey$Type()); } static final _id_chooseEngineClientAlias = _class.instanceMethodId( @@ -14727,24 +16461,31 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { r'([Ljava/lang/String;[Ljava/security/Principal;Ljavax/net/ssl/SSLEngine;)Ljava/lang/String;', ); - static final _chooseEngineClientAlias = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _chooseEngineClientAlias = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public java.lang.String chooseEngineClientAlias(java.lang.String[] strings, java.security.Principal[] principals, javax.net.ssl.SSLEngine sSLEngine)` /// The returned object must be released after use, by calling the [release] method. @@ -14757,12 +16498,12 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { final _$principals = principals?.reference ?? jni$_.jNullReference; final _$sSLEngine = sSLEngine?.reference ?? jni$_.jNullReference; return _chooseEngineClientAlias( - reference.pointer, - _id_chooseEngineClientAlias as jni$_.JMethodIDPtr, - _$strings.pointer, - _$principals.pointer, - _$sSLEngine.pointer) - .object(const jni$_.JStringType()); + reference.pointer, + _id_chooseEngineClientAlias as jni$_.JMethodIDPtr, + _$strings.pointer, + _$principals.pointer, + _$sSLEngine.pointer, + ).object(const jni$_.JStringType()); } static final _id_chooseEngineServerAlias = _class.instanceMethodId( @@ -14770,24 +16511,31 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { r'(Ljava/lang/String;[Ljava/security/Principal;Ljavax/net/ssl/SSLEngine;)Ljava/lang/String;', ); - static final _chooseEngineServerAlias = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _chooseEngineServerAlias = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public java.lang.String chooseEngineServerAlias(java.lang.String string, java.security.Principal[] principals, javax.net.ssl.SSLEngine sSLEngine)` /// The returned object must be released after use, by calling the [release] method. @@ -14800,12 +16548,12 @@ class FixedResponseX509ExtendedKeyManager extends X509ExtendedKeyManager { final _$principals = principals?.reference ?? jni$_.jNullReference; final _$sSLEngine = sSLEngine?.reference ?? jni$_.jNullReference; return _chooseEngineServerAlias( - reference.pointer, - _id_chooseEngineServerAlias as jni$_.JMethodIDPtr, - _$string.pointer, - _$principals.pointer, - _$sSLEngine.pointer) - .object(const jni$_.JStringType()); + reference.pointer, + _id_chooseEngineServerAlias as jni$_.JMethodIDPtr, + _$string.pointer, + _$principals.pointer, + _$sSLEngine.pointer, + ).object(const jni$_.JStringType()); } } @@ -14822,12 +16570,10 @@ final class $FixedResponseX509ExtendedKeyManager$NullableType @jni$_.internal @core$_.override FixedResponseX509ExtendedKeyManager? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : FixedResponseX509ExtendedKeyManager.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : FixedResponseX509ExtendedKeyManager.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const $X509ExtendedKeyManager$Type(); @@ -14865,10 +16611,8 @@ final class $FixedResponseX509ExtendedKeyManager$Type @jni$_.internal @core$_.override FixedResponseX509ExtendedKeyManager fromReference( - jni$_.JReference reference) => - FixedResponseX509ExtendedKeyManager.fromReference( - reference, - ); + jni$_.JReference reference, + ) => FixedResponseX509ExtendedKeyManager.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const $X509ExtendedKeyManager$Type(); @@ -14899,10 +16643,9 @@ class ByteString$Companion extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - ByteString$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ByteString$Companion.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okio/ByteString$Companion'); @@ -14914,25 +16657,33 @@ class ByteString$Companion extends jni$_.JObject { r'([B)Lokio/ByteString;', ); - static final _of = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _of = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okio.ByteString of(byte[] bs)` /// The returned object must be released after use, by calling the [release] method. - ByteString of( - jni$_.JByteArray bs, - ) { + ByteString of(jni$_.JByteArray bs) { final _$bs = bs.reference; - return _of(reference.pointer, _id_of as jni$_.JMethodIDPtr, _$bs.pointer) - .object(const $ByteString$Type()); + return _of( + reference.pointer, + _id_of as jni$_.JMethodIDPtr, + _$bs.pointer, + ).object(const $ByteString$Type()); } static final _id_of$1 = _class.instanceMethodId( @@ -14940,32 +16691,39 @@ class ByteString$Companion extends jni$_.JObject { r'([BII)Lokio/ByteString;', ); - static final _of$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _of$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `public final okio.ByteString of(byte[] bs, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. - ByteString of$1( - jni$_.JByteArray bs, - int i, - int i1, - ) { + ByteString of$1(jni$_.JByteArray bs, int i, int i1) { final _$bs = bs.reference; - return _of$1(reference.pointer, _id_of$1 as jni$_.JMethodIDPtr, - _$bs.pointer, i, i1) - .object(const $ByteString$Type()); + return _of$1( + reference.pointer, + _id_of$1 as jni$_.JMethodIDPtr, + _$bs.pointer, + i, + i1, + ).object(const $ByteString$Type()); } static final _id_of$2 = _class.instanceMethodId( @@ -14973,26 +16731,33 @@ class ByteString$Companion extends jni$_.JObject { r'(Ljava/nio/ByteBuffer;)Lokio/ByteString;', ); - static final _of$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _of$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okio.ByteString of(java.nio.ByteBuffer byteBuffer)` /// The returned object must be released after use, by calling the [release] method. - ByteString of$2( - jni$_.JByteBuffer byteBuffer, - ) { + ByteString of$2(jni$_.JByteBuffer byteBuffer) { final _$byteBuffer = byteBuffer.reference; - return _of$2(reference.pointer, _id_of$2 as jni$_.JMethodIDPtr, - _$byteBuffer.pointer) - .object(const $ByteString$Type()); + return _of$2( + reference.pointer, + _id_of$2 as jni$_.JMethodIDPtr, + _$byteBuffer.pointer, + ).object(const $ByteString$Type()); } static final _id_encodeUtf8 = _class.instanceMethodId( @@ -15000,26 +16765,33 @@ class ByteString$Companion extends jni$_.JObject { r'(Ljava/lang/String;)Lokio/ByteString;', ); - static final _encodeUtf8 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _encodeUtf8 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okio.ByteString encodeUtf8(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - ByteString encodeUtf8( - jni$_.JString string, - ) { + ByteString encodeUtf8(jni$_.JString string) { final _$string = string.reference; - return _encodeUtf8(reference.pointer, _id_encodeUtf8 as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const $ByteString$Type()); + return _encodeUtf8( + reference.pointer, + _id_encodeUtf8 as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $ByteString$Type()); } static final _id_encodeString = _class.instanceMethodId( @@ -15027,37 +16799,38 @@ class ByteString$Companion extends jni$_.JObject { r'(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/ByteString;', ); - static final _encodeString = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _encodeString = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final okio.ByteString encodeString(java.lang.String string, java.nio.charset.Charset charset)` /// The returned object must be released after use, by calling the [release] method. - ByteString encodeString( - jni$_.JString string, - jni$_.JObject charset, - ) { + ByteString encodeString(jni$_.JString string, jni$_.JObject charset) { final _$string = string.reference; final _$charset = charset.reference; return _encodeString( - reference.pointer, - _id_encodeString as jni$_.JMethodIDPtr, - _$string.pointer, - _$charset.pointer) - .object(const $ByteString$Type()); + reference.pointer, + _id_encodeString as jni$_.JMethodIDPtr, + _$string.pointer, + _$charset.pointer, + ).object(const $ByteString$Type()); } static final _id_decodeBase64 = _class.instanceMethodId( @@ -15065,26 +16838,33 @@ class ByteString$Companion extends jni$_.JObject { r'(Ljava/lang/String;)Lokio/ByteString;', ); - static final _decodeBase64 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _decodeBase64 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okio.ByteString decodeBase64(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - ByteString? decodeBase64( - jni$_.JString string, - ) { + ByteString? decodeBase64(jni$_.JString string) { final _$string = string.reference; - return _decodeBase64(reference.pointer, - _id_decodeBase64 as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $ByteString$NullableType()); + return _decodeBase64( + reference.pointer, + _id_decodeBase64 as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $ByteString$NullableType()); } static final _id_decodeHex = _class.instanceMethodId( @@ -15092,26 +16872,33 @@ class ByteString$Companion extends jni$_.JObject { r'(Ljava/lang/String;)Lokio/ByteString;', ); - static final _decodeHex = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _decodeHex = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okio.ByteString decodeHex(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - ByteString decodeHex( - jni$_.JString string, - ) { + ByteString decodeHex(jni$_.JString string) { final _$string = string.reference; - return _decodeHex(reference.pointer, _id_decodeHex as jni$_.JMethodIDPtr, - _$string.pointer) - .object(const $ByteString$Type()); + return _decodeHex( + reference.pointer, + _id_decodeHex as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $ByteString$Type()); } static final _id_read = _class.instanceMethodId( @@ -15119,55 +16906,71 @@ class ByteString$Companion extends jni$_.JObject { r'(Ljava/io/InputStream;I)Lokio/ByteString;', ); - static final _read = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _read = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public final okio.ByteString read(java.io.InputStream inputStream, int i)` /// The returned object must be released after use, by calling the [release] method. - ByteString read( - jni$_.JObject inputStream, - int i, - ) { + ByteString read(jni$_.JObject inputStream, int i) { final _$inputStream = inputStream.reference; - return _read(reference.pointer, _id_read as jni$_.JMethodIDPtr, - _$inputStream.pointer, i) - .object(const $ByteString$Type()); + return _read( + reference.pointer, + _id_read as jni$_.JMethodIDPtr, + _$inputStream.pointer, + i, + ).object(const $ByteString$Type()); } static final _id_new$ = _class.constructorId( r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` /// The returned object must be released after use, by calling the [release] method. - factory ByteString$Companion( - jni$_.JObject? defaultConstructorMarker, - ) { + factory ByteString$Companion(jni$_.JObject? defaultConstructorMarker) { final _$defaultConstructorMarker = defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return ByteString$Companion.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$defaultConstructorMarker.pointer) - .reference); + return ByteString$Companion.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$defaultConstructorMarker.pointer, + ).reference, + ); } } @@ -15183,11 +16986,7 @@ final class $ByteString$Companion$NullableType @jni$_.internal @core$_.override ByteString$Companion? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : ByteString$Companion.fromReference( - reference, - ); + reference.isNull ? null : ByteString$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -15222,9 +17021,7 @@ final class $ByteString$Companion$Type @jni$_.internal @core$_.override ByteString$Companion fromReference(jni$_.JReference reference) => - ByteString$Companion.fromReference( - reference, - ); + ByteString$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -15255,10 +17052,9 @@ class ByteString extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - ByteString.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ByteString.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'okio/ByteString'); @@ -15275,40 +17071,44 @@ class ByteString extends jni$_.JObject { static ByteString$Companion get Companion => _id_Companion.get(_class, const $ByteString$Companion$Type()); - static final _id_EMPTY = _class.staticFieldId( - r'EMPTY', - r'Lokio/ByteString;', - ); + static final _id_EMPTY = _class.staticFieldId(r'EMPTY', r'Lokio/ByteString;'); /// from: `static public final okio.ByteString EMPTY` /// The returned object must be released after use, by calling the [release] method. static ByteString get EMPTY => _id_EMPTY.get(_class, const $ByteString$Type()); - static final _id_new$ = _class.constructorId( - r'([B)V', - ); + static final _id_new$ = _class.constructorId(r'([B)V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void (byte[] bs)` /// The returned object must be released after use, by calling the [release] method. - factory ByteString( - jni$_.JByteArray bs, - ) { + factory ByteString(jni$_.JByteArray bs) { final _$bs = bs.reference; - return ByteString.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$bs.pointer) - .reference); + return ByteString.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$bs.pointer, + ).reference, + ); } static final _id_utf8 = _class.instanceMethodId( @@ -15316,23 +17116,29 @@ class ByteString extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _utf8 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _utf8 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.lang.String utf8()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString utf8() { - return _utf8(reference.pointer, _id_utf8 as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + return _utf8( + reference.pointer, + _id_utf8 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringType()); } static final _id_string = _class.instanceMethodId( @@ -15340,26 +17146,33 @@ class ByteString extends jni$_.JObject { r'(Ljava/nio/charset/Charset;)Ljava/lang/String;', ); - static final _string = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _string = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public java.lang.String string(java.nio.charset.Charset charset)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString string( - jni$_.JObject charset, - ) { + jni$_.JString string(jni$_.JObject charset) { final _$charset = charset.reference; - return _string(reference.pointer, _id_string as jni$_.JMethodIDPtr, - _$charset.pointer) - .object(const jni$_.JStringType()); + return _string( + reference.pointer, + _id_string as jni$_.JMethodIDPtr, + _$charset.pointer, + ).object(const jni$_.JStringType()); } static final _id_base64 = _class.instanceMethodId( @@ -15367,23 +17180,29 @@ class ByteString extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _base64 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _base64 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.lang.String base64()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString base64() { - return _base64(reference.pointer, _id_base64 as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + return _base64( + reference.pointer, + _id_base64 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringType()); } static final _id_md5 = _class.instanceMethodId( @@ -15391,23 +17210,29 @@ class ByteString extends jni$_.JObject { r'()Lokio/ByteString;', ); - static final _md5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _md5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okio.ByteString md5()` /// The returned object must be released after use, by calling the [release] method. ByteString md5() { - return _md5(reference.pointer, _id_md5 as jni$_.JMethodIDPtr) - .object(const $ByteString$Type()); + return _md5( + reference.pointer, + _id_md5 as jni$_.JMethodIDPtr, + ).object(const $ByteString$Type()); } static final _id_sha1 = _class.instanceMethodId( @@ -15415,23 +17240,29 @@ class ByteString extends jni$_.JObject { r'()Lokio/ByteString;', ); - static final _sha1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _sha1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okio.ByteString sha1()` /// The returned object must be released after use, by calling the [release] method. ByteString sha1() { - return _sha1(reference.pointer, _id_sha1 as jni$_.JMethodIDPtr) - .object(const $ByteString$Type()); + return _sha1( + reference.pointer, + _id_sha1 as jni$_.JMethodIDPtr, + ).object(const $ByteString$Type()); } static final _id_sha256 = _class.instanceMethodId( @@ -15439,23 +17270,29 @@ class ByteString extends jni$_.JObject { r'()Lokio/ByteString;', ); - static final _sha256 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _sha256 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); + /// from: `public final okio.ByteString sha256()` /// The returned object must be released after use, by calling the [release] method. ByteString sha256() { - return _sha256(reference.pointer, _id_sha256 as jni$_.JMethodIDPtr) - .object(const $ByteString$Type()); + return _sha256( + reference.pointer, + _id_sha256 as jni$_.JMethodIDPtr, + ).object(const $ByteString$Type()); } static final _id_sha512 = _class.instanceMethodId( @@ -15463,23 +17300,29 @@ class ByteString extends jni$_.JObject { r'()Lokio/ByteString;', ); - static final _sha512 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _sha512 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okio.ByteString sha512()` /// The returned object must be released after use, by calling the [release] method. ByteString sha512() { - return _sha512(reference.pointer, _id_sha512 as jni$_.JMethodIDPtr) - .object(const $ByteString$Type()); + return _sha512( + reference.pointer, + _id_sha512 as jni$_.JMethodIDPtr, + ).object(const $ByteString$Type()); } static final _id_hmacSha1 = _class.instanceMethodId( @@ -15487,26 +17330,33 @@ class ByteString extends jni$_.JObject { r'(Lokio/ByteString;)Lokio/ByteString;', ); - static final _hmacSha1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _hmacSha1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public okio.ByteString hmacSha1(okio.ByteString byteString)` /// The returned object must be released after use, by calling the [release] method. - ByteString hmacSha1( - ByteString byteString, - ) { + ByteString hmacSha1(ByteString byteString) { final _$byteString = byteString.reference; - return _hmacSha1(reference.pointer, _id_hmacSha1 as jni$_.JMethodIDPtr, - _$byteString.pointer) - .object(const $ByteString$Type()); + return _hmacSha1( + reference.pointer, + _id_hmacSha1 as jni$_.JMethodIDPtr, + _$byteString.pointer, + ).object(const $ByteString$Type()); } static final _id_hmacSha256 = _class.instanceMethodId( @@ -15514,26 +17364,33 @@ class ByteString extends jni$_.JObject { r'(Lokio/ByteString;)Lokio/ByteString;', ); - static final _hmacSha256 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _hmacSha256 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public okio.ByteString hmacSha256(okio.ByteString byteString)` /// The returned object must be released after use, by calling the [release] method. - ByteString hmacSha256( - ByteString byteString, - ) { + ByteString hmacSha256(ByteString byteString) { final _$byteString = byteString.reference; - return _hmacSha256(reference.pointer, _id_hmacSha256 as jni$_.JMethodIDPtr, - _$byteString.pointer) - .object(const $ByteString$Type()); + return _hmacSha256( + reference.pointer, + _id_hmacSha256 as jni$_.JMethodIDPtr, + _$byteString.pointer, + ).object(const $ByteString$Type()); } static final _id_hmacSha512 = _class.instanceMethodId( @@ -15541,26 +17398,33 @@ class ByteString extends jni$_.JObject { r'(Lokio/ByteString;)Lokio/ByteString;', ); - static final _hmacSha512 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _hmacSha512 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public okio.ByteString hmacSha512(okio.ByteString byteString)` /// The returned object must be released after use, by calling the [release] method. - ByteString hmacSha512( - ByteString byteString, - ) { + ByteString hmacSha512(ByteString byteString) { final _$byteString = byteString.reference; - return _hmacSha512(reference.pointer, _id_hmacSha512 as jni$_.JMethodIDPtr, - _$byteString.pointer) - .object(const $ByteString$Type()); + return _hmacSha512( + reference.pointer, + _id_hmacSha512 as jni$_.JMethodIDPtr, + _$byteString.pointer, + ).object(const $ByteString$Type()); } static final _id_base64Url = _class.instanceMethodId( @@ -15568,23 +17432,29 @@ class ByteString extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _base64Url = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _base64Url = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.lang.String base64Url()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString base64Url() { - return _base64Url(reference.pointer, _id_base64Url as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + return _base64Url( + reference.pointer, + _id_base64Url as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringType()); } static final _id_hex = _class.instanceMethodId( @@ -15592,23 +17462,29 @@ class ByteString extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _hex = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hex = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.lang.String hex()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString hex() { - return _hex(reference.pointer, _id_hex as jni$_.JMethodIDPtr) - .object(const jni$_.JStringType()); + return _hex( + reference.pointer, + _id_hex as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringType()); } static final _id_toAsciiLowercase = _class.instanceMethodId( @@ -15616,24 +17492,29 @@ class ByteString extends jni$_.JObject { r'()Lokio/ByteString;', ); - static final _toAsciiLowercase = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toAsciiLowercase = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public okio.ByteString toAsciiLowercase()` /// The returned object must be released after use, by calling the [release] method. ByteString toAsciiLowercase() { return _toAsciiLowercase( - reference.pointer, _id_toAsciiLowercase as jni$_.JMethodIDPtr) - .object(const $ByteString$Type()); + reference.pointer, + _id_toAsciiLowercase as jni$_.JMethodIDPtr, + ).object(const $ByteString$Type()); } static final _id_toAsciiUppercase = _class.instanceMethodId( @@ -15641,24 +17522,29 @@ class ByteString extends jni$_.JObject { r'()Lokio/ByteString;', ); - static final _toAsciiUppercase = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toAsciiUppercase = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public okio.ByteString toAsciiUppercase()` /// The returned object must be released after use, by calling the [release] method. ByteString toAsciiUppercase() { return _toAsciiUppercase( - reference.pointer, _id_toAsciiUppercase as jni$_.JMethodIDPtr) - .object(const $ByteString$Type()); + reference.pointer, + _id_toAsciiUppercase as jni$_.JMethodIDPtr, + ).object(const $ByteString$Type()); } static final _id_substring = _class.instanceMethodId( @@ -15666,67 +17552,82 @@ class ByteString extends jni$_.JObject { r'(II)Lokio/ByteString;', ); - static final _substring = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32, jni$_.Int32)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int, int)>(); + static final _substring = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32, jni$_.Int32)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + int, + ) + >(); /// from: `public okio.ByteString substring(int i, int i1)` /// The returned object must be released after use, by calling the [release] method. - ByteString substring( - int i, - int i1, - ) { + ByteString substring(int i, int i1) { return _substring( - reference.pointer, _id_substring as jni$_.JMethodIDPtr, i, i1) - .object(const $ByteString$Type()); + reference.pointer, + _id_substring as jni$_.JMethodIDPtr, + i, + i1, + ).object(const $ByteString$Type()); } - static final _id_getByte = _class.instanceMethodId( - r'getByte', - r'(I)B', - ); + static final _id_getByte = _class.instanceMethodId(r'getByte', r'(I)B'); - static final _getByte = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getByte = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallByteMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallByteMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public final byte getByte(int i)` - int getByte( - int i, - ) { - return _getByte(reference.pointer, _id_getByte as jni$_.JMethodIDPtr, i) - .byte; + int getByte(int i) { + return _getByte( + reference.pointer, + _id_getByte as jni$_.JMethodIDPtr, + i, + ).byte; } - static final _id_size = _class.instanceMethodId( - r'size', - r'()I', - ); + static final _id_size = _class.instanceMethodId(r'size', r'()I'); - static final _size = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _size = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final int size()` int size() { @@ -15738,24 +17639,29 @@ class ByteString extends jni$_.JObject { r'()[B', ); - static final _toByteArray = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toByteArray = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public byte[] toByteArray()` /// The returned object must be released after use, by calling the [release] method. jni$_.JByteArray toByteArray() { return _toByteArray( - reference.pointer, _id_toByteArray as jni$_.JMethodIDPtr) - .object(const jni$_.JByteArrayType()); + reference.pointer, + _id_toByteArray as jni$_.JMethodIDPtr, + ).object(const jni$_.JByteArrayType()); } static final _id_asByteBuffer = _class.instanceMethodId( @@ -15763,24 +17669,29 @@ class ByteString extends jni$_.JObject { r'()Ljava/nio/ByteBuffer;', ); - static final _asByteBuffer = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _asByteBuffer = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.nio.ByteBuffer asByteBuffer()` /// The returned object must be released after use, by calling the [release] method. jni$_.JByteBuffer asByteBuffer() { return _asByteBuffer( - reference.pointer, _id_asByteBuffer as jni$_.JMethodIDPtr) - .object(const jni$_.JByteBufferType()); + reference.pointer, + _id_asByteBuffer as jni$_.JMethodIDPtr, + ).object(const jni$_.JByteBufferType()); } static final _id_write = _class.instanceMethodId( @@ -15788,25 +17699,32 @@ class ByteString extends jni$_.JObject { r'(Ljava/io/OutputStream;)V', ); - static final _write = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _write = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void write(java.io.OutputStream outputStream)` - void write( - jni$_.JObject outputStream, - ) { + void write(jni$_.JObject outputStream) { final _$outputStream = outputStream.reference; - _write(reference.pointer, _id_write as jni$_.JMethodIDPtr, - _$outputStream.pointer) - .check(); + _write( + reference.pointer, + _id_write as jni$_.JMethodIDPtr, + _$outputStream.pointer, + ).check(); } static final _id_rangeEquals = _class.instanceMethodId( @@ -15814,38 +17732,45 @@ class ByteString extends jni$_.JObject { r'(ILokio/ByteString;II)Z', ); - static final _rangeEquals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _rangeEquals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `public boolean rangeEquals(int i, okio.ByteString byteString, int i1, int i2)` - bool rangeEquals( - int i, - ByteString byteString, - int i1, - int i2, - ) { + bool rangeEquals(int i, ByteString byteString, int i1, int i2) { final _$byteString = byteString.reference; return _rangeEquals( - reference.pointer, - _id_rangeEquals as jni$_.JMethodIDPtr, - i, - _$byteString.pointer, - i1, - i2) - .boolean; + reference.pointer, + _id_rangeEquals as jni$_.JMethodIDPtr, + i, + _$byteString.pointer, + i1, + i2, + ).boolean; } static final _id_rangeEquals$1 = _class.instanceMethodId( @@ -15853,67 +17778,88 @@ class ByteString extends jni$_.JObject { r'(I[BII)Z', ); - static final _rangeEquals$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _rangeEquals$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `public boolean rangeEquals(int i, byte[] bs, int i1, int i2)` - bool rangeEquals$1( - int i, - jni$_.JByteArray bs, - int i1, - int i2, - ) { + bool rangeEquals$1(int i, jni$_.JByteArray bs, int i1, int i2) { final _$bs = bs.reference; - return _rangeEquals$1(reference.pointer, - _id_rangeEquals$1 as jni$_.JMethodIDPtr, i, _$bs.pointer, i1, i2) - .boolean; + return _rangeEquals$1( + reference.pointer, + _id_rangeEquals$1 as jni$_.JMethodIDPtr, + i, + _$bs.pointer, + i1, + i2, + ).boolean; } - static final _id_copyInto = _class.instanceMethodId( - r'copyInto', - r'(I[BII)V', - ); + static final _id_copyInto = _class.instanceMethodId(r'copyInto', r'(I[BII)V'); - static final _copyInto = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _copyInto = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `public void copyInto(int i, byte[] bs, int i1, int i2)` - void copyInto( - int i, - jni$_.JByteArray bs, - int i1, - int i2, - ) { + void copyInto(int i, jni$_.JByteArray bs, int i1, int i2) { final _$bs = bs.reference; - _copyInto(reference.pointer, _id_copyInto as jni$_.JMethodIDPtr, i, - _$bs.pointer, i1, i2) - .check(); + _copyInto( + reference.pointer, + _id_copyInto as jni$_.JMethodIDPtr, + i, + _$bs.pointer, + i1, + i2, + ).check(); } static final _id_startsWith = _class.instanceMethodId( @@ -15921,25 +17867,32 @@ class ByteString extends jni$_.JObject { r'(Lokio/ByteString;)Z', ); - static final _startsWith = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _startsWith = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final boolean startsWith(okio.ByteString byteString)` - bool startsWith( - ByteString byteString, - ) { + bool startsWith(ByteString byteString) { final _$byteString = byteString.reference; - return _startsWith(reference.pointer, _id_startsWith as jni$_.JMethodIDPtr, - _$byteString.pointer) - .boolean; + return _startsWith( + reference.pointer, + _id_startsWith as jni$_.JMethodIDPtr, + _$byteString.pointer, + ).boolean; } static final _id_startsWith$1 = _class.instanceMethodId( @@ -15947,25 +17900,32 @@ class ByteString extends jni$_.JObject { r'([B)Z', ); - static final _startsWith$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _startsWith$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final boolean startsWith(byte[] bs)` - bool startsWith$1( - jni$_.JByteArray bs, - ) { + bool startsWith$1(jni$_.JByteArray bs) { final _$bs = bs.reference; - return _startsWith$1(reference.pointer, - _id_startsWith$1 as jni$_.JMethodIDPtr, _$bs.pointer) - .boolean; + return _startsWith$1( + reference.pointer, + _id_startsWith$1 as jni$_.JMethodIDPtr, + _$bs.pointer, + ).boolean; } static final _id_endsWith = _class.instanceMethodId( @@ -15973,51 +17933,62 @@ class ByteString extends jni$_.JObject { r'(Lokio/ByteString;)Z', ); - static final _endsWith = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _endsWith = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final boolean endsWith(okio.ByteString byteString)` - bool endsWith( - ByteString byteString, - ) { + bool endsWith(ByteString byteString) { final _$byteString = byteString.reference; - return _endsWith(reference.pointer, _id_endsWith as jni$_.JMethodIDPtr, - _$byteString.pointer) - .boolean; + return _endsWith( + reference.pointer, + _id_endsWith as jni$_.JMethodIDPtr, + _$byteString.pointer, + ).boolean; } - static final _id_endsWith$1 = _class.instanceMethodId( - r'endsWith', - r'([B)Z', - ); + static final _id_endsWith$1 = _class.instanceMethodId(r'endsWith', r'([B)Z'); - static final _endsWith$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _endsWith$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final boolean endsWith(byte[] bs)` - bool endsWith$1( - jni$_.JByteArray bs, - ) { + bool endsWith$1(jni$_.JByteArray bs) { final _$bs = bs.reference; - return _endsWith$1(reference.pointer, _id_endsWith$1 as jni$_.JMethodIDPtr, - _$bs.pointer) - .boolean; + return _endsWith$1( + reference.pointer, + _id_endsWith$1 as jni$_.JMethodIDPtr, + _$bs.pointer, + ).boolean; } static final _id_indexOf = _class.instanceMethodId( @@ -16025,55 +17996,66 @@ class ByteString extends jni$_.JObject { r'(Lokio/ByteString;I)I', ); - static final _indexOf = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _indexOf = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public final int indexOf(okio.ByteString byteString, int i)` - int indexOf( - ByteString byteString, - int i, - ) { + int indexOf(ByteString byteString, int i) { final _$byteString = byteString.reference; - return _indexOf(reference.pointer, _id_indexOf as jni$_.JMethodIDPtr, - _$byteString.pointer, i) - .integer; + return _indexOf( + reference.pointer, + _id_indexOf as jni$_.JMethodIDPtr, + _$byteString.pointer, + i, + ).integer; } - static final _id_indexOf$1 = _class.instanceMethodId( - r'indexOf', - r'([BI)I', - ); + static final _id_indexOf$1 = _class.instanceMethodId(r'indexOf', r'([BI)I'); - static final _indexOf$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _indexOf$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public int indexOf(byte[] bs, int i)` - int indexOf$1( - jni$_.JByteArray bs, - int i, - ) { + int indexOf$1(jni$_.JByteArray bs, int i) { final _$bs = bs.reference; - return _indexOf$1(reference.pointer, _id_indexOf$1 as jni$_.JMethodIDPtr, - _$bs.pointer, i) - .integer; + return _indexOf$1( + reference.pointer, + _id_indexOf$1 as jni$_.JMethodIDPtr, + _$bs.pointer, + i, + ).integer; } static final _id_lastIndexOf = _class.instanceMethodId( @@ -16081,27 +18063,34 @@ class ByteString extends jni$_.JObject { r'(Lokio/ByteString;I)I', ); - static final _lastIndexOf = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _lastIndexOf = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public final int lastIndexOf(okio.ByteString byteString, int i)` - int lastIndexOf( - ByteString byteString, - int i, - ) { + int lastIndexOf(ByteString byteString, int i) { final _$byteString = byteString.reference; - return _lastIndexOf(reference.pointer, - _id_lastIndexOf as jni$_.JMethodIDPtr, _$byteString.pointer, i) - .integer; + return _lastIndexOf( + reference.pointer, + _id_lastIndexOf as jni$_.JMethodIDPtr, + _$byteString.pointer, + i, + ).integer; } static final _id_lastIndexOf$1 = _class.instanceMethodId( @@ -16109,27 +18098,34 @@ class ByteString extends jni$_.JObject { r'([BI)I', ); - static final _lastIndexOf$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _lastIndexOf$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public int lastIndexOf(byte[] bs, int i)` - int lastIndexOf$1( - jni$_.JByteArray bs, - int i, - ) { + int lastIndexOf$1(jni$_.JByteArray bs, int i) { final _$bs = bs.reference; - return _lastIndexOf$1(reference.pointer, - _id_lastIndexOf$1 as jni$_.JMethodIDPtr, _$bs.pointer, i) - .integer; + return _lastIndexOf$1( + reference.pointer, + _id_lastIndexOf$1 as jni$_.JMethodIDPtr, + _$bs.pointer, + i, + ).integer; } static final _id_equals = _class.instanceMethodId( @@ -16137,48 +18133,58 @@ class ByteString extends jni$_.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( - jni$_.JObject? object, - ) { + bool equals(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; + return _equals( + reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + _$object.pointer, + ).boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); + static final _id_hashCode$1 = _class.instanceMethodId(r'hashCode', r'()I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + 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) - .integer; + return _hashCode$1( + reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + ).integer; } static final _id_compareTo = _class.instanceMethodId( @@ -16186,25 +18192,32 @@ class ByteString extends jni$_.JObject { r'(Lokio/ByteString;)I', ); - static final _compareTo = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _compareTo = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public int compareTo(okio.ByteString byteString)` - int compareTo( - ByteString byteString, - ) { + int compareTo(ByteString byteString) { final _$byteString = byteString.reference; - return _compareTo(reference.pointer, _id_compareTo as jni$_.JMethodIDPtr, - _$byteString.pointer) - .integer; + return _compareTo( + reference.pointer, + _id_compareTo as jni$_.JMethodIDPtr, + _$byteString.pointer, + ).integer; } static final _id_toString$1 = _class.instanceMethodId( @@ -16212,23 +18225,29 @@ class ByteString extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + 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()); + return _toString$1( + reference.pointer, + _id_toString$1 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringType()); } static final _id_substring$1 = _class.instanceMethodId( @@ -16236,24 +18255,32 @@ class ByteString extends jni$_.JObject { r'(I)Lokio/ByteString;', ); - static final _substring$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _substring$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public final okio.ByteString substring(int i)` /// The returned object must be released after use, by calling the [release] method. - ByteString substring$1( - int i, - ) { + ByteString substring$1(int i) { return _substring$1( - reference.pointer, _id_substring$1 as jni$_.JMethodIDPtr, i) - .object(const $ByteString$Type()); + reference.pointer, + _id_substring$1 as jni$_.JMethodIDPtr, + i, + ).object(const $ByteString$Type()); } static final _id_substring$2 = _class.instanceMethodId( @@ -16261,24 +18288,29 @@ class ByteString extends jni$_.JObject { r'()Lokio/ByteString;', ); - static final _substring$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _substring$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final okio.ByteString substring()` /// The returned object must be released after use, by calling the [release] method. ByteString substring$2() { return _substring$2( - reference.pointer, _id_substring$2 as jni$_.JMethodIDPtr) - .object(const $ByteString$Type()); + reference.pointer, + _id_substring$2 as jni$_.JMethodIDPtr, + ).object(const $ByteString$Type()); } static final _id_indexOf$2 = _class.instanceMethodId( @@ -16286,51 +18318,62 @@ class ByteString extends jni$_.JObject { r'(Lokio/ByteString;)I', ); - static final _indexOf$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _indexOf$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final int indexOf(okio.ByteString byteString)` - int indexOf$2( - ByteString byteString, - ) { + int indexOf$2(ByteString byteString) { final _$byteString = byteString.reference; - return _indexOf$2(reference.pointer, _id_indexOf$2 as jni$_.JMethodIDPtr, - _$byteString.pointer) - .integer; + return _indexOf$2( + reference.pointer, + _id_indexOf$2 as jni$_.JMethodIDPtr, + _$byteString.pointer, + ).integer; } - static final _id_indexOf$3 = _class.instanceMethodId( - r'indexOf', - r'([B)I', - ); + static final _id_indexOf$3 = _class.instanceMethodId(r'indexOf', r'([B)I'); - static final _indexOf$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _indexOf$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final int indexOf(byte[] bs)` - int indexOf$3( - jni$_.JByteArray bs, - ) { + int indexOf$3(jni$_.JByteArray bs) { final _$bs = bs.reference; - return _indexOf$3(reference.pointer, _id_indexOf$3 as jni$_.JMethodIDPtr, - _$bs.pointer) - .integer; + return _indexOf$3( + reference.pointer, + _id_indexOf$3 as jni$_.JMethodIDPtr, + _$bs.pointer, + ).integer; } static final _id_lastIndexOf$2 = _class.instanceMethodId( @@ -16338,25 +18381,32 @@ class ByteString extends jni$_.JObject { r'(Lokio/ByteString;)I', ); - static final _lastIndexOf$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _lastIndexOf$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final int lastIndexOf(okio.ByteString byteString)` - int lastIndexOf$2( - ByteString byteString, - ) { + int lastIndexOf$2(ByteString byteString) { final _$byteString = byteString.reference; - return _lastIndexOf$2(reference.pointer, - _id_lastIndexOf$2 as jni$_.JMethodIDPtr, _$byteString.pointer) - .integer; + return _lastIndexOf$2( + reference.pointer, + _id_lastIndexOf$2 as jni$_.JMethodIDPtr, + _$byteString.pointer, + ).integer; } static final _id_lastIndexOf$3 = _class.instanceMethodId( @@ -16364,52 +18414,63 @@ class ByteString extends jni$_.JObject { r'([B)I', ); - static final _lastIndexOf$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _lastIndexOf$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final int lastIndexOf(byte[] bs)` - int lastIndexOf$3( - jni$_.JByteArray bs, - ) { + int lastIndexOf$3(jni$_.JByteArray bs) { final _$bs = bs.reference; - return _lastIndexOf$3(reference.pointer, - _id_lastIndexOf$3 as jni$_.JMethodIDPtr, _$bs.pointer) - .integer; + return _lastIndexOf$3( + reference.pointer, + _id_lastIndexOf$3 as jni$_.JMethodIDPtr, + _$bs.pointer, + ).integer; } - static final _id_of = _class.staticMethodId( - r'of', - r'([B)Lokio/ByteString;', - ); + static final _id_of = _class.staticMethodId(r'of', r'([B)Lokio/ByteString;'); - static final _of = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _of = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public final okio.ByteString of(byte[] bs)` /// The returned object must be released after use, by calling the [release] method. - static ByteString of( - jni$_.JByteArray bs, - ) { + static ByteString of(jni$_.JByteArray bs) { final _$bs = bs.reference; - return _of(_class.reference.pointer, _id_of as jni$_.JMethodIDPtr, - _$bs.pointer) - .object(const $ByteString$Type()); + return _of( + _class.reference.pointer, + _id_of as jni$_.JMethodIDPtr, + _$bs.pointer, + ).object(const $ByteString$Type()); } static final _id_of$1 = _class.staticMethodId( @@ -16417,32 +18478,39 @@ class ByteString extends jni$_.JObject { r'([BII)Lokio/ByteString;', ); - static final _of$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _of$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public final okio.ByteString of(byte[] bs, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. - static ByteString of$1( - jni$_.JByteArray bs, - int i, - int i1, - ) { + static ByteString of$1(jni$_.JByteArray bs, int i, int i1) { final _$bs = bs.reference; - return _of$1(_class.reference.pointer, _id_of$1 as jni$_.JMethodIDPtr, - _$bs.pointer, i, i1) - .object(const $ByteString$Type()); + return _of$1( + _class.reference.pointer, + _id_of$1 as jni$_.JMethodIDPtr, + _$bs.pointer, + i, + i1, + ).object(const $ByteString$Type()); } static final _id_of$2 = _class.staticMethodId( @@ -16450,26 +18518,33 @@ class ByteString extends jni$_.JObject { r'(Ljava/nio/ByteBuffer;)Lokio/ByteString;', ); - static final _of$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _of$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public final okio.ByteString of(java.nio.ByteBuffer byteBuffer)` /// The returned object must be released after use, by calling the [release] method. - static ByteString of$2( - jni$_.JByteBuffer byteBuffer, - ) { + static ByteString of$2(jni$_.JByteBuffer byteBuffer) { final _$byteBuffer = byteBuffer.reference; - return _of$2(_class.reference.pointer, _id_of$2 as jni$_.JMethodIDPtr, - _$byteBuffer.pointer) - .object(const $ByteString$Type()); + return _of$2( + _class.reference.pointer, + _id_of$2 as jni$_.JMethodIDPtr, + _$byteBuffer.pointer, + ).object(const $ByteString$Type()); } static final _id_encodeUtf8 = _class.staticMethodId( @@ -16477,26 +18552,33 @@ class ByteString extends jni$_.JObject { r'(Ljava/lang/String;)Lokio/ByteString;', ); - static final _encodeUtf8 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _encodeUtf8 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public final okio.ByteString encodeUtf8(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - static ByteString encodeUtf8( - jni$_.JString string, - ) { + static ByteString encodeUtf8(jni$_.JString string) { final _$string = string.reference; - return _encodeUtf8(_class.reference.pointer, - _id_encodeUtf8 as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $ByteString$Type()); + return _encodeUtf8( + _class.reference.pointer, + _id_encodeUtf8 as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $ByteString$Type()); } static final _id_encodeString = _class.staticMethodId( @@ -16504,37 +18586,38 @@ class ByteString extends jni$_.JObject { r'(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/ByteString;', ); - static final _encodeString = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _encodeString = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public final okio.ByteString encodeString(java.lang.String string, java.nio.charset.Charset charset)` /// The returned object must be released after use, by calling the [release] method. - static ByteString encodeString( - jni$_.JString string, - jni$_.JObject charset, - ) { + static ByteString encodeString(jni$_.JString string, jni$_.JObject charset) { final _$string = string.reference; final _$charset = charset.reference; return _encodeString( - _class.reference.pointer, - _id_encodeString as jni$_.JMethodIDPtr, - _$string.pointer, - _$charset.pointer) - .object(const $ByteString$Type()); + _class.reference.pointer, + _id_encodeString as jni$_.JMethodIDPtr, + _$string.pointer, + _$charset.pointer, + ).object(const $ByteString$Type()); } static final _id_decodeBase64 = _class.staticMethodId( @@ -16542,26 +18625,33 @@ class ByteString extends jni$_.JObject { r'(Ljava/lang/String;)Lokio/ByteString;', ); - static final _decodeBase64 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _decodeBase64 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public final okio.ByteString decodeBase64(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - static ByteString? decodeBase64( - jni$_.JString string, - ) { + static ByteString? decodeBase64(jni$_.JString string) { final _$string = string.reference; - return _decodeBase64(_class.reference.pointer, - _id_decodeBase64 as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $ByteString$NullableType()); + return _decodeBase64( + _class.reference.pointer, + _id_decodeBase64 as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $ByteString$NullableType()); } static final _id_decodeHex = _class.staticMethodId( @@ -16569,26 +18659,33 @@ class ByteString extends jni$_.JObject { r'(Ljava/lang/String;)Lokio/ByteString;', ); - static final _decodeHex = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _decodeHex = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public final okio.ByteString decodeHex(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - static ByteString decodeHex( - jni$_.JString string, - ) { + static ByteString decodeHex(jni$_.JString string) { final _$string = string.reference; - return _decodeHex(_class.reference.pointer, - _id_decodeHex as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $ByteString$Type()); + return _decodeHex( + _class.reference.pointer, + _id_decodeHex as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $ByteString$Type()); } static final _id_read = _class.staticMethodId( @@ -16596,28 +18693,35 @@ class ByteString extends jni$_.JObject { r'(Ljava/io/InputStream;I)Lokio/ByteString;', ); - static final _read = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _read = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `static public final okio.ByteString read(java.io.InputStream inputStream, int i)` /// The returned object must be released after use, by calling the [release] method. - static ByteString read( - jni$_.JObject inputStream, - int i, - ) { + static ByteString read(jni$_.JObject inputStream, int i) { final _$inputStream = inputStream.reference; - return _read(_class.reference.pointer, _id_read as jni$_.JMethodIDPtr, - _$inputStream.pointer, i) - .object(const $ByteString$Type()); + return _read( + _class.reference.pointer, + _id_read as jni$_.JMethodIDPtr, + _$inputStream.pointer, + i, + ).object(const $ByteString$Type()); } } @@ -16631,11 +18735,8 @@ final class $ByteString$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - ByteString? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : ByteString.fromReference( - reference, - ); + ByteString? fromReference(jni$_.JReference reference) => + reference.isNull ? null : ByteString.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -16669,9 +18770,7 @@ final class $ByteString$Type extends jni$_.JObjType { @jni$_.internal @core$_.override ByteString fromReference(jni$_.JReference reference) => - ByteString.fromReference( - reference, - ); + ByteString.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -16701,13 +18800,13 @@ class WebSocketInterceptor$Companion extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - WebSocketInterceptor$Companion.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + WebSocketInterceptor$Companion.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'com/example/ok_http/WebSocketInterceptor$Companion'); + r'com/example/ok_http/WebSocketInterceptor$Companion', + ); /// The type which includes information such as the signature of this class. static const nullableType = $WebSocketInterceptor$Companion$NullableType(); @@ -16717,42 +18816,56 @@ class WebSocketInterceptor$Companion extends jni$_.JObject { r'(Lokhttp3/OkHttpClient$Builder;)Lokhttp3/OkHttpClient$Builder;', ); - static final _addWSInterceptor = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _addWSInterceptor = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final okhttp3.OkHttpClient$Builder addWSInterceptor(okhttp3.OkHttpClient$Builder builder)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient$Builder addWSInterceptor( - OkHttpClient$Builder builder, - ) { + OkHttpClient$Builder addWSInterceptor(OkHttpClient$Builder builder) { final _$builder = builder.reference; - return _addWSInterceptor(reference.pointer, - _id_addWSInterceptor as jni$_.JMethodIDPtr, _$builder.pointer) - .object(const $OkHttpClient$Builder$Type()); + return _addWSInterceptor( + reference.pointer, + _id_addWSInterceptor as jni$_.JMethodIDPtr, + _$builder.pointer, + ).object(const $OkHttpClient$Builder$Type()); } static final _id_new$ = _class.constructorId( r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` /// The returned object must be released after use, by calling the [release] method. @@ -16761,11 +18874,13 @@ class WebSocketInterceptor$Companion extends jni$_.JObject { ) { final _$defaultConstructorMarker = defaultConstructorMarker?.reference ?? jni$_.jNullReference; - return WebSocketInterceptor$Companion.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$defaultConstructorMarker.pointer) - .reference); + return WebSocketInterceptor$Companion.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$defaultConstructorMarker.pointer, + ).reference, + ); } } @@ -16783,10 +18898,8 @@ final class $WebSocketInterceptor$Companion$NullableType @core$_.override WebSocketInterceptor$Companion? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : WebSocketInterceptor$Companion.fromReference( - reference, - ); + ? null + : WebSocketInterceptor$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -16823,9 +18936,7 @@ final class $WebSocketInterceptor$Companion$Type @jni$_.internal @core$_.override WebSocketInterceptor$Companion fromReference(jni$_.JReference reference) => - WebSocketInterceptor$Companion.fromReference( - reference, - ); + WebSocketInterceptor$Companion.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -16856,13 +18967,13 @@ class WebSocketInterceptor extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - WebSocketInterceptor.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + WebSocketInterceptor.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'com/example/ok_http/WebSocketInterceptor'); + static final _class = jni$_.JClass.forName( + r'com/example/ok_http/WebSocketInterceptor', + ); /// The type which includes information such as the signature of this class. static const nullableType = $WebSocketInterceptor$NullableType(); @@ -16877,28 +18988,30 @@ class WebSocketInterceptor extends jni$_.JObject { static WebSocketInterceptor$Companion get Companion => _id_Companion.get(_class, const $WebSocketInterceptor$Companion$Type()); - static final _id_new$ = _class.constructorId( - r'()V', - ); + static final _id_new$ = _class.constructorId(r'()V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory WebSocketInterceptor() { return WebSocketInterceptor.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); } } @@ -16914,11 +19027,7 @@ final class $WebSocketInterceptor$NullableType @jni$_.internal @core$_.override WebSocketInterceptor? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : WebSocketInterceptor.fromReference( - reference, - ); + reference.isNull ? null : WebSocketInterceptor.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -16953,9 +19062,7 @@ final class $WebSocketInterceptor$Type @jni$_.internal @core$_.override WebSocketInterceptor fromReference(jni$_.JReference reference) => - WebSocketInterceptor.fromReference( - reference, - ); + WebSocketInterceptor.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectType(); @@ -16986,10 +19093,9 @@ class TimeUnit extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - TimeUnit.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + TimeUnit.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'java/util/concurrent/TimeUnit'); @@ -17069,25 +19175,31 @@ class TimeUnit extends jni$_.JObject { r'()[Ljava/util/concurrent/TimeUnit;', ); - static final _values = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _values = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `static public java.util.concurrent.TimeUnit[] values()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JArray? values() { - return _values(_class.reference.pointer, _id_values as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - $TimeUnit$NullableType())); + return _values( + _class.reference.pointer, + _id_values as jni$_.JMethodIDPtr, + ).object?>( + const jni$_.JArrayNullableType($TimeUnit$NullableType()), + ); } static final _id_valueOf = _class.staticMethodId( @@ -17095,26 +19207,33 @@ class TimeUnit extends jni$_.JObject { r'(Ljava/lang/String;)Ljava/util/concurrent/TimeUnit;', ); - static final _valueOf = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _valueOf = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.util.concurrent.TimeUnit valueOf(java.lang.String synthetic)` /// The returned object must be released after use, by calling the [release] method. - static TimeUnit? valueOf( - jni$_.JString? synthetic, - ) { + static TimeUnit? valueOf(jni$_.JString? synthetic) { final _$synthetic = synthetic?.reference ?? jni$_.jNullReference; - return _valueOf(_class.reference.pointer, _id_valueOf as jni$_.JMethodIDPtr, - _$synthetic.pointer) - .object(const $TimeUnit$NullableType()); + return _valueOf( + _class.reference.pointer, + _id_valueOf as jni$_.JMethodIDPtr, + _$synthetic.pointer, + ).object(const $TimeUnit$NullableType()); } static final _id_convert = _class.instanceMethodId( @@ -17122,27 +19241,34 @@ class TimeUnit extends jni$_.JObject { r'(JLjava/util/concurrent/TimeUnit;)J', ); - static final _convert = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Int64, jni$_.Pointer)>)>>( - 'globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + static final _convert = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64, jni$_.Pointer)>, + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + jni$_.Pointer, + ) + >(); /// from: `public long convert(long j, java.util.concurrent.TimeUnit timeUnit)` - int convert( - int j, - TimeUnit? timeUnit, - ) { + int convert(int j, TimeUnit? timeUnit) { final _$timeUnit = timeUnit?.reference ?? jni$_.jNullReference; - return _convert(reference.pointer, _id_convert as jni$_.JMethodIDPtr, j, - _$timeUnit.pointer) - .long; + return _convert( + reference.pointer, + _id_convert as jni$_.JMethodIDPtr, + j, + _$timeUnit.pointer, + ).long; } static final _id_convert$1 = _class.instanceMethodId( @@ -17150,184 +19276,230 @@ class TimeUnit extends jni$_.JObject { r'(Ljava/time/Duration;)J', ); - static final _convert$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _convert$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public long convert(java.time.Duration duration)` - int convert$1( - jni$_.JObject? duration, - ) { + int convert$1(jni$_.JObject? duration) { final _$duration = duration?.reference ?? jni$_.jNullReference; - return _convert$1(reference.pointer, _id_convert$1 as jni$_.JMethodIDPtr, - _$duration.pointer) - .long; + return _convert$1( + reference.pointer, + _id_convert$1 as jni$_.JMethodIDPtr, + _$duration.pointer, + ).long; } - static final _id_toNanos = _class.instanceMethodId( - r'toNanos', - r'(J)J', - ); + static final _id_toNanos = _class.instanceMethodId(r'toNanos', r'(J)J'); - static final _toNanos = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toNanos = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>, + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public long toNanos(long j)` - int toNanos( - int j, - ) { - return _toNanos(reference.pointer, _id_toNanos as jni$_.JMethodIDPtr, j) - .long; + int toNanos(int j) { + return _toNanos( + reference.pointer, + _id_toNanos as jni$_.JMethodIDPtr, + j, + ).long; } - static final _id_toMicros = _class.instanceMethodId( - r'toMicros', - r'(J)J', - ); + static final _id_toMicros = _class.instanceMethodId(r'toMicros', r'(J)J'); - static final _toMicros = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toMicros = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>, + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public long toMicros(long j)` - int toMicros( - int j, - ) { - return _toMicros(reference.pointer, _id_toMicros as jni$_.JMethodIDPtr, j) - .long; + int toMicros(int j) { + return _toMicros( + reference.pointer, + _id_toMicros as jni$_.JMethodIDPtr, + j, + ).long; } - static final _id_toMillis = _class.instanceMethodId( - r'toMillis', - r'(J)J', - ); + static final _id_toMillis = _class.instanceMethodId(r'toMillis', r'(J)J'); - static final _toMillis = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toMillis = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>, + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public long toMillis(long j)` - int toMillis( - int j, - ) { - return _toMillis(reference.pointer, _id_toMillis as jni$_.JMethodIDPtr, j) - .long; + int toMillis(int j) { + return _toMillis( + reference.pointer, + _id_toMillis as jni$_.JMethodIDPtr, + j, + ).long; } - static final _id_toSeconds = _class.instanceMethodId( - r'toSeconds', - r'(J)J', - ); + static final _id_toSeconds = _class.instanceMethodId(r'toSeconds', r'(J)J'); - static final _toSeconds = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toSeconds = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>, + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public long toSeconds(long j)` - int toSeconds( - int j, - ) { - return _toSeconds(reference.pointer, _id_toSeconds as jni$_.JMethodIDPtr, j) - .long; + int toSeconds(int j) { + return _toSeconds( + reference.pointer, + _id_toSeconds as jni$_.JMethodIDPtr, + j, + ).long; } - static final _id_toMinutes = _class.instanceMethodId( - r'toMinutes', - r'(J)J', - ); + static final _id_toMinutes = _class.instanceMethodId(r'toMinutes', r'(J)J'); - static final _toMinutes = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toMinutes = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>, + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public long toMinutes(long j)` - int toMinutes( - int j, - ) { - return _toMinutes(reference.pointer, _id_toMinutes as jni$_.JMethodIDPtr, j) - .long; + int toMinutes(int j) { + return _toMinutes( + reference.pointer, + _id_toMinutes as jni$_.JMethodIDPtr, + j, + ).long; } - static final _id_toHours = _class.instanceMethodId( - r'toHours', - r'(J)J', - ); + static final _id_toHours = _class.instanceMethodId(r'toHours', r'(J)J'); - static final _toHours = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toHours = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>, + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public long toHours(long j)` - int toHours( - int j, - ) { - return _toHours(reference.pointer, _id_toHours as jni$_.JMethodIDPtr, j) - .long; + int toHours(int j) { + return _toHours( + reference.pointer, + _id_toHours as jni$_.JMethodIDPtr, + j, + ).long; } - static final _id_toDays = _class.instanceMethodId( - r'toDays', - r'(J)J', - ); + static final _id_toDays = _class.instanceMethodId(r'toDays', r'(J)J'); - static final _toDays = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toDays = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>, + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public long toDays(long j)` - int toDays( - int j, - ) { + int toDays(int j) { return _toDays(reference.pointer, _id_toDays as jni$_.JMethodIDPtr, j).long; } @@ -17336,27 +19508,34 @@ class TimeUnit extends jni$_.JObject { r'(Ljava/lang/Object;J)V', ); - static final _timedWait = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int64)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _timedWait = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int64)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public void timedWait(java.lang.Object object, long j)` - void timedWait( - jni$_.JObject? object, - int j, - ) { + void timedWait(jni$_.JObject? object, int j) { final _$object = object?.reference ?? jni$_.jNullReference; - _timedWait(reference.pointer, _id_timedWait as jni$_.JMethodIDPtr, - _$object.pointer, j) - .check(); + _timedWait( + reference.pointer, + _id_timedWait as jni$_.JMethodIDPtr, + _$object.pointer, + j, + ).check(); } static final _id_timedJoin = _class.instanceMethodId( @@ -17364,48 +19543,58 @@ class TimeUnit extends jni$_.JObject { r'(Ljava/lang/Thread;J)V', ); - static final _timedJoin = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int64)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _timedJoin = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int64)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public void timedJoin(java.lang.Thread thread, long j)` - void timedJoin( - jni$_.JObject? thread, - int j, - ) { + void timedJoin(jni$_.JObject? thread, int j) { final _$thread = thread?.reference ?? jni$_.jNullReference; - _timedJoin(reference.pointer, _id_timedJoin as jni$_.JMethodIDPtr, - _$thread.pointer, j) - .check(); + _timedJoin( + reference.pointer, + _id_timedJoin as jni$_.JMethodIDPtr, + _$thread.pointer, + j, + ).check(); } - static final _id_sleep = _class.instanceMethodId( - r'sleep', - r'(J)V', - ); + static final _id_sleep = _class.instanceMethodId(r'sleep', r'(J)V'); - static final _sleep = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _sleep = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public void sleep(long j)` - void sleep( - int j, - ) { + void sleep(int j) { _sleep(reference.pointer, _id_sleep as jni$_.JMethodIDPtr, j).check(); } @@ -17414,24 +19603,29 @@ class TimeUnit extends jni$_.JObject { r'()Ljava/time/temporal/ChronoUnit;', ); - static final _toChronoUnit = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toChronoUnit = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.time.temporal.ChronoUnit toChronoUnit()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? toChronoUnit() { return _toChronoUnit( - reference.pointer, _id_toChronoUnit as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_toChronoUnit as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_of = _class.staticMethodId( @@ -17439,26 +19633,33 @@ class TimeUnit extends jni$_.JObject { r'(Ljava/time/temporal/ChronoUnit;)Ljava/util/concurrent/TimeUnit;', ); - static final _of = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _of = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.util.concurrent.TimeUnit of(java.time.temporal.ChronoUnit chronoUnit)` /// The returned object must be released after use, by calling the [release] method. - static TimeUnit? of( - jni$_.JObject? chronoUnit, - ) { + static TimeUnit? of(jni$_.JObject? chronoUnit) { final _$chronoUnit = chronoUnit?.reference ?? jni$_.jNullReference; - return _of(_class.reference.pointer, _id_of as jni$_.JMethodIDPtr, - _$chronoUnit.pointer) - .object(const $TimeUnit$NullableType()); + return _of( + _class.reference.pointer, + _id_of as jni$_.JMethodIDPtr, + _$chronoUnit.pointer, + ).object(const $TimeUnit$NullableType()); } } @@ -17472,11 +19673,8 @@ final class $TimeUnit$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - TimeUnit? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : TimeUnit.fromReference( - reference, - ); + TimeUnit? fromReference(jni$_.JReference reference) => + reference.isNull ? null : TimeUnit.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -17509,9 +19707,8 @@ final class $TimeUnit$Type extends jni$_.JObjType { @jni$_.internal @core$_.override - TimeUnit fromReference(jni$_.JReference reference) => TimeUnit.fromReference( - reference, - ); + TimeUnit fromReference(jni$_.JReference reference) => + TimeUnit.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -17540,10 +19737,9 @@ class X509TrustManager extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - X509TrustManager.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + X509TrustManager.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'javax/net/ssl/X509TrustManager'); @@ -17555,22 +19751,26 @@ class X509TrustManager extends jni$_.JObject { r'([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V', ); - static final _checkClientTrusted = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _checkClientTrusted = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void checkClientTrusted(java.security.cert.X509Certificate[] x509Certificates, java.lang.String string)` void checkClientTrusted( @@ -17581,11 +19781,11 @@ class X509TrustManager extends jni$_.JObject { x509Certificates?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; _checkClientTrusted( - reference.pointer, - _id_checkClientTrusted as jni$_.JMethodIDPtr, - _$x509Certificates.pointer, - _$string.pointer) - .check(); + reference.pointer, + _id_checkClientTrusted as jni$_.JMethodIDPtr, + _$x509Certificates.pointer, + _$string.pointer, + ).check(); } static final _id_checkServerTrusted = _class.instanceMethodId( @@ -17593,22 +19793,26 @@ class X509TrustManager extends jni$_.JObject { r'([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V', ); - static final _checkServerTrusted = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _checkServerTrusted = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void checkServerTrusted(java.security.cert.X509Certificate[] x509Certificates, java.lang.String string)` void checkServerTrusted( @@ -17619,11 +19823,11 @@ class X509TrustManager extends jni$_.JObject { x509Certificates?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; _checkServerTrusted( - reference.pointer, - _id_checkServerTrusted as jni$_.JMethodIDPtr, - _$x509Certificates.pointer, - _$string.pointer) - .check(); + reference.pointer, + _id_checkServerTrusted as jni$_.JMethodIDPtr, + _$x509Certificates.pointer, + _$string.pointer, + ).check(); } static final _id_getAcceptedIssuers = _class.instanceMethodId( @@ -17631,26 +19835,33 @@ class X509TrustManager extends jni$_.JObject { r'()[Ljava/security/cert/X509Certificate;', ); - static final _getAcceptedIssuers = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAcceptedIssuers = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.security.cert.X509Certificate[] getAcceptedIssuers()` /// The returned object must be released after use, by calling the [release] method. jni$_.JArray? getAcceptedIssuers() { return _getAcceptedIssuers( - reference.pointer, _id_getAcceptedIssuers as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - $X509Certificate$NullableType())); + reference.pointer, + _id_getAcceptedIssuers as jni$_.JMethodIDPtr, + ).object?>( + const jni$_.JArrayNullableType( + $X509Certificate$NullableType(), + ), + ); } /// Maps a specific port to the implemented interface. @@ -17662,19 +19873,16 @@ class X509TrustManager extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address), ); } static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -17687,9 +19895,11 @@ class X509TrustManager extends jni$_.JObject { r'checkClientTrusted([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V') { _$impls[$p]!.checkClientTrusted( $a![0]?.as( - const jni$_.JArrayType( - $X509Certificate$NullableType()), - releaseOriginal: true), + const jni$_.JArrayType( + $X509Certificate$NullableType(), + ), + releaseOriginal: true, + ), $a![1]?.as(const jni$_.JStringType(), releaseOriginal: true), ); return jni$_.nullptr; @@ -17698,9 +19908,11 @@ class X509TrustManager extends jni$_.JObject { r'checkServerTrusted([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V') { _$impls[$p]!.checkServerTrusted( $a![0]?.as( - const jni$_.JArrayType( - $X509Certificate$NullableType()), - releaseOriginal: true), + const jni$_.JArrayType( + $X509Certificate$NullableType(), + ), + releaseOriginal: true, + ), $a![1]?.as(const jni$_.JStringType(), releaseOriginal: true), ); return jni$_.nullptr; @@ -17734,84 +19946,97 @@ class X509TrustManager extends jni$_.JObject { final $r = _$invokeMethod($p.sendPort.nativePort, $i); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); - implementer.add( - r'javax.net.ssl.X509TrustManager', - $p, - _$invokePointer, - [ - if ($impl.checkClientTrusted$async) - r'checkClientTrusted([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V', - if ($impl.checkServerTrusted$async) - r'checkServerTrusted([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V', - ], - ); + implementer.add(r'javax.net.ssl.X509TrustManager', $p, _$invokePointer, [ + if ($impl.checkClientTrusted$async) + r'checkClientTrusted([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V', + if ($impl.checkServerTrusted$async) + r'checkServerTrusted([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V', + ]); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } - factory X509TrustManager.implement( - $X509TrustManager $impl, - ) { + factory X509TrustManager.implement($X509TrustManager $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return X509TrustManager.fromReference( - $i.implementReference(), - ); + return X509TrustManager.fromReference($i.implementReference()); } } abstract base mixin class $X509TrustManager { factory $X509TrustManager({ - required void Function(jni$_.JArray? x509Certificates, - jni$_.JString? string) - checkClientTrusted, + required void Function( + jni$_.JArray? x509Certificates, + jni$_.JString? string, + ) + checkClientTrusted, bool checkClientTrusted$async, - required void Function(jni$_.JArray? x509Certificates, - jni$_.JString? string) - checkServerTrusted, + required void Function( + jni$_.JArray? x509Certificates, + jni$_.JString? string, + ) + checkServerTrusted, bool checkServerTrusted$async, required jni$_.JArray? Function() getAcceptedIssuers, }) = _$X509TrustManager; void checkClientTrusted( - jni$_.JArray? x509Certificates, jni$_.JString? string); + jni$_.JArray? x509Certificates, + jni$_.JString? string, + ); bool get checkClientTrusted$async => false; void checkServerTrusted( - jni$_.JArray? x509Certificates, jni$_.JString? string); + jni$_.JArray? x509Certificates, + jni$_.JString? string, + ); bool get checkServerTrusted$async => false; jni$_.JArray? getAcceptedIssuers(); } final class _$X509TrustManager with $X509TrustManager { _$X509TrustManager({ - required void Function(jni$_.JArray? x509Certificates, - jni$_.JString? string) - checkClientTrusted, + required void Function( + jni$_.JArray? x509Certificates, + jni$_.JString? string, + ) + checkClientTrusted, this.checkClientTrusted$async = false, - required void Function(jni$_.JArray? x509Certificates, - jni$_.JString? string) - checkServerTrusted, + required void Function( + jni$_.JArray? x509Certificates, + jni$_.JString? string, + ) + checkServerTrusted, this.checkServerTrusted$async = false, required jni$_.JArray? Function() getAcceptedIssuers, - }) : _checkClientTrusted = checkClientTrusted, - _checkServerTrusted = checkServerTrusted, - _getAcceptedIssuers = getAcceptedIssuers; + }) : _checkClientTrusted = checkClientTrusted, + _checkServerTrusted = checkServerTrusted, + _getAcceptedIssuers = getAcceptedIssuers; - final void Function(jni$_.JArray? x509Certificates, - jni$_.JString? string) _checkClientTrusted; + final void Function( + jni$_.JArray? x509Certificates, + jni$_.JString? string, + ) + _checkClientTrusted; final bool checkClientTrusted$async; - final void Function(jni$_.JArray? x509Certificates, - jni$_.JString? string) _checkServerTrusted; + final void Function( + jni$_.JArray? x509Certificates, + jni$_.JString? string, + ) + _checkServerTrusted; final bool checkServerTrusted$async; final jni$_.JArray? Function() _getAcceptedIssuers; void checkClientTrusted( - jni$_.JArray? x509Certificates, jni$_.JString? string) { + jni$_.JArray? x509Certificates, + jni$_.JString? string, + ) { return _checkClientTrusted(x509Certificates, string); } void checkServerTrusted( - jni$_.JArray? x509Certificates, jni$_.JString? string) { + jni$_.JArray? x509Certificates, + jni$_.JString? string, + ) { return _checkServerTrusted(x509Certificates, string); } @@ -17832,11 +20057,7 @@ final class $X509TrustManager$NullableType @jni$_.internal @core$_.override X509TrustManager? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : X509TrustManager.fromReference( - reference, - ); + reference.isNull ? null : X509TrustManager.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -17870,9 +20091,7 @@ final class $X509TrustManager$Type extends jni$_.JObjType { @jni$_.internal @core$_.override X509TrustManager fromReference(jni$_.JReference reference) => - X509TrustManager.fromReference( - reference, - ); + X509TrustManager.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -17903,10 +20122,9 @@ class SocketFactory extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - SocketFactory.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + SocketFactory.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'javax/net/SocketFactory'); @@ -17918,24 +20136,29 @@ class SocketFactory extends jni$_.JObject { r'()Ljavax/net/SocketFactory;', ); - static final _getDefault = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getDefault = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `static public javax.net.SocketFactory getDefault()` /// The returned object must be released after use, by calling the [release] method. static SocketFactory? getDefault() { return _getDefault( - _class.reference.pointer, _id_getDefault as jni$_.JMethodIDPtr) - .object(const $SocketFactory$NullableType()); + _class.reference.pointer, + _id_getDefault as jni$_.JMethodIDPtr, + ).object(const $SocketFactory$NullableType()); } static final _id_createSocket = _class.instanceMethodId( @@ -17943,24 +20166,29 @@ class SocketFactory extends jni$_.JObject { r'()Ljava/net/Socket;', ); - static final _createSocket = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _createSocket = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.net.Socket createSocket()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? createSocket() { return _createSocket( - reference.pointer, _id_createSocket as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_createSocket as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_createSocket$1 = _class.instanceMethodId( @@ -17968,28 +20196,35 @@ class SocketFactory extends jni$_.JObject { r'(Ljava/lang/String;I)Ljava/net/Socket;', ); - static final _createSocket$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _createSocket$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public abstract java.net.Socket createSocket(java.lang.String string, int i)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? createSocket$1( - jni$_.JString? string, - int i, - ) { + jni$_.JObject? createSocket$1(jni$_.JString? string, int i) { final _$string = string?.reference ?? jni$_.jNullReference; - return _createSocket$1(reference.pointer, - _id_createSocket$1 as jni$_.JMethodIDPtr, _$string.pointer, i) - .object(const jni$_.JObjectNullableType()); + return _createSocket$1( + reference.pointer, + _id_createSocket$1 as jni$_.JMethodIDPtr, + _$string.pointer, + i, + ).object(const jni$_.JObjectNullableType()); } static final _id_createSocket$2 = _class.instanceMethodId( @@ -17997,26 +20232,33 @@ class SocketFactory extends jni$_.JObject { r'(Ljava/lang/String;ILjava/net/InetAddress;I)Ljava/net/Socket;', ); - static final _createSocket$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _createSocket$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32 - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, jni$_.Pointer, - int)>(); + int, + ) + >(); /// from: `public abstract java.net.Socket createSocket(java.lang.String string, int i, java.net.InetAddress inetAddress, int i1)` /// The returned object must be released after use, by calling the [release] method. @@ -18029,13 +20271,13 @@ class SocketFactory extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$inetAddress = inetAddress?.reference ?? jni$_.jNullReference; return _createSocket$2( - reference.pointer, - _id_createSocket$2 as jni$_.JMethodIDPtr, - _$string.pointer, - i, - _$inetAddress.pointer, - i1) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_createSocket$2 as jni$_.JMethodIDPtr, + _$string.pointer, + i, + _$inetAddress.pointer, + i1, + ).object(const jni$_.JObjectNullableType()); } static final _id_createSocket$3 = _class.instanceMethodId( @@ -18043,28 +20285,35 @@ class SocketFactory extends jni$_.JObject { r'(Ljava/net/InetAddress;I)Ljava/net/Socket;', ); - static final _createSocket$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _createSocket$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public abstract java.net.Socket createSocket(java.net.InetAddress inetAddress, int i)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? createSocket$3( - jni$_.JObject? inetAddress, - int i, - ) { + jni$_.JObject? createSocket$3(jni$_.JObject? inetAddress, int i) { final _$inetAddress = inetAddress?.reference ?? jni$_.jNullReference; - return _createSocket$3(reference.pointer, - _id_createSocket$3 as jni$_.JMethodIDPtr, _$inetAddress.pointer, i) - .object(const jni$_.JObjectNullableType()); + return _createSocket$3( + reference.pointer, + _id_createSocket$3 as jni$_.JMethodIDPtr, + _$inetAddress.pointer, + i, + ).object(const jni$_.JObjectNullableType()); } static final _id_createSocket$4 = _class.instanceMethodId( @@ -18072,26 +20321,33 @@ class SocketFactory extends jni$_.JObject { r'(Ljava/net/InetAddress;ILjava/net/InetAddress;I)Ljava/net/Socket;', ); - static final _createSocket$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _createSocket$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32 - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, jni$_.Pointer, - int)>(); + int, + ) + >(); /// from: `public abstract java.net.Socket createSocket(java.net.InetAddress inetAddress, int i, java.net.InetAddress inetAddress1, int i1)` /// The returned object must be released after use, by calling the [release] method. @@ -18104,13 +20360,13 @@ class SocketFactory extends jni$_.JObject { final _$inetAddress = inetAddress?.reference ?? jni$_.jNullReference; final _$inetAddress1 = inetAddress1?.reference ?? jni$_.jNullReference; return _createSocket$4( - reference.pointer, - _id_createSocket$4 as jni$_.JMethodIDPtr, - _$inetAddress.pointer, - i, - _$inetAddress1.pointer, - i1) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_createSocket$4 as jni$_.JMethodIDPtr, + _$inetAddress.pointer, + i, + _$inetAddress1.pointer, + i1, + ).object(const jni$_.JObjectNullableType()); } } @@ -18124,11 +20380,8 @@ final class $SocketFactory$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - SocketFactory? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : SocketFactory.fromReference( - reference, - ); + SocketFactory? fromReference(jni$_.JReference reference) => + reference.isNull ? null : SocketFactory.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -18162,9 +20415,7 @@ final class $SocketFactory$Type extends jni$_.JObjType { @jni$_.internal @core$_.override SocketFactory fromReference(jni$_.JReference reference) => - SocketFactory.fromReference( - reference, - ); + SocketFactory.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -18195,10 +20446,9 @@ class SSLSocketFactory extends SocketFactory { final jni$_.JObjType $type; @jni$_.internal - SSLSocketFactory.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + SSLSocketFactory.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'javax/net/ssl/SSLSocketFactory'); @@ -18210,24 +20460,29 @@ class SSLSocketFactory extends SocketFactory { r'()Ljavax/net/SocketFactory;', ); - static final _getDefault = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getDefault = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `static public javax.net.SocketFactory getDefault()` /// The returned object must be released after use, by calling the [release] method. static SocketFactory? getDefault() { return _getDefault( - _class.reference.pointer, _id_getDefault as jni$_.JMethodIDPtr) - .object(const $SocketFactory$NullableType()); + _class.reference.pointer, + _id_getDefault as jni$_.JMethodIDPtr, + ).object(const $SocketFactory$NullableType()); } static final _id_getDefaultCipherSuites = _class.instanceMethodId( @@ -18235,26 +20490,33 @@ class SSLSocketFactory extends SocketFactory { r'()[Ljava/lang/String;', ); - static final _getDefaultCipherSuites = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getDefaultCipherSuites = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.lang.String[] getDefaultCipherSuites()` /// The returned object must be released after use, by calling the [release] method. jni$_.JArray? getDefaultCipherSuites() { return _getDefaultCipherSuites( - reference.pointer, _id_getDefaultCipherSuites as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - jni$_.JStringNullableType())); + reference.pointer, + _id_getDefaultCipherSuites as jni$_.JMethodIDPtr, + ).object?>( + const jni$_.JArrayNullableType( + jni$_.JStringNullableType(), + ), + ); } static final _id_getSupportedCipherSuites = _class.instanceMethodId( @@ -18262,26 +20524,33 @@ class SSLSocketFactory extends SocketFactory { r'()[Ljava/lang/String;', ); - static final _getSupportedCipherSuites = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getSupportedCipherSuites = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.lang.String[] getSupportedCipherSuites()` /// The returned object must be released after use, by calling the [release] method. jni$_.JArray? getSupportedCipherSuites() { - return _getSupportedCipherSuites(reference.pointer, - _id_getSupportedCipherSuites as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - jni$_.JStringNullableType())); + return _getSupportedCipherSuites( + reference.pointer, + _id_getSupportedCipherSuites as jni$_.JMethodIDPtr, + ).object?>( + const jni$_.JArrayNullableType( + jni$_.JStringNullableType(), + ), + ); } static final _id_createSocket$5 = _class.instanceMethodId( @@ -18289,26 +20558,33 @@ class SSLSocketFactory extends SocketFactory { r'(Ljava/net/Socket;Ljava/lang/String;IZ)Ljava/net/Socket;', ); - static final _createSocket$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _createSocket$5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `public abstract java.net.Socket createSocket(java.net.Socket socket, java.lang.String string, int i, boolean z)` /// The returned object must be released after use, by calling the [release] method. @@ -18321,13 +20597,13 @@ class SSLSocketFactory extends SocketFactory { final _$socket = socket?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; return _createSocket$5( - reference.pointer, - _id_createSocket$5 as jni$_.JMethodIDPtr, - _$socket.pointer, - _$string.pointer, - i, - z ? 1 : 0) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_createSocket$5 as jni$_.JMethodIDPtr, + _$socket.pointer, + _$string.pointer, + i, + z ? 1 : 0, + ).object(const jni$_.JObjectNullableType()); } } @@ -18343,11 +20619,7 @@ final class $SSLSocketFactory$NullableType @jni$_.internal @core$_.override SSLSocketFactory? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : SSLSocketFactory.fromReference( - reference, - ); + reference.isNull ? null : SSLSocketFactory.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const $SocketFactory$NullableType(); @@ -18381,9 +20653,7 @@ final class $SSLSocketFactory$Type extends jni$_.JObjType { @jni$_.internal @core$_.override SSLSocketFactory fromReference(jni$_.JReference reference) => - SSLSocketFactory.fromReference( - reference, - ); + SSLSocketFactory.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const $SocketFactory$NullableType(); @@ -18414,10 +20684,9 @@ class SSLContext extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - SSLContext.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + SSLContext.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'javax/net/ssl/SSLContext'); @@ -18429,24 +20698,29 @@ class SSLContext extends jni$_.JObject { r'()Ljavax/net/ssl/SSLContext;', ); - static final _getDefault = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getDefault = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `static public javax.net.ssl.SSLContext getDefault()` /// The returned object must be released after use, by calling the [release] method. static SSLContext? getDefault() { return _getDefault( - _class.reference.pointer, _id_getDefault as jni$_.JMethodIDPtr) - .object(const $SSLContext$NullableType()); + _class.reference.pointer, + _id_getDefault as jni$_.JMethodIDPtr, + ).object(const $SSLContext$NullableType()); } static final _id_setDefault = _class.staticMethodId( @@ -18454,25 +20728,32 @@ class SSLContext extends jni$_.JObject { r'(Ljavax/net/ssl/SSLContext;)V', ); - static final _setDefault = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _setDefault = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public void setDefault(javax.net.ssl.SSLContext sSLContext)` - static void setDefault( - SSLContext? sSLContext, - ) { + static void setDefault(SSLContext? sSLContext) { final _$sSLContext = sSLContext?.reference ?? jni$_.jNullReference; - _setDefault(_class.reference.pointer, _id_setDefault as jni$_.JMethodIDPtr, - _$sSLContext.pointer) - .check(); + _setDefault( + _class.reference.pointer, + _id_setDefault as jni$_.JMethodIDPtr, + _$sSLContext.pointer, + ).check(); } static final _id_getInstance = _class.staticMethodId( @@ -18480,26 +20761,33 @@ class SSLContext extends jni$_.JObject { r'(Ljava/lang/String;)Ljavax/net/ssl/SSLContext;', ); - static final _getInstance = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _getInstance = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public javax.net.ssl.SSLContext getInstance(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - static SSLContext? getInstance( - jni$_.JString? string, - ) { + static SSLContext? getInstance(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _getInstance(_class.reference.pointer, - _id_getInstance as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $SSLContext$NullableType()); + return _getInstance( + _class.reference.pointer, + _id_getInstance as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $SSLContext$NullableType()); } static final _id_getInstance$1 = _class.staticMethodId( @@ -18507,22 +20795,26 @@ class SSLContext extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)Ljavax/net/ssl/SSLContext;', ); - static final _getInstance$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getInstance$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public javax.net.ssl.SSLContext getInstance(java.lang.String string, java.lang.String string1)` /// The returned object must be released after use, by calling the [release] method. @@ -18533,11 +20825,11 @@ class SSLContext extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; return _getInstance$1( - _class.reference.pointer, - _id_getInstance$1 as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer) - .object(const $SSLContext$NullableType()); + _class.reference.pointer, + _id_getInstance$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).object(const $SSLContext$NullableType()); } static final _id_getInstance$2 = _class.staticMethodId( @@ -18545,22 +20837,26 @@ class SSLContext extends jni$_.JObject { r'(Ljava/lang/String;Ljava/security/Provider;)Ljavax/net/ssl/SSLContext;', ); - static final _getInstance$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getInstance$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public javax.net.ssl.SSLContext getInstance(java.lang.String string, java.security.Provider provider)` /// The returned object must be released after use, by calling the [release] method. @@ -18571,11 +20867,11 @@ class SSLContext extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$provider = provider?.reference ?? jni$_.jNullReference; return _getInstance$2( - _class.reference.pointer, - _id_getInstance$2 as jni$_.JMethodIDPtr, - _$string.pointer, - _$provider.pointer) - .object(const $SSLContext$NullableType()); + _class.reference.pointer, + _id_getInstance$2 as jni$_.JMethodIDPtr, + _$string.pointer, + _$provider.pointer, + ).object(const $SSLContext$NullableType()); } static final _id_getProtocol = _class.instanceMethodId( @@ -18583,24 +20879,29 @@ class SSLContext extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getProtocol = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getProtocol = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.lang.String getProtocol()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getProtocol() { return _getProtocol( - reference.pointer, _id_getProtocol as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getProtocol as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getProvider = _class.instanceMethodId( @@ -18608,24 +20909,29 @@ class SSLContext extends jni$_.JObject { r'()Ljava/security/Provider;', ); - static final _getProvider = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getProvider = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.security.Provider getProvider()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getProvider() { return _getProvider( - reference.pointer, _id_getProvider as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getProvider as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_init = _class.instanceMethodId( @@ -18633,24 +20939,31 @@ class SSLContext extends jni$_.JObject { r'([Ljavax/net/ssl/KeyManager;[Ljavax/net/ssl/TrustManager;Ljava/security/SecureRandom;)V', ); - static final _init = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _init = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final void init(javax.net.ssl.KeyManager[] keyManagers, javax.net.ssl.TrustManager[] trustManagers, java.security.SecureRandom secureRandom)` void init( @@ -18662,12 +20975,12 @@ class SSLContext extends jni$_.JObject { final _$trustManagers = trustManagers?.reference ?? jni$_.jNullReference; final _$secureRandom = secureRandom?.reference ?? jni$_.jNullReference; _init( - reference.pointer, - _id_init as jni$_.JMethodIDPtr, - _$keyManagers.pointer, - _$trustManagers.pointer, - _$secureRandom.pointer) - .check(); + reference.pointer, + _id_init as jni$_.JMethodIDPtr, + _$keyManagers.pointer, + _$trustManagers.pointer, + _$secureRandom.pointer, + ).check(); } static final _id_getSocketFactory = _class.instanceMethodId( @@ -18675,24 +20988,29 @@ class SSLContext extends jni$_.JObject { r'()Ljavax/net/ssl/SSLSocketFactory;', ); - static final _getSocketFactory = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getSocketFactory = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final javax.net.ssl.SSLSocketFactory getSocketFactory()` /// The returned object must be released after use, by calling the [release] method. SSLSocketFactory? getSocketFactory() { return _getSocketFactory( - reference.pointer, _id_getSocketFactory as jni$_.JMethodIDPtr) - .object(const $SSLSocketFactory$NullableType()); + reference.pointer, + _id_getSocketFactory as jni$_.JMethodIDPtr, + ).object(const $SSLSocketFactory$NullableType()); } static final _id_getServerSocketFactory = _class.instanceMethodId( @@ -18700,24 +21018,29 @@ class SSLContext extends jni$_.JObject { r'()Ljavax/net/ssl/SSLServerSocketFactory;', ); - static final _getServerSocketFactory = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getServerSocketFactory = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final javax.net.ssl.SSLServerSocketFactory getServerSocketFactory()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getServerSocketFactory() { return _getServerSocketFactory( - reference.pointer, _id_getServerSocketFactory as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getServerSocketFactory as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_createSSLEngine = _class.instanceMethodId( @@ -18725,24 +21048,29 @@ class SSLContext extends jni$_.JObject { r'()Ljavax/net/ssl/SSLEngine;', ); - static final _createSSLEngine = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _createSSLEngine = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final javax.net.ssl.SSLEngine createSSLEngine()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? createSSLEngine() { return _createSSLEngine( - reference.pointer, _id_createSSLEngine as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_createSSLEngine as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_createSSLEngine$1 = _class.instanceMethodId( @@ -18750,28 +21078,35 @@ class SSLContext extends jni$_.JObject { r'(Ljava/lang/String;I)Ljavax/net/ssl/SSLEngine;', ); - static final _createSSLEngine$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _createSSLEngine$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `public final javax.net.ssl.SSLEngine createSSLEngine(java.lang.String string, int i)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? createSSLEngine$1( - jni$_.JString? string, - int i, - ) { + jni$_.JObject? createSSLEngine$1(jni$_.JString? string, int i) { final _$string = string?.reference ?? jni$_.jNullReference; - return _createSSLEngine$1(reference.pointer, - _id_createSSLEngine$1 as jni$_.JMethodIDPtr, _$string.pointer, i) - .object(const jni$_.JObjectNullableType()); + return _createSSLEngine$1( + reference.pointer, + _id_createSSLEngine$1 as jni$_.JMethodIDPtr, + _$string.pointer, + i, + ).object(const jni$_.JObjectNullableType()); } static final _id_getServerSessionContext = _class.instanceMethodId( @@ -18779,24 +21114,29 @@ class SSLContext extends jni$_.JObject { r'()Ljavax/net/ssl/SSLSessionContext;', ); - static final _getServerSessionContext = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getServerSessionContext = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final javax.net.ssl.SSLSessionContext getServerSessionContext()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getServerSessionContext() { - return _getServerSessionContext(reference.pointer, - _id_getServerSessionContext as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _getServerSessionContext( + reference.pointer, + _id_getServerSessionContext as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_getClientSessionContext = _class.instanceMethodId( @@ -18804,24 +21144,29 @@ class SSLContext extends jni$_.JObject { r'()Ljavax/net/ssl/SSLSessionContext;', ); - static final _getClientSessionContext = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getClientSessionContext = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final javax.net.ssl.SSLSessionContext getClientSessionContext()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getClientSessionContext() { - return _getClientSessionContext(reference.pointer, - _id_getClientSessionContext as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _getClientSessionContext( + reference.pointer, + _id_getClientSessionContext as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_getDefaultSSLParameters = _class.instanceMethodId( @@ -18829,24 +21174,29 @@ class SSLContext extends jni$_.JObject { r'()Ljavax/net/ssl/SSLParameters;', ); - static final _getDefaultSSLParameters = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getDefaultSSLParameters = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final javax.net.ssl.SSLParameters getDefaultSSLParameters()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getDefaultSSLParameters() { - return _getDefaultSSLParameters(reference.pointer, - _id_getDefaultSSLParameters as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _getDefaultSSLParameters( + reference.pointer, + _id_getDefaultSSLParameters as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_getSupportedSSLParameters = _class.instanceMethodId( @@ -18854,24 +21204,29 @@ class SSLContext extends jni$_.JObject { r'()Ljavax/net/ssl/SSLParameters;', ); - static final _getSupportedSSLParameters = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getSupportedSSLParameters = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final javax.net.ssl.SSLParameters getSupportedSSLParameters()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getSupportedSSLParameters() { - return _getSupportedSSLParameters(reference.pointer, - _id_getSupportedSSLParameters as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _getSupportedSSLParameters( + reference.pointer, + _id_getSupportedSSLParameters as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } } @@ -18885,11 +21240,8 @@ final class $SSLContext$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - SSLContext? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : SSLContext.fromReference( - reference, - ); + SSLContext? fromReference(jni$_.JReference reference) => + reference.isNull ? null : SSLContext.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -18923,9 +21275,7 @@ final class $SSLContext$Type extends jni$_.JObjType { @jni$_.internal @core$_.override SSLContext fromReference(jni$_.JReference reference) => - SSLContext.fromReference( - reference, - ); + SSLContext.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -18955,13 +21305,13 @@ class TrustManagerFactory extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - TrustManagerFactory.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + TrustManagerFactory.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'javax/net/ssl/TrustManagerFactory'); + static final _class = jni$_.JClass.forName( + r'javax/net/ssl/TrustManagerFactory', + ); /// The type which includes information such as the signature of this class. static const nullableType = $TrustManagerFactory$NullableType(); @@ -18971,24 +21321,29 @@ class TrustManagerFactory extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getDefaultAlgorithm = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getDefaultAlgorithm = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `static public final java.lang.String getDefaultAlgorithm()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? getDefaultAlgorithm() { - return _getDefaultAlgorithm(_class.reference.pointer, - _id_getDefaultAlgorithm as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _getDefaultAlgorithm( + _class.reference.pointer, + _id_getDefaultAlgorithm as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getAlgorithm = _class.instanceMethodId( @@ -18996,24 +21351,29 @@ class TrustManagerFactory extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getAlgorithm = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAlgorithm = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.lang.String getAlgorithm()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getAlgorithm() { return _getAlgorithm( - reference.pointer, _id_getAlgorithm as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getAlgorithm as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getInstance = _class.staticMethodId( @@ -19021,27 +21381,33 @@ class TrustManagerFactory extends jni$_.JObject { r'(Ljava/lang/String;)Ljavax/net/ssl/TrustManagerFactory;', ); - static final _getInstance = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _getInstance = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public final javax.net.ssl.TrustManagerFactory getInstance(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - static TrustManagerFactory? getInstance( - jni$_.JString? string, - ) { + static TrustManagerFactory? getInstance(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _getInstance(_class.reference.pointer, - _id_getInstance as jni$_.JMethodIDPtr, _$string.pointer) - .object( - const $TrustManagerFactory$NullableType()); + return _getInstance( + _class.reference.pointer, + _id_getInstance as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $TrustManagerFactory$NullableType()); } static final _id_getInstance$1 = _class.staticMethodId( @@ -19049,22 +21415,26 @@ class TrustManagerFactory extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)Ljavax/net/ssl/TrustManagerFactory;', ); - static final _getInstance$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getInstance$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public final javax.net.ssl.TrustManagerFactory getInstance(java.lang.String string, java.lang.String string1)` /// The returned object must be released after use, by calling the [release] method. @@ -19075,12 +21445,11 @@ class TrustManagerFactory extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; return _getInstance$1( - _class.reference.pointer, - _id_getInstance$1 as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer) - .object( - const $TrustManagerFactory$NullableType()); + _class.reference.pointer, + _id_getInstance$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).object(const $TrustManagerFactory$NullableType()); } static final _id_getInstance$2 = _class.staticMethodId( @@ -19088,22 +21457,26 @@ class TrustManagerFactory extends jni$_.JObject { r'(Ljava/lang/String;Ljava/security/Provider;)Ljavax/net/ssl/TrustManagerFactory;', ); - static final _getInstance$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getInstance$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public final javax.net.ssl.TrustManagerFactory getInstance(java.lang.String string, java.security.Provider provider)` /// The returned object must be released after use, by calling the [release] method. @@ -19114,12 +21487,11 @@ class TrustManagerFactory extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$provider = provider?.reference ?? jni$_.jNullReference; return _getInstance$2( - _class.reference.pointer, - _id_getInstance$2 as jni$_.JMethodIDPtr, - _$string.pointer, - _$provider.pointer) - .object( - const $TrustManagerFactory$NullableType()); + _class.reference.pointer, + _id_getInstance$2 as jni$_.JMethodIDPtr, + _$string.pointer, + _$provider.pointer, + ).object(const $TrustManagerFactory$NullableType()); } static final _id_getProvider = _class.instanceMethodId( @@ -19127,24 +21499,29 @@ class TrustManagerFactory extends jni$_.JObject { r'()Ljava/security/Provider;', ); - static final _getProvider = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getProvider = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.security.Provider getProvider()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getProvider() { return _getProvider( - reference.pointer, _id_getProvider as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getProvider as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_init = _class.instanceMethodId( @@ -19152,24 +21529,32 @@ class TrustManagerFactory extends jni$_.JObject { r'(Ljava/security/KeyStore;)V', ); - static final _init = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _init = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final void init(java.security.KeyStore keyStore)` - void init( - KeyStore? keyStore, - ) { + void init(KeyStore? keyStore) { final _$keyStore = keyStore?.reference ?? jni$_.jNullReference; - _init(reference.pointer, _id_init as jni$_.JMethodIDPtr, _$keyStore.pointer) - .check(); + _init( + reference.pointer, + _id_init as jni$_.JMethodIDPtr, + _$keyStore.pointer, + ).check(); } static final _id_init$1 = _class.instanceMethodId( @@ -19177,26 +21562,33 @@ class TrustManagerFactory extends jni$_.JObject { r'(Ljavax/net/ssl/ManagerFactoryParameters;)V', ); - static final _init$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _init$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final void init(javax.net.ssl.ManagerFactoryParameters managerFactoryParameters)` - void init$1( - jni$_.JObject? managerFactoryParameters, - ) { + void init$1(jni$_.JObject? managerFactoryParameters) { final _$managerFactoryParameters = managerFactoryParameters?.reference ?? jni$_.jNullReference; - _init$1(reference.pointer, _id_init$1 as jni$_.JMethodIDPtr, - _$managerFactoryParameters.pointer) - .check(); + _init$1( + reference.pointer, + _id_init$1 as jni$_.JMethodIDPtr, + _$managerFactoryParameters.pointer, + ).check(); } static final _id_getTrustManagers = _class.instanceMethodId( @@ -19204,26 +21596,33 @@ class TrustManagerFactory extends jni$_.JObject { r'()[Ljavax/net/ssl/TrustManager;', ); - static final _getTrustManagers = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getTrustManagers = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final javax.net.ssl.TrustManager[] getTrustManagers()` /// The returned object must be released after use, by calling the [release] method. jni$_.JArray? getTrustManagers() { return _getTrustManagers( - reference.pointer, _id_getTrustManagers as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - $TrustManager$NullableType())); + reference.pointer, + _id_getTrustManagers as jni$_.JMethodIDPtr, + ).object?>( + const jni$_.JArrayNullableType( + $TrustManager$NullableType(), + ), + ); } } @@ -19239,11 +21638,7 @@ final class $TrustManagerFactory$NullableType @jni$_.internal @core$_.override TrustManagerFactory? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : TrustManagerFactory.fromReference( - reference, - ); + reference.isNull ? null : TrustManagerFactory.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -19278,9 +21673,7 @@ final class $TrustManagerFactory$Type @jni$_.internal @core$_.override TrustManagerFactory fromReference(jni$_.JReference reference) => - TrustManagerFactory.fromReference( - reference, - ); + TrustManagerFactory.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -19311,10 +21704,9 @@ class TrustManager extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - TrustManager.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + TrustManager.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'javax/net/ssl/TrustManager'); @@ -19331,19 +21723,16 @@ class TrustManager extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address), ); } static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -19358,10 +21747,7 @@ class TrustManager extends jni$_.JObject { return jni$_.nullptr; } - static void implementIn( - jni$_.JImplementer implementer, - $TrustManager $impl, - ) { + static void implementIn(jni$_.JImplementer implementer, $TrustManager $impl) { late final jni$_.RawReceivePort $p; $p = jni$_.RawReceivePort(($m) { if ($m == null) { @@ -19373,24 +21759,15 @@ class TrustManager extends jni$_.JObject { final $r = _$invokeMethod($p.sendPort.nativePort, $i); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); - implementer.add( - r'javax.net.ssl.TrustManager', - $p, - _$invokePointer, - [], - ); + implementer.add(r'javax.net.ssl.TrustManager', $p, _$invokePointer, []); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } - factory TrustManager.implement( - $TrustManager $impl, - ) { + factory TrustManager.implement($TrustManager $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return TrustManager.fromReference( - $i.implementReference(), - ); + return TrustManager.fromReference($i.implementReference()); } } @@ -19412,11 +21789,8 @@ final class $TrustManager$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - TrustManager? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : TrustManager.fromReference( - reference, - ); + TrustManager? fromReference(jni$_.JReference reference) => + reference.isNull ? null : TrustManager.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -19450,9 +21824,7 @@ final class $TrustManager$Type extends jni$_.JObjType { @jni$_.internal @core$_.override TrustManager fromReference(jni$_.JReference reference) => - TrustManager.fromReference( - reference, - ); + TrustManager.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -19483,10 +21855,9 @@ class KeyStore$Builder extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - KeyStore$Builder.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + KeyStore$Builder.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'java/security/KeyStore$Builder'); @@ -19498,24 +21869,29 @@ class KeyStore$Builder extends jni$_.JObject { r'()Ljava/security/KeyStore;', ); - static final _getKeyStore = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getKeyStore = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.security.KeyStore getKeyStore()` /// The returned object must be released after use, by calling the [release] method. KeyStore? getKeyStore() { return _getKeyStore( - reference.pointer, _id_getKeyStore as jni$_.JMethodIDPtr) - .object(const $KeyStore$NullableType()); + reference.pointer, + _id_getKeyStore as jni$_.JMethodIDPtr, + ).object(const $KeyStore$NullableType()); } static final _id_getProtectionParameter = _class.instanceMethodId( @@ -19523,27 +21899,35 @@ class KeyStore$Builder extends jni$_.JObject { r'(Ljava/lang/String;)Ljava/security/KeyStore$ProtectionParameter;', ); - static final _getProtectionParameter = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _getProtectionParameter = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract java.security.KeyStore$ProtectionParameter getProtectionParameter(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - KeyStore$ProtectionParameter? getProtectionParameter( - jni$_.JString? string, - ) { + KeyStore$ProtectionParameter? getProtectionParameter(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _getProtectionParameter(reference.pointer, - _id_getProtectionParameter as jni$_.JMethodIDPtr, _$string.pointer) - .object( - const $KeyStore$ProtectionParameter$NullableType()); + return _getProtectionParameter( + reference.pointer, + _id_getProtectionParameter as jni$_.JMethodIDPtr, + _$string.pointer, + ).object( + const $KeyStore$ProtectionParameter$NullableType(), + ); } static final _id_newInstance = _class.staticMethodId( @@ -19551,22 +21935,26 @@ class KeyStore$Builder extends jni$_.JObject { r'(Ljava/security/KeyStore;Ljava/security/KeyStore$ProtectionParameter;)Ljava/security/KeyStore$Builder;', ); - static final _newInstance = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _newInstance = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public java.security.KeyStore$Builder newInstance(java.security.KeyStore keyStore, java.security.KeyStore$ProtectionParameter protectionParameter)` /// The returned object must be released after use, by calling the [release] method. @@ -19578,11 +21966,11 @@ class KeyStore$Builder extends jni$_.JObject { final _$protectionParameter = protectionParameter?.reference ?? jni$_.jNullReference; return _newInstance( - _class.reference.pointer, - _id_newInstance as jni$_.JMethodIDPtr, - _$keyStore.pointer, - _$protectionParameter.pointer) - .object(const $KeyStore$Builder$NullableType()); + _class.reference.pointer, + _id_newInstance as jni$_.JMethodIDPtr, + _$keyStore.pointer, + _$protectionParameter.pointer, + ).object(const $KeyStore$Builder$NullableType()); } static final _id_newInstance$1 = _class.staticMethodId( @@ -19590,26 +21978,33 @@ class KeyStore$Builder extends jni$_.JObject { r'(Ljava/lang/String;Ljava/security/Provider;Ljava/io/File;Ljava/security/KeyStore$ProtectionParameter;)Ljava/security/KeyStore$Builder;', ); - static final _newInstance$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _newInstance$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public java.security.KeyStore$Builder newInstance(java.lang.String string, java.security.Provider provider, java.io.File file, java.security.KeyStore$ProtectionParameter protectionParameter)` /// The returned object must be released after use, by calling the [release] method. @@ -19625,13 +22020,13 @@ class KeyStore$Builder extends jni$_.JObject { final _$protectionParameter = protectionParameter?.reference ?? jni$_.jNullReference; return _newInstance$1( - _class.reference.pointer, - _id_newInstance$1 as jni$_.JMethodIDPtr, - _$string.pointer, - _$provider.pointer, - _$file.pointer, - _$protectionParameter.pointer) - .object(const $KeyStore$Builder$NullableType()); + _class.reference.pointer, + _id_newInstance$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$provider.pointer, + _$file.pointer, + _$protectionParameter.pointer, + ).object(const $KeyStore$Builder$NullableType()); } static final _id_newInstance$2 = _class.staticMethodId( @@ -19639,22 +22034,26 @@ class KeyStore$Builder extends jni$_.JObject { r'(Ljava/io/File;Ljava/security/KeyStore$ProtectionParameter;)Ljava/security/KeyStore$Builder;', ); - static final _newInstance$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _newInstance$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public java.security.KeyStore$Builder newInstance(java.io.File file, java.security.KeyStore$ProtectionParameter protectionParameter)` /// The returned object must be released after use, by calling the [release] method. @@ -19666,11 +22065,11 @@ class KeyStore$Builder extends jni$_.JObject { final _$protectionParameter = protectionParameter?.reference ?? jni$_.jNullReference; return _newInstance$2( - _class.reference.pointer, - _id_newInstance$2 as jni$_.JMethodIDPtr, - _$file.pointer, - _$protectionParameter.pointer) - .object(const $KeyStore$Builder$NullableType()); + _class.reference.pointer, + _id_newInstance$2 as jni$_.JMethodIDPtr, + _$file.pointer, + _$protectionParameter.pointer, + ).object(const $KeyStore$Builder$NullableType()); } static final _id_newInstance$3 = _class.staticMethodId( @@ -19678,24 +22077,31 @@ class KeyStore$Builder extends jni$_.JObject { r'(Ljava/lang/String;Ljava/security/Provider;Ljava/security/KeyStore$ProtectionParameter;)Ljava/security/KeyStore$Builder;', ); - static final _newInstance$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _newInstance$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public java.security.KeyStore$Builder newInstance(java.lang.String string, java.security.Provider provider, java.security.KeyStore$ProtectionParameter protectionParameter)` /// The returned object must be released after use, by calling the [release] method. @@ -19709,12 +22115,12 @@ class KeyStore$Builder extends jni$_.JObject { final _$protectionParameter = protectionParameter?.reference ?? jni$_.jNullReference; return _newInstance$3( - _class.reference.pointer, - _id_newInstance$3 as jni$_.JMethodIDPtr, - _$string.pointer, - _$provider.pointer, - _$protectionParameter.pointer) - .object(const $KeyStore$Builder$NullableType()); + _class.reference.pointer, + _id_newInstance$3 as jni$_.JMethodIDPtr, + _$string.pointer, + _$provider.pointer, + _$protectionParameter.pointer, + ).object(const $KeyStore$Builder$NullableType()); } } @@ -19730,11 +22136,7 @@ final class $KeyStore$Builder$NullableType @jni$_.internal @core$_.override KeyStore$Builder? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : KeyStore$Builder.fromReference( - reference, - ); + reference.isNull ? null : KeyStore$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -19768,9 +22170,7 @@ final class $KeyStore$Builder$Type extends jni$_.JObjType { @jni$_.internal @core$_.override KeyStore$Builder fromReference(jni$_.JReference reference) => - KeyStore$Builder.fromReference( - reference, - ); + KeyStore$Builder.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -19801,13 +22201,13 @@ class KeyStore$CallbackHandlerProtection extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - KeyStore$CallbackHandlerProtection.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + KeyStore$CallbackHandlerProtection.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'java/security/KeyStore$CallbackHandlerProtection'); + static final _class = jni$_.JClass.forName( + r'java/security/KeyStore$CallbackHandlerProtection', + ); /// The type which includes information such as the signature of this class. static const nullableType = @@ -19817,29 +22217,36 @@ class KeyStore$CallbackHandlerProtection extends jni$_.JObject { r'(Ljavax/security/auth/callback/CallbackHandler;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void (javax.security.auth.callback.CallbackHandler callbackHandler)` /// The returned object must be released after use, by calling the [release] method. - factory KeyStore$CallbackHandlerProtection( - jni$_.JObject? callbackHandler, - ) { + factory KeyStore$CallbackHandlerProtection(jni$_.JObject? callbackHandler) { final _$callbackHandler = callbackHandler?.reference ?? jni$_.jNullReference; - return KeyStore$CallbackHandlerProtection.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$callbackHandler.pointer) - .reference); + return KeyStore$CallbackHandlerProtection.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$callbackHandler.pointer, + ).reference, + ); } static final _id_getCallbackHandler = _class.instanceMethodId( @@ -19847,24 +22254,29 @@ class KeyStore$CallbackHandlerProtection extends jni$_.JObject { r'()Ljavax/security/auth/callback/CallbackHandler;', ); - static final _getCallbackHandler = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getCallbackHandler = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public javax.security.auth.callback.CallbackHandler getCallbackHandler()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getCallbackHandler() { return _getCallbackHandler( - reference.pointer, _id_getCallbackHandler as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getCallbackHandler as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } } @@ -19880,12 +22292,10 @@ final class $KeyStore$CallbackHandlerProtection$NullableType @jni$_.internal @core$_.override KeyStore$CallbackHandlerProtection? fromReference( - jni$_.JReference reference) => - reference.isNull - ? null - : KeyStore$CallbackHandlerProtection.fromReference( - reference, - ); + jni$_.JReference reference, + ) => reference.isNull + ? null + : KeyStore$CallbackHandlerProtection.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -19922,10 +22332,8 @@ final class $KeyStore$CallbackHandlerProtection$Type @jni$_.internal @core$_.override KeyStore$CallbackHandlerProtection fromReference( - jni$_.JReference reference) => - KeyStore$CallbackHandlerProtection.fromReference( - reference, - ); + jni$_.JReference reference, + ) => KeyStore$CallbackHandlerProtection.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -19956,13 +22364,13 @@ class KeyStore$Entry$Attribute extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - KeyStore$Entry$Attribute.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + KeyStore$Entry$Attribute.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'java/security/KeyStore$Entry$Attribute'); + static final _class = jni$_.JClass.forName( + r'java/security/KeyStore$Entry$Attribute', + ); /// The type which includes information such as the signature of this class. static const nullableType = $KeyStore$Entry$Attribute$NullableType(); @@ -19972,23 +22380,29 @@ class KeyStore$Entry$Attribute extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getName = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getName = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.lang.String getName()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getName() { - return _getName(reference.pointer, _id_getName as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _getName( + reference.pointer, + _id_getName as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getValue = _class.instanceMethodId( @@ -19996,23 +22410,29 @@ class KeyStore$Entry$Attribute extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getValue = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getValue = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.lang.String getValue()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getValue() { - return _getValue(reference.pointer, _id_getValue as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _getValue( + reference.pointer, + _id_getValue as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } /// Maps a specific port to the implemented interface. @@ -20024,19 +22444,16 @@ class KeyStore$Entry$Attribute extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address), ); } static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -20092,14 +22509,10 @@ class KeyStore$Entry$Attribute extends jni$_.JObject { _$impls[$a] = $impl; } - factory KeyStore$Entry$Attribute.implement( - $KeyStore$Entry$Attribute $impl, - ) { + factory KeyStore$Entry$Attribute.implement($KeyStore$Entry$Attribute $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return KeyStore$Entry$Attribute.fromReference( - $i.implementReference(), - ); + return KeyStore$Entry$Attribute.fromReference($i.implementReference()); } } @@ -20117,8 +22530,8 @@ final class _$KeyStore$Entry$Attribute with $KeyStore$Entry$Attribute { _$KeyStore$Entry$Attribute({ required jni$_.JString? Function() getName, required jni$_.JString? Function() getValue, - }) : _getName = getName, - _getValue = getValue; + }) : _getName = getName, + _getValue = getValue; final jni$_.JString? Function() _getName; final jni$_.JString? Function() _getValue; @@ -20145,10 +22558,8 @@ final class $KeyStore$Entry$Attribute$NullableType @core$_.override KeyStore$Entry$Attribute? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : KeyStore$Entry$Attribute.fromReference( - reference, - ); + ? null + : KeyStore$Entry$Attribute.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -20183,9 +22594,7 @@ final class $KeyStore$Entry$Attribute$Type @jni$_.internal @core$_.override KeyStore$Entry$Attribute fromReference(jni$_.JReference reference) => - KeyStore$Entry$Attribute.fromReference( - reference, - ); + KeyStore$Entry$Attribute.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -20216,10 +22625,9 @@ class KeyStore$Entry extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - KeyStore$Entry.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + KeyStore$Entry.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'java/security/KeyStore$Entry'); @@ -20231,26 +22639,33 @@ class KeyStore$Entry extends jni$_.JObject { r'()Ljava/util/Set;', ); - static final _getAttributes = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAttributes = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.util.Set getAttributes()` /// The returned object must be released after use, by calling the [release] method. jni$_.JSet? getAttributes() { return _getAttributes( - reference.pointer, _id_getAttributes as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JSetNullableType( - $KeyStore$Entry$Attribute$NullableType())); + reference.pointer, + _id_getAttributes as jni$_.JMethodIDPtr, + ).object?>( + const jni$_.JSetNullableType( + $KeyStore$Entry$Attribute$NullableType(), + ), + ); } /// Maps a specific port to the implemented interface. @@ -20262,19 +22677,16 @@ class KeyStore$Entry extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address), ); } static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -20312,24 +22724,15 @@ class KeyStore$Entry extends jni$_.JObject { final $r = _$invokeMethod($p.sendPort.nativePort, $i); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); - implementer.add( - r'java.security.KeyStore$Entry', - $p, - _$invokePointer, - [], - ); + implementer.add(r'java.security.KeyStore$Entry', $p, _$invokePointer, []); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } - factory KeyStore$Entry.implement( - $KeyStore$Entry $impl, - ) { + factory KeyStore$Entry.implement($KeyStore$Entry $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return KeyStore$Entry.fromReference( - $i.implementReference(), - ); + return KeyStore$Entry.fromReference($i.implementReference()); } } @@ -20364,11 +22767,8 @@ final class $KeyStore$Entry$NullableType @jni$_.internal @core$_.override - KeyStore$Entry? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : KeyStore$Entry.fromReference( - reference, - ); + KeyStore$Entry? fromReference(jni$_.JReference reference) => + reference.isNull ? null : KeyStore$Entry.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -20402,9 +22802,7 @@ final class $KeyStore$Entry$Type extends jni$_.JObjType { @jni$_.internal @core$_.override KeyStore$Entry fromReference(jni$_.JReference reference) => - KeyStore$Entry.fromReference( - reference, - ); + KeyStore$Entry.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -20435,13 +22833,13 @@ class KeyStore$LoadStoreParameter extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - KeyStore$LoadStoreParameter.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + KeyStore$LoadStoreParameter.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'java/security/KeyStore$LoadStoreParameter'); + static final _class = jni$_.JClass.forName( + r'java/security/KeyStore$LoadStoreParameter', + ); /// The type which includes information such as the signature of this class. static const nullableType = $KeyStore$LoadStoreParameter$NullableType(); @@ -20451,25 +22849,31 @@ class KeyStore$LoadStoreParameter extends jni$_.JObject { r'()Ljava/security/KeyStore$ProtectionParameter;', ); - static final _getProtectionParameter = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getProtectionParameter = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.security.KeyStore$ProtectionParameter getProtectionParameter()` /// The returned object must be released after use, by calling the [release] method. KeyStore$ProtectionParameter? getProtectionParameter() { return _getProtectionParameter( - reference.pointer, _id_getProtectionParameter as jni$_.JMethodIDPtr) - .object( - const $KeyStore$ProtectionParameter$NullableType()); + reference.pointer, + _id_getProtectionParameter as jni$_.JMethodIDPtr, + ).object( + const $KeyStore$ProtectionParameter$NullableType(), + ); } /// Maps a specific port to the implemented interface. @@ -20481,19 +22885,16 @@ class KeyStore$LoadStoreParameter extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address), ); } static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -20547,9 +22948,7 @@ class KeyStore$LoadStoreParameter extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return KeyStore$LoadStoreParameter.fromReference( - $i.implementReference(), - ); + return KeyStore$LoadStoreParameter.fromReference($i.implementReference()); } } @@ -20586,10 +22985,8 @@ final class $KeyStore$LoadStoreParameter$NullableType @core$_.override KeyStore$LoadStoreParameter? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : KeyStore$LoadStoreParameter.fromReference( - reference, - ); + ? null + : KeyStore$LoadStoreParameter.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -20624,9 +23021,7 @@ final class $KeyStore$LoadStoreParameter$Type @jni$_.internal @core$_.override KeyStore$LoadStoreParameter fromReference(jni$_.JReference reference) => - KeyStore$LoadStoreParameter.fromReference( - reference, - ); + KeyStore$LoadStoreParameter.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -20657,67 +23052,79 @@ class KeyStore$PasswordProtection extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - KeyStore$PasswordProtection.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + KeyStore$PasswordProtection.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'java/security/KeyStore$PasswordProtection'); + static final _class = jni$_.JClass.forName( + r'java/security/KeyStore$PasswordProtection', + ); /// The type which includes information such as the signature of this class. static const nullableType = $KeyStore$PasswordProtection$NullableType(); static const type = $KeyStore$PasswordProtection$Type(); - static final _id_new$ = _class.constructorId( - r'([C)V', - ); + static final _id_new$ = _class.constructorId(r'([C)V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void (char[] cs)` /// The returned object must be released after use, by calling the [release] method. - factory KeyStore$PasswordProtection( - jni$_.JCharArray? cs, - ) { + factory KeyStore$PasswordProtection(jni$_.JCharArray? cs) { final _$cs = cs?.reference ?? jni$_.jNullReference; - return KeyStore$PasswordProtection.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$cs.pointer) - .reference); + return KeyStore$PasswordProtection.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$cs.pointer, + ).reference, + ); } static final _id_new$1 = _class.constructorId( r'([CLjava/lang/String;Ljava/security/spec/AlgorithmParameterSpec;)V', ); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (char[] cs, java.lang.String string, java.security.spec.AlgorithmParameterSpec algorithmParameterSpec)` /// The returned object must be released after use, by calling the [release] method. @@ -20730,13 +23137,15 @@ class KeyStore$PasswordProtection extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$algorithmParameterSpec = algorithmParameterSpec?.reference ?? jni$_.jNullReference; - return KeyStore$PasswordProtection.fromReference(_new$1( - _class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, - _$cs.pointer, - _$string.pointer, - _$algorithmParameterSpec.pointer) - .reference); + return KeyStore$PasswordProtection.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$cs.pointer, + _$string.pointer, + _$algorithmParameterSpec.pointer, + ).reference, + ); } static final _id_getProtectionAlgorithm = _class.instanceMethodId( @@ -20744,24 +23153,29 @@ class KeyStore$PasswordProtection extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getProtectionAlgorithm = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getProtectionAlgorithm = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.lang.String getProtectionAlgorithm()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getProtectionAlgorithm() { return _getProtectionAlgorithm( - reference.pointer, _id_getProtectionAlgorithm as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getProtectionAlgorithm as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getProtectionParameters = _class.instanceMethodId( @@ -20769,24 +23183,29 @@ class KeyStore$PasswordProtection extends jni$_.JObject { r'()Ljava/security/spec/AlgorithmParameterSpec;', ); - static final _getProtectionParameters = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getProtectionParameters = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.security.spec.AlgorithmParameterSpec getProtectionParameters()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getProtectionParameters() { - return _getProtectionParameters(reference.pointer, - _id_getProtectionParameters as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _getProtectionParameters( + reference.pointer, + _id_getProtectionParameters as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_getPassword = _class.instanceMethodId( @@ -20794,42 +23213,48 @@ class KeyStore$PasswordProtection extends jni$_.JObject { r'()[C', ); - static final _getPassword = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getPassword = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public char[] getPassword()` /// The returned object must be released after use, by calling the [release] method. jni$_.JCharArray? getPassword() { return _getPassword( - reference.pointer, _id_getPassword as jni$_.JMethodIDPtr) - .object(const jni$_.JCharArrayNullableType()); + reference.pointer, + _id_getPassword as jni$_.JMethodIDPtr, + ).object(const jni$_.JCharArrayNullableType()); } - static final _id_destroy = _class.instanceMethodId( - r'destroy', - r'()V', - ); + static final _id_destroy = _class.instanceMethodId(r'destroy', r'()V'); - static final _destroy = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _destroy = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void destroy()` void destroy() { @@ -20841,23 +23266,28 @@ class KeyStore$PasswordProtection extends jni$_.JObject { r'()Z', ); - static final _isDestroyed = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _isDestroyed = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public boolean isDestroyed()` bool isDestroyed() { return _isDestroyed( - reference.pointer, _id_isDestroyed as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_isDestroyed as jni$_.JMethodIDPtr, + ).boolean; } } @@ -20874,10 +23304,8 @@ final class $KeyStore$PasswordProtection$NullableType @core$_.override KeyStore$PasswordProtection? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : KeyStore$PasswordProtection.fromReference( - reference, - ); + ? null + : KeyStore$PasswordProtection.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -20912,9 +23340,7 @@ final class $KeyStore$PasswordProtection$Type @jni$_.internal @core$_.override KeyStore$PasswordProtection fromReference(jni$_.JReference reference) => - KeyStore$PasswordProtection.fromReference( - reference, - ); + KeyStore$PasswordProtection.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -20945,13 +23371,13 @@ class KeyStore$PrivateKeyEntry extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - KeyStore$PrivateKeyEntry.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + KeyStore$PrivateKeyEntry.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'java/security/KeyStore$PrivateKeyEntry'); + static final _class = jni$_.JClass.forName( + r'java/security/KeyStore$PrivateKeyEntry', + ); /// The type which includes information such as the signature of this class. static const nullableType = $KeyStore$PrivateKeyEntry$NullableType(); @@ -20960,22 +23386,26 @@ class KeyStore$PrivateKeyEntry extends jni$_.JObject { r'(Ljava/security/PrivateKey;[Ljava/security/cert/Certificate;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (java.security.PrivateKey privateKey, java.security.cert.Certificate[] certificates)` /// The returned object must be released after use, by calling the [release] method. @@ -20985,36 +23415,45 @@ class KeyStore$PrivateKeyEntry extends jni$_.JObject { ) { final _$privateKey = privateKey?.reference ?? jni$_.jNullReference; final _$certificates = certificates?.reference ?? jni$_.jNullReference; - return KeyStore$PrivateKeyEntry.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$privateKey.pointer, - _$certificates.pointer) - .reference); + return KeyStore$PrivateKeyEntry.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$privateKey.pointer, + _$certificates.pointer, + ).reference, + ); } static final _id_new$1 = _class.constructorId( r'(Ljava/security/PrivateKey;[Ljava/security/cert/Certificate;Ljava/util/Set;)V', ); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (java.security.PrivateKey privateKey, java.lang.Object[] certificates, java.util.Set set)` /// The returned object must be released after use, by calling the [release] method. @@ -21026,13 +23465,15 @@ class KeyStore$PrivateKeyEntry extends jni$_.JObject { final _$privateKey = privateKey?.reference ?? jni$_.jNullReference; final _$certificates = certificates?.reference ?? jni$_.jNullReference; final _$set = set?.reference ?? jni$_.jNullReference; - return KeyStore$PrivateKeyEntry.fromReference(_new$1( - _class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, - _$privateKey.pointer, - _$certificates.pointer, - _$set.pointer) - .reference); + return KeyStore$PrivateKeyEntry.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$privateKey.pointer, + _$certificates.pointer, + _$set.pointer, + ).reference, + ); } static final _id_getPrivateKey = _class.instanceMethodId( @@ -21040,24 +23481,29 @@ class KeyStore$PrivateKeyEntry extends jni$_.JObject { r'()Ljava/security/PrivateKey;', ); - static final _getPrivateKey = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getPrivateKey = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.security.PrivateKey getPrivateKey()` /// The returned object must be released after use, by calling the [release] method. PrivateKey? getPrivateKey() { return _getPrivateKey( - reference.pointer, _id_getPrivateKey as jni$_.JMethodIDPtr) - .object(const $PrivateKey$NullableType()); + reference.pointer, + _id_getPrivateKey as jni$_.JMethodIDPtr, + ).object(const $PrivateKey$NullableType()); } static final _id_getCertificateChain = _class.instanceMethodId( @@ -21065,26 +23511,31 @@ class KeyStore$PrivateKeyEntry extends jni$_.JObject { r'()[Ljava/security/cert/Certificate;', ); - static final _getCertificateChain = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getCertificateChain = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.security.cert.Certificate[] getCertificateChain()` /// The returned object must be released after use, by calling the [release] method. jni$_.JArray? getCertificateChain() { return _getCertificateChain( - reference.pointer, _id_getCertificateChain as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - $Certificate$NullableType())); + reference.pointer, + _id_getCertificateChain as jni$_.JMethodIDPtr, + ).object?>( + const jni$_.JArrayNullableType($Certificate$NullableType()), + ); } static final _id_getCertificate = _class.instanceMethodId( @@ -21092,24 +23543,29 @@ class KeyStore$PrivateKeyEntry extends jni$_.JObject { r'()Ljava/security/cert/Certificate;', ); - static final _getCertificate = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getCertificate = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.security.cert.Certificate getCertificate()` /// The returned object must be released after use, by calling the [release] method. Certificate? getCertificate() { return _getCertificate( - reference.pointer, _id_getCertificate as jni$_.JMethodIDPtr) - .object(const $Certificate$NullableType()); + reference.pointer, + _id_getCertificate as jni$_.JMethodIDPtr, + ).object(const $Certificate$NullableType()); } static final _id_getAttributes = _class.instanceMethodId( @@ -21117,26 +23573,33 @@ class KeyStore$PrivateKeyEntry extends jni$_.JObject { r'()Ljava/util/Set;', ); - static final _getAttributes = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAttributes = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.util.Set getAttributes()` /// The returned object must be released after use, by calling the [release] method. jni$_.JSet? getAttributes() { return _getAttributes( - reference.pointer, _id_getAttributes as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JSetNullableType( - $KeyStore$Entry$Attribute$NullableType())); + reference.pointer, + _id_getAttributes as jni$_.JMethodIDPtr, + ).object?>( + const jni$_.JSetNullableType( + $KeyStore$Entry$Attribute$NullableType(), + ), + ); } static final _id_toString$1 = _class.instanceMethodId( @@ -21144,23 +23607,29 @@ class KeyStore$PrivateKeyEntry extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + 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$_.JStringNullableType()); + return _toString$1( + reference.pointer, + _id_toString$1 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } } @@ -21177,10 +23646,8 @@ final class $KeyStore$PrivateKeyEntry$NullableType @core$_.override KeyStore$PrivateKeyEntry? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : KeyStore$PrivateKeyEntry.fromReference( - reference, - ); + ? null + : KeyStore$PrivateKeyEntry.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -21215,9 +23682,7 @@ final class $KeyStore$PrivateKeyEntry$Type @jni$_.internal @core$_.override KeyStore$PrivateKeyEntry fromReference(jni$_.JReference reference) => - KeyStore$PrivateKeyEntry.fromReference( - reference, - ); + KeyStore$PrivateKeyEntry.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -21248,13 +23713,13 @@ class KeyStore$ProtectionParameter extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - KeyStore$ProtectionParameter.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + KeyStore$ProtectionParameter.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'java/security/KeyStore$ProtectionParameter'); + static final _class = jni$_.JClass.forName( + r'java/security/KeyStore$ProtectionParameter', + ); /// The type which includes information such as the signature of this class. static const nullableType = $KeyStore$ProtectionParameter$NullableType(); @@ -21269,19 +23734,16 @@ class KeyStore$ProtectionParameter extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address), ); } static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -21326,9 +23788,7 @@ class KeyStore$ProtectionParameter extends jni$_.JObject { ) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return KeyStore$ProtectionParameter.fromReference( - $i.implementReference(), - ); + return KeyStore$ProtectionParameter.fromReference($i.implementReference()); } } @@ -21353,10 +23813,8 @@ final class $KeyStore$ProtectionParameter$NullableType @core$_.override KeyStore$ProtectionParameter? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : KeyStore$ProtectionParameter.fromReference( - reference, - ); + ? null + : KeyStore$ProtectionParameter.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -21391,9 +23849,7 @@ final class $KeyStore$ProtectionParameter$Type @jni$_.internal @core$_.override KeyStore$ProtectionParameter fromReference(jni$_.JReference reference) => - KeyStore$ProtectionParameter.fromReference( - reference, - ); + KeyStore$ProtectionParameter.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -21424,63 +23880,74 @@ class KeyStore$SecretKeyEntry extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - KeyStore$SecretKeyEntry.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + KeyStore$SecretKeyEntry.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'java/security/KeyStore$SecretKeyEntry'); + static final _class = jni$_.JClass.forName( + r'java/security/KeyStore$SecretKeyEntry', + ); /// The type which includes information such as the signature of this class. static const nullableType = $KeyStore$SecretKeyEntry$NullableType(); static const type = $KeyStore$SecretKeyEntry$Type(); - static final _id_new$ = _class.constructorId( - r'(Ljavax/crypto/SecretKey;)V', - ); + static final _id_new$ = _class.constructorId(r'(Ljavax/crypto/SecretKey;)V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void (javax.crypto.SecretKey secretKey)` /// The returned object must be released after use, by calling the [release] method. - factory KeyStore$SecretKeyEntry( - jni$_.JObject? secretKey, - ) { + factory KeyStore$SecretKeyEntry(jni$_.JObject? secretKey) { final _$secretKey = secretKey?.reference ?? jni$_.jNullReference; - return KeyStore$SecretKeyEntry.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$secretKey.pointer) - .reference); + return KeyStore$SecretKeyEntry.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$secretKey.pointer, + ).reference, + ); } static final _id_new$1 = _class.constructorId( r'(Ljavax/crypto/SecretKey;Ljava/util/Set;)V', ); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (javax.crypto.SecretKey secretKey, java.util.Set set)` /// The returned object must be released after use, by calling the [release] method. @@ -21490,12 +23957,14 @@ class KeyStore$SecretKeyEntry extends jni$_.JObject { ) { final _$secretKey = secretKey?.reference ?? jni$_.jNullReference; final _$set = set?.reference ?? jni$_.jNullReference; - return KeyStore$SecretKeyEntry.fromReference(_new$1( - _class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, - _$secretKey.pointer, - _$set.pointer) - .reference); + return KeyStore$SecretKeyEntry.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$secretKey.pointer, + _$set.pointer, + ).reference, + ); } static final _id_getSecretKey = _class.instanceMethodId( @@ -21503,24 +23972,29 @@ class KeyStore$SecretKeyEntry extends jni$_.JObject { r'()Ljavax/crypto/SecretKey;', ); - static final _getSecretKey = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getSecretKey = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public javax.crypto.SecretKey getSecretKey()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getSecretKey() { return _getSecretKey( - reference.pointer, _id_getSecretKey as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getSecretKey as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_getAttributes = _class.instanceMethodId( @@ -21528,26 +24002,33 @@ class KeyStore$SecretKeyEntry extends jni$_.JObject { r'()Ljava/util/Set;', ); - static final _getAttributes = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAttributes = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.util.Set getAttributes()` /// The returned object must be released after use, by calling the [release] method. jni$_.JSet? getAttributes() { return _getAttributes( - reference.pointer, _id_getAttributes as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JSetNullableType( - $KeyStore$Entry$Attribute$NullableType())); + reference.pointer, + _id_getAttributes as jni$_.JMethodIDPtr, + ).object?>( + const jni$_.JSetNullableType( + $KeyStore$Entry$Attribute$NullableType(), + ), + ); } static final _id_toString$1 = _class.instanceMethodId( @@ -21555,23 +24036,29 @@ class KeyStore$SecretKeyEntry extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + 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$_.JStringNullableType()); + return _toString$1( + reference.pointer, + _id_toString$1 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } } @@ -21588,10 +24075,8 @@ final class $KeyStore$SecretKeyEntry$NullableType @core$_.override KeyStore$SecretKeyEntry? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : KeyStore$SecretKeyEntry.fromReference( - reference, - ); + ? null + : KeyStore$SecretKeyEntry.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -21626,9 +24111,7 @@ final class $KeyStore$SecretKeyEntry$Type @jni$_.internal @core$_.override KeyStore$SecretKeyEntry fromReference(jni$_.JReference reference) => - KeyStore$SecretKeyEntry.fromReference( - reference, - ); + KeyStore$SecretKeyEntry.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -21659,13 +24142,13 @@ class KeyStore$TrustedCertificateEntry extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - KeyStore$TrustedCertificateEntry.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + KeyStore$TrustedCertificateEntry.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'java/security/KeyStore$TrustedCertificateEntry'); + static final _class = jni$_.JClass.forName( + r'java/security/KeyStore$TrustedCertificateEntry', + ); /// The type which includes information such as the signature of this class. static const nullableType = $KeyStore$TrustedCertificateEntry$NullableType(); @@ -21674,50 +24157,61 @@ class KeyStore$TrustedCertificateEntry extends jni$_.JObject { r'(Ljava/security/cert/Certificate;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void (java.security.cert.Certificate certificate)` /// The returned object must be released after use, by calling the [release] method. - factory KeyStore$TrustedCertificateEntry( - Certificate? certificate, - ) { + factory KeyStore$TrustedCertificateEntry(Certificate? certificate) { final _$certificate = certificate?.reference ?? jni$_.jNullReference; - return KeyStore$TrustedCertificateEntry.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$certificate.pointer) - .reference); + return KeyStore$TrustedCertificateEntry.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$certificate.pointer, + ).reference, + ); } static final _id_new$1 = _class.constructorId( r'(Ljava/security/cert/Certificate;Ljava/util/Set;)V', ); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (java.security.cert.Certificate certificate, java.util.Set set)` /// The returned object must be released after use, by calling the [release] method. @@ -21727,12 +24221,14 @@ class KeyStore$TrustedCertificateEntry extends jni$_.JObject { ) { final _$certificate = certificate?.reference ?? jni$_.jNullReference; final _$set = set?.reference ?? jni$_.jNullReference; - return KeyStore$TrustedCertificateEntry.fromReference(_new$1( - _class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, - _$certificate.pointer, - _$set.pointer) - .reference); + return KeyStore$TrustedCertificateEntry.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$certificate.pointer, + _$set.pointer, + ).reference, + ); } static final _id_getTrustedCertificate = _class.instanceMethodId( @@ -21740,24 +24236,29 @@ class KeyStore$TrustedCertificateEntry extends jni$_.JObject { r'()Ljava/security/cert/Certificate;', ); - static final _getTrustedCertificate = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getTrustedCertificate = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.security.cert.Certificate getTrustedCertificate()` /// The returned object must be released after use, by calling the [release] method. Certificate? getTrustedCertificate() { return _getTrustedCertificate( - reference.pointer, _id_getTrustedCertificate as jni$_.JMethodIDPtr) - .object(const $Certificate$NullableType()); + reference.pointer, + _id_getTrustedCertificate as jni$_.JMethodIDPtr, + ).object(const $Certificate$NullableType()); } static final _id_getAttributes = _class.instanceMethodId( @@ -21765,26 +24266,33 @@ class KeyStore$TrustedCertificateEntry extends jni$_.JObject { r'()Ljava/util/Set;', ); - static final _getAttributes = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAttributes = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.util.Set getAttributes()` /// The returned object must be released after use, by calling the [release] method. jni$_.JSet? getAttributes() { return _getAttributes( - reference.pointer, _id_getAttributes as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JSetNullableType( - $KeyStore$Entry$Attribute$NullableType())); + reference.pointer, + _id_getAttributes as jni$_.JMethodIDPtr, + ).object?>( + const jni$_.JSetNullableType( + $KeyStore$Entry$Attribute$NullableType(), + ), + ); } static final _id_toString$1 = _class.instanceMethodId( @@ -21792,23 +24300,29 @@ class KeyStore$TrustedCertificateEntry extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + 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$_.JStringNullableType()); + return _toString$1( + reference.pointer, + _id_toString$1 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } } @@ -21825,10 +24339,8 @@ final class $KeyStore$TrustedCertificateEntry$NullableType @core$_.override KeyStore$TrustedCertificateEntry? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : KeyStore$TrustedCertificateEntry.fromReference( - reference, - ); + ? null + : KeyStore$TrustedCertificateEntry.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -21864,9 +24376,7 @@ final class $KeyStore$TrustedCertificateEntry$Type @jni$_.internal @core$_.override KeyStore$TrustedCertificateEntry fromReference(jni$_.JReference reference) => - KeyStore$TrustedCertificateEntry.fromReference( - reference, - ); + KeyStore$TrustedCertificateEntry.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -21897,10 +24407,9 @@ class KeyStore extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - KeyStore.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + KeyStore.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'java/security/KeyStore'); @@ -21912,26 +24421,33 @@ class KeyStore extends jni$_.JObject { r'(Ljava/lang/String;)Ljava/security/KeyStore;', ); - static final _getInstance = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _getInstance = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.security.KeyStore getInstance(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - static KeyStore? getInstance( - jni$_.JString? string, - ) { + static KeyStore? getInstance(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _getInstance(_class.reference.pointer, - _id_getInstance as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $KeyStore$NullableType()); + return _getInstance( + _class.reference.pointer, + _id_getInstance as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $KeyStore$NullableType()); } static final _id_getInstance$1 = _class.staticMethodId( @@ -21939,22 +24455,26 @@ class KeyStore extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)Ljava/security/KeyStore;', ); - static final _getInstance$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getInstance$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public java.security.KeyStore getInstance(java.lang.String string, java.lang.String string1)` /// The returned object must be released after use, by calling the [release] method. @@ -21965,11 +24485,11 @@ class KeyStore extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; return _getInstance$1( - _class.reference.pointer, - _id_getInstance$1 as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer) - .object(const $KeyStore$NullableType()); + _class.reference.pointer, + _id_getInstance$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).object(const $KeyStore$NullableType()); } static final _id_getInstance$2 = _class.staticMethodId( @@ -21977,22 +24497,26 @@ class KeyStore extends jni$_.JObject { r'(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/KeyStore;', ); - static final _getInstance$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getInstance$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public java.security.KeyStore getInstance(java.lang.String string, java.security.Provider provider)` /// The returned object must be released after use, by calling the [release] method. @@ -22003,11 +24527,11 @@ class KeyStore extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$provider = provider?.reference ?? jni$_.jNullReference; return _getInstance$2( - _class.reference.pointer, - _id_getInstance$2 as jni$_.JMethodIDPtr, - _$string.pointer, - _$provider.pointer) - .object(const $KeyStore$NullableType()); + _class.reference.pointer, + _id_getInstance$2 as jni$_.JMethodIDPtr, + _$string.pointer, + _$provider.pointer, + ).object(const $KeyStore$NullableType()); } static final _id_getDefaultType = _class.staticMethodId( @@ -22015,24 +24539,29 @@ class KeyStore extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getDefaultType = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getDefaultType = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `static public final java.lang.String getDefaultType()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? getDefaultType() { return _getDefaultType( - _class.reference.pointer, _id_getDefaultType as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + _class.reference.pointer, + _id_getDefaultType as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getProvider = _class.instanceMethodId( @@ -22040,24 +24569,29 @@ class KeyStore extends jni$_.JObject { r'()Ljava/security/Provider;', ); - static final _getProvider = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getProvider = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.security.Provider getProvider()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getProvider() { return _getProvider( - reference.pointer, _id_getProvider as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getProvider as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_getType = _class.instanceMethodId( @@ -22065,23 +24599,29 @@ class KeyStore extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getType = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getType = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.lang.String getType()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getType() { - return _getType(reference.pointer, _id_getType as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _getType( + reference.pointer, + _id_getType as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getKey = _class.instanceMethodId( @@ -22089,34 +24629,38 @@ class KeyStore extends jni$_.JObject { r'(Ljava/lang/String;[C)Ljava/security/Key;', ); - static final _getKey = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getKey = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final java.security.Key getKey(java.lang.String string, char[] cs)` /// The returned object must be released after use, by calling the [release] method. - Key? getKey( - jni$_.JString? string, - jni$_.JCharArray? cs, - ) { + Key? getKey(jni$_.JString? string, jni$_.JCharArray? cs) { final _$string = string?.reference ?? jni$_.jNullReference; final _$cs = cs?.reference ?? jni$_.jNullReference; - return _getKey(reference.pointer, _id_getKey as jni$_.JMethodIDPtr, - _$string.pointer, _$cs.pointer) - .object(const $Key$NullableType()); + return _getKey( + reference.pointer, + _id_getKey as jni$_.JMethodIDPtr, + _$string.pointer, + _$cs.pointer, + ).object(const $Key$NullableType()); } static final _id_getCertificateChain = _class.instanceMethodId( @@ -22124,28 +24668,35 @@ class KeyStore extends jni$_.JObject { r'(Ljava/lang/String;)[Ljava/security/cert/Certificate;', ); - static final _getCertificateChain = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _getCertificateChain = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final java.security.cert.Certificate[] getCertificateChain(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JArray? getCertificateChain( - jni$_.JString? string, - ) { + jni$_.JArray? getCertificateChain(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _getCertificateChain(reference.pointer, - _id_getCertificateChain as jni$_.JMethodIDPtr, _$string.pointer) - .object?>( - const jni$_.JArrayNullableType( - $Certificate$NullableType())); + return _getCertificateChain( + reference.pointer, + _id_getCertificateChain as jni$_.JMethodIDPtr, + _$string.pointer, + ).object?>( + const jni$_.JArrayNullableType($Certificate$NullableType()), + ); } static final _id_getCertificate = _class.instanceMethodId( @@ -22153,26 +24704,33 @@ class KeyStore extends jni$_.JObject { r'(Ljava/lang/String;)Ljava/security/cert/Certificate;', ); - static final _getCertificate = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _getCertificate = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final java.security.cert.Certificate getCertificate(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - Certificate? getCertificate( - jni$_.JString? string, - ) { + Certificate? getCertificate(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _getCertificate(reference.pointer, - _id_getCertificate as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $Certificate$NullableType()); + return _getCertificate( + reference.pointer, + _id_getCertificate as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $Certificate$NullableType()); } static final _id_getCreationDate = _class.instanceMethodId( @@ -22180,26 +24738,33 @@ class KeyStore extends jni$_.JObject { r'(Ljava/lang/String;)Ljava/util/Date;', ); - static final _getCreationDate = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public final java.util.Date getCreationDate(java.lang.String string)` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject? getCreationDate( - jni$_.JString? string, - ) { + static final _getCreationDate = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); + + /// from: `public final java.util.Date getCreationDate(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JObject? getCreationDate(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _getCreationDate(reference.pointer, - _id_getCreationDate as jni$_.JMethodIDPtr, _$string.pointer) - .object(const jni$_.JObjectNullableType()); + return _getCreationDate( + reference.pointer, + _id_getCreationDate as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const jni$_.JObjectNullableType()); } static final _id_setKeyEntry = _class.instanceMethodId( @@ -22207,26 +24772,33 @@ class KeyStore extends jni$_.JObject { r'(Ljava/lang/String;Ljava/security/Key;[C[Ljava/security/cert/Certificate;)V', ); - static final _setKeyEntry = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setKeyEntry = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final void setKeyEntry(java.lang.String string, java.security.Key key, char[] cs, java.security.cert.Certificate[] certificates)` void setKeyEntry( @@ -22240,13 +24812,13 @@ class KeyStore extends jni$_.JObject { final _$cs = cs?.reference ?? jni$_.jNullReference; final _$certificates = certificates?.reference ?? jni$_.jNullReference; _setKeyEntry( - reference.pointer, - _id_setKeyEntry as jni$_.JMethodIDPtr, - _$string.pointer, - _$key.pointer, - _$cs.pointer, - _$certificates.pointer) - .check(); + reference.pointer, + _id_setKeyEntry as jni$_.JMethodIDPtr, + _$string.pointer, + _$key.pointer, + _$cs.pointer, + _$certificates.pointer, + ).check(); } static final _id_setKeyEntry$1 = _class.instanceMethodId( @@ -22254,24 +24826,31 @@ class KeyStore extends jni$_.JObject { r'(Ljava/lang/String;[B[Ljava/security/cert/Certificate;)V', ); - static final _setKeyEntry$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setKeyEntry$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final void setKeyEntry(java.lang.String string, byte[] bs, java.security.cert.Certificate[] certificates)` void setKeyEntry$1( @@ -22282,9 +24861,13 @@ class KeyStore extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$bs = bs?.reference ?? jni$_.jNullReference; final _$certificates = certificates?.reference ?? jni$_.jNullReference; - _setKeyEntry$1(reference.pointer, _id_setKeyEntry$1 as jni$_.JMethodIDPtr, - _$string.pointer, _$bs.pointer, _$certificates.pointer) - .check(); + _setKeyEntry$1( + reference.pointer, + _id_setKeyEntry$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$bs.pointer, + _$certificates.pointer, + ).check(); } static final _id_setCertificateEntry = _class.instanceMethodId( @@ -22292,36 +24875,37 @@ class KeyStore extends jni$_.JObject { r'(Ljava/lang/String;Ljava/security/cert/Certificate;)V', ); - static final _setCertificateEntry = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setCertificateEntry = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final void setCertificateEntry(java.lang.String string, java.security.cert.Certificate certificate)` - void setCertificateEntry( - jni$_.JString? string, - Certificate? certificate, - ) { + void setCertificateEntry(jni$_.JString? string, Certificate? certificate) { final _$string = string?.reference ?? jni$_.jNullReference; final _$certificate = certificate?.reference ?? jni$_.jNullReference; _setCertificateEntry( - reference.pointer, - _id_setCertificateEntry as jni$_.JMethodIDPtr, - _$string.pointer, - _$certificate.pointer) - .check(); + reference.pointer, + _id_setCertificateEntry as jni$_.JMethodIDPtr, + _$string.pointer, + _$certificate.pointer, + ).check(); } static final _id_deleteEntry = _class.instanceMethodId( @@ -22329,25 +24913,32 @@ class KeyStore extends jni$_.JObject { r'(Ljava/lang/String;)V', ); - static final _deleteEntry = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _deleteEntry = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final void deleteEntry(java.lang.String string)` - void deleteEntry( - jni$_.JString? string, - ) { + void deleteEntry(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _deleteEntry(reference.pointer, _id_deleteEntry as jni$_.JMethodIDPtr, - _$string.pointer) - .check(); + _deleteEntry( + reference.pointer, + _id_deleteEntry as jni$_.JMethodIDPtr, + _$string.pointer, + ).check(); } static final _id_aliases = _class.instanceMethodId( @@ -22355,25 +24946,33 @@ class KeyStore extends jni$_.JObject { r'()Ljava/util/Enumeration;', ); - static final _aliases = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _aliases = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.util.Enumeration aliases()` /// The returned object must be released after use, by calling the [release] method. Enumeration? aliases() { - return _aliases(reference.pointer, _id_aliases as jni$_.JMethodIDPtr) - .object?>( - const $Enumeration$NullableType( - jni$_.JStringNullableType())); + return _aliases( + reference.pointer, + _id_aliases as jni$_.JMethodIDPtr, + ).object?>( + const $Enumeration$NullableType( + jni$_.JStringNullableType(), + ), + ); } static final _id_containsAlias = _class.instanceMethodId( @@ -22381,43 +24980,51 @@ class KeyStore extends jni$_.JObject { r'(Ljava/lang/String;)Z', ); - static final _containsAlias = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _containsAlias = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final boolean containsAlias(java.lang.String string)` - bool containsAlias( - jni$_.JString? string, - ) { + bool containsAlias(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _containsAlias(reference.pointer, - _id_containsAlias as jni$_.JMethodIDPtr, _$string.pointer) - .boolean; + return _containsAlias( + reference.pointer, + _id_containsAlias as jni$_.JMethodIDPtr, + _$string.pointer, + ).boolean; } - static final _id_size = _class.instanceMethodId( - r'size', - r'()I', - ); + static final _id_size = _class.instanceMethodId(r'size', r'()I'); - static final _size = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _size = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final int size()` int size() { @@ -22429,25 +25036,32 @@ class KeyStore extends jni$_.JObject { r'(Ljava/lang/String;)Z', ); - static final _isKeyEntry = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _isKeyEntry = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final boolean isKeyEntry(java.lang.String string)` - bool isKeyEntry( - jni$_.JString? string, - ) { + bool isKeyEntry(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _isKeyEntry(reference.pointer, _id_isKeyEntry as jni$_.JMethodIDPtr, - _$string.pointer) - .boolean; + return _isKeyEntry( + reference.pointer, + _id_isKeyEntry as jni$_.JMethodIDPtr, + _$string.pointer, + ).boolean; } static final _id_isCertificateEntry = _class.instanceMethodId( @@ -22455,25 +25069,32 @@ class KeyStore extends jni$_.JObject { r'(Ljava/lang/String;)Z', ); - static final _isCertificateEntry = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _isCertificateEntry = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final boolean isCertificateEntry(java.lang.String string)` - bool isCertificateEntry( - jni$_.JString? string, - ) { + bool isCertificateEntry(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _isCertificateEntry(reference.pointer, - _id_isCertificateEntry as jni$_.JMethodIDPtr, _$string.pointer) - .boolean; + return _isCertificateEntry( + reference.pointer, + _id_isCertificateEntry as jni$_.JMethodIDPtr, + _$string.pointer, + ).boolean; } static final _id_getCertificateAlias = _class.instanceMethodId( @@ -22481,28 +25102,33 @@ class KeyStore extends jni$_.JObject { r'(Ljava/security/cert/Certificate;)Ljava/lang/String;', ); - static final _getCertificateAlias = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _getCertificateAlias = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final java.lang.String getCertificateAlias(java.security.cert.Certificate certificate)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getCertificateAlias( - Certificate? certificate, - ) { + jni$_.JString? getCertificateAlias(Certificate? certificate) { final _$certificate = certificate?.reference ?? jni$_.jNullReference; return _getCertificateAlias( - reference.pointer, - _id_getCertificateAlias as jni$_.JMethodIDPtr, - _$certificate.pointer) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getCertificateAlias as jni$_.JMethodIDPtr, + _$certificate.pointer, + ).object(const jni$_.JStringNullableType()); } static final _id_store = _class.instanceMethodId( @@ -22510,33 +25136,37 @@ class KeyStore extends jni$_.JObject { r'(Ljava/io/OutputStream;[C)V', ); - static final _store = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _store = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final void store(java.io.OutputStream outputStream, char[] cs)` - void store( - jni$_.JObject? outputStream, - jni$_.JCharArray? cs, - ) { + void store(jni$_.JObject? outputStream, jni$_.JCharArray? cs) { final _$outputStream = outputStream?.reference ?? jni$_.jNullReference; final _$cs = cs?.reference ?? jni$_.jNullReference; - _store(reference.pointer, _id_store as jni$_.JMethodIDPtr, - _$outputStream.pointer, _$cs.pointer) - .check(); + _store( + reference.pointer, + _id_store as jni$_.JMethodIDPtr, + _$outputStream.pointer, + _$cs.pointer, + ).check(); } static final _id_store$1 = _class.instanceMethodId( @@ -22544,26 +25174,33 @@ class KeyStore extends jni$_.JObject { r'(Ljava/security/KeyStore$LoadStoreParameter;)V', ); - static final _store$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _store$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final void store(java.security.KeyStore$LoadStoreParameter loadStoreParameter)` - void store$1( - KeyStore$LoadStoreParameter? loadStoreParameter, - ) { + void store$1(KeyStore$LoadStoreParameter? loadStoreParameter) { final _$loadStoreParameter = loadStoreParameter?.reference ?? jni$_.jNullReference; - _store$1(reference.pointer, _id_store$1 as jni$_.JMethodIDPtr, - _$loadStoreParameter.pointer) - .check(); + _store$1( + reference.pointer, + _id_store$1 as jni$_.JMethodIDPtr, + _$loadStoreParameter.pointer, + ).check(); } static final _id_load = _class.instanceMethodId( @@ -22571,33 +25208,37 @@ class KeyStore extends jni$_.JObject { r'(Ljava/io/InputStream;[C)V', ); - static final _load = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _load = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final void load(java.io.InputStream inputStream, char[] cs)` - void load( - jni$_.JObject? inputStream, - jni$_.JCharArray? cs, - ) { + void load(jni$_.JObject? inputStream, jni$_.JCharArray? cs) { final _$inputStream = inputStream?.reference ?? jni$_.jNullReference; final _$cs = cs?.reference ?? jni$_.jNullReference; - _load(reference.pointer, _id_load as jni$_.JMethodIDPtr, - _$inputStream.pointer, _$cs.pointer) - .check(); + _load( + reference.pointer, + _id_load as jni$_.JMethodIDPtr, + _$inputStream.pointer, + _$cs.pointer, + ).check(); } static final _id_load$1 = _class.instanceMethodId( @@ -22605,26 +25246,33 @@ class KeyStore extends jni$_.JObject { r'(Ljava/security/KeyStore$LoadStoreParameter;)V', ); - static final _load$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _load$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final void load(java.security.KeyStore$LoadStoreParameter loadStoreParameter)` - void load$1( - KeyStore$LoadStoreParameter? loadStoreParameter, - ) { + void load$1(KeyStore$LoadStoreParameter? loadStoreParameter) { final _$loadStoreParameter = loadStoreParameter?.reference ?? jni$_.jNullReference; - _load$1(reference.pointer, _id_load$1 as jni$_.JMethodIDPtr, - _$loadStoreParameter.pointer) - .check(); + _load$1( + reference.pointer, + _id_load$1 as jni$_.JMethodIDPtr, + _$loadStoreParameter.pointer, + ).check(); } static final _id_getEntry = _class.instanceMethodId( @@ -22632,22 +25280,26 @@ class KeyStore extends jni$_.JObject { r'(Ljava/lang/String;Ljava/security/KeyStore$ProtectionParameter;)Ljava/security/KeyStore$Entry;', ); - static final _getEntry = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getEntry = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final java.security.KeyStore$Entry getEntry(java.lang.String string, java.security.KeyStore$ProtectionParameter protectionParameter)` /// The returned object must be released after use, by calling the [release] method. @@ -22658,9 +25310,12 @@ class KeyStore extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$protectionParameter = protectionParameter?.reference ?? jni$_.jNullReference; - return _getEntry(reference.pointer, _id_getEntry as jni$_.JMethodIDPtr, - _$string.pointer, _$protectionParameter.pointer) - .object(const $KeyStore$Entry$NullableType()); + return _getEntry( + reference.pointer, + _id_getEntry as jni$_.JMethodIDPtr, + _$string.pointer, + _$protectionParameter.pointer, + ).object(const $KeyStore$Entry$NullableType()); } static final _id_setEntry = _class.instanceMethodId( @@ -22668,24 +25323,31 @@ class KeyStore extends jni$_.JObject { r'(Ljava/lang/String;Ljava/security/KeyStore$Entry;Ljava/security/KeyStore$ProtectionParameter;)V', ); - static final _setEntry = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setEntry = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final void setEntry(java.lang.String string, java.security.KeyStore$Entry entry, java.security.KeyStore$ProtectionParameter protectionParameter)` void setEntry( @@ -22697,9 +25359,13 @@ class KeyStore extends jni$_.JObject { final _$entry = entry?.reference ?? jni$_.jNullReference; final _$protectionParameter = protectionParameter?.reference ?? jni$_.jNullReference; - _setEntry(reference.pointer, _id_setEntry as jni$_.JMethodIDPtr, - _$string.pointer, _$entry.pointer, _$protectionParameter.pointer) - .check(); + _setEntry( + reference.pointer, + _id_setEntry as jni$_.JMethodIDPtr, + _$string.pointer, + _$entry.pointer, + _$protectionParameter.pointer, + ).check(); } static final _id_entryInstanceOf = _class.instanceMethodId( @@ -22707,36 +25373,37 @@ class KeyStore extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/Class;)Z', ); - static final _entryInstanceOf = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _entryInstanceOf = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final boolean entryInstanceOf(java.lang.String string, java.lang.Class class)` - bool entryInstanceOf( - jni$_.JString? string, - jni$_.JObject? class$, - ) { + bool entryInstanceOf(jni$_.JString? string, jni$_.JObject? class$) { final _$string = string?.reference ?? jni$_.jNullReference; final _$class$ = class$?.reference ?? jni$_.jNullReference; return _entryInstanceOf( - reference.pointer, - _id_entryInstanceOf as jni$_.JMethodIDPtr, - _$string.pointer, - _$class$.pointer) - .boolean; + reference.pointer, + _id_entryInstanceOf as jni$_.JMethodIDPtr, + _$string.pointer, + _$class$.pointer, + ).boolean; } static final _id_getInstance$3 = _class.staticMethodId( @@ -22744,37 +25411,38 @@ class KeyStore extends jni$_.JObject { r'(Ljava/io/File;[C)Ljava/security/KeyStore;', ); - static final _getInstance$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getInstance$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public final java.security.KeyStore getInstance(java.io.File file, char[] cs)` /// The returned object must be released after use, by calling the [release] method. - static KeyStore? getInstance$3( - jni$_.JObject? file, - jni$_.JCharArray? cs, - ) { + static KeyStore? getInstance$3(jni$_.JObject? file, jni$_.JCharArray? cs) { final _$file = file?.reference ?? jni$_.jNullReference; final _$cs = cs?.reference ?? jni$_.jNullReference; return _getInstance$3( - _class.reference.pointer, - _id_getInstance$3 as jni$_.JMethodIDPtr, - _$file.pointer, - _$cs.pointer) - .object(const $KeyStore$NullableType()); + _class.reference.pointer, + _id_getInstance$3 as jni$_.JMethodIDPtr, + _$file.pointer, + _$cs.pointer, + ).object(const $KeyStore$NullableType()); } static final _id_getInstance$4 = _class.staticMethodId( @@ -22782,22 +25450,26 @@ class KeyStore extends jni$_.JObject { r'(Ljava/io/File;Ljava/security/KeyStore$LoadStoreParameter;)Ljava/security/KeyStore;', ); - static final _getInstance$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getInstance$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public final java.security.KeyStore getInstance(java.io.File file, java.security.KeyStore$LoadStoreParameter loadStoreParameter)` /// The returned object must be released after use, by calling the [release] method. @@ -22809,11 +25481,11 @@ class KeyStore extends jni$_.JObject { final _$loadStoreParameter = loadStoreParameter?.reference ?? jni$_.jNullReference; return _getInstance$4( - _class.reference.pointer, - _id_getInstance$4 as jni$_.JMethodIDPtr, - _$file.pointer, - _$loadStoreParameter.pointer) - .object(const $KeyStore$NullableType()); + _class.reference.pointer, + _id_getInstance$4 as jni$_.JMethodIDPtr, + _$file.pointer, + _$loadStoreParameter.pointer, + ).object(const $KeyStore$NullableType()); } } @@ -22827,11 +25499,8 @@ final class $KeyStore$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - KeyStore? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : KeyStore.fromReference( - reference, - ); + KeyStore? fromReference(jni$_.JReference reference) => + reference.isNull ? null : KeyStore.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -22864,9 +25533,8 @@ final class $KeyStore$Type extends jni$_.JObjType { @jni$_.internal @core$_.override - KeyStore fromReference(jni$_.JReference reference) => KeyStore.fromReference( - reference, - ); + KeyStore fromReference(jni$_.JReference reference) => + KeyStore.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -22895,10 +25563,9 @@ class KeyManager extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - KeyManager.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + KeyManager.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'javax/net/ssl/KeyManager'); @@ -22915,19 +25582,16 @@ class KeyManager extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address), ); } static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -22942,10 +25606,7 @@ class KeyManager extends jni$_.JObject { return jni$_.nullptr; } - static void implementIn( - jni$_.JImplementer implementer, - $KeyManager $impl, - ) { + static void implementIn(jni$_.JImplementer implementer, $KeyManager $impl) { late final jni$_.RawReceivePort $p; $p = jni$_.RawReceivePort(($m) { if ($m == null) { @@ -22957,24 +25618,15 @@ class KeyManager extends jni$_.JObject { final $r = _$invokeMethod($p.sendPort.nativePort, $i); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); - implementer.add( - r'javax.net.ssl.KeyManager', - $p, - _$invokePointer, - [], - ); + implementer.add(r'javax.net.ssl.KeyManager', $p, _$invokePointer, []); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } - factory KeyManager.implement( - $KeyManager $impl, - ) { + factory KeyManager.implement($KeyManager $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return KeyManager.fromReference( - $i.implementReference(), - ); + return KeyManager.fromReference($i.implementReference()); } } @@ -22996,11 +25648,8 @@ final class $KeyManager$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - KeyManager? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : KeyManager.fromReference( - reference, - ); + KeyManager? fromReference(jni$_.JReference reference) => + reference.isNull ? null : KeyManager.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -23034,9 +25683,7 @@ final class $KeyManager$Type extends jni$_.JObjType { @jni$_.internal @core$_.override KeyManager fromReference(jni$_.JReference reference) => - KeyManager.fromReference( - reference, - ); + KeyManager.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -23066,64 +25713,72 @@ class SecureRandom extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - SecureRandom.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + SecureRandom.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'java/security/SecureRandom'); /// The type which includes information such as the signature of this class. static const nullableType = $SecureRandom$NullableType(); static const type = $SecureRandom$Type(); - static final _id_new$ = _class.constructorId( - r'()V', - ); + static final _id_new$ = _class.constructorId(r'()V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory SecureRandom() { return SecureRandom.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); } - static final _id_new$1 = _class.constructorId( - r'([B)V', - ); + static final _id_new$1 = _class.constructorId(r'([B)V'); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void (byte[] bs)` /// The returned object must be released after use, by calling the [release] method. - factory SecureRandom.new$1( - jni$_.JByteArray? bs, - ) { + factory SecureRandom.new$1(jni$_.JByteArray? bs) { final _$bs = bs?.reference ?? jni$_.jNullReference; - return SecureRandom.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, _$bs.pointer) - .reference); + return SecureRandom.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$bs.pointer, + ).reference, + ); } static final _id_getInstance = _class.staticMethodId( @@ -23131,26 +25786,33 @@ class SecureRandom extends jni$_.JObject { r'(Ljava/lang/String;)Ljava/security/SecureRandom;', ); - static final _getInstance = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _getInstance = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.security.SecureRandom getInstance(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - static SecureRandom? getInstance( - jni$_.JString? string, - ) { + static SecureRandom? getInstance(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _getInstance(_class.reference.pointer, - _id_getInstance as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $SecureRandom$NullableType()); + return _getInstance( + _class.reference.pointer, + _id_getInstance as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $SecureRandom$NullableType()); } static final _id_getInstance$1 = _class.staticMethodId( @@ -23158,22 +25820,26 @@ class SecureRandom extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)Ljava/security/SecureRandom;', ); - static final _getInstance$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getInstance$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public java.security.SecureRandom getInstance(java.lang.String string, java.lang.String string1)` /// The returned object must be released after use, by calling the [release] method. @@ -23184,11 +25850,11 @@ class SecureRandom extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; return _getInstance$1( - _class.reference.pointer, - _id_getInstance$1 as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer) - .object(const $SecureRandom$NullableType()); + _class.reference.pointer, + _id_getInstance$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).object(const $SecureRandom$NullableType()); } static final _id_getInstance$2 = _class.staticMethodId( @@ -23196,22 +25862,26 @@ class SecureRandom extends jni$_.JObject { r'(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/SecureRandom;', ); - static final _getInstance$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getInstance$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public java.security.SecureRandom getInstance(java.lang.String string, java.security.Provider provider)` /// The returned object must be released after use, by calling the [release] method. @@ -23222,11 +25892,11 @@ class SecureRandom extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$provider = provider?.reference ?? jni$_.jNullReference; return _getInstance$2( - _class.reference.pointer, - _id_getInstance$2 as jni$_.JMethodIDPtr, - _$string.pointer, - _$provider.pointer) - .object(const $SecureRandom$NullableType()); + _class.reference.pointer, + _id_getInstance$2 as jni$_.JMethodIDPtr, + _$string.pointer, + _$provider.pointer, + ).object(const $SecureRandom$NullableType()); } static final _id_getInstance$3 = _class.staticMethodId( @@ -23234,22 +25904,26 @@ class SecureRandom extends jni$_.JObject { r'(Ljava/lang/String;Ljava/security/SecureRandomParameters;)Ljava/security/SecureRandom;', ); - static final _getInstance$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getInstance$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public java.security.SecureRandom getInstance(java.lang.String string, java.security.SecureRandomParameters secureRandomParameters)` /// The returned object must be released after use, by calling the [release] method. @@ -23261,11 +25935,11 @@ class SecureRandom extends jni$_.JObject { final _$secureRandomParameters = secureRandomParameters?.reference ?? jni$_.jNullReference; return _getInstance$3( - _class.reference.pointer, - _id_getInstance$3 as jni$_.JMethodIDPtr, - _$string.pointer, - _$secureRandomParameters.pointer) - .object(const $SecureRandom$NullableType()); + _class.reference.pointer, + _id_getInstance$3 as jni$_.JMethodIDPtr, + _$string.pointer, + _$secureRandomParameters.pointer, + ).object(const $SecureRandom$NullableType()); } static final _id_getInstance$4 = _class.staticMethodId( @@ -23273,24 +25947,31 @@ class SecureRandom extends jni$_.JObject { r'(Ljava/lang/String;Ljava/security/SecureRandomParameters;Ljava/lang/String;)Ljava/security/SecureRandom;', ); - static final _getInstance$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getInstance$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public java.security.SecureRandom getInstance(java.lang.String string, java.security.SecureRandomParameters secureRandomParameters, java.lang.String string1)` /// The returned object must be released after use, by calling the [release] method. @@ -23304,12 +25985,12 @@ class SecureRandom extends jni$_.JObject { secureRandomParameters?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; return _getInstance$4( - _class.reference.pointer, - _id_getInstance$4 as jni$_.JMethodIDPtr, - _$string.pointer, - _$secureRandomParameters.pointer, - _$string1.pointer) - .object(const $SecureRandom$NullableType()); + _class.reference.pointer, + _id_getInstance$4 as jni$_.JMethodIDPtr, + _$string.pointer, + _$secureRandomParameters.pointer, + _$string1.pointer, + ).object(const $SecureRandom$NullableType()); } static final _id_getInstance$5 = _class.staticMethodId( @@ -23317,24 +25998,31 @@ class SecureRandom extends jni$_.JObject { r'(Ljava/lang/String;Ljava/security/SecureRandomParameters;Ljava/security/Provider;)Ljava/security/SecureRandom;', ); - static final _getInstance$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getInstance$5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public java.security.SecureRandom getInstance(java.lang.String string, java.security.SecureRandomParameters secureRandomParameters, java.security.Provider provider)` /// The returned object must be released after use, by calling the [release] method. @@ -23348,12 +26036,12 @@ class SecureRandom extends jni$_.JObject { secureRandomParameters?.reference ?? jni$_.jNullReference; final _$provider = provider?.reference ?? jni$_.jNullReference; return _getInstance$5( - _class.reference.pointer, - _id_getInstance$5 as jni$_.JMethodIDPtr, - _$string.pointer, - _$secureRandomParameters.pointer, - _$provider.pointer) - .object(const $SecureRandom$NullableType()); + _class.reference.pointer, + _id_getInstance$5 as jni$_.JMethodIDPtr, + _$string.pointer, + _$secureRandomParameters.pointer, + _$provider.pointer, + ).object(const $SecureRandom$NullableType()); } static final _id_getProvider = _class.instanceMethodId( @@ -23361,24 +26049,29 @@ class SecureRandom extends jni$_.JObject { r'()Ljava/security/Provider;', ); - static final _getProvider = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getProvider = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.security.Provider getProvider()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getProvider() { return _getProvider( - reference.pointer, _id_getProvider as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getProvider as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_getAlgorithm = _class.instanceMethodId( @@ -23386,24 +26079,29 @@ class SecureRandom extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getAlgorithm = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAlgorithm = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public java.lang.String getAlgorithm()` + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); + + /// from: `public java.lang.String getAlgorithm()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getAlgorithm() { return _getAlgorithm( - reference.pointer, _id_getAlgorithm as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getAlgorithm as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_toString$1 = _class.instanceMethodId( @@ -23411,23 +26109,29 @@ class SecureRandom extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + 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$_.JStringNullableType()); + return _toString$1( + reference.pointer, + _id_toString$1 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getParameters = _class.instanceMethodId( @@ -23435,98 +26139,118 @@ class SecureRandom extends jni$_.JObject { r'()Ljava/security/SecureRandomParameters;', ); - static final _getParameters = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getParameters = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.security.SecureRandomParameters getParameters()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getParameters() { return _getParameters( - reference.pointer, _id_getParameters as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getParameters as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } - static final _id_setSeed = _class.instanceMethodId( - r'setSeed', - r'([B)V', - ); + static final _id_setSeed = _class.instanceMethodId(r'setSeed', r'([B)V'); - static final _setSeed = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _setSeed = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void setSeed(byte[] bs)` - void setSeed( - jni$_.JByteArray? bs, - ) { + void setSeed(jni$_.JByteArray? bs) { final _$bs = bs?.reference ?? jni$_.jNullReference; - _setSeed(reference.pointer, _id_setSeed as jni$_.JMethodIDPtr, _$bs.pointer) - .check(); + _setSeed( + reference.pointer, + _id_setSeed as jni$_.JMethodIDPtr, + _$bs.pointer, + ).check(); } - static final _id_setSeed$1 = _class.instanceMethodId( - r'setSeed', - r'(J)V', - ); + static final _id_setSeed$1 = _class.instanceMethodId(r'setSeed', r'(J)V'); - static final _setSeed$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setSeed$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public void setSeed(long j)` - void setSeed$1( - int j, - ) { - _setSeed$1(reference.pointer, _id_setSeed$1 as jni$_.JMethodIDPtr, j) - .check(); + void setSeed$1(int j) { + _setSeed$1( + reference.pointer, + _id_setSeed$1 as jni$_.JMethodIDPtr, + j, + ).check(); } - static final _id_nextBytes = _class.instanceMethodId( - r'nextBytes', - r'([B)V', - ); + static final _id_nextBytes = _class.instanceMethodId(r'nextBytes', r'([B)V'); - static final _nextBytes = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _nextBytes = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void nextBytes(byte[] bs)` - void nextBytes( - jni$_.JByteArray? bs, - ) { + void nextBytes(jni$_.JByteArray? bs) { final _$bs = bs?.reference ?? jni$_.jNullReference; - _nextBytes(reference.pointer, _id_nextBytes as jni$_.JMethodIDPtr, - _$bs.pointer) - .check(); + _nextBytes( + reference.pointer, + _id_nextBytes as jni$_.JMethodIDPtr, + _$bs.pointer, + ).check(); } static final _id_nextBytes$1 = _class.instanceMethodId( @@ -23534,22 +26258,26 @@ class SecureRandom extends jni$_.JObject { r'([BLjava/security/SecureRandomParameters;)V', ); - static final _nextBytes$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _nextBytes$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void nextBytes(byte[] bs, java.security.SecureRandomParameters secureRandomParameters)` void nextBytes$1( @@ -23559,33 +26287,42 @@ class SecureRandom extends jni$_.JObject { final _$bs = bs?.reference ?? jni$_.jNullReference; final _$secureRandomParameters = secureRandomParameters?.reference ?? jni$_.jNullReference; - _nextBytes$1(reference.pointer, _id_nextBytes$1 as jni$_.JMethodIDPtr, - _$bs.pointer, _$secureRandomParameters.pointer) - .check(); + _nextBytes$1( + reference.pointer, + _id_nextBytes$1 as jni$_.JMethodIDPtr, + _$bs.pointer, + _$secureRandomParameters.pointer, + ).check(); } - static final _id_getSeed = _class.staticMethodId( - r'getSeed', - r'(I)[B', - ); + static final _id_getSeed = _class.staticMethodId(r'getSeed', r'(I)[B'); - static final _getSeed = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int32,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + static final _getSeed = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `static public byte[] getSeed(int i)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JByteArray? getSeed( - int i, - ) { + static jni$_.JByteArray? getSeed(int i) { return _getSeed( - _class.reference.pointer, _id_getSeed as jni$_.JMethodIDPtr, i) - .object(const jni$_.JByteArrayNullableType()); + _class.reference.pointer, + _id_getSeed as jni$_.JMethodIDPtr, + i, + ).object(const jni$_.JByteArrayNullableType()); } static final _id_generateSeed = _class.instanceMethodId( @@ -23593,24 +26330,32 @@ class SecureRandom extends jni$_.JObject { r'(I)[B', ); - static final _generateSeed = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _generateSeed = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public byte[] generateSeed(int i)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JByteArray? generateSeed( - int i, - ) { + jni$_.JByteArray? generateSeed(int i) { return _generateSeed( - reference.pointer, _id_generateSeed as jni$_.JMethodIDPtr, i) - .object(const jni$_.JByteArrayNullableType()); + reference.pointer, + _id_generateSeed as jni$_.JMethodIDPtr, + i, + ).object(const jni$_.JByteArrayNullableType()); } static final _id_getInstanceStrong = _class.staticMethodId( @@ -23618,42 +26363,48 @@ class SecureRandom extends jni$_.JObject { r'()Ljava/security/SecureRandom;', ); - static final _getInstanceStrong = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getInstanceStrong = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `static public java.security.SecureRandom getInstanceStrong()` /// The returned object must be released after use, by calling the [release] method. static SecureRandom? getInstanceStrong() { - return _getInstanceStrong(_class.reference.pointer, - _id_getInstanceStrong as jni$_.JMethodIDPtr) - .object(const $SecureRandom$NullableType()); + return _getInstanceStrong( + _class.reference.pointer, + _id_getInstanceStrong as jni$_.JMethodIDPtr, + ).object(const $SecureRandom$NullableType()); } - static final _id_reseed = _class.instanceMethodId( - r'reseed', - r'()V', - ); + static final _id_reseed = _class.instanceMethodId(r'reseed', r'()V'); - static final _reseed = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _reseed = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void reseed()` void reseed() { @@ -23665,26 +26416,33 @@ class SecureRandom extends jni$_.JObject { r'(Ljava/security/SecureRandomParameters;)V', ); - static final _reseed$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _reseed$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void reseed(java.security.SecureRandomParameters secureRandomParameters)` - void reseed$1( - jni$_.JObject? secureRandomParameters, - ) { + void reseed$1(jni$_.JObject? secureRandomParameters) { final _$secureRandomParameters = secureRandomParameters?.reference ?? jni$_.jNullReference; - _reseed$1(reference.pointer, _id_reseed$1 as jni$_.JMethodIDPtr, - _$secureRandomParameters.pointer) - .check(); + _reseed$1( + reference.pointer, + _id_reseed$1 as jni$_.JMethodIDPtr, + _$secureRandomParameters.pointer, + ).check(); } } @@ -23698,11 +26456,8 @@ final class $SecureRandom$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - SecureRandom? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : SecureRandom.fromReference( - reference, - ); + SecureRandom? fromReference(jni$_.JReference reference) => + reference.isNull ? null : SecureRandom.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -23736,9 +26491,7 @@ final class $SecureRandom$Type extends jni$_.JObjType { @jni$_.internal @core$_.override SecureRandom fromReference(jni$_.JReference reference) => - SecureRandom.fromReference( - reference, - ); + SecureRandom.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -23769,10 +26522,9 @@ class X509KeyManager extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - X509KeyManager.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + X509KeyManager.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'javax/net/ssl/X509KeyManager'); @@ -23784,22 +26536,26 @@ class X509KeyManager extends jni$_.JObject { r'(Ljava/lang/String;[Ljava/security/Principal;)[Ljava/lang/String;', ); - static final _getClientAliases = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getClientAliases = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract java.lang.String[] getClientAliases(java.lang.String string, java.security.Principal[] principals)` /// The returned object must be released after use, by calling the [release] method. @@ -23810,13 +26566,15 @@ class X509KeyManager extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$principals = principals?.reference ?? jni$_.jNullReference; return _getClientAliases( - reference.pointer, - _id_getClientAliases as jni$_.JMethodIDPtr, - _$string.pointer, - _$principals.pointer) - .object?>( - const jni$_.JArrayNullableType( - jni$_.JStringNullableType())); + reference.pointer, + _id_getClientAliases as jni$_.JMethodIDPtr, + _$string.pointer, + _$principals.pointer, + ).object?>( + const jni$_.JArrayNullableType( + jni$_.JStringNullableType(), + ), + ); } static final _id_chooseClientAlias = _class.instanceMethodId( @@ -23824,24 +26582,31 @@ class X509KeyManager extends jni$_.JObject { r'([Ljava/lang/String;[Ljava/security/Principal;Ljava/net/Socket;)Ljava/lang/String;', ); - static final _chooseClientAlias = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _chooseClientAlias = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract java.lang.String chooseClientAlias(java.lang.String[] strings, java.security.Principal[] principals, java.net.Socket socket)` /// The returned object must be released after use, by calling the [release] method. @@ -23854,12 +26619,12 @@ class X509KeyManager extends jni$_.JObject { final _$principals = principals?.reference ?? jni$_.jNullReference; final _$socket = socket?.reference ?? jni$_.jNullReference; return _chooseClientAlias( - reference.pointer, - _id_chooseClientAlias as jni$_.JMethodIDPtr, - _$strings.pointer, - _$principals.pointer, - _$socket.pointer) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_chooseClientAlias as jni$_.JMethodIDPtr, + _$strings.pointer, + _$principals.pointer, + _$socket.pointer, + ).object(const jni$_.JStringNullableType()); } static final _id_getServerAliases = _class.instanceMethodId( @@ -23867,22 +26632,26 @@ class X509KeyManager extends jni$_.JObject { r'(Ljava/lang/String;[Ljava/security/Principal;)[Ljava/lang/String;', ); - static final _getServerAliases = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getServerAliases = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract java.lang.String[] getServerAliases(java.lang.String string, java.security.Principal[] principals)` /// The returned object must be released after use, by calling the [release] method. @@ -23893,13 +26662,15 @@ class X509KeyManager extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$principals = principals?.reference ?? jni$_.jNullReference; return _getServerAliases( - reference.pointer, - _id_getServerAliases as jni$_.JMethodIDPtr, - _$string.pointer, - _$principals.pointer) - .object?>( - const jni$_.JArrayNullableType( - jni$_.JStringNullableType())); + reference.pointer, + _id_getServerAliases as jni$_.JMethodIDPtr, + _$string.pointer, + _$principals.pointer, + ).object?>( + const jni$_.JArrayNullableType( + jni$_.JStringNullableType(), + ), + ); } static final _id_chooseServerAlias = _class.instanceMethodId( @@ -23907,24 +26678,31 @@ class X509KeyManager extends jni$_.JObject { r'(Ljava/lang/String;[Ljava/security/Principal;Ljava/net/Socket;)Ljava/lang/String;', ); - static final _chooseServerAlias = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _chooseServerAlias = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract java.lang.String chooseServerAlias(java.lang.String string, java.security.Principal[] principals, java.net.Socket socket)` /// The returned object must be released after use, by calling the [release] method. @@ -23937,12 +26715,12 @@ class X509KeyManager extends jni$_.JObject { final _$principals = principals?.reference ?? jni$_.jNullReference; final _$socket = socket?.reference ?? jni$_.jNullReference; return _chooseServerAlias( - reference.pointer, - _id_chooseServerAlias as jni$_.JMethodIDPtr, - _$string.pointer, - _$principals.pointer, - _$socket.pointer) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_chooseServerAlias as jni$_.JMethodIDPtr, + _$string.pointer, + _$principals.pointer, + _$socket.pointer, + ).object(const jni$_.JStringNullableType()); } static final _id_getCertificateChain = _class.instanceMethodId( @@ -23950,28 +26728,37 @@ class X509KeyManager extends jni$_.JObject { r'(Ljava/lang/String;)[Ljava/security/cert/X509Certificate;', ); - static final _getCertificateChain = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _getCertificateChain = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract java.security.cert.X509Certificate[] getCertificateChain(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - jni$_.JArray? getCertificateChain( - jni$_.JString? string, - ) { + jni$_.JArray? getCertificateChain(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _getCertificateChain(reference.pointer, - _id_getCertificateChain as jni$_.JMethodIDPtr, _$string.pointer) - .object?>( - const jni$_.JArrayNullableType( - $X509Certificate$NullableType())); + return _getCertificateChain( + reference.pointer, + _id_getCertificateChain as jni$_.JMethodIDPtr, + _$string.pointer, + ).object?>( + const jni$_.JArrayNullableType( + $X509Certificate$NullableType(), + ), + ); } static final _id_getPrivateKey = _class.instanceMethodId( @@ -23979,26 +26766,33 @@ class X509KeyManager extends jni$_.JObject { r'(Ljava/lang/String;)Ljava/security/PrivateKey;', ); - static final _getPrivateKey = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _getPrivateKey = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract java.security.PrivateKey getPrivateKey(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - PrivateKey? getPrivateKey( - jni$_.JString? string, - ) { + PrivateKey? getPrivateKey(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _getPrivateKey(reference.pointer, - _id_getPrivateKey as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $PrivateKey$NullableType()); + return _getPrivateKey( + reference.pointer, + _id_getPrivateKey as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $PrivateKey$NullableType()); } /// Maps a specific port to the implemented interface. @@ -24010,19 +26804,16 @@ class X509KeyManager extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address), ); } static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -24036,9 +26827,9 @@ class X509KeyManager extends jni$_.JObject { final $r = _$impls[$p]!.getClientAliases( $a![0]?.as(const jni$_.JStringType(), releaseOriginal: true), $a![1]?.as( - const jni$_.JArrayType( - jni$_.JObjectNullableType()), - releaseOriginal: true), + const jni$_.JArrayType(jni$_.JObjectNullableType()), + releaseOriginal: true, + ), ); return ($r as jni$_.JObject?) ?.as(const jni$_.JObjectType()) @@ -24050,13 +26841,13 @@ class X509KeyManager extends jni$_.JObject { r'chooseClientAlias([Ljava/lang/String;[Ljava/security/Principal;Ljava/net/Socket;)Ljava/lang/String;') { final $r = _$impls[$p]!.chooseClientAlias( $a![0]?.as( - const jni$_.JArrayType( - jni$_.JStringNullableType()), - releaseOriginal: true), + const jni$_.JArrayType(jni$_.JStringNullableType()), + releaseOriginal: true, + ), $a![1]?.as( - const jni$_.JArrayType( - jni$_.JObjectNullableType()), - releaseOriginal: true), + const jni$_.JArrayType(jni$_.JObjectNullableType()), + releaseOriginal: true, + ), $a![2]?.as(const jni$_.JObjectType(), releaseOriginal: true), ); return ($r as jni$_.JObject?) @@ -24070,9 +26861,9 @@ class X509KeyManager extends jni$_.JObject { final $r = _$impls[$p]!.getServerAliases( $a![0]?.as(const jni$_.JStringType(), releaseOriginal: true), $a![1]?.as( - const jni$_.JArrayType( - jni$_.JObjectNullableType()), - releaseOriginal: true), + const jni$_.JArrayType(jni$_.JObjectNullableType()), + releaseOriginal: true, + ), ); return ($r as jni$_.JObject?) ?.as(const jni$_.JObjectType()) @@ -24085,9 +26876,9 @@ class X509KeyManager extends jni$_.JObject { final $r = _$impls[$p]!.chooseServerAlias( $a![0]?.as(const jni$_.JStringType(), releaseOriginal: true), $a![1]?.as( - const jni$_.JArrayType( - jni$_.JObjectNullableType()), - releaseOriginal: true), + const jni$_.JArrayType(jni$_.JObjectNullableType()), + releaseOriginal: true, + ), $a![2]?.as(const jni$_.JObjectType(), releaseOriginal: true), ); return ($r as jni$_.JObject?) @@ -24139,54 +26930,65 @@ class X509KeyManager extends jni$_.JObject { final $r = _$invokeMethod($p.sendPort.nativePort, $i); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); - implementer.add( - r'javax.net.ssl.X509KeyManager', - $p, - _$invokePointer, - [], - ); + implementer.add(r'javax.net.ssl.X509KeyManager', $p, _$invokePointer, []); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } - factory X509KeyManager.implement( - $X509KeyManager $impl, - ) { + factory X509KeyManager.implement($X509KeyManager $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return X509KeyManager.fromReference( - $i.implementReference(), - ); + return X509KeyManager.fromReference($i.implementReference()); } } abstract base mixin class $X509KeyManager { factory $X509KeyManager({ required jni$_.JArray? Function( - jni$_.JString? string, jni$_.JArray? principals) - getClientAliases, - required jni$_.JString? Function(jni$_.JArray? strings, - jni$_.JArray? principals, jni$_.JObject? socket) - chooseClientAlias, + jni$_.JString? string, + jni$_.JArray? principals, + ) + getClientAliases, + required jni$_.JString? Function( + jni$_.JArray? strings, + jni$_.JArray? principals, + jni$_.JObject? socket, + ) + chooseClientAlias, required jni$_.JArray? Function( - jni$_.JString? string, jni$_.JArray? principals) - getServerAliases, - required jni$_.JString? Function(jni$_.JString? string, - jni$_.JArray? principals, jni$_.JObject? socket) - chooseServerAlias, + jni$_.JString? string, + jni$_.JArray? principals, + ) + getServerAliases, + required jni$_.JString? Function( + jni$_.JString? string, + jni$_.JArray? principals, + jni$_.JObject? socket, + ) + chooseServerAlias, required jni$_.JArray? Function(jni$_.JString? string) - getCertificateChain, + getCertificateChain, required PrivateKey? Function(jni$_.JString? string) getPrivateKey, }) = _$X509KeyManager; jni$_.JArray? getClientAliases( - jni$_.JString? string, jni$_.JArray? principals); - jni$_.JString? chooseClientAlias(jni$_.JArray? strings, - jni$_.JArray? principals, jni$_.JObject? socket); + jni$_.JString? string, + jni$_.JArray? principals, + ); + jni$_.JString? chooseClientAlias( + jni$_.JArray? strings, + jni$_.JArray? principals, + jni$_.JObject? socket, + ); jni$_.JArray? getServerAliases( - jni$_.JString? string, jni$_.JArray? principals); - jni$_.JString? chooseServerAlias(jni$_.JString? string, - jni$_.JArray? principals, jni$_.JObject? socket); + jni$_.JString? string, + jni$_.JArray? principals, + ); + jni$_.JString? chooseServerAlias( + jni$_.JString? string, + jni$_.JArray? principals, + jni$_.JObject? socket, + ); jni$_.JArray? getCertificateChain(jni$_.JString? string); PrivateKey? getPrivateKey(jni$_.JString? string); } @@ -24194,62 +26996,90 @@ abstract base mixin class $X509KeyManager { final class _$X509KeyManager with $X509KeyManager { _$X509KeyManager({ required jni$_.JArray? Function( - jni$_.JString? string, jni$_.JArray? principals) - getClientAliases, - required jni$_.JString? Function(jni$_.JArray? strings, - jni$_.JArray? principals, jni$_.JObject? socket) - chooseClientAlias, + jni$_.JString? string, + jni$_.JArray? principals, + ) + getClientAliases, + required jni$_.JString? Function( + jni$_.JArray? strings, + jni$_.JArray? principals, + jni$_.JObject? socket, + ) + chooseClientAlias, required jni$_.JArray? Function( - jni$_.JString? string, jni$_.JArray? principals) - getServerAliases, - required jni$_.JString? Function(jni$_.JString? string, - jni$_.JArray? principals, jni$_.JObject? socket) - chooseServerAlias, + jni$_.JString? string, + jni$_.JArray? principals, + ) + getServerAliases, + required jni$_.JString? Function( + jni$_.JString? string, + jni$_.JArray? principals, + jni$_.JObject? socket, + ) + chooseServerAlias, required jni$_.JArray? Function(jni$_.JString? string) - getCertificateChain, + getCertificateChain, required PrivateKey? Function(jni$_.JString? string) getPrivateKey, - }) : _getClientAliases = getClientAliases, - _chooseClientAlias = chooseClientAlias, - _getServerAliases = getServerAliases, - _chooseServerAlias = chooseServerAlias, - _getCertificateChain = getCertificateChain, - _getPrivateKey = getPrivateKey; + }) : _getClientAliases = getClientAliases, + _chooseClientAlias = chooseClientAlias, + _getServerAliases = getServerAliases, + _chooseServerAlias = chooseServerAlias, + _getCertificateChain = getCertificateChain, + _getPrivateKey = getPrivateKey; final jni$_.JArray? Function( - jni$_.JString? string, jni$_.JArray? principals) - _getClientAliases; + jni$_.JString? string, + jni$_.JArray? principals, + ) + _getClientAliases; final jni$_.JString? Function( - jni$_.JArray? strings, - jni$_.JArray? principals, - jni$_.JObject? socket) _chooseClientAlias; + jni$_.JArray? strings, + jni$_.JArray? principals, + jni$_.JObject? socket, + ) + _chooseClientAlias; final jni$_.JArray? Function( - jni$_.JString? string, jni$_.JArray? principals) - _getServerAliases; + jni$_.JString? string, + jni$_.JArray? principals, + ) + _getServerAliases; final jni$_.JString? Function( - jni$_.JString? string, - jni$_.JArray? principals, - jni$_.JObject? socket) _chooseServerAlias; + jni$_.JString? string, + jni$_.JArray? principals, + jni$_.JObject? socket, + ) + _chooseServerAlias; final jni$_.JArray? Function(jni$_.JString? string) - _getCertificateChain; + _getCertificateChain; final PrivateKey? Function(jni$_.JString? string) _getPrivateKey; jni$_.JArray? getClientAliases( - jni$_.JString? string, jni$_.JArray? principals) { + jni$_.JString? string, + jni$_.JArray? principals, + ) { return _getClientAliases(string, principals); } - jni$_.JString? chooseClientAlias(jni$_.JArray? strings, - jni$_.JArray? principals, jni$_.JObject? socket) { + jni$_.JString? chooseClientAlias( + jni$_.JArray? strings, + jni$_.JArray? principals, + jni$_.JObject? socket, + ) { return _chooseClientAlias(strings, principals, socket); } jni$_.JArray? getServerAliases( - jni$_.JString? string, jni$_.JArray? principals) { + jni$_.JString? string, + jni$_.JArray? principals, + ) { return _getServerAliases(string, principals); } - jni$_.JString? chooseServerAlias(jni$_.JString? string, - jni$_.JArray? principals, jni$_.JObject? socket) { + jni$_.JString? chooseServerAlias( + jni$_.JString? string, + jni$_.JArray? principals, + jni$_.JObject? socket, + ) { return _chooseServerAlias(string, principals, socket); } @@ -24273,11 +27103,8 @@ final class $X509KeyManager$NullableType @jni$_.internal @core$_.override - X509KeyManager? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : X509KeyManager.fromReference( - reference, - ); + X509KeyManager? fromReference(jni$_.JReference reference) => + reference.isNull ? null : X509KeyManager.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -24311,9 +27138,7 @@ final class $X509KeyManager$Type extends jni$_.JObjType { @jni$_.internal @core$_.override X509KeyManager fromReference(jni$_.JReference reference) => - X509KeyManager.fromReference( - reference, - ); + X509KeyManager.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -24344,13 +27169,13 @@ class X509ExtendedKeyManager extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - X509ExtendedKeyManager.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + X509ExtendedKeyManager.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'javax/net/ssl/X509ExtendedKeyManager'); + static final _class = jni$_.JClass.forName( + r'javax/net/ssl/X509ExtendedKeyManager', + ); /// The type which includes information such as the signature of this class. static const nullableType = $X509ExtendedKeyManager$NullableType(); @@ -24360,24 +27185,31 @@ class X509ExtendedKeyManager extends jni$_.JObject { r'([Ljava/lang/String;[Ljava/security/Principal;Ljavax/net/ssl/SSLEngine;)Ljava/lang/String;', ); - static final _chooseEngineClientAlias = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _chooseEngineClientAlias = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public java.lang.String chooseEngineClientAlias(java.lang.String[] strings, java.security.Principal[] principals, javax.net.ssl.SSLEngine sSLEngine)` /// The returned object must be released after use, by calling the [release] method. @@ -24390,12 +27222,12 @@ class X509ExtendedKeyManager extends jni$_.JObject { final _$principals = principals?.reference ?? jni$_.jNullReference; final _$sSLEngine = sSLEngine?.reference ?? jni$_.jNullReference; return _chooseEngineClientAlias( - reference.pointer, - _id_chooseEngineClientAlias as jni$_.JMethodIDPtr, - _$strings.pointer, - _$principals.pointer, - _$sSLEngine.pointer) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_chooseEngineClientAlias as jni$_.JMethodIDPtr, + _$strings.pointer, + _$principals.pointer, + _$sSLEngine.pointer, + ).object(const jni$_.JStringNullableType()); } static final _id_chooseEngineServerAlias = _class.instanceMethodId( @@ -24403,24 +27235,31 @@ class X509ExtendedKeyManager extends jni$_.JObject { r'(Ljava/lang/String;[Ljava/security/Principal;Ljavax/net/ssl/SSLEngine;)Ljava/lang/String;', ); - static final _chooseEngineServerAlias = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _chooseEngineServerAlias = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public java.lang.String chooseEngineServerAlias(java.lang.String string, java.security.Principal[] principals, javax.net.ssl.SSLEngine sSLEngine)` /// The returned object must be released after use, by calling the [release] method. @@ -24433,12 +27272,12 @@ class X509ExtendedKeyManager extends jni$_.JObject { final _$principals = principals?.reference ?? jni$_.jNullReference; final _$sSLEngine = sSLEngine?.reference ?? jni$_.jNullReference; return _chooseEngineServerAlias( - reference.pointer, - _id_chooseEngineServerAlias as jni$_.JMethodIDPtr, - _$string.pointer, - _$principals.pointer, - _$sSLEngine.pointer) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_chooseEngineServerAlias as jni$_.JMethodIDPtr, + _$string.pointer, + _$principals.pointer, + _$sSLEngine.pointer, + ).object(const jni$_.JStringNullableType()); } } @@ -24454,11 +27293,7 @@ final class $X509ExtendedKeyManager$NullableType @jni$_.internal @core$_.override X509ExtendedKeyManager? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : X509ExtendedKeyManager.fromReference( - reference, - ); + reference.isNull ? null : X509ExtendedKeyManager.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -24493,9 +27328,7 @@ final class $X509ExtendedKeyManager$Type @jni$_.internal @core$_.override X509ExtendedKeyManager fromReference(jni$_.JReference reference) => - X509ExtendedKeyManager.fromReference( - reference, - ); + X509ExtendedKeyManager.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -24526,10 +27359,9 @@ class HostnameVerifier extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - HostnameVerifier.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + HostnameVerifier.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'javax/net/ssl/HostnameVerifier'); @@ -24541,33 +27373,37 @@ class HostnameVerifier extends jni$_.JObject { r'(Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z', ); - static final _verify = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _verify = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract boolean verify(java.lang.String string, javax.net.ssl.SSLSession sSLSession)` - bool verify( - jni$_.JString? string, - jni$_.JObject? sSLSession, - ) { + bool verify(jni$_.JString? string, jni$_.JObject? sSLSession) { final _$string = string?.reference ?? jni$_.jNullReference; final _$sSLSession = sSLSession?.reference ?? jni$_.jNullReference; - return _verify(reference.pointer, _id_verify as jni$_.JMethodIDPtr, - _$string.pointer, _$sSLSession.pointer) - .boolean; + return _verify( + reference.pointer, + _id_verify as jni$_.JMethodIDPtr, + _$string.pointer, + _$sSLSession.pointer, + ).boolean; } /// Maps a specific port to the implemented interface. @@ -24579,19 +27415,16 @@ class HostnameVerifier extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address), ); } static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -24628,31 +27461,22 @@ class HostnameVerifier extends jni$_.JObject { final $r = _$invokeMethod($p.sendPort.nativePort, $i); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); - implementer.add( - r'javax.net.ssl.HostnameVerifier', - $p, - _$invokePointer, - [], - ); + implementer.add(r'javax.net.ssl.HostnameVerifier', $p, _$invokePointer, []); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } - factory HostnameVerifier.implement( - $HostnameVerifier $impl, - ) { + factory HostnameVerifier.implement($HostnameVerifier $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return HostnameVerifier.fromReference( - $i.implementReference(), - ); + return HostnameVerifier.fromReference($i.implementReference()); } } abstract base mixin class $HostnameVerifier { factory $HostnameVerifier({ required bool Function(jni$_.JString? string, jni$_.JObject? sSLSession) - verify, + verify, }) = _$HostnameVerifier; bool verify(jni$_.JString? string, jni$_.JObject? sSLSession); @@ -24661,7 +27485,7 @@ abstract base mixin class $HostnameVerifier { final class _$HostnameVerifier with $HostnameVerifier { _$HostnameVerifier({ required bool Function(jni$_.JString? string, jni$_.JObject? sSLSession) - verify, + verify, }) : _verify = verify; final bool Function(jni$_.JString? string, jni$_.JObject? sSLSession) _verify; @@ -24683,11 +27507,7 @@ final class $HostnameVerifier$NullableType @jni$_.internal @core$_.override HostnameVerifier? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : HostnameVerifier.fromReference( - reference, - ); + reference.isNull ? null : HostnameVerifier.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -24721,9 +27541,7 @@ final class $HostnameVerifier$Type extends jni$_.JObjType { @jni$_.internal @core$_.override HostnameVerifier fromReference(jni$_.JReference reference) => - HostnameVerifier.fromReference( - reference, - ); + HostnameVerifier.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -24754,13 +27572,13 @@ class X509Certificate extends Certificate { final jni$_.JObjType $type; @jni$_.internal - X509Certificate.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + X509Certificate.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'java/security/cert/X509Certificate'); + static final _class = jni$_.JClass.forName( + r'java/security/cert/X509Certificate', + ); /// The type which includes information such as the signature of this class. static const nullableType = $X509Certificate$NullableType(); @@ -24770,22 +27588,28 @@ class X509Certificate extends Certificate { r'()V', ); - static final _checkValidity = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _checkValidity = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract void checkValidity()` void checkValidity() { - _checkValidity(reference.pointer, _id_checkValidity as jni$_.JMethodIDPtr) - .check(); + _checkValidity( + reference.pointer, + _id_checkValidity as jni$_.JMethodIDPtr, + ).check(); } static final _id_checkValidity$1 = _class.instanceMethodId( @@ -24793,48 +27617,58 @@ class X509Certificate extends Certificate { r'(Ljava/util/Date;)V', ); - static final _checkValidity$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _checkValidity$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract void checkValidity(java.util.Date date)` - void checkValidity$1( - jni$_.JObject? date, - ) { + void checkValidity$1(jni$_.JObject? date) { final _$date = date?.reference ?? jni$_.jNullReference; - _checkValidity$1(reference.pointer, - _id_checkValidity$1 as jni$_.JMethodIDPtr, _$date.pointer) - .check(); + _checkValidity$1( + reference.pointer, + _id_checkValidity$1 as jni$_.JMethodIDPtr, + _$date.pointer, + ).check(); } - static final _id_getVersion = _class.instanceMethodId( - r'getVersion', - r'()I', - ); + static final _id_getVersion = _class.instanceMethodId(r'getVersion', r'()I'); - static final _getVersion = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getVersion = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract int getVersion()` int getVersion() { - return _getVersion(reference.pointer, _id_getVersion as jni$_.JMethodIDPtr) - .integer; + return _getVersion( + reference.pointer, + _id_getVersion as jni$_.JMethodIDPtr, + ).integer; } static final _id_getSerialNumber = _class.instanceMethodId( @@ -24842,24 +27676,29 @@ class X509Certificate extends Certificate { r'()Ljava/math/BigInteger;', ); - static final _getSerialNumber = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getSerialNumber = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.math.BigInteger getSerialNumber()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getSerialNumber() { return _getSerialNumber( - reference.pointer, _id_getSerialNumber as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getSerialNumber as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_getIssuerDN = _class.instanceMethodId( @@ -24867,24 +27706,29 @@ class X509Certificate extends Certificate { r'()Ljava/security/Principal;', ); - static final _getIssuerDN = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getIssuerDN = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.security.Principal getIssuerDN()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getIssuerDN() { return _getIssuerDN( - reference.pointer, _id_getIssuerDN as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getIssuerDN as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_getIssuerX500Principal = _class.instanceMethodId( @@ -24892,24 +27736,29 @@ class X509Certificate extends Certificate { r'()Ljavax/security/auth/x500/X500Principal;', ); - static final _getIssuerX500Principal = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getIssuerX500Principal = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public javax.security.auth.x500.X500Principal getIssuerX500Principal()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getIssuerX500Principal() { return _getIssuerX500Principal( - reference.pointer, _id_getIssuerX500Principal as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getIssuerX500Principal as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_getSubjectDN = _class.instanceMethodId( @@ -24917,24 +27766,29 @@ class X509Certificate extends Certificate { r'()Ljava/security/Principal;', ); - static final _getSubjectDN = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getSubjectDN = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.security.Principal getSubjectDN()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getSubjectDN() { return _getSubjectDN( - reference.pointer, _id_getSubjectDN as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getSubjectDN as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_getSubjectX500Principal = _class.instanceMethodId( @@ -24942,24 +27796,29 @@ class X509Certificate extends Certificate { r'()Ljavax/security/auth/x500/X500Principal;', ); - static final _getSubjectX500Principal = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getSubjectX500Principal = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public javax.security.auth.x500.X500Principal getSubjectX500Principal()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getSubjectX500Principal() { - return _getSubjectX500Principal(reference.pointer, - _id_getSubjectX500Principal as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _getSubjectX500Principal( + reference.pointer, + _id_getSubjectX500Principal as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_getNotBefore = _class.instanceMethodId( @@ -24967,24 +27826,29 @@ class X509Certificate extends Certificate { r'()Ljava/util/Date;', ); - static final _getNotBefore = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getNotBefore = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.util.Date getNotBefore()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getNotBefore() { return _getNotBefore( - reference.pointer, _id_getNotBefore as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getNotBefore as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_getNotAfter = _class.instanceMethodId( @@ -24992,24 +27856,29 @@ class X509Certificate extends Certificate { r'()Ljava/util/Date;', ); - static final _getNotAfter = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getNotAfter = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.util.Date getNotAfter()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getNotAfter() { return _getNotAfter( - reference.pointer, _id_getNotAfter as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getNotAfter as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_getTBSCertificate = _class.instanceMethodId( @@ -25017,24 +27886,29 @@ class X509Certificate extends Certificate { r'()[B', ); - static final _getTBSCertificate = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getTBSCertificate = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract byte[] getTBSCertificate()` /// The returned object must be released after use, by calling the [release] method. jni$_.JByteArray? getTBSCertificate() { return _getTBSCertificate( - reference.pointer, _id_getTBSCertificate as jni$_.JMethodIDPtr) - .object(const jni$_.JByteArrayNullableType()); + reference.pointer, + _id_getTBSCertificate as jni$_.JMethodIDPtr, + ).object(const jni$_.JByteArrayNullableType()); } static final _id_getSignature = _class.instanceMethodId( @@ -25042,24 +27916,29 @@ class X509Certificate extends Certificate { r'()[B', ); - static final _getSignature = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getSignature = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract byte[] getSignature()` /// The returned object must be released after use, by calling the [release] method. jni$_.JByteArray? getSignature() { return _getSignature( - reference.pointer, _id_getSignature as jni$_.JMethodIDPtr) - .object(const jni$_.JByteArrayNullableType()); + reference.pointer, + _id_getSignature as jni$_.JMethodIDPtr, + ).object(const jni$_.JByteArrayNullableType()); } static final _id_getSigAlgName = _class.instanceMethodId( @@ -25067,24 +27946,29 @@ class X509Certificate extends Certificate { r'()Ljava/lang/String;', ); - static final _getSigAlgName = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getSigAlgName = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.lang.String getSigAlgName()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getSigAlgName() { return _getSigAlgName( - reference.pointer, _id_getSigAlgName as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getSigAlgName as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getSigAlgOID = _class.instanceMethodId( @@ -25092,24 +27976,29 @@ class X509Certificate extends Certificate { r'()Ljava/lang/String;', ); - static final _getSigAlgOID = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getSigAlgOID = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.lang.String getSigAlgOID()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getSigAlgOID() { return _getSigAlgOID( - reference.pointer, _id_getSigAlgOID as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getSigAlgOID as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getSigAlgParams = _class.instanceMethodId( @@ -25117,24 +28006,29 @@ class X509Certificate extends Certificate { r'()[B', ); - static final _getSigAlgParams = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getSigAlgParams = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract byte[] getSigAlgParams()` /// The returned object must be released after use, by calling the [release] method. jni$_.JByteArray? getSigAlgParams() { return _getSigAlgParams( - reference.pointer, _id_getSigAlgParams as jni$_.JMethodIDPtr) - .object(const jni$_.JByteArrayNullableType()); + reference.pointer, + _id_getSigAlgParams as jni$_.JMethodIDPtr, + ).object(const jni$_.JByteArrayNullableType()); } static final _id_getIssuerUniqueID = _class.instanceMethodId( @@ -25142,24 +28036,29 @@ class X509Certificate extends Certificate { r'()[Z', ); - static final _getIssuerUniqueID = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getIssuerUniqueID = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract boolean[] getIssuerUniqueID()` /// The returned object must be released after use, by calling the [release] method. jni$_.JBooleanArray? getIssuerUniqueID() { return _getIssuerUniqueID( - reference.pointer, _id_getIssuerUniqueID as jni$_.JMethodIDPtr) - .object(const jni$_.JBooleanArrayNullableType()); + reference.pointer, + _id_getIssuerUniqueID as jni$_.JMethodIDPtr, + ).object(const jni$_.JBooleanArrayNullableType()); } static final _id_getSubjectUniqueID = _class.instanceMethodId( @@ -25167,24 +28066,29 @@ class X509Certificate extends Certificate { r'()[Z', ); - static final _getSubjectUniqueID = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getSubjectUniqueID = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract boolean[] getSubjectUniqueID()` /// The returned object must be released after use, by calling the [release] method. jni$_.JBooleanArray? getSubjectUniqueID() { return _getSubjectUniqueID( - reference.pointer, _id_getSubjectUniqueID as jni$_.JMethodIDPtr) - .object(const jni$_.JBooleanArrayNullableType()); + reference.pointer, + _id_getSubjectUniqueID as jni$_.JMethodIDPtr, + ).object(const jni$_.JBooleanArrayNullableType()); } static final _id_getKeyUsage = _class.instanceMethodId( @@ -25192,24 +28096,29 @@ class X509Certificate extends Certificate { r'()[Z', ); - static final _getKeyUsage = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getKeyUsage = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract boolean[] getKeyUsage()` /// The returned object must be released after use, by calling the [release] method. jni$_.JBooleanArray? getKeyUsage() { return _getKeyUsage( - reference.pointer, _id_getKeyUsage as jni$_.JMethodIDPtr) - .object(const jni$_.JBooleanArrayNullableType()); + reference.pointer, + _id_getKeyUsage as jni$_.JMethodIDPtr, + ).object(const jni$_.JBooleanArrayNullableType()); } static final _id_getExtendedKeyUsage = _class.instanceMethodId( @@ -25217,26 +28126,33 @@ class X509Certificate extends Certificate { r'()Ljava/util/List;', ); - static final _getExtendedKeyUsage = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getExtendedKeyUsage = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.util.List getExtendedKeyUsage()` /// The returned object must be released after use, by calling the [release] method. jni$_.JList? getExtendedKeyUsage() { return _getExtendedKeyUsage( - reference.pointer, _id_getExtendedKeyUsage as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JListNullableType( - jni$_.JStringNullableType())); + reference.pointer, + _id_getExtendedKeyUsage as jni$_.JMethodIDPtr, + ).object?>( + const jni$_.JListNullableType( + jni$_.JStringNullableType(), + ), + ); } static final _id_getBasicConstraints = _class.instanceMethodId( @@ -25244,23 +28160,28 @@ class X509Certificate extends Certificate { r'()I', ); - static final _getBasicConstraints = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getBasicConstraints = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract int getBasicConstraints()` int getBasicConstraints() { return _getBasicConstraints( - reference.pointer, _id_getBasicConstraints as jni$_.JMethodIDPtr) - .integer; + reference.pointer, + _id_getBasicConstraints as jni$_.JMethodIDPtr, + ).integer; } static final _id_getSubjectAlternativeNames = _class.instanceMethodId( @@ -25270,23 +28191,27 @@ class X509Certificate extends Certificate { static final _getSubjectAlternativeNames = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.util.Collection getSubjectAlternativeNames()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getSubjectAlternativeNames() { - return _getSubjectAlternativeNames(reference.pointer, - _id_getSubjectAlternativeNames as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _getSubjectAlternativeNames( + reference.pointer, + _id_getSubjectAlternativeNames as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_getIssuerAlternativeNames = _class.instanceMethodId( @@ -25294,24 +28219,29 @@ class X509Certificate extends Certificate { r'()Ljava/util/Collection;', ); - static final _getIssuerAlternativeNames = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getIssuerAlternativeNames = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.util.Collection getIssuerAlternativeNames()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getIssuerAlternativeNames() { - return _getIssuerAlternativeNames(reference.pointer, - _id_getIssuerAlternativeNames as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _getIssuerAlternativeNames( + reference.pointer, + _id_getIssuerAlternativeNames as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_verify2 = _class.instanceMethodId( @@ -25319,33 +28249,37 @@ class X509Certificate extends Certificate { r'(Ljava/security/PublicKey;Ljava/security/Provider;)V', ); - static final _verify2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _verify2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void verify(java.security.PublicKey publicKey, java.security.Provider provider)` - void verify2( - PublicKey? publicKey, - jni$_.JObject? provider, - ) { + void verify2(PublicKey? publicKey, jni$_.JObject? provider) { final _$publicKey = publicKey?.reference ?? jni$_.jNullReference; final _$provider = provider?.reference ?? jni$_.jNullReference; - _verify2(reference.pointer, _id_verify2 as jni$_.JMethodIDPtr, - _$publicKey.pointer, _$provider.pointer) - .check(); + _verify2( + reference.pointer, + _id_verify2 as jni$_.JMethodIDPtr, + _$publicKey.pointer, + _$provider.pointer, + ).check(); } } @@ -25360,11 +28294,8 @@ final class $X509Certificate$NullableType @jni$_.internal @core$_.override - X509Certificate? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : X509Certificate.fromReference( - reference, - ); + X509Certificate? fromReference(jni$_.JReference reference) => + reference.isNull ? null : X509Certificate.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const $Certificate$NullableType(); @@ -25398,9 +28329,7 @@ final class $X509Certificate$Type extends jni$_.JObjType { @jni$_.internal @core$_.override X509Certificate fromReference(jni$_.JReference reference) => - X509Certificate.fromReference( - reference, - ); + X509Certificate.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const $Certificate$NullableType(); @@ -25431,10 +28360,9 @@ class KeyChain extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - KeyChain.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + KeyChain.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'android/security/KeyChain'); @@ -25450,7 +28378,9 @@ class KeyChain extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get ACTION_KEYCHAIN_CHANGED => _id_ACTION_KEYCHAIN_CHANGED.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_ACTION_KEY_ACCESS_CHANGED = _class.staticFieldId( r'ACTION_KEY_ACCESS_CHANGED', @@ -25461,7 +28391,9 @@ class KeyChain extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get ACTION_KEY_ACCESS_CHANGED => _id_ACTION_KEY_ACCESS_CHANGED.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_ACTION_STORAGE_CHANGED = _class.staticFieldId( r'ACTION_STORAGE_CHANGED', @@ -25482,7 +28414,9 @@ class KeyChain extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get ACTION_TRUST_STORE_CHANGED => _id_ACTION_TRUST_STORE_CHANGED.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); static final _id_EXTRA_CERTIFICATE = _class.staticFieldId( r'EXTRA_CERTIFICATE', @@ -25543,30 +28477,34 @@ class KeyChain extends jni$_.JObject { /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? get KEY_ALIAS_SELECTION_DENIED => _id_KEY_ALIAS_SELECTION_DENIED.get( - _class, const jni$_.JStringNullableType()); + _class, + const jni$_.JStringNullableType(), + ); - static final _id_new$ = _class.constructorId( - r'()V', - ); + static final _id_new$ = _class.constructorId(r'()V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. factory KeyChain() { return KeyChain.fromReference( - _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr) - .reference); + _new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference, + ); } static final _id_createInstallIntent = _class.staticMethodId( @@ -25574,24 +28512,29 @@ class KeyChain extends jni$_.JObject { r'()Landroid/content/Intent;', ); - static final _createInstallIntent = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _createInstallIntent = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `static public android.content.Intent createInstallIntent()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JObject? createInstallIntent() { - return _createInstallIntent(_class.reference.pointer, - _id_createInstallIntent as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + return _createInstallIntent( + _class.reference.pointer, + _id_createInstallIntent as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_createManageCredentialsIntent = _class.staticMethodId( @@ -25601,15 +28544,21 @@ class KeyChain extends jni$_.JObject { static final _createManageCredentialsIntent = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public android.content.Intent createManageCredentialsIntent(android.security.AppUriAuthenticationPolicy appUriAuthenticationPolicy)` /// The returned object must be released after use, by calling the [release] method. @@ -25619,10 +28568,10 @@ class KeyChain extends jni$_.JObject { final _$appUriAuthenticationPolicy = appUriAuthenticationPolicy?.reference ?? jni$_.jNullReference; return _createManageCredentialsIntent( - _class.reference.pointer, - _id_createManageCredentialsIntent as jni$_.JMethodIDPtr, - _$appUriAuthenticationPolicy.pointer) - .object(const jni$_.JObjectNullableType()); + _class.reference.pointer, + _id_createManageCredentialsIntent as jni$_.JMethodIDPtr, + _$appUriAuthenticationPolicy.pointer, + ).object(const jni$_.JObjectNullableType()); } static final _id_choosePrivateKeyAlias = _class.staticMethodId( @@ -25630,23 +28579,28 @@ class KeyChain extends jni$_.JObject { r'(Landroid/app/Activity;Landroid/security/KeyChainAliasCallback;[Ljava/lang/String;[Ljava/security/Principal;Ljava/lang/String;ILjava/lang/String;)V', ); - static final _choosePrivateKeyAlias = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _choosePrivateKeyAlias = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -25655,7 +28609,9 @@ class KeyChain extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void choosePrivateKeyAlias(android.app.Activity activity, android.security.KeyChainAliasCallback keyChainAliasCallback, java.lang.String[] strings, java.security.Principal[] principals, java.lang.String string, int i, java.lang.String string1)` static void choosePrivateKeyAlias( @@ -25675,16 +28631,16 @@ class KeyChain extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; _choosePrivateKeyAlias( - _class.reference.pointer, - _id_choosePrivateKeyAlias as jni$_.JMethodIDPtr, - _$activity.pointer, - _$keyChainAliasCallback.pointer, - _$strings.pointer, - _$principals.pointer, - _$string.pointer, - i, - _$string1.pointer) - .check(); + _class.reference.pointer, + _id_choosePrivateKeyAlias as jni$_.JMethodIDPtr, + _$activity.pointer, + _$keyChainAliasCallback.pointer, + _$strings.pointer, + _$principals.pointer, + _$string.pointer, + i, + _$string1.pointer, + ).check(); } static final _id_choosePrivateKeyAlias$1 = _class.staticMethodId( @@ -25692,22 +28648,27 @@ class KeyChain extends jni$_.JObject { r'(Landroid/app/Activity;Landroid/security/KeyChainAliasCallback;[Ljava/lang/String;[Ljava/security/Principal;Landroid/net/Uri;Ljava/lang/String;)V', ); - static final _choosePrivateKeyAlias$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _choosePrivateKeyAlias$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -25715,7 +28676,9 @@ class KeyChain extends jni$_.JObject { jni$_.Pointer, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void choosePrivateKeyAlias(android.app.Activity activity, android.security.KeyChainAliasCallback keyChainAliasCallback, java.lang.String[] strings, java.security.Principal[] principals, android.net.Uri uri, java.lang.String string)` static void choosePrivateKeyAlias$1( @@ -25734,15 +28697,15 @@ class KeyChain extends jni$_.JObject { final _$uri = uri?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; _choosePrivateKeyAlias$1( - _class.reference.pointer, - _id_choosePrivateKeyAlias$1 as jni$_.JMethodIDPtr, - _$activity.pointer, - _$keyChainAliasCallback.pointer, - _$strings.pointer, - _$principals.pointer, - _$uri.pointer, - _$string.pointer) - .check(); + _class.reference.pointer, + _id_choosePrivateKeyAlias$1 as jni$_.JMethodIDPtr, + _$activity.pointer, + _$keyChainAliasCallback.pointer, + _$strings.pointer, + _$principals.pointer, + _$uri.pointer, + _$string.pointer, + ).check(); } static final _id_isCredentialManagementApp = _class.staticMethodId( @@ -25750,27 +28713,32 @@ class KeyChain extends jni$_.JObject { r'(Landroid/content/Context;)Z', ); - static final _isCredentialManagementApp = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _isCredentialManagementApp = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public boolean isCredentialManagementApp(android.content.Context context)` - static bool isCredentialManagementApp( - jni$_.JObject? context, - ) { + static bool isCredentialManagementApp(jni$_.JObject? context) { final _$context = context?.reference ?? jni$_.jNullReference; return _isCredentialManagementApp( - _class.reference.pointer, - _id_isCredentialManagementApp as jni$_.JMethodIDPtr, - _$context.pointer) - .boolean; + _class.reference.pointer, + _id_isCredentialManagementApp as jni$_.JMethodIDPtr, + _$context.pointer, + ).boolean; } static final _id_getCredentialManagementAppPolicy = _class.staticMethodId( @@ -25780,15 +28748,21 @@ class KeyChain extends jni$_.JObject { static final _getCredentialManagementAppPolicy = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public android.security.AppUriAuthenticationPolicy getCredentialManagementAppPolicy(android.content.Context context)` /// The returned object must be released after use, by calling the [release] method. @@ -25797,10 +28771,10 @@ class KeyChain extends jni$_.JObject { ) { final _$context = context?.reference ?? jni$_.jNullReference; return _getCredentialManagementAppPolicy( - _class.reference.pointer, - _id_getCredentialManagementAppPolicy as jni$_.JMethodIDPtr, - _$context.pointer) - .object(const jni$_.JObjectNullableType()); + _class.reference.pointer, + _id_getCredentialManagementAppPolicy as jni$_.JMethodIDPtr, + _$context.pointer, + ).object(const jni$_.JObjectNullableType()); } static final _id_removeCredentialManagementApp = _class.staticMethodId( @@ -25810,26 +28784,30 @@ class KeyChain extends jni$_.JObject { static final _removeCredentialManagementApp = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticBooleanMethod') + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticBooleanMethod') .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public boolean removeCredentialManagementApp(android.content.Context context)` - static bool removeCredentialManagementApp( - jni$_.JObject? context, - ) { + static bool removeCredentialManagementApp(jni$_.JObject? context) { final _$context = context?.reference ?? jni$_.jNullReference; return _removeCredentialManagementApp( - _class.reference.pointer, - _id_removeCredentialManagementApp as jni$_.JMethodIDPtr, - _$context.pointer) - .boolean; + _class.reference.pointer, + _id_removeCredentialManagementApp as jni$_.JMethodIDPtr, + _$context.pointer, + ).boolean; } static final _id_getPrivateKey = _class.staticMethodId( @@ -25837,22 +28815,26 @@ class KeyChain extends jni$_.JObject { r'(Landroid/content/Context;Ljava/lang/String;)Ljava/security/PrivateKey;', ); - static final _getPrivateKey = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getPrivateKey = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public java.security.PrivateKey getPrivateKey(android.content.Context context, java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. @@ -25863,11 +28845,11 @@ class KeyChain extends jni$_.JObject { final _$context = context?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; return _getPrivateKey( - _class.reference.pointer, - _id_getPrivateKey as jni$_.JMethodIDPtr, - _$context.pointer, - _$string.pointer) - .object(const $PrivateKey$NullableType()); + _class.reference.pointer, + _id_getPrivateKey as jni$_.JMethodIDPtr, + _$context.pointer, + _$string.pointer, + ).object(const $PrivateKey$NullableType()); } static final _id_getCertificateChain = _class.staticMethodId( @@ -25875,22 +28857,26 @@ class KeyChain extends jni$_.JObject { r'(Landroid/content/Context;Ljava/lang/String;)[Ljava/security/cert/X509Certificate;', ); - static final _getCertificateChain = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getCertificateChain = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public java.security.cert.X509Certificate[] getCertificateChain(android.content.Context context, java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. @@ -25901,13 +28887,15 @@ class KeyChain extends jni$_.JObject { final _$context = context?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; return _getCertificateChain( - _class.reference.pointer, - _id_getCertificateChain as jni$_.JMethodIDPtr, - _$context.pointer, - _$string.pointer) - .object?>( - const jni$_.JArrayNullableType( - $X509Certificate$NullableType())); + _class.reference.pointer, + _id_getCertificateChain as jni$_.JMethodIDPtr, + _$context.pointer, + _$string.pointer, + ).object?>( + const jni$_.JArrayNullableType( + $X509Certificate$NullableType(), + ), + ); } static final _id_isKeyAlgorithmSupported = _class.staticMethodId( @@ -25915,25 +28903,32 @@ class KeyChain extends jni$_.JObject { r'(Ljava/lang/String;)Z', ); - static final _isKeyAlgorithmSupported = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _isKeyAlgorithmSupported = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public boolean isKeyAlgorithmSupported(java.lang.String string)` - static bool isKeyAlgorithmSupported( - jni$_.JString? string, - ) { + static bool isKeyAlgorithmSupported(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _isKeyAlgorithmSupported(_class.reference.pointer, - _id_isKeyAlgorithmSupported as jni$_.JMethodIDPtr, _$string.pointer) - .boolean; + return _isKeyAlgorithmSupported( + _class.reference.pointer, + _id_isKeyAlgorithmSupported as jni$_.JMethodIDPtr, + _$string.pointer, + ).boolean; } static final _id_isBoundKeyAlgorithm = _class.staticMethodId( @@ -25941,25 +28936,32 @@ class KeyChain extends jni$_.JObject { r'(Ljava/lang/String;)Z', ); - static final _isBoundKeyAlgorithm = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _isBoundKeyAlgorithm = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public boolean isBoundKeyAlgorithm(java.lang.String string)` - static bool isBoundKeyAlgorithm( - jni$_.JString? string, - ) { + static bool isBoundKeyAlgorithm(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _isBoundKeyAlgorithm(_class.reference.pointer, - _id_isBoundKeyAlgorithm as jni$_.JMethodIDPtr, _$string.pointer) - .boolean; + return _isBoundKeyAlgorithm( + _class.reference.pointer, + _id_isBoundKeyAlgorithm as jni$_.JMethodIDPtr, + _$string.pointer, + ).boolean; } } @@ -25973,11 +28975,8 @@ final class $KeyChain$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - KeyChain? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : KeyChain.fromReference( - reference, - ); + KeyChain? fromReference(jni$_.JReference reference) => + reference.isNull ? null : KeyChain.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -26010,9 +29009,8 @@ final class $KeyChain$Type extends jni$_.JObjType { @jni$_.internal @core$_.override - KeyChain fromReference(jni$_.JReference reference) => KeyChain.fromReference( - reference, - ); + KeyChain fromReference(jni$_.JReference reference) => + KeyChain.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -26041,13 +29039,13 @@ class KeyChainAliasCallback extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - KeyChainAliasCallback.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + KeyChainAliasCallback.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'android/security/KeyChainAliasCallback'); + static final _class = jni$_.JClass.forName( + r'android/security/KeyChainAliasCallback', + ); /// The type which includes information such as the signature of this class. static const nullableType = $KeyChainAliasCallback$NullableType(); @@ -26057,24 +29055,32 @@ class KeyChainAliasCallback extends jni$_.JObject { r'(Ljava/lang/String;)V', ); - static final _alias = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _alias = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract void alias(java.lang.String string)` - void alias( - jni$_.JString? string, - ) { + void alias(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - _alias(reference.pointer, _id_alias as jni$_.JMethodIDPtr, _$string.pointer) - .check(); + _alias( + reference.pointer, + _id_alias as jni$_.JMethodIDPtr, + _$string.pointer, + ).check(); } /// Maps a specific port to the implemented interface. @@ -26086,19 +29092,16 @@ class KeyChainAliasCallback extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address), ); } static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -26138,22 +29141,16 @@ class KeyChainAliasCallback extends jni$_.JObject { r'android.security.KeyChainAliasCallback', $p, _$invokePointer, - [ - if ($impl.alias$async) r'alias(Ljava/lang/String;)V', - ], + [if ($impl.alias$async) r'alias(Ljava/lang/String;)V'], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } - factory KeyChainAliasCallback.implement( - $KeyChainAliasCallback $impl, - ) { + factory KeyChainAliasCallback.implement($KeyChainAliasCallback $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return KeyChainAliasCallback.fromReference( - $i.implementReference(), - ); + return KeyChainAliasCallback.fromReference($i.implementReference()); } } @@ -26193,11 +29190,7 @@ final class $KeyChainAliasCallback$NullableType @jni$_.internal @core$_.override KeyChainAliasCallback? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : KeyChainAliasCallback.fromReference( - reference, - ); + reference.isNull ? null : KeyChainAliasCallback.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -26232,9 +29225,7 @@ final class $KeyChainAliasCallback$Type @jni$_.internal @core$_.override KeyChainAliasCallback fromReference(jni$_.JReference reference) => - KeyChainAliasCallback.fromReference( - reference, - ); + KeyChainAliasCallback.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -26265,10 +29256,9 @@ class PrivateKey extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - PrivateKey.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + PrivateKey.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'java/security/PrivateKey'); @@ -26288,19 +29278,16 @@ class PrivateKey extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address), ); } static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -26315,10 +29302,7 @@ class PrivateKey extends jni$_.JObject { return jni$_.nullptr; } - static void implementIn( - jni$_.JImplementer implementer, - $PrivateKey $impl, - ) { + static void implementIn(jni$_.JImplementer implementer, $PrivateKey $impl) { late final jni$_.RawReceivePort $p; $p = jni$_.RawReceivePort(($m) { if ($m == null) { @@ -26330,24 +29314,15 @@ class PrivateKey extends jni$_.JObject { final $r = _$invokeMethod($p.sendPort.nativePort, $i); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); - implementer.add( - r'java.security.PrivateKey', - $p, - _$invokePointer, - [], - ); + implementer.add(r'java.security.PrivateKey', $p, _$invokePointer, []); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } - factory PrivateKey.implement( - $PrivateKey $impl, - ) { + factory PrivateKey.implement($PrivateKey $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return PrivateKey.fromReference( - $i.implementReference(), - ); + return PrivateKey.fromReference($i.implementReference()); } } @@ -26369,11 +29344,8 @@ final class $PrivateKey$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - PrivateKey? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : PrivateKey.fromReference( - reference, - ); + PrivateKey? fromReference(jni$_.JReference reference) => + reference.isNull ? null : PrivateKey.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -26407,9 +29379,7 @@ final class $PrivateKey$Type extends jni$_.JObjType { @jni$_.internal @core$_.override PrivateKey fromReference(jni$_.JReference reference) => - PrivateKey.fromReference( - reference, - ); + PrivateKey.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -26439,10 +29409,9 @@ class Key extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Key.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Key.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'java/security/Key'); @@ -26457,24 +29426,29 @@ class Key extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getAlgorithm = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAlgorithm = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.lang.String getAlgorithm()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getAlgorithm() { return _getAlgorithm( - reference.pointer, _id_getAlgorithm as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getAlgorithm as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getFormat = _class.instanceMethodId( @@ -26482,47 +29456,56 @@ class Key extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getFormat = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getFormat = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.lang.String getFormat()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getFormat() { - return _getFormat(reference.pointer, _id_getFormat as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _getFormat( + reference.pointer, + _id_getFormat as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } - static final _id_getEncoded = _class.instanceMethodId( - r'getEncoded', - r'()[B', - ); + static final _id_getEncoded = _class.instanceMethodId(r'getEncoded', r'()[B'); - static final _getEncoded = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getEncoded = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract byte[] getEncoded()` /// The returned object must be released after use, by calling the [release] method. jni$_.JByteArray? getEncoded() { - return _getEncoded(reference.pointer, _id_getEncoded as jni$_.JMethodIDPtr) - .object(const jni$_.JByteArrayNullableType()); + return _getEncoded( + reference.pointer, + _id_getEncoded as jni$_.JMethodIDPtr, + ).object(const jni$_.JByteArrayNullableType()); } /// Maps a specific port to the implemented interface. @@ -26534,19 +29517,16 @@ class Key extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address), ); } static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -26585,10 +29565,7 @@ class Key extends jni$_.JObject { return jni$_.nullptr; } - static void implementIn( - jni$_.JImplementer implementer, - $Key $impl, - ) { + static void implementIn(jni$_.JImplementer implementer, $Key $impl) { late final jni$_.RawReceivePort $p; $p = jni$_.RawReceivePort(($m) { if ($m == null) { @@ -26600,24 +29577,15 @@ class Key extends jni$_.JObject { final $r = _$invokeMethod($p.sendPort.nativePort, $i); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); - implementer.add( - r'java.security.Key', - $p, - _$invokePointer, - [], - ); + implementer.add(r'java.security.Key', $p, _$invokePointer, []); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } - factory Key.implement( - $Key $impl, - ) { + factory Key.implement($Key $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return Key.fromReference( - $i.implementReference(), - ); + return Key.fromReference($i.implementReference()); } } @@ -26638,9 +29606,9 @@ final class _$Key with $Key { required jni$_.JString? Function() getAlgorithm, required jni$_.JString? Function() getFormat, required jni$_.JByteArray? Function() getEncoded, - }) : _getAlgorithm = getAlgorithm, - _getFormat = getFormat, - _getEncoded = getEncoded; + }) : _getAlgorithm = getAlgorithm, + _getFormat = getFormat, + _getEncoded = getEncoded; final jni$_.JString? Function() _getAlgorithm; final jni$_.JString? Function() _getFormat; @@ -26669,11 +29637,8 @@ final class $Key$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - Key? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Key.fromReference( - reference, - ); + Key? fromReference(jni$_.JReference reference) => + reference.isNull ? null : Key.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -26706,9 +29671,7 @@ final class $Key$Type extends jni$_.JObjType { @jni$_.internal @core$_.override - Key fromReference(jni$_.JReference reference) => Key.fromReference( - reference, - ); + Key fromReference(jni$_.JReference reference) => Key.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -26737,13 +29700,13 @@ class KeyManagerFactory extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - KeyManagerFactory.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + KeyManagerFactory.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); - static final _class = - jni$_.JClass.forName(r'javax/net/ssl/KeyManagerFactory'); + static final _class = jni$_.JClass.forName( + r'javax/net/ssl/KeyManagerFactory', + ); /// The type which includes information such as the signature of this class. static const nullableType = $KeyManagerFactory$NullableType(); @@ -26753,24 +29716,29 @@ class KeyManagerFactory extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getDefaultAlgorithm = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getDefaultAlgorithm = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `static public final java.lang.String getDefaultAlgorithm()` /// The returned object must be released after use, by calling the [release] method. static jni$_.JString? getDefaultAlgorithm() { - return _getDefaultAlgorithm(_class.reference.pointer, - _id_getDefaultAlgorithm as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _getDefaultAlgorithm( + _class.reference.pointer, + _id_getDefaultAlgorithm as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getAlgorithm = _class.instanceMethodId( @@ -26778,24 +29746,29 @@ class KeyManagerFactory extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getAlgorithm = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAlgorithm = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.lang.String getAlgorithm()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getAlgorithm() { return _getAlgorithm( - reference.pointer, _id_getAlgorithm as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getAlgorithm as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getInstance = _class.staticMethodId( @@ -26803,26 +29776,33 @@ class KeyManagerFactory extends jni$_.JObject { r'(Ljava/lang/String;)Ljavax/net/ssl/KeyManagerFactory;', ); - static final _getInstance = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _getInstance = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public final javax.net.ssl.KeyManagerFactory getInstance(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - static KeyManagerFactory? getInstance( - jni$_.JString? string, - ) { + static KeyManagerFactory? getInstance(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _getInstance(_class.reference.pointer, - _id_getInstance as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $KeyManagerFactory$NullableType()); + return _getInstance( + _class.reference.pointer, + _id_getInstance as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $KeyManagerFactory$NullableType()); } static final _id_getInstance$1 = _class.staticMethodId( @@ -26830,22 +29810,26 @@ class KeyManagerFactory extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)Ljavax/net/ssl/KeyManagerFactory;', ); - static final _getInstance$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getInstance$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public final javax.net.ssl.KeyManagerFactory getInstance(java.lang.String string, java.lang.String string1)` /// The returned object must be released after use, by calling the [release] method. @@ -26856,11 +29840,11 @@ class KeyManagerFactory extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; return _getInstance$1( - _class.reference.pointer, - _id_getInstance$1 as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer) - .object(const $KeyManagerFactory$NullableType()); + _class.reference.pointer, + _id_getInstance$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).object(const $KeyManagerFactory$NullableType()); } static final _id_getInstance$2 = _class.staticMethodId( @@ -26868,22 +29852,26 @@ class KeyManagerFactory extends jni$_.JObject { r'(Ljava/lang/String;Ljava/security/Provider;)Ljavax/net/ssl/KeyManagerFactory;', ); - static final _getInstance$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getInstance$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public final javax.net.ssl.KeyManagerFactory getInstance(java.lang.String string, java.security.Provider provider)` /// The returned object must be released after use, by calling the [release] method. @@ -26894,11 +29882,11 @@ class KeyManagerFactory extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$provider = provider?.reference ?? jni$_.jNullReference; return _getInstance$2( - _class.reference.pointer, - _id_getInstance$2 as jni$_.JMethodIDPtr, - _$string.pointer, - _$provider.pointer) - .object(const $KeyManagerFactory$NullableType()); + _class.reference.pointer, + _id_getInstance$2 as jni$_.JMethodIDPtr, + _$string.pointer, + _$provider.pointer, + ).object(const $KeyManagerFactory$NullableType()); } static final _id_getProvider = _class.instanceMethodId( @@ -26906,24 +29894,29 @@ class KeyManagerFactory extends jni$_.JObject { r'()Ljava/security/Provider;', ); - static final _getProvider = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getProvider = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.security.Provider getProvider()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getProvider() { return _getProvider( - reference.pointer, _id_getProvider as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getProvider as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } static final _id_init = _class.instanceMethodId( @@ -26931,33 +29924,37 @@ class KeyManagerFactory extends jni$_.JObject { r'(Ljava/security/KeyStore;[C)V', ); - static final _init = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _init = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public final void init(java.security.KeyStore keyStore, char[] cs)` - void init( - KeyStore? keyStore, - jni$_.JCharArray? cs, - ) { + void init(KeyStore? keyStore, jni$_.JCharArray? cs) { final _$keyStore = keyStore?.reference ?? jni$_.jNullReference; final _$cs = cs?.reference ?? jni$_.jNullReference; - _init(reference.pointer, _id_init as jni$_.JMethodIDPtr, _$keyStore.pointer, - _$cs.pointer) - .check(); + _init( + reference.pointer, + _id_init as jni$_.JMethodIDPtr, + _$keyStore.pointer, + _$cs.pointer, + ).check(); } static final _id_init$1 = _class.instanceMethodId( @@ -26965,26 +29962,33 @@ class KeyManagerFactory extends jni$_.JObject { r'(Ljavax/net/ssl/ManagerFactoryParameters;)V', ); - static final _init$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _init$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public final void init(javax.net.ssl.ManagerFactoryParameters managerFactoryParameters)` - void init$1( - jni$_.JObject? managerFactoryParameters, - ) { + void init$1(jni$_.JObject? managerFactoryParameters) { final _$managerFactoryParameters = managerFactoryParameters?.reference ?? jni$_.jNullReference; - _init$1(reference.pointer, _id_init$1 as jni$_.JMethodIDPtr, - _$managerFactoryParameters.pointer) - .check(); + _init$1( + reference.pointer, + _id_init$1 as jni$_.JMethodIDPtr, + _$managerFactoryParameters.pointer, + ).check(); } static final _id_getKeyManagers = _class.instanceMethodId( @@ -26992,26 +29996,31 @@ class KeyManagerFactory extends jni$_.JObject { r'()[Ljavax/net/ssl/KeyManager;', ); - static final _getKeyManagers = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getKeyManagers = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final javax.net.ssl.KeyManager[] getKeyManagers()` /// The returned object must be released after use, by calling the [release] method. jni$_.JArray? getKeyManagers() { return _getKeyManagers( - reference.pointer, _id_getKeyManagers as jni$_.JMethodIDPtr) - .object?>( - const jni$_.JArrayNullableType( - $KeyManager$NullableType())); + reference.pointer, + _id_getKeyManagers as jni$_.JMethodIDPtr, + ).object?>( + const jni$_.JArrayNullableType($KeyManager$NullableType()), + ); } } @@ -27027,11 +30036,7 @@ final class $KeyManagerFactory$NullableType @jni$_.internal @core$_.override KeyManagerFactory? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : KeyManagerFactory.fromReference( - reference, - ); + reference.isNull ? null : KeyManagerFactory.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -27065,9 +30070,7 @@ final class $KeyManagerFactory$Type extends jni$_.JObjType { @jni$_.internal @core$_.override KeyManagerFactory fromReference(jni$_.JReference reference) => - KeyManagerFactory.fromReference( - reference, - ); + KeyManagerFactory.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -27098,10 +30101,9 @@ class KeyPairGenerator extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - KeyPairGenerator.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + KeyPairGenerator.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'java/security/KeyPairGenerator'); @@ -27113,24 +30115,29 @@ class KeyPairGenerator extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getAlgorithm = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getAlgorithm = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.lang.String getAlgorithm()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getAlgorithm() { return _getAlgorithm( - reference.pointer, _id_getAlgorithm as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + reference.pointer, + _id_getAlgorithm as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getInstance = _class.staticMethodId( @@ -27138,26 +30145,33 @@ class KeyPairGenerator extends jni$_.JObject { r'(Ljava/lang/String;)Ljava/security/KeyPairGenerator;', ); - static final _getInstance = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _getInstance = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.security.KeyPairGenerator getInstance(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - static KeyPairGenerator? getInstance( - jni$_.JString? string, - ) { + static KeyPairGenerator? getInstance(jni$_.JString? string) { final _$string = string?.reference ?? jni$_.jNullReference; - return _getInstance(_class.reference.pointer, - _id_getInstance as jni$_.JMethodIDPtr, _$string.pointer) - .object(const $KeyPairGenerator$NullableType()); + return _getInstance( + _class.reference.pointer, + _id_getInstance as jni$_.JMethodIDPtr, + _$string.pointer, + ).object(const $KeyPairGenerator$NullableType()); } static final _id_getInstance$1 = _class.staticMethodId( @@ -27165,22 +30179,26 @@ class KeyPairGenerator extends jni$_.JObject { r'(Ljava/lang/String;Ljava/lang/String;)Ljava/security/KeyPairGenerator;', ); - static final _getInstance$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getInstance$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public java.security.KeyPairGenerator getInstance(java.lang.String string, java.lang.String string1)` /// The returned object must be released after use, by calling the [release] method. @@ -27191,11 +30209,11 @@ class KeyPairGenerator extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$string1 = string1?.reference ?? jni$_.jNullReference; return _getInstance$1( - _class.reference.pointer, - _id_getInstance$1 as jni$_.JMethodIDPtr, - _$string.pointer, - _$string1.pointer) - .object(const $KeyPairGenerator$NullableType()); + _class.reference.pointer, + _id_getInstance$1 as jni$_.JMethodIDPtr, + _$string.pointer, + _$string1.pointer, + ).object(const $KeyPairGenerator$NullableType()); } static final _id_getInstance$2 = _class.staticMethodId( @@ -27203,22 +30221,26 @@ class KeyPairGenerator extends jni$_.JObject { r'(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/KeyPairGenerator;', ); - static final _getInstance$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getInstance$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public java.security.KeyPairGenerator getInstance(java.lang.String string, java.security.Provider provider)` /// The returned object must be released after use, by calling the [release] method. @@ -27229,11 +30251,11 @@ class KeyPairGenerator extends jni$_.JObject { final _$string = string?.reference ?? jni$_.jNullReference; final _$provider = provider?.reference ?? jni$_.jNullReference; return _getInstance$2( - _class.reference.pointer, - _id_getInstance$2 as jni$_.JMethodIDPtr, - _$string.pointer, - _$provider.pointer) - .object(const $KeyPairGenerator$NullableType()); + _class.reference.pointer, + _id_getInstance$2 as jni$_.JMethodIDPtr, + _$string.pointer, + _$provider.pointer, + ).object(const $KeyPairGenerator$NullableType()); } static final _id_getProvider = _class.instanceMethodId( @@ -27241,47 +30263,58 @@ class KeyPairGenerator extends jni$_.JObject { r'()Ljava/security/Provider;', ); - static final _getProvider = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getProvider = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.security.Provider getProvider()` /// The returned object must be released after use, by calling the [release] method. jni$_.JObject? getProvider() { return _getProvider( - reference.pointer, _id_getProvider as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectNullableType()); + reference.pointer, + _id_getProvider as jni$_.JMethodIDPtr, + ).object(const jni$_.JObjectNullableType()); } - static final _id_initialize = _class.instanceMethodId( - r'initialize', - r'(I)V', - ); + static final _id_initialize = _class.instanceMethodId(r'initialize', r'(I)V'); - static final _initialize = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _initialize = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public void initialize(int i)` - void initialize( - int i, - ) { - _initialize(reference.pointer, _id_initialize as jni$_.JMethodIDPtr, i) - .check(); + void initialize(int i) { + _initialize( + reference.pointer, + _id_initialize as jni$_.JMethodIDPtr, + i, + ).check(); } static final _id_initialize$1 = _class.instanceMethodId( @@ -27289,27 +30322,34 @@ class KeyPairGenerator extends jni$_.JObject { r'(ILjava/security/SecureRandom;)V', ); - static final _initialize$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Int32, jni$_.Pointer)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, int, jni$_.Pointer)>(); + static final _initialize$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32, jni$_.Pointer)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + jni$_.Pointer, + ) + >(); /// from: `public void initialize(int i, java.security.SecureRandom secureRandom)` - void initialize$1( - int i, - SecureRandom? secureRandom, - ) { + void initialize$1(int i, SecureRandom? secureRandom) { final _$secureRandom = secureRandom?.reference ?? jni$_.jNullReference; - _initialize$1(reference.pointer, _id_initialize$1 as jni$_.JMethodIDPtr, i, - _$secureRandom.pointer) - .check(); + _initialize$1( + reference.pointer, + _id_initialize$1 as jni$_.JMethodIDPtr, + i, + _$secureRandom.pointer, + ).check(); } static final _id_initialize$2 = _class.instanceMethodId( @@ -27317,26 +30357,33 @@ class KeyPairGenerator extends jni$_.JObject { r'(Ljava/security/spec/AlgorithmParameterSpec;)V', ); - static final _initialize$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _initialize$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void initialize(java.security.spec.AlgorithmParameterSpec algorithmParameterSpec)` - void initialize$2( - jni$_.JObject? algorithmParameterSpec, - ) { + void initialize$2(jni$_.JObject? algorithmParameterSpec) { final _$algorithmParameterSpec = algorithmParameterSpec?.reference ?? jni$_.jNullReference; - _initialize$2(reference.pointer, _id_initialize$2 as jni$_.JMethodIDPtr, - _$algorithmParameterSpec.pointer) - .check(); + _initialize$2( + reference.pointer, + _id_initialize$2 as jni$_.JMethodIDPtr, + _$algorithmParameterSpec.pointer, + ).check(); } static final _id_initialize$3 = _class.instanceMethodId( @@ -27344,22 +30391,26 @@ class KeyPairGenerator extends jni$_.JObject { r'(Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V', ); - static final _initialize$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _initialize$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void initialize(java.security.spec.AlgorithmParameterSpec algorithmParameterSpec, java.security.SecureRandom secureRandom)` void initialize$3( @@ -27369,9 +30420,12 @@ class KeyPairGenerator extends jni$_.JObject { final _$algorithmParameterSpec = algorithmParameterSpec?.reference ?? jni$_.jNullReference; final _$secureRandom = secureRandom?.reference ?? jni$_.jNullReference; - _initialize$3(reference.pointer, _id_initialize$3 as jni$_.JMethodIDPtr, - _$algorithmParameterSpec.pointer, _$secureRandom.pointer) - .check(); + _initialize$3( + reference.pointer, + _id_initialize$3 as jni$_.JMethodIDPtr, + _$algorithmParameterSpec.pointer, + _$secureRandom.pointer, + ).check(); } static final _id_genKeyPair = _class.instanceMethodId( @@ -27379,23 +30433,29 @@ class KeyPairGenerator extends jni$_.JObject { r'()Ljava/security/KeyPair;', ); - static final _genKeyPair = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _genKeyPair = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.security.KeyPair genKeyPair()` /// The returned object must be released after use, by calling the [release] method. KeyPair? genKeyPair() { - return _genKeyPair(reference.pointer, _id_genKeyPair as jni$_.JMethodIDPtr) - .object(const $KeyPair$NullableType()); + return _genKeyPair( + reference.pointer, + _id_genKeyPair as jni$_.JMethodIDPtr, + ).object(const $KeyPair$NullableType()); } static final _id_generateKeyPair = _class.instanceMethodId( @@ -27403,24 +30463,29 @@ class KeyPairGenerator extends jni$_.JObject { r'()Ljava/security/KeyPair;', ); - static final _generateKeyPair = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _generateKeyPair = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.security.KeyPair generateKeyPair()` /// The returned object must be released after use, by calling the [release] method. KeyPair? generateKeyPair() { return _generateKeyPair( - reference.pointer, _id_generateKeyPair as jni$_.JMethodIDPtr) - .object(const $KeyPair$NullableType()); + reference.pointer, + _id_generateKeyPair as jni$_.JMethodIDPtr, + ).object(const $KeyPair$NullableType()); } } @@ -27436,11 +30501,7 @@ final class $KeyPairGenerator$NullableType @jni$_.internal @core$_.override KeyPairGenerator? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : KeyPairGenerator.fromReference( - reference, - ); + reference.isNull ? null : KeyPairGenerator.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -27474,9 +30535,7 @@ final class $KeyPairGenerator$Type extends jni$_.JObjType { @jni$_.internal @core$_.override KeyPairGenerator fromReference(jni$_.JReference reference) => - KeyPairGenerator.fromReference( - reference, - ); + KeyPairGenerator.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -27507,10 +30566,9 @@ class KeyPair extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - KeyPair.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + KeyPair.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'java/security/KeyPair'); @@ -27521,37 +30579,40 @@ class KeyPair extends jni$_.JObject { r'(Ljava/security/PublicKey;Ljava/security/PrivateKey;)V', ); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void (java.security.PublicKey publicKey, java.security.PrivateKey privateKey)` /// The returned object must be released after use, by calling the [release] method. - factory KeyPair( - PublicKey? publicKey, - PrivateKey? privateKey, - ) { + factory KeyPair(PublicKey? publicKey, PrivateKey? privateKey) { final _$publicKey = publicKey?.reference ?? jni$_.jNullReference; final _$privateKey = privateKey?.reference ?? jni$_.jNullReference; - return KeyPair.fromReference(_new$( - _class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, - _$publicKey.pointer, - _$privateKey.pointer) - .reference); + return KeyPair.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$publicKey.pointer, + _$privateKey.pointer, + ).reference, + ); } static final _id_getPublic = _class.instanceMethodId( @@ -27559,23 +30620,29 @@ class KeyPair extends jni$_.JObject { r'()Ljava/security/PublicKey;', ); - static final _getPublic = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getPublic = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.security.PublicKey getPublic()` /// The returned object must be released after use, by calling the [release] method. PublicKey? getPublic() { - return _getPublic(reference.pointer, _id_getPublic as jni$_.JMethodIDPtr) - .object(const $PublicKey$NullableType()); + return _getPublic( + reference.pointer, + _id_getPublic as jni$_.JMethodIDPtr, + ).object(const $PublicKey$NullableType()); } static final _id_getPrivate = _class.instanceMethodId( @@ -27583,23 +30650,29 @@ class KeyPair extends jni$_.JObject { r'()Ljava/security/PrivateKey;', ); - static final _getPrivate = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getPrivate = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.security.PrivateKey getPrivate()` /// The returned object must be released after use, by calling the [release] method. PrivateKey? getPrivate() { - return _getPrivate(reference.pointer, _id_getPrivate as jni$_.JMethodIDPtr) - .object(const $PrivateKey$NullableType()); + return _getPrivate( + reference.pointer, + _id_getPrivate as jni$_.JMethodIDPtr, + ).object(const $PrivateKey$NullableType()); } } @@ -27613,11 +30686,8 @@ final class $KeyPair$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - KeyPair? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : KeyPair.fromReference( - reference, - ); + KeyPair? fromReference(jni$_.JReference reference) => + reference.isNull ? null : KeyPair.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -27650,9 +30720,8 @@ final class $KeyPair$Type extends jni$_.JObjType { @jni$_.internal @core$_.override - KeyPair fromReference(jni$_.JReference reference) => KeyPair.fromReference( - reference, - ); + KeyPair fromReference(jni$_.JReference reference) => + KeyPair.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -27681,10 +30750,9 @@ class PublicKey extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - PublicKey.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + PublicKey.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'java/security/PublicKey'); @@ -27704,19 +30772,16 @@ class PublicKey extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address), ); } static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -27731,10 +30796,7 @@ class PublicKey extends jni$_.JObject { return jni$_.nullptr; } - static void implementIn( - jni$_.JImplementer implementer, - $PublicKey $impl, - ) { + static void implementIn(jni$_.JImplementer implementer, $PublicKey $impl) { late final jni$_.RawReceivePort $p; $p = jni$_.RawReceivePort(($m) { if ($m == null) { @@ -27746,24 +30808,15 @@ class PublicKey extends jni$_.JObject { final $r = _$invokeMethod($p.sendPort.nativePort, $i); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); - implementer.add( - r'java.security.PublicKey', - $p, - _$invokePointer, - [], - ); + implementer.add(r'java.security.PublicKey', $p, _$invokePointer, []); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } - factory PublicKey.implement( - $PublicKey $impl, - ) { + factory PublicKey.implement($PublicKey $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return PublicKey.fromReference( - $i.implementReference(), - ); + return PublicKey.fromReference($i.implementReference()); } } @@ -27785,11 +30838,8 @@ final class $PublicKey$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - PublicKey? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : PublicKey.fromReference( - reference, - ); + PublicKey? fromReference(jni$_.JReference reference) => + reference.isNull ? null : PublicKey.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -27823,9 +30873,7 @@ final class $PublicKey$Type extends jni$_.JObjType { @jni$_.internal @core$_.override PublicKey fromReference(jni$_.JReference reference) => - PublicKey.fromReference( - reference, - ); + PublicKey.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -27855,126 +30903,144 @@ class ByteArrayInputStream extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - ByteArrayInputStream.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + ByteArrayInputStream.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'java/io/ByteArrayInputStream'); /// The type which includes information such as the signature of this class. static const nullableType = $ByteArrayInputStream$NullableType(); static const type = $ByteArrayInputStream$Type(); - static final _id_new$ = _class.constructorId( - r'([B)V', - ); + static final _id_new$ = _class.constructorId(r'([B)V'); - static final _new$ = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _new$ = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public void (byte[] bs)` /// The returned object must be released after use, by calling the [release] method. - factory ByteArrayInputStream( - jni$_.JByteArray? bs, - ) { + factory ByteArrayInputStream(jni$_.JByteArray? bs) { final _$bs = bs?.reference ?? jni$_.jNullReference; - return ByteArrayInputStream.fromReference(_new$(_class.reference.pointer, - _id_new$ as jni$_.JMethodIDPtr, _$bs.pointer) - .reference); + return ByteArrayInputStream.fromReference( + _new$( + _class.reference.pointer, + _id_new$ as jni$_.JMethodIDPtr, + _$bs.pointer, + ).reference, + ); } - static final _id_new$1 = _class.constructorId( - r'([BII)V', - ); + static final _id_new$1 = _class.constructorId(r'([BII)V'); - static final _new$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _new$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_NewObject') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_NewObject') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `public void (byte[] bs, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. - factory ByteArrayInputStream.new$1( - jni$_.JByteArray? bs, - int i, - int i1, - ) { + factory ByteArrayInputStream.new$1(jni$_.JByteArray? bs, int i, int i1) { final _$bs = bs?.reference ?? jni$_.jNullReference; - return ByteArrayInputStream.fromReference(_new$1(_class.reference.pointer, - _id_new$1 as jni$_.JMethodIDPtr, _$bs.pointer, i, i1) - .reference); + return ByteArrayInputStream.fromReference( + _new$1( + _class.reference.pointer, + _id_new$1 as jni$_.JMethodIDPtr, + _$bs.pointer, + i, + i1, + ).reference, + ); } - static final _id_read = _class.instanceMethodId( - r'read', - r'()I', - ); + static final _id_read = _class.instanceMethodId(r'read', r'()I'); - static final _read = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _read = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int read()` int read() { return _read(reference.pointer, _id_read as jni$_.JMethodIDPtr).integer; } - static final _id_read$1 = _class.instanceMethodId( - r'read', - r'([BII)I', - ); + static final _id_read$1 = _class.instanceMethodId(r'read', r'([BII)I'); - static final _read$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _read$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `public int read(byte[] bs, int i, int i1)` - int read$1( - jni$_.JByteArray? bs, - int i, - int i1, - ) { + int read$1(jni$_.JByteArray? bs, int i, int i1) { final _$bs = bs?.reference ?? jni$_.jNullReference; - return _read$1(reference.pointer, _id_read$1 as jni$_.JMethodIDPtr, - _$bs.pointer, i, i1) - .integer; + return _read$1( + reference.pointer, + _id_read$1 as jni$_.JMethodIDPtr, + _$bs.pointer, + i, + i1, + ).integer; } static final _id_readAllBytes = _class.instanceMethodId( @@ -27982,24 +31048,29 @@ class ByteArrayInputStream extends jni$_.JObject { r'()[B', ); - static final _readAllBytes = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _readAllBytes = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public byte[] readAllBytes()` /// The returned object must be released after use, by calling the [release] method. jni$_.JByteArray? readAllBytes() { return _readAllBytes( - reference.pointer, _id_readAllBytes as jni$_.JMethodIDPtr) - .object(const jni$_.JByteArrayNullableType()); + reference.pointer, + _id_readAllBytes as jni$_.JMethodIDPtr, + ).object(const jni$_.JByteArrayNullableType()); } static final _id_readNBytes = _class.instanceMethodId( @@ -28007,31 +31078,38 @@ class ByteArrayInputStream extends jni$_.JObject { r'([BII)I', ); - static final _readNBytes = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _readNBytes = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `public int readNBytes(byte[] bs, int i, int i1)` - int readNBytes( - jni$_.JByteArray? bs, - int i, - int i1, - ) { + int readNBytes(jni$_.JByteArray? bs, int i, int i1) { final _$bs = bs?.reference ?? jni$_.jNullReference; - return _readNBytes(reference.pointer, _id_readNBytes as jni$_.JMethodIDPtr, - _$bs.pointer, i, i1) - .integer; + return _readNBytes( + reference.pointer, + _id_readNBytes as jni$_.JMethodIDPtr, + _$bs.pointer, + i, + i1, + ).integer; } static final _id_transferTo = _class.instanceMethodId( @@ -28039,70 +31117,83 @@ class ByteArrayInputStream extends jni$_.JObject { r'(Ljava/io/OutputStream;)J', ); - static final _transferTo = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _transferTo = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public long transferTo(java.io.OutputStream outputStream)` - int transferTo( - jni$_.JObject? outputStream, - ) { + int transferTo(jni$_.JObject? outputStream) { final _$outputStream = outputStream?.reference ?? jni$_.jNullReference; - return _transferTo(reference.pointer, _id_transferTo as jni$_.JMethodIDPtr, - _$outputStream.pointer) - .long; + return _transferTo( + reference.pointer, + _id_transferTo as jni$_.JMethodIDPtr, + _$outputStream.pointer, + ).long; } - static final _id_skip = _class.instanceMethodId( - r'skip', - r'(J)J', - ); + static final _id_skip = _class.instanceMethodId(r'skip', r'(J)J'); - static final _skip = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _skip = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int64,)>)>>('globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int64,)>, + ) + > + >('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public long skip(long j)` - int skip( - int j, - ) { + int skip(int j) { return _skip(reference.pointer, _id_skip as jni$_.JMethodIDPtr, j).long; } - static final _id_available = _class.instanceMethodId( - r'available', - r'()I', - ); + static final _id_available = _class.instanceMethodId(r'available', r'()I'); - static final _available = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _available = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public int available()` int available() { - return _available(reference.pointer, _id_available as jni$_.JMethodIDPtr) - .integer; + return _available( + reference.pointer, + _id_available as jni$_.JMethodIDPtr, + ).integer; } static final _id_markSupported = _class.instanceMethodId( @@ -28110,85 +31201,95 @@ class ByteArrayInputStream extends jni$_.JObject { r'()Z', ); - static final _markSupported = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _markSupported = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public boolean markSupported()` bool markSupported() { return _markSupported( - reference.pointer, _id_markSupported as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_markSupported as jni$_.JMethodIDPtr, + ).boolean; } - static final _id_mark = _class.instanceMethodId( - r'mark', - r'(I)V', - ); + static final _id_mark = _class.instanceMethodId(r'mark', r'(I)V'); - static final _mark = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _mark = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + int, + ) + >(); /// from: `public void mark(int i)` - void mark( - int i, - ) { + void mark(int i) { _mark(reference.pointer, _id_mark as jni$_.JMethodIDPtr, i).check(); } - static final _id_reset = _class.instanceMethodId( - r'reset', - r'()V', - ); + static final _id_reset = _class.instanceMethodId(r'reset', r'()V'); - static final _reset = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _reset = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void reset()` void reset() { _reset(reference.pointer, _id_reset as jni$_.JMethodIDPtr).check(); } - static final _id_close = _class.instanceMethodId( - r'close', - r'()V', - ); + static final _id_close = _class.instanceMethodId(r'close', r'()V'); - static final _close = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _close = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public void close()` void close() { @@ -28208,11 +31309,7 @@ final class $ByteArrayInputStream$NullableType @jni$_.internal @core$_.override ByteArrayInputStream? fromReference(jni$_.JReference reference) => - reference.isNull - ? null - : ByteArrayInputStream.fromReference( - reference, - ); + reference.isNull ? null : ByteArrayInputStream.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -28247,9 +31344,7 @@ final class $ByteArrayInputStream$Type @jni$_.internal @core$_.override ByteArrayInputStream fromReference(jni$_.JReference reference) => - ByteArrayInputStream.fromReference( - reference, - ); + ByteArrayInputStream.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -28283,11 +31378,9 @@ class Enumeration<$E extends jni$_.JObject?> extends jni$_.JObject { final jni$_.JObjType<$E> E; @jni$_.internal - Enumeration.fromReference( - this.E, - jni$_.JReference reference, - ) : $type = type<$E>(E), - super.fromReference(reference); + Enumeration.fromReference(this.E, jni$_.JReference reference) + : $type = type<$E>(E), + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'java/util/Enumeration'); @@ -28295,17 +31388,13 @@ class Enumeration<$E extends jni$_.JObject?> extends jni$_.JObject { static $Enumeration$NullableType<$E> nullableType<$E extends jni$_.JObject?>( jni$_.JObjType<$E> E, ) { - return $Enumeration$NullableType<$E>( - E, - ); + return $Enumeration$NullableType<$E>(E); } static $Enumeration$Type<$E> type<$E extends jni$_.JObject?>( jni$_.JObjType<$E> E, ) { - return $Enumeration$Type<$E>( - E, - ); + return $Enumeration$Type<$E>(E); } static final _id_hasMoreElements = _class.instanceMethodId( @@ -28313,23 +31402,28 @@ class Enumeration<$E extends jni$_.JObject?> extends jni$_.JObject { r'()Z', ); - static final _hasMoreElements = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hasMoreElements = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract boolean hasMoreElements()` bool hasMoreElements() { return _hasMoreElements( - reference.pointer, _id_hasMoreElements as jni$_.JMethodIDPtr) - .boolean; + reference.pointer, + _id_hasMoreElements as jni$_.JMethodIDPtr, + ).boolean; } static final _id_nextElement = _class.instanceMethodId( @@ -28337,24 +31431,29 @@ class Enumeration<$E extends jni$_.JObject?> extends jni$_.JObject { r'()Ljava/lang/Object;', ); - static final _nextElement = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _nextElement = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract E nextElement()` /// The returned object must be released after use, by calling the [release] method. $E? nextElement() { return _nextElement( - reference.pointer, _id_nextElement as jni$_.JMethodIDPtr) - .object<$E?>(E.nullableType); + reference.pointer, + _id_nextElement as jni$_.JMethodIDPtr, + ).object<$E?>(E.nullableType); } static final _id_asIterator = _class.instanceMethodId( @@ -28362,24 +31461,31 @@ class Enumeration<$E extends jni$_.JObject?> extends jni$_.JObject { r'()Ljava/util/Iterator;', ); - static final _asIterator = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _asIterator = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public java.util.Iterator asIterator()` /// The returned object must be released after use, by calling the [release] method. jni$_.JIterator<$E?>? asIterator() { - return _asIterator(reference.pointer, _id_asIterator as jni$_.JMethodIDPtr) - .object?>( - jni$_.JIteratorNullableType<$E?>(E.nullableType)); + return _asIterator( + reference.pointer, + _id_asIterator as jni$_.JMethodIDPtr, + ).object?>( + jni$_.JIteratorNullableType<$E?>(E.nullableType), + ); } /// Maps a specific port to the implemented interface. @@ -28391,19 +31497,16 @@ class Enumeration<$E extends jni$_.JObject?> extends jni$_.JObject { ) { return _$invokeMethod( port, - jni$_.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), + jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address), ); } static final jni$_.Pointer< - jni$_.NativeFunction< - jni$_.JObjectPtr Function( - jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> - _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + jni$_.NativeFunction< + jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr) + > + > + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); static jni$_.Pointer _$invokeMethod( int $p, @@ -28453,25 +31556,15 @@ class Enumeration<$E extends jni$_.JObject?> extends jni$_.JObject { final $r = _$invokeMethod($p.sendPort.nativePort, $i); jni$_.ProtectedJniExtensions.returnResult($i.result, $r); }); - implementer.add( - r'java.util.Enumeration', - $p, - _$invokePointer, - [], - ); + implementer.add(r'java.util.Enumeration', $p, _$invokePointer, []); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } - factory Enumeration.implement( - $Enumeration<$E> $impl, - ) { + factory Enumeration.implement($Enumeration<$E> $impl) { final $i = jni$_.JImplementer(); implementIn($i, $impl); - return Enumeration<$E>.fromReference( - $impl.E, - $i.implementReference(), - ); + return Enumeration<$E>.fromReference($impl.E, $i.implementReference()); } } @@ -28496,9 +31589,9 @@ final class _$Enumeration<$E extends jni$_.JObject?> with $Enumeration<$E> { required bool Function() hasMoreElements, required $E? Function() nextElement, required jni$_.JIterator? Function() asIterator, - }) : _hasMoreElements = hasMoreElements, - _nextElement = nextElement, - _asIterator = asIterator; + }) : _hasMoreElements = hasMoreElements, + _nextElement = nextElement, + _asIterator = asIterator; @core$_.override final jni$_.JObjType<$E> E; @@ -28526,9 +31619,7 @@ final class $Enumeration$NullableType<$E extends jni$_.JObject?> final jni$_.JObjType<$E> E; @jni$_.internal - const $Enumeration$NullableType( - this.E, - ); + const $Enumeration$NullableType(this.E); @jni$_.internal @core$_.override @@ -28536,12 +31627,8 @@ final class $Enumeration$NullableType<$E extends jni$_.JObject?> @jni$_.internal @core$_.override - Enumeration<$E>? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Enumeration<$E>.fromReference( - E, - reference, - ); + Enumeration<$E>? fromReference(jni$_.JReference reference) => + reference.isNull ? null : Enumeration<$E>.fromReference(E, reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -28571,9 +31658,7 @@ final class $Enumeration$Type<$E extends jni$_.JObject?> final jni$_.JObjType<$E> E; @jni$_.internal - const $Enumeration$Type( - this.E, - ); + const $Enumeration$Type(this.E); @jni$_.internal @core$_.override @@ -28582,10 +31667,7 @@ final class $Enumeration$Type<$E extends jni$_.JObject?> @jni$_.internal @core$_.override Enumeration<$E> fromReference(jni$_.JReference reference) => - Enumeration<$E>.fromReference( - E, - reference, - ); + Enumeration<$E>.fromReference(E, reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -28617,420 +31699,475 @@ class Arrays extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Arrays.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Arrays.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'java/util/Arrays'); /// The type which includes information such as the signature of this class. static const nullableType = $Arrays$NullableType(); static const type = $Arrays$Type(); - static final _id_sort = _class.staticMethodId( - r'sort', - r'([I)V', - ); + static final _id_sort = _class.staticMethodId(r'sort', r'([I)V'); - static final _sort = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _sort = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public void sort(int[] is)` - static void sort( - jni$_.JIntArray? is$, - ) { + static void sort(jni$_.JIntArray? is$) { final _$is$ = is$?.reference ?? jni$_.jNullReference; - _sort(_class.reference.pointer, _id_sort as jni$_.JMethodIDPtr, - _$is$.pointer) - .check(); + _sort( + _class.reference.pointer, + _id_sort as jni$_.JMethodIDPtr, + _$is$.pointer, + ).check(); } - static final _id_sort$1 = _class.staticMethodId( - r'sort', - r'([III)V', - ); + static final _id_sort$1 = _class.staticMethodId(r'sort', r'([III)V'); - static final _sort$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _sort$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public void sort(int[] is, int i, int i1)` - static void sort$1( - jni$_.JIntArray? is$, - int i, - int i1, - ) { + static void sort$1(jni$_.JIntArray? is$, int i, int i1) { final _$is$ = is$?.reference ?? jni$_.jNullReference; - _sort$1(_class.reference.pointer, _id_sort$1 as jni$_.JMethodIDPtr, - _$is$.pointer, i, i1) - .check(); + _sort$1( + _class.reference.pointer, + _id_sort$1 as jni$_.JMethodIDPtr, + _$is$.pointer, + i, + i1, + ).check(); } - static final _id_sort$2 = _class.staticMethodId( - r'sort', - r'([J)V', - ); + static final _id_sort$2 = _class.staticMethodId(r'sort', r'([J)V'); - static final _sort$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _sort$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public void sort(long[] js)` - static void sort$2( - jni$_.JLongArray? js, - ) { + static void sort$2(jni$_.JLongArray? js) { final _$js = js?.reference ?? jni$_.jNullReference; - _sort$2(_class.reference.pointer, _id_sort$2 as jni$_.JMethodIDPtr, - _$js.pointer) - .check(); + _sort$2( + _class.reference.pointer, + _id_sort$2 as jni$_.JMethodIDPtr, + _$js.pointer, + ).check(); } - static final _id_sort$3 = _class.staticMethodId( - r'sort', - r'([JII)V', - ); + static final _id_sort$3 = _class.staticMethodId(r'sort', r'([JII)V'); - static final _sort$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _sort$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public void sort(long[] js, int i, int i1)` - static void sort$3( - jni$_.JLongArray? js, - int i, - int i1, - ) { + static void sort$3(jni$_.JLongArray? js, int i, int i1) { final _$js = js?.reference ?? jni$_.jNullReference; - _sort$3(_class.reference.pointer, _id_sort$3 as jni$_.JMethodIDPtr, - _$js.pointer, i, i1) - .check(); + _sort$3( + _class.reference.pointer, + _id_sort$3 as jni$_.JMethodIDPtr, + _$js.pointer, + i, + i1, + ).check(); } - static final _id_sort$4 = _class.staticMethodId( - r'sort', - r'([S)V', - ); + static final _id_sort$4 = _class.staticMethodId(r'sort', r'([S)V'); - static final _sort$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _sort$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public void sort(short[] ss)` - static void sort$4( - jni$_.JShortArray? ss, - ) { + static void sort$4(jni$_.JShortArray? ss) { final _$ss = ss?.reference ?? jni$_.jNullReference; - _sort$4(_class.reference.pointer, _id_sort$4 as jni$_.JMethodIDPtr, - _$ss.pointer) - .check(); + _sort$4( + _class.reference.pointer, + _id_sort$4 as jni$_.JMethodIDPtr, + _$ss.pointer, + ).check(); } - static final _id_sort$5 = _class.staticMethodId( - r'sort', - r'([SII)V', - ); + static final _id_sort$5 = _class.staticMethodId(r'sort', r'([SII)V'); - static final _sort$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _sort$5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public void sort(short[] ss, int i, int i1)` - static void sort$5( - jni$_.JShortArray? ss, - int i, - int i1, - ) { + static void sort$5(jni$_.JShortArray? ss, int i, int i1) { final _$ss = ss?.reference ?? jni$_.jNullReference; - _sort$5(_class.reference.pointer, _id_sort$5 as jni$_.JMethodIDPtr, - _$ss.pointer, i, i1) - .check(); + _sort$5( + _class.reference.pointer, + _id_sort$5 as jni$_.JMethodIDPtr, + _$ss.pointer, + i, + i1, + ).check(); } - static final _id_sort$6 = _class.staticMethodId( - r'sort', - r'([C)V', - ); + static final _id_sort$6 = _class.staticMethodId(r'sort', r'([C)V'); - static final _sort$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _sort$6 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public void sort(char[] cs)` - static void sort$6( - jni$_.JCharArray? cs, - ) { + static void sort$6(jni$_.JCharArray? cs) { final _$cs = cs?.reference ?? jni$_.jNullReference; - _sort$6(_class.reference.pointer, _id_sort$6 as jni$_.JMethodIDPtr, - _$cs.pointer) - .check(); + _sort$6( + _class.reference.pointer, + _id_sort$6 as jni$_.JMethodIDPtr, + _$cs.pointer, + ).check(); } - static final _id_sort$7 = _class.staticMethodId( - r'sort', - r'([CII)V', - ); + static final _id_sort$7 = _class.staticMethodId(r'sort', r'([CII)V'); - static final _sort$7 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _sort$7 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public void sort(char[] cs, int i, int i1)` - static void sort$7( - jni$_.JCharArray? cs, - int i, - int i1, - ) { + static void sort$7(jni$_.JCharArray? cs, int i, int i1) { final _$cs = cs?.reference ?? jni$_.jNullReference; - _sort$7(_class.reference.pointer, _id_sort$7 as jni$_.JMethodIDPtr, - _$cs.pointer, i, i1) - .check(); + _sort$7( + _class.reference.pointer, + _id_sort$7 as jni$_.JMethodIDPtr, + _$cs.pointer, + i, + i1, + ).check(); } - static final _id_sort$8 = _class.staticMethodId( - r'sort', - r'([B)V', - ); + static final _id_sort$8 = _class.staticMethodId(r'sort', r'([B)V'); - static final _sort$8 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _sort$8 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public void sort(byte[] bs)` - static void sort$8( - jni$_.JByteArray? bs, - ) { + static void sort$8(jni$_.JByteArray? bs) { final _$bs = bs?.reference ?? jni$_.jNullReference; - _sort$8(_class.reference.pointer, _id_sort$8 as jni$_.JMethodIDPtr, - _$bs.pointer) - .check(); + _sort$8( + _class.reference.pointer, + _id_sort$8 as jni$_.JMethodIDPtr, + _$bs.pointer, + ).check(); } - static final _id_sort$9 = _class.staticMethodId( - r'sort', - r'([BII)V', - ); + static final _id_sort$9 = _class.staticMethodId(r'sort', r'([BII)V'); - static final _sort$9 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _sort$9 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public void sort(byte[] bs, int i, int i1)` - static void sort$9( - jni$_.JByteArray? bs, - int i, - int i1, - ) { + static void sort$9(jni$_.JByteArray? bs, int i, int i1) { final _$bs = bs?.reference ?? jni$_.jNullReference; - _sort$9(_class.reference.pointer, _id_sort$9 as jni$_.JMethodIDPtr, - _$bs.pointer, i, i1) - .check(); + _sort$9( + _class.reference.pointer, + _id_sort$9 as jni$_.JMethodIDPtr, + _$bs.pointer, + i, + i1, + ).check(); } - static final _id_sort$10 = _class.staticMethodId( - r'sort', - r'([F)V', - ); + static final _id_sort$10 = _class.staticMethodId(r'sort', r'([F)V'); - static final _sort$10 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _sort$10 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public void sort(float[] fs)` - static void sort$10( - jni$_.JFloatArray? fs, - ) { + static void sort$10(jni$_.JFloatArray? fs) { final _$fs = fs?.reference ?? jni$_.jNullReference; - _sort$10(_class.reference.pointer, _id_sort$10 as jni$_.JMethodIDPtr, - _$fs.pointer) - .check(); + _sort$10( + _class.reference.pointer, + _id_sort$10 as jni$_.JMethodIDPtr, + _$fs.pointer, + ).check(); } - static final _id_sort$11 = _class.staticMethodId( - r'sort', - r'([FII)V', - ); + static final _id_sort$11 = _class.staticMethodId(r'sort', r'([FII)V'); - static final _sort$11 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _sort$11 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public void sort(float[] fs, int i, int i1)` - static void sort$11( - jni$_.JFloatArray? fs, - int i, - int i1, - ) { + static void sort$11(jni$_.JFloatArray? fs, int i, int i1) { final _$fs = fs?.reference ?? jni$_.jNullReference; - _sort$11(_class.reference.pointer, _id_sort$11 as jni$_.JMethodIDPtr, - _$fs.pointer, i, i1) - .check(); + _sort$11( + _class.reference.pointer, + _id_sort$11 as jni$_.JMethodIDPtr, + _$fs.pointer, + i, + i1, + ).check(); } - static final _id_sort$12 = _class.staticMethodId( - r'sort', - r'([D)V', - ); + static final _id_sort$12 = _class.staticMethodId(r'sort', r'([D)V'); - static final _sort$12 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _sort$12 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public void sort(double[] ds)` - static void sort$12( - jni$_.JDoubleArray? ds, - ) { + static void sort$12(jni$_.JDoubleArray? ds) { final _$ds = ds?.reference ?? jni$_.jNullReference; - _sort$12(_class.reference.pointer, _id_sort$12 as jni$_.JMethodIDPtr, - _$ds.pointer) - .check(); + _sort$12( + _class.reference.pointer, + _id_sort$12 as jni$_.JMethodIDPtr, + _$ds.pointer, + ).check(); } - static final _id_sort$13 = _class.staticMethodId( - r'sort', - r'([DII)V', - ); + static final _id_sort$13 = _class.staticMethodId(r'sort', r'([DII)V'); - static final _sort$13 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _sort$13 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public void sort(double[] ds, int i, int i1)` - static void sort$13( - jni$_.JDoubleArray? ds, - int i, - int i1, - ) { + static void sort$13(jni$_.JDoubleArray? ds, int i, int i1) { final _$ds = ds?.reference ?? jni$_.jNullReference; - _sort$13(_class.reference.pointer, _id_sort$13 as jni$_.JMethodIDPtr, - _$ds.pointer, i, i1) - .check(); + _sort$13( + _class.reference.pointer, + _id_sort$13 as jni$_.JMethodIDPtr, + _$ds.pointer, + i, + i1, + ).check(); } static final _id_parallelSort = _class.staticMethodId( @@ -29038,25 +32175,32 @@ class Arrays extends jni$_.JObject { r'([B)V', ); - static final _parallelSort = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _parallelSort = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public void parallelSort(byte[] bs)` - static void parallelSort( - jni$_.JByteArray? bs, - ) { + static void parallelSort(jni$_.JByteArray? bs) { final _$bs = bs?.reference ?? jni$_.jNullReference; - _parallelSort(_class.reference.pointer, - _id_parallelSort as jni$_.JMethodIDPtr, _$bs.pointer) - .check(); + _parallelSort( + _class.reference.pointer, + _id_parallelSort as jni$_.JMethodIDPtr, + _$bs.pointer, + ).check(); } static final _id_parallelSort$1 = _class.staticMethodId( @@ -29064,31 +32208,38 @@ class Arrays extends jni$_.JObject { r'([BII)V', ); - static final _parallelSort$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _parallelSort$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public void parallelSort(byte[] bs, int i, int i1)` - static void parallelSort$1( - jni$_.JByteArray? bs, - int i, - int i1, - ) { + static void parallelSort$1(jni$_.JByteArray? bs, int i, int i1) { final _$bs = bs?.reference ?? jni$_.jNullReference; - _parallelSort$1(_class.reference.pointer, - _id_parallelSort$1 as jni$_.JMethodIDPtr, _$bs.pointer, i, i1) - .check(); + _parallelSort$1( + _class.reference.pointer, + _id_parallelSort$1 as jni$_.JMethodIDPtr, + _$bs.pointer, + i, + i1, + ).check(); } static final _id_parallelSort$2 = _class.staticMethodId( @@ -29096,25 +32247,32 @@ class Arrays extends jni$_.JObject { r'([C)V', ); - static final _parallelSort$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _parallelSort$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public void parallelSort(char[] cs)` - static void parallelSort$2( - jni$_.JCharArray? cs, - ) { + static void parallelSort$2(jni$_.JCharArray? cs) { final _$cs = cs?.reference ?? jni$_.jNullReference; - _parallelSort$2(_class.reference.pointer, - _id_parallelSort$2 as jni$_.JMethodIDPtr, _$cs.pointer) - .check(); + _parallelSort$2( + _class.reference.pointer, + _id_parallelSort$2 as jni$_.JMethodIDPtr, + _$cs.pointer, + ).check(); } static final _id_parallelSort$3 = _class.staticMethodId( @@ -29122,31 +32280,38 @@ class Arrays extends jni$_.JObject { r'([CII)V', ); - static final _parallelSort$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _parallelSort$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public void parallelSort(char[] cs, int i, int i1)` - static void parallelSort$3( - jni$_.JCharArray? cs, - int i, - int i1, - ) { + static void parallelSort$3(jni$_.JCharArray? cs, int i, int i1) { final _$cs = cs?.reference ?? jni$_.jNullReference; - _parallelSort$3(_class.reference.pointer, - _id_parallelSort$3 as jni$_.JMethodIDPtr, _$cs.pointer, i, i1) - .check(); + _parallelSort$3( + _class.reference.pointer, + _id_parallelSort$3 as jni$_.JMethodIDPtr, + _$cs.pointer, + i, + i1, + ).check(); } static final _id_parallelSort$4 = _class.staticMethodId( @@ -29154,25 +32319,32 @@ class Arrays extends jni$_.JObject { r'([S)V', ); - static final _parallelSort$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _parallelSort$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public void parallelSort(short[] ss)` - static void parallelSort$4( - jni$_.JShortArray? ss, - ) { + static void parallelSort$4(jni$_.JShortArray? ss) { final _$ss = ss?.reference ?? jni$_.jNullReference; - _parallelSort$4(_class.reference.pointer, - _id_parallelSort$4 as jni$_.JMethodIDPtr, _$ss.pointer) - .check(); + _parallelSort$4( + _class.reference.pointer, + _id_parallelSort$4 as jni$_.JMethodIDPtr, + _$ss.pointer, + ).check(); } static final _id_parallelSort$5 = _class.staticMethodId( @@ -29180,31 +32352,38 @@ class Arrays extends jni$_.JObject { r'([SII)V', ); - static final _parallelSort$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _parallelSort$5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public void parallelSort(short[] ss, int i, int i1)` - static void parallelSort$5( - jni$_.JShortArray? ss, - int i, - int i1, - ) { + static void parallelSort$5(jni$_.JShortArray? ss, int i, int i1) { final _$ss = ss?.reference ?? jni$_.jNullReference; - _parallelSort$5(_class.reference.pointer, - _id_parallelSort$5 as jni$_.JMethodIDPtr, _$ss.pointer, i, i1) - .check(); + _parallelSort$5( + _class.reference.pointer, + _id_parallelSort$5 as jni$_.JMethodIDPtr, + _$ss.pointer, + i, + i1, + ).check(); } static final _id_parallelSort$6 = _class.staticMethodId( @@ -29212,25 +32391,32 @@ class Arrays extends jni$_.JObject { r'([I)V', ); - static final _parallelSort$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _parallelSort$6 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public void parallelSort(int[] is)` - static void parallelSort$6( - jni$_.JIntArray? is$, - ) { + static void parallelSort$6(jni$_.JIntArray? is$) { final _$is$ = is$?.reference ?? jni$_.jNullReference; - _parallelSort$6(_class.reference.pointer, - _id_parallelSort$6 as jni$_.JMethodIDPtr, _$is$.pointer) - .check(); + _parallelSort$6( + _class.reference.pointer, + _id_parallelSort$6 as jni$_.JMethodIDPtr, + _$is$.pointer, + ).check(); } static final _id_parallelSort$7 = _class.staticMethodId( @@ -29238,31 +32424,38 @@ class Arrays extends jni$_.JObject { r'([III)V', ); - static final _parallelSort$7 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _parallelSort$7 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public void parallelSort(int[] is, int i, int i1)` - static void parallelSort$7( - jni$_.JIntArray? is$, - int i, - int i1, - ) { + static void parallelSort$7(jni$_.JIntArray? is$, int i, int i1) { final _$is$ = is$?.reference ?? jni$_.jNullReference; - _parallelSort$7(_class.reference.pointer, - _id_parallelSort$7 as jni$_.JMethodIDPtr, _$is$.pointer, i, i1) - .check(); + _parallelSort$7( + _class.reference.pointer, + _id_parallelSort$7 as jni$_.JMethodIDPtr, + _$is$.pointer, + i, + i1, + ).check(); } static final _id_parallelSort$8 = _class.staticMethodId( @@ -29270,25 +32463,32 @@ class Arrays extends jni$_.JObject { r'([J)V', ); - static final _parallelSort$8 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _parallelSort$8 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public void parallelSort(long[] js)` - static void parallelSort$8( - jni$_.JLongArray? js, - ) { + static void parallelSort$8(jni$_.JLongArray? js) { final _$js = js?.reference ?? jni$_.jNullReference; - _parallelSort$8(_class.reference.pointer, - _id_parallelSort$8 as jni$_.JMethodIDPtr, _$js.pointer) - .check(); + _parallelSort$8( + _class.reference.pointer, + _id_parallelSort$8 as jni$_.JMethodIDPtr, + _$js.pointer, + ).check(); } static final _id_parallelSort$9 = _class.staticMethodId( @@ -29296,31 +32496,38 @@ class Arrays extends jni$_.JObject { r'([JII)V', ); - static final _parallelSort$9 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _parallelSort$9 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public void parallelSort(long[] js, int i, int i1)` - static void parallelSort$9( - jni$_.JLongArray? js, - int i, - int i1, - ) { + static void parallelSort$9(jni$_.JLongArray? js, int i, int i1) { final _$js = js?.reference ?? jni$_.jNullReference; - _parallelSort$9(_class.reference.pointer, - _id_parallelSort$9 as jni$_.JMethodIDPtr, _$js.pointer, i, i1) - .check(); + _parallelSort$9( + _class.reference.pointer, + _id_parallelSort$9 as jni$_.JMethodIDPtr, + _$js.pointer, + i, + i1, + ).check(); } static final _id_parallelSort$10 = _class.staticMethodId( @@ -29328,25 +32535,32 @@ class Arrays extends jni$_.JObject { r'([F)V', ); - static final _parallelSort$10 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _parallelSort$10 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public void parallelSort(float[] fs)` - static void parallelSort$10( - jni$_.JFloatArray? fs, - ) { + static void parallelSort$10(jni$_.JFloatArray? fs) { final _$fs = fs?.reference ?? jni$_.jNullReference; - _parallelSort$10(_class.reference.pointer, - _id_parallelSort$10 as jni$_.JMethodIDPtr, _$fs.pointer) - .check(); + _parallelSort$10( + _class.reference.pointer, + _id_parallelSort$10 as jni$_.JMethodIDPtr, + _$fs.pointer, + ).check(); } static final _id_parallelSort$11 = _class.staticMethodId( @@ -29354,31 +32568,38 @@ class Arrays extends jni$_.JObject { r'([FII)V', ); - static final _parallelSort$11 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _parallelSort$11 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public void parallelSort(float[] fs, int i, int i1)` - static void parallelSort$11( - jni$_.JFloatArray? fs, - int i, - int i1, - ) { + static void parallelSort$11(jni$_.JFloatArray? fs, int i, int i1) { final _$fs = fs?.reference ?? jni$_.jNullReference; - _parallelSort$11(_class.reference.pointer, - _id_parallelSort$11 as jni$_.JMethodIDPtr, _$fs.pointer, i, i1) - .check(); + _parallelSort$11( + _class.reference.pointer, + _id_parallelSort$11 as jni$_.JMethodIDPtr, + _$fs.pointer, + i, + i1, + ).check(); } static final _id_parallelSort$12 = _class.staticMethodId( @@ -29386,25 +32607,32 @@ class Arrays extends jni$_.JObject { r'([D)V', ); - static final _parallelSort$12 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _parallelSort$12 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public void parallelSort(double[] ds)` - static void parallelSort$12( - jni$_.JDoubleArray? ds, - ) { + static void parallelSort$12(jni$_.JDoubleArray? ds) { final _$ds = ds?.reference ?? jni$_.jNullReference; - _parallelSort$12(_class.reference.pointer, - _id_parallelSort$12 as jni$_.JMethodIDPtr, _$ds.pointer) - .check(); + _parallelSort$12( + _class.reference.pointer, + _id_parallelSort$12 as jni$_.JMethodIDPtr, + _$ds.pointer, + ).check(); } static final _id_parallelSort$13 = _class.staticMethodId( @@ -29412,31 +32640,38 @@ class Arrays extends jni$_.JObject { r'([DII)V', ); - static final _parallelSort$13 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _parallelSort$13 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public void parallelSort(double[] ds, int i, int i1)` - static void parallelSort$13( - jni$_.JDoubleArray? ds, - int i, - int i1, - ) { + static void parallelSort$13(jni$_.JDoubleArray? ds, int i, int i1) { final _$ds = ds?.reference ?? jni$_.jNullReference; - _parallelSort$13(_class.reference.pointer, - _id_parallelSort$13 as jni$_.JMethodIDPtr, _$ds.pointer, i, i1) - .check(); + _parallelSort$13( + _class.reference.pointer, + _id_parallelSort$13 as jni$_.JMethodIDPtr, + _$ds.pointer, + i, + i1, + ).check(); } static final _id_parallelSort$14 = _class.staticMethodId( @@ -29444,16 +32679,23 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Comparable;)V', ); - static final _parallelSort$14 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _parallelSort$14 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public void parallelSort(java.lang.Object[] comparables)` static void parallelSort$14<$T extends jni$_.JObject?>( @@ -29461,9 +32703,11 @@ class Arrays extends jni$_.JObject { required jni$_.JObjType<$T> T, }) { final _$comparables = comparables?.reference ?? jni$_.jNullReference; - _parallelSort$14(_class.reference.pointer, - _id_parallelSort$14 as jni$_.JMethodIDPtr, _$comparables.pointer) - .check(); + _parallelSort$14( + _class.reference.pointer, + _id_parallelSort$14 as jni$_.JMethodIDPtr, + _$comparables.pointer, + ).check(); } static final _id_parallelSort$15 = _class.staticMethodId( @@ -29471,20 +32715,27 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Comparable;II)V', ); - static final _parallelSort$15 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _parallelSort$15 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public void parallelSort(java.lang.Object[] comparables, int i, int i1)` static void parallelSort$15<$T extends jni$_.JObject?>( @@ -29495,12 +32746,12 @@ class Arrays extends jni$_.JObject { }) { final _$comparables = comparables?.reference ?? jni$_.jNullReference; _parallelSort$15( - _class.reference.pointer, - _id_parallelSort$15 as jni$_.JMethodIDPtr, - _$comparables.pointer, - i, - i1) - .check(); + _class.reference.pointer, + _id_parallelSort$15 as jni$_.JMethodIDPtr, + _$comparables.pointer, + i, + i1, + ).check(); } static final _id_parallelSort$16 = _class.staticMethodId( @@ -29508,22 +32759,26 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;Ljava/util/Comparator;)V', ); - static final _parallelSort$16 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _parallelSort$16 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void parallelSort(java.lang.Object[] objects, java.util.Comparator comparator)` static void parallelSort$16<$T extends jni$_.JObject?>( @@ -29534,11 +32789,11 @@ class Arrays extends jni$_.JObject { final _$objects = objects?.reference ?? jni$_.jNullReference; final _$comparator = comparator?.reference ?? jni$_.jNullReference; _parallelSort$16( - _class.reference.pointer, - _id_parallelSort$16 as jni$_.JMethodIDPtr, - _$objects.pointer, - _$comparator.pointer) - .check(); + _class.reference.pointer, + _id_parallelSort$16 as jni$_.JMethodIDPtr, + _$objects.pointer, + _$comparator.pointer, + ).check(); } static final _id_parallelSort$17 = _class.staticMethodId( @@ -29546,26 +32801,33 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;IILjava/util/Comparator;)V', ); - static final _parallelSort$17 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _parallelSort$17 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void parallelSort(java.lang.Object[] objects, int i, int i1, java.util.Comparator comparator)` static void parallelSort$17<$T extends jni$_.JObject?>( @@ -29578,13 +32840,13 @@ class Arrays extends jni$_.JObject { final _$objects = objects?.reference ?? jni$_.jNullReference; final _$comparator = comparator?.reference ?? jni$_.jNullReference; _parallelSort$17( - _class.reference.pointer, - _id_parallelSort$17 as jni$_.JMethodIDPtr, - _$objects.pointer, - i, - i1, - _$comparator.pointer) - .check(); + _class.reference.pointer, + _id_parallelSort$17 as jni$_.JMethodIDPtr, + _$objects.pointer, + i, + i1, + _$comparator.pointer, + ).check(); } static final _id_sort$14 = _class.staticMethodId( @@ -29592,25 +32854,32 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;)V', ); - static final _sort$14 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _sort$14 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public void sort(java.lang.Object[] objects)` - static void sort$14( - jni$_.JArray? objects, - ) { + static void sort$14(jni$_.JArray? objects) { final _$objects = objects?.reference ?? jni$_.jNullReference; - _sort$14(_class.reference.pointer, _id_sort$14 as jni$_.JMethodIDPtr, - _$objects.pointer) - .check(); + _sort$14( + _class.reference.pointer, + _id_sort$14 as jni$_.JMethodIDPtr, + _$objects.pointer, + ).check(); } static final _id_sort$15 = _class.staticMethodId( @@ -29618,31 +32887,38 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;II)V', ); - static final _sort$15 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _sort$15 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public void sort(java.lang.Object[] objects, int i, int i1)` - static void sort$15( - jni$_.JArray? objects, - int i, - int i1, - ) { + static void sort$15(jni$_.JArray? objects, int i, int i1) { final _$objects = objects?.reference ?? jni$_.jNullReference; - _sort$15(_class.reference.pointer, _id_sort$15 as jni$_.JMethodIDPtr, - _$objects.pointer, i, i1) - .check(); + _sort$15( + _class.reference.pointer, + _id_sort$15 as jni$_.JMethodIDPtr, + _$objects.pointer, + i, + i1, + ).check(); } static final _id_sort$16 = _class.staticMethodId( @@ -29650,22 +32926,26 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;Ljava/util/Comparator;)V', ); - static final _sort$16 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _sort$16 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void sort(java.lang.Object[] objects, java.util.Comparator comparator)` static void sort$16<$T extends jni$_.JObject?>( @@ -29675,9 +32955,12 @@ class Arrays extends jni$_.JObject { }) { final _$objects = objects?.reference ?? jni$_.jNullReference; final _$comparator = comparator?.reference ?? jni$_.jNullReference; - _sort$16(_class.reference.pointer, _id_sort$16 as jni$_.JMethodIDPtr, - _$objects.pointer, _$comparator.pointer) - .check(); + _sort$16( + _class.reference.pointer, + _id_sort$16 as jni$_.JMethodIDPtr, + _$objects.pointer, + _$comparator.pointer, + ).check(); } static final _id_sort$17 = _class.staticMethodId( @@ -29685,26 +32968,33 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;IILjava/util/Comparator;)V', ); - static final _sort$17 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _sort$17 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void sort(java.lang.Object[] objects, int i, int i1, java.util.Comparator comparator)` static void sort$17<$T extends jni$_.JObject?>( @@ -29716,9 +33006,14 @@ class Arrays extends jni$_.JObject { }) { final _$objects = objects?.reference ?? jni$_.jNullReference; final _$comparator = comparator?.reference ?? jni$_.jNullReference; - _sort$17(_class.reference.pointer, _id_sort$17 as jni$_.JMethodIDPtr, - _$objects.pointer, i, i1, _$comparator.pointer) - .check(); + _sort$17( + _class.reference.pointer, + _id_sort$17 as jni$_.JMethodIDPtr, + _$objects.pointer, + i, + i1, + _$comparator.pointer, + ).check(); } static final _id_parallelPrefix = _class.staticMethodId( @@ -29726,22 +33021,26 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;Ljava/util/function/BinaryOperator;)V', ); - static final _parallelPrefix = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _parallelPrefix = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void parallelPrefix(java.lang.Object[] objects, java.util.function.BinaryOperator binaryOperator)` static void parallelPrefix<$T extends jni$_.JObject?>( @@ -29752,11 +33051,11 @@ class Arrays extends jni$_.JObject { final _$objects = objects?.reference ?? jni$_.jNullReference; final _$binaryOperator = binaryOperator?.reference ?? jni$_.jNullReference; _parallelPrefix( - _class.reference.pointer, - _id_parallelPrefix as jni$_.JMethodIDPtr, - _$objects.pointer, - _$binaryOperator.pointer) - .check(); + _class.reference.pointer, + _id_parallelPrefix as jni$_.JMethodIDPtr, + _$objects.pointer, + _$binaryOperator.pointer, + ).check(); } static final _id_parallelPrefix$1 = _class.staticMethodId( @@ -29764,26 +33063,33 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;IILjava/util/function/BinaryOperator;)V', ); - static final _parallelPrefix$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _parallelPrefix$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void parallelPrefix(java.lang.Object[] objects, int i, int i1, java.util.function.BinaryOperator binaryOperator)` static void parallelPrefix$1<$T extends jni$_.JObject?>( @@ -29796,13 +33102,13 @@ class Arrays extends jni$_.JObject { final _$objects = objects?.reference ?? jni$_.jNullReference; final _$binaryOperator = binaryOperator?.reference ?? jni$_.jNullReference; _parallelPrefix$1( - _class.reference.pointer, - _id_parallelPrefix$1 as jni$_.JMethodIDPtr, - _$objects.pointer, - i, - i1, - _$binaryOperator.pointer) - .check(); + _class.reference.pointer, + _id_parallelPrefix$1 as jni$_.JMethodIDPtr, + _$objects.pointer, + i, + i1, + _$binaryOperator.pointer, + ).check(); } static final _id_parallelPrefix$2 = _class.staticMethodId( @@ -29810,22 +33116,26 @@ class Arrays extends jni$_.JObject { r'([JLjava/util/function/LongBinaryOperator;)V', ); - static final _parallelPrefix$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _parallelPrefix$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void parallelPrefix(long[] js, java.util.function.LongBinaryOperator longBinaryOperator)` static void parallelPrefix$2( @@ -29836,11 +33146,11 @@ class Arrays extends jni$_.JObject { final _$longBinaryOperator = longBinaryOperator?.reference ?? jni$_.jNullReference; _parallelPrefix$2( - _class.reference.pointer, - _id_parallelPrefix$2 as jni$_.JMethodIDPtr, - _$js.pointer, - _$longBinaryOperator.pointer) - .check(); + _class.reference.pointer, + _id_parallelPrefix$2 as jni$_.JMethodIDPtr, + _$js.pointer, + _$longBinaryOperator.pointer, + ).check(); } static final _id_parallelPrefix$3 = _class.staticMethodId( @@ -29848,26 +33158,33 @@ class Arrays extends jni$_.JObject { r'([JIILjava/util/function/LongBinaryOperator;)V', ); - static final _parallelPrefix$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _parallelPrefix$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void parallelPrefix(long[] js, int i, int i1, java.util.function.LongBinaryOperator longBinaryOperator)` static void parallelPrefix$3( @@ -29880,13 +33197,13 @@ class Arrays extends jni$_.JObject { final _$longBinaryOperator = longBinaryOperator?.reference ?? jni$_.jNullReference; _parallelPrefix$3( - _class.reference.pointer, - _id_parallelPrefix$3 as jni$_.JMethodIDPtr, - _$js.pointer, - i, - i1, - _$longBinaryOperator.pointer) - .check(); + _class.reference.pointer, + _id_parallelPrefix$3 as jni$_.JMethodIDPtr, + _$js.pointer, + i, + i1, + _$longBinaryOperator.pointer, + ).check(); } static final _id_parallelPrefix$4 = _class.staticMethodId( @@ -29894,22 +33211,26 @@ class Arrays extends jni$_.JObject { r'([DLjava/util/function/DoubleBinaryOperator;)V', ); - static final _parallelPrefix$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _parallelPrefix$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void parallelPrefix(double[] ds, java.util.function.DoubleBinaryOperator doubleBinaryOperator)` static void parallelPrefix$4( @@ -29920,11 +33241,11 @@ class Arrays extends jni$_.JObject { final _$doubleBinaryOperator = doubleBinaryOperator?.reference ?? jni$_.jNullReference; _parallelPrefix$4( - _class.reference.pointer, - _id_parallelPrefix$4 as jni$_.JMethodIDPtr, - _$ds.pointer, - _$doubleBinaryOperator.pointer) - .check(); + _class.reference.pointer, + _id_parallelPrefix$4 as jni$_.JMethodIDPtr, + _$ds.pointer, + _$doubleBinaryOperator.pointer, + ).check(); } static final _id_parallelPrefix$5 = _class.staticMethodId( @@ -29932,26 +33253,33 @@ class Arrays extends jni$_.JObject { r'([DIILjava/util/function/DoubleBinaryOperator;)V', ); - static final _parallelPrefix$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _parallelPrefix$5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void parallelPrefix(double[] ds, int i, int i1, java.util.function.DoubleBinaryOperator doubleBinaryOperator)` static void parallelPrefix$5( @@ -29964,13 +33292,13 @@ class Arrays extends jni$_.JObject { final _$doubleBinaryOperator = doubleBinaryOperator?.reference ?? jni$_.jNullReference; _parallelPrefix$5( - _class.reference.pointer, - _id_parallelPrefix$5 as jni$_.JMethodIDPtr, - _$ds.pointer, - i, - i1, - _$doubleBinaryOperator.pointer) - .check(); + _class.reference.pointer, + _id_parallelPrefix$5 as jni$_.JMethodIDPtr, + _$ds.pointer, + i, + i1, + _$doubleBinaryOperator.pointer, + ).check(); } static final _id_parallelPrefix$6 = _class.staticMethodId( @@ -29978,22 +33306,26 @@ class Arrays extends jni$_.JObject { r'([ILjava/util/function/IntBinaryOperator;)V', ); - static final _parallelPrefix$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _parallelPrefix$6 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void parallelPrefix(int[] is, java.util.function.IntBinaryOperator intBinaryOperator)` static void parallelPrefix$6( @@ -30004,11 +33336,11 @@ class Arrays extends jni$_.JObject { final _$intBinaryOperator = intBinaryOperator?.reference ?? jni$_.jNullReference; _parallelPrefix$6( - _class.reference.pointer, - _id_parallelPrefix$6 as jni$_.JMethodIDPtr, - _$is$.pointer, - _$intBinaryOperator.pointer) - .check(); + _class.reference.pointer, + _id_parallelPrefix$6 as jni$_.JMethodIDPtr, + _$is$.pointer, + _$intBinaryOperator.pointer, + ).check(); } static final _id_parallelPrefix$7 = _class.staticMethodId( @@ -30016,26 +33348,33 @@ class Arrays extends jni$_.JObject { r'([IIILjava/util/function/IntBinaryOperator;)V', ); - static final _parallelPrefix$7 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _parallelPrefix$7 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void parallelPrefix(int[] is, int i, int i1, java.util.function.IntBinaryOperator intBinaryOperator)` static void parallelPrefix$7( @@ -30048,13 +33387,13 @@ class Arrays extends jni$_.JObject { final _$intBinaryOperator = intBinaryOperator?.reference ?? jni$_.jNullReference; _parallelPrefix$7( - _class.reference.pointer, - _id_parallelPrefix$7 as jni$_.JMethodIDPtr, - _$is$.pointer, - i, - i1, - _$intBinaryOperator.pointer) - .check(); + _class.reference.pointer, + _id_parallelPrefix$7 as jni$_.JMethodIDPtr, + _$is$.pointer, + i, + i1, + _$intBinaryOperator.pointer, + ).check(); } static final _id_binarySearch = _class.staticMethodId( @@ -30062,27 +33401,34 @@ class Arrays extends jni$_.JObject { r'([JJ)I', ); - static final _binarySearch = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int64)>)>>( - 'globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _binarySearch = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int64)>, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `static public int binarySearch(long[] js, long j)` - static int binarySearch( - jni$_.JLongArray? js, - int j, - ) { + static int binarySearch(jni$_.JLongArray? js, int j) { final _$js = js?.reference ?? jni$_.jNullReference; - return _binarySearch(_class.reference.pointer, - _id_binarySearch as jni$_.JMethodIDPtr, _$js.pointer, j) - .integer; + return _binarySearch( + _class.reference.pointer, + _id_binarySearch as jni$_.JMethodIDPtr, + _$js.pointer, + j, + ).integer; } static final _id_binarySearch$1 = _class.staticMethodId( @@ -30090,33 +33436,45 @@ class Arrays extends jni$_.JObject { r'([JIIJ)I', ); - static final _binarySearch$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _binarySearch$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Int64 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Int64, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + int, + ) + >(); /// from: `static public int binarySearch(long[] js, int i, int i1, long j)` - static int binarySearch$1( - jni$_.JLongArray? js, - int i, - int i1, - int j, - ) { + static int binarySearch$1(jni$_.JLongArray? js, int i, int i1, int j) { final _$js = js?.reference ?? jni$_.jNullReference; - return _binarySearch$1(_class.reference.pointer, - _id_binarySearch$1 as jni$_.JMethodIDPtr, _$js.pointer, i, i1, j) - .integer; + return _binarySearch$1( + _class.reference.pointer, + _id_binarySearch$1 as jni$_.JMethodIDPtr, + _$js.pointer, + i, + i1, + j, + ).integer; } static final _id_binarySearch$2 = _class.staticMethodId( @@ -30124,27 +33482,34 @@ class Arrays extends jni$_.JObject { r'([II)I', ); - static final _binarySearch$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _binarySearch$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `static public int binarySearch(int[] is, int i)` - static int binarySearch$2( - jni$_.JIntArray? is$, - int i, - ) { + static int binarySearch$2(jni$_.JIntArray? is$, int i) { final _$is$ = is$?.reference ?? jni$_.jNullReference; - return _binarySearch$2(_class.reference.pointer, - _id_binarySearch$2 as jni$_.JMethodIDPtr, _$is$.pointer, i) - .integer; + return _binarySearch$2( + _class.reference.pointer, + _id_binarySearch$2 as jni$_.JMethodIDPtr, + _$is$.pointer, + i, + ).integer; } static final _id_binarySearch$3 = _class.staticMethodId( @@ -30152,33 +33517,45 @@ class Arrays extends jni$_.JObject { r'([IIII)I', ); - static final _binarySearch$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _binarySearch$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + int, + ) + >(); /// from: `static public int binarySearch(int[] is, int i, int i1, int i2)` - static int binarySearch$3( - jni$_.JIntArray? is$, - int i, - int i1, - int i2, - ) { + static int binarySearch$3(jni$_.JIntArray? is$, int i, int i1, int i2) { final _$is$ = is$?.reference ?? jni$_.jNullReference; - return _binarySearch$3(_class.reference.pointer, - _id_binarySearch$3 as jni$_.JMethodIDPtr, _$is$.pointer, i, i1, i2) - .integer; + return _binarySearch$3( + _class.reference.pointer, + _id_binarySearch$3 as jni$_.JMethodIDPtr, + _$is$.pointer, + i, + i1, + i2, + ).integer; } static final _id_binarySearch$4 = _class.staticMethodId( @@ -30186,27 +33563,34 @@ class Arrays extends jni$_.JObject { r'([SS)I', ); - static final _binarySearch$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _binarySearch$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `static public int binarySearch(short[] ss, short s)` - static int binarySearch$4( - jni$_.JShortArray? ss, - int s, - ) { + static int binarySearch$4(jni$_.JShortArray? ss, int s) { final _$ss = ss?.reference ?? jni$_.jNullReference; - return _binarySearch$4(_class.reference.pointer, - _id_binarySearch$4 as jni$_.JMethodIDPtr, _$ss.pointer, s) - .integer; + return _binarySearch$4( + _class.reference.pointer, + _id_binarySearch$4 as jni$_.JMethodIDPtr, + _$ss.pointer, + s, + ).integer; } static final _id_binarySearch$5 = _class.staticMethodId( @@ -30214,33 +33598,45 @@ class Arrays extends jni$_.JObject { r'([SIIS)I', ); - static final _binarySearch$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _binarySearch$5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + int, + ) + >(); /// from: `static public int binarySearch(short[] ss, int i, int i1, short s)` - static int binarySearch$5( - jni$_.JShortArray? ss, - int i, - int i1, - int s, - ) { + static int binarySearch$5(jni$_.JShortArray? ss, int i, int i1, int s) { final _$ss = ss?.reference ?? jni$_.jNullReference; - return _binarySearch$5(_class.reference.pointer, - _id_binarySearch$5 as jni$_.JMethodIDPtr, _$ss.pointer, i, i1, s) - .integer; + return _binarySearch$5( + _class.reference.pointer, + _id_binarySearch$5 as jni$_.JMethodIDPtr, + _$ss.pointer, + i, + i1, + s, + ).integer; } static final _id_binarySearch$6 = _class.staticMethodId( @@ -30248,27 +33644,34 @@ class Arrays extends jni$_.JObject { r'([CC)I', ); - static final _binarySearch$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _binarySearch$6 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `static public int binarySearch(char[] cs, char c)` - static int binarySearch$6( - jni$_.JCharArray? cs, - int c, - ) { + static int binarySearch$6(jni$_.JCharArray? cs, int c) { final _$cs = cs?.reference ?? jni$_.jNullReference; - return _binarySearch$6(_class.reference.pointer, - _id_binarySearch$6 as jni$_.JMethodIDPtr, _$cs.pointer, c) - .integer; + return _binarySearch$6( + _class.reference.pointer, + _id_binarySearch$6 as jni$_.JMethodIDPtr, + _$cs.pointer, + c, + ).integer; } static final _id_binarySearch$7 = _class.staticMethodId( @@ -30276,33 +33679,45 @@ class Arrays extends jni$_.JObject { r'([CIIC)I', ); - static final _binarySearch$7 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _binarySearch$7 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + int, + ) + >(); /// from: `static public int binarySearch(char[] cs, int i, int i1, char c)` - static int binarySearch$7( - jni$_.JCharArray? cs, - int i, - int i1, - int c, - ) { + static int binarySearch$7(jni$_.JCharArray? cs, int i, int i1, int c) { final _$cs = cs?.reference ?? jni$_.jNullReference; - return _binarySearch$7(_class.reference.pointer, - _id_binarySearch$7 as jni$_.JMethodIDPtr, _$cs.pointer, i, i1, c) - .integer; + return _binarySearch$7( + _class.reference.pointer, + _id_binarySearch$7 as jni$_.JMethodIDPtr, + _$cs.pointer, + i, + i1, + c, + ).integer; } static final _id_binarySearch$8 = _class.staticMethodId( @@ -30310,27 +33725,34 @@ class Arrays extends jni$_.JObject { r'([BB)I', ); - static final _binarySearch$8 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _binarySearch$8 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `static public int binarySearch(byte[] bs, byte b)` - static int binarySearch$8( - jni$_.JByteArray? bs, - int b, - ) { + static int binarySearch$8(jni$_.JByteArray? bs, int b) { final _$bs = bs?.reference ?? jni$_.jNullReference; - return _binarySearch$8(_class.reference.pointer, - _id_binarySearch$8 as jni$_.JMethodIDPtr, _$bs.pointer, b) - .integer; + return _binarySearch$8( + _class.reference.pointer, + _id_binarySearch$8 as jni$_.JMethodIDPtr, + _$bs.pointer, + b, + ).integer; } static final _id_binarySearch$9 = _class.staticMethodId( @@ -30338,33 +33760,45 @@ class Arrays extends jni$_.JObject { r'([BIIB)I', ); - static final _binarySearch$9 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _binarySearch$9 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + int, + ) + >(); /// from: `static public int binarySearch(byte[] bs, int i, int i1, byte b)` - static int binarySearch$9( - jni$_.JByteArray? bs, - int i, - int i1, - int b, - ) { + static int binarySearch$9(jni$_.JByteArray? bs, int i, int i1, int b) { final _$bs = bs?.reference ?? jni$_.jNullReference; - return _binarySearch$9(_class.reference.pointer, - _id_binarySearch$9 as jni$_.JMethodIDPtr, _$bs.pointer, i, i1, b) - .integer; + return _binarySearch$9( + _class.reference.pointer, + _id_binarySearch$9 as jni$_.JMethodIDPtr, + _$bs.pointer, + i, + i1, + b, + ).integer; } static final _id_binarySearch$10 = _class.staticMethodId( @@ -30372,29 +33806,34 @@ class Arrays extends jni$_.JObject { r'([DD)I', ); - static final _binarySearch$10 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _binarySearch$10 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Double - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Double)>, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + double, + ) + >(); /// from: `static public int binarySearch(double[] ds, double d)` - static int binarySearch$10( - jni$_.JDoubleArray? ds, - double d, - ) { + static int binarySearch$10(jni$_.JDoubleArray? ds, double d) { final _$ds = ds?.reference ?? jni$_.jNullReference; - return _binarySearch$10(_class.reference.pointer, - _id_binarySearch$10 as jni$_.JMethodIDPtr, _$ds.pointer, d) - .integer; + return _binarySearch$10( + _class.reference.pointer, + _id_binarySearch$10 as jni$_.JMethodIDPtr, + _$ds.pointer, + d, + ).integer; } static final _id_binarySearch$11 = _class.staticMethodId( @@ -30402,38 +33841,45 @@ class Arrays extends jni$_.JObject { r'([DIID)I', ); - static final _binarySearch$11 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _binarySearch$11 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Double - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Double, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, int, - double)>(); + double, + ) + >(); /// from: `static public int binarySearch(double[] ds, int i, int i1, double d)` - static int binarySearch$11( - jni$_.JDoubleArray? ds, - int i, - int i1, - double d, - ) { + static int binarySearch$11(jni$_.JDoubleArray? ds, int i, int i1, double d) { final _$ds = ds?.reference ?? jni$_.jNullReference; - return _binarySearch$11(_class.reference.pointer, - _id_binarySearch$11 as jni$_.JMethodIDPtr, _$ds.pointer, i, i1, d) - .integer; + return _binarySearch$11( + _class.reference.pointer, + _id_binarySearch$11 as jni$_.JMethodIDPtr, + _$ds.pointer, + i, + i1, + d, + ).integer; } static final _id_binarySearch$12 = _class.staticMethodId( @@ -30441,29 +33887,34 @@ class Arrays extends jni$_.JObject { r'([FF)I', ); - static final _binarySearch$12 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _binarySearch$12 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Double - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Double)>, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + double, + ) + >(); /// from: `static public int binarySearch(float[] fs, float f)` - static int binarySearch$12( - jni$_.JFloatArray? fs, - double f, - ) { + static int binarySearch$12(jni$_.JFloatArray? fs, double f) { final _$fs = fs?.reference ?? jni$_.jNullReference; - return _binarySearch$12(_class.reference.pointer, - _id_binarySearch$12 as jni$_.JMethodIDPtr, _$fs.pointer, f) - .integer; + return _binarySearch$12( + _class.reference.pointer, + _id_binarySearch$12 as jni$_.JMethodIDPtr, + _$fs.pointer, + f, + ).integer; } static final _id_binarySearch$13 = _class.staticMethodId( @@ -30471,38 +33922,45 @@ class Arrays extends jni$_.JObject { r'([FIIF)I', ); - static final _binarySearch$13 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _binarySearch$13 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Double - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Double, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, int, - double)>(); + double, + ) + >(); /// from: `static public int binarySearch(float[] fs, int i, int i1, float f)` - static int binarySearch$13( - jni$_.JFloatArray? fs, - int i, - int i1, - double f, - ) { + static int binarySearch$13(jni$_.JFloatArray? fs, int i, int i1, double f) { final _$fs = fs?.reference ?? jni$_.jNullReference; - return _binarySearch$13(_class.reference.pointer, - _id_binarySearch$13 as jni$_.JMethodIDPtr, _$fs.pointer, i, i1, f) - .integer; + return _binarySearch$13( + _class.reference.pointer, + _id_binarySearch$13 as jni$_.JMethodIDPtr, + _$fs.pointer, + i, + i1, + f, + ).integer; } static final _id_binarySearch$14 = _class.staticMethodId( @@ -30510,22 +33968,26 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;Ljava/lang/Object;)I', ); - static final _binarySearch$14 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _binarySearch$14 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int binarySearch(java.lang.Object[] objects, java.lang.Object object)` static int binarySearch$14( @@ -30535,11 +33997,11 @@ class Arrays extends jni$_.JObject { final _$objects = objects?.reference ?? jni$_.jNullReference; final _$object = object?.reference ?? jni$_.jNullReference; return _binarySearch$14( - _class.reference.pointer, - _id_binarySearch$14 as jni$_.JMethodIDPtr, - _$objects.pointer, - _$object.pointer) - .integer; + _class.reference.pointer, + _id_binarySearch$14 as jni$_.JMethodIDPtr, + _$objects.pointer, + _$object.pointer, + ).integer; } static final _id_binarySearch$15 = _class.staticMethodId( @@ -30547,26 +34009,33 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;IILjava/lang/Object;)I', ); - static final _binarySearch$15 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _binarySearch$15 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int binarySearch(java.lang.Object[] objects, int i, int i1, java.lang.Object object)` static int binarySearch$15( @@ -30578,13 +34047,13 @@ class Arrays extends jni$_.JObject { final _$objects = objects?.reference ?? jni$_.jNullReference; final _$object = object?.reference ?? jni$_.jNullReference; return _binarySearch$15( - _class.reference.pointer, - _id_binarySearch$15 as jni$_.JMethodIDPtr, - _$objects.pointer, - i, - i1, - _$object.pointer) - .integer; + _class.reference.pointer, + _id_binarySearch$15 as jni$_.JMethodIDPtr, + _$objects.pointer, + i, + i1, + _$object.pointer, + ).integer; } static final _id_binarySearch$16 = _class.staticMethodId( @@ -30592,24 +34061,31 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;Ljava/lang/Object;Ljava/util/Comparator;)I', ); - static final _binarySearch$16 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _binarySearch$16 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int binarySearch(java.lang.Object[] objects, T object, java.util.Comparator comparator)` static int binarySearch$16<$T extends jni$_.JObject?>( @@ -30622,12 +34098,12 @@ class Arrays extends jni$_.JObject { final _$object = object?.reference ?? jni$_.jNullReference; final _$comparator = comparator?.reference ?? jni$_.jNullReference; return _binarySearch$16( - _class.reference.pointer, - _id_binarySearch$16 as jni$_.JMethodIDPtr, - _$objects.pointer, - _$object.pointer, - _$comparator.pointer) - .integer; + _class.reference.pointer, + _id_binarySearch$16 as jni$_.JMethodIDPtr, + _$objects.pointer, + _$object.pointer, + _$comparator.pointer, + ).integer; } static final _id_binarySearch$17 = _class.staticMethodId( @@ -30635,28 +34111,35 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;IILjava/lang/Object;Ljava/util/Comparator;)I', ); - static final _binarySearch$17 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _binarySearch$17 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, int, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int binarySearch(java.lang.Object[] objects, int i, int i1, T object, java.util.Comparator comparator)` static int binarySearch$17<$T extends jni$_.JObject?>( @@ -30671,71 +34154,74 @@ class Arrays extends jni$_.JObject { final _$object = object?.reference ?? jni$_.jNullReference; final _$comparator = comparator?.reference ?? jni$_.jNullReference; return _binarySearch$17( - _class.reference.pointer, - _id_binarySearch$17 as jni$_.JMethodIDPtr, - _$objects.pointer, - i, - i1, - _$object.pointer, - _$comparator.pointer) - .integer; + _class.reference.pointer, + _id_binarySearch$17 as jni$_.JMethodIDPtr, + _$objects.pointer, + i, + i1, + _$object.pointer, + _$comparator.pointer, + ).integer; } - static final _id_equals = _class.staticMethodId( - r'equals', - r'([J[J)Z', - ); + static final _id_equals = _class.staticMethodId(r'equals', r'([J[J)Z'); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public boolean equals(long[] js, long[] js1)` - static bool equals( - jni$_.JLongArray? js, - jni$_.JLongArray? js1, - ) { + static bool equals(jni$_.JLongArray? js, jni$_.JLongArray? js1) { final _$js = js?.reference ?? jni$_.jNullReference; final _$js1 = js1?.reference ?? jni$_.jNullReference; - return _equals(_class.reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$js.pointer, _$js1.pointer) - .boolean; + return _equals( + _class.reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + _$js.pointer, + _$js1.pointer, + ).boolean; } - static final _id_equals$1 = _class.staticMethodId( - r'equals', - r'([JII[JII)Z', - ); + static final _id_equals$1 = _class.staticMethodId(r'equals', r'([JII[JII)Z'); - static final _equals$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _equals$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -30743,7 +34229,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public boolean equals(long[] js, int i, int i1, long[] js1, int i2, int i3)` static bool equals$1( @@ -30757,72 +34245,75 @@ class Arrays extends jni$_.JObject { final _$js = js?.reference ?? jni$_.jNullReference; final _$js1 = js1?.reference ?? jni$_.jNullReference; return _equals$1( - _class.reference.pointer, - _id_equals$1 as jni$_.JMethodIDPtr, - _$js.pointer, - i, - i1, - _$js1.pointer, - i2, - i3) - .boolean; - } - - static final _id_equals$2 = _class.staticMethodId( - r'equals', - r'([I[I)Z', - ); + _class.reference.pointer, + _id_equals$1 as jni$_.JMethodIDPtr, + _$js.pointer, + i, + i1, + _$js1.pointer, + i2, + i3, + ).boolean; + } + + static final _id_equals$2 = _class.staticMethodId(r'equals', r'([I[I)Z'); - static final _equals$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _equals$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public boolean equals(int[] is, int[] is1)` - static bool equals$2( - jni$_.JIntArray? is$, - jni$_.JIntArray? is1, - ) { + static bool equals$2(jni$_.JIntArray? is$, jni$_.JIntArray? is1) { final _$is$ = is$?.reference ?? jni$_.jNullReference; final _$is1 = is1?.reference ?? jni$_.jNullReference; - return _equals$2(_class.reference.pointer, - _id_equals$2 as jni$_.JMethodIDPtr, _$is$.pointer, _$is1.pointer) - .boolean; + return _equals$2( + _class.reference.pointer, + _id_equals$2 as jni$_.JMethodIDPtr, + _$is$.pointer, + _$is1.pointer, + ).boolean; } - static final _id_equals$3 = _class.staticMethodId( - r'equals', - r'([III[III)Z', - ); + static final _id_equals$3 = _class.staticMethodId(r'equals', r'([III[III)Z'); - static final _equals$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _equals$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -30830,7 +34321,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public boolean equals(int[] is, int i, int i1, int[] is1, int i2, int i3)` static bool equals$3( @@ -30844,72 +34337,75 @@ class Arrays extends jni$_.JObject { final _$is$ = is$?.reference ?? jni$_.jNullReference; final _$is1 = is1?.reference ?? jni$_.jNullReference; return _equals$3( - _class.reference.pointer, - _id_equals$3 as jni$_.JMethodIDPtr, - _$is$.pointer, - i, - i1, - _$is1.pointer, - i2, - i3) - .boolean; - } - - static final _id_equals$4 = _class.staticMethodId( - r'equals', - r'([S[S)Z', - ); + _class.reference.pointer, + _id_equals$3 as jni$_.JMethodIDPtr, + _$is$.pointer, + i, + i1, + _$is1.pointer, + i2, + i3, + ).boolean; + } - static final _equals$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _id_equals$4 = _class.staticMethodId(r'equals', r'([S[S)Z'); + + static final _equals$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public boolean equals(short[] ss, short[] ss1)` - static bool equals$4( - jni$_.JShortArray? ss, - jni$_.JShortArray? ss1, - ) { + static bool equals$4(jni$_.JShortArray? ss, jni$_.JShortArray? ss1) { final _$ss = ss?.reference ?? jni$_.jNullReference; final _$ss1 = ss1?.reference ?? jni$_.jNullReference; - return _equals$4(_class.reference.pointer, - _id_equals$4 as jni$_.JMethodIDPtr, _$ss.pointer, _$ss1.pointer) - .boolean; + return _equals$4( + _class.reference.pointer, + _id_equals$4 as jni$_.JMethodIDPtr, + _$ss.pointer, + _$ss1.pointer, + ).boolean; } - static final _id_equals$5 = _class.staticMethodId( - r'equals', - r'([SII[SII)Z', - ); + static final _id_equals$5 = _class.staticMethodId(r'equals', r'([SII[SII)Z'); - static final _equals$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _equals$5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -30917,7 +34413,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public boolean equals(short[] ss, int i, int i1, short[] ss1, int i2, int i3)` static bool equals$5( @@ -30931,72 +34429,75 @@ class Arrays extends jni$_.JObject { final _$ss = ss?.reference ?? jni$_.jNullReference; final _$ss1 = ss1?.reference ?? jni$_.jNullReference; return _equals$5( - _class.reference.pointer, - _id_equals$5 as jni$_.JMethodIDPtr, - _$ss.pointer, - i, - i1, - _$ss1.pointer, - i2, - i3) - .boolean; - } - - static final _id_equals$6 = _class.staticMethodId( - r'equals', - r'([C[C)Z', - ); + _class.reference.pointer, + _id_equals$5 as jni$_.JMethodIDPtr, + _$ss.pointer, + i, + i1, + _$ss1.pointer, + i2, + i3, + ).boolean; + } + + static final _id_equals$6 = _class.staticMethodId(r'equals', r'([C[C)Z'); - static final _equals$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _equals$6 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public boolean equals(char[] cs, char[] cs1)` - static bool equals$6( - jni$_.JCharArray? cs, - jni$_.JCharArray? cs1, - ) { + static bool equals$6(jni$_.JCharArray? cs, jni$_.JCharArray? cs1) { final _$cs = cs?.reference ?? jni$_.jNullReference; final _$cs1 = cs1?.reference ?? jni$_.jNullReference; - return _equals$6(_class.reference.pointer, - _id_equals$6 as jni$_.JMethodIDPtr, _$cs.pointer, _$cs1.pointer) - .boolean; + return _equals$6( + _class.reference.pointer, + _id_equals$6 as jni$_.JMethodIDPtr, + _$cs.pointer, + _$cs1.pointer, + ).boolean; } - static final _id_equals$7 = _class.staticMethodId( - r'equals', - r'([CII[CII)Z', - ); + static final _id_equals$7 = _class.staticMethodId(r'equals', r'([CII[CII)Z'); - static final _equals$7 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _equals$7 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -31004,7 +34505,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public boolean equals(char[] cs, int i, int i1, char[] cs1, int i2, int i3)` static bool equals$7( @@ -31018,72 +34521,75 @@ class Arrays extends jni$_.JObject { final _$cs = cs?.reference ?? jni$_.jNullReference; final _$cs1 = cs1?.reference ?? jni$_.jNullReference; return _equals$7( - _class.reference.pointer, - _id_equals$7 as jni$_.JMethodIDPtr, - _$cs.pointer, - i, - i1, - _$cs1.pointer, - i2, - i3) - .boolean; - } - - static final _id_equals$8 = _class.staticMethodId( - r'equals', - r'([B[B)Z', - ); + _class.reference.pointer, + _id_equals$7 as jni$_.JMethodIDPtr, + _$cs.pointer, + i, + i1, + _$cs1.pointer, + i2, + i3, + ).boolean; + } - static final _equals$8 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _id_equals$8 = _class.staticMethodId(r'equals', r'([B[B)Z'); + + static final _equals$8 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public boolean equals(byte[] bs, byte[] bs1)` - static bool equals$8( - jni$_.JByteArray? bs, - jni$_.JByteArray? bs1, - ) { + static bool equals$8(jni$_.JByteArray? bs, jni$_.JByteArray? bs1) { final _$bs = bs?.reference ?? jni$_.jNullReference; final _$bs1 = bs1?.reference ?? jni$_.jNullReference; - return _equals$8(_class.reference.pointer, - _id_equals$8 as jni$_.JMethodIDPtr, _$bs.pointer, _$bs1.pointer) - .boolean; + return _equals$8( + _class.reference.pointer, + _id_equals$8 as jni$_.JMethodIDPtr, + _$bs.pointer, + _$bs1.pointer, + ).boolean; } - static final _id_equals$9 = _class.staticMethodId( - r'equals', - r'([BII[BII)Z', - ); + static final _id_equals$9 = _class.staticMethodId(r'equals', r'([BII[BII)Z'); - static final _equals$9 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _equals$9 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -31091,7 +34597,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public boolean equals(byte[] bs, int i, int i1, byte[] bs1, int i2, int i3)` static bool equals$9( @@ -31105,72 +34613,75 @@ class Arrays extends jni$_.JObject { final _$bs = bs?.reference ?? jni$_.jNullReference; final _$bs1 = bs1?.reference ?? jni$_.jNullReference; return _equals$9( - _class.reference.pointer, - _id_equals$9 as jni$_.JMethodIDPtr, - _$bs.pointer, - i, - i1, - _$bs1.pointer, - i2, - i3) - .boolean; - } - - static final _id_equals$10 = _class.staticMethodId( - r'equals', - r'([Z[Z)Z', - ); + _class.reference.pointer, + _id_equals$9 as jni$_.JMethodIDPtr, + _$bs.pointer, + i, + i1, + _$bs1.pointer, + i2, + i3, + ).boolean; + } + + static final _id_equals$10 = _class.staticMethodId(r'equals', r'([Z[Z)Z'); - static final _equals$10 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _equals$10 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public boolean equals(boolean[] zs, boolean[] zs1)` - static bool equals$10( - jni$_.JBooleanArray? zs, - jni$_.JBooleanArray? zs1, - ) { + static bool equals$10(jni$_.JBooleanArray? zs, jni$_.JBooleanArray? zs1) { final _$zs = zs?.reference ?? jni$_.jNullReference; final _$zs1 = zs1?.reference ?? jni$_.jNullReference; - return _equals$10(_class.reference.pointer, - _id_equals$10 as jni$_.JMethodIDPtr, _$zs.pointer, _$zs1.pointer) - .boolean; + return _equals$10( + _class.reference.pointer, + _id_equals$10 as jni$_.JMethodIDPtr, + _$zs.pointer, + _$zs1.pointer, + ).boolean; } - static final _id_equals$11 = _class.staticMethodId( - r'equals', - r'([ZII[ZII)Z', - ); + static final _id_equals$11 = _class.staticMethodId(r'equals', r'([ZII[ZII)Z'); - static final _equals$11 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _equals$11 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -31178,7 +34689,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public boolean equals(boolean[] zs, int i, int i1, boolean[] zs1, int i2, int i3)` static bool equals$11( @@ -31192,72 +34705,75 @@ class Arrays extends jni$_.JObject { final _$zs = zs?.reference ?? jni$_.jNullReference; final _$zs1 = zs1?.reference ?? jni$_.jNullReference; return _equals$11( - _class.reference.pointer, - _id_equals$11 as jni$_.JMethodIDPtr, - _$zs.pointer, - i, - i1, - _$zs1.pointer, - i2, - i3) - .boolean; - } - - static final _id_equals$12 = _class.staticMethodId( - r'equals', - r'([D[D)Z', - ); + _class.reference.pointer, + _id_equals$11 as jni$_.JMethodIDPtr, + _$zs.pointer, + i, + i1, + _$zs1.pointer, + i2, + i3, + ).boolean; + } - static final _equals$12 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _id_equals$12 = _class.staticMethodId(r'equals', r'([D[D)Z'); + + static final _equals$12 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public boolean equals(double[] ds, double[] ds1)` - static bool equals$12( - jni$_.JDoubleArray? ds, - jni$_.JDoubleArray? ds1, - ) { + static bool equals$12(jni$_.JDoubleArray? ds, jni$_.JDoubleArray? ds1) { final _$ds = ds?.reference ?? jni$_.jNullReference; final _$ds1 = ds1?.reference ?? jni$_.jNullReference; - return _equals$12(_class.reference.pointer, - _id_equals$12 as jni$_.JMethodIDPtr, _$ds.pointer, _$ds1.pointer) - .boolean; + return _equals$12( + _class.reference.pointer, + _id_equals$12 as jni$_.JMethodIDPtr, + _$ds.pointer, + _$ds1.pointer, + ).boolean; } - static final _id_equals$13 = _class.staticMethodId( - r'equals', - r'([DII[DII)Z', - ); + static final _id_equals$13 = _class.staticMethodId(r'equals', r'([DII[DII)Z'); - static final _equals$13 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _equals$13 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -31265,7 +34781,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public boolean equals(double[] ds, int i, int i1, double[] ds1, int i2, int i3)` static bool equals$13( @@ -31279,72 +34797,75 @@ class Arrays extends jni$_.JObject { final _$ds = ds?.reference ?? jni$_.jNullReference; final _$ds1 = ds1?.reference ?? jni$_.jNullReference; return _equals$13( - _class.reference.pointer, - _id_equals$13 as jni$_.JMethodIDPtr, - _$ds.pointer, - i, - i1, - _$ds1.pointer, - i2, - i3) - .boolean; - } - - static final _id_equals$14 = _class.staticMethodId( - r'equals', - r'([F[F)Z', - ); + _class.reference.pointer, + _id_equals$13 as jni$_.JMethodIDPtr, + _$ds.pointer, + i, + i1, + _$ds1.pointer, + i2, + i3, + ).boolean; + } + + static final _id_equals$14 = _class.staticMethodId(r'equals', r'([F[F)Z'); - static final _equals$14 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _equals$14 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public boolean equals(float[] fs, float[] fs1)` - static bool equals$14( - jni$_.JFloatArray? fs, - jni$_.JFloatArray? fs1, - ) { + static bool equals$14(jni$_.JFloatArray? fs, jni$_.JFloatArray? fs1) { final _$fs = fs?.reference ?? jni$_.jNullReference; final _$fs1 = fs1?.reference ?? jni$_.jNullReference; - return _equals$14(_class.reference.pointer, - _id_equals$14 as jni$_.JMethodIDPtr, _$fs.pointer, _$fs1.pointer) - .boolean; + return _equals$14( + _class.reference.pointer, + _id_equals$14 as jni$_.JMethodIDPtr, + _$fs.pointer, + _$fs1.pointer, + ).boolean; } - static final _id_equals$15 = _class.staticMethodId( - r'equals', - r'([FII[FII)Z', - ); + static final _id_equals$15 = _class.staticMethodId(r'equals', r'([FII[FII)Z'); - static final _equals$15 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _equals$15 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -31352,7 +34873,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public boolean equals(float[] fs, int i, int i1, float[] fs1, int i2, int i3)` static bool equals$15( @@ -31366,15 +34889,15 @@ class Arrays extends jni$_.JObject { final _$fs = fs?.reference ?? jni$_.jNullReference; final _$fs1 = fs1?.reference ?? jni$_.jNullReference; return _equals$15( - _class.reference.pointer, - _id_equals$15 as jni$_.JMethodIDPtr, - _$fs.pointer, - i, - i1, - _$fs1.pointer, - i2, - i3) - .boolean; + _class.reference.pointer, + _id_equals$15 as jni$_.JMethodIDPtr, + _$fs.pointer, + i, + i1, + _$fs1.pointer, + i2, + i3, + ).boolean; } static final _id_equals$16 = _class.staticMethodId( @@ -31382,22 +34905,26 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;[Ljava/lang/Object;)Z', ); - static final _equals$16 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _equals$16 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public boolean equals(java.lang.Object[] objects, java.lang.Object[] objects1)` static bool equals$16( @@ -31407,11 +34934,11 @@ class Arrays extends jni$_.JObject { final _$objects = objects?.reference ?? jni$_.jNullReference; final _$objects1 = objects1?.reference ?? jni$_.jNullReference; return _equals$16( - _class.reference.pointer, - _id_equals$16 as jni$_.JMethodIDPtr, - _$objects.pointer, - _$objects1.pointer) - .boolean; + _class.reference.pointer, + _id_equals$16 as jni$_.JMethodIDPtr, + _$objects.pointer, + _$objects1.pointer, + ).boolean; } static final _id_equals$17 = _class.staticMethodId( @@ -31419,22 +34946,27 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;II[Ljava/lang/Object;II)Z', ); - static final _equals$17 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _equals$17 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -31442,7 +34974,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public boolean equals(java.lang.Object[] objects, int i, int i1, java.lang.Object[] objects1, int i2, int i3)` static bool equals$17( @@ -31456,15 +34990,15 @@ class Arrays extends jni$_.JObject { final _$objects = objects?.reference ?? jni$_.jNullReference; final _$objects1 = objects1?.reference ?? jni$_.jNullReference; return _equals$17( - _class.reference.pointer, - _id_equals$17 as jni$_.JMethodIDPtr, - _$objects.pointer, - i, - i1, - _$objects1.pointer, - i2, - i3) - .boolean; + _class.reference.pointer, + _id_equals$17 as jni$_.JMethodIDPtr, + _$objects.pointer, + i, + i1, + _$objects1.pointer, + i2, + i3, + ).boolean; } static final _id_equals$18 = _class.staticMethodId( @@ -31472,24 +35006,31 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;[Ljava/lang/Object;Ljava/util/Comparator;)Z', ); - static final _equals$18 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _equals$18 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public boolean equals(java.lang.Object[] objects, java.lang.Object[] objects1, java.util.Comparator comparator)` static bool equals$18<$T extends jni$_.JObject?>( @@ -31502,12 +35043,12 @@ class Arrays extends jni$_.JObject { final _$objects1 = objects1?.reference ?? jni$_.jNullReference; final _$comparator = comparator?.reference ?? jni$_.jNullReference; return _equals$18( - _class.reference.pointer, - _id_equals$18 as jni$_.JMethodIDPtr, - _$objects.pointer, - _$objects1.pointer, - _$comparator.pointer) - .boolean; + _class.reference.pointer, + _id_equals$18 as jni$_.JMethodIDPtr, + _$objects.pointer, + _$objects1.pointer, + _$comparator.pointer, + ).boolean; } static final _id_equals$19 = _class.staticMethodId( @@ -31515,23 +35056,28 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;II[Ljava/lang/Object;IILjava/util/Comparator;)Z', ); - static final _equals$19 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _equals$19 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -31540,7 +35086,9 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, int, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public boolean equals(java.lang.Object[] objects, int i, int i1, java.lang.Object[] objects1, int i2, int i3, java.util.Comparator comparator)` static bool equals$19<$T extends jni$_.JObject?>( @@ -31557,526 +35105,616 @@ class Arrays extends jni$_.JObject { final _$objects1 = objects1?.reference ?? jni$_.jNullReference; final _$comparator = comparator?.reference ?? jni$_.jNullReference; return _equals$19( - _class.reference.pointer, - _id_equals$19 as jni$_.JMethodIDPtr, - _$objects.pointer, - i, - i1, - _$objects1.pointer, - i2, - i3, - _$comparator.pointer) - .boolean; - } - - static final _id_fill = _class.staticMethodId( - r'fill', - r'([JJ)V', - ); + _class.reference.pointer, + _id_equals$19 as jni$_.JMethodIDPtr, + _$objects.pointer, + i, + i1, + _$objects1.pointer, + i2, + i3, + _$comparator.pointer, + ).boolean; + } - static final _fill = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int64)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _id_fill = _class.staticMethodId(r'fill', r'([JJ)V'); + + static final _fill = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int64)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `static public void fill(long[] js, long j)` - static void fill( - jni$_.JLongArray? js, - int j, - ) { + static void fill(jni$_.JLongArray? js, int j) { final _$js = js?.reference ?? jni$_.jNullReference; - _fill(_class.reference.pointer, _id_fill as jni$_.JMethodIDPtr, - _$js.pointer, j) - .check(); + _fill( + _class.reference.pointer, + _id_fill as jni$_.JMethodIDPtr, + _$js.pointer, + j, + ).check(); } - static final _id_fill$1 = _class.staticMethodId( - r'fill', - r'([JIIJ)V', - ); + static final _id_fill$1 = _class.staticMethodId(r'fill', r'([JIIJ)V'); - static final _fill$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _fill$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Int64 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Int64, + ) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + int, + ) + >(); /// from: `static public void fill(long[] js, int i, int i1, long j)` - static void fill$1( - jni$_.JLongArray? js, - int i, - int i1, - int j, - ) { + static void fill$1(jni$_.JLongArray? js, int i, int i1, int j) { final _$js = js?.reference ?? jni$_.jNullReference; - _fill$1(_class.reference.pointer, _id_fill$1 as jni$_.JMethodIDPtr, - _$js.pointer, i, i1, j) - .check(); + _fill$1( + _class.reference.pointer, + _id_fill$1 as jni$_.JMethodIDPtr, + _$js.pointer, + i, + i1, + j, + ).check(); } - static final _id_fill$2 = _class.staticMethodId( - r'fill', - r'([II)V', - ); + static final _id_fill$2 = _class.staticMethodId(r'fill', r'([II)V'); - static final _fill$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _fill$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `static public void fill(int[] is, int i)` - static void fill$2( - jni$_.JIntArray? is$, - int i, - ) { + static void fill$2(jni$_.JIntArray? is$, int i) { final _$is$ = is$?.reference ?? jni$_.jNullReference; - _fill$2(_class.reference.pointer, _id_fill$2 as jni$_.JMethodIDPtr, - _$is$.pointer, i) - .check(); + _fill$2( + _class.reference.pointer, + _id_fill$2 as jni$_.JMethodIDPtr, + _$is$.pointer, + i, + ).check(); } - static final _id_fill$3 = _class.staticMethodId( - r'fill', - r'([IIII)V', - ); + static final _id_fill$3 = _class.staticMethodId(r'fill', r'([IIII)V'); - static final _fill$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _fill$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + int, + ) + >(); /// from: `static public void fill(int[] is, int i, int i1, int i2)` - static void fill$3( - jni$_.JIntArray? is$, - int i, - int i1, - int i2, - ) { + static void fill$3(jni$_.JIntArray? is$, int i, int i1, int i2) { final _$is$ = is$?.reference ?? jni$_.jNullReference; - _fill$3(_class.reference.pointer, _id_fill$3 as jni$_.JMethodIDPtr, - _$is$.pointer, i, i1, i2) - .check(); + _fill$3( + _class.reference.pointer, + _id_fill$3 as jni$_.JMethodIDPtr, + _$is$.pointer, + i, + i1, + i2, + ).check(); } - static final _id_fill$4 = _class.staticMethodId( - r'fill', - r'([SS)V', - ); + static final _id_fill$4 = _class.staticMethodId(r'fill', r'([SS)V'); - static final _fill$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _fill$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `static public void fill(short[] ss, short s)` - static void fill$4( - jni$_.JShortArray? ss, - int s, - ) { + static void fill$4(jni$_.JShortArray? ss, int s) { final _$ss = ss?.reference ?? jni$_.jNullReference; - _fill$4(_class.reference.pointer, _id_fill$4 as jni$_.JMethodIDPtr, - _$ss.pointer, s) - .check(); + _fill$4( + _class.reference.pointer, + _id_fill$4 as jni$_.JMethodIDPtr, + _$ss.pointer, + s, + ).check(); } - static final _id_fill$5 = _class.staticMethodId( - r'fill', - r'([SIIS)V', - ); + static final _id_fill$5 = _class.staticMethodId(r'fill', r'([SIIS)V'); - static final _fill$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _fill$5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + int, + ) + >(); /// from: `static public void fill(short[] ss, int i, int i1, short s)` - static void fill$5( - jni$_.JShortArray? ss, - int i, - int i1, - int s, - ) { + static void fill$5(jni$_.JShortArray? ss, int i, int i1, int s) { final _$ss = ss?.reference ?? jni$_.jNullReference; - _fill$5(_class.reference.pointer, _id_fill$5 as jni$_.JMethodIDPtr, - _$ss.pointer, i, i1, s) - .check(); + _fill$5( + _class.reference.pointer, + _id_fill$5 as jni$_.JMethodIDPtr, + _$ss.pointer, + i, + i1, + s, + ).check(); } - static final _id_fill$6 = _class.staticMethodId( - r'fill', - r'([CC)V', - ); + static final _id_fill$6 = _class.staticMethodId(r'fill', r'([CC)V'); - static final _fill$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _fill$6 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `static public void fill(char[] cs, char c)` - static void fill$6( - jni$_.JCharArray? cs, - int c, - ) { + static void fill$6(jni$_.JCharArray? cs, int c) { final _$cs = cs?.reference ?? jni$_.jNullReference; - _fill$6(_class.reference.pointer, _id_fill$6 as jni$_.JMethodIDPtr, - _$cs.pointer, c) - .check(); + _fill$6( + _class.reference.pointer, + _id_fill$6 as jni$_.JMethodIDPtr, + _$cs.pointer, + c, + ).check(); } - static final _id_fill$7 = _class.staticMethodId( - r'fill', - r'([CIIC)V', - ); + static final _id_fill$7 = _class.staticMethodId(r'fill', r'([CIIC)V'); - static final _fill$7 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _fill$7 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + int, + ) + >(); /// from: `static public void fill(char[] cs, int i, int i1, char c)` - static void fill$7( - jni$_.JCharArray? cs, - int i, - int i1, - int c, - ) { + static void fill$7(jni$_.JCharArray? cs, int i, int i1, int c) { final _$cs = cs?.reference ?? jni$_.jNullReference; - _fill$7(_class.reference.pointer, _id_fill$7 as jni$_.JMethodIDPtr, - _$cs.pointer, i, i1, c) - .check(); + _fill$7( + _class.reference.pointer, + _id_fill$7 as jni$_.JMethodIDPtr, + _$cs.pointer, + i, + i1, + c, + ).check(); } - static final _id_fill$8 = _class.staticMethodId( - r'fill', - r'([BB)V', - ); + static final _id_fill$8 = _class.staticMethodId(r'fill', r'([BB)V'); - static final _fill$8 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _fill$8 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `static public void fill(byte[] bs, byte b)` - static void fill$8( - jni$_.JByteArray? bs, - int b, - ) { + static void fill$8(jni$_.JByteArray? bs, int b) { final _$bs = bs?.reference ?? jni$_.jNullReference; - _fill$8(_class.reference.pointer, _id_fill$8 as jni$_.JMethodIDPtr, - _$bs.pointer, b) - .check(); + _fill$8( + _class.reference.pointer, + _id_fill$8 as jni$_.JMethodIDPtr, + _$bs.pointer, + b, + ).check(); } - static final _id_fill$9 = _class.staticMethodId( - r'fill', - r'([BIIB)V', - ); + static final _id_fill$9 = _class.staticMethodId(r'fill', r'([BIIB)V'); - static final _fill$9 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _fill$9 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + int, + ) + >(); /// from: `static public void fill(byte[] bs, int i, int i1, byte b)` - static void fill$9( - jni$_.JByteArray? bs, - int i, - int i1, - int b, - ) { + static void fill$9(jni$_.JByteArray? bs, int i, int i1, int b) { final _$bs = bs?.reference ?? jni$_.jNullReference; - _fill$9(_class.reference.pointer, _id_fill$9 as jni$_.JMethodIDPtr, - _$bs.pointer, i, i1, b) - .check(); + _fill$9( + _class.reference.pointer, + _id_fill$9 as jni$_.JMethodIDPtr, + _$bs.pointer, + i, + i1, + b, + ).check(); } - static final _id_fill$10 = _class.staticMethodId( - r'fill', - r'([ZZ)V', - ); + static final _id_fill$10 = _class.staticMethodId(r'fill', r'([ZZ)V'); - static final _fill$10 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _fill$10 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `static public void fill(boolean[] zs, boolean z)` - static void fill$10( - jni$_.JBooleanArray? zs, - bool z, - ) { + static void fill$10(jni$_.JBooleanArray? zs, bool z) { final _$zs = zs?.reference ?? jni$_.jNullReference; - _fill$10(_class.reference.pointer, _id_fill$10 as jni$_.JMethodIDPtr, - _$zs.pointer, z ? 1 : 0) - .check(); + _fill$10( + _class.reference.pointer, + _id_fill$10 as jni$_.JMethodIDPtr, + _$zs.pointer, + z ? 1 : 0, + ).check(); } - static final _id_fill$11 = _class.staticMethodId( - r'fill', - r'([ZIIZ)V', - ); + static final _id_fill$11 = _class.staticMethodId(r'fill', r'([ZIIZ)V'); - static final _fill$11 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _fill$11 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + int, + ) + >(); /// from: `static public void fill(boolean[] zs, int i, int i1, boolean z)` - static void fill$11( - jni$_.JBooleanArray? zs, - int i, - int i1, - bool z, - ) { + static void fill$11(jni$_.JBooleanArray? zs, int i, int i1, bool z) { final _$zs = zs?.reference ?? jni$_.jNullReference; - _fill$11(_class.reference.pointer, _id_fill$11 as jni$_.JMethodIDPtr, - _$zs.pointer, i, i1, z ? 1 : 0) - .check(); + _fill$11( + _class.reference.pointer, + _id_fill$11 as jni$_.JMethodIDPtr, + _$zs.pointer, + i, + i1, + z ? 1 : 0, + ).check(); } - static final _id_fill$12 = _class.staticMethodId( - r'fill', - r'([DD)V', - ); + static final _id_fill$12 = _class.staticMethodId(r'fill', r'([DD)V'); - static final _fill$12 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _fill$12 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Double - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Double)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + double, + ) + >(); /// from: `static public void fill(double[] ds, double d)` - static void fill$12( - jni$_.JDoubleArray? ds, - double d, - ) { + static void fill$12(jni$_.JDoubleArray? ds, double d) { final _$ds = ds?.reference ?? jni$_.jNullReference; - _fill$12(_class.reference.pointer, _id_fill$12 as jni$_.JMethodIDPtr, - _$ds.pointer, d) - .check(); + _fill$12( + _class.reference.pointer, + _id_fill$12 as jni$_.JMethodIDPtr, + _$ds.pointer, + d, + ).check(); } - static final _id_fill$13 = _class.staticMethodId( - r'fill', - r'([DIID)V', - ); + static final _id_fill$13 = _class.staticMethodId(r'fill', r'([DIID)V'); - static final _fill$13 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _fill$13 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Double - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Double, + ) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, int, - double)>(); + double, + ) + >(); /// from: `static public void fill(double[] ds, int i, int i1, double d)` - static void fill$13( - jni$_.JDoubleArray? ds, - int i, - int i1, - double d, - ) { + static void fill$13(jni$_.JDoubleArray? ds, int i, int i1, double d) { final _$ds = ds?.reference ?? jni$_.jNullReference; - _fill$13(_class.reference.pointer, _id_fill$13 as jni$_.JMethodIDPtr, - _$ds.pointer, i, i1, d) - .check(); + _fill$13( + _class.reference.pointer, + _id_fill$13 as jni$_.JMethodIDPtr, + _$ds.pointer, + i, + i1, + d, + ).check(); } - static final _id_fill$14 = _class.staticMethodId( - r'fill', - r'([FF)V', - ); + static final _id_fill$14 = _class.staticMethodId(r'fill', r'([FF)V'); - static final _fill$14 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _fill$14 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Double - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, double)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Double)>, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + double, + ) + >(); /// from: `static public void fill(float[] fs, float f)` - static void fill$14( - jni$_.JFloatArray? fs, - double f, - ) { + static void fill$14(jni$_.JFloatArray? fs, double f) { final _$fs = fs?.reference ?? jni$_.jNullReference; - _fill$14(_class.reference.pointer, _id_fill$14 as jni$_.JMethodIDPtr, - _$fs.pointer, f) - .check(); + _fill$14( + _class.reference.pointer, + _id_fill$14 as jni$_.JMethodIDPtr, + _$fs.pointer, + f, + ).check(); } - static final _id_fill$15 = _class.staticMethodId( - r'fill', - r'([FIIF)V', - ); + static final _id_fill$15 = _class.staticMethodId(r'fill', r'([FIIF)V'); - static final _fill$15 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _fill$15 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Double - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Double, + ) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, int, - double)>(); + double, + ) + >(); /// from: `static public void fill(float[] fs, int i, int i1, float f)` - static void fill$15( - jni$_.JFloatArray? fs, - int i, - int i1, - double f, - ) { + static void fill$15(jni$_.JFloatArray? fs, int i, int i1, double f) { final _$fs = fs?.reference ?? jni$_.jNullReference; - _fill$15(_class.reference.pointer, _id_fill$15 as jni$_.JMethodIDPtr, - _$fs.pointer, i, i1, f) - .check(); + _fill$15( + _class.reference.pointer, + _id_fill$15 as jni$_.JMethodIDPtr, + _$fs.pointer, + i, + i1, + f, + ).check(); } static final _id_fill$16 = _class.staticMethodId( @@ -32084,22 +35722,26 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;Ljava/lang/Object;)V', ); - static final _fill$16 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _fill$16 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void fill(java.lang.Object[] objects, java.lang.Object object)` static void fill$16( @@ -32108,9 +35750,12 @@ class Arrays extends jni$_.JObject { ) { final _$objects = objects?.reference ?? jni$_.jNullReference; final _$object = object?.reference ?? jni$_.jNullReference; - _fill$16(_class.reference.pointer, _id_fill$16 as jni$_.JMethodIDPtr, - _$objects.pointer, _$object.pointer) - .check(); + _fill$16( + _class.reference.pointer, + _id_fill$16 as jni$_.JMethodIDPtr, + _$objects.pointer, + _$object.pointer, + ).check(); } static final _id_fill$17 = _class.staticMethodId( @@ -32118,26 +35763,33 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;IILjava/lang/Object;)V', ); - static final _fill$17 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _fill$17 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void fill(java.lang.Object[] objects, int i, int i1, java.lang.Object object)` static void fill$17( @@ -32148,9 +35800,14 @@ class Arrays extends jni$_.JObject { ) { final _$objects = objects?.reference ?? jni$_.jNullReference; final _$object = object?.reference ?? jni$_.jNullReference; - _fill$17(_class.reference.pointer, _id_fill$17 as jni$_.JMethodIDPtr, - _$objects.pointer, i, i1, _$object.pointer) - .check(); + _fill$17( + _class.reference.pointer, + _id_fill$17 as jni$_.JMethodIDPtr, + _$objects.pointer, + i, + i1, + _$object.pointer, + ).check(); } static final _id_copyOf = _class.staticMethodId( @@ -32158,17 +35815,24 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;I)[Ljava/lang/Object;', ); - static final _copyOf = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _copyOf = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `static public java.lang.Object[] copyOf(java.lang.Object[] objects, int i)` /// The returned object must be released after use, by calling the [release] method. @@ -32178,10 +35842,12 @@ class Arrays extends jni$_.JObject { required jni$_.JObjType<$T> T, }) { final _$objects = objects?.reference ?? jni$_.jNullReference; - return _copyOf(_class.reference.pointer, _id_copyOf as jni$_.JMethodIDPtr, - _$objects.pointer, i) - .object?>( - jni$_.JArrayNullableType<$T?>(T.nullableType)); + return _copyOf( + _class.reference.pointer, + _id_copyOf as jni$_.JMethodIDPtr, + _$objects.pointer, + i, + ).object?>(jni$_.JArrayNullableType<$T?>(T.nullableType)); } static final _id_copyOf$1 = _class.staticMethodId( @@ -32189,29 +35855,36 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;ILjava/lang/Class;)[Ljava/lang/Object;', ); - static final _copyOf$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _copyOf$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public java.lang.Object[] copyOf(java.lang.Object[] objects, int i, java.lang.Class class)` /// The returned object must be released after use, by calling the [release] method. static jni$_.JArray<$T?>? - copyOf$1<$T extends jni$_.JObject?, $U extends jni$_.JObject?>( + copyOf$1<$T extends jni$_.JObject?, $U extends jni$_.JObject?>( jni$_.JArray<$U?>? objects, int i, jni$_.JObject? class$, { @@ -32221,245 +35894,276 @@ class Arrays extends jni$_.JObject { final _$objects = objects?.reference ?? jni$_.jNullReference; final _$class$ = class$?.reference ?? jni$_.jNullReference; return _copyOf$1( - _class.reference.pointer, - _id_copyOf$1 as jni$_.JMethodIDPtr, - _$objects.pointer, - i, - _$class$.pointer) - .object?>( - jni$_.JArrayNullableType<$T?>(T.nullableType)); + _class.reference.pointer, + _id_copyOf$1 as jni$_.JMethodIDPtr, + _$objects.pointer, + i, + _$class$.pointer, + ).object?>(jni$_.JArrayNullableType<$T?>(T.nullableType)); } - static final _id_copyOf$2 = _class.staticMethodId( - r'copyOf', - r'([BI)[B', - ); + static final _id_copyOf$2 = _class.staticMethodId(r'copyOf', r'([BI)[B'); - static final _copyOf$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _copyOf$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `static public byte[] copyOf(byte[] bs, int i)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JByteArray? copyOf$2( - jni$_.JByteArray? bs, - int i, - ) { + static jni$_.JByteArray? copyOf$2(jni$_.JByteArray? bs, int i) { final _$bs = bs?.reference ?? jni$_.jNullReference; - return _copyOf$2(_class.reference.pointer, - _id_copyOf$2 as jni$_.JMethodIDPtr, _$bs.pointer, i) - .object(const jni$_.JByteArrayNullableType()); + return _copyOf$2( + _class.reference.pointer, + _id_copyOf$2 as jni$_.JMethodIDPtr, + _$bs.pointer, + i, + ).object(const jni$_.JByteArrayNullableType()); } - static final _id_copyOf$3 = _class.staticMethodId( - r'copyOf', - r'([SI)[S', - ); + static final _id_copyOf$3 = _class.staticMethodId(r'copyOf', r'([SI)[S'); - static final _copyOf$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _copyOf$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `static public short[] copyOf(short[] ss, int i)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JShortArray? copyOf$3( - jni$_.JShortArray? ss, - int i, - ) { + static jni$_.JShortArray? copyOf$3(jni$_.JShortArray? ss, int i) { final _$ss = ss?.reference ?? jni$_.jNullReference; - return _copyOf$3(_class.reference.pointer, - _id_copyOf$3 as jni$_.JMethodIDPtr, _$ss.pointer, i) - .object(const jni$_.JShortArrayNullableType()); + return _copyOf$3( + _class.reference.pointer, + _id_copyOf$3 as jni$_.JMethodIDPtr, + _$ss.pointer, + i, + ).object(const jni$_.JShortArrayNullableType()); } - static final _id_copyOf$4 = _class.staticMethodId( - r'copyOf', - r'([II)[I', - ); + static final _id_copyOf$4 = _class.staticMethodId(r'copyOf', r'([II)[I'); - static final _copyOf$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _copyOf$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `static public int[] copyOf(int[] is, int i)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JIntArray? copyOf$4( - jni$_.JIntArray? is$, - int i, - ) { + static jni$_.JIntArray? copyOf$4(jni$_.JIntArray? is$, int i) { final _$is$ = is$?.reference ?? jni$_.jNullReference; - return _copyOf$4(_class.reference.pointer, - _id_copyOf$4 as jni$_.JMethodIDPtr, _$is$.pointer, i) - .object(const jni$_.JIntArrayNullableType()); + return _copyOf$4( + _class.reference.pointer, + _id_copyOf$4 as jni$_.JMethodIDPtr, + _$is$.pointer, + i, + ).object(const jni$_.JIntArrayNullableType()); } - static final _id_copyOf$5 = _class.staticMethodId( - r'copyOf', - r'([JI)[J', - ); + static final _id_copyOf$5 = _class.staticMethodId(r'copyOf', r'([JI)[J'); - static final _copyOf$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _copyOf$5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `static public long[] copyOf(long[] js, int i)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JLongArray? copyOf$5( - jni$_.JLongArray? js, - int i, - ) { + static jni$_.JLongArray? copyOf$5(jni$_.JLongArray? js, int i) { final _$js = js?.reference ?? jni$_.jNullReference; - return _copyOf$5(_class.reference.pointer, - _id_copyOf$5 as jni$_.JMethodIDPtr, _$js.pointer, i) - .object(const jni$_.JLongArrayNullableType()); + return _copyOf$5( + _class.reference.pointer, + _id_copyOf$5 as jni$_.JMethodIDPtr, + _$js.pointer, + i, + ).object(const jni$_.JLongArrayNullableType()); } - static final _id_copyOf$6 = _class.staticMethodId( - r'copyOf', - r'([CI)[C', - ); + static final _id_copyOf$6 = _class.staticMethodId(r'copyOf', r'([CI)[C'); - static final _copyOf$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _copyOf$6 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `static public char[] copyOf(char[] cs, int i)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JCharArray? copyOf$6( - jni$_.JCharArray? cs, - int i, - ) { + static jni$_.JCharArray? copyOf$6(jni$_.JCharArray? cs, int i) { final _$cs = cs?.reference ?? jni$_.jNullReference; - return _copyOf$6(_class.reference.pointer, - _id_copyOf$6 as jni$_.JMethodIDPtr, _$cs.pointer, i) - .object(const jni$_.JCharArrayNullableType()); + return _copyOf$6( + _class.reference.pointer, + _id_copyOf$6 as jni$_.JMethodIDPtr, + _$cs.pointer, + i, + ).object(const jni$_.JCharArrayNullableType()); } - static final _id_copyOf$7 = _class.staticMethodId( - r'copyOf', - r'([FI)[F', - ); + static final _id_copyOf$7 = _class.staticMethodId(r'copyOf', r'([FI)[F'); - static final _copyOf$7 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _copyOf$7 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `static public float[] copyOf(float[] fs, int i)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JFloatArray? copyOf$7( - jni$_.JFloatArray? fs, - int i, - ) { + static jni$_.JFloatArray? copyOf$7(jni$_.JFloatArray? fs, int i) { final _$fs = fs?.reference ?? jni$_.jNullReference; - return _copyOf$7(_class.reference.pointer, - _id_copyOf$7 as jni$_.JMethodIDPtr, _$fs.pointer, i) - .object(const jni$_.JFloatArrayNullableType()); + return _copyOf$7( + _class.reference.pointer, + _id_copyOf$7 as jni$_.JMethodIDPtr, + _$fs.pointer, + i, + ).object(const jni$_.JFloatArrayNullableType()); } - static final _id_copyOf$8 = _class.staticMethodId( - r'copyOf', - r'([DI)[D', - ); + static final _id_copyOf$8 = _class.staticMethodId(r'copyOf', r'([DI)[D'); - static final _copyOf$8 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _copyOf$8 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `static public double[] copyOf(double[] ds, int i)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JDoubleArray? copyOf$8( - jni$_.JDoubleArray? ds, - int i, - ) { + static jni$_.JDoubleArray? copyOf$8(jni$_.JDoubleArray? ds, int i) { final _$ds = ds?.reference ?? jni$_.jNullReference; - return _copyOf$8(_class.reference.pointer, - _id_copyOf$8 as jni$_.JMethodIDPtr, _$ds.pointer, i) - .object(const jni$_.JDoubleArrayNullableType()); + return _copyOf$8( + _class.reference.pointer, + _id_copyOf$8 as jni$_.JMethodIDPtr, + _$ds.pointer, + i, + ).object(const jni$_.JDoubleArrayNullableType()); } - static final _id_copyOf$9 = _class.staticMethodId( - r'copyOf', - r'([ZI)[Z', - ); + static final _id_copyOf$9 = _class.staticMethodId(r'copyOf', r'([ZI)[Z'); - static final _copyOf$9 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_ - .VarArgs<(jni$_.Pointer, jni$_.Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int)>(); + static final _copyOf$9 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer, jni$_.Int32)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + ) + >(); /// from: `static public boolean[] copyOf(boolean[] zs, int i)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JBooleanArray? copyOf$9( - jni$_.JBooleanArray? zs, - int i, - ) { + static jni$_.JBooleanArray? copyOf$9(jni$_.JBooleanArray? zs, int i) { final _$zs = zs?.reference ?? jni$_.jNullReference; - return _copyOf$9(_class.reference.pointer, - _id_copyOf$9 as jni$_.JMethodIDPtr, _$zs.pointer, i) - .object(const jni$_.JBooleanArrayNullableType()); + return _copyOf$9( + _class.reference.pointer, + _id_copyOf$9 as jni$_.JMethodIDPtr, + _$zs.pointer, + i, + ).object(const jni$_.JBooleanArrayNullableType()); } static final _id_copyOfRange = _class.staticMethodId( @@ -32467,20 +36171,27 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;II)[Ljava/lang/Object;', ); - static final _copyOfRange = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _copyOfRange = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public java.lang.Object[] copyOfRange(java.lang.Object[] objects, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. @@ -32491,10 +36202,13 @@ class Arrays extends jni$_.JObject { required jni$_.JObjType<$T> T, }) { final _$objects = objects?.reference ?? jni$_.jNullReference; - return _copyOfRange(_class.reference.pointer, - _id_copyOfRange as jni$_.JMethodIDPtr, _$objects.pointer, i, i1) - .object?>( - jni$_.JArrayNullableType<$T?>(T.nullableType)); + return _copyOfRange( + _class.reference.pointer, + _id_copyOfRange as jni$_.JMethodIDPtr, + _$objects.pointer, + i, + i1, + ).object?>(jni$_.JArrayNullableType<$T?>(T.nullableType)); } static final _id_copyOfRange$1 = _class.staticMethodId( @@ -32502,31 +36216,38 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;IILjava/lang/Class;)[Ljava/lang/Object;', ); - static final _copyOfRange$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _copyOfRange$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, int, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public java.lang.Object[] copyOfRange(java.lang.Object[] objects, int i, int i1, java.lang.Class class)` /// The returned object must be released after use, by calling the [release] method. static jni$_.JArray<$T?>? - copyOfRange$1<$T extends jni$_.JObject?, $U extends jni$_.JObject?>( + copyOfRange$1<$T extends jni$_.JObject?, $U extends jni$_.JObject?>( jni$_.JArray<$U?>? objects, int i, int i1, @@ -32537,14 +36258,13 @@ class Arrays extends jni$_.JObject { final _$objects = objects?.reference ?? jni$_.jNullReference; final _$class$ = class$?.reference ?? jni$_.jNullReference; return _copyOfRange$1( - _class.reference.pointer, - _id_copyOfRange$1 as jni$_.JMethodIDPtr, - _$objects.pointer, - i, - i1, - _$class$.pointer) - .object?>( - jni$_.JArrayNullableType<$T?>(T.nullableType)); + _class.reference.pointer, + _id_copyOfRange$1 as jni$_.JMethodIDPtr, + _$objects.pointer, + i, + i1, + _$class$.pointer, + ).object?>(jni$_.JArrayNullableType<$T?>(T.nullableType)); } static final _id_copyOfRange$2 = _class.staticMethodId( @@ -32552,32 +36272,39 @@ class Arrays extends jni$_.JObject { r'([BII)[B', ); - static final _copyOfRange$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _copyOfRange$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public byte[] copyOfRange(byte[] bs, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JByteArray? copyOfRange$2( - jni$_.JByteArray? bs, - int i, - int i1, - ) { + static jni$_.JByteArray? copyOfRange$2(jni$_.JByteArray? bs, int i, int i1) { final _$bs = bs?.reference ?? jni$_.jNullReference; - return _copyOfRange$2(_class.reference.pointer, - _id_copyOfRange$2 as jni$_.JMethodIDPtr, _$bs.pointer, i, i1) - .object(const jni$_.JByteArrayNullableType()); + return _copyOfRange$2( + _class.reference.pointer, + _id_copyOfRange$2 as jni$_.JMethodIDPtr, + _$bs.pointer, + i, + i1, + ).object(const jni$_.JByteArrayNullableType()); } static final _id_copyOfRange$3 = _class.staticMethodId( @@ -32585,20 +36312,27 @@ class Arrays extends jni$_.JObject { r'([SII)[S', ); - static final _copyOfRange$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _copyOfRange$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public short[] copyOfRange(short[] ss, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. @@ -32608,9 +36342,13 @@ class Arrays extends jni$_.JObject { int i1, ) { final _$ss = ss?.reference ?? jni$_.jNullReference; - return _copyOfRange$3(_class.reference.pointer, - _id_copyOfRange$3 as jni$_.JMethodIDPtr, _$ss.pointer, i, i1) - .object(const jni$_.JShortArrayNullableType()); + return _copyOfRange$3( + _class.reference.pointer, + _id_copyOfRange$3 as jni$_.JMethodIDPtr, + _$ss.pointer, + i, + i1, + ).object(const jni$_.JShortArrayNullableType()); } static final _id_copyOfRange$4 = _class.staticMethodId( @@ -32618,32 +36356,39 @@ class Arrays extends jni$_.JObject { r'([III)[I', ); - static final _copyOfRange$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _copyOfRange$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public int[] copyOfRange(int[] is, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JIntArray? copyOfRange$4( - jni$_.JIntArray? is$, - int i, - int i1, - ) { + static jni$_.JIntArray? copyOfRange$4(jni$_.JIntArray? is$, int i, int i1) { final _$is$ = is$?.reference ?? jni$_.jNullReference; - return _copyOfRange$4(_class.reference.pointer, - _id_copyOfRange$4 as jni$_.JMethodIDPtr, _$is$.pointer, i, i1) - .object(const jni$_.JIntArrayNullableType()); + return _copyOfRange$4( + _class.reference.pointer, + _id_copyOfRange$4 as jni$_.JMethodIDPtr, + _$is$.pointer, + i, + i1, + ).object(const jni$_.JIntArrayNullableType()); } static final _id_copyOfRange$5 = _class.staticMethodId( @@ -32651,32 +36396,39 @@ class Arrays extends jni$_.JObject { r'([JII)[J', ); - static final _copyOfRange$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _copyOfRange$5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public long[] copyOfRange(long[] js, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JLongArray? copyOfRange$5( - jni$_.JLongArray? js, - int i, - int i1, - ) { + static jni$_.JLongArray? copyOfRange$5(jni$_.JLongArray? js, int i, int i1) { final _$js = js?.reference ?? jni$_.jNullReference; - return _copyOfRange$5(_class.reference.pointer, - _id_copyOfRange$5 as jni$_.JMethodIDPtr, _$js.pointer, i, i1) - .object(const jni$_.JLongArrayNullableType()); + return _copyOfRange$5( + _class.reference.pointer, + _id_copyOfRange$5 as jni$_.JMethodIDPtr, + _$js.pointer, + i, + i1, + ).object(const jni$_.JLongArrayNullableType()); } static final _id_copyOfRange$6 = _class.staticMethodId( @@ -32684,32 +36436,39 @@ class Arrays extends jni$_.JObject { r'([CII)[C', ); - static final _copyOfRange$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _copyOfRange$6 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public char[] copyOfRange(char[] cs, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JCharArray? copyOfRange$6( - jni$_.JCharArray? cs, - int i, - int i1, - ) { + static jni$_.JCharArray? copyOfRange$6(jni$_.JCharArray? cs, int i, int i1) { final _$cs = cs?.reference ?? jni$_.jNullReference; - return _copyOfRange$6(_class.reference.pointer, - _id_copyOfRange$6 as jni$_.JMethodIDPtr, _$cs.pointer, i, i1) - .object(const jni$_.JCharArrayNullableType()); + return _copyOfRange$6( + _class.reference.pointer, + _id_copyOfRange$6 as jni$_.JMethodIDPtr, + _$cs.pointer, + i, + i1, + ).object(const jni$_.JCharArrayNullableType()); } static final _id_copyOfRange$7 = _class.staticMethodId( @@ -32717,20 +36476,27 @@ class Arrays extends jni$_.JObject { r'([FII)[F', ); - static final _copyOfRange$7 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _copyOfRange$7 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public float[] copyOfRange(float[] fs, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. @@ -32740,9 +36506,13 @@ class Arrays extends jni$_.JObject { int i1, ) { final _$fs = fs?.reference ?? jni$_.jNullReference; - return _copyOfRange$7(_class.reference.pointer, - _id_copyOfRange$7 as jni$_.JMethodIDPtr, _$fs.pointer, i, i1) - .object(const jni$_.JFloatArrayNullableType()); + return _copyOfRange$7( + _class.reference.pointer, + _id_copyOfRange$7 as jni$_.JMethodIDPtr, + _$fs.pointer, + i, + i1, + ).object(const jni$_.JFloatArrayNullableType()); } static final _id_copyOfRange$8 = _class.staticMethodId( @@ -32750,20 +36520,27 @@ class Arrays extends jni$_.JObject { r'([DII)[D', ); - static final _copyOfRange$8 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _copyOfRange$8 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public double[] copyOfRange(double[] ds, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. @@ -32773,9 +36550,13 @@ class Arrays extends jni$_.JObject { int i1, ) { final _$ds = ds?.reference ?? jni$_.jNullReference; - return _copyOfRange$8(_class.reference.pointer, - _id_copyOfRange$8 as jni$_.JMethodIDPtr, _$ds.pointer, i, i1) - .object(const jni$_.JDoubleArrayNullableType()); + return _copyOfRange$8( + _class.reference.pointer, + _id_copyOfRange$8 as jni$_.JMethodIDPtr, + _$ds.pointer, + i, + i1, + ).object(const jni$_.JDoubleArrayNullableType()); } static final _id_copyOfRange$9 = _class.staticMethodId( @@ -32783,20 +36564,27 @@ class Arrays extends jni$_.JObject { r'([ZII)[Z', ); - static final _copyOfRange$9 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _copyOfRange$9 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public boolean[] copyOfRange(boolean[] zs, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. @@ -32806,9 +36594,13 @@ class Arrays extends jni$_.JObject { int i1, ) { final _$zs = zs?.reference ?? jni$_.jNullReference; - return _copyOfRange$9(_class.reference.pointer, - _id_copyOfRange$9 as jni$_.JMethodIDPtr, _$zs.pointer, i, i1) - .object(const jni$_.JBooleanArrayNullableType()); + return _copyOfRange$9( + _class.reference.pointer, + _id_copyOfRange$9 as jni$_.JMethodIDPtr, + _$zs.pointer, + i, + i1, + ).object(const jni$_.JBooleanArrayNullableType()); } static final _id_asList = _class.staticMethodId( @@ -32816,16 +36608,23 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;)Ljava/util/List;', ); - static final _asList = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _asList = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.util.List asList(java.lang.Object[] objects)` /// The returned object must be released after use, by calling the [release] method. @@ -32834,218 +36633,251 @@ class Arrays extends jni$_.JObject { required jni$_.JObjType<$T> T, }) { final _$objects = objects?.reference ?? jni$_.jNullReference; - return _asList(_class.reference.pointer, _id_asList as jni$_.JMethodIDPtr, - _$objects.pointer) - .object?>( - jni$_.JListNullableType<$T?>(T.nullableType)); + return _asList( + _class.reference.pointer, + _id_asList as jni$_.JMethodIDPtr, + _$objects.pointer, + ).object?>(jni$_.JListNullableType<$T?>(T.nullableType)); } - static final _id_hashCode$1 = _class.staticMethodId( - r'hashCode', - r'([J)I', - ); + static final _id_hashCode$1 = _class.staticMethodId(r'hashCode', r'([J)I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public int hashCode(long[] js)` - static int hashCode$1( - jni$_.JLongArray? js, - ) { + static int hashCode$1(jni$_.JLongArray? js) { final _$js = js?.reference ?? jni$_.jNullReference; - return _hashCode$1(_class.reference.pointer, - _id_hashCode$1 as jni$_.JMethodIDPtr, _$js.pointer) - .integer; + return _hashCode$1( + _class.reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + _$js.pointer, + ).integer; } - static final _id_hashCode$2 = _class.staticMethodId( - r'hashCode', - r'([I)I', - ); + static final _id_hashCode$2 = _class.staticMethodId(r'hashCode', r'([I)I'); - static final _hashCode$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _hashCode$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public int hashCode(int[] is)` - static int hashCode$2( - jni$_.JIntArray? is$, - ) { + static int hashCode$2(jni$_.JIntArray? is$) { final _$is$ = is$?.reference ?? jni$_.jNullReference; - return _hashCode$2(_class.reference.pointer, - _id_hashCode$2 as jni$_.JMethodIDPtr, _$is$.pointer) - .integer; + return _hashCode$2( + _class.reference.pointer, + _id_hashCode$2 as jni$_.JMethodIDPtr, + _$is$.pointer, + ).integer; } - static final _id_hashCode$3 = _class.staticMethodId( - r'hashCode', - r'([S)I', - ); + static final _id_hashCode$3 = _class.staticMethodId(r'hashCode', r'([S)I'); - static final _hashCode$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _hashCode$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public int hashCode(short[] ss)` - static int hashCode$3( - jni$_.JShortArray? ss, - ) { + static int hashCode$3(jni$_.JShortArray? ss) { final _$ss = ss?.reference ?? jni$_.jNullReference; - return _hashCode$3(_class.reference.pointer, - _id_hashCode$3 as jni$_.JMethodIDPtr, _$ss.pointer) - .integer; + return _hashCode$3( + _class.reference.pointer, + _id_hashCode$3 as jni$_.JMethodIDPtr, + _$ss.pointer, + ).integer; } - static final _id_hashCode$4 = _class.staticMethodId( - r'hashCode', - r'([C)I', - ); + static final _id_hashCode$4 = _class.staticMethodId(r'hashCode', r'([C)I'); - static final _hashCode$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _hashCode$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public int hashCode(char[] cs)` - static int hashCode$4( - jni$_.JCharArray? cs, - ) { + static int hashCode$4(jni$_.JCharArray? cs) { final _$cs = cs?.reference ?? jni$_.jNullReference; - return _hashCode$4(_class.reference.pointer, - _id_hashCode$4 as jni$_.JMethodIDPtr, _$cs.pointer) - .integer; + return _hashCode$4( + _class.reference.pointer, + _id_hashCode$4 as jni$_.JMethodIDPtr, + _$cs.pointer, + ).integer; } - static final _id_hashCode$5 = _class.staticMethodId( - r'hashCode', - r'([B)I', - ); + static final _id_hashCode$5 = _class.staticMethodId(r'hashCode', r'([B)I'); - static final _hashCode$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _hashCode$5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public int hashCode(byte[] bs)` - static int hashCode$5( - jni$_.JByteArray? bs, - ) { + static int hashCode$5(jni$_.JByteArray? bs) { final _$bs = bs?.reference ?? jni$_.jNullReference; - return _hashCode$5(_class.reference.pointer, - _id_hashCode$5 as jni$_.JMethodIDPtr, _$bs.pointer) - .integer; + return _hashCode$5( + _class.reference.pointer, + _id_hashCode$5 as jni$_.JMethodIDPtr, + _$bs.pointer, + ).integer; } - static final _id_hashCode$6 = _class.staticMethodId( - r'hashCode', - r'([Z)I', - ); + static final _id_hashCode$6 = _class.staticMethodId(r'hashCode', r'([Z)I'); - static final _hashCode$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _hashCode$6 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public int hashCode(boolean[] zs)` - static int hashCode$6( - jni$_.JBooleanArray? zs, - ) { + static int hashCode$6(jni$_.JBooleanArray? zs) { final _$zs = zs?.reference ?? jni$_.jNullReference; - return _hashCode$6(_class.reference.pointer, - _id_hashCode$6 as jni$_.JMethodIDPtr, _$zs.pointer) - .integer; + return _hashCode$6( + _class.reference.pointer, + _id_hashCode$6 as jni$_.JMethodIDPtr, + _$zs.pointer, + ).integer; } - static final _id_hashCode$7 = _class.staticMethodId( - r'hashCode', - r'([F)I', - ); + static final _id_hashCode$7 = _class.staticMethodId(r'hashCode', r'([F)I'); - static final _hashCode$7 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _hashCode$7 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public int hashCode(float[] fs)` - static int hashCode$7( - jni$_.JFloatArray? fs, - ) { + static int hashCode$7(jni$_.JFloatArray? fs) { final _$fs = fs?.reference ?? jni$_.jNullReference; - return _hashCode$7(_class.reference.pointer, - _id_hashCode$7 as jni$_.JMethodIDPtr, _$fs.pointer) - .integer; + return _hashCode$7( + _class.reference.pointer, + _id_hashCode$7 as jni$_.JMethodIDPtr, + _$fs.pointer, + ).integer; } - static final _id_hashCode$8 = _class.staticMethodId( - r'hashCode', - r'([D)I', - ); + static final _id_hashCode$8 = _class.staticMethodId(r'hashCode', r'([D)I'); - static final _hashCode$8 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _hashCode$8 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public int hashCode(double[] ds)` - static int hashCode$8( - jni$_.JDoubleArray? ds, - ) { + static int hashCode$8(jni$_.JDoubleArray? ds) { final _$ds = ds?.reference ?? jni$_.jNullReference; - return _hashCode$8(_class.reference.pointer, - _id_hashCode$8 as jni$_.JMethodIDPtr, _$ds.pointer) - .integer; + return _hashCode$8( + _class.reference.pointer, + _id_hashCode$8 as jni$_.JMethodIDPtr, + _$ds.pointer, + ).integer; } static final _id_hashCode$9 = _class.staticMethodId( @@ -33053,25 +36885,32 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;)I', ); - static final _hashCode$9 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _hashCode$9 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public int hashCode(java.lang.Object[] objects)` - static int hashCode$9( - jni$_.JArray? objects, - ) { + static int hashCode$9(jni$_.JArray? objects) { final _$objects = objects?.reference ?? jni$_.jNullReference; - return _hashCode$9(_class.reference.pointer, - _id_hashCode$9 as jni$_.JMethodIDPtr, _$objects.pointer) - .integer; + return _hashCode$9( + _class.reference.pointer, + _id_hashCode$9 as jni$_.JMethodIDPtr, + _$objects.pointer, + ).integer; } static final _id_deepHashCode = _class.staticMethodId( @@ -33079,25 +36918,32 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;)I', ); - static final _deepHashCode = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _deepHashCode = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public int deepHashCode(java.lang.Object[] objects)` - static int deepHashCode( - jni$_.JArray? objects, - ) { + static int deepHashCode(jni$_.JArray? objects) { final _$objects = objects?.reference ?? jni$_.jNullReference; - return _deepHashCode(_class.reference.pointer, - _id_deepHashCode as jni$_.JMethodIDPtr, _$objects.pointer) - .integer; + return _deepHashCode( + _class.reference.pointer, + _id_deepHashCode as jni$_.JMethodIDPtr, + _$objects.pointer, + ).integer; } static final _id_deepEquals = _class.staticMethodId( @@ -33105,22 +36951,26 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;[Ljava/lang/Object;)Z', ); - static final _deepEquals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _deepEquals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticBooleanMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticBooleanMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public boolean deepEquals(java.lang.Object[] objects, java.lang.Object[] objects1)` static bool deepEquals( @@ -33130,11 +36980,11 @@ class Arrays extends jni$_.JObject { final _$objects = objects?.reference ?? jni$_.jNullReference; final _$objects1 = objects1?.reference ?? jni$_.jNullReference; return _deepEquals( - _class.reference.pointer, - _id_deepEquals as jni$_.JMethodIDPtr, - _$objects.pointer, - _$objects1.pointer) - .boolean; + _class.reference.pointer, + _id_deepEquals as jni$_.JMethodIDPtr, + _$objects.pointer, + _$objects1.pointer, + ).boolean; } static final _id_toString$1 = _class.staticMethodId( @@ -33142,26 +36992,33 @@ class Arrays extends jni$_.JObject { r'([J)Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _toString$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.lang.String toString(long[] js)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? toString$1( - jni$_.JLongArray? js, - ) { + static jni$_.JString? toString$1(jni$_.JLongArray? js) { final _$js = js?.reference ?? jni$_.jNullReference; - return _toString$1(_class.reference.pointer, - _id_toString$1 as jni$_.JMethodIDPtr, _$js.pointer) - .object(const jni$_.JStringNullableType()); + return _toString$1( + _class.reference.pointer, + _id_toString$1 as jni$_.JMethodIDPtr, + _$js.pointer, + ).object(const jni$_.JStringNullableType()); } static final _id_toString$2 = _class.staticMethodId( @@ -33169,26 +37026,33 @@ class Arrays extends jni$_.JObject { r'([I)Ljava/lang/String;', ); - static final _toString$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _toString$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.lang.String toString(int[] is)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? toString$2( - jni$_.JIntArray? is$, - ) { + static jni$_.JString? toString$2(jni$_.JIntArray? is$) { final _$is$ = is$?.reference ?? jni$_.jNullReference; - return _toString$2(_class.reference.pointer, - _id_toString$2 as jni$_.JMethodIDPtr, _$is$.pointer) - .object(const jni$_.JStringNullableType()); + return _toString$2( + _class.reference.pointer, + _id_toString$2 as jni$_.JMethodIDPtr, + _$is$.pointer, + ).object(const jni$_.JStringNullableType()); } static final _id_toString$3 = _class.staticMethodId( @@ -33196,26 +37060,33 @@ class Arrays extends jni$_.JObject { r'([S)Ljava/lang/String;', ); - static final _toString$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _toString$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.lang.String toString(short[] ss)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? toString$3( - jni$_.JShortArray? ss, - ) { + static jni$_.JString? toString$3(jni$_.JShortArray? ss) { final _$ss = ss?.reference ?? jni$_.jNullReference; - return _toString$3(_class.reference.pointer, - _id_toString$3 as jni$_.JMethodIDPtr, _$ss.pointer) - .object(const jni$_.JStringNullableType()); + return _toString$3( + _class.reference.pointer, + _id_toString$3 as jni$_.JMethodIDPtr, + _$ss.pointer, + ).object(const jni$_.JStringNullableType()); } static final _id_toString$4 = _class.staticMethodId( @@ -33223,26 +37094,33 @@ class Arrays extends jni$_.JObject { r'([C)Ljava/lang/String;', ); - static final _toString$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _toString$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.lang.String toString(char[] cs)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? toString$4( - jni$_.JCharArray? cs, - ) { + static jni$_.JString? toString$4(jni$_.JCharArray? cs) { final _$cs = cs?.reference ?? jni$_.jNullReference; - return _toString$4(_class.reference.pointer, - _id_toString$4 as jni$_.JMethodIDPtr, _$cs.pointer) - .object(const jni$_.JStringNullableType()); + return _toString$4( + _class.reference.pointer, + _id_toString$4 as jni$_.JMethodIDPtr, + _$cs.pointer, + ).object(const jni$_.JStringNullableType()); } static final _id_toString$5 = _class.staticMethodId( @@ -33250,26 +37128,33 @@ class Arrays extends jni$_.JObject { r'([B)Ljava/lang/String;', ); - static final _toString$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _toString$5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.lang.String toString(byte[] bs)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? toString$5( - jni$_.JByteArray? bs, - ) { + static jni$_.JString? toString$5(jni$_.JByteArray? bs) { final _$bs = bs?.reference ?? jni$_.jNullReference; - return _toString$5(_class.reference.pointer, - _id_toString$5 as jni$_.JMethodIDPtr, _$bs.pointer) - .object(const jni$_.JStringNullableType()); + return _toString$5( + _class.reference.pointer, + _id_toString$5 as jni$_.JMethodIDPtr, + _$bs.pointer, + ).object(const jni$_.JStringNullableType()); } static final _id_toString$6 = _class.staticMethodId( @@ -33277,26 +37162,33 @@ class Arrays extends jni$_.JObject { r'([Z)Ljava/lang/String;', ); - static final _toString$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _toString$6 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.lang.String toString(boolean[] zs)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? toString$6( - jni$_.JBooleanArray? zs, - ) { + static jni$_.JString? toString$6(jni$_.JBooleanArray? zs) { final _$zs = zs?.reference ?? jni$_.jNullReference; - return _toString$6(_class.reference.pointer, - _id_toString$6 as jni$_.JMethodIDPtr, _$zs.pointer) - .object(const jni$_.JStringNullableType()); + return _toString$6( + _class.reference.pointer, + _id_toString$6 as jni$_.JMethodIDPtr, + _$zs.pointer, + ).object(const jni$_.JStringNullableType()); } static final _id_toString$7 = _class.staticMethodId( @@ -33304,26 +37196,33 @@ class Arrays extends jni$_.JObject { r'([F)Ljava/lang/String;', ); - static final _toString$7 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _toString$7 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.lang.String toString(float[] fs)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? toString$7( - jni$_.JFloatArray? fs, - ) { + static jni$_.JString? toString$7(jni$_.JFloatArray? fs) { final _$fs = fs?.reference ?? jni$_.jNullReference; - return _toString$7(_class.reference.pointer, - _id_toString$7 as jni$_.JMethodIDPtr, _$fs.pointer) - .object(const jni$_.JStringNullableType()); + return _toString$7( + _class.reference.pointer, + _id_toString$7 as jni$_.JMethodIDPtr, + _$fs.pointer, + ).object(const jni$_.JStringNullableType()); } static final _id_toString$8 = _class.staticMethodId( @@ -33331,26 +37230,33 @@ class Arrays extends jni$_.JObject { r'([D)Ljava/lang/String;', ); - static final _toString$8 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _toString$8 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.lang.String toString(double[] ds)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? toString$8( - jni$_.JDoubleArray? ds, - ) { + static jni$_.JString? toString$8(jni$_.JDoubleArray? ds) { final _$ds = ds?.reference ?? jni$_.jNullReference; - return _toString$8(_class.reference.pointer, - _id_toString$8 as jni$_.JMethodIDPtr, _$ds.pointer) - .object(const jni$_.JStringNullableType()); + return _toString$8( + _class.reference.pointer, + _id_toString$8 as jni$_.JMethodIDPtr, + _$ds.pointer, + ).object(const jni$_.JStringNullableType()); } static final _id_toString$9 = _class.staticMethodId( @@ -33358,26 +37264,33 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;)Ljava/lang/String;', ); - static final _toString$9 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _toString$9 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.lang.String toString(java.lang.Object[] objects)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? toString$9( - jni$_.JArray? objects, - ) { + static jni$_.JString? toString$9(jni$_.JArray? objects) { final _$objects = objects?.reference ?? jni$_.jNullReference; - return _toString$9(_class.reference.pointer, - _id_toString$9 as jni$_.JMethodIDPtr, _$objects.pointer) - .object(const jni$_.JStringNullableType()); + return _toString$9( + _class.reference.pointer, + _id_toString$9 as jni$_.JMethodIDPtr, + _$objects.pointer, + ).object(const jni$_.JStringNullableType()); } static final _id_deepToString = _class.staticMethodId( @@ -33385,26 +37298,33 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;)Ljava/lang/String;', ); - static final _deepToString = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _deepToString = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.lang.String deepToString(java.lang.Object[] objects)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? deepToString( - jni$_.JArray? objects, - ) { + static jni$_.JString? deepToString(jni$_.JArray? objects) { final _$objects = objects?.reference ?? jni$_.jNullReference; - return _deepToString(_class.reference.pointer, - _id_deepToString as jni$_.JMethodIDPtr, _$objects.pointer) - .object(const jni$_.JStringNullableType()); + return _deepToString( + _class.reference.pointer, + _id_deepToString as jni$_.JMethodIDPtr, + _$objects.pointer, + ).object(const jni$_.JStringNullableType()); } static final _id_setAll = _class.staticMethodId( @@ -33412,22 +37332,26 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;Ljava/util/function/IntFunction;)V', ); - static final _setAll = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setAll = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void setAll(java.lang.Object[] objects, java.util.function.IntFunction intFunction)` static void setAll<$T extends jni$_.JObject?>( @@ -33437,9 +37361,12 @@ class Arrays extends jni$_.JObject { }) { final _$objects = objects?.reference ?? jni$_.jNullReference; final _$intFunction = intFunction?.reference ?? jni$_.jNullReference; - _setAll(_class.reference.pointer, _id_setAll as jni$_.JMethodIDPtr, - _$objects.pointer, _$intFunction.pointer) - .check(); + _setAll( + _class.reference.pointer, + _id_setAll as jni$_.JMethodIDPtr, + _$objects.pointer, + _$intFunction.pointer, + ).check(); } static final _id_parallelSetAll = _class.staticMethodId( @@ -33447,22 +37374,26 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;Ljava/util/function/IntFunction;)V', ); - static final _parallelSetAll = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _parallelSetAll = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void parallelSetAll(java.lang.Object[] objects, java.util.function.IntFunction intFunction)` static void parallelSetAll<$T extends jni$_.JObject?>( @@ -33473,11 +37404,11 @@ class Arrays extends jni$_.JObject { final _$objects = objects?.reference ?? jni$_.jNullReference; final _$intFunction = intFunction?.reference ?? jni$_.jNullReference; _parallelSetAll( - _class.reference.pointer, - _id_parallelSetAll as jni$_.JMethodIDPtr, - _$objects.pointer, - _$intFunction.pointer) - .check(); + _class.reference.pointer, + _id_parallelSetAll as jni$_.JMethodIDPtr, + _$objects.pointer, + _$intFunction.pointer, + ).check(); } static final _id_setAll$1 = _class.staticMethodId( @@ -33485,34 +37416,38 @@ class Arrays extends jni$_.JObject { r'([ILjava/util/function/IntUnaryOperator;)V', ); - static final _setAll$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setAll$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void setAll(int[] is, java.util.function.IntUnaryOperator intUnaryOperator)` - static void setAll$1( - jni$_.JIntArray? is$, - jni$_.JObject? intUnaryOperator, - ) { + static void setAll$1(jni$_.JIntArray? is$, jni$_.JObject? intUnaryOperator) { final _$is$ = is$?.reference ?? jni$_.jNullReference; final _$intUnaryOperator = intUnaryOperator?.reference ?? jni$_.jNullReference; - _setAll$1(_class.reference.pointer, _id_setAll$1 as jni$_.JMethodIDPtr, - _$is$.pointer, _$intUnaryOperator.pointer) - .check(); + _setAll$1( + _class.reference.pointer, + _id_setAll$1 as jni$_.JMethodIDPtr, + _$is$.pointer, + _$intUnaryOperator.pointer, + ).check(); } static final _id_parallelSetAll$1 = _class.staticMethodId( @@ -33520,22 +37455,26 @@ class Arrays extends jni$_.JObject { r'([ILjava/util/function/IntUnaryOperator;)V', ); - static final _parallelSetAll$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _parallelSetAll$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void parallelSetAll(int[] is, java.util.function.IntUnaryOperator intUnaryOperator)` static void parallelSetAll$1( @@ -33546,11 +37485,11 @@ class Arrays extends jni$_.JObject { final _$intUnaryOperator = intUnaryOperator?.reference ?? jni$_.jNullReference; _parallelSetAll$1( - _class.reference.pointer, - _id_parallelSetAll$1 as jni$_.JMethodIDPtr, - _$is$.pointer, - _$intUnaryOperator.pointer) - .check(); + _class.reference.pointer, + _id_parallelSetAll$1 as jni$_.JMethodIDPtr, + _$is$.pointer, + _$intUnaryOperator.pointer, + ).check(); } static final _id_setAll$2 = _class.staticMethodId( @@ -33558,34 +37497,38 @@ class Arrays extends jni$_.JObject { r'([JLjava/util/function/IntToLongFunction;)V', ); - static final _setAll$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setAll$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void setAll(long[] js, java.util.function.IntToLongFunction intToLongFunction)` - static void setAll$2( - jni$_.JLongArray? js, - jni$_.JObject? intToLongFunction, - ) { + static void setAll$2(jni$_.JLongArray? js, jni$_.JObject? intToLongFunction) { final _$js = js?.reference ?? jni$_.jNullReference; final _$intToLongFunction = intToLongFunction?.reference ?? jni$_.jNullReference; - _setAll$2(_class.reference.pointer, _id_setAll$2 as jni$_.JMethodIDPtr, - _$js.pointer, _$intToLongFunction.pointer) - .check(); + _setAll$2( + _class.reference.pointer, + _id_setAll$2 as jni$_.JMethodIDPtr, + _$js.pointer, + _$intToLongFunction.pointer, + ).check(); } static final _id_parallelSetAll$2 = _class.staticMethodId( @@ -33593,22 +37536,26 @@ class Arrays extends jni$_.JObject { r'([JLjava/util/function/IntToLongFunction;)V', ); - static final _parallelSetAll$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _parallelSetAll$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void parallelSetAll(long[] js, java.util.function.IntToLongFunction intToLongFunction)` static void parallelSetAll$2( @@ -33619,11 +37566,11 @@ class Arrays extends jni$_.JObject { final _$intToLongFunction = intToLongFunction?.reference ?? jni$_.jNullReference; _parallelSetAll$2( - _class.reference.pointer, - _id_parallelSetAll$2 as jni$_.JMethodIDPtr, - _$js.pointer, - _$intToLongFunction.pointer) - .check(); + _class.reference.pointer, + _id_parallelSetAll$2 as jni$_.JMethodIDPtr, + _$js.pointer, + _$intToLongFunction.pointer, + ).check(); } static final _id_setAll$3 = _class.staticMethodId( @@ -33631,22 +37578,26 @@ class Arrays extends jni$_.JObject { r'([DLjava/util/function/IntToDoubleFunction;)V', ); - static final _setAll$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _setAll$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void setAll(double[] ds, java.util.function.IntToDoubleFunction intToDoubleFunction)` static void setAll$3( @@ -33656,9 +37607,12 @@ class Arrays extends jni$_.JObject { final _$ds = ds?.reference ?? jni$_.jNullReference; final _$intToDoubleFunction = intToDoubleFunction?.reference ?? jni$_.jNullReference; - _setAll$3(_class.reference.pointer, _id_setAll$3 as jni$_.JMethodIDPtr, - _$ds.pointer, _$intToDoubleFunction.pointer) - .check(); + _setAll$3( + _class.reference.pointer, + _id_setAll$3 as jni$_.JMethodIDPtr, + _$ds.pointer, + _$intToDoubleFunction.pointer, + ).check(); } static final _id_parallelSetAll$3 = _class.staticMethodId( @@ -33666,22 +37620,26 @@ class Arrays extends jni$_.JObject { r'([DLjava/util/function/IntToDoubleFunction;)V', ); - static final _parallelSetAll$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _parallelSetAll$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public void parallelSetAll(double[] ds, java.util.function.IntToDoubleFunction intToDoubleFunction)` static void parallelSetAll$3( @@ -33692,11 +37650,11 @@ class Arrays extends jni$_.JObject { final _$intToDoubleFunction = intToDoubleFunction?.reference ?? jni$_.jNullReference; _parallelSetAll$3( - _class.reference.pointer, - _id_parallelSetAll$3 as jni$_.JMethodIDPtr, - _$ds.pointer, - _$intToDoubleFunction.pointer) - .check(); + _class.reference.pointer, + _id_parallelSetAll$3 as jni$_.JMethodIDPtr, + _$ds.pointer, + _$intToDoubleFunction.pointer, + ).check(); } static final _id_spliterator = _class.staticMethodId( @@ -33704,16 +37662,23 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;)Ljava/util/Spliterator;', ); - static final _spliterator = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _spliterator = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.util.Spliterator spliterator(java.lang.Object[] objects)` /// The returned object must be released after use, by calling the [release] method. @@ -33722,9 +37687,11 @@ class Arrays extends jni$_.JObject { required jni$_.JObjType<$T> T, }) { final _$objects = objects?.reference ?? jni$_.jNullReference; - return _spliterator(_class.reference.pointer, - _id_spliterator as jni$_.JMethodIDPtr, _$objects.pointer) - .object(const jni$_.JObjectNullableType()); + return _spliterator( + _class.reference.pointer, + _id_spliterator as jni$_.JMethodIDPtr, + _$objects.pointer, + ).object(const jni$_.JObjectNullableType()); } static final _id_spliterator$1 = _class.staticMethodId( @@ -33732,20 +37699,27 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;II)Ljava/util/Spliterator;', ); - static final _spliterator$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _spliterator$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public java.util.Spliterator spliterator(java.lang.Object[] objects, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. @@ -33756,9 +37730,13 @@ class Arrays extends jni$_.JObject { required jni$_.JObjType<$T> T, }) { final _$objects = objects?.reference ?? jni$_.jNullReference; - return _spliterator$1(_class.reference.pointer, - _id_spliterator$1 as jni$_.JMethodIDPtr, _$objects.pointer, i, i1) - .object(const jni$_.JObjectNullableType()); + return _spliterator$1( + _class.reference.pointer, + _id_spliterator$1 as jni$_.JMethodIDPtr, + _$objects.pointer, + i, + i1, + ).object(const jni$_.JObjectNullableType()); } static final _id_spliterator$2 = _class.staticMethodId( @@ -33766,26 +37744,33 @@ class Arrays extends jni$_.JObject { r'([I)Ljava/util/Spliterator$OfInt;', ); - static final _spliterator$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _spliterator$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.util.Spliterator$OfInt spliterator(int[] is)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? spliterator$2( - jni$_.JIntArray? is$, - ) { + static jni$_.JObject? spliterator$2(jni$_.JIntArray? is$) { final _$is$ = is$?.reference ?? jni$_.jNullReference; - return _spliterator$2(_class.reference.pointer, - _id_spliterator$2 as jni$_.JMethodIDPtr, _$is$.pointer) - .object(const jni$_.JObjectNullableType()); + return _spliterator$2( + _class.reference.pointer, + _id_spliterator$2 as jni$_.JMethodIDPtr, + _$is$.pointer, + ).object(const jni$_.JObjectNullableType()); } static final _id_spliterator$3 = _class.staticMethodId( @@ -33793,32 +37778,39 @@ class Arrays extends jni$_.JObject { r'([III)Ljava/util/Spliterator$OfInt;', ); - static final _spliterator$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _spliterator$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public java.util.Spliterator$OfInt spliterator(int[] is, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? spliterator$3( - jni$_.JIntArray? is$, - int i, - int i1, - ) { + static jni$_.JObject? spliterator$3(jni$_.JIntArray? is$, int i, int i1) { final _$is$ = is$?.reference ?? jni$_.jNullReference; - return _spliterator$3(_class.reference.pointer, - _id_spliterator$3 as jni$_.JMethodIDPtr, _$is$.pointer, i, i1) - .object(const jni$_.JObjectNullableType()); + return _spliterator$3( + _class.reference.pointer, + _id_spliterator$3 as jni$_.JMethodIDPtr, + _$is$.pointer, + i, + i1, + ).object(const jni$_.JObjectNullableType()); } static final _id_spliterator$4 = _class.staticMethodId( @@ -33826,26 +37818,33 @@ class Arrays extends jni$_.JObject { r'([J)Ljava/util/Spliterator$OfLong;', ); - static final _spliterator$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _spliterator$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.util.Spliterator$OfLong spliterator(long[] js)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? spliterator$4( - jni$_.JLongArray? js, - ) { + static jni$_.JObject? spliterator$4(jni$_.JLongArray? js) { final _$js = js?.reference ?? jni$_.jNullReference; - return _spliterator$4(_class.reference.pointer, - _id_spliterator$4 as jni$_.JMethodIDPtr, _$js.pointer) - .object(const jni$_.JObjectNullableType()); + return _spliterator$4( + _class.reference.pointer, + _id_spliterator$4 as jni$_.JMethodIDPtr, + _$js.pointer, + ).object(const jni$_.JObjectNullableType()); } static final _id_spliterator$5 = _class.staticMethodId( @@ -33853,32 +37852,39 @@ class Arrays extends jni$_.JObject { r'([JII)Ljava/util/Spliterator$OfLong;', ); - static final _spliterator$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _spliterator$5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public java.util.Spliterator$OfLong spliterator(long[] js, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? spliterator$5( - jni$_.JLongArray? js, - int i, - int i1, - ) { + static jni$_.JObject? spliterator$5(jni$_.JLongArray? js, int i, int i1) { final _$js = js?.reference ?? jni$_.jNullReference; - return _spliterator$5(_class.reference.pointer, - _id_spliterator$5 as jni$_.JMethodIDPtr, _$js.pointer, i, i1) - .object(const jni$_.JObjectNullableType()); + return _spliterator$5( + _class.reference.pointer, + _id_spliterator$5 as jni$_.JMethodIDPtr, + _$js.pointer, + i, + i1, + ).object(const jni$_.JObjectNullableType()); } static final _id_spliterator$6 = _class.staticMethodId( @@ -33886,26 +37892,33 @@ class Arrays extends jni$_.JObject { r'([D)Ljava/util/Spliterator$OfDouble;', ); - static final _spliterator$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _spliterator$6 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.util.Spliterator$OfDouble spliterator(double[] ds)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? spliterator$6( - jni$_.JDoubleArray? ds, - ) { + static jni$_.JObject? spliterator$6(jni$_.JDoubleArray? ds) { final _$ds = ds?.reference ?? jni$_.jNullReference; - return _spliterator$6(_class.reference.pointer, - _id_spliterator$6 as jni$_.JMethodIDPtr, _$ds.pointer) - .object(const jni$_.JObjectNullableType()); + return _spliterator$6( + _class.reference.pointer, + _id_spliterator$6 as jni$_.JMethodIDPtr, + _$ds.pointer, + ).object(const jni$_.JObjectNullableType()); } static final _id_spliterator$7 = _class.staticMethodId( @@ -33913,32 +37926,39 @@ class Arrays extends jni$_.JObject { r'([DII)Ljava/util/Spliterator$OfDouble;', ); - static final _spliterator$7 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _spliterator$7 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public java.util.Spliterator$OfDouble spliterator(double[] ds, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? spliterator$7( - jni$_.JDoubleArray? ds, - int i, - int i1, - ) { + static jni$_.JObject? spliterator$7(jni$_.JDoubleArray? ds, int i, int i1) { final _$ds = ds?.reference ?? jni$_.jNullReference; - return _spliterator$7(_class.reference.pointer, - _id_spliterator$7 as jni$_.JMethodIDPtr, _$ds.pointer, i, i1) - .object(const jni$_.JObjectNullableType()); + return _spliterator$7( + _class.reference.pointer, + _id_spliterator$7 as jni$_.JMethodIDPtr, + _$ds.pointer, + i, + i1, + ).object(const jni$_.JObjectNullableType()); } static final _id_stream = _class.staticMethodId( @@ -33946,16 +37966,23 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;)Ljava/util/stream/Stream;', ); - static final _stream = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _stream = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.util.stream.Stream stream(java.lang.Object[] objects)` /// The returned object must be released after use, by calling the [release] method. @@ -33964,9 +37991,11 @@ class Arrays extends jni$_.JObject { required jni$_.JObjType<$T> T, }) { final _$objects = objects?.reference ?? jni$_.jNullReference; - return _stream(_class.reference.pointer, _id_stream as jni$_.JMethodIDPtr, - _$objects.pointer) - .object(const jni$_.JObjectNullableType()); + return _stream( + _class.reference.pointer, + _id_stream as jni$_.JMethodIDPtr, + _$objects.pointer, + ).object(const jni$_.JObjectNullableType()); } static final _id_stream$1 = _class.staticMethodId( @@ -33974,20 +38003,27 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;II)Ljava/util/stream/Stream;', ); - static final _stream$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _stream$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public java.util.stream.Stream stream(java.lang.Object[] objects, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. @@ -33998,9 +38034,13 @@ class Arrays extends jni$_.JObject { required jni$_.JObjType<$T> T, }) { final _$objects = objects?.reference ?? jni$_.jNullReference; - return _stream$1(_class.reference.pointer, - _id_stream$1 as jni$_.JMethodIDPtr, _$objects.pointer, i, i1) - .object(const jni$_.JObjectNullableType()); + return _stream$1( + _class.reference.pointer, + _id_stream$1 as jni$_.JMethodIDPtr, + _$objects.pointer, + i, + i1, + ).object(const jni$_.JObjectNullableType()); } static final _id_stream$2 = _class.staticMethodId( @@ -34008,26 +38048,33 @@ class Arrays extends jni$_.JObject { r'([I)Ljava/util/stream/IntStream;', ); - static final _stream$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _stream$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.util.stream.IntStream stream(int[] is)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? stream$2( - jni$_.JIntArray? is$, - ) { + static jni$_.JObject? stream$2(jni$_.JIntArray? is$) { final _$is$ = is$?.reference ?? jni$_.jNullReference; - return _stream$2(_class.reference.pointer, - _id_stream$2 as jni$_.JMethodIDPtr, _$is$.pointer) - .object(const jni$_.JObjectNullableType()); + return _stream$2( + _class.reference.pointer, + _id_stream$2 as jni$_.JMethodIDPtr, + _$is$.pointer, + ).object(const jni$_.JObjectNullableType()); } static final _id_stream$3 = _class.staticMethodId( @@ -34035,32 +38082,39 @@ class Arrays extends jni$_.JObject { r'([III)Ljava/util/stream/IntStream;', ); - static final _stream$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _stream$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public java.util.stream.IntStream stream(int[] is, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? stream$3( - jni$_.JIntArray? is$, - int i, - int i1, - ) { + static jni$_.JObject? stream$3(jni$_.JIntArray? is$, int i, int i1) { final _$is$ = is$?.reference ?? jni$_.jNullReference; - return _stream$3(_class.reference.pointer, - _id_stream$3 as jni$_.JMethodIDPtr, _$is$.pointer, i, i1) - .object(const jni$_.JObjectNullableType()); + return _stream$3( + _class.reference.pointer, + _id_stream$3 as jni$_.JMethodIDPtr, + _$is$.pointer, + i, + i1, + ).object(const jni$_.JObjectNullableType()); } static final _id_stream$4 = _class.staticMethodId( @@ -34068,26 +38122,33 @@ class Arrays extends jni$_.JObject { r'([J)Ljava/util/stream/LongStream;', ); - static final _stream$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _stream$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.util.stream.LongStream stream(long[] js)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? stream$4( - jni$_.JLongArray? js, - ) { + static jni$_.JObject? stream$4(jni$_.JLongArray? js) { final _$js = js?.reference ?? jni$_.jNullReference; - return _stream$4(_class.reference.pointer, - _id_stream$4 as jni$_.JMethodIDPtr, _$js.pointer) - .object(const jni$_.JObjectNullableType()); + return _stream$4( + _class.reference.pointer, + _id_stream$4 as jni$_.JMethodIDPtr, + _$js.pointer, + ).object(const jni$_.JObjectNullableType()); } static final _id_stream$5 = _class.staticMethodId( @@ -34095,32 +38156,39 @@ class Arrays extends jni$_.JObject { r'([JII)Ljava/util/stream/LongStream;', ); - static final _stream$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _stream$5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public java.util.stream.LongStream stream(long[] js, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? stream$5( - jni$_.JLongArray? js, - int i, - int i1, - ) { + static jni$_.JObject? stream$5(jni$_.JLongArray? js, int i, int i1) { final _$js = js?.reference ?? jni$_.jNullReference; - return _stream$5(_class.reference.pointer, - _id_stream$5 as jni$_.JMethodIDPtr, _$js.pointer, i, i1) - .object(const jni$_.JObjectNullableType()); + return _stream$5( + _class.reference.pointer, + _id_stream$5 as jni$_.JMethodIDPtr, + _$js.pointer, + i, + i1, + ).object(const jni$_.JObjectNullableType()); } static final _id_stream$6 = _class.staticMethodId( @@ -34128,26 +38196,33 @@ class Arrays extends jni$_.JObject { r'([D)Ljava/util/stream/DoubleStream;', ); - static final _stream$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _stream$6 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `static public java.util.stream.DoubleStream stream(double[] ds)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? stream$6( - jni$_.JDoubleArray? ds, - ) { + static jni$_.JObject? stream$6(jni$_.JDoubleArray? ds) { final _$ds = ds?.reference ?? jni$_.jNullReference; - return _stream$6(_class.reference.pointer, - _id_stream$6 as jni$_.JMethodIDPtr, _$ds.pointer) - .object(const jni$_.JObjectNullableType()); + return _stream$6( + _class.reference.pointer, + _id_stream$6 as jni$_.JMethodIDPtr, + _$ds.pointer, + ).object(const jni$_.JObjectNullableType()); } static final _id_stream$7 = _class.staticMethodId( @@ -34155,66 +38230,74 @@ class Arrays extends jni$_.JObject { r'([DII)Ljava/util/stream/DoubleStream;', ); - static final _stream$7 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _stream$7 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer, int, int)>(); + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Int32, jni$_.Int32) + >, + ) + > + >('globalEnv_CallStaticObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + int, + int, + ) + >(); /// from: `static public java.util.stream.DoubleStream stream(double[] ds, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. - static jni$_.JObject? stream$7( - jni$_.JDoubleArray? ds, - int i, - int i1, - ) { + static jni$_.JObject? stream$7(jni$_.JDoubleArray? ds, int i, int i1) { final _$ds = ds?.reference ?? jni$_.jNullReference; - return _stream$7(_class.reference.pointer, - _id_stream$7 as jni$_.JMethodIDPtr, _$ds.pointer, i, i1) - .object(const jni$_.JObjectNullableType()); + return _stream$7( + _class.reference.pointer, + _id_stream$7 as jni$_.JMethodIDPtr, + _$ds.pointer, + i, + i1, + ).object(const jni$_.JObjectNullableType()); } - static final _id_compare = _class.staticMethodId( - r'compare', - r'([Z[Z)I', - ); + static final _id_compare = _class.staticMethodId(r'compare', r'([Z[Z)I'); - static final _compare = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compare = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int compare(boolean[] zs, boolean[] zs1)` - static int compare( - jni$_.JBooleanArray? zs, - jni$_.JBooleanArray? zs1, - ) { + static int compare(jni$_.JBooleanArray? zs, jni$_.JBooleanArray? zs1) { final _$zs = zs?.reference ?? jni$_.jNullReference; final _$zs1 = zs1?.reference ?? jni$_.jNullReference; - return _compare(_class.reference.pointer, _id_compare as jni$_.JMethodIDPtr, - _$zs.pointer, _$zs1.pointer) - .integer; + return _compare( + _class.reference.pointer, + _id_compare as jni$_.JMethodIDPtr, + _$zs.pointer, + _$zs1.pointer, + ).integer; } static final _id_compare$1 = _class.staticMethodId( @@ -34222,22 +38305,27 @@ class Arrays extends jni$_.JObject { r'([ZII[ZII)I', ); - static final _compare$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compare$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -34245,7 +38333,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public int compare(boolean[] zs, int i, int i1, boolean[] zs1, int i2, int i3)` static int compare$1( @@ -34259,49 +38349,50 @@ class Arrays extends jni$_.JObject { final _$zs = zs?.reference ?? jni$_.jNullReference; final _$zs1 = zs1?.reference ?? jni$_.jNullReference; return _compare$1( - _class.reference.pointer, - _id_compare$1 as jni$_.JMethodIDPtr, - _$zs.pointer, - i, - i1, - _$zs1.pointer, - i2, - i3) - .integer; - } - - static final _id_compare$2 = _class.staticMethodId( - r'compare', - r'([B[B)I', - ); + _class.reference.pointer, + _id_compare$1 as jni$_.JMethodIDPtr, + _$zs.pointer, + i, + i1, + _$zs1.pointer, + i2, + i3, + ).integer; + } - static final _compare$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _id_compare$2 = _class.staticMethodId(r'compare', r'([B[B)I'); + + static final _compare$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int compare(byte[] bs, byte[] bs1)` - static int compare$2( - jni$_.JByteArray? bs, - jni$_.JByteArray? bs1, - ) { + static int compare$2(jni$_.JByteArray? bs, jni$_.JByteArray? bs1) { final _$bs = bs?.reference ?? jni$_.jNullReference; final _$bs1 = bs1?.reference ?? jni$_.jNullReference; - return _compare$2(_class.reference.pointer, - _id_compare$2 as jni$_.JMethodIDPtr, _$bs.pointer, _$bs1.pointer) - .integer; + return _compare$2( + _class.reference.pointer, + _id_compare$2 as jni$_.JMethodIDPtr, + _$bs.pointer, + _$bs1.pointer, + ).integer; } static final _id_compare$3 = _class.staticMethodId( @@ -34309,22 +38400,27 @@ class Arrays extends jni$_.JObject { r'([BII[BII)I', ); - static final _compare$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compare$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -34332,7 +38428,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public int compare(byte[] bs, int i, int i1, byte[] bs1, int i2, int i3)` static int compare$3( @@ -34346,15 +38444,15 @@ class Arrays extends jni$_.JObject { final _$bs = bs?.reference ?? jni$_.jNullReference; final _$bs1 = bs1?.reference ?? jni$_.jNullReference; return _compare$3( - _class.reference.pointer, - _id_compare$3 as jni$_.JMethodIDPtr, - _$bs.pointer, - i, - i1, - _$bs1.pointer, - i2, - i3) - .integer; + _class.reference.pointer, + _id_compare$3 as jni$_.JMethodIDPtr, + _$bs.pointer, + i, + i1, + _$bs1.pointer, + i2, + i3, + ).integer; } static final _id_compareUnsigned = _class.staticMethodId( @@ -34362,36 +38460,37 @@ class Arrays extends jni$_.JObject { r'([B[B)I', ); - static final _compareUnsigned = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compareUnsigned = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int compareUnsigned(byte[] bs, byte[] bs1)` - static int compareUnsigned( - jni$_.JByteArray? bs, - jni$_.JByteArray? bs1, - ) { + static int compareUnsigned(jni$_.JByteArray? bs, jni$_.JByteArray? bs1) { final _$bs = bs?.reference ?? jni$_.jNullReference; final _$bs1 = bs1?.reference ?? jni$_.jNullReference; return _compareUnsigned( - _class.reference.pointer, - _id_compareUnsigned as jni$_.JMethodIDPtr, - _$bs.pointer, - _$bs1.pointer) - .integer; + _class.reference.pointer, + _id_compareUnsigned as jni$_.JMethodIDPtr, + _$bs.pointer, + _$bs1.pointer, + ).integer; } static final _id_compareUnsigned$1 = _class.staticMethodId( @@ -34399,22 +38498,27 @@ class Arrays extends jni$_.JObject { r'([BII[BII)I', ); - static final _compareUnsigned$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compareUnsigned$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -34422,7 +38526,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public int compareUnsigned(byte[] bs, int i, int i1, byte[] bs1, int i2, int i3)` static int compareUnsigned$1( @@ -34436,49 +38542,50 @@ class Arrays extends jni$_.JObject { final _$bs = bs?.reference ?? jni$_.jNullReference; final _$bs1 = bs1?.reference ?? jni$_.jNullReference; return _compareUnsigned$1( - _class.reference.pointer, - _id_compareUnsigned$1 as jni$_.JMethodIDPtr, - _$bs.pointer, - i, - i1, - _$bs1.pointer, - i2, - i3) - .integer; - } - - static final _id_compare$4 = _class.staticMethodId( - r'compare', - r'([S[S)I', - ); + _class.reference.pointer, + _id_compareUnsigned$1 as jni$_.JMethodIDPtr, + _$bs.pointer, + i, + i1, + _$bs1.pointer, + i2, + i3, + ).integer; + } + + static final _id_compare$4 = _class.staticMethodId(r'compare', r'([S[S)I'); - static final _compare$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compare$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int compare(short[] ss, short[] ss1)` - static int compare$4( - jni$_.JShortArray? ss, - jni$_.JShortArray? ss1, - ) { + static int compare$4(jni$_.JShortArray? ss, jni$_.JShortArray? ss1) { final _$ss = ss?.reference ?? jni$_.jNullReference; final _$ss1 = ss1?.reference ?? jni$_.jNullReference; - return _compare$4(_class.reference.pointer, - _id_compare$4 as jni$_.JMethodIDPtr, _$ss.pointer, _$ss1.pointer) - .integer; + return _compare$4( + _class.reference.pointer, + _id_compare$4 as jni$_.JMethodIDPtr, + _$ss.pointer, + _$ss1.pointer, + ).integer; } static final _id_compare$5 = _class.staticMethodId( @@ -34486,22 +38593,27 @@ class Arrays extends jni$_.JObject { r'([SII[SII)I', ); - static final _compare$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compare$5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -34509,7 +38621,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public int compare(short[] ss, int i, int i1, short[] ss1, int i2, int i3)` static int compare$5( @@ -34523,15 +38637,15 @@ class Arrays extends jni$_.JObject { final _$ss = ss?.reference ?? jni$_.jNullReference; final _$ss1 = ss1?.reference ?? jni$_.jNullReference; return _compare$5( - _class.reference.pointer, - _id_compare$5 as jni$_.JMethodIDPtr, - _$ss.pointer, - i, - i1, - _$ss1.pointer, - i2, - i3) - .integer; + _class.reference.pointer, + _id_compare$5 as jni$_.JMethodIDPtr, + _$ss.pointer, + i, + i1, + _$ss1.pointer, + i2, + i3, + ).integer; } static final _id_compareUnsigned$2 = _class.staticMethodId( @@ -34539,36 +38653,37 @@ class Arrays extends jni$_.JObject { r'([S[S)I', ); - static final _compareUnsigned$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compareUnsigned$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int compareUnsigned(short[] ss, short[] ss1)` - static int compareUnsigned$2( - jni$_.JShortArray? ss, - jni$_.JShortArray? ss1, - ) { + static int compareUnsigned$2(jni$_.JShortArray? ss, jni$_.JShortArray? ss1) { final _$ss = ss?.reference ?? jni$_.jNullReference; final _$ss1 = ss1?.reference ?? jni$_.jNullReference; return _compareUnsigned$2( - _class.reference.pointer, - _id_compareUnsigned$2 as jni$_.JMethodIDPtr, - _$ss.pointer, - _$ss1.pointer) - .integer; + _class.reference.pointer, + _id_compareUnsigned$2 as jni$_.JMethodIDPtr, + _$ss.pointer, + _$ss1.pointer, + ).integer; } static final _id_compareUnsigned$3 = _class.staticMethodId( @@ -34576,22 +38691,27 @@ class Arrays extends jni$_.JObject { r'([SII[SII)I', ); - static final _compareUnsigned$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compareUnsigned$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -34599,7 +38719,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public int compareUnsigned(short[] ss, int i, int i1, short[] ss1, int i2, int i3)` static int compareUnsigned$3( @@ -34613,49 +38735,50 @@ class Arrays extends jni$_.JObject { final _$ss = ss?.reference ?? jni$_.jNullReference; final _$ss1 = ss1?.reference ?? jni$_.jNullReference; return _compareUnsigned$3( - _class.reference.pointer, - _id_compareUnsigned$3 as jni$_.JMethodIDPtr, - _$ss.pointer, - i, - i1, - _$ss1.pointer, - i2, - i3) - .integer; - } - - static final _id_compare$6 = _class.staticMethodId( - r'compare', - r'([C[C)I', - ); + _class.reference.pointer, + _id_compareUnsigned$3 as jni$_.JMethodIDPtr, + _$ss.pointer, + i, + i1, + _$ss1.pointer, + i2, + i3, + ).integer; + } + + static final _id_compare$6 = _class.staticMethodId(r'compare', r'([C[C)I'); - static final _compare$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compare$6 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int compare(char[] cs, char[] cs1)` - static int compare$6( - jni$_.JCharArray? cs, - jni$_.JCharArray? cs1, - ) { + static int compare$6(jni$_.JCharArray? cs, jni$_.JCharArray? cs1) { final _$cs = cs?.reference ?? jni$_.jNullReference; final _$cs1 = cs1?.reference ?? jni$_.jNullReference; - return _compare$6(_class.reference.pointer, - _id_compare$6 as jni$_.JMethodIDPtr, _$cs.pointer, _$cs1.pointer) - .integer; + return _compare$6( + _class.reference.pointer, + _id_compare$6 as jni$_.JMethodIDPtr, + _$cs.pointer, + _$cs1.pointer, + ).integer; } static final _id_compare$7 = _class.staticMethodId( @@ -34663,22 +38786,27 @@ class Arrays extends jni$_.JObject { r'([CII[CII)I', ); - static final _compare$7 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compare$7 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -34686,7 +38814,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public int compare(char[] cs, int i, int i1, char[] cs1, int i2, int i3)` static int compare$7( @@ -34700,49 +38830,50 @@ class Arrays extends jni$_.JObject { final _$cs = cs?.reference ?? jni$_.jNullReference; final _$cs1 = cs1?.reference ?? jni$_.jNullReference; return _compare$7( - _class.reference.pointer, - _id_compare$7 as jni$_.JMethodIDPtr, - _$cs.pointer, - i, - i1, - _$cs1.pointer, - i2, - i3) - .integer; - } - - static final _id_compare$8 = _class.staticMethodId( - r'compare', - r'([I[I)I', - ); + _class.reference.pointer, + _id_compare$7 as jni$_.JMethodIDPtr, + _$cs.pointer, + i, + i1, + _$cs1.pointer, + i2, + i3, + ).integer; + } + + static final _id_compare$8 = _class.staticMethodId(r'compare', r'([I[I)I'); - static final _compare$8 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compare$8 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int compare(int[] is, int[] is1)` - static int compare$8( - jni$_.JIntArray? is$, - jni$_.JIntArray? is1, - ) { + static int compare$8(jni$_.JIntArray? is$, jni$_.JIntArray? is1) { final _$is$ = is$?.reference ?? jni$_.jNullReference; final _$is1 = is1?.reference ?? jni$_.jNullReference; - return _compare$8(_class.reference.pointer, - _id_compare$8 as jni$_.JMethodIDPtr, _$is$.pointer, _$is1.pointer) - .integer; + return _compare$8( + _class.reference.pointer, + _id_compare$8 as jni$_.JMethodIDPtr, + _$is$.pointer, + _$is1.pointer, + ).integer; } static final _id_compare$9 = _class.staticMethodId( @@ -34750,22 +38881,27 @@ class Arrays extends jni$_.JObject { r'([III[III)I', ); - static final _compare$9 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compare$9 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -34773,7 +38909,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public int compare(int[] is, int i, int i1, int[] is1, int i2, int i3)` static int compare$9( @@ -34787,15 +38925,15 @@ class Arrays extends jni$_.JObject { final _$is$ = is$?.reference ?? jni$_.jNullReference; final _$is1 = is1?.reference ?? jni$_.jNullReference; return _compare$9( - _class.reference.pointer, - _id_compare$9 as jni$_.JMethodIDPtr, - _$is$.pointer, - i, - i1, - _$is1.pointer, - i2, - i3) - .integer; + _class.reference.pointer, + _id_compare$9 as jni$_.JMethodIDPtr, + _$is$.pointer, + i, + i1, + _$is1.pointer, + i2, + i3, + ).integer; } static final _id_compareUnsigned$4 = _class.staticMethodId( @@ -34803,36 +38941,37 @@ class Arrays extends jni$_.JObject { r'([I[I)I', ); - static final _compareUnsigned$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compareUnsigned$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int compareUnsigned(int[] is, int[] is1)` - static int compareUnsigned$4( - jni$_.JIntArray? is$, - jni$_.JIntArray? is1, - ) { + static int compareUnsigned$4(jni$_.JIntArray? is$, jni$_.JIntArray? is1) { final _$is$ = is$?.reference ?? jni$_.jNullReference; final _$is1 = is1?.reference ?? jni$_.jNullReference; return _compareUnsigned$4( - _class.reference.pointer, - _id_compareUnsigned$4 as jni$_.JMethodIDPtr, - _$is$.pointer, - _$is1.pointer) - .integer; + _class.reference.pointer, + _id_compareUnsigned$4 as jni$_.JMethodIDPtr, + _$is$.pointer, + _$is1.pointer, + ).integer; } static final _id_compareUnsigned$5 = _class.staticMethodId( @@ -34840,22 +38979,27 @@ class Arrays extends jni$_.JObject { r'([III[III)I', ); - static final _compareUnsigned$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compareUnsigned$5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -34863,7 +39007,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public int compareUnsigned(int[] is, int i, int i1, int[] is1, int i2, int i3)` static int compareUnsigned$5( @@ -34877,49 +39023,50 @@ class Arrays extends jni$_.JObject { final _$is$ = is$?.reference ?? jni$_.jNullReference; final _$is1 = is1?.reference ?? jni$_.jNullReference; return _compareUnsigned$5( - _class.reference.pointer, - _id_compareUnsigned$5 as jni$_.JMethodIDPtr, - _$is$.pointer, - i, - i1, - _$is1.pointer, - i2, - i3) - .integer; - } - - static final _id_compare$10 = _class.staticMethodId( - r'compare', - r'([J[J)I', - ); + _class.reference.pointer, + _id_compareUnsigned$5 as jni$_.JMethodIDPtr, + _$is$.pointer, + i, + i1, + _$is1.pointer, + i2, + i3, + ).integer; + } - static final _compare$10 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _id_compare$10 = _class.staticMethodId(r'compare', r'([J[J)I'); + + static final _compare$10 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int compare(long[] js, long[] js1)` - static int compare$10( - jni$_.JLongArray? js, - jni$_.JLongArray? js1, - ) { + static int compare$10(jni$_.JLongArray? js, jni$_.JLongArray? js1) { final _$js = js?.reference ?? jni$_.jNullReference; final _$js1 = js1?.reference ?? jni$_.jNullReference; - return _compare$10(_class.reference.pointer, - _id_compare$10 as jni$_.JMethodIDPtr, _$js.pointer, _$js1.pointer) - .integer; + return _compare$10( + _class.reference.pointer, + _id_compare$10 as jni$_.JMethodIDPtr, + _$js.pointer, + _$js1.pointer, + ).integer; } static final _id_compare$11 = _class.staticMethodId( @@ -34927,22 +39074,27 @@ class Arrays extends jni$_.JObject { r'([JII[JII)I', ); - static final _compare$11 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compare$11 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -34950,7 +39102,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public int compare(long[] js, int i, int i1, long[] js1, int i2, int i3)` static int compare$11( @@ -34964,15 +39118,15 @@ class Arrays extends jni$_.JObject { final _$js = js?.reference ?? jni$_.jNullReference; final _$js1 = js1?.reference ?? jni$_.jNullReference; return _compare$11( - _class.reference.pointer, - _id_compare$11 as jni$_.JMethodIDPtr, - _$js.pointer, - i, - i1, - _$js1.pointer, - i2, - i3) - .integer; + _class.reference.pointer, + _id_compare$11 as jni$_.JMethodIDPtr, + _$js.pointer, + i, + i1, + _$js1.pointer, + i2, + i3, + ).integer; } static final _id_compareUnsigned$6 = _class.staticMethodId( @@ -34980,36 +39134,37 @@ class Arrays extends jni$_.JObject { r'([J[J)I', ); - static final _compareUnsigned$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compareUnsigned$6 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int compareUnsigned(long[] js, long[] js1)` - static int compareUnsigned$6( - jni$_.JLongArray? js, - jni$_.JLongArray? js1, - ) { + static int compareUnsigned$6(jni$_.JLongArray? js, jni$_.JLongArray? js1) { final _$js = js?.reference ?? jni$_.jNullReference; final _$js1 = js1?.reference ?? jni$_.jNullReference; return _compareUnsigned$6( - _class.reference.pointer, - _id_compareUnsigned$6 as jni$_.JMethodIDPtr, - _$js.pointer, - _$js1.pointer) - .integer; + _class.reference.pointer, + _id_compareUnsigned$6 as jni$_.JMethodIDPtr, + _$js.pointer, + _$js1.pointer, + ).integer; } static final _id_compareUnsigned$7 = _class.staticMethodId( @@ -35017,22 +39172,27 @@ class Arrays extends jni$_.JObject { r'([JII[JII)I', ); - static final _compareUnsigned$7 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compareUnsigned$7 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -35040,7 +39200,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public int compareUnsigned(long[] js, int i, int i1, long[] js1, int i2, int i3)` static int compareUnsigned$7( @@ -35054,49 +39216,50 @@ class Arrays extends jni$_.JObject { final _$js = js?.reference ?? jni$_.jNullReference; final _$js1 = js1?.reference ?? jni$_.jNullReference; return _compareUnsigned$7( - _class.reference.pointer, - _id_compareUnsigned$7 as jni$_.JMethodIDPtr, - _$js.pointer, - i, - i1, - _$js1.pointer, - i2, - i3) - .integer; - } - - static final _id_compare$12 = _class.staticMethodId( - r'compare', - r'([F[F)I', - ); + _class.reference.pointer, + _id_compareUnsigned$7 as jni$_.JMethodIDPtr, + _$js.pointer, + i, + i1, + _$js1.pointer, + i2, + i3, + ).integer; + } - static final _compare$12 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _id_compare$12 = _class.staticMethodId(r'compare', r'([F[F)I'); + + static final _compare$12 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int compare(float[] fs, float[] fs1)` - static int compare$12( - jni$_.JFloatArray? fs, - jni$_.JFloatArray? fs1, - ) { + static int compare$12(jni$_.JFloatArray? fs, jni$_.JFloatArray? fs1) { final _$fs = fs?.reference ?? jni$_.jNullReference; final _$fs1 = fs1?.reference ?? jni$_.jNullReference; - return _compare$12(_class.reference.pointer, - _id_compare$12 as jni$_.JMethodIDPtr, _$fs.pointer, _$fs1.pointer) - .integer; + return _compare$12( + _class.reference.pointer, + _id_compare$12 as jni$_.JMethodIDPtr, + _$fs.pointer, + _$fs1.pointer, + ).integer; } static final _id_compare$13 = _class.staticMethodId( @@ -35104,22 +39267,27 @@ class Arrays extends jni$_.JObject { r'([FII[FII)I', ); - static final _compare$13 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compare$13 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -35127,7 +39295,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public int compare(float[] fs, int i, int i1, float[] fs1, int i2, int i3)` static int compare$13( @@ -35141,49 +39311,50 @@ class Arrays extends jni$_.JObject { final _$fs = fs?.reference ?? jni$_.jNullReference; final _$fs1 = fs1?.reference ?? jni$_.jNullReference; return _compare$13( - _class.reference.pointer, - _id_compare$13 as jni$_.JMethodIDPtr, - _$fs.pointer, - i, - i1, - _$fs1.pointer, - i2, - i3) - .integer; - } - - static final _id_compare$14 = _class.staticMethodId( - r'compare', - r'([D[D)I', - ); + _class.reference.pointer, + _id_compare$13 as jni$_.JMethodIDPtr, + _$fs.pointer, + i, + i1, + _$fs1.pointer, + i2, + i3, + ).integer; + } + + static final _id_compare$14 = _class.staticMethodId(r'compare', r'([D[D)I'); - static final _compare$14 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compare$14 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int compare(double[] ds, double[] ds1)` - static int compare$14( - jni$_.JDoubleArray? ds, - jni$_.JDoubleArray? ds1, - ) { + static int compare$14(jni$_.JDoubleArray? ds, jni$_.JDoubleArray? ds1) { final _$ds = ds?.reference ?? jni$_.jNullReference; final _$ds1 = ds1?.reference ?? jni$_.jNullReference; - return _compare$14(_class.reference.pointer, - _id_compare$14 as jni$_.JMethodIDPtr, _$ds.pointer, _$ds1.pointer) - .integer; + return _compare$14( + _class.reference.pointer, + _id_compare$14 as jni$_.JMethodIDPtr, + _$ds.pointer, + _$ds1.pointer, + ).integer; } static final _id_compare$15 = _class.staticMethodId( @@ -35191,22 +39362,27 @@ class Arrays extends jni$_.JObject { r'([DII[DII)I', ); - static final _compare$15 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compare$15 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -35214,7 +39390,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public int compare(double[] ds, int i, int i1, double[] ds1, int i2, int i3)` static int compare$15( @@ -35228,15 +39406,15 @@ class Arrays extends jni$_.JObject { final _$ds = ds?.reference ?? jni$_.jNullReference; final _$ds1 = ds1?.reference ?? jni$_.jNullReference; return _compare$15( - _class.reference.pointer, - _id_compare$15 as jni$_.JMethodIDPtr, - _$ds.pointer, - i, - i1, - _$ds1.pointer, - i2, - i3) - .integer; + _class.reference.pointer, + _id_compare$15 as jni$_.JMethodIDPtr, + _$ds.pointer, + i, + i1, + _$ds1.pointer, + i2, + i3, + ).integer; } static final _id_compare$16 = _class.staticMethodId( @@ -35244,22 +39422,26 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Comparable;[Ljava/lang/Comparable;)I', ); - static final _compare$16 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compare$16 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int compare(java.lang.Object[] comparables, java.lang.Object[] comparables1)` static int compare$16<$T extends jni$_.JObject?>( @@ -35270,11 +39452,11 @@ class Arrays extends jni$_.JObject { final _$comparables = comparables?.reference ?? jni$_.jNullReference; final _$comparables1 = comparables1?.reference ?? jni$_.jNullReference; return _compare$16( - _class.reference.pointer, - _id_compare$16 as jni$_.JMethodIDPtr, - _$comparables.pointer, - _$comparables1.pointer) - .integer; + _class.reference.pointer, + _id_compare$16 as jni$_.JMethodIDPtr, + _$comparables.pointer, + _$comparables1.pointer, + ).integer; } static final _id_compare$17 = _class.staticMethodId( @@ -35282,22 +39464,27 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Comparable;II[Ljava/lang/Comparable;II)I', ); - static final _compare$17 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compare$17 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -35305,7 +39492,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public int compare(java.lang.Object[] comparables, int i, int i1, java.lang.Object[] comparables1, int i2, int i3)` static int compare$17<$T extends jni$_.JObject?>( @@ -35320,15 +39509,15 @@ class Arrays extends jni$_.JObject { final _$comparables = comparables?.reference ?? jni$_.jNullReference; final _$comparables1 = comparables1?.reference ?? jni$_.jNullReference; return _compare$17( - _class.reference.pointer, - _id_compare$17 as jni$_.JMethodIDPtr, - _$comparables.pointer, - i, - i1, - _$comparables1.pointer, - i2, - i3) - .integer; + _class.reference.pointer, + _id_compare$17 as jni$_.JMethodIDPtr, + _$comparables.pointer, + i, + i1, + _$comparables1.pointer, + i2, + i3, + ).integer; } static final _id_compare$18 = _class.staticMethodId( @@ -35336,24 +39525,31 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;[Ljava/lang/Object;Ljava/util/Comparator;)I', ); - static final _compare$18 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compare$18 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int compare(java.lang.Object[] objects, java.lang.Object[] objects1, java.util.Comparator comparator)` static int compare$18<$T extends jni$_.JObject?>( @@ -35366,12 +39562,12 @@ class Arrays extends jni$_.JObject { final _$objects1 = objects1?.reference ?? jni$_.jNullReference; final _$comparator = comparator?.reference ?? jni$_.jNullReference; return _compare$18( - _class.reference.pointer, - _id_compare$18 as jni$_.JMethodIDPtr, - _$objects.pointer, - _$objects1.pointer, - _$comparator.pointer) - .integer; + _class.reference.pointer, + _id_compare$18 as jni$_.JMethodIDPtr, + _$objects.pointer, + _$objects1.pointer, + _$comparator.pointer, + ).integer; } static final _id_compare$19 = _class.staticMethodId( @@ -35379,23 +39575,28 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;II[Ljava/lang/Object;IILjava/util/Comparator;)I', ); - static final _compare$19 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _compare$19 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -35404,7 +39605,9 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, int, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int compare(java.lang.Object[] objects, int i, int i1, java.lang.Object[] objects1, int i2, int i3, java.util.Comparator comparator)` static int compare$19<$T extends jni$_.JObject?>( @@ -35421,50 +39624,51 @@ class Arrays extends jni$_.JObject { final _$objects1 = objects1?.reference ?? jni$_.jNullReference; final _$comparator = comparator?.reference ?? jni$_.jNullReference; return _compare$19( - _class.reference.pointer, - _id_compare$19 as jni$_.JMethodIDPtr, - _$objects.pointer, - i, - i1, - _$objects1.pointer, - i2, - i3, - _$comparator.pointer) - .integer; - } - - static final _id_mismatch = _class.staticMethodId( - r'mismatch', - r'([Z[Z)I', - ); + _class.reference.pointer, + _id_compare$19 as jni$_.JMethodIDPtr, + _$objects.pointer, + i, + i1, + _$objects1.pointer, + i2, + i3, + _$comparator.pointer, + ).integer; + } - static final _mismatch = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _id_mismatch = _class.staticMethodId(r'mismatch', r'([Z[Z)I'); + + static final _mismatch = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int mismatch(boolean[] zs, boolean[] zs1)` - static int mismatch( - jni$_.JBooleanArray? zs, - jni$_.JBooleanArray? zs1, - ) { + static int mismatch(jni$_.JBooleanArray? zs, jni$_.JBooleanArray? zs1) { final _$zs = zs?.reference ?? jni$_.jNullReference; final _$zs1 = zs1?.reference ?? jni$_.jNullReference; - return _mismatch(_class.reference.pointer, - _id_mismatch as jni$_.JMethodIDPtr, _$zs.pointer, _$zs1.pointer) - .integer; + return _mismatch( + _class.reference.pointer, + _id_mismatch as jni$_.JMethodIDPtr, + _$zs.pointer, + _$zs1.pointer, + ).integer; } static final _id_mismatch$1 = _class.staticMethodId( @@ -35472,22 +39676,27 @@ class Arrays extends jni$_.JObject { r'([ZII[ZII)I', ); - static final _mismatch$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _mismatch$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -35495,7 +39704,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public int mismatch(boolean[] zs, int i, int i1, boolean[] zs1, int i2, int i3)` static int mismatch$1( @@ -35509,49 +39720,50 @@ class Arrays extends jni$_.JObject { final _$zs = zs?.reference ?? jni$_.jNullReference; final _$zs1 = zs1?.reference ?? jni$_.jNullReference; return _mismatch$1( - _class.reference.pointer, - _id_mismatch$1 as jni$_.JMethodIDPtr, - _$zs.pointer, - i, - i1, - _$zs1.pointer, - i2, - i3) - .integer; - } - - static final _id_mismatch$2 = _class.staticMethodId( - r'mismatch', - r'([B[B)I', - ); + _class.reference.pointer, + _id_mismatch$1 as jni$_.JMethodIDPtr, + _$zs.pointer, + i, + i1, + _$zs1.pointer, + i2, + i3, + ).integer; + } - static final _mismatch$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _id_mismatch$2 = _class.staticMethodId(r'mismatch', r'([B[B)I'); + + static final _mismatch$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int mismatch(byte[] bs, byte[] bs1)` - static int mismatch$2( - jni$_.JByteArray? bs, - jni$_.JByteArray? bs1, - ) { + static int mismatch$2(jni$_.JByteArray? bs, jni$_.JByteArray? bs1) { final _$bs = bs?.reference ?? jni$_.jNullReference; final _$bs1 = bs1?.reference ?? jni$_.jNullReference; - return _mismatch$2(_class.reference.pointer, - _id_mismatch$2 as jni$_.JMethodIDPtr, _$bs.pointer, _$bs1.pointer) - .integer; + return _mismatch$2( + _class.reference.pointer, + _id_mismatch$2 as jni$_.JMethodIDPtr, + _$bs.pointer, + _$bs1.pointer, + ).integer; } static final _id_mismatch$3 = _class.staticMethodId( @@ -35559,22 +39771,27 @@ class Arrays extends jni$_.JObject { r'([BII[BII)I', ); - static final _mismatch$3 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _mismatch$3 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -35582,7 +39799,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public int mismatch(byte[] bs, int i, int i1, byte[] bs1, int i2, int i3)` static int mismatch$3( @@ -35596,49 +39815,50 @@ class Arrays extends jni$_.JObject { final _$bs = bs?.reference ?? jni$_.jNullReference; final _$bs1 = bs1?.reference ?? jni$_.jNullReference; return _mismatch$3( - _class.reference.pointer, - _id_mismatch$3 as jni$_.JMethodIDPtr, - _$bs.pointer, - i, - i1, - _$bs1.pointer, - i2, - i3) - .integer; - } - - static final _id_mismatch$4 = _class.staticMethodId( - r'mismatch', - r'([C[C)I', - ); + _class.reference.pointer, + _id_mismatch$3 as jni$_.JMethodIDPtr, + _$bs.pointer, + i, + i1, + _$bs1.pointer, + i2, + i3, + ).integer; + } + + static final _id_mismatch$4 = _class.staticMethodId(r'mismatch', r'([C[C)I'); - static final _mismatch$4 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _mismatch$4 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int mismatch(char[] cs, char[] cs1)` - static int mismatch$4( - jni$_.JCharArray? cs, - jni$_.JCharArray? cs1, - ) { + static int mismatch$4(jni$_.JCharArray? cs, jni$_.JCharArray? cs1) { final _$cs = cs?.reference ?? jni$_.jNullReference; final _$cs1 = cs1?.reference ?? jni$_.jNullReference; - return _mismatch$4(_class.reference.pointer, - _id_mismatch$4 as jni$_.JMethodIDPtr, _$cs.pointer, _$cs1.pointer) - .integer; + return _mismatch$4( + _class.reference.pointer, + _id_mismatch$4 as jni$_.JMethodIDPtr, + _$cs.pointer, + _$cs1.pointer, + ).integer; } static final _id_mismatch$5 = _class.staticMethodId( @@ -35646,22 +39866,27 @@ class Arrays extends jni$_.JObject { r'([CII[CII)I', ); - static final _mismatch$5 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _mismatch$5 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -35669,7 +39894,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public int mismatch(char[] cs, int i, int i1, char[] cs1, int i2, int i3)` static int mismatch$5( @@ -35683,49 +39910,50 @@ class Arrays extends jni$_.JObject { final _$cs = cs?.reference ?? jni$_.jNullReference; final _$cs1 = cs1?.reference ?? jni$_.jNullReference; return _mismatch$5( - _class.reference.pointer, - _id_mismatch$5 as jni$_.JMethodIDPtr, - _$cs.pointer, - i, - i1, - _$cs1.pointer, - i2, - i3) - .integer; - } - - static final _id_mismatch$6 = _class.staticMethodId( - r'mismatch', - r'([S[S)I', - ); + _class.reference.pointer, + _id_mismatch$5 as jni$_.JMethodIDPtr, + _$cs.pointer, + i, + i1, + _$cs1.pointer, + i2, + i3, + ).integer; + } + + static final _id_mismatch$6 = _class.staticMethodId(r'mismatch', r'([S[S)I'); - static final _mismatch$6 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _mismatch$6 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int mismatch(short[] ss, short[] ss1)` - static int mismatch$6( - jni$_.JShortArray? ss, - jni$_.JShortArray? ss1, - ) { + static int mismatch$6(jni$_.JShortArray? ss, jni$_.JShortArray? ss1) { final _$ss = ss?.reference ?? jni$_.jNullReference; final _$ss1 = ss1?.reference ?? jni$_.jNullReference; - return _mismatch$6(_class.reference.pointer, - _id_mismatch$6 as jni$_.JMethodIDPtr, _$ss.pointer, _$ss1.pointer) - .integer; + return _mismatch$6( + _class.reference.pointer, + _id_mismatch$6 as jni$_.JMethodIDPtr, + _$ss.pointer, + _$ss1.pointer, + ).integer; } static final _id_mismatch$7 = _class.staticMethodId( @@ -35733,22 +39961,27 @@ class Arrays extends jni$_.JObject { r'([SII[SII)I', ); - static final _mismatch$7 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _mismatch$7 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -35756,7 +39989,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public int mismatch(short[] ss, int i, int i1, short[] ss1, int i2, int i3)` static int mismatch$7( @@ -35770,49 +40005,50 @@ class Arrays extends jni$_.JObject { final _$ss = ss?.reference ?? jni$_.jNullReference; final _$ss1 = ss1?.reference ?? jni$_.jNullReference; return _mismatch$7( - _class.reference.pointer, - _id_mismatch$7 as jni$_.JMethodIDPtr, - _$ss.pointer, - i, - i1, - _$ss1.pointer, - i2, - i3) - .integer; - } - - static final _id_mismatch$8 = _class.staticMethodId( - r'mismatch', - r'([I[I)I', - ); + _class.reference.pointer, + _id_mismatch$7 as jni$_.JMethodIDPtr, + _$ss.pointer, + i, + i1, + _$ss1.pointer, + i2, + i3, + ).integer; + } + + static final _id_mismatch$8 = _class.staticMethodId(r'mismatch', r'([I[I)I'); - static final _mismatch$8 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _mismatch$8 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int mismatch(int[] is, int[] is1)` - static int mismatch$8( - jni$_.JIntArray? is$, - jni$_.JIntArray? is1, - ) { + static int mismatch$8(jni$_.JIntArray? is$, jni$_.JIntArray? is1) { final _$is$ = is$?.reference ?? jni$_.jNullReference; final _$is1 = is1?.reference ?? jni$_.jNullReference; - return _mismatch$8(_class.reference.pointer, - _id_mismatch$8 as jni$_.JMethodIDPtr, _$is$.pointer, _$is1.pointer) - .integer; + return _mismatch$8( + _class.reference.pointer, + _id_mismatch$8 as jni$_.JMethodIDPtr, + _$is$.pointer, + _$is1.pointer, + ).integer; } static final _id_mismatch$9 = _class.staticMethodId( @@ -35820,22 +40056,27 @@ class Arrays extends jni$_.JObject { r'([III[III)I', ); - static final _mismatch$9 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _mismatch$9 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -35843,7 +40084,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public int mismatch(int[] is, int i, int i1, int[] is1, int i2, int i3)` static int mismatch$9( @@ -35857,49 +40100,50 @@ class Arrays extends jni$_.JObject { final _$is$ = is$?.reference ?? jni$_.jNullReference; final _$is1 = is1?.reference ?? jni$_.jNullReference; return _mismatch$9( - _class.reference.pointer, - _id_mismatch$9 as jni$_.JMethodIDPtr, - _$is$.pointer, - i, - i1, - _$is1.pointer, - i2, - i3) - .integer; - } - - static final _id_mismatch$10 = _class.staticMethodId( - r'mismatch', - r'([J[J)I', - ); + _class.reference.pointer, + _id_mismatch$9 as jni$_.JMethodIDPtr, + _$is$.pointer, + i, + i1, + _$is1.pointer, + i2, + i3, + ).integer; + } + + static final _id_mismatch$10 = _class.staticMethodId(r'mismatch', r'([J[J)I'); - static final _mismatch$10 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _mismatch$10 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int mismatch(long[] js, long[] js1)` - static int mismatch$10( - jni$_.JLongArray? js, - jni$_.JLongArray? js1, - ) { + static int mismatch$10(jni$_.JLongArray? js, jni$_.JLongArray? js1) { final _$js = js?.reference ?? jni$_.jNullReference; final _$js1 = js1?.reference ?? jni$_.jNullReference; - return _mismatch$10(_class.reference.pointer, - _id_mismatch$10 as jni$_.JMethodIDPtr, _$js.pointer, _$js1.pointer) - .integer; + return _mismatch$10( + _class.reference.pointer, + _id_mismatch$10 as jni$_.JMethodIDPtr, + _$js.pointer, + _$js1.pointer, + ).integer; } static final _id_mismatch$11 = _class.staticMethodId( @@ -35907,22 +40151,27 @@ class Arrays extends jni$_.JObject { r'([JII[JII)I', ); - static final _mismatch$11 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _mismatch$11 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -35930,7 +40179,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public int mismatch(long[] js, int i, int i1, long[] js1, int i2, int i3)` static int mismatch$11( @@ -35944,49 +40195,50 @@ class Arrays extends jni$_.JObject { final _$js = js?.reference ?? jni$_.jNullReference; final _$js1 = js1?.reference ?? jni$_.jNullReference; return _mismatch$11( - _class.reference.pointer, - _id_mismatch$11 as jni$_.JMethodIDPtr, - _$js.pointer, - i, - i1, - _$js1.pointer, - i2, - i3) - .integer; - } - - static final _id_mismatch$12 = _class.staticMethodId( - r'mismatch', - r'([F[F)I', - ); + _class.reference.pointer, + _id_mismatch$11 as jni$_.JMethodIDPtr, + _$js.pointer, + i, + i1, + _$js1.pointer, + i2, + i3, + ).integer; + } - static final _mismatch$12 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _id_mismatch$12 = _class.staticMethodId(r'mismatch', r'([F[F)I'); + + static final _mismatch$12 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int mismatch(float[] fs, float[] fs1)` - static int mismatch$12( - jni$_.JFloatArray? fs, - jni$_.JFloatArray? fs1, - ) { + static int mismatch$12(jni$_.JFloatArray? fs, jni$_.JFloatArray? fs1) { final _$fs = fs?.reference ?? jni$_.jNullReference; final _$fs1 = fs1?.reference ?? jni$_.jNullReference; - return _mismatch$12(_class.reference.pointer, - _id_mismatch$12 as jni$_.JMethodIDPtr, _$fs.pointer, _$fs1.pointer) - .integer; + return _mismatch$12( + _class.reference.pointer, + _id_mismatch$12 as jni$_.JMethodIDPtr, + _$fs.pointer, + _$fs1.pointer, + ).integer; } static final _id_mismatch$13 = _class.staticMethodId( @@ -35994,22 +40246,27 @@ class Arrays extends jni$_.JObject { r'([FII[FII)I', ); - static final _mismatch$13 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _mismatch$13 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -36017,7 +40274,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public int mismatch(float[] fs, int i, int i1, float[] fs1, int i2, int i3)` static int mismatch$13( @@ -36031,49 +40290,50 @@ class Arrays extends jni$_.JObject { final _$fs = fs?.reference ?? jni$_.jNullReference; final _$fs1 = fs1?.reference ?? jni$_.jNullReference; return _mismatch$13( - _class.reference.pointer, - _id_mismatch$13 as jni$_.JMethodIDPtr, - _$fs.pointer, - i, - i1, - _$fs1.pointer, - i2, - i3) - .integer; - } - - static final _id_mismatch$14 = _class.staticMethodId( - r'mismatch', - r'([D[D)I', - ); + _class.reference.pointer, + _id_mismatch$13 as jni$_.JMethodIDPtr, + _$fs.pointer, + i, + i1, + _$fs1.pointer, + i2, + i3, + ).integer; + } + + static final _id_mismatch$14 = _class.staticMethodId(r'mismatch', r'([D[D)I'); - static final _mismatch$14 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _mismatch$14 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int mismatch(double[] ds, double[] ds1)` - static int mismatch$14( - jni$_.JDoubleArray? ds, - jni$_.JDoubleArray? ds1, - ) { + static int mismatch$14(jni$_.JDoubleArray? ds, jni$_.JDoubleArray? ds1) { final _$ds = ds?.reference ?? jni$_.jNullReference; final _$ds1 = ds1?.reference ?? jni$_.jNullReference; - return _mismatch$14(_class.reference.pointer, - _id_mismatch$14 as jni$_.JMethodIDPtr, _$ds.pointer, _$ds1.pointer) - .integer; + return _mismatch$14( + _class.reference.pointer, + _id_mismatch$14 as jni$_.JMethodIDPtr, + _$ds.pointer, + _$ds1.pointer, + ).integer; } static final _id_mismatch$15 = _class.staticMethodId( @@ -36081,22 +40341,27 @@ class Arrays extends jni$_.JObject { r'([DII[DII)I', ); - static final _mismatch$15 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _mismatch$15 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -36104,7 +40369,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public int mismatch(double[] ds, int i, int i1, double[] ds1, int i2, int i3)` static int mismatch$15( @@ -36118,15 +40385,15 @@ class Arrays extends jni$_.JObject { final _$ds = ds?.reference ?? jni$_.jNullReference; final _$ds1 = ds1?.reference ?? jni$_.jNullReference; return _mismatch$15( - _class.reference.pointer, - _id_mismatch$15 as jni$_.JMethodIDPtr, - _$ds.pointer, - i, - i1, - _$ds1.pointer, - i2, - i3) - .integer; + _class.reference.pointer, + _id_mismatch$15 as jni$_.JMethodIDPtr, + _$ds.pointer, + i, + i1, + _$ds1.pointer, + i2, + i3, + ).integer; } static final _id_mismatch$16 = _class.staticMethodId( @@ -36134,22 +40401,26 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;[Ljava/lang/Object;)I', ); - static final _mismatch$16 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _mismatch$16 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int mismatch(java.lang.Object[] objects, java.lang.Object[] objects1)` static int mismatch$16( @@ -36159,11 +40430,11 @@ class Arrays extends jni$_.JObject { final _$objects = objects?.reference ?? jni$_.jNullReference; final _$objects1 = objects1?.reference ?? jni$_.jNullReference; return _mismatch$16( - _class.reference.pointer, - _id_mismatch$16 as jni$_.JMethodIDPtr, - _$objects.pointer, - _$objects1.pointer) - .integer; + _class.reference.pointer, + _id_mismatch$16 as jni$_.JMethodIDPtr, + _$objects.pointer, + _$objects1.pointer, + ).integer; } static final _id_mismatch$17 = _class.staticMethodId( @@ -36171,22 +40442,27 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;II[Ljava/lang/Object;II)I', ); - static final _mismatch$17 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _mismatch$17 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32 - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -36194,7 +40470,9 @@ class Arrays extends jni$_.JObject { int, jni$_.Pointer, int, - int)>(); + int, + ) + >(); /// from: `static public int mismatch(java.lang.Object[] objects, int i, int i1, java.lang.Object[] objects1, int i2, int i3)` static int mismatch$17( @@ -36208,15 +40486,15 @@ class Arrays extends jni$_.JObject { final _$objects = objects?.reference ?? jni$_.jNullReference; final _$objects1 = objects1?.reference ?? jni$_.jNullReference; return _mismatch$17( - _class.reference.pointer, - _id_mismatch$17 as jni$_.JMethodIDPtr, - _$objects.pointer, - i, - i1, - _$objects1.pointer, - i2, - i3) - .integer; + _class.reference.pointer, + _id_mismatch$17 as jni$_.JMethodIDPtr, + _$objects.pointer, + i, + i1, + _$objects1.pointer, + i2, + i3, + ).integer; } static final _id_mismatch$18 = _class.staticMethodId( @@ -36224,24 +40502,31 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;[Ljava/lang/Object;Ljava/util/Comparator;)I', ); - static final _mismatch$18 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _mismatch$18 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int mismatch(java.lang.Object[] objects, java.lang.Object[] objects1, java.util.Comparator comparator)` static int mismatch$18<$T extends jni$_.JObject?>( @@ -36254,12 +40539,12 @@ class Arrays extends jni$_.JObject { final _$objects1 = objects1?.reference ?? jni$_.jNullReference; final _$comparator = comparator?.reference ?? jni$_.jNullReference; return _mismatch$18( - _class.reference.pointer, - _id_mismatch$18 as jni$_.JMethodIDPtr, - _$objects.pointer, - _$objects1.pointer, - _$comparator.pointer) - .integer; + _class.reference.pointer, + _id_mismatch$18 as jni$_.JMethodIDPtr, + _$objects.pointer, + _$objects1.pointer, + _$comparator.pointer, + ).integer; } static final _id_mismatch$19 = _class.staticMethodId( @@ -36267,23 +40552,28 @@ class Arrays extends jni$_.JObject { r'([Ljava/lang/Object;II[Ljava/lang/Object;IILjava/util/Comparator;)I', ); - static final _mismatch$19 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _mismatch$19 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer, - jni$_.Int32, - jni$_.Int32, - jni$_.Pointer - )>)>>('globalEnv_CallStaticIntMethod') - .asFunction< - jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + jni$_.Int32, + jni$_.Int32, + jni$_.Pointer, + ) + >, + ) + > + >('globalEnv_CallStaticIntMethod') + .asFunction< + jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, @@ -36292,7 +40582,9 @@ class Arrays extends jni$_.JObject { jni$_.Pointer, int, int, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `static public int mismatch(java.lang.Object[] objects, int i, int i1, java.lang.Object[] objects1, int i2, int i3, java.util.Comparator comparator)` static int mismatch$19<$T extends jni$_.JObject?>( @@ -36309,16 +40601,16 @@ class Arrays extends jni$_.JObject { final _$objects1 = objects1?.reference ?? jni$_.jNullReference; final _$comparator = comparator?.reference ?? jni$_.jNullReference; return _mismatch$19( - _class.reference.pointer, - _id_mismatch$19 as jni$_.JMethodIDPtr, - _$objects.pointer, - i, - i1, - _$objects1.pointer, - i2, - i3, - _$comparator.pointer) - .integer; + _class.reference.pointer, + _id_mismatch$19 as jni$_.JMethodIDPtr, + _$objects.pointer, + i, + i1, + _$objects1.pointer, + i2, + i3, + _$comparator.pointer, + ).integer; } } @@ -36332,11 +40624,8 @@ final class $Arrays$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - Arrays? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Arrays.fromReference( - reference, - ); + Arrays? fromReference(jni$_.JReference reference) => + reference.isNull ? null : Arrays.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -36369,9 +40658,8 @@ final class $Arrays$Type extends jni$_.JObjType { @jni$_.internal @core$_.override - Arrays fromReference(jni$_.JReference reference) => Arrays.fromReference( - reference, - ); + Arrays fromReference(jni$_.JReference reference) => + Arrays.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -36400,10 +40688,9 @@ class Certificate extends jni$_.JObject { final jni$_.JObjType $type; @jni$_.internal - Certificate.fromReference( - jni$_.JReference reference, - ) : $type = type, - super.fromReference(reference); + Certificate.fromReference(jni$_.JReference reference) + : $type = type, + super.fromReference(reference); static final _class = jni$_.JClass.forName(r'java/security/cert/Certificate'); @@ -36415,23 +40702,29 @@ class Certificate extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _getType = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getType = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public final java.lang.String getType()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? getType() { - return _getType(reference.pointer, _id_getType as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _getType( + reference.pointer, + _id_getType as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_equals = _class.instanceMethodId( @@ -36439,72 +40732,85 @@ class Certificate extends jni$_.JObject { r'(Ljava/lang/Object;)Z', ); - static final _equals = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni$_.JniResult Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _equals = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public boolean equals(java.lang.Object object)` - bool equals( - jni$_.JObject? object, - ) { + bool equals(jni$_.JObject? object) { final _$object = object?.reference ?? jni$_.jNullReference; - return _equals(reference.pointer, _id_equals as jni$_.JMethodIDPtr, - _$object.pointer) - .boolean; + return _equals( + reference.pointer, + _id_equals as jni$_.JMethodIDPtr, + _$object.pointer, + ).boolean; } - static final _id_hashCode$1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); + static final _id_hashCode$1 = _class.instanceMethodId(r'hashCode', r'()I'); - static final _hashCode$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _hashCode$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallIntMethod') + .asFunction< + 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) - .integer; + return _hashCode$1( + reference.pointer, + _id_hashCode$1 as jni$_.JMethodIDPtr, + ).integer; } - static final _id_getEncoded = _class.instanceMethodId( - r'getEncoded', - r'()[B', - ); + static final _id_getEncoded = _class.instanceMethodId(r'getEncoded', r'()[B'); - static final _getEncoded = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getEncoded = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract byte[] getEncoded()` /// The returned object must be released after use, by calling the [release] method. jni$_.JByteArray? getEncoded() { - return _getEncoded(reference.pointer, _id_getEncoded as jni$_.JMethodIDPtr) - .object(const jni$_.JByteArrayNullableType()); + return _getEncoded( + reference.pointer, + _id_getEncoded as jni$_.JMethodIDPtr, + ).object(const jni$_.JByteArrayNullableType()); } static final _id_verify = _class.instanceMethodId( @@ -36512,25 +40818,32 @@ class Certificate extends jni$_.JObject { r'(Ljava/security/PublicKey;)V', ); - static final _verify = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _verify = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + ) + >(); /// from: `public abstract void verify(java.security.PublicKey publicKey)` - void verify( - PublicKey? publicKey, - ) { + void verify(PublicKey? publicKey) { final _$publicKey = publicKey?.reference ?? jni$_.jNullReference; - _verify(reference.pointer, _id_verify as jni$_.JMethodIDPtr, - _$publicKey.pointer) - .check(); + _verify( + reference.pointer, + _id_verify as jni$_.JMethodIDPtr, + _$publicKey.pointer, + ).check(); } static final _id_verify$1 = _class.instanceMethodId( @@ -36538,33 +40851,37 @@ class Certificate extends jni$_.JObject { r'(Ljava/security/PublicKey;Ljava/lang/String;)V', ); - static final _verify$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _verify$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public abstract void verify(java.security.PublicKey publicKey, java.lang.String string)` - void verify$1( - PublicKey? publicKey, - jni$_.JString? string, - ) { + void verify$1(PublicKey? publicKey, jni$_.JString? string) { final _$publicKey = publicKey?.reference ?? jni$_.jNullReference; final _$string = string?.reference ?? jni$_.jNullReference; - _verify$1(reference.pointer, _id_verify$1 as jni$_.JMethodIDPtr, - _$publicKey.pointer, _$string.pointer) - .check(); + _verify$1( + reference.pointer, + _id_verify$1 as jni$_.JMethodIDPtr, + _$publicKey.pointer, + _$string.pointer, + ).check(); } static final _id_verify$2 = _class.instanceMethodId( @@ -36572,33 +40889,37 @@ class Certificate extends jni$_.JObject { r'(Ljava/security/PublicKey;Ljava/security/Provider;)V', ); - static final _verify$2 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _verify$2 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs< - ( - jni$_.Pointer, - jni$_.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + (jni$_.Pointer, jni$_.Pointer) + >, + ) + > + >('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer, - jni$_.Pointer)>(); + jni$_.Pointer, + ) + >(); /// from: `public void verify(java.security.PublicKey publicKey, java.security.Provider provider)` - void verify$2( - PublicKey? publicKey, - jni$_.JObject? provider, - ) { + void verify$2(PublicKey? publicKey, jni$_.JObject? provider) { final _$publicKey = publicKey?.reference ?? jni$_.jNullReference; final _$provider = provider?.reference ?? jni$_.jNullReference; - _verify$2(reference.pointer, _id_verify$2 as jni$_.JMethodIDPtr, - _$publicKey.pointer, _$provider.pointer) - .check(); + _verify$2( + reference.pointer, + _id_verify$2 as jni$_.JMethodIDPtr, + _$publicKey.pointer, + _$provider.pointer, + ).check(); } static final _id_toString$1 = _class.instanceMethodId( @@ -36606,23 +40927,29 @@ class Certificate extends jni$_.JObject { r'()Ljava/lang/String;', ); - static final _toString$1 = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _toString$1 = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.lang.String toString()` /// The returned object must be released after use, by calling the [release] method. jni$_.JString? toString$1() { - return _toString$1(reference.pointer, _id_toString$1 as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + return _toString$1( + reference.pointer, + _id_toString$1 as jni$_.JMethodIDPtr, + ).object(const jni$_.JStringNullableType()); } static final _id_getPublicKey = _class.instanceMethodId( @@ -36630,24 +40957,29 @@ class Certificate extends jni$_.JObject { r'()Ljava/security/PublicKey;', ); - static final _getPublicKey = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< + static final _getPublicKey = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); + ) + > + >('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + ) + >(); /// from: `public abstract java.security.PublicKey getPublicKey()` /// The returned object must be released after use, by calling the [release] method. PublicKey? getPublicKey() { return _getPublicKey( - reference.pointer, _id_getPublicKey as jni$_.JMethodIDPtr) - .object(const $PublicKey$NullableType()); + reference.pointer, + _id_getPublicKey as jni$_.JMethodIDPtr, + ).object(const $PublicKey$NullableType()); } } @@ -36661,11 +40993,8 @@ final class $Certificate$NullableType extends jni$_.JObjType { @jni$_.internal @core$_.override - Certificate? fromReference(jni$_.JReference reference) => reference.isNull - ? null - : Certificate.fromReference( - reference, - ); + Certificate? fromReference(jni$_.JReference reference) => + reference.isNull ? null : Certificate.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); @@ -36699,9 +41028,7 @@ final class $Certificate$Type extends jni$_.JObjType { @jni$_.internal @core$_.override Certificate fromReference(jni$_.JReference reference) => - Certificate.fromReference( - reference, - ); + Certificate.fromReference(reference); @jni$_.internal @core$_.override jni$_.JObjType get superType => const jni$_.JObjectNullableType(); diff --git a/pkgs/ok_http/lib/src/ok_http_client.dart b/pkgs/ok_http/lib/src/ok_http_client.dart index e9114b4893..6077ed2ce1 100644 --- a/pkgs/ok_http/lib/src/ok_http_client.dart +++ b/pkgs/ok_http/lib/src/ok_http_client.dart @@ -32,16 +32,19 @@ class _JavaIOException extends IOException { } /// A [bindings.X509TrustManager] that trusts all certificates. -final _allAllTrustManager = - bindings.X509TrustManager.implement(bindings.$X509TrustManager( - checkClientTrusted: (chain, authType) {}, - checkServerTrusted: (chain, authType) {}, - getAcceptedIssuers: () { - final factory = bindings.TrustManagerFactory.getInstance( - bindings.TrustManagerFactory.getDefaultAlgorithm()); - factory!.init(null); - return JArray(bindings.X509Certificate.nullableType, 0); - })).as(bindings.TrustManager.type); +final _allAllTrustManager = bindings.X509TrustManager.implement( + bindings.$X509TrustManager( + checkClientTrusted: (chain, authType) {}, + checkServerTrusted: (chain, authType) {}, + getAcceptedIssuers: () { + final factory = bindings.TrustManagerFactory.getInstance( + bindings.TrustManagerFactory.getDefaultAlgorithm(), + ); + factory!.init(null); + return JArray(bindings.X509Certificate.nullableType, 0); + }, + ), +).as(bindings.TrustManager.type); /// Configurations for the [OkHttpClient]. class OkHttpClientConfiguration { @@ -107,16 +110,24 @@ class OkHttpClientConfiguration { /// returned. /// /// See [`KeyChain.choosePrivateKeyAlias`](https://developer.android.com/reference/android/security/KeyChain#choosePrivateKeyAlias(android.app.Activity,%20android.security.KeyChainAliasCallback,%20java.lang.String[],%20java.security.Principal[],%20android.net.Uri,%20java.lang.String). -Future choosePrivateKeyAlias({ - JObject? activity, -}) async { +Future choosePrivateKeyAlias({JObject? activity}) async { final c = Completer(); activity ??= JObject.fromReference(Jni.getCurrentActivity()); - bindings.KeyChain.choosePrivateKeyAlias(activity, - bindings.KeyChainAliasCallback.implement( - bindings.$KeyChainAliasCallback(alias: (alias) { - c.complete(alias?.toDartString()); - })), null, null, null, -1, null); + bindings.KeyChain.choosePrivateKeyAlias( + activity, + bindings.KeyChainAliasCallback.implement( + bindings.$KeyChainAliasCallback( + alias: (alias) { + c.complete(alias?.toDartString()); + }, + ), + ), + null, + null, + null, + -1, + null, + ); return c.future; } @@ -124,8 +135,9 @@ Future choosePrivateKeyAlias({ /// /// See [Android Keystore system](https://developer.android.com/privacy-and-security/keystore). (PrivateKey, List) loadPrivateKeyAndCertificateChainFromAlias( - String alias, - {JObject? context}) { + String alias, { + JObject? context, +}) { context ??= JObject.fromReference(Jni.getCachedApplicationContext()); final jAlias = alias.toJString(); final pk = bindings.KeyChain.getPrivateKey(context, jAlias)!; @@ -139,8 +151,10 @@ Future choosePrivateKeyAlias({ /// Throws [IOException] if the password is incorrect or the PKCS12 data is /// invalid. (PrivateKey, List) loadPrivateKeyAndCertificateChainFromPKCS12( - Uint8List pkcs12Data, String password, - {JObject? context}) { + Uint8List pkcs12Data, + String password, { + JObject? context, +}) { context ??= JObject.fromReference(Jni.getCachedApplicationContext()); var keyStore = bindings.KeyStore.getInstance('PKCS12'.toJString())!; @@ -150,7 +164,9 @@ Future choosePrivateKeyAlias({ } try { keyStore.load( - bindings.ByteArrayInputStream(JByteArray.from(pkcs12Data)), jPassword); + bindings.ByteArrayInputStream(JByteArray.from(pkcs12Data)), + jPassword, + ); } on JniException catch (e) { if (e.message.contains('java.io.IOException')) { throw _JavaIOException(e); @@ -184,7 +200,9 @@ Future choosePrivateKeyAlias({ final certificates = jCertificates.map((c) { if (c == null || !c.isA(X509Certificate.type)) { throw ArgumentError( - 'certificate chain contains non-X509 certificates', 'pkcs12Data'); + 'certificate chain contains non-X509 certificates', + 'pkcs12Data', + ); } return c.as(X509Certificate.type); }).toList(); @@ -224,21 +242,23 @@ class OkHttpClient extends BaseClient { /// Creates a new instance of [OkHttpClient] with the given [configuration]. OkHttpClient({ this.configuration = const OkHttpClientConfiguration(), -// required String alias, + // required String alias, }) { final clientPrivateKey = configuration.clientPrivateKey; final clientCertificateChain = configuration.clientCertificateChain; if (clientPrivateKey != null && clientCertificateChain == null) { throw ArgumentError( - 'OkHttpClientConfiguration.clientCertificateChain must be set ' - 'if OkHttpClientConfiguration.clientPrivateKey is set'); + 'OkHttpClientConfiguration.clientCertificateChain must be set ' + 'if OkHttpClientConfiguration.clientPrivateKey is set', + ); } if (clientCertificateChain != null && clientPrivateKey == null) { throw ArgumentError( - 'OkHttpClientConfiguration.clientPrivateKey must be set ' - 'if OkHttpClientConfiguration.clientCertificateChain is set'); + 'OkHttpClientConfiguration.clientPrivateKey must be set ' + 'if OkHttpClientConfiguration.clientCertificateChain is set', + ); } final builder = bindings.OkHttpClient$Builder(); @@ -249,20 +269,28 @@ class OkHttpClient extends BaseClient { final trustManagers = JArray(bindings.TrustManager.nullableType, 1); if (clientPrivateKey != null && clientCertificateChain != null) { - final chain = - JArray.of(bindings.X509Certificate.type, clientCertificateChain); + final chain = JArray.of( + bindings.X509Certificate.type, + clientCertificateChain, + ); final keyManager = bindings.FixedResponseX509ExtendedKeyManager( - chain, clientPrivateKey, 'DUMMY'.toJString()); - keyManagers = JArray.filled(1, keyManager.as(bindings.KeyManager.type), - E: bindings.KeyManager.type); + chain, + clientPrivateKey, + 'DUMMY'.toJString(), + ); + keyManagers = JArray.filled( + 1, + keyManager.as(bindings.KeyManager.type), + E: bindings.KeyManager.type, + ); } if (!configuration.validateServerCertificates) { trustManagers[0] = _allAllTrustManager; } else { final tmf = bindings.TrustManagerFactory.getInstance( - bindings.TrustManagerFactory.getDefaultAlgorithm())! - ..init(null); + bindings.TrustManagerFactory.getDefaultAlgorithm(), + )!..init(null); final tms = tmf.getTrustManagers()!; if (tms.length != 1) { throw StateError('unexpected XXX'); @@ -272,8 +300,10 @@ class OkHttpClient extends BaseClient { final sslContext = bindings.SSLContext.getInstance('TLS'.toJString())! ..init(keyManagers, trustManagers, null); - builder.sslSocketFactory$1(sslContext.getSocketFactory()!, - trustManagers[0]!.as(bindings.X509TrustManager.type)); + builder.sslSocketFactory$1( + sslContext.getSocketFactory()!, + trustManagers[0]!.as(bindings.X509TrustManager.type), + ); } _client = builder.build(); } @@ -301,9 +331,10 @@ class OkHttpClient extends BaseClient { HttpClientRequestProfile? _createProfile(BaseRequest request) => HttpClientRequestProfile.profile( - requestStartTime: DateTime.now(), - requestMethod: request.method, - requestUri: request.url.toString()); + requestStartTime: DateTime.now(), + requestMethod: request.method, + requestUri: request.url.toString(), + ); void addProfileError(HttpClientRequestProfile? profile, Exception error) { if (profile != null) { @@ -319,7 +350,9 @@ class OkHttpClient extends BaseClient { Future send(BaseRequest request) async { if (_isClosed) { throw ClientException( - 'HTTP request failed. Client is already closed.', request.url); + 'HTTP request failed. Client is already closed.', + request.url, + ); } final profile = _createProfile(request); @@ -337,7 +370,7 @@ class OkHttpClient extends BaseClient { if (profile != null && request.contentLength != null) { profile.requestData.headersListValues = { 'Content-Length': ['${request.contentLength}'], - ...profile.requestData.headers! + ...profile.requestData.headers!, }; } @@ -366,10 +399,7 @@ class OkHttpClient extends BaseClient { okReqBody = bindings.RequestBody.create$10(JByteArray.from(requestBody)); } - reqBuilder.method( - requestMethod.toJString(), - okReqBody, - ); + reqBuilder.method(requestMethod.toJString(), okReqBody); // To configure the client per-request, we create a new client with the // builder associated with `_client`. @@ -381,125 +411,154 @@ class OkHttpClient extends BaseClient { // https://github.com/square/okhttp/blob/54238b4c713080c3fd32fb1a070fb5d6814c9a09/okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt#L350 final reqConfiguredClient = bindings.RedirectInterceptor.Companion .addRedirectInterceptor( - _client.newBuilder().followRedirects(false), - maxRedirects, - followRedirects, bindings.RedirectReceivedCallback.implement( - bindings.$RedirectReceivedCallback( - onRedirectReceived: (response, newLocation) { - profile?.responseData.addRedirect(HttpProfileRedirectData( - statusCode: response.code(), - method: response - .request() - .method() - .toDartString(releaseOriginal: true), - location: newLocation.toDartString(releaseOriginal: true), - )); - }, - ))) - .callTimeout(configuration.callTimeout.inMilliseconds, - bindings.TimeUnit.MILLISECONDS) - .connectTimeout(configuration.connectTimeout.inMilliseconds, - bindings.TimeUnit.MILLISECONDS) - .readTimeout(configuration.readTimeout.inMilliseconds, - bindings.TimeUnit.MILLISECONDS) - .writeTimeout(configuration.writeTimeout.inMilliseconds, - bindings.TimeUnit.MILLISECONDS) + _client.newBuilder().followRedirects(false), + maxRedirects, + followRedirects, + bindings.RedirectReceivedCallback.implement( + bindings.$RedirectReceivedCallback( + onRedirectReceived: (response, newLocation) { + profile?.responseData.addRedirect( + HttpProfileRedirectData( + statusCode: response.code(), + method: response.request().method().toDartString( + releaseOriginal: true, + ), + location: newLocation.toDartString(releaseOriginal: true), + ), + ); + }, + ), + ), + ) + .callTimeout( + configuration.callTimeout.inMilliseconds, + bindings.TimeUnit.MILLISECONDS, + ) + .connectTimeout( + configuration.connectTimeout.inMilliseconds, + bindings.TimeUnit.MILLISECONDS, + ) + .readTimeout( + configuration.readTimeout.inMilliseconds, + bindings.TimeUnit.MILLISECONDS, + ) + .writeTimeout( + configuration.writeTimeout.inMilliseconds, + bindings.TimeUnit.MILLISECONDS, + ) .build(); // `enqueue()` schedules the request to be executed in the future. // https://square.github.io/okhttp/5.x/okhttp/okhttp3/-call/enqueue.html reqConfiguredClient .newCall(reqBuilder.build()) - .enqueue(bindings.Callback.implement(bindings.$Callback( - onResponse: (bindings.Call call, bindings.Response response) { - var reader = bindings.AsyncInputStreamReader(); - var respBodyStreamController = StreamController>(); - - var responseHeaders = {}; - - response.headers().toMultimap().forEach((key, value) { - responseHeaders[key.toDartString(releaseOriginal: true)] = - value.join(','); - }); - - int? contentLength; - if (responseHeaders.containsKey('content-length')) { - contentLength = int.tryParse(responseHeaders['content-length']!); - - // To be conformant with RFC 2616 14.13, we need to check if the - // content-length is a non-negative integer. - if (contentLength == null || contentLength < 0) { - responseCompleter.completeError(ClientException( - 'Invalid content-length header', request.url)); - return; - } - } - - var responseBodyByteStream = response.body()!.byteStream(); - reader.readAsync( - responseBodyByteStream, - bindings.DataCallback.implement( - bindings.$DataCallback( - onDataRead: (bytesRead) { - var data = bytesRead.toList(growable: false); - - respBodyStreamController.sink.add(data); - profile?.responseData.bodySink.add(data); - }, - onFinished: () { - reader.shutdown(); - respBodyStreamController.sink.close(); - if (!profileRespClosed) { - profile?.responseData.close(); + .enqueue( + bindings.Callback.implement( + bindings.$Callback( + onResponse: (bindings.Call call, bindings.Response response) { + var reader = bindings.AsyncInputStreamReader(); + var respBodyStreamController = StreamController>(); + + var responseHeaders = {}; + + response.headers().toMultimap().forEach((key, value) { + responseHeaders[key.toDartString(releaseOriginal: true)] = + value.join(','); + }); + + int? contentLength; + if (responseHeaders.containsKey('content-length')) { + contentLength = int.tryParse( + responseHeaders['content-length']!, + ); + + // To be conformant with RFC 2616 14.13, we need to check if the + // content-length is a non-negative integer. + if (contentLength == null || contentLength < 0) { + responseCompleter.completeError( + ClientException( + 'Invalid content-length header', + request.url, + ), + ); + return; + } + } + + var responseBodyByteStream = response.body()!.byteStream(); + reader.readAsync( + responseBodyByteStream, + bindings.DataCallback.implement( + bindings.$DataCallback( + onDataRead: (bytesRead) { + var data = bytesRead.toList(growable: false); + + respBodyStreamController.sink.add(data); + profile?.responseData.bodySink.add(data); + }, + onFinished: () { + reader.shutdown(); + respBodyStreamController.sink.close(); + if (!profileRespClosed) { + profile?.responseData.close(); + profileRespClosed = true; + } + }, + onError: (iOException) { + var exception = ClientException( + iOException.toString(), + request.url, + ); + + respBodyStreamController.sink.addError(exception); + addProfileError(profile, exception); profileRespClosed = true; - } - }, - onError: (iOException) { - var exception = - ClientException(iOException.toString(), request.url); - - respBodyStreamController.sink.addError(exception); - addProfileError(profile, exception); - profileRespClosed = true; - - reader.shutdown(); - respBodyStreamController.sink.close(); - }, + + reader.shutdown(); + respBodyStreamController.sink.close(); + }, + ), + ), + ); + + responseCompleter.complete( + StreamedResponse( + respBodyStreamController.stream, + response.code(), + reasonPhrase: response.message().toDartString( + releaseOriginal: true, + ), + headers: responseHeaders, + request: request, + contentLength: contentLength, + isRedirect: response.isRedirect(), ), - )); - - responseCompleter.complete(StreamedResponse( - respBodyStreamController.stream, - response.code(), - reasonPhrase: - response.message().toDartString(releaseOriginal: true), - headers: responseHeaders, - request: request, - contentLength: contentLength, - isRedirect: response.isRedirect(), - )); - - profile?.requestData.close(); - profile?.responseData - ?..contentLength = contentLength - ..headersCommaValues = responseHeaders - ..isRedirect = response.isRedirect() - ..reasonPhrase = - response.message().toDartString(releaseOriginal: true) - ..startTime = DateTime.now() - ..statusCode = response.code(); - }, - onFailure: (bindings.Call call, JObject ioException) { - var msg = ioException.toString(); - if (msg.contains('Redirect limit exceeded')) { - msg = 'Redirect limit exceeded'; - } - var exception = ClientException(msg, request.url); - responseCompleter.completeError(exception); - addProfileError(profile, exception); - profileRespClosed = true; - }, - ))); + ); + + profile?.requestData.close(); + profile?.responseData + ?..contentLength = contentLength + ..headersCommaValues = responseHeaders + ..isRedirect = response.isRedirect() + ..reasonPhrase = response.message().toDartString( + releaseOriginal: true, + ) + ..startTime = DateTime.now() + ..statusCode = response.code(); + }, + onFailure: (bindings.Call call, JObject ioException) { + var msg = ioException.toString(); + if (msg.contains('Redirect limit exceeded')) { + msg = 'Redirect limit exceeded'; + } + var exception = ClientException(msg, request.url); + responseCompleter.completeError(exception); + addProfileError(profile, exception); + profileRespClosed = true; + }, + ), + ), + ); return responseCompleter.future; } diff --git a/pkgs/ok_http/lib/src/ok_http_web_socket.dart b/pkgs/ok_http/lib/src/ok_http_web_socket.dart index f9c1d3acf7..db8d8c2d42 100644 --- a/pkgs/ok_http/lib/src/ok_http_web_socket.dart +++ b/pkgs/ok_http/lib/src/ok_http_web_socket.dart @@ -77,92 +77,117 @@ class OkHttpWebSocket implements WebSocket { /// If provided, the [protocols] argument indicates the subprotocols that /// the peer is able to select. See /// [RFC-6455 1.9](https://datatracker.ietf.org/doc/html/rfc6455#section-1.9). - static Future connect(Uri url, - {Iterable? protocols}) async => - OkHttpWebSocket._()._connect(url, protocols); + static Future connect( + Uri url, { + Iterable? protocols, + }) async => OkHttpWebSocket._()._connect(url, protocols); Future _connect(Uri url, Iterable? protocols) async { if (!url.isScheme('ws') && !url.isScheme('wss')) { throw ArgumentError.value( - url, 'url', 'only ws: and wss: schemes are supported'); + url, + 'url', + 'only ws: and wss: schemes are supported', + ); } - final requestBuilder = - bindings.Request$Builder().url$1(url.toString().toJString()); + final requestBuilder = bindings.Request$Builder().url$1( + url.toString().toJString(), + ); if (protocols != null) { - requestBuilder.addHeader('Sec-WebSocket-Protocol'.toJString(), - protocols.join(', ').toJString()); + requestBuilder.addHeader( + 'Sec-WebSocket-Protocol'.toJString(), + protocols.join(', ').toJString(), + ); } var openCompleter = Completer(); _client.newWebSocket( - requestBuilder.build(), - bindings.WebSocketListenerProxy( - bindings.WebSocketListenerProxy$WebSocketListener.implement( - bindings.$WebSocketListenerProxy$WebSocketListener( - onOpen: (webSocket, response) { - _webSocket = webSocket; - - var protocolHeader = - response.header$1('sec-websocket-protocol'.toJString()); - if (protocolHeader != null) { - _protocol = protocolHeader.toDartString(releaseOriginal: true); - if (!(protocols?.contains(_protocol) ?? true)) { - openCompleter - .completeError(WebSocketException('Protocol mismatch. ' - 'Expected one of $protocols, but received $_protocol')); - return; + requestBuilder.build(), + bindings.WebSocketListenerProxy( + bindings.WebSocketListenerProxy$WebSocketListener.implement( + bindings.$WebSocketListenerProxy$WebSocketListener( + onOpen: (webSocket, response) { + _webSocket = webSocket; + + var protocolHeader = response.header$1( + 'sec-websocket-protocol'.toJString(), + ); + if (protocolHeader != null) { + _protocol = protocolHeader.toDartString(releaseOriginal: true); + if (!(protocols?.contains(_protocol) ?? true)) { + openCompleter.completeError( + WebSocketException( + 'Protocol mismatch. ' + 'Expected one of $protocols, but received $_protocol', + ), + ); + return; + } } - } - - openCompleter.complete(this); - }, - onMessage: (bindings.WebSocket webSocket, JString string) { - if (_events.isClosed) return; - _events.add(TextDataReceived(string.toDartString())); - }, - onMessage$1: - (bindings.WebSocket webSocket, bindings.ByteString byteString) { - if (_events.isClosed) return; - _events.add(BinaryDataReceived( - Uint8List.fromList(byteString.toByteArray().toList()))); - }, - onClosing: - (bindings.WebSocket webSocket, int i, JString string) async { - _okHttpClientClose(); - - if (_events.isClosed) return; - - _events.add(CloseReceived(i, string.toDartString())); - await _events.close(); - }, - onFailure: (bindings.WebSocket webSocket, JObject throwable, - bindings.Response? response) { - if (_events.isClosed) return; - - var throwableString = throwable.toString(); - - // If the throwable is: - // - java.net.ProtocolException: Control frames must be final. - // - java.io.EOFException - // - java.net.SocketException: Socket closed - // Then the connection was closed abnormally. - if (throwableString.contains(RegExp( - r'(java\.net\.ProtocolException: Control frames must be final\.|java\.io\.EOFException|java\.net\.SocketException: Socket closed)'))) { - _events.add(CloseReceived(1006, 'abnormal close')); - unawaited(_events.close()); - return; - } - var error = WebSocketException( - 'Connection ended unexpectedly $throwableString'); - if (openCompleter.isCompleted) { - _events.addError(error); - return; - } - openCompleter.completeError(error); - }, - )))); + + openCompleter.complete(this); + }, + onMessage: (bindings.WebSocket webSocket, JString string) { + if (_events.isClosed) return; + _events.add(TextDataReceived(string.toDartString())); + }, + onMessage$1: + (bindings.WebSocket webSocket, bindings.ByteString byteString) { + if (_events.isClosed) return; + _events.add( + BinaryDataReceived( + Uint8List.fromList(byteString.toByteArray().toList()), + ), + ); + }, + onClosing: + (bindings.WebSocket webSocket, int i, JString string) async { + _okHttpClientClose(); + + if (_events.isClosed) return; + + _events.add(CloseReceived(i, string.toDartString())); + await _events.close(); + }, + onFailure: + ( + bindings.WebSocket webSocket, + JObject throwable, + bindings.Response? response, + ) { + if (_events.isClosed) return; + + var throwableString = throwable.toString(); + + // If the throwable is: + // - java.net.ProtocolException: Control frames must be final. + // - java.io.EOFException + // - java.net.SocketException: Socket closed + // Then the connection was closed abnormally. + if (throwableString.contains( + RegExp( + r'(java\.net\.ProtocolException: Control frames must be final\.|java\.io\.EOFException|java\.net\.SocketException: Socket closed)', + ), + )) { + _events.add(CloseReceived(1006, 'abnormal close')); + unawaited(_events.close()); + return; + } + var error = WebSocketException( + 'Connection ended unexpectedly $throwableString', + ); + if (openCompleter.isCompleted) { + _events.addError(error); + return; + } + openCompleter.completeError(error); + }, + ), + ), + ), + ); return openCompleter.future; } @@ -174,12 +199,17 @@ class OkHttpWebSocket implements WebSocket { } if (code != null && code != 1000 && !(code >= 3000 && code <= 4999)) { - throw ArgumentError('Invalid argument: $code, close code must be 1000 or ' - 'in the range 3000-4999'); + throw ArgumentError( + 'Invalid argument: $code, close code must be 1000 or ' + 'in the range 3000-4999', + ); } if (reason != null && utf8.encode(reason).length > 123) { - throw ArgumentError.value(reason, 'reason', - 'reason must be <= 123 bytes long when encoded as UTF-8'); + throw ArgumentError.value( + reason, + 'reason', + 'reason must be <= 123 bytes long when encoded as UTF-8', + ); } unawaited(_events.close()); diff --git a/pkgs/ok_http/pubspec.yaml b/pkgs/ok_http/pubspec.yaml index b412de2bc4..1b74aef42c 100644 --- a/pkgs/ok_http/pubspec.yaml +++ b/pkgs/ok_http/pubspec.yaml @@ -5,7 +5,7 @@ description: >- repository: https://github.com/dart-lang/http/tree/master/pkgs/ok_http environment: - sdk: ^3.4.0 + sdk: ^3.9.0 flutter: ">=3.22.0" dependencies: diff --git a/pkgs/web_socket/example/web_socket_example.dart b/pkgs/web_socket/example/web_socket_example.dart index e87cb58d34..cbb73a7d77 100644 --- a/pkgs/web_socket/example/web_socket_example.dart +++ b/pkgs/web_socket/example/web_socket_example.dart @@ -13,8 +13,9 @@ const requestId = 305; void main() async { // Whitebit public WebSocket API documentation: // https://docs.whitebit.com/public/websocket/ - final socket = - await WebSocket.connect(Uri.parse('wss://api.whitebit.com/ws')); + final socket = await WebSocket.connect( + Uri.parse('wss://api.whitebit.com/ws'), + ); socket.events.listen((e) { switch (e) { @@ -36,9 +37,11 @@ void main() async { stderr.writeln('Connection to server closed'); } }); - socket.sendText(jsonEncode({ - 'id': requestId, - 'method': 'candles_subscribe', - 'params': ['BTC_USD', 5] - })); + socket.sendText( + jsonEncode({ + 'id': requestId, + 'method': 'candles_subscribe', + 'params': ['BTC_USD', 5], + }), + ); } diff --git a/pkgs/web_socket/lib/src/browser_web_socket.dart b/pkgs/web_socket/lib/src/browser_web_socket.dart index fc66628b7a..1b94a90381 100644 --- a/pkgs/web_socket/lib/src/browser_web_socket.dart +++ b/pkgs/web_socket/lib/src/browser_web_socket.dart @@ -25,16 +25,22 @@ class BrowserWebSocket implements WebSocket { /// If provided, the [protocols] argument indicates that subprotocols that /// the peer is able to select. See /// [RFC-6455 1.9](https://datatracker.ietf.org/doc/html/rfc6455#section-1.9). - static Future connect(Uri url, - {Iterable? protocols}) async { + static Future connect( + Uri url, { + Iterable? protocols, + }) async { if (!url.isScheme('ws') && !url.isScheme('wss')) { throw ArgumentError.value( - url, 'url', 'only ws: and wss: schemes are supported'); + url, + 'url', + 'only ws: and wss: schemes are supported', + ); } - final webSocket = web.WebSocket(url.toString(), - protocols?.map((e) => e.toJS).toList().toJS ?? JSArray()) - ..binaryType = 'arraybuffer'; + final webSocket = web.WebSocket( + url.toString(), + protocols?.map((e) => e.toJS).toList().toJS ?? JSArray(), + )..binaryType = 'arraybuffer'; final browserSocket = BrowserWebSocket._(webSocket); final webSocketConnected = Completer(); @@ -43,28 +49,35 @@ class BrowserWebSocket implements WebSocket { } else { if (webSocket.readyState == web.WebSocket.CLOSING || webSocket.readyState == web.WebSocket.CLOSED) { - webSocketConnected.completeError(WebSocketException( + webSocketConnected.completeError( + WebSocketException( 'Unexpected WebSocket state: ${webSocket.readyState}, ' - 'expected CONNECTING (0) or OPEN (1)')); + 'expected CONNECTING (0) or OPEN (1)', + ), + ); } else { // The socket API guarantees that only a single open event will be // emitted. - unawaited(webSocket.onOpen.first.then((_) { - webSocketConnected.complete(browserSocket); - })); + unawaited( + webSocket.onOpen.first.then((_) { + webSocketConnected.complete(browserSocket); + }), + ); } } - unawaited(webSocket.onError.first.then((e) { - // Unfortunately, the underlying WebSocket API doesn't expose any - // specific information about the error itself. - if (!webSocketConnected.isCompleted) { - final error = WebSocketException('Failed to connect WebSocket'); - webSocketConnected.completeError(error); - } else { - browserSocket._closed(1006, 'error'); - } - })); + unawaited( + webSocket.onError.first.then((e) { + // Unfortunately, the underlying WebSocket API doesn't expose any + // specific information about the error itself. + if (!webSocketConnected.isCompleted) { + final error = WebSocketException('Failed to connect WebSocket'); + webSocketConnected.completeError(error); + } else { + browserSocket._closed(1006, 'error'); + } + }), + ); webSocket.onMessage.listen((e) { if (browserSocket._events.isClosed) return; @@ -76,19 +89,22 @@ class BrowserWebSocket implements WebSocket { } else if (eventData.typeofEquals('object') && (eventData as JSObject).instanceOfString('ArrayBuffer')) { data = BinaryDataReceived( - (eventData as JSArrayBuffer).toDart.asUint8List()); + (eventData as JSArrayBuffer).toDart.asUint8List(), + ); } else { throw StateError('unexpected message type: ${eventData.runtimeType}'); } browserSocket._events.add(data); }); - unawaited(webSocket.onClose.first.then((event) { - if (!webSocketConnected.isCompleted) { - webSocketConnected.complete(browserSocket); - } - browserSocket._closed(event.code, event.reason); - })); + unawaited( + webSocket.onClose.first.then((event) { + if (!webSocketConnected.isCompleted) { + webSocketConnected.complete(browserSocket); + } + browserSocket._closed(event.code, event.reason); + }), + ); return webSocketConnected.future; } diff --git a/pkgs/web_socket/lib/src/io_web_socket.dart b/pkgs/web_socket/lib/src/io_web_socket.dart index 7ea084bec3..aa8575eaad 100644 --- a/pkgs/web_socket/lib/src/io_web_socket.dart +++ b/pkgs/web_socket/lib/src/io_web_socket.dart @@ -23,17 +23,24 @@ class IOWebSocket implements WebSocket { /// If provided, the [protocols] argument indicates that subprotocols that /// the peer is able to select. See /// [RFC-6455 1.9](https://datatracker.ietf.org/doc/html/rfc6455#section-1.9). - static Future connect(Uri url, - {Iterable? protocols}) async { + static Future connect( + Uri url, { + Iterable? protocols, + }) async { if (!url.isScheme('ws') && !url.isScheme('wss')) { throw ArgumentError.value( - url, 'url', 'only ws: and wss: schemes are supported'); + url, + 'url', + 'only ws: and wss: schemes are supported', + ); } final io.WebSocket webSocket; try { - webSocket = - await io.WebSocket.connect(url.toString(), protocols: protocols); + webSocket = await io.WebSocket.connect( + url.toString(), + protocols: protocols, + ); } on io.WebSocketException catch (e) { throw WebSocketException(e.message); } @@ -44,7 +51,8 @@ class IOWebSocket implements WebSocket { // See https://github.com/dart-lang/sdk/issues/55106 await webSocket.close(1002); // protocol error throw WebSocketException( - 'unexpected protocol selected by peer: ${webSocket.protocol}'); + 'unexpected protocol selected by peer: ${webSocket.protocol}', + ); } return IOWebSocket._(webSocket); } @@ -67,8 +75,9 @@ class IOWebSocket implements WebSocket { onError: (Object e, StackTrace st) { if (_events.isClosed) return; final wse = switch (e) { - io.WebSocketException(message: final message) => - WebSocketException(message), + io.WebSocketException(message: final message) => WebSocketException( + message, + ), _ => WebSocketException(e.toString()), }; _events.addError(wse, st); @@ -77,7 +86,8 @@ class IOWebSocket implements WebSocket { if (_events.isClosed) return; _events ..add( - CloseReceived(_webSocket.closeCode, _webSocket.closeReason ?? '')) + CloseReceived(_webSocket.closeCode, _webSocket.closeReason ?? ''), + ) ..close(); }, ); diff --git a/pkgs/web_socket/lib/src/utils.dart b/pkgs/web_socket/lib/src/utils.dart index 7331840f62..5f9782d3d9 100644 --- a/pkgs/web_socket/lib/src/utils.dart +++ b/pkgs/web_socket/lib/src/utils.dart @@ -7,15 +7,20 @@ import 'dart:convert'; /// Throw if the given close code is not valid. void checkCloseCode(int? code) { if (code != null && code != 1000 && !(code >= 3000 && code <= 4999)) { - throw ArgumentError('Invalid argument: $code, close code must be 1000 or ' - 'in the range 3000-4999'); + throw ArgumentError( + 'Invalid argument: $code, close code must be 1000 or ' + 'in the range 3000-4999', + ); } } /// Throw if the given close reason is not valid. void checkCloseReason(String? reason) { if (reason != null && utf8.encode(reason).length > 123) { - throw ArgumentError.value(reason, 'reason', - 'reason must be <= 123 bytes long when encoded as UTF-8'); + throw ArgumentError.value( + reason, + 'reason', + 'reason must be <= 123 bytes long when encoded as UTF-8', + ); } } diff --git a/pkgs/web_socket/lib/src/web_socket.dart b/pkgs/web_socket/lib/src/web_socket.dart index 76cbb888a4..25b042bbc8 100644 --- a/pkgs/web_socket/lib/src/web_socket.dart +++ b/pkgs/web_socket/lib/src/web_socket.dart @@ -6,7 +6,8 @@ import 'dart:typed_data'; import 'connect_stub.dart' if (dart.library.js_interop) 'browser_web_socket.dart' - if (dart.library.io) 'io_web_socket.dart' as connector; + if (dart.library.io) 'io_web_socket.dart' + as connector; /// An event received from the peer through the [WebSocket]. sealed class WebSocketEvent {} diff --git a/pkgs/web_socket/pubspec.yaml b/pkgs/web_socket/pubspec.yaml index b4e3e54b16..2982497d0f 100644 --- a/pkgs/web_socket/pubspec.yaml +++ b/pkgs/web_socket/pubspec.yaml @@ -6,7 +6,7 @@ repository: https://github.com/dart-lang/http/tree/master/pkgs/web_socket version: 1.0.1 environment: - sdk: ^3.4.0 + sdk: ^3.9.0 dependencies: web: '>=0.5.0 <2.0.0' diff --git a/pkgs/web_socket/test/exceptions_test.dart b/pkgs/web_socket/test/exceptions_test.dart index 5ed2711a76..4d816ad76f 100644 --- a/pkgs/web_socket/test/exceptions_test.dart +++ b/pkgs/web_socket/test/exceptions_test.dart @@ -25,7 +25,9 @@ void main() { final exception = WebSocketConnectionClosed(); expect(exception.message, 'Connection Closed'); expect( - exception.toString(), 'WebSocketConnectionClosed: Connection Closed'); + exception.toString(), + 'WebSocketConnectionClosed: Connection Closed', + ); }); test('empty message', () async { diff --git a/pkgs/web_socket/test/io_web_socket_test.dart b/pkgs/web_socket/test/io_web_socket_test.dart index a0ee671ddd..040d27a507 100644 --- a/pkgs/web_socket/test/io_web_socket_test.dart +++ b/pkgs/web_socket/test/io_web_socket_test.dart @@ -21,16 +21,17 @@ void main() { server = (await io.HttpServer.bind('localhost', 0)) ..listen((request) async { headers = request.headers; - await io.WebSocketTransformer.upgrade(request) - .then((webSocket) => webSocket.listen(webSocket.add)); + await io.WebSocketTransformer.upgrade( + request, + ).then((webSocket) => webSocket.listen(webSocket.add)); }); uri = Uri.parse('ws://localhost:${server.port}'); }); test('custom headers', () async { - final ws = IOWebSocket.fromWebSocket(await io.WebSocket.connect( - uri.toString(), - headers: {'fruit': 'apple'})); + final ws = IOWebSocket.fromWebSocket( + await io.WebSocket.connect(uri.toString(), headers: {'fruit': 'apple'}), + ); expect(headers['fruit'], ['apple']); ws.sendText('Hello World!'); expect(await ws.events.first, TextDataReceived('Hello World!')); diff --git a/pkgs/web_socket_channel/lib/adapter_web_socket_channel.dart b/pkgs/web_socket_channel/lib/adapter_web_socket_channel.dart index 0271f44f1b..2b11e4501f 100644 --- a/pkgs/web_socket_channel/lib/adapter_web_socket_channel.dart +++ b/pkgs/web_socket_channel/lib/adapter_web_socket_channel.dart @@ -48,8 +48,10 @@ class AdapterWebSocketChannel extends StreamChannelMixin @override Stream get stream => _controller.foreign.stream; - final _controller = - StreamChannelController(sync: true, allowForeignErrors: false); + final _controller = StreamChannelController( + sync: true, + allowForeignErrors: false, + ); @override late final WebSocketSink sink = _WebSocketSink(this); @@ -64,9 +66,10 @@ class AdapterWebSocketChannel extends StreamChannelMixin /// connected to the peer. The [ready] future will complete after the channel /// is connected. If there are errors creating the connection the [ready] /// future will complete with an error. - factory AdapterWebSocketChannel.connect(Uri url, - {Iterable? protocols}) => - AdapterWebSocketChannel(WebSocket.connect(url, protocols: protocols)); + factory AdapterWebSocketChannel.connect( + Uri url, { + Iterable? protocols, + }) => AdapterWebSocketChannel(WebSocket.connect(url, protocols: protocols)); // Construct a [WebSocketWebSocketChannelAdapter] from an existing // [WebSocket]. @@ -78,56 +81,63 @@ class AdapterWebSocketChannel extends StreamChannelMixin webSocketFuture = webSocket; } - webSocketFuture.then((webSocket) { - webSocket.events.listen((event) { - switch (event) { - case TextDataReceived(text: final text): - _controller.local.sink.add(text); - case BinaryDataReceived(data: final data): - _controller.local.sink.add(data); - case CloseReceived(code: final code, reason: final reason): - _closeCode = code; - _closeReason = reason; - _controller.local.sink.close(); - } - }); - _controller.local.stream.listen((obj) { - try { - switch (obj) { - case final String s: - webSocket.sendText(s); - case final Uint8List b: - webSocket.sendBytes(b); - case final List b: - webSocket.sendBytes(Uint8List.fromList(b)); - default: - throw UnsupportedError('Cannot send ${obj.runtimeType}'); + webSocketFuture.then( + (webSocket) { + webSocket.events.listen((event) { + switch (event) { + case TextDataReceived(text: final text): + _controller.local.sink.add(text); + case BinaryDataReceived(data: final data): + _controller.local.sink.add(data); + case CloseReceived(code: final code, reason: final reason): + _closeCode = code; + _closeReason = reason; + _controller.local.sink.close(); } - } on WebSocketConnectionClosed { - // There is nowhere to surface this error; `_controller.local.sink` - // has already been closed. - } - }, onDone: () async { - try { - await webSocket.close(_localCloseCode, _localCloseReason); - } on WebSocketConnectionClosed { - // It is not an error to close an already-closed `WebSocketChannel`. + }); + _controller.local.stream.listen( + (obj) { + try { + switch (obj) { + case final String s: + webSocket.sendText(s); + case final Uint8List b: + webSocket.sendBytes(b); + case final List b: + webSocket.sendBytes(Uint8List.fromList(b)); + default: + throw UnsupportedError('Cannot send ${obj.runtimeType}'); + } + } on WebSocketConnectionClosed { + // There is nowhere to surface this error; + // `_controller.local.sink` has already been closed. + } + }, + onDone: () async { + try { + await webSocket.close(_localCloseCode, _localCloseReason); + } on WebSocketConnectionClosed { + // It is not an error to close an already-closed + // `WebSocketChannel`. + } + }, + ); + _protocol = webSocket.protocol; + _readyCompleter.complete(); + }, + onError: (Object e) { + Exception error; + if (e is TimeoutException) { + // Required for backwards compatibility with `IOWebSocketChannel`. + error = e; + } else { + error = WebSocketChannelException.from(e); } - }); - _protocol = webSocket.protocol; - _readyCompleter.complete(); - }, onError: (Object e) { - Exception error; - if (e is TimeoutException) { - // Required for backwards compatibility with `IOWebSocketChannel`. - error = e; - } else { - error = WebSocketChannelException.from(e); - } - _readyCompleter.completeError(error); - _controller.local.sink.addError(error); - _controller.local.sink.close(); - }); + _readyCompleter.completeError(error); + _controller.local.sink.addError(error); + _controller.local.sink.close(); + }, + ); } } @@ -137,8 +147,8 @@ class _WebSocketSink extends DelegatingStreamSink implements WebSocketSink { final AdapterWebSocketChannel _channel; _WebSocketSink(AdapterWebSocketChannel channel) - : _channel = channel, - super(channel._controller.foreign.sink); + : _channel = channel, + super(channel._controller.foreign.sink); @override Future close([int? closeCode, String? closeReason]) { diff --git a/pkgs/web_socket_channel/lib/html.dart b/pkgs/web_socket_channel/lib/html.dart index a5a912e448..83c3d07da9 100644 --- a/pkgs/web_socket_channel/lib/html.dart +++ b/pkgs/web_socket_channel/lib/html.dart @@ -55,8 +55,10 @@ class HtmlWebSocketChannel extends StreamChannelMixin @override Stream get stream => _controller.foreign.stream; - final _controller = - StreamChannelController(sync: true, allowForeignErrors: false); + final _controller = StreamChannelController( + sync: true, + allowForeignErrors: false, + ); @override late final WebSocketSink sink = _HtmlWebSocketSink(this); @@ -72,20 +74,22 @@ class HtmlWebSocketChannel extends StreamChannelMixin /// received by this socket. It defaults to [BinaryType.list], which causes /// binary messages to be delivered as [Uint8List]s. If it's /// [BinaryType.blob], they're delivered as [Blob]s instead. - HtmlWebSocketChannel.connect(Object url, - {Iterable? protocols, BinaryType? binaryType}) - : this( - WebSocket( - url.toString(), - protocols?.map((e) => e.toJS).toList().toJS ?? JSArray(), - )..binaryType = (binaryType ?? BinaryType.list).value, - ); + HtmlWebSocketChannel.connect( + Object url, { + Iterable? protocols, + BinaryType? binaryType, + }) : this( + WebSocket( + url.toString(), + protocols?.map((e) => e.toJS).toList().toJS ?? JSArray(), + )..binaryType = (binaryType ?? BinaryType.list).value, + ); /// Creates a channel wrapping [webSocket]. /// /// The parameter [webSocket] should be a `package:web` [WebSocket] instance. HtmlWebSocketChannel(Object /*WebSocket*/ webSocket) - : innerWebSocket = webSocket as WebSocket { + : innerWebSocket = webSocket as WebSocket { _readyCompleter = Completer(); if (innerWebSocket.readyState == WebSocket.OPEN) { _readyCompleter.complete(); @@ -93,8 +97,11 @@ class HtmlWebSocketChannel extends StreamChannelMixin } else { if (innerWebSocket.readyState == WebSocket.CLOSING || innerWebSocket.readyState == WebSocket.CLOSED) { - _readyCompleter.completeError(WebSocketChannelException( - 'WebSocket state error: ${innerWebSocket.readyState}')); + _readyCompleter.completeError( + WebSocketChannelException( + 'WebSocket state error: ${innerWebSocket.readyState}', + ), + ); } // The socket API guarantees that only a single open event will be // emitted. @@ -146,20 +153,24 @@ class HtmlWebSocketChannel extends StreamChannelMixin /// Pipes user events to [innerWebSocket]. void _listen() { - _controller.local.stream.listen((obj) => innerWebSocket.send(obj!.jsify()!), - onDone: () { - // On Chrome and possibly other browsers, `null` can't be passed as the - // default here. The actual arity of the function call must be correct or - // it will fail. - if ((_localCloseCode, _localCloseReason) - case (final closeCode?, final closeReason?)) { - innerWebSocket.close(closeCode, closeReason); - } else if (_localCloseCode case final closeCode?) { - innerWebSocket.close(closeCode); - } else { - innerWebSocket.close(); - } - }); + _controller.local.stream.listen( + (obj) => innerWebSocket.send(obj!.jsify()!), + onDone: () { + // On Chrome and possibly other browsers, `null` can't be passed as the + // default here. The actual arity of the function call must be + // correct or it will fail. + if ((_localCloseCode, _localCloseReason) case ( + final closeCode?, + final closeReason?, + )) { + innerWebSocket.close(closeCode, closeReason); + } else if (_localCloseCode case final closeCode?) { + innerWebSocket.close(closeCode); + } else { + innerWebSocket.close(); + } + }, + ); } } @@ -169,8 +180,8 @@ class _HtmlWebSocketSink extends DelegatingStreamSink implements WebSocketSink { final HtmlWebSocketChannel _channel; _HtmlWebSocketSink(HtmlWebSocketChannel channel) - : _channel = channel, - super(channel._controller.foreign.sink); + : _channel = channel, + super(channel._controller.foreign.sink); @override Future close([int? closeCode, String? closeReason]) { diff --git a/pkgs/web_socket_channel/lib/io.dart b/pkgs/web_socket_channel/lib/io.dart index ff10d1a614..f69718f8f1 100644 --- a/pkgs/web_socket_channel/lib/io.dart +++ b/pkgs/web_socket_channel/lib/io.dart @@ -57,7 +57,9 @@ class IOWebSocketChannel extends AdapterWebSocketChannel { /// Creates a channel wrapping [webSocket]. IOWebSocketChannel(FutureOr webSocket) - : super(webSocket is Future + : super( + webSocket is Future ? webSocket.then(IOWebSocket.fromWebSocket) as FutureOr - : IOWebSocket.fromWebSocket(webSocket)); + : IOWebSocket.fromWebSocket(webSocket), + ); } diff --git a/pkgs/web_socket_channel/lib/src/channel.dart b/pkgs/web_socket_channel/lib/src/channel.dart index 4f1f06f679..9aba61bf1a 100644 --- a/pkgs/web_socket_channel/lib/src/channel.dart +++ b/pkgs/web_socket_channel/lib/src/channel.dart @@ -84,11 +84,11 @@ abstract interface class WebSocketChannel extends StreamChannelMixin { /// /// [initial handshake]: https://tools.ietf.org/html/rfc6455#section-4.2.2 static String signKey(String key) - // We use [codeUnits] here rather than UTF-8-decoding the string because - // [key] is expected to be base64 encoded, and so will be pure ASCII. - => - convert.base64 - .encode(sha1.convert((key + _webSocketGUID).codeUnits).bytes); + // We use [codeUnits] here rather than UTF-8-decoding the string because + // [key] is expected to be base64 encoded, and so will be pure ASCII. + => convert.base64.encode( + sha1.convert((key + _webSocketGUID).codeUnits).bytes, + ); /// Creates a new WebSocket connection. /// diff --git a/pkgs/web_socket_channel/pubspec.yaml b/pkgs/web_socket_channel/pubspec.yaml index 0bbbd49be0..136a8227f3 100644 --- a/pkgs/web_socket_channel/pubspec.yaml +++ b/pkgs/web_socket_channel/pubspec.yaml @@ -5,7 +5,7 @@ description: >- repository: https://github.com/dart-lang/http/tree/master/pkgs/web_socket_channel environment: - sdk: ^3.3.0 + sdk: ^3.9.0 dependencies: async: ^2.5.0 diff --git a/pkgs/web_socket_channel/test/adapter_web_socket_channel_test.dart b/pkgs/web_socket_channel/test/adapter_web_socket_channel_test.dart index 44ed7a9b11..760280508e 100644 --- a/pkgs/web_socket_channel/test/adapter_web_socket_channel_test.dart +++ b/pkgs/web_socket_channel/test/adapter_web_socket_channel_test.dart @@ -34,11 +34,14 @@ void main() { }); test('failed connect', () async { - final channel = - AdapterWebSocketChannel.connect(Uri.parse('ws://notahost')); + final channel = AdapterWebSocketChannel.connect( + Uri.parse('ws://notahost'), + ); await expectLater( - channel.ready, throwsA(isA())); + channel.ready, + throwsA(isA()), + ); }); test('good connect', () async { @@ -90,7 +93,7 @@ void main() { 'This count says:', [1, 2, 3], 'And then:', - [4, 5, 6] + [4, 5, 6], ]); }); @@ -126,7 +129,7 @@ void main() { 'This count says:', [1, 2, 3], 'And then:', - [4, 5, 6] + [4, 5, 6], ]); }); @@ -143,7 +146,7 @@ void main() { 'This count says:', [1, 2, 3], 'And then:', - [4, 5, 6] + [4, 5, 6], ]); }); }); diff --git a/pkgs/web_socket_channel/test/echo_server_vm.dart b/pkgs/web_socket_channel/test/echo_server_vm.dart index 99ef2a2369..8e0671ebaa 100644 --- a/pkgs/web_socket_channel/test/echo_server_vm.dart +++ b/pkgs/web_socket_channel/test/echo_server_vm.dart @@ -11,18 +11,20 @@ Future hybridMain(StreamChannel channel) async { late HttpServer server; server = (await HttpServer.bind('localhost', 0)) - ..transform(WebSocketTransformer()) - .listen((WebSocket webSocket) => webSocket.listen((data) { - if (data == 'close') { - webSocket.close(3001, 'you asked me to'); - } else { - webSocket.add(data); - } - })); + ..transform(WebSocketTransformer()).listen( + (WebSocket webSocket) => webSocket.listen((data) { + if (data == 'close') { + webSocket.close(3001, 'you asked me to'); + } else { + webSocket.add(data); + } + }), + ); channel.sink.add(server.port); await channel - .stream.first; // Any writes indicates that the server should exit. + .stream + .first; // Any writes indicates that the server should exit. unawaited(server.close()); } diff --git a/pkgs/web_socket_channel/test/html_test.dart b/pkgs/web_socket_channel/test/html_test.dart index 98fe43f3ae..034a5405b8 100644 --- a/pkgs/web_socket_channel/test/html_test.dart +++ b/pkgs/web_socket_channel/test/html_test.dart @@ -122,25 +122,31 @@ void main() { expect(await queue.next, equals([1, 2, 3, 4, 5])); }); - test('.connect defaults to binary lists using platform independent api', - () async { - final channel = WebSocketChannel.connect(Uri.parse('ws://localhost:$port')); + test( + '.connect defaults to binary lists using platform independent api', + () async { + final channel = WebSocketChannel.connect( + Uri.parse('ws://localhost:$port'), + ); - expect(channel.ready, completes); + expect(channel.ready, completes); - addTearDown(channel.sink.close); + addTearDown(channel.sink.close); - final queue = StreamQueue(channel.stream); - channel.sink.add('foo'); - expect(await queue.next, equals('foo')); + final queue = StreamQueue(channel.stream); + channel.sink.add('foo'); + expect(await queue.next, equals('foo')); - channel.sink.add(Uint8List.fromList([1, 2, 3, 4, 5])); - expect(await queue.next, equals([1, 2, 3, 4, 5])); - }); + channel.sink.add(Uint8List.fromList([1, 2, 3, 4, 5])); + expect(await queue.next, equals([1, 2, 3, 4, 5])); + }, + ); test('.connect can use blobs', () async { - final channel = HtmlWebSocketChannel.connect('ws://localhost:$port', - binaryType: BinaryType.blob); + final channel = HtmlWebSocketChannel.connect( + 'ws://localhost:$port', + binaryType: BinaryType.blob, + ); expect(channel.ready, completes); @@ -152,13 +158,16 @@ void main() { channel.sink.add(Uint8List.fromList([1, 2, 3, 4, 5])); expect( - await _decodeBlob(await queue.next as Blob), equals([1, 2, 3, 4, 5])); + await _decodeBlob(await queue.next as Blob), + equals([1, 2, 3, 4, 5]), + ); }); - test('.connect wraps a connection error in WebSocketChannelException', - () async { - // Spawn a server that will immediately reject the connection. - final serverChannel = spawnHybridCode(r''' + test( + '.connect wraps a connection error in WebSocketChannelException', + () async { + // Spawn a server that will immediately reject the connection. + final serverChannel = spawnHybridCode(r''' import 'dart:io'; import 'package:stream_channel/stream_channel.dart'; @@ -172,13 +181,18 @@ void main() { } '''); - // TODO(nweiz): Make this channel use a port number that's guaranteed to be - // invalid. - final channel = HtmlWebSocketChannel.connect( - 'ws://localhost:${await serverChannel.firstAsInt}'); - expect(channel.ready, throwsA(isA())); - expect(channel.stream.toList(), throwsA(isA())); - }); + // TODO(nweiz): Make this channel use a port number that's + // guaranteed to be invalid. + final channel = HtmlWebSocketChannel.connect( + 'ws://localhost:${await serverChannel.firstAsInt}', + ); + expect(channel.ready, throwsA(isA())); + expect( + channel.stream.toList(), + throwsA(isA()), + ); + }, + ); } Future> _decodeBlob(Blob blob) async { diff --git a/pkgs/web_socket_channel/test/io_test.dart b/pkgs/web_socket_channel/test/io_test.dart index 2d5d578083..a78fbbbf3a 100644 --- a/pkgs/web_socket_channel/test/io_test.dart +++ b/pkgs/web_socket_channel/test/io_test.dart @@ -34,20 +34,23 @@ void main() { expect(channel.ready, completes); var n = 0; - channel.stream.listen((message) { - if (n == 0) { - expect(message, equals('hello!')); - channel.sink.add('ping'); - } else if (n == 1) { - expect(message, equals('pong')); - } else { - fail('Only expected two messages.'); - } - n++; - }, onDone: expectAsync0(() { - expect(channel.closeCode, equals(3678)); - expect(channel.closeReason, equals('raisin')); - })); + channel.stream.listen( + (message) { + if (n == 0) { + expect(message, equals('hello!')); + channel.sink.add('ping'); + } else if (n == 1) { + expect(message, equals('pong')); + } else { + fail('Only expected two messages.'); + } + n++; + }, + onDone: expectAsync0(() { + expect(channel.closeCode, equals(3678)); + expect(channel.closeReason, equals('raisin')); + }), + ); }); test('.connect communicates immediately', () async { @@ -67,36 +70,45 @@ void main() { channel.sink.add('ping'); - channel.stream.listen(expectAsync1((message) { - expect(message, equals('pong')); - channel.sink.close(3678, 'raisin'); - }), onDone: expectAsync0(() {})); + channel.stream.listen( + expectAsync1((message) { + expect(message, equals('pong')); + channel.sink.close(3678, 'raisin'); + }), + onDone: expectAsync0(() {}), + ); }); - test('.connect communicates immediately using platform independent api', - () async { - server = await HttpServer.bind('localhost', 0); - addTearDown(server.close); - server.transform(WebSocketTransformer()).listen((WebSocket webSocket) { - final channel = IOWebSocketChannel(webSocket); - channel.stream.listen((request) { - expect(request, equals('ping')); - channel.sink.add('pong'); + test( + '.connect communicates immediately using platform independent api', + () async { + server = await HttpServer.bind('localhost', 0); + addTearDown(server.close); + server.transform(WebSocketTransformer()).listen((WebSocket webSocket) { + final channel = IOWebSocketChannel(webSocket); + channel.stream.listen((request) { + expect(request, equals('ping')); + channel.sink.add('pong'); + }); }); - }); - final channel = - WebSocketChannel.connect(Uri.parse('ws://localhost:${server.port}')); + final channel = WebSocketChannel.connect( + Uri.parse('ws://localhost:${server.port}'), + ); - expect(channel.ready, completes); + expect(channel.ready, completes); - channel.sink.add('ping'); + channel.sink.add('ping'); - channel.stream.listen(expectAsync1((message) { - expect(message, equals('pong')); - channel.sink.close(3678, 'raisin'); - }), onDone: expectAsync0(() {})); - }); + channel.stream.listen( + expectAsync1((message) { + expect(message, equals('pong')); + channel.sink.close(3678, 'raisin'); + }), + onDone: expectAsync0(() {}), + ); + }, + ); test('.connect with an immediate call to close', () async { server = await HttpServer.bind('localhost', 0); @@ -117,20 +129,26 @@ void main() { await channel.sink.close(3678, 'raisin'); }); - test('.connect wraps a connection error in WebSocketChannelException', - () async { - server = await HttpServer.bind('localhost', 0); - addTearDown(server.close); - server.listen((request) { - request.response.statusCode = 404; - request.response.close(); - }); + test( + '.connect wraps a connection error in WebSocketChannelException', + () async { + server = await HttpServer.bind('localhost', 0); + addTearDown(server.close); + server.listen((request) { + request.response.statusCode = 404; + request.response.close(); + }); - final channel = IOWebSocketChannel.connect('ws://localhost:${server.port}'); - expect(channel.ready, throwsA(isA())); - expect(channel.stream.drain(), - throwsA(isA())); - }); + final channel = IOWebSocketChannel.connect( + 'ws://localhost:${server.port}', + ); + expect(channel.ready, throwsA(isA())); + expect( + channel.stream.drain(), + throwsA(isA()), + ); + }, + ); test('.protocols fail', () async { const passedProtocol = 'passed-protocol'; @@ -172,8 +190,10 @@ void main() { await webSocket.close(); }); - final channel = IOWebSocketChannel.connect('ws://localhost:${server.port}', - protocols: [passedProtocol]); + final channel = IOWebSocketChannel.connect( + 'ws://localhost:${server.port}', + protocols: [passedProtocol], + ); expect(channel.ready, completes); @@ -205,15 +225,19 @@ void main() { server = await HttpServer.bind('localhost', 0); addTearDown(server.close); server - .transform(StreamTransformer.fromHandlers( + .transform( + StreamTransformer.fromHandlers( handleData: (data, sink) { - // Wait before we handle this request, to give the timeout a chance to - // kick in. We still want to make sure that we handle the request - // afterwards to not have false positives with the timeout - Timer(const Duration(milliseconds: 800), () { - sink.add(data); - }); - })) + // Wait before we handle this request, to give the timeout a + // chance to kick in. We still want to make sure that we handle + // the request afterwards to not have false positives with the + // timeout + Timer(const Duration(milliseconds: 800), () { + sink.add(data); + }); + }, + ), + ) .transform(WebSocketTransformer()) .listen((webSocket) { final channel = IOWebSocketChannel(webSocket); @@ -232,12 +256,16 @@ void main() { test('.custom client is passed through', () async { server = await HttpServer.bind('localhost', 0); addTearDown(server.close); - server.transform(StreamTransformer.fromHandlers( - handleData: (data, sink) { - expect(data.headers['user-agent'], ['custom']); - sink.add(data); - }, - )).transform(WebSocketTransformer()); + server + .transform( + StreamTransformer.fromHandlers( + handleData: (data, sink) { + expect(data.headers['user-agent'], ['custom']); + sink.add(data); + }, + ), + ) + .transform(WebSocketTransformer()); final channel = IOWebSocketChannel.connect( 'ws://localhost:${server.port}', diff --git a/pkgs/web_socket_conformance_tests/bin/generate_server_wrappers.dart b/pkgs/web_socket_conformance_tests/bin/generate_server_wrappers.dart index 045b7ba3f5..24b34b89a6 100644 --- a/pkgs/web_socket_conformance_tests/bin/generate_server_wrappers.dart +++ b/pkgs/web_socket_conformance_tests/bin/generate_server_wrappers.dart @@ -37,16 +37,23 @@ Future> startServer() async => spawnHybridUri(Uri( void main() async { final files = await Directory('lib/src').list().toList(); - final formatter = - DartFormatter(languageVersion: DartFormatter.latestLanguageVersion); + final formatter = DartFormatter( + languageVersion: DartFormatter.latestLanguageVersion, + ); files.where((file) => file.path.endsWith('_server.dart')).forEach((file) { final vmPath = file.path.replaceAll('_server.dart', '_server_vm.dart'); - File(vmPath).writeAsStringSync(formatter.format(vm.replaceAll( - '', file.uri.pathSegments.last))); + File(vmPath).writeAsStringSync( + formatter.format( + vm.replaceAll('', file.uri.pathSegments.last), + ), + ); final webPath = file.path.replaceAll('_server.dart', '_server_web.dart'); - File(webPath).writeAsStringSync(formatter.format(web.replaceAll( - '', file.uri.pathSegments.last))); + File(webPath).writeAsStringSync( + formatter.format( + web.replaceAll('', file.uri.pathSegments.last), + ), + ); }); } diff --git a/pkgs/web_socket_conformance_tests/example/client_test.dart b/pkgs/web_socket_conformance_tests/example/client_test.dart index 7e71b3b399..0fb075ab55 100644 --- a/pkgs/web_socket_conformance_tests/example/client_test.dart +++ b/pkgs/web_socket_conformance_tests/example/client_test.dart @@ -9,9 +9,10 @@ import 'package:web_socket/web_socket.dart'; import 'package:web_socket_conformance_tests/web_socket_conformance_tests.dart'; class MyWebSocketImplementation implements WebSocket { - static Future connect(Uri uri, - {Iterable? protocols}) async => - MyWebSocketImplementation(); + static Future connect( + Uri uri, { + Iterable? protocols, + }) async => MyWebSocketImplementation(); @override Future close([int? code, String? reason]) => throw UnimplementedError(); diff --git a/pkgs/web_socket_conformance_tests/lib/src/close_local_server.dart b/pkgs/web_socket_conformance_tests/lib/src/close_local_server.dart index 8991de3cc8..08956f4653 100644 --- a/pkgs/web_socket_conformance_tests/lib/src/close_local_server.dart +++ b/pkgs/web_socket_conformance_tests/lib/src/close_local_server.dart @@ -13,21 +13,23 @@ void hybridMain(StreamChannel channel) async { server = (await HttpServer.bind('localhost', 0)) ..listen((request) async { - final webSocket = await WebSocketTransformer.upgrade( - request, - ); + final webSocket = await WebSocketTransformer.upgrade(request); - webSocket.listen((event) { - channel.sink.add(event); - }, onDone: () { - webSocket.close(4123, 'server closed the connection'); - channel.sink.add(webSocket.closeCode); - channel.sink.add(webSocket.closeReason); - }); + webSocket.listen( + (event) { + channel.sink.add(event); + }, + onDone: () { + webSocket.close(4123, 'server closed the connection'); + channel.sink.add(webSocket.closeCode); + channel.sink.add(webSocket.closeReason); + }, + ); }); channel.sink.add(server.port); await channel - .stream.first; // Any writes indicates that the server should exit. + .stream + .first; // Any writes indicates that the server should exit. unawaited(server.close()); } diff --git a/pkgs/web_socket_conformance_tests/lib/src/close_local_server_web.dart b/pkgs/web_socket_conformance_tests/lib/src/close_local_server_web.dart index f7bb3810a6..75e3394a7f 100644 --- a/pkgs/web_socket_conformance_tests/lib/src/close_local_server_web.dart +++ b/pkgs/web_socket_conformance_tests/lib/src/close_local_server_web.dart @@ -4,6 +4,9 @@ import 'package:stream_channel/stream_channel.dart'; import 'package:test/test.dart'; /// Starts the redirect test HTTP server out-of-process. -Future> startServer() async => spawnHybridUri(Uri( +Future> startServer() async => spawnHybridUri( + Uri( scheme: 'package', - path: 'web_socket_conformance_tests/src/close_local_server.dart')); + path: 'web_socket_conformance_tests/src/close_local_server.dart', + ), +); diff --git a/pkgs/web_socket_conformance_tests/lib/src/close_local_tests.dart b/pkgs/web_socket_conformance_tests/lib/src/close_local_tests.dart index cbaf8272bb..3ffa293456 100644 --- a/pkgs/web_socket_conformance_tests/lib/src/close_local_tests.dart +++ b/pkgs/web_socket_conformance_tests/lib/src/close_local_tests.dart @@ -19,8 +19,9 @@ import 'utils.dart'; /// Tests that the [WebSocket] can correctly close the connection to the peer. void testCloseLocal( - Future Function(Uri uri, {Iterable? protocols}) - channelFactory) { + Future Function(Uri uri, {Iterable? protocols}) + channelFactory, +) { group('remote writing', () { late Uri uri; late StreamChannel httpServerChannel; @@ -61,28 +62,36 @@ void testCloseLocal( final channel = await channelFactory(uri); addTearDown(() => closeWebSocket(channel)); await expectLater( - () => channel.close(1004), throwsA(isA())); + () => channel.close(1004), + throwsA(isA()), + ); }); test('reserved close code: 2999', () async { final channel = await channelFactory(uri); addTearDown(() => closeWebSocket(channel)); await expectLater( - () => channel.close(2999), throwsA(isA())); + () => channel.close(2999), + throwsA(isA()), + ); }); test('reserved close code: 5000', () async { final channel = await channelFactory(uri); addTearDown(() => closeWebSocket(channel)); await expectLater( - () => channel.close(5000), throwsA(isA())); + () => channel.close(5000), + throwsA(isA()), + ); }); test('too long close reason', () async { final channel = await channelFactory(uri); addTearDown(() => closeWebSocket(channel)); - await expectLater(() => channel.close(3000, 'a'.padLeft(124)), - throwsA(isA())); + await expectLater( + () => channel.close(3000, 'a'.padLeft(124)), + throwsA(isA()), + ); }); test('close', () async { @@ -157,8 +166,9 @@ void testCloseLocal( await channel.close(3000, 'Client initiated closure'); await expectLater( - () async => await channel.close(3001, 'Client initiated closure'), - throwsA(isA())); + () async => await channel.close(3001, 'Client initiated closure'), + throwsA(isA()), + ); }); test('sendBytes after close', () async { @@ -167,8 +177,10 @@ void testCloseLocal( await channel.close(3000, 'Client initiated closure'); - expect(() => channel.sendBytes(Uint8List(10)), - throwsA(isA())); + expect( + () => channel.sendBytes(Uint8List(10)), + throwsA(isA()), + ); }); test('sendText after close', () async { @@ -177,8 +189,10 @@ void testCloseLocal( await channel.close(3000, 'Client initiated closure'); - expect(() => channel.sendText('Hello World'), - throwsA(isA())); + expect( + () => channel.sendText('Hello World'), + throwsA(isA()), + ); }); }); } diff --git a/pkgs/web_socket_conformance_tests/lib/src/close_remote_server.dart b/pkgs/web_socket_conformance_tests/lib/src/close_remote_server.dart index 86e7067f75..d6e5794052 100644 --- a/pkgs/web_socket_conformance_tests/lib/src/close_remote_server.dart +++ b/pkgs/web_socket_conformance_tests/lib/src/close_remote_server.dart @@ -13,8 +13,9 @@ const _webSocketGuid = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11'; Future _invalidCloseReason(HttpRequest request) async { final key = request.headers.value('Sec-WebSocket-Key'); - final accept = - base64.encode(sha1.convert(utf8.encode(key! + _webSocketGuid)).bytes); + final accept = base64.encode( + sha1.convert(utf8.encode(key! + _webSocketGuid)).bytes, + ); request.response ..statusCode = HttpStatus.switchingProtocols ..headers.add('Upgrade', 'websocket') @@ -44,9 +45,7 @@ void hybridMain(StreamChannel channel) async { return; } - final webSocket = await WebSocketTransformer.upgrade( - request, - ); + final webSocket = await WebSocketTransformer.upgrade(request); webSocket.listen((event) { channel.sink.add(event); @@ -56,6 +55,7 @@ void hybridMain(StreamChannel channel) async { channel.sink.add(server.port); await channel - .stream.first; // Any writes indicates that the server should exit. + .stream + .first; // Any writes indicates that the server should exit. unawaited(server.close()); } diff --git a/pkgs/web_socket_conformance_tests/lib/src/close_remote_server_web.dart b/pkgs/web_socket_conformance_tests/lib/src/close_remote_server_web.dart index 6e832bacac..7e9ec30f0c 100644 --- a/pkgs/web_socket_conformance_tests/lib/src/close_remote_server_web.dart +++ b/pkgs/web_socket_conformance_tests/lib/src/close_remote_server_web.dart @@ -4,6 +4,9 @@ import 'package:stream_channel/stream_channel.dart'; import 'package:test/test.dart'; /// Starts the redirect test HTTP server out-of-process. -Future> startServer() async => spawnHybridUri(Uri( +Future> startServer() async => spawnHybridUri( + Uri( scheme: 'package', - path: 'web_socket_conformance_tests/src/close_remote_server.dart')); + path: 'web_socket_conformance_tests/src/close_remote_server.dart', + ), +); diff --git a/pkgs/web_socket_conformance_tests/lib/src/close_remote_tests.dart b/pkgs/web_socket_conformance_tests/lib/src/close_remote_tests.dart index 0171e30139..18a5e8962f 100644 --- a/pkgs/web_socket_conformance_tests/lib/src/close_remote_tests.dart +++ b/pkgs/web_socket_conformance_tests/lib/src/close_remote_tests.dart @@ -15,8 +15,9 @@ import 'utils.dart'; /// Tests that the [WebSocket] can correctly receive Close frames from the peer. void testCloseRemote( - Future Function(Uri uri, {Iterable? protocols}) - channelFactory) { + Future Function(Uri uri, {Iterable? protocols}) + channelFactory, +) { group('remote close', () { late Uri uri; late StreamChannel httpServerChannel; @@ -36,8 +37,9 @@ void testCloseRemote( addTearDown(() => closeWebSocket(channel)); channel.sendText('Please close'); - expect(await channel.events.toList(), - [CloseReceived(4123, 'server closed the connection')]); + expect(await channel.events.toList(), [ + CloseReceived(4123, 'server closed the connection'), + ]); }); test('sendBytes after close received', () async { @@ -45,10 +47,13 @@ void testCloseRemote( addTearDown(() => closeWebSocket(channel)); channel.sendBytes(Uint8List(10)); - expect(await channel.events.toList(), - [CloseReceived(4123, 'server closed the connection')]); - expect(() => channel.sendText('test'), - throwsA(isA())); + expect(await channel.events.toList(), [ + CloseReceived(4123, 'server closed the connection'), + ]); + expect( + () => channel.sendText('test'), + throwsA(isA()), + ); }); test('sendText after close received', () async { @@ -56,10 +61,13 @@ void testCloseRemote( addTearDown(() => closeWebSocket(channel)); channel.sendText('Please close'); - expect(await channel.events.toList(), - [CloseReceived(4123, 'server closed the connection')]); - expect(() => channel.sendText('test'), - throwsA(isA())); + expect(await channel.events.toList(), [ + CloseReceived(4123, 'server closed the connection'), + ]); + expect( + () => channel.sendText('test'), + throwsA(isA()), + ); }); test('close after close received', () async { @@ -67,28 +75,33 @@ void testCloseRemote( addTearDown(() => closeWebSocket(channel)); channel.sendText('Please close'); - expect(await channel.events.toList(), - [CloseReceived(4123, 'server closed the connection')]); + expect(await channel.events.toList(), [ + CloseReceived(4123, 'server closed the connection'), + ]); await expectLater( - channel.close, throwsA(isA())); + channel.close, + throwsA(isA()), + ); }); test('with invalid reason', () async { - final channel = - await channelFactory(uri.replace(queryParameters: {'badutf8': ''})); + final channel = await channelFactory( + uri.replace(queryParameters: {'badutf8': ''}), + ); addTearDown(() => closeWebSocket(channel)); channel.sendText('Please close'); final events = await channel.events.toList(); expect(events, [ isA().having( - (e) => e.code, - 'code', - anyOf( - 1005, // No Status Received. - 1006, // Abnormal Closure. - 1007, // Invalid Frame Payload Data. - )) + (e) => e.code, + 'code', + anyOf( + 1005, // No Status Received. + 1006, // Abnormal Closure. + 1007, // Invalid Frame Payload Data. + ), + ), ]); }); }); diff --git a/pkgs/web_socket_conformance_tests/lib/src/connect_uri_tests.dart b/pkgs/web_socket_conformance_tests/lib/src/connect_uri_tests.dart index 0caa9e6f8c..36409348ee 100644 --- a/pkgs/web_socket_conformance_tests/lib/src/connect_uri_tests.dart +++ b/pkgs/web_socket_conformance_tests/lib/src/connect_uri_tests.dart @@ -7,12 +7,15 @@ import 'package:web_socket/web_socket.dart'; /// Tests that the [WebSocket] rejects invalid connection URIs. void testConnectUri( - Future Function(Uri uri, {Iterable? protocols}) - channelFactory) { + Future Function(Uri uri, {Iterable? protocols}) + channelFactory, +) { group('connect uri', () { test('no protocol', () async { - await expectLater(() => channelFactory(Uri.https('www.example.com', '/')), - throwsA(isA())); + await expectLater( + () => channelFactory(Uri.https('www.example.com', '/')), + throwsA(isA()), + ); }); }); } diff --git a/pkgs/web_socket_conformance_tests/lib/src/continuously_writing_server.dart b/pkgs/web_socket_conformance_tests/lib/src/continuously_writing_server.dart index a082d96238..a7835e77e1 100644 --- a/pkgs/web_socket_conformance_tests/lib/src/continuously_writing_server.dart +++ b/pkgs/web_socket_conformance_tests/lib/src/continuously_writing_server.dart @@ -20,6 +20,7 @@ void hybridMain(StreamChannel channel) async { channel.sink.add(server.port); await channel - .stream.first; // Any writes indicates that the server should exit. + .stream + .first; // Any writes indicates that the server should exit. unawaited(server.close()); } diff --git a/pkgs/web_socket_conformance_tests/lib/src/continuously_writing_server_web.dart b/pkgs/web_socket_conformance_tests/lib/src/continuously_writing_server_web.dart index c28fe3f11c..278b8b03d4 100644 --- a/pkgs/web_socket_conformance_tests/lib/src/continuously_writing_server_web.dart +++ b/pkgs/web_socket_conformance_tests/lib/src/continuously_writing_server_web.dart @@ -4,6 +4,9 @@ import 'package:stream_channel/stream_channel.dart'; import 'package:test/test.dart'; /// Starts the redirect test HTTP server out-of-process. -Future> startServer() async => spawnHybridUri(Uri( +Future> startServer() async => spawnHybridUri( + Uri( scheme: 'package', - path: 'web_socket_conformance_tests/src/continuously_writing_server.dart')); + path: 'web_socket_conformance_tests/src/continuously_writing_server.dart', + ), +); diff --git a/pkgs/web_socket_conformance_tests/lib/src/disconnect_after_upgrade_server.dart b/pkgs/web_socket_conformance_tests/lib/src/disconnect_after_upgrade_server.dart index 965521c439..67d06b87e9 100644 --- a/pkgs/web_socket_conformance_tests/lib/src/disconnect_after_upgrade_server.dart +++ b/pkgs/web_socket_conformance_tests/lib/src/disconnect_after_upgrade_server.dart @@ -31,6 +31,7 @@ void hybridMain(StreamChannel channel) async { channel.sink.add(server.port); await channel - .stream.first; // Any writes indicates that the server should exit. + .stream + .first; // Any writes indicates that the server should exit. unawaited(server.close()); } diff --git a/pkgs/web_socket_conformance_tests/lib/src/disconnect_after_upgrade_server_web.dart b/pkgs/web_socket_conformance_tests/lib/src/disconnect_after_upgrade_server_web.dart index 9e1a13771f..84422df414 100644 --- a/pkgs/web_socket_conformance_tests/lib/src/disconnect_after_upgrade_server_web.dart +++ b/pkgs/web_socket_conformance_tests/lib/src/disconnect_after_upgrade_server_web.dart @@ -4,7 +4,10 @@ import 'package:stream_channel/stream_channel.dart'; import 'package:test/test.dart'; /// Starts the redirect test HTTP server out-of-process. -Future> startServer() async => spawnHybridUri(Uri( +Future> startServer() async => spawnHybridUri( + Uri( scheme: 'package', path: - 'web_socket_conformance_tests/src/disconnect_after_upgrade_server.dart')); + 'web_socket_conformance_tests/src/disconnect_after_upgrade_server.dart', + ), +); diff --git a/pkgs/web_socket_conformance_tests/lib/src/disconnect_after_upgrade_tests.dart b/pkgs/web_socket_conformance_tests/lib/src/disconnect_after_upgrade_tests.dart index 52970aaa39..5f952aa78a 100644 --- a/pkgs/web_socket_conformance_tests/lib/src/disconnect_after_upgrade_tests.dart +++ b/pkgs/web_socket_conformance_tests/lib/src/disconnect_after_upgrade_tests.dart @@ -14,8 +14,9 @@ import 'utils.dart'; /// Tests that the [WebSocket] generates a correct [CloseReceived] event if /// the peer disconnects after WebSocket upgrade. void testDisconnectAfterUpgrade( - Future Function(Uri uri, {Iterable? protocols}) - channelFactory) { + Future Function(Uri uri, {Iterable? protocols}) + channelFactory, +) { group('disconnect', () { late final Uri uri; late final StreamChannel httpServerChannel; @@ -33,12 +34,13 @@ void testDisconnectAfterUpgrade( addTearDown(() => closeWebSocket(channel)); channel.sendText('test'); expect( - (await channel.events.single as CloseReceived).code, - anyOf([ - 1002, // protocol error - 1005, // closed no status - 1006, // closed abnormal - ])); + (await channel.events.single as CloseReceived).code, + anyOf([ + 1002, // protocol error + 1005, // closed no status + 1006, // closed abnormal + ]), + ); }); }); } diff --git a/pkgs/web_socket_conformance_tests/lib/src/echo_server.dart b/pkgs/web_socket_conformance_tests/lib/src/echo_server.dart index 6728507a35..637ebc0331 100644 --- a/pkgs/web_socket_conformance_tests/lib/src/echo_server.dart +++ b/pkgs/web_socket_conformance_tests/lib/src/echo_server.dart @@ -12,11 +12,13 @@ void hybridMain(StreamChannel channel) async { late HttpServer server; server = (await HttpServer.bind('localhost', 0)) - ..transform(WebSocketTransformer()) - .listen((WebSocket webSocket) => webSocket.listen(webSocket.add)); + ..transform( + WebSocketTransformer(), + ).listen((WebSocket webSocket) => webSocket.listen(webSocket.add)); channel.sink.add(server.port); await channel - .stream.first; // Any writes indicates that the server should exit. + .stream + .first; // Any writes indicates that the server should exit. unawaited(server.close()); } diff --git a/pkgs/web_socket_conformance_tests/lib/src/echo_server_web.dart b/pkgs/web_socket_conformance_tests/lib/src/echo_server_web.dart index b553554f69..b3f80589e0 100644 --- a/pkgs/web_socket_conformance_tests/lib/src/echo_server_web.dart +++ b/pkgs/web_socket_conformance_tests/lib/src/echo_server_web.dart @@ -4,6 +4,9 @@ import 'package:stream_channel/stream_channel.dart'; import 'package:test/test.dart'; /// Starts the redirect test HTTP server out-of-process. -Future> startServer() async => spawnHybridUri(Uri( +Future> startServer() async => spawnHybridUri( + Uri( scheme: 'package', - path: 'web_socket_conformance_tests/src/echo_server.dart')); + path: 'web_socket_conformance_tests/src/echo_server.dart', + ), +); diff --git a/pkgs/web_socket_conformance_tests/lib/src/no_upgrade_server.dart b/pkgs/web_socket_conformance_tests/lib/src/no_upgrade_server.dart index dec194186f..8e41b3c1a8 100644 --- a/pkgs/web_socket_conformance_tests/lib/src/no_upgrade_server.dart +++ b/pkgs/web_socket_conformance_tests/lib/src/no_upgrade_server.dart @@ -17,6 +17,7 @@ void hybridMain(StreamChannel channel) async { channel.sink.add(server.port); await channel - .stream.first; // Any writes indicates that the server should exit. + .stream + .first; // Any writes indicates that the server should exit. unawaited(server.close()); } diff --git a/pkgs/web_socket_conformance_tests/lib/src/no_upgrade_server_web.dart b/pkgs/web_socket_conformance_tests/lib/src/no_upgrade_server_web.dart index 97409bc34a..9eb5e2f25e 100644 --- a/pkgs/web_socket_conformance_tests/lib/src/no_upgrade_server_web.dart +++ b/pkgs/web_socket_conformance_tests/lib/src/no_upgrade_server_web.dart @@ -4,6 +4,9 @@ import 'package:stream_channel/stream_channel.dart'; import 'package:test/test.dart'; /// Starts the redirect test HTTP server out-of-process. -Future> startServer() async => spawnHybridUri(Uri( +Future> startServer() async => spawnHybridUri( + Uri( scheme: 'package', - path: 'web_socket_conformance_tests/src/no_upgrade_server.dart')); + path: 'web_socket_conformance_tests/src/no_upgrade_server.dart', + ), +); diff --git a/pkgs/web_socket_conformance_tests/lib/src/no_upgrade_tests.dart b/pkgs/web_socket_conformance_tests/lib/src/no_upgrade_tests.dart index c06955c70d..8452898cb4 100644 --- a/pkgs/web_socket_conformance_tests/lib/src/no_upgrade_tests.dart +++ b/pkgs/web_socket_conformance_tests/lib/src/no_upgrade_tests.dart @@ -13,8 +13,9 @@ import 'no_upgrade_server_vm.dart' /// Tests that the [WebSocket] generates the correct exception if the peer /// closes the HTTP connection before WebSocket upgrade. void testNoUpgrade( - Future Function(Uri uri, {Iterable? protocols}) - channelFactory) { + Future Function(Uri uri, {Iterable? protocols}) + channelFactory, +) { group('no upgrade', () { late final Uri uri; late final StreamChannel httpServerChannel; @@ -29,7 +30,9 @@ void testNoUpgrade( test('close before upgrade', () async { await expectLater( - () => channelFactory(uri), throwsA(isA())); + () => channelFactory(uri), + throwsA(isA()), + ); }); }); } diff --git a/pkgs/web_socket_conformance_tests/lib/src/payload_transfer_tests.dart b/pkgs/web_socket_conformance_tests/lib/src/payload_transfer_tests.dart index eaebeaed20..9c741af19d 100644 --- a/pkgs/web_socket_conformance_tests/lib/src/payload_transfer_tests.dart +++ b/pkgs/web_socket_conformance_tests/lib/src/payload_transfer_tests.dart @@ -15,8 +15,9 @@ import 'utils.dart'; /// Tests that the [WebSocket] can correctly transmit and receive text /// and binary payloads. void testPayloadTransfer( - Future Function(Uri uri, {Iterable? protocols}) - webSocketFactory) { + Future Function(Uri uri, {Iterable? protocols}) + webSocketFactory, +) { group('payload transfer', () { late Uri uri; late StreamChannel httpServerChannel; @@ -56,8 +57,10 @@ void testPayloadTransfer( final webSocket = await webSocketFactory(uri); addTearDown(() => closeWebSocket(webSocket)); webSocket.sendBytes(Uint8List.fromList([1, 2, 3, 4, 5])); - expect(await webSocket.events.first, - BinaryDataReceived(Uint8List.fromList([1, 2, 3, 4, 5]))); + expect( + await webSocket.events.first, + BinaryDataReceived(Uint8List.fromList([1, 2, 3, 4, 5])), + ); }); test('large string request and response', () async { @@ -109,7 +112,7 @@ void testPayloadTransfer( BinaryDataReceived(Uint8List.fromList([1])), TextDataReceived('Hello!'), BinaryDataReceived(Uint8List.fromList([1, 2])), - TextDataReceived('Hello World!') + TextDataReceived('Hello World!'), ]); }); }); diff --git a/pkgs/web_socket_conformance_tests/lib/src/peer_protocol_errors_server.dart b/pkgs/web_socket_conformance_tests/lib/src/peer_protocol_errors_server.dart index a40fc1fc54..2b7245c8f6 100644 --- a/pkgs/web_socket_conformance_tests/lib/src/peer_protocol_errors_server.dart +++ b/pkgs/web_socket_conformance_tests/lib/src/peer_protocol_errors_server.dart @@ -15,31 +15,35 @@ const _webSocketGuid = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11'; void hybridMain(StreamChannel channel) async { late final HttpServer server; server = await HttpServer.bind('localhost', 0); - runZonedGuarded(() { - server.listen((request) async { - var key = request.headers.value('Sec-WebSocket-Key'); - var digest = sha1.convert('$key$_webSocketGuid'.codeUnits); - var accept = base64.encode(digest.bytes); - request.response - ..statusCode = HttpStatus.switchingProtocols - ..headers.add(HttpHeaders.connectionHeader, 'Upgrade') - ..headers.add(HttpHeaders.upgradeHeader, 'websocket') - ..headers.add('Sec-WebSocket-Accept', accept); - request.response.contentLength = 0; - final socket = await request.response.detachSocket(); - socket.write('marry had a little lamb whose fleece was white as snow'); - }); - }, (e, s) { - // dart:io sometimes asynchronously throws a `SocketException` with - // `errorCode` 54. - // See https://github.com/dart-lang/http/pull/1786 for a full traceback. - if (e is! SocketException || e.osError?.errorCode != 54) { - throw e as Exception; - } - }); + runZonedGuarded( + () { + server.listen((request) async { + var key = request.headers.value('Sec-WebSocket-Key'); + var digest = sha1.convert('$key$_webSocketGuid'.codeUnits); + var accept = base64.encode(digest.bytes); + request.response + ..statusCode = HttpStatus.switchingProtocols + ..headers.add(HttpHeaders.connectionHeader, 'Upgrade') + ..headers.add(HttpHeaders.upgradeHeader, 'websocket') + ..headers.add('Sec-WebSocket-Accept', accept); + request.response.contentLength = 0; + final socket = await request.response.detachSocket(); + socket.write('marry had a little lamb whose fleece was white as snow'); + }); + }, + (e, s) { + // dart:io sometimes asynchronously throws a `SocketException` with + // `errorCode` 54. + // See https://github.com/dart-lang/http/pull/1786 for a full traceback. + if (e is! SocketException || e.osError?.errorCode != 54) { + throw e as Exception; + } + }, + ); channel.sink.add(server.port); await channel - .stream.first; // Any writes indicates that the server should exit. + .stream + .first; // Any writes indicates that the server should exit. unawaited(server.close()); } diff --git a/pkgs/web_socket_conformance_tests/lib/src/peer_protocol_errors_server_web.dart b/pkgs/web_socket_conformance_tests/lib/src/peer_protocol_errors_server_web.dart index 361b02c30f..5f426c8537 100644 --- a/pkgs/web_socket_conformance_tests/lib/src/peer_protocol_errors_server_web.dart +++ b/pkgs/web_socket_conformance_tests/lib/src/peer_protocol_errors_server_web.dart @@ -4,6 +4,9 @@ import 'package:stream_channel/stream_channel.dart'; import 'package:test/test.dart'; /// Starts the redirect test HTTP server out-of-process. -Future> startServer() async => spawnHybridUri(Uri( +Future> startServer() async => spawnHybridUri( + Uri( scheme: 'package', - path: 'web_socket_conformance_tests/src/peer_protocol_errors_server.dart')); + path: 'web_socket_conformance_tests/src/peer_protocol_errors_server.dart', + ), +); diff --git a/pkgs/web_socket_conformance_tests/lib/src/peer_protocol_errors_tests.dart b/pkgs/web_socket_conformance_tests/lib/src/peer_protocol_errors_tests.dart index 52d2ec6bce..4ce04d3cde 100644 --- a/pkgs/web_socket_conformance_tests/lib/src/peer_protocol_errors_tests.dart +++ b/pkgs/web_socket_conformance_tests/lib/src/peer_protocol_errors_tests.dart @@ -13,8 +13,9 @@ import 'utils.dart'; /// Tests that the [WebSocket] can correctly handle incorrect WebSocket frames. void testPeerProtocolErrors( - Future Function(Uri uri, {Iterable? protocols}) - channelFactory) { + Future Function(Uri uri, {Iterable? protocols}) + channelFactory, +) { group('peer protocol errors', () { late final Uri uri; late final StreamChannel httpServerChannel; @@ -31,12 +32,13 @@ void testPeerProtocolErrors( final channel = await channelFactory(uri); addTearDown(() => closeWebSocket(channel)); expect( - (await channel.events.single as CloseReceived).code, - anyOf([ - 1002, // protocol error - 1005, // closed no status - 1006, // closed abnormal - ])); + (await channel.events.single as CloseReceived).code, + anyOf([ + 1002, // protocol error + 1005, // closed no status + 1006, // closed abnormal + ]), + ); }); test('bad data after upgrade with write', () async { @@ -44,12 +46,13 @@ void testPeerProtocolErrors( addTearDown(() => closeWebSocket(channel)); channel.sendText('test'); expect( - (await channel.events.single as CloseReceived).code, - anyOf([ - 1002, // protocol error - 1005, // closed no status - 1006, // closed abnormal - ])); + (await channel.events.single as CloseReceived).code, + anyOf([ + 1002, // protocol error + 1005, // closed no status + 1006, // closed abnormal + ]), + ); }); }); } diff --git a/pkgs/web_socket_conformance_tests/lib/src/protocol_server.dart b/pkgs/web_socket_conformance_tests/lib/src/protocol_server.dart index c0df5b6ea4..d3b3aa430b 100644 --- a/pkgs/web_socket_conformance_tests/lib/src/protocol_server.dart +++ b/pkgs/web_socket_conformance_tests/lib/src/protocol_server.dart @@ -31,8 +31,11 @@ void hybridMain(StreamChannel channel) async { } request.response.contentLength = 0; final socket = await request.response.detachSocket(); - final webSocket = WebSocket.fromUpgradedSocket(socket, - protocol: serverProtocol, serverSide: true); + final webSocket = WebSocket.fromUpgradedSocket( + socket, + protocol: serverProtocol, + serverSide: true, + ); webSocket.listen((e) async { webSocket.add(e); await webSocket.close(); @@ -42,6 +45,7 @@ void hybridMain(StreamChannel channel) async { channel.sink.add(server.port); await channel - .stream.first; // Any writes indicates that the server should exit. + .stream + .first; // Any writes indicates that the server should exit. unawaited(server.close()); } diff --git a/pkgs/web_socket_conformance_tests/lib/src/protocol_server_web.dart b/pkgs/web_socket_conformance_tests/lib/src/protocol_server_web.dart index a752ed7ac2..e5025a2844 100644 --- a/pkgs/web_socket_conformance_tests/lib/src/protocol_server_web.dart +++ b/pkgs/web_socket_conformance_tests/lib/src/protocol_server_web.dart @@ -4,6 +4,9 @@ import 'package:stream_channel/stream_channel.dart'; import 'package:test/test.dart'; /// Starts the redirect test HTTP server out-of-process. -Future> startServer() async => spawnHybridUri(Uri( +Future> startServer() async => spawnHybridUri( + Uri( scheme: 'package', - path: 'web_socket_conformance_tests/src/protocol_server.dart')); + path: 'web_socket_conformance_tests/src/protocol_server.dart', + ), +); diff --git a/pkgs/web_socket_conformance_tests/lib/src/protocol_tests.dart b/pkgs/web_socket_conformance_tests/lib/src/protocol_tests.dart index 3289507410..d62937d43c 100644 --- a/pkgs/web_socket_conformance_tests/lib/src/protocol_tests.dart +++ b/pkgs/web_socket_conformance_tests/lib/src/protocol_tests.dart @@ -17,8 +17,9 @@ import 'utils.dart'; /// See /// [RFC-6455 1.9](https://datatracker.ietf.org/doc/html/rfc6455#section-1.9). void testProtocols( - Future Function(Uri uri, {Iterable? protocols}) - channelFactory) { + Future Function(Uri uri, {Iterable? protocols}) + channelFactory, +) { group('protocols', () { late Uri uri; late StreamChannel httpServerChannel; @@ -44,8 +45,9 @@ void testProtocols( test('single protocol', () async { final socket = await channelFactory( - uri.replace(queryParameters: {'protocol': 'chat.example.com'}), - protocols: ['chat.example.com']); + uri.replace(queryParameters: {'protocol': 'chat.example.com'}), + protocols: ['chat.example.com'], + ); addTearDown(() => closeWebSocket(socket)); expect(await httpServerQueue.next, ['chat.example.com']); @@ -55,22 +57,26 @@ void testProtocols( test('multiple protocols', () async { final socket = await channelFactory( - uri.replace(queryParameters: {'protocol': 'text.example.com'}), - protocols: ['chat.example.com', 'text.example.com']); + uri.replace(queryParameters: {'protocol': 'text.example.com'}), + protocols: ['chat.example.com', 'text.example.com'], + ); addTearDown(() => closeWebSocket(socket)); - expect( - await httpServerQueue.next, ['chat.example.com, text.example.com']); + expect(await httpServerQueue.next, [ + 'chat.example.com, text.example.com', + ]); expect(socket.protocol, 'text.example.com'); socket.sendText('Hello World!'); }); test('protocol mismatch', () async { await expectLater( - () => channelFactory( - uri.replace(queryParameters: {'protocol': 'example.example.com'}), - protocols: ['chat.example.com']), - throwsA(isA())); + () => channelFactory( + uri.replace(queryParameters: {'protocol': 'example.example.com'}), + protocols: ['chat.example.com'], + ), + throwsA(isA()), + ); }); }); } diff --git a/pkgs/web_socket_conformance_tests/lib/web_socket_conformance_tests.dart b/pkgs/web_socket_conformance_tests/lib/web_socket_conformance_tests.dart index a43a3d8c56..ebfcc8f783 100644 --- a/pkgs/web_socket_conformance_tests/lib/web_socket_conformance_tests.dart +++ b/pkgs/web_socket_conformance_tests/lib/web_socket_conformance_tests.dart @@ -23,8 +23,9 @@ export 'src/protocol_tests.dart'; /// Runs the entire test suite against the given [WebSocket]. void testAll( - Future Function(Uri uri, {Iterable? protocols}) - webSocketFactory) { + Future Function(Uri uri, {Iterable? protocols}) + webSocketFactory, +) { testCloseLocal(webSocketFactory); testCloseRemote(webSocketFactory); testConnectUri(webSocketFactory); diff --git a/pkgs/web_socket_conformance_tests/pubspec.yaml b/pkgs/web_socket_conformance_tests/pubspec.yaml index 5713ca635e..fd17dc62e8 100644 --- a/pkgs/web_socket_conformance_tests/pubspec.yaml +++ b/pkgs/web_socket_conformance_tests/pubspec.yaml @@ -7,7 +7,7 @@ repository: https://github.com/dart-lang/http/tree/master/pkgs/web_socket_confor publish_to: none environment: - sdk: ^3.4.0 + sdk: ^3.9.0 dependencies: async: ^2.11.0