From 35787ba95c819c8a6c75dd05a0c1aab09a66ba73 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 8 Oct 2024 14:15:04 +0200
Subject: [PATCH] Bump jni from 0.11.0 to 0.12.0 in /experimental/pedometer
(#2465)
Bumps [jni](https://github.com/dart-lang/native/tree/main/pkgs) from
0.11.0 to 0.12.0.
Commits
[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=jni&package-manager=pub&previous-version=0.11.0&new-version=0.12.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
---------
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Brett Morgan
Co-authored-by: Hossein Yousefi
---
.../pedometer/example/lib/steps_repo.dart | 8 +-
experimental/pedometer/example/pubspec.yaml | 2 +-
.../pedometer/lib/health_connect.dart | 29797 ++++++++--------
experimental/pedometer/pubspec.yaml | 4 +-
4 files changed, 15486 insertions(+), 14325 deletions(-)
diff --git a/experimental/pedometer/example/lib/steps_repo.dart b/experimental/pedometer/example/lib/steps_repo.dart
index 980efd5899e..553f0153608 100644
--- a/experimental/pedometer/example/lib/steps_repo.dart
+++ b/experimental/pedometer/example/lib/steps_repo.dart
@@ -6,8 +6,8 @@ import 'dart:io';
import 'package:flutter/foundation.dart';
import 'package:intl/intl.dart';
import 'package:jni/jni.dart' as jni;
-import 'package:pedometer/pedometer_bindings_generated.dart' as pd;
import 'package:pedometer/health_connect.dart' as hc;
+import 'package:pedometer/pedometer_bindings_generated.dart' as pd;
/// Class to hold the information needed for the chart
class Steps {
@@ -124,10 +124,12 @@ class _AndroidStepsRepo implements StepsRepo {
late final hc.HealthConnectClient client;
_AndroidStepsRepo() {
+ // ignore: invalid_use_of_internal_member
activity = hc.Activity.fromReference(jni.Jni.getCurrentActivity());
applicationContext =
+ // ignore: invalid_use_of_internal_member
hc.Context.fromReference(jni.Jni.getCachedApplicationContext());
- client = hc.HealthConnectClient.getOrCreate1(applicationContext);
+ client = hc.HealthConnectClient.getOrCreate$1(applicationContext);
}
@override
@@ -153,7 +155,7 @@ class _AndroidStepsRepo implements StepsRepo {
}
final data = await Future.wait(futures);
return data.asMap().entries.map((entry) {
- final stepsLong = entry.value.get0(hc.StepsRecord.COUNT_TOTAL);
+ final stepsLong = entry.value.get(hc.StepsRecord.COUNT_TOTAL);
final steps = stepsLong.isNull ? 0 : stepsLong.intValue();
return Steps(entry.key.toString().padLeft(2, '0'), steps);
}).toList();
diff --git a/experimental/pedometer/example/pubspec.yaml b/experimental/pedometer/example/pubspec.yaml
index 7e42b69769a..4266c937740 100644
--- a/experimental/pedometer/example/pubspec.yaml
+++ b/experimental/pedometer/example/pubspec.yaml
@@ -41,7 +41,7 @@ dependencies:
ffi: ^2.1.2
intl: ^0.19.0
- jni: ^0.11.0
+ jni: ^0.12.0
fl_chart: ^0.69.0
dev_dependencies:
diff --git a/experimental/pedometer/lib/health_connect.dart b/experimental/pedometer/lib/health_connect.dart
index 718376d50b5..020c2434010 100644
--- a/experimental/pedometer/lib/health_connect.dart
+++ b/experimental/pedometer/lib/health_connect.dart
@@ -1,16 +1,26 @@
// Autogenerated by jnigen. DO NOT EDIT!
// ignore_for_file: annotate_overrides
+// ignore_for_file: argument_type_not_assignable
// ignore_for_file: camel_case_extensions
// ignore_for_file: camel_case_types
// ignore_for_file: constant_identifier_names
// ignore_for_file: doc_directive_unknown
// ignore_for_file: file_names
+// ignore_for_file: inference_failure_on_untyped_parameter
+// ignore_for_file: invalid_internal_annotation
+// ignore_for_file: invalid_use_of_internal_member
+// ignore_for_file: library_prefixes
// ignore_for_file: lines_longer_than_80_chars
+// ignore_for_file: no_leading_underscores_for_library_prefixes
// ignore_for_file: no_leading_underscores_for_local_identifiers
// ignore_for_file: non_constant_identifier_names
+// ignore_for_file: only_throw_errors
// ignore_for_file: overridden_fields
+// ignore_for_file: prefer_double_quotes
+// ignore_for_file: unintended_html_in_doc_comment
// ignore_for_file: unnecessary_cast
+// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: unused_element
// ignore_for_file: unused_field
// ignore_for_file: unused_import
@@ -18,1379 +28,2233 @@
// ignore_for_file: unused_shown_name
// ignore_for_file: use_super_parameters
-import "dart:isolate" show ReceivePort;
-import "dart:ffi" as ffi;
-import "package:jni/internal_helpers_for_jnigen.dart";
-import "package:jni/jni.dart" as jni;
+import 'dart:core' show Object, String, bool, double, int;
+import 'dart:core' as _$core;
-/// from: androidx.health.connect.client.HealthConnectClient$Companion
-class HealthConnectClient_Companion extends jni.JObject {
- @override
- late final jni.JObjType $type = type;
+import 'package:jni/_internal.dart' as _$jni;
+import 'package:jni/jni.dart' as _$jni;
+/// from: `androidx.health.connect.client.HealthConnectClient$Companion`
+class HealthConnectClient_Companion extends _$jni.JObject {
+ @_$jni.internal
+ @_$core.override
+ final _$jni.JObjType $type;
+
+ @_$jni.internal
HealthConnectClient_Companion.fromReference(
- jni.JReference reference,
- ) : super.fromReference(reference);
+ _$jni.JReference reference,
+ ) : $type = type,
+ super.fromReference(reference);
- static final _class = jni.JClass.forName(
- r"androidx/health/connect/client/HealthConnectClient$Companion");
+ static final _class = _$jni.JClass.forName(
+ r'androidx/health/connect/client/HealthConnectClient$Companion');
/// The type which includes information such as the signature of this class.
- static const type = $HealthConnectClient_CompanionType();
+ static const type = $HealthConnectClient_Companion$Type();
static final _id_DEFAULT_PROVIDER_PACKAGE_NAME = _class.staticFieldId(
- r"DEFAULT_PROVIDER_PACKAGE_NAME",
- r"Ljava/lang/String;",
+ r'DEFAULT_PROVIDER_PACKAGE_NAME',
+ r'Ljava/lang/String;',
);
- /// from: static public final java.lang.String DEFAULT_PROVIDER_PACKAGE_NAME
+ /// from: `static public final java.lang.String DEFAULT_PROVIDER_PACKAGE_NAME`
/// The returned object must be released after use, by calling the [release] method.
- static jni.JString get DEFAULT_PROVIDER_PACKAGE_NAME =>
- _id_DEFAULT_PROVIDER_PACKAGE_NAME.get(_class, const jni.JStringType());
+ static _$jni.JString get DEFAULT_PROVIDER_PACKAGE_NAME =>
+ _id_DEFAULT_PROVIDER_PACKAGE_NAME.get(_class, const _$jni.JStringType());
static final _id_HEALTH_CONNECT_CLIENT_TAG = _class.staticFieldId(
- r"HEALTH_CONNECT_CLIENT_TAG",
- r"Ljava/lang/String;",
+ r'HEALTH_CONNECT_CLIENT_TAG',
+ r'Ljava/lang/String;',
);
- /// from: static public final java.lang.String HEALTH_CONNECT_CLIENT_TAG
+ /// from: `static public final java.lang.String HEALTH_CONNECT_CLIENT_TAG`
/// The returned object must be released after use, by calling the [release] method.
- static jni.JString get HEALTH_CONNECT_CLIENT_TAG =>
- _id_HEALTH_CONNECT_CLIENT_TAG.get(_class, const jni.JStringType());
+ static _$jni.JString get HEALTH_CONNECT_CLIENT_TAG =>
+ _id_HEALTH_CONNECT_CLIENT_TAG.get(_class, const _$jni.JStringType());
static final _id_isAvailable = _class.instanceMethodId(
- r"isAvailable",
- r"(Landroid/content/Context;Ljava/util/List;)Z",
+ r'isAvailable',
+ r'(Landroid/content/Context;Ljava/util/List;)Z',
);
- static final _isAvailable = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<
+ static final _isAvailable = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<
(
- ffi.Pointer,
- ffi.Pointer
- )>)>>("globalEnv_CallBooleanMethod")
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>
+ )>)>>('globalEnv_CallBooleanMethod')
.asFunction<
- jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr,
- ffi.Pointer, ffi.Pointer)>();
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>)>();
- /// from: public final boolean isAvailable(android.content.Context context, java.util.List list)
+ /// from: `public final boolean isAvailable(android.content.Context context, java.util.List list)`
bool isAvailable(
Context context,
- jni.JList list,
+ _$jni.JList<_$jni.JString> list,
) {
- return _isAvailable(reference.pointer, _id_isAvailable as jni.JMethodIDPtr,
- context.reference.pointer, list.reference.pointer)
+ return _isAvailable(
+ reference.pointer,
+ _id_isAvailable as _$jni.JMethodIDPtr,
+ context.reference.pointer,
+ list.reference.pointer)
.boolean;
}
static final _id_getOrCreate = _class.instanceMethodId(
- r"getOrCreate",
- r"(Landroid/content/Context;Ljava/util/List;)Landroidx/health/connect/client/HealthConnectClient;",
+ r'getOrCreate',
+ r'(Landroid/content/Context;Ljava/util/List;)Landroidx/health/connect/client/HealthConnectClient;',
);
- static final _getOrCreate = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<
+ static final _getOrCreate = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<
(
- ffi.Pointer,
- ffi.Pointer
- )>)>>("globalEnv_CallObjectMethod")
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>
+ )>)>>('globalEnv_CallObjectMethod')
.asFunction<
- jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr,
- ffi.Pointer, ffi.Pointer)>();
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>)>();
- /// from: public final androidx.health.connect.client.HealthConnectClient getOrCreate(android.content.Context context, java.util.List list)
+ /// from: `public final androidx.health.connect.client.HealthConnectClient getOrCreate(android.content.Context context, java.util.List list)`
/// The returned object must be released after use, by calling the [release] method.
HealthConnectClient getOrCreate(
Context context,
- jni.JList list,
+ _$jni.JList<_$jni.JString> list,
) {
- return _getOrCreate(reference.pointer, _id_getOrCreate as jni.JMethodIDPtr,
- context.reference.pointer, list.reference.pointer)
- .object(const $HealthConnectClientType());
+ return _getOrCreate(
+ reference.pointer,
+ _id_getOrCreate as _$jni.JMethodIDPtr,
+ context.reference.pointer,
+ list.reference.pointer)
+ .object(const $HealthConnectClient$Type());
}
- static final _id_isAvailable1 = _class.instanceMethodId(
- r"isAvailable",
- r"(Landroid/content/Context;)Z",
+ static final _id_isAvailable$1 = _class.instanceMethodId(
+ r'isAvailable',
+ r'(Landroid/content/Context;)Z',
);
- static final _isAvailable1 = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<(ffi.Pointer,)>)>>(
- "globalEnv_CallBooleanMethod")
+ static final _isAvailable$1 = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>(
+ 'globalEnv_CallBooleanMethod')
.asFunction<
- jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr,
- ffi.Pointer)>();
+ _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>();
- /// from: public final boolean isAvailable(android.content.Context context)
- bool isAvailable1(
+ /// from: `public final boolean isAvailable(android.content.Context context)`
+ bool isAvailable$1(
Context context,
) {
- return _isAvailable1(reference.pointer,
- _id_isAvailable1 as jni.JMethodIDPtr, context.reference.pointer)
+ return _isAvailable$1(reference.pointer,
+ _id_isAvailable$1 as _$jni.JMethodIDPtr, context.reference.pointer)
.boolean;
}
- static final _id_getOrCreate1 = _class.instanceMethodId(
- r"getOrCreate",
- r"(Landroid/content/Context;)Landroidx/health/connect/client/HealthConnectClient;",
+ static final _id_getOrCreate$1 = _class.instanceMethodId(
+ r'getOrCreate',
+ r'(Landroid/content/Context;)Landroidx/health/connect/client/HealthConnectClient;',
);
- static final _getOrCreate1 = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<(ffi.Pointer,)>)>>(
- "globalEnv_CallObjectMethod")
+ static final _getOrCreate$1 = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>(
+ 'globalEnv_CallObjectMethod')
.asFunction<
- jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr,
- ffi.Pointer)>();
+ _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>();
- /// from: public final androidx.health.connect.client.HealthConnectClient getOrCreate(android.content.Context context)
+ /// from: `public final androidx.health.connect.client.HealthConnectClient getOrCreate(android.content.Context context)`
/// The returned object must be released after use, by calling the [release] method.
- HealthConnectClient getOrCreate1(
+ HealthConnectClient getOrCreate$1(
Context context,
) {
- return _getOrCreate1(reference.pointer,
- _id_getOrCreate1 as jni.JMethodIDPtr, context.reference.pointer)
- .object(const $HealthConnectClientType());
+ return _getOrCreate$1(reference.pointer,
+ _id_getOrCreate$1 as _$jni.JMethodIDPtr, context.reference.pointer)
+ .object(const $HealthConnectClient$Type());
}
}
-final class $HealthConnectClient_CompanionType
- extends jni.JObjType {
- const $HealthConnectClient_CompanionType();
+final class $HealthConnectClient_Companion$Type
+ extends _$jni.JObjType {
+ @_$jni.internal
+ const $HealthConnectClient_Companion$Type();
- @override
+ @_$jni.internal
+ @_$core.override
String get signature =>
- r"Landroidx/health/connect/client/HealthConnectClient$Companion;";
+ r'Landroidx/health/connect/client/HealthConnectClient$Companion;';
- @override
- HealthConnectClient_Companion fromReference(jni.JReference reference) =>
+ @_$jni.internal
+ @_$core.override
+ HealthConnectClient_Companion fromReference(_$jni.JReference reference) =>
HealthConnectClient_Companion.fromReference(reference);
- @override
- jni.JObjType get superType => const jni.JObjectType();
+ @_$jni.internal
+ @_$core.override
+ _$jni.JObjType get superType => const _$jni.JObjectType();
- @override
+ @_$jni.internal
+ @_$core.override
final superCount = 1;
- @override
- int get hashCode => ($HealthConnectClient_CompanionType).hashCode;
+ @_$core.override
+ int get hashCode => ($HealthConnectClient_Companion$Type).hashCode;
- @override
+ @_$core.override
bool operator ==(Object other) {
- return other.runtimeType == ($HealthConnectClient_CompanionType) &&
- other is $HealthConnectClient_CompanionType;
+ return other.runtimeType == ($HealthConnectClient_Companion$Type) &&
+ other is $HealthConnectClient_Companion$Type;
}
}
-/// from: androidx.health.connect.client.HealthConnectClient
-class HealthConnectClient extends jni.JObject {
- @override
- late final jni.JObjType $type = type;
+/// from: `androidx.health.connect.client.HealthConnectClient`
+class HealthConnectClient extends _$jni.JObject {
+ @_$jni.internal
+ @_$core.override
+ final _$jni.JObjType $type;
+ @_$jni.internal
HealthConnectClient.fromReference(
- jni.JReference reference,
- ) : super.fromReference(reference);
+ _$jni.JReference reference,
+ ) : $type = type,
+ super.fromReference(reference);
- static final _class =
- jni.JClass.forName(r"androidx/health/connect/client/HealthConnectClient");
+ static final _class = _$jni.JClass.forName(
+ r'androidx/health/connect/client/HealthConnectClient');
/// The type which includes information such as the signature of this class.
- static const type = $HealthConnectClientType();
+ static const type = $HealthConnectClient$Type();
static final _id_Companion = _class.staticFieldId(
- r"Companion",
- r"Landroidx/health/connect/client/HealthConnectClient$Companion;",
+ r'Companion',
+ r'Landroidx/health/connect/client/HealthConnectClient$Companion;',
);
- /// from: static public final androidx.health.connect.client.HealthConnectClient$Companion Companion
+ /// from: `static public final androidx.health.connect.client.HealthConnectClient$Companion Companion`
/// The returned object must be released after use, by calling the [release] method.
static HealthConnectClient_Companion get Companion =>
- _id_Companion.get(_class, const $HealthConnectClient_CompanionType());
+ _id_Companion.get(_class, const $HealthConnectClient_Companion$Type());
static final _id_DEFAULT_PROVIDER_PACKAGE_NAME = _class.staticFieldId(
- r"DEFAULT_PROVIDER_PACKAGE_NAME",
- r"Ljava/lang/String;",
+ r'DEFAULT_PROVIDER_PACKAGE_NAME',
+ r'Ljava/lang/String;',
);
- /// from: static public final java.lang.String DEFAULT_PROVIDER_PACKAGE_NAME
+ /// from: `static public final java.lang.String DEFAULT_PROVIDER_PACKAGE_NAME`
/// The returned object must be released after use, by calling the [release] method.
- static jni.JString get DEFAULT_PROVIDER_PACKAGE_NAME =>
- _id_DEFAULT_PROVIDER_PACKAGE_NAME.get(_class, const jni.JStringType());
+ static _$jni.JString get DEFAULT_PROVIDER_PACKAGE_NAME =>
+ _id_DEFAULT_PROVIDER_PACKAGE_NAME.get(_class, const _$jni.JStringType());
static final _id_HEALTH_CONNECT_CLIENT_TAG = _class.staticFieldId(
- r"HEALTH_CONNECT_CLIENT_TAG",
- r"Ljava/lang/String;",
+ r'HEALTH_CONNECT_CLIENT_TAG',
+ r'Ljava/lang/String;',
);
- /// from: static public final java.lang.String HEALTH_CONNECT_CLIENT_TAG
+ /// from: `static public final java.lang.String HEALTH_CONNECT_CLIENT_TAG`
/// The returned object must be released after use, by calling the [release] method.
- static jni.JString get HEALTH_CONNECT_CLIENT_TAG =>
- _id_HEALTH_CONNECT_CLIENT_TAG.get(_class, const jni.JStringType());
+ static _$jni.JString get HEALTH_CONNECT_CLIENT_TAG =>
+ _id_HEALTH_CONNECT_CLIENT_TAG.get(_class, const _$jni.JStringType());
static final _id_getPermissionController = _class.instanceMethodId(
- r"getPermissionController",
- r"()Landroidx/health/connect/client/PermissionController;",
+ r'getPermissionController',
+ r'()Landroidx/health/connect/client/PermissionController;',
);
- static final _getPermissionController = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- )>>("globalEnv_CallObjectMethod")
+ static final _getPermissionController = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ )>>('globalEnv_CallObjectMethod')
.asFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
)>();
- /// from: public abstract androidx.health.connect.client.PermissionController getPermissionController()
+ /// from: `public abstract androidx.health.connect.client.PermissionController getPermissionController()`
/// The returned object must be released after use, by calling the [release] method.
PermissionController getPermissionController() {
- return _getPermissionController(
- reference.pointer, _id_getPermissionController as jni.JMethodIDPtr)
- .object(const $PermissionControllerType());
+ return _getPermissionController(reference.pointer,
+ _id_getPermissionController as _$jni.JMethodIDPtr)
+ .object(const $PermissionController$Type());
}
static final _id_insertRecords = _class.instanceMethodId(
- r"insertRecords",
- r"(Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;",
+ r'insertRecords',
+ r'(Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;',
);
- static final _insertRecords = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<
+ static final _insertRecords = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<
(
- ffi.Pointer,
- ffi.Pointer
- )>)>>("globalEnv_CallObjectMethod")
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>
+ )>)>>('globalEnv_CallObjectMethod')
.asFunction<
- jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr,
- ffi.Pointer, ffi.Pointer)>();
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>)>();
- /// from: public abstract java.lang.Object insertRecords(java.util.List list, kotlin.coroutines.Continuation continuation)
+ /// from: `public abstract java.lang.Object insertRecords(java.util.List list, kotlin.coroutines.Continuation continuation)`
/// The returned object must be released after use, by calling the [release] method.
- Future insertRecords(
- jni.JList list,
+ _$core.Future<_$jni.JObject> insertRecords(
+ _$jni.JList<_$jni.JObject> list,
) async {
- final $p = ReceivePort();
- final $c = jni.JObject.fromReference(
- ProtectedJniExtensions.newPortContinuation($p));
- _insertRecords(reference.pointer, _id_insertRecords as jni.JMethodIDPtr,
+ final $p = _$jni.ReceivePort();
+ final $c = _$jni.JObject.fromReference(
+ _$jni.ProtectedJniExtensions.newPortContinuation($p));
+ _insertRecords(reference.pointer, _id_insertRecords as _$jni.JMethodIDPtr,
list.reference.pointer, $c.reference.pointer)
- .object(const jni.JObjectType());
- final $o = jni.JGlobalReference(jni.JObjectPtr.fromAddress(await $p.first));
- final $k = const jni.JObjectType().jClass.reference.pointer;
- if (!jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
- throw "Failed";
+ .object(const _$jni.JObjectType());
+ final $o =
+ _$jni.JGlobalReference(_$jni.JObjectPtr.fromAddress(await $p.first));
+ final $k = const _$jni.JObjectType().jClass.reference.pointer;
+ if (!_$jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
+ throw 'Failed';
}
- return const jni.JObjectType().fromReference($o);
+ return const _$jni.JObjectType().fromReference($o);
}
static final _id_updateRecords = _class.instanceMethodId(
- r"updateRecords",
- r"(Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;",
+ r'updateRecords',
+ r'(Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;',
);
- static final _updateRecords = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<
+ static final _updateRecords = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<
(
- ffi.Pointer,
- ffi.Pointer
- )>)>>("globalEnv_CallObjectMethod")
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>
+ )>)>>('globalEnv_CallObjectMethod')
.asFunction<
- jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr,
- ffi.Pointer, ffi.Pointer)>();
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>)>();
- /// from: public abstract java.lang.Object updateRecords(java.util.List list, kotlin.coroutines.Continuation continuation)
+ /// from: `public abstract java.lang.Object updateRecords(java.util.List list, kotlin.coroutines.Continuation continuation)`
/// The returned object must be released after use, by calling the [release] method.
- Future updateRecords(
- jni.JList list,
+ _$core.Future<_$jni.JObject> updateRecords(
+ _$jni.JList<_$jni.JObject> list,
) async {
- final $p = ReceivePort();
- final $c = jni.JObject.fromReference(
- ProtectedJniExtensions.newPortContinuation($p));
- _updateRecords(reference.pointer, _id_updateRecords as jni.JMethodIDPtr,
+ final $p = _$jni.ReceivePort();
+ final $c = _$jni.JObject.fromReference(
+ _$jni.ProtectedJniExtensions.newPortContinuation($p));
+ _updateRecords(reference.pointer, _id_updateRecords as _$jni.JMethodIDPtr,
list.reference.pointer, $c.reference.pointer)
- .object(const jni.JObjectType());
- final $o = jni.JGlobalReference(jni.JObjectPtr.fromAddress(await $p.first));
- final $k = const jni.JObjectType().jClass.reference.pointer;
- if (!jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
- throw "Failed";
+ .object(const _$jni.JObjectType());
+ final $o =
+ _$jni.JGlobalReference(_$jni.JObjectPtr.fromAddress(await $p.first));
+ final $k = const _$jni.JObjectType().jClass.reference.pointer;
+ if (!_$jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
+ throw 'Failed';
}
- return const jni.JObjectType().fromReference($o);
+ return const _$jni.JObjectType().fromReference($o);
}
static final _id_deleteRecords = _class.instanceMethodId(
- r"deleteRecords",
- r"(Lkotlin/reflect/KClass;Ljava/util/List;Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;",
+ r'deleteRecords',
+ r'(Lkotlin/reflect/KClass;Ljava/util/List;Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;',
);
- static final _deleteRecords = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<
+ static final _deleteRecords = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<
(
- ffi.Pointer,
- ffi.Pointer,
- ffi.Pointer,
- ffi.Pointer
- )>)>>("globalEnv_CallObjectMethod")
- .asFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.Pointer,
- ffi.Pointer,
- ffi.Pointer,
- ffi.Pointer)>();
-
- /// from: public abstract java.lang.Object deleteRecords(kotlin.reflect.KClass kClass, java.util.List list, java.util.List list1, kotlin.coroutines.Continuation continuation)
- /// The returned object must be released after use, by calling the [release] method.
- Future deleteRecords(
- jni.JObject kClass,
- jni.JList list,
- jni.JList list1,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>
+ )>)>>('globalEnv_CallObjectMethod')
+ .asFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>)>();
+
+ /// from: `public abstract java.lang.Object deleteRecords(kotlin.reflect.KClass kClass, java.util.List list, java.util.List list1, kotlin.coroutines.Continuation continuation)`
+ /// The returned object must be released after use, by calling the [release] method.
+ _$core.Future<_$jni.JObject> deleteRecords(
+ _$jni.JObject kClass,
+ _$jni.JList<_$jni.JString> list,
+ _$jni.JList<_$jni.JString> list1,
) async {
- final $p = ReceivePort();
- final $c = jni.JObject.fromReference(
- ProtectedJniExtensions.newPortContinuation($p));
+ final $p = _$jni.ReceivePort();
+ final $c = _$jni.JObject.fromReference(
+ _$jni.ProtectedJniExtensions.newPortContinuation($p));
_deleteRecords(
reference.pointer,
- _id_deleteRecords as jni.JMethodIDPtr,
+ _id_deleteRecords as _$jni.JMethodIDPtr,
kClass.reference.pointer,
list.reference.pointer,
list1.reference.pointer,
$c.reference.pointer)
- .object(const jni.JObjectType());
- final $o = jni.JGlobalReference(jni.JObjectPtr.fromAddress(await $p.first));
- final $k = const jni.JObjectType().jClass.reference.pointer;
- if (!jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
- throw "Failed";
+ .object(const _$jni.JObjectType());
+ final $o =
+ _$jni.JGlobalReference(_$jni.JObjectPtr.fromAddress(await $p.first));
+ final $k = const _$jni.JObjectType().jClass.reference.pointer;
+ if (!_$jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
+ throw 'Failed';
}
- return const jni.JObjectType().fromReference($o);
+ return const _$jni.JObjectType().fromReference($o);
}
- static final _id_deleteRecords1 = _class.instanceMethodId(
- r"deleteRecords",
- r"(Lkotlin/reflect/KClass;Landroidx/health/connect/client/time/TimeRangeFilter;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;",
+ static final _id_deleteRecords$1 = _class.instanceMethodId(
+ r'deleteRecords',
+ r'(Lkotlin/reflect/KClass;Landroidx/health/connect/client/time/TimeRangeFilter;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;',
);
- static final _deleteRecords1 = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<
+ static final _deleteRecords$1 = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<
(
- ffi.Pointer,
- ffi.Pointer,
- ffi.Pointer
- )>)>>("globalEnv_CallObjectMethod")
- .asFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.Pointer,
- ffi.Pointer,
- ffi.Pointer)>();
-
- /// from: public abstract java.lang.Object deleteRecords(kotlin.reflect.KClass kClass, androidx.health.connect.client.time.TimeRangeFilter timeRangeFilter, kotlin.coroutines.Continuation continuation)
- /// The returned object must be released after use, by calling the [release] method.
- Future deleteRecords1(
- jni.JObject kClass,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>
+ )>)>>('globalEnv_CallObjectMethod')
+ .asFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>)>();
+
+ /// from: `public abstract java.lang.Object deleteRecords(kotlin.reflect.KClass kClass, androidx.health.connect.client.time.TimeRangeFilter timeRangeFilter, kotlin.coroutines.Continuation continuation)`
+ /// The returned object must be released after use, by calling the [release] method.
+ _$core.Future<_$jni.JObject> deleteRecords$1(
+ _$jni.JObject kClass,
TimeRangeFilter timeRangeFilter,
) async {
- final $p = ReceivePort();
- final $c = jni.JObject.fromReference(
- ProtectedJniExtensions.newPortContinuation($p));
- _deleteRecords1(
+ final $p = _$jni.ReceivePort();
+ final $c = _$jni.JObject.fromReference(
+ _$jni.ProtectedJniExtensions.newPortContinuation($p));
+ _deleteRecords$1(
reference.pointer,
- _id_deleteRecords1 as jni.JMethodIDPtr,
+ _id_deleteRecords$1 as _$jni.JMethodIDPtr,
kClass.reference.pointer,
timeRangeFilter.reference.pointer,
$c.reference.pointer)
- .object(const jni.JObjectType());
- final $o = jni.JGlobalReference(jni.JObjectPtr.fromAddress(await $p.first));
- final $k = const jni.JObjectType().jClass.reference.pointer;
- if (!jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
- throw "Failed";
+ .object(const _$jni.JObjectType());
+ final $o =
+ _$jni.JGlobalReference(_$jni.JObjectPtr.fromAddress(await $p.first));
+ final $k = const _$jni.JObjectType().jClass.reference.pointer;
+ if (!_$jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
+ throw 'Failed';
}
- return const jni.JObjectType().fromReference($o);
+ return const _$jni.JObjectType().fromReference($o);
}
static final _id_readRecord = _class.instanceMethodId(
- r"readRecord",
- r"(Lkotlin/reflect/KClass;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;",
+ r'readRecord',
+ r'(Lkotlin/reflect/KClass;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;',
);
- static final _readRecord = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<
+ static final _readRecord = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<
(
- ffi.Pointer,
- ffi.Pointer,
- ffi.Pointer
- )>)>>("globalEnv_CallObjectMethod")
- .asFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.Pointer,
- ffi.Pointer,
- ffi.Pointer)>();
-
- /// from: public abstract java.lang.Object readRecord(kotlin.reflect.KClass kClass, java.lang.String string, kotlin.coroutines.Continuation continuation)
- /// The returned object must be released after use, by calling the [release] method.
- Future readRecord<$T extends jni.JObject>(
- jni.JObject kClass,
- jni.JString string, {
- required jni.JObjType<$T> T,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>
+ )>)>>('globalEnv_CallObjectMethod')
+ .asFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>)>();
+
+ /// from: `public abstract java.lang.Object readRecord(kotlin.reflect.KClass kClass, java.lang.String string, kotlin.coroutines.Continuation continuation)`
+ /// The returned object must be released after use, by calling the [release] method.
+ _$core.Future<_$jni.JObject> readRecord<$T extends _$jni.JObject>(
+ _$jni.JObject kClass,
+ _$jni.JString string, {
+ required _$jni.JObjType<$T> T,
}) async {
- final $p = ReceivePort();
- final $c = jni.JObject.fromReference(
- ProtectedJniExtensions.newPortContinuation($p));
+ final $p = _$jni.ReceivePort();
+ final $c = _$jni.JObject.fromReference(
+ _$jni.ProtectedJniExtensions.newPortContinuation($p));
_readRecord(
reference.pointer,
- _id_readRecord as jni.JMethodIDPtr,
+ _id_readRecord as _$jni.JMethodIDPtr,
kClass.reference.pointer,
string.reference.pointer,
$c.reference.pointer)
- .object(const jni.JObjectType());
- final $o = jni.JGlobalReference(jni.JObjectPtr.fromAddress(await $p.first));
- final $k = const jni.JObjectType().jClass.reference.pointer;
- if (!jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
- throw "Failed";
+ .object(const _$jni.JObjectType());
+ final $o =
+ _$jni.JGlobalReference(_$jni.JObjectPtr.fromAddress(await $p.first));
+ final $k = const _$jni.JObjectType().jClass.reference.pointer;
+ if (!_$jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
+ throw 'Failed';
}
- return const jni.JObjectType().fromReference($o);
+ return const _$jni.JObjectType().fromReference($o);
}
static final _id_readRecords = _class.instanceMethodId(
- r"readRecords",
- r"(Landroidx/health/connect/client/request/ReadRecordsRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;",
+ r'readRecords',
+ r'(Landroidx/health/connect/client/request/ReadRecordsRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;',
);
- static final _readRecords = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<
+ static final _readRecords = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<
(
- ffi.Pointer,
- ffi.Pointer
- )>)>>("globalEnv_CallObjectMethod")
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>
+ )>)>>('globalEnv_CallObjectMethod')
.asFunction<
- jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr,
- ffi.Pointer, ffi.Pointer)>();
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>)>();
- /// from: public abstract java.lang.Object readRecords(androidx.health.connect.client.request.ReadRecordsRequest readRecordsRequest, kotlin.coroutines.Continuation continuation)
+ /// from: `public abstract java.lang.Object readRecords(androidx.health.connect.client.request.ReadRecordsRequest readRecordsRequest, kotlin.coroutines.Continuation continuation)`
/// The returned object must be released after use, by calling the [release] method.
- Future readRecords<$T extends jni.JObject>(
+ _$core.Future<_$jni.JObject> readRecords<$T extends _$jni.JObject>(
ReadRecordsRequest<$T> readRecordsRequest, {
- jni.JObjType<$T>? T,
+ _$jni.JObjType<$T>? T,
}) async {
- T ??= jni.lowestCommonSuperType([
- (readRecordsRequest.$type as $ReadRecordsRequestType).T,
- ]) as jni.JObjType<$T>;
- final $p = ReceivePort();
- final $c = jni.JObject.fromReference(
- ProtectedJniExtensions.newPortContinuation($p));
- _readRecords(reference.pointer, _id_readRecords as jni.JMethodIDPtr,
+ T ??= _$jni.lowestCommonSuperType([
+ (readRecordsRequest.$type as $ReadRecordsRequest$Type).T,
+ ]) as _$jni.JObjType<$T>;
+ final $p = _$jni.ReceivePort();
+ final $c = _$jni.JObject.fromReference(
+ _$jni.ProtectedJniExtensions.newPortContinuation($p));
+ _readRecords(reference.pointer, _id_readRecords as _$jni.JMethodIDPtr,
readRecordsRequest.reference.pointer, $c.reference.pointer)
- .object(const jni.JObjectType());
- final $o = jni.JGlobalReference(jni.JObjectPtr.fromAddress(await $p.first));
- final $k = const jni.JObjectType().jClass.reference.pointer;
- if (!jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
- throw "Failed";
+ .object(const _$jni.JObjectType());
+ final $o =
+ _$jni.JGlobalReference(_$jni.JObjectPtr.fromAddress(await $p.first));
+ final $k = const _$jni.JObjectType().jClass.reference.pointer;
+ if (!_$jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
+ throw 'Failed';
}
- return const jni.JObjectType().fromReference($o);
+ return const _$jni.JObjectType().fromReference($o);
}
static final _id_aggregate = _class.instanceMethodId(
- r"aggregate",
- r"(Landroidx/health/connect/client/request/AggregateRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;",
+ r'aggregate',
+ r'(Landroidx/health/connect/client/request/AggregateRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;',
);
- static final _aggregate = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<
+ static final _aggregate = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<
(
- ffi.Pointer,
- ffi.Pointer
- )>)>>("globalEnv_CallObjectMethod")
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>
+ )>)>>('globalEnv_CallObjectMethod')
.asFunction<
- jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr,
- ffi.Pointer, ffi.Pointer)>();
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>)>();
- /// from: public abstract java.lang.Object aggregate(androidx.health.connect.client.request.AggregateRequest aggregateRequest, kotlin.coroutines.Continuation continuation)
+ /// from: `public abstract java.lang.Object aggregate(androidx.health.connect.client.request.AggregateRequest aggregateRequest, kotlin.coroutines.Continuation continuation)`
/// The returned object must be released after use, by calling the [release] method.
- Future aggregate(
+ _$core.Future aggregate(
AggregateRequest aggregateRequest,
) async {
- final $p = ReceivePort();
- final $c = jni.JObject.fromReference(
- ProtectedJniExtensions.newPortContinuation($p));
- _aggregate(reference.pointer, _id_aggregate as jni.JMethodIDPtr,
+ final $p = _$jni.ReceivePort();
+ final $c = _$jni.JObject.fromReference(
+ _$jni.ProtectedJniExtensions.newPortContinuation($p));
+ _aggregate(reference.pointer, _id_aggregate as _$jni.JMethodIDPtr,
aggregateRequest.reference.pointer, $c.reference.pointer)
- .object(const jni.JObjectType());
- final $o = jni.JGlobalReference(jni.JObjectPtr.fromAddress(await $p.first));
- final $k = const $AggregationResultType().jClass.reference.pointer;
- if (!jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
- throw "Failed";
+ .object(const _$jni.JObjectType());
+ final $o =
+ _$jni.JGlobalReference(_$jni.JObjectPtr.fromAddress(await $p.first));
+ final $k = const $AggregationResult$Type().jClass.reference.pointer;
+ if (!_$jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
+ throw 'Failed';
}
- return const $AggregationResultType().fromReference($o);
+ return const $AggregationResult$Type().fromReference($o);
}
static final _id_aggregateGroupByDuration = _class.instanceMethodId(
- r"aggregateGroupByDuration",
- r"(Landroidx/health/connect/client/request/AggregateGroupByDurationRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;",
+ r'aggregateGroupByDuration',
+ r'(Landroidx/health/connect/client/request/AggregateGroupByDurationRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;',
);
- static final _aggregateGroupByDuration = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<
+ static final _aggregateGroupByDuration = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<
(
- ffi.Pointer,
- ffi.Pointer
- )>)>>("globalEnv_CallObjectMethod")
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>
+ )>)>>('globalEnv_CallObjectMethod')
.asFunction<
- jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr,
- ffi.Pointer, ffi.Pointer)>();
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>)>();
- /// from: public abstract java.lang.Object aggregateGroupByDuration(androidx.health.connect.client.request.AggregateGroupByDurationRequest aggregateGroupByDurationRequest, kotlin.coroutines.Continuation continuation)
+ /// from: `public abstract java.lang.Object aggregateGroupByDuration(androidx.health.connect.client.request.AggregateGroupByDurationRequest aggregateGroupByDurationRequest, kotlin.coroutines.Continuation continuation)`
/// The returned object must be released after use, by calling the [release] method.
- Future> aggregateGroupByDuration(
+ _$core.Future<_$jni.JList<_$jni.JObject>> aggregateGroupByDuration(
AggregateGroupByDurationRequest aggregateGroupByDurationRequest,
) async {
- final $p = ReceivePort();
- final $c = jni.JObject.fromReference(
- ProtectedJniExtensions.newPortContinuation($p));
+ final $p = _$jni.ReceivePort();
+ final $c = _$jni.JObject.fromReference(
+ _$jni.ProtectedJniExtensions.newPortContinuation($p));
_aggregateGroupByDuration(
reference.pointer,
- _id_aggregateGroupByDuration as jni.JMethodIDPtr,
+ _id_aggregateGroupByDuration as _$jni.JMethodIDPtr,
aggregateGroupByDurationRequest.reference.pointer,
$c.reference.pointer)
- .object(const jni.JObjectType());
- final $o = jni.JGlobalReference(jni.JObjectPtr.fromAddress(await $p.first));
- final $k = const jni.JListType(jni.JObjectType()).jClass.reference.pointer;
- if (!jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
- throw "Failed";
+ .object(const _$jni.JObjectType());
+ final $o =
+ _$jni.JGlobalReference(_$jni.JObjectPtr.fromAddress(await $p.first));
+ final $k =
+ const _$jni.JListType(_$jni.JObjectType()).jClass.reference.pointer;
+ if (!_$jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
+ throw 'Failed';
}
- return const jni.JListType(jni.JObjectType()).fromReference($o);
+ return const _$jni.JListType(_$jni.JObjectType()).fromReference($o);
}
static final _id_aggregateGroupByPeriod = _class.instanceMethodId(
- r"aggregateGroupByPeriod",
- r"(Landroidx/health/connect/client/request/AggregateGroupByPeriodRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;",
+ r'aggregateGroupByPeriod',
+ r'(Landroidx/health/connect/client/request/AggregateGroupByPeriodRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;',
);
- static final _aggregateGroupByPeriod = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<
+ static final _aggregateGroupByPeriod = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<
(
- ffi.Pointer,
- ffi.Pointer
- )>)>>("globalEnv_CallObjectMethod")
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>
+ )>)>>('globalEnv_CallObjectMethod')
.asFunction<
- jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr,
- ffi.Pointer, ffi.Pointer)>();
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>)>();
- /// from: public abstract java.lang.Object aggregateGroupByPeriod(androidx.health.connect.client.request.AggregateGroupByPeriodRequest aggregateGroupByPeriodRequest, kotlin.coroutines.Continuation continuation)
+ /// from: `public abstract java.lang.Object aggregateGroupByPeriod(androidx.health.connect.client.request.AggregateGroupByPeriodRequest aggregateGroupByPeriodRequest, kotlin.coroutines.Continuation continuation)`
/// The returned object must be released after use, by calling the [release] method.
- Future> aggregateGroupByPeriod(
+ _$core.Future<_$jni.JList<_$jni.JObject>> aggregateGroupByPeriod(
AggregateGroupByPeriodRequest aggregateGroupByPeriodRequest,
) async {
- final $p = ReceivePort();
- final $c = jni.JObject.fromReference(
- ProtectedJniExtensions.newPortContinuation($p));
+ final $p = _$jni.ReceivePort();
+ final $c = _$jni.JObject.fromReference(
+ _$jni.ProtectedJniExtensions.newPortContinuation($p));
_aggregateGroupByPeriod(
reference.pointer,
- _id_aggregateGroupByPeriod as jni.JMethodIDPtr,
+ _id_aggregateGroupByPeriod as _$jni.JMethodIDPtr,
aggregateGroupByPeriodRequest.reference.pointer,
$c.reference.pointer)
- .object(const jni.JObjectType());
- final $o = jni.JGlobalReference(jni.JObjectPtr.fromAddress(await $p.first));
- final $k = const jni.JListType(jni.JObjectType()).jClass.reference.pointer;
- if (!jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
- throw "Failed";
+ .object(const _$jni.JObjectType());
+ final $o =
+ _$jni.JGlobalReference(_$jni.JObjectPtr.fromAddress(await $p.first));
+ final $k =
+ const _$jni.JListType(_$jni.JObjectType()).jClass.reference.pointer;
+ if (!_$jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
+ throw 'Failed';
}
- return const jni.JListType(jni.JObjectType()).fromReference($o);
+ return const _$jni.JListType(_$jni.JObjectType()).fromReference($o);
}
static final _id_getChangesToken = _class.instanceMethodId(
- r"getChangesToken",
- r"(Landroidx/health/connect/client/request/ChangesTokenRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;",
+ r'getChangesToken',
+ r'(Landroidx/health/connect/client/request/ChangesTokenRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;',
);
- static final _getChangesToken = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<
+ static final _getChangesToken = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<
(
- ffi.Pointer,
- ffi.Pointer
- )>)>>("globalEnv_CallObjectMethod")
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>
+ )>)>>('globalEnv_CallObjectMethod')
.asFunction<
- jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr,
- ffi.Pointer, ffi.Pointer)>();
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>)>();
- /// from: public abstract java.lang.Object getChangesToken(androidx.health.connect.client.request.ChangesTokenRequest changesTokenRequest, kotlin.coroutines.Continuation continuation)
+ /// from: `public abstract java.lang.Object getChangesToken(androidx.health.connect.client.request.ChangesTokenRequest changesTokenRequest, kotlin.coroutines.Continuation continuation)`
/// The returned object must be released after use, by calling the [release] method.
- Future getChangesToken(
+ _$core.Future<_$jni.JString> getChangesToken(
ChangesTokenRequest changesTokenRequest,
) async {
- final $p = ReceivePort();
- final $c = jni.JObject.fromReference(
- ProtectedJniExtensions.newPortContinuation($p));
- _getChangesToken(reference.pointer, _id_getChangesToken as jni.JMethodIDPtr,
- changesTokenRequest.reference.pointer, $c.reference.pointer)
- .object(const jni.JObjectType());
- final $o = jni.JGlobalReference(jni.JObjectPtr.fromAddress(await $p.first));
- final $k = const jni.JStringType().jClass.reference.pointer;
- if (!jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
- throw "Failed";
+ final $p = _$jni.ReceivePort();
+ final $c = _$jni.JObject.fromReference(
+ _$jni.ProtectedJniExtensions.newPortContinuation($p));
+ _getChangesToken(
+ reference.pointer,
+ _id_getChangesToken as _$jni.JMethodIDPtr,
+ changesTokenRequest.reference.pointer,
+ $c.reference.pointer)
+ .object(const _$jni.JObjectType());
+ final $o =
+ _$jni.JGlobalReference(_$jni.JObjectPtr.fromAddress(await $p.first));
+ final $k = const _$jni.JStringType().jClass.reference.pointer;
+ if (!_$jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
+ throw 'Failed';
}
- return const jni.JStringType().fromReference($o);
+ return const _$jni.JStringType().fromReference($o);
}
static final _id_registerForDataNotifications = _class.instanceMethodId(
- r"registerForDataNotifications",
- r"(Ljava/lang/String;Ljava/lang/Iterable;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;",
+ r'registerForDataNotifications',
+ r'(Ljava/lang/String;Ljava/lang/Iterable;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;',
);
- static final _registerForDataNotifications = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<
- (
- ffi.Pointer,
- ffi.Pointer,
- ffi.Pointer
- )>)>>("globalEnv_CallObjectMethod")
- .asFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.Pointer,
- ffi.Pointer,
- ffi.Pointer)>();
-
- /// from: public abstract java.lang.Object registerForDataNotifications(java.lang.String string, java.lang.Iterable iterable, kotlin.coroutines.Continuation continuation)
- /// The returned object must be released after use, by calling the [release] method.
- Future registerForDataNotifications(
- jni.JString string,
- jni.JObject iterable,
+ static final _registerForDataNotifications =
+ _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<
+ (
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>
+ )>)>>('globalEnv_CallObjectMethod')
+ .asFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>)>();
+
+ /// from: `public abstract java.lang.Object registerForDataNotifications(java.lang.String string, java.lang.Iterable iterable, kotlin.coroutines.Continuation continuation)`
+ /// The returned object must be released after use, by calling the [release] method.
+ _$core.Future<_$jni.JObject> registerForDataNotifications(
+ _$jni.JString string,
+ _$jni.JObject iterable,
) async {
- final $p = ReceivePort();
- final $c = jni.JObject.fromReference(
- ProtectedJniExtensions.newPortContinuation($p));
+ final $p = _$jni.ReceivePort();
+ final $c = _$jni.JObject.fromReference(
+ _$jni.ProtectedJniExtensions.newPortContinuation($p));
_registerForDataNotifications(
reference.pointer,
- _id_registerForDataNotifications as jni.JMethodIDPtr,
+ _id_registerForDataNotifications as _$jni.JMethodIDPtr,
string.reference.pointer,
iterable.reference.pointer,
$c.reference.pointer)
- .object(const jni.JObjectType());
- final $o = jni.JGlobalReference(jni.JObjectPtr.fromAddress(await $p.first));
- final $k = const jni.JObjectType().jClass.reference.pointer;
- if (!jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
- throw "Failed";
+ .object(const _$jni.JObjectType());
+ final $o =
+ _$jni.JGlobalReference(_$jni.JObjectPtr.fromAddress(await $p.first));
+ final $k = const _$jni.JObjectType().jClass.reference.pointer;
+ if (!_$jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
+ throw 'Failed';
}
- return const jni.JObjectType().fromReference($o);
+ return const _$jni.JObjectType().fromReference($o);
}
static final _id_unregisterFromDataNotifications = _class.instanceMethodId(
- r"unregisterFromDataNotifications",
- r"(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;",
+ r'unregisterFromDataNotifications',
+ r'(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;',
);
- static final _unregisterFromDataNotifications = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<
- (
- ffi.Pointer,
- ffi.Pointer
- )>)>>("globalEnv_CallObjectMethod")
- .asFunction<
- jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr,
- ffi.Pointer, ffi.Pointer)>();
+ static final _unregisterFromDataNotifications =
+ _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<
+ (
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>
+ )>)>>('globalEnv_CallObjectMethod')
+ .asFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>)>();
- /// from: public abstract java.lang.Object unregisterFromDataNotifications(java.lang.String string, kotlin.coroutines.Continuation continuation)
+ /// from: `public abstract java.lang.Object unregisterFromDataNotifications(java.lang.String string, kotlin.coroutines.Continuation continuation)`
/// The returned object must be released after use, by calling the [release] method.
- Future unregisterFromDataNotifications(
- jni.JString string,
+ _$core.Future<_$jni.JObject> unregisterFromDataNotifications(
+ _$jni.JString string,
) async {
- final $p = ReceivePort();
- final $c = jni.JObject.fromReference(
- ProtectedJniExtensions.newPortContinuation($p));
+ final $p = _$jni.ReceivePort();
+ final $c = _$jni.JObject.fromReference(
+ _$jni.ProtectedJniExtensions.newPortContinuation($p));
_unregisterFromDataNotifications(
reference.pointer,
- _id_unregisterFromDataNotifications as jni.JMethodIDPtr,
+ _id_unregisterFromDataNotifications as _$jni.JMethodIDPtr,
string.reference.pointer,
$c.reference.pointer)
- .object(const jni.JObjectType());
- final $o = jni.JGlobalReference(jni.JObjectPtr.fromAddress(await $p.first));
- final $k = const jni.JObjectType().jClass.reference.pointer;
- if (!jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
- throw "Failed";
+ .object(const _$jni.JObjectType());
+ final $o =
+ _$jni.JGlobalReference(_$jni.JObjectPtr.fromAddress(await $p.first));
+ final $k = const _$jni.JObjectType().jClass.reference.pointer;
+ if (!_$jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
+ throw 'Failed';
}
- return const jni.JObjectType().fromReference($o);
+ return const _$jni.JObjectType().fromReference($o);
}
static final _id_getChanges = _class.instanceMethodId(
- r"getChanges",
- r"(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;",
+ r'getChanges',
+ r'(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;',
);
- static final _getChanges = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<
+ static final _getChanges = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<
(
- ffi.Pointer,
- ffi.Pointer
- )>)>>("globalEnv_CallObjectMethod")
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>
+ )>)>>('globalEnv_CallObjectMethod')
.asFunction<
- jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr,
- ffi.Pointer, ffi.Pointer)>();
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>)>();
- /// from: public abstract java.lang.Object getChanges(java.lang.String string, kotlin.coroutines.Continuation continuation)
+ /// from: `public abstract java.lang.Object getChanges(java.lang.String string, kotlin.coroutines.Continuation continuation)`
/// The returned object must be released after use, by calling the [release] method.
- Future getChanges(
- jni.JString string,
+ _$core.Future<_$jni.JObject> getChanges(
+ _$jni.JString string,
) async {
- final $p = ReceivePort();
- final $c = jni.JObject.fromReference(
- ProtectedJniExtensions.newPortContinuation($p));
- _getChanges(reference.pointer, _id_getChanges as jni.JMethodIDPtr,
+ final $p = _$jni.ReceivePort();
+ final $c = _$jni.JObject.fromReference(
+ _$jni.ProtectedJniExtensions.newPortContinuation($p));
+ _getChanges(reference.pointer, _id_getChanges as _$jni.JMethodIDPtr,
string.reference.pointer, $c.reference.pointer)
- .object(const jni.JObjectType());
- final $o = jni.JGlobalReference(jni.JObjectPtr.fromAddress(await $p.first));
- final $k = const jni.JObjectType().jClass.reference.pointer;
- if (!jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
- throw "Failed";
+ .object(const _$jni.JObjectType());
+ final $o =
+ _$jni.JGlobalReference(_$jni.JObjectPtr.fromAddress(await $p.first));
+ final $k = const _$jni.JObjectType().jClass.reference.pointer;
+ if (!_$jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
+ throw 'Failed';
}
- return const jni.JObjectType().fromReference($o);
+ return const _$jni.JObjectType().fromReference($o);
}
static final _id_isAvailable = _class.staticMethodId(
- r"isAvailable",
- r"(Landroid/content/Context;Ljava/util/List;)Z",
+ r'isAvailable',
+ r'(Landroid/content/Context;Ljava/util/List;)Z',
);
- static final _isAvailable = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<
+ static final _isAvailable = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<
(
- ffi.Pointer,
- ffi.Pointer
- )>)>>("globalEnv_CallStaticBooleanMethod")
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>
+ )>)>>('globalEnv_CallStaticBooleanMethod')
.asFunction<
- jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr,
- ffi.Pointer, ffi.Pointer)>();
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>)>();
- /// from: static public boolean isAvailable(android.content.Context context, java.util.List list)
+ /// from: `static public boolean isAvailable(android.content.Context context, java.util.List list)`
static bool isAvailable(
Context context,
- jni.JList list,
+ _$jni.JList<_$jni.JString> list,
) {
return _isAvailable(
_class.reference.pointer,
- _id_isAvailable as jni.JMethodIDPtr,
+ _id_isAvailable as _$jni.JMethodIDPtr,
context.reference.pointer,
list.reference.pointer)
.boolean;
}
static final _id_getOrCreate = _class.staticMethodId(
- r"getOrCreate",
- r"(Landroid/content/Context;Ljava/util/List;)Landroidx/health/connect/client/HealthConnectClient;",
+ r'getOrCreate',
+ r'(Landroid/content/Context;Ljava/util/List;)Landroidx/health/connect/client/HealthConnectClient;',
);
- static final _getOrCreate = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<
+ static final _getOrCreate = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<
(
- ffi.Pointer,
- ffi.Pointer
- )>)>>("globalEnv_CallStaticObjectMethod")
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>
+ )>)>>('globalEnv_CallStaticObjectMethod')
.asFunction<
- jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr,
- ffi.Pointer, ffi.Pointer)>();
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>)>();
- /// from: static public androidx.health.connect.client.HealthConnectClient getOrCreate(android.content.Context context, java.util.List list)
+ /// from: `static public androidx.health.connect.client.HealthConnectClient getOrCreate(android.content.Context context, java.util.List list)`
/// The returned object must be released after use, by calling the [release] method.
static HealthConnectClient getOrCreate(
Context context,
- jni.JList list,
+ _$jni.JList<_$jni.JString> list,
) {
return _getOrCreate(
_class.reference.pointer,
- _id_getOrCreate as jni.JMethodIDPtr,
+ _id_getOrCreate as _$jni.JMethodIDPtr,
context.reference.pointer,
list.reference.pointer)
- .object(const $HealthConnectClientType());
+ .object(const $HealthConnectClient$Type());
}
- static final _id_isAvailable1 = _class.staticMethodId(
- r"isAvailable",
- r"(Landroid/content/Context;)Z",
+ static final _id_isAvailable$1 = _class.staticMethodId(
+ r'isAvailable',
+ r'(Landroid/content/Context;)Z',
);
- static final _isAvailable1 = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<(ffi.Pointer,)>)>>(
- "globalEnv_CallStaticBooleanMethod")
+ static final _isAvailable$1 = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>(
+ 'globalEnv_CallStaticBooleanMethod')
.asFunction<
- jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr,
- ffi.Pointer)>();
+ _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>();
- /// from: static public boolean isAvailable(android.content.Context context)
- static bool isAvailable1(
+ /// from: `static public boolean isAvailable(android.content.Context context)`
+ static bool isAvailable$1(
Context context,
) {
- return _isAvailable1(_class.reference.pointer,
- _id_isAvailable1 as jni.JMethodIDPtr, context.reference.pointer)
+ return _isAvailable$1(_class.reference.pointer,
+ _id_isAvailable$1 as _$jni.JMethodIDPtr, context.reference.pointer)
.boolean;
}
- static final _id_getOrCreate1 = _class.staticMethodId(
- r"getOrCreate",
- r"(Landroid/content/Context;)Landroidx/health/connect/client/HealthConnectClient;",
+ static final _id_getOrCreate$1 = _class.staticMethodId(
+ r'getOrCreate',
+ r'(Landroid/content/Context;)Landroidx/health/connect/client/HealthConnectClient;',
);
- static final _getOrCreate1 = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<(ffi.Pointer,)>)>>(
- "globalEnv_CallStaticObjectMethod")
+ static final _getOrCreate$1 = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>(
+ 'globalEnv_CallStaticObjectMethod')
.asFunction<
- jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr,
- ffi.Pointer)>();
+ _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>();
- /// from: static public androidx.health.connect.client.HealthConnectClient getOrCreate(android.content.Context context)
+ /// from: `static public androidx.health.connect.client.HealthConnectClient getOrCreate(android.content.Context context)`
/// The returned object must be released after use, by calling the [release] method.
- static HealthConnectClient getOrCreate1(
+ static HealthConnectClient getOrCreate$1(
Context context,
) {
- return _getOrCreate1(_class.reference.pointer,
- _id_getOrCreate1 as jni.JMethodIDPtr, context.reference.pointer)
- .object(const $HealthConnectClientType());
+ return _getOrCreate$1(_class.reference.pointer,
+ _id_getOrCreate$1 as _$jni.JMethodIDPtr, context.reference.pointer)
+ .object(const $HealthConnectClient$Type());
+ }
+
+ /// Maps a specific port to the implemented interface.
+ static final _$core.Map _$impls = {};
+ static _$jni.JObjectPtr _$invoke(
+ int port,
+ _$jni.JObjectPtr descriptor,
+ _$jni.JObjectPtr args,
+ ) {
+ return _$invokeMethod(
+ port,
+ _$jni.MethodInvocation.fromAddresses(
+ 0,
+ descriptor.address,
+ args.address,
+ ),
+ );
+ }
+
+ static final _$jni.Pointer<
+ _$jni.NativeFunction<
+ _$jni.JObjectPtr Function(
+ _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>>
+ _$invokePointer = _$jni.Pointer.fromFunction(_$invoke);
+
+ static _$jni.Pointer<_$jni.Void> _$invokeMethod(
+ int $p,
+ _$jni.MethodInvocation $i,
+ ) {
+ try {
+ final $d = $i.methodDescriptor.toDartString(releaseOriginal: true);
+ final $a = $i.args;
+ if ($d ==
+ r'getPermissionController()Landroidx/health/connect/client/PermissionController;') {
+ final $r = _$impls[$p]!.getPermissionController();
+ return ($r as _$jni.JObject)
+ .as(const _$jni.JObjectType())
+ .reference
+ .toPointer();
+ }
+ if ($d ==
+ r'insertRecords(Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;') {
+ final $r = _$impls[$p]!.insertRecords(
+ $a[0].as(const _$jni.JListType(_$jni.JObjectType()),
+ releaseOriginal: true),
+ $a[1].as(const _$jni.JObjectType(), releaseOriginal: true),
+ );
+ return ($r as _$jni.JObject)
+ .as(const _$jni.JObjectType())
+ .reference
+ .toPointer();
+ }
+ if ($d ==
+ r'updateRecords(Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;') {
+ final $r = _$impls[$p]!.updateRecords(
+ $a[0].as(const _$jni.JListType(_$jni.JObjectType()),
+ releaseOriginal: true),
+ $a[1].as(const _$jni.JObjectType(), releaseOriginal: true),
+ );
+ return ($r as _$jni.JObject)
+ .as(const _$jni.JObjectType())
+ .reference
+ .toPointer();
+ }
+ if ($d ==
+ r'deleteRecords(Lkotlin/reflect/KClass;Ljava/util/List;Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;') {
+ final $r = _$impls[$p]!.deleteRecords(
+ $a[0].as(const _$jni.JObjectType(), releaseOriginal: true),
+ $a[1].as(const _$jni.JListType(_$jni.JStringType()),
+ releaseOriginal: true),
+ $a[2].as(const _$jni.JListType(_$jni.JStringType()),
+ releaseOriginal: true),
+ $a[3].as(const _$jni.JObjectType(), releaseOriginal: true),
+ );
+ return ($r as _$jni.JObject)
+ .as(const _$jni.JObjectType())
+ .reference
+ .toPointer();
+ }
+ if ($d ==
+ r'deleteRecords(Lkotlin/reflect/KClass;Landroidx/health/connect/client/time/TimeRangeFilter;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;') {
+ final $r = _$impls[$p]!.deleteRecords$1(
+ $a[0].as(const _$jni.JObjectType(), releaseOriginal: true),
+ $a[1].as(const $TimeRangeFilter$Type(), releaseOriginal: true),
+ $a[2].as(const _$jni.JObjectType(), releaseOriginal: true),
+ );
+ return ($r as _$jni.JObject)
+ .as(const _$jni.JObjectType())
+ .reference
+ .toPointer();
+ }
+ if ($d ==
+ r'readRecord(Lkotlin/reflect/KClass;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;') {
+ final $r = _$impls[$p]!.readRecord(
+ $a[0].as(const _$jni.JObjectType(), releaseOriginal: true),
+ $a[1].as(const _$jni.JStringType(), releaseOriginal: true),
+ $a[2].as(const _$jni.JObjectType(), releaseOriginal: true),
+ );
+ return ($r as _$jni.JObject)
+ .as(const _$jni.JObjectType())
+ .reference
+ .toPointer();
+ }
+ if ($d ==
+ r'readRecords(Landroidx/health/connect/client/request/ReadRecordsRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;') {
+ final $r = _$impls[$p]!.readRecords(
+ $a[0].as(const $ReadRecordsRequest$Type(_$jni.JObjectType()),
+ releaseOriginal: true),
+ $a[1].as(const _$jni.JObjectType(), releaseOriginal: true),
+ );
+ return ($r as _$jni.JObject)
+ .as(const _$jni.JObjectType())
+ .reference
+ .toPointer();
+ }
+ if ($d ==
+ r'aggregate(Landroidx/health/connect/client/request/AggregateRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;') {
+ final $r = _$impls[$p]!.aggregate(
+ $a[0].as(const $AggregateRequest$Type(), releaseOriginal: true),
+ $a[1].as(const _$jni.JObjectType(), releaseOriginal: true),
+ );
+ return ($r as _$jni.JObject)
+ .as(const _$jni.JObjectType())
+ .reference
+ .toPointer();
+ }
+ if ($d ==
+ r'aggregateGroupByDuration(Landroidx/health/connect/client/request/AggregateGroupByDurationRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;') {
+ final $r = _$impls[$p]!.aggregateGroupByDuration(
+ $a[0].as(const $AggregateGroupByDurationRequest$Type(),
+ releaseOriginal: true),
+ $a[1].as(const _$jni.JObjectType(), releaseOriginal: true),
+ );
+ return ($r as _$jni.JObject)
+ .as(const _$jni.JObjectType())
+ .reference
+ .toPointer();
+ }
+ if ($d ==
+ r'aggregateGroupByPeriod(Landroidx/health/connect/client/request/AggregateGroupByPeriodRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;') {
+ final $r = _$impls[$p]!.aggregateGroupByPeriod(
+ $a[0].as(const $AggregateGroupByPeriodRequest$Type(),
+ releaseOriginal: true),
+ $a[1].as(const _$jni.JObjectType(), releaseOriginal: true),
+ );
+ return ($r as _$jni.JObject)
+ .as(const _$jni.JObjectType())
+ .reference
+ .toPointer();
+ }
+ if ($d ==
+ r'getChangesToken(Landroidx/health/connect/client/request/ChangesTokenRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;') {
+ final $r = _$impls[$p]!.getChangesToken(
+ $a[0].as(const $ChangesTokenRequest$Type(), releaseOriginal: true),
+ $a[1].as(const _$jni.JObjectType(), releaseOriginal: true),
+ );
+ return ($r as _$jni.JObject)
+ .as(const _$jni.JObjectType())
+ .reference
+ .toPointer();
+ }
+ if ($d ==
+ r'registerForDataNotifications(Ljava/lang/String;Ljava/lang/Iterable;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;') {
+ final $r = _$impls[$p]!.registerForDataNotifications(
+ $a[0].as(const _$jni.JStringType(), releaseOriginal: true),
+ $a[1].as(const _$jni.JObjectType(), releaseOriginal: true),
+ $a[2].as(const _$jni.JObjectType(), releaseOriginal: true),
+ );
+ return ($r as _$jni.JObject)
+ .as(const _$jni.JObjectType())
+ .reference
+ .toPointer();
+ }
+ if ($d ==
+ r'unregisterFromDataNotifications(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;') {
+ final $r = _$impls[$p]!.unregisterFromDataNotifications(
+ $a[0].as(const _$jni.JStringType(), releaseOriginal: true),
+ $a[1].as(const _$jni.JObjectType(), releaseOriginal: true),
+ );
+ return ($r as _$jni.JObject)
+ .as(const _$jni.JObjectType())
+ .reference
+ .toPointer();
+ }
+ if ($d ==
+ r'getChanges(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;') {
+ final $r = _$impls[$p]!.getChanges(
+ $a[0].as(const _$jni.JStringType(), releaseOriginal: true),
+ $a[1].as(const _$jni.JObjectType(), releaseOriginal: true),
+ );
+ return ($r as _$jni.JObject)
+ .as(const _$jni.JObjectType())
+ .reference
+ .toPointer();
+ }
+ if ($d == r'isAvailable(Landroid/content/Context;Ljava/util/List;)Z') {
+ final $r = _$impls[$p]!.isAvailable(
+ $a[0].as(const $Context$Type(), releaseOriginal: true),
+ $a[1].as(const _$jni.JListType(_$jni.JStringType()),
+ releaseOriginal: true),
+ );
+ return _$jni.JBoolean($r).reference.toPointer();
+ }
+ if ($d ==
+ r'getOrCreate(Landroid/content/Context;Ljava/util/List;)Landroidx/health/connect/client/HealthConnectClient;') {
+ final $r = _$impls[$p]!.getOrCreate(
+ $a[0].as(const $Context$Type(), releaseOriginal: true),
+ $a[1].as(const _$jni.JListType(_$jni.JStringType()),
+ releaseOriginal: true),
+ );
+ return ($r as _$jni.JObject)
+ .as(const _$jni.JObjectType())
+ .reference
+ .toPointer();
+ }
+ if ($d == r'isAvailable(Landroid/content/Context;)Z') {
+ final $r = _$impls[$p]!.isAvailable$1(
+ $a[0].as(const $Context$Type(), releaseOriginal: true),
+ );
+ return _$jni.JBoolean($r).reference.toPointer();
+ }
+ if ($d ==
+ r'getOrCreate(Landroid/content/Context;)Landroidx/health/connect/client/HealthConnectClient;') {
+ final $r = _$impls[$p]!.getOrCreate$1(
+ $a[0].as(const $Context$Type(), releaseOriginal: true),
+ );
+ return ($r as _$jni.JObject)
+ .as(const _$jni.JObjectType())
+ .reference
+ .toPointer();
+ }
+ } catch (e) {
+ return _$jni.ProtectedJniExtensions.newDartException(e);
+ }
+ return _$jni.nullptr;
+ }
+
+ static void implementIn(
+ _$jni.JImplementer implementer,
+ $HealthConnectClient $impl,
+ ) {
+ late final _$jni.RawReceivePort $p;
+ $p = _$jni.RawReceivePort(($m) {
+ if ($m == null) {
+ _$impls.remove($p.sendPort.nativePort);
+ $p.close();
+ return;
+ }
+ final $i = _$jni.MethodInvocation.fromMessage($m);
+ final $r = _$invokeMethod($p.sendPort.nativePort, $i);
+ _$jni.ProtectedJniExtensions.returnResult($i.result, $r);
+ });
+ implementer.add(
+ r'androidx.health.connect.client.HealthConnectClient',
+ $p,
+ _$invokePointer,
+ [],
+ );
+ final $a = $p.sendPort.nativePort;
+ _$impls[$a] = $impl;
+ }
+
+ factory HealthConnectClient.implement(
+ $HealthConnectClient $impl,
+ ) {
+ final $i = _$jni.JImplementer();
+ implementIn($i, $impl);
+ return HealthConnectClient.fromReference(
+ $i.implementReference(),
+ );
+ }
+}
+
+abstract base mixin class $HealthConnectClient {
+ factory $HealthConnectClient({
+ required PermissionController Function() getPermissionController,
+ required _$jni.JObject Function(
+ _$jni.JList<_$jni.JObject> list, _$jni.JObject $c)
+ insertRecords,
+ required _$jni.JObject Function(
+ _$jni.JList<_$jni.JObject> list, _$jni.JObject $c)
+ updateRecords,
+ required _$jni.JObject Function(
+ _$jni.JObject kClass,
+ _$jni.JList<_$jni.JString> list,
+ _$jni.JList<_$jni.JString> list1,
+ _$jni.JObject $c)
+ deleteRecords,
+ required _$jni.JObject Function(_$jni.JObject kClass,
+ TimeRangeFilter timeRangeFilter, _$jni.JObject $c)
+ deleteRecords$1,
+ required _$jni.JObject Function(
+ _$jni.JObject kClass, _$jni.JString string, _$jni.JObject $c)
+ readRecord,
+ required _$jni.JObject Function(
+ ReadRecordsRequest<_$jni.JObject> readRecordsRequest,
+ _$jni.JObject $c)
+ readRecords,
+ required _$jni.JObject Function(
+ AggregateRequest aggregateRequest, _$jni.JObject $c)
+ aggregate,
+ required _$jni.JObject Function(
+ AggregateGroupByDurationRequest aggregateGroupByDurationRequest,
+ _$jni.JObject $c)
+ aggregateGroupByDuration,
+ required _$jni.JObject Function(
+ AggregateGroupByPeriodRequest aggregateGroupByPeriodRequest,
+ _$jni.JObject $c)
+ aggregateGroupByPeriod,
+ required _$jni.JObject Function(
+ ChangesTokenRequest changesTokenRequest, _$jni.JObject $c)
+ getChangesToken,
+ required _$jni.JObject Function(
+ _$jni.JString string, _$jni.JObject iterable, _$jni.JObject $c)
+ registerForDataNotifications,
+ required _$jni.JObject Function(_$jni.JString string, _$jni.JObject $c)
+ unregisterFromDataNotifications,
+ required _$jni.JObject Function(_$jni.JString string, _$jni.JObject $c)
+ getChanges,
+ required bool Function(Context context, _$jni.JList<_$jni.JString> list)
+ isAvailable,
+ required HealthConnectClient Function(
+ Context context, _$jni.JList<_$jni.JString> list)
+ getOrCreate,
+ required bool Function(Context context) isAvailable$1,
+ required HealthConnectClient Function(Context context) getOrCreate$1,
+ }) = _$HealthConnectClient;
+
+ PermissionController getPermissionController();
+ _$jni.JObject insertRecords(
+ _$jni.JList<_$jni.JObject> list, _$jni.JObject $c);
+ _$jni.JObject updateRecords(
+ _$jni.JList<_$jni.JObject> list, _$jni.JObject $c);
+ _$jni.JObject deleteRecords(
+ _$jni.JObject kClass,
+ _$jni.JList<_$jni.JString> list,
+ _$jni.JList<_$jni.JString> list1,
+ _$jni.JObject $c);
+ _$jni.JObject deleteRecords$1(
+ _$jni.JObject kClass, TimeRangeFilter timeRangeFilter, _$jni.JObject $c);
+ _$jni.JObject readRecord(
+ _$jni.JObject kClass, _$jni.JString string, _$jni.JObject $c);
+ _$jni.JObject readRecords(
+ ReadRecordsRequest<_$jni.JObject> readRecordsRequest, _$jni.JObject $c);
+ _$jni.JObject aggregate(AggregateRequest aggregateRequest, _$jni.JObject $c);
+ _$jni.JObject aggregateGroupByDuration(
+ AggregateGroupByDurationRequest aggregateGroupByDurationRequest,
+ _$jni.JObject $c);
+ _$jni.JObject aggregateGroupByPeriod(
+ AggregateGroupByPeriodRequest aggregateGroupByPeriodRequest,
+ _$jni.JObject $c);
+ _$jni.JObject getChangesToken(
+ ChangesTokenRequest changesTokenRequest, _$jni.JObject $c);
+ _$jni.JObject registerForDataNotifications(
+ _$jni.JString string, _$jni.JObject iterable, _$jni.JObject $c);
+ _$jni.JObject unregisterFromDataNotifications(
+ _$jni.JString string, _$jni.JObject $c);
+ _$jni.JObject getChanges(_$jni.JString string, _$jni.JObject $c);
+ bool isAvailable(Context context, _$jni.JList<_$jni.JString> list);
+ HealthConnectClient getOrCreate(
+ Context context, _$jni.JList<_$jni.JString> list);
+ bool isAvailable$1(Context context);
+ HealthConnectClient getOrCreate$1(Context context);
+}
+
+final class _$HealthConnectClient with $HealthConnectClient {
+ _$HealthConnectClient({
+ required PermissionController Function() getPermissionController,
+ required _$jni.JObject Function(
+ _$jni.JList<_$jni.JObject> list, _$jni.JObject $c)
+ insertRecords,
+ required _$jni.JObject Function(
+ _$jni.JList<_$jni.JObject> list, _$jni.JObject $c)
+ updateRecords,
+ required _$jni.JObject Function(
+ _$jni.JObject kClass,
+ _$jni.JList<_$jni.JString> list,
+ _$jni.JList<_$jni.JString> list1,
+ _$jni.JObject $c)
+ deleteRecords,
+ required _$jni.JObject Function(_$jni.JObject kClass,
+ TimeRangeFilter timeRangeFilter, _$jni.JObject $c)
+ deleteRecords$1,
+ required _$jni.JObject Function(
+ _$jni.JObject kClass, _$jni.JString string, _$jni.JObject $c)
+ readRecord,
+ required _$jni.JObject Function(
+ ReadRecordsRequest<_$jni.JObject> readRecordsRequest,
+ _$jni.JObject $c)
+ readRecords,
+ required _$jni.JObject Function(
+ AggregateRequest aggregateRequest, _$jni.JObject $c)
+ aggregate,
+ required _$jni.JObject Function(
+ AggregateGroupByDurationRequest aggregateGroupByDurationRequest,
+ _$jni.JObject $c)
+ aggregateGroupByDuration,
+ required _$jni.JObject Function(
+ AggregateGroupByPeriodRequest aggregateGroupByPeriodRequest,
+ _$jni.JObject $c)
+ aggregateGroupByPeriod,
+ required _$jni.JObject Function(
+ ChangesTokenRequest changesTokenRequest, _$jni.JObject $c)
+ getChangesToken,
+ required _$jni.JObject Function(
+ _$jni.JString string, _$jni.JObject iterable, _$jni.JObject $c)
+ registerForDataNotifications,
+ required _$jni.JObject Function(_$jni.JString string, _$jni.JObject $c)
+ unregisterFromDataNotifications,
+ required _$jni.JObject Function(_$jni.JString string, _$jni.JObject $c)
+ getChanges,
+ required bool Function(Context context, _$jni.JList<_$jni.JString> list)
+ isAvailable,
+ required HealthConnectClient Function(
+ Context context, _$jni.JList<_$jni.JString> list)
+ getOrCreate,
+ required bool Function(Context context) isAvailable$1,
+ required HealthConnectClient Function(Context context) getOrCreate$1,
+ }) : _getPermissionController = getPermissionController,
+ _insertRecords = insertRecords,
+ _updateRecords = updateRecords,
+ _deleteRecords = deleteRecords,
+ _deleteRecords$1 = deleteRecords$1,
+ _readRecord = readRecord,
+ _readRecords = readRecords,
+ _aggregate = aggregate,
+ _aggregateGroupByDuration = aggregateGroupByDuration,
+ _aggregateGroupByPeriod = aggregateGroupByPeriod,
+ _getChangesToken = getChangesToken,
+ _registerForDataNotifications = registerForDataNotifications,
+ _unregisterFromDataNotifications = unregisterFromDataNotifications,
+ _getChanges = getChanges,
+ _isAvailable = isAvailable,
+ _getOrCreate = getOrCreate,
+ _isAvailable$1 = isAvailable$1,
+ _getOrCreate$1 = getOrCreate$1;
+
+ final PermissionController Function() _getPermissionController;
+ final _$jni.JObject Function(
+ _$jni.JList<_$jni.JObject> list, _$jni.JObject $c) _insertRecords;
+ final _$jni.JObject Function(
+ _$jni.JList<_$jni.JObject> list, _$jni.JObject $c) _updateRecords;
+ final _$jni.JObject Function(
+ _$jni.JObject kClass,
+ _$jni.JList<_$jni.JString> list,
+ _$jni.JList<_$jni.JString> list1,
+ _$jni.JObject $c) _deleteRecords;
+ final _$jni.JObject Function(_$jni.JObject kClass,
+ TimeRangeFilter timeRangeFilter, _$jni.JObject $c) _deleteRecords$1;
+ final _$jni.JObject Function(
+ _$jni.JObject kClass, _$jni.JString string, _$jni.JObject $c) _readRecord;
+ final _$jni.JObject Function(
+ ReadRecordsRequest<_$jni.JObject> readRecordsRequest,
+ _$jni.JObject $c) _readRecords;
+ final _$jni.JObject Function(
+ AggregateRequest aggregateRequest, _$jni.JObject $c) _aggregate;
+ final _$jni.JObject Function(
+ AggregateGroupByDurationRequest aggregateGroupByDurationRequest,
+ _$jni.JObject $c) _aggregateGroupByDuration;
+ final _$jni.JObject Function(
+ AggregateGroupByPeriodRequest aggregateGroupByPeriodRequest,
+ _$jni.JObject $c) _aggregateGroupByPeriod;
+ final _$jni.JObject Function(
+ ChangesTokenRequest changesTokenRequest, _$jni.JObject $c)
+ _getChangesToken;
+ final _$jni.JObject Function(
+ _$jni.JString string, _$jni.JObject iterable, _$jni.JObject $c)
+ _registerForDataNotifications;
+ final _$jni.JObject Function(_$jni.JString string, _$jni.JObject $c)
+ _unregisterFromDataNotifications;
+ final _$jni.JObject Function(_$jni.JString string, _$jni.JObject $c)
+ _getChanges;
+ final bool Function(Context context, _$jni.JList<_$jni.JString> list)
+ _isAvailable;
+ final HealthConnectClient Function(
+ Context context, _$jni.JList<_$jni.JString> list) _getOrCreate;
+ final bool Function(Context context) _isAvailable$1;
+ final HealthConnectClient Function(Context context) _getOrCreate$1;
+
+ PermissionController getPermissionController() {
+ return _getPermissionController();
+ }
+
+ _$jni.JObject insertRecords(
+ _$jni.JList<_$jni.JObject> list, _$jni.JObject $c) {
+ return _insertRecords(list, $c);
+ }
+
+ _$jni.JObject updateRecords(
+ _$jni.JList<_$jni.JObject> list, _$jni.JObject $c) {
+ return _updateRecords(list, $c);
+ }
+
+ _$jni.JObject deleteRecords(
+ _$jni.JObject kClass,
+ _$jni.JList<_$jni.JString> list,
+ _$jni.JList<_$jni.JString> list1,
+ _$jni.JObject $c) {
+ return _deleteRecords(kClass, list, list1, $c);
+ }
+
+ _$jni.JObject deleteRecords$1(
+ _$jni.JObject kClass, TimeRangeFilter timeRangeFilter, _$jni.JObject $c) {
+ return _deleteRecords$1(kClass, timeRangeFilter, $c);
+ }
+
+ _$jni.JObject readRecord(
+ _$jni.JObject kClass, _$jni.JString string, _$jni.JObject $c) {
+ return _readRecord(kClass, string, $c);
+ }
+
+ _$jni.JObject readRecords(
+ ReadRecordsRequest<_$jni.JObject> readRecordsRequest, _$jni.JObject $c) {
+ return _readRecords(readRecordsRequest, $c);
+ }
+
+ _$jni.JObject aggregate(AggregateRequest aggregateRequest, _$jni.JObject $c) {
+ return _aggregate(aggregateRequest, $c);
+ }
+
+ _$jni.JObject aggregateGroupByDuration(
+ AggregateGroupByDurationRequest aggregateGroupByDurationRequest,
+ _$jni.JObject $c) {
+ return _aggregateGroupByDuration(aggregateGroupByDurationRequest, $c);
+ }
+
+ _$jni.JObject aggregateGroupByPeriod(
+ AggregateGroupByPeriodRequest aggregateGroupByPeriodRequest,
+ _$jni.JObject $c) {
+ return _aggregateGroupByPeriod(aggregateGroupByPeriodRequest, $c);
+ }
+
+ _$jni.JObject getChangesToken(
+ ChangesTokenRequest changesTokenRequest, _$jni.JObject $c) {
+ return _getChangesToken(changesTokenRequest, $c);
+ }
+
+ _$jni.JObject registerForDataNotifications(
+ _$jni.JString string, _$jni.JObject iterable, _$jni.JObject $c) {
+ return _registerForDataNotifications(string, iterable, $c);
+ }
+
+ _$jni.JObject unregisterFromDataNotifications(
+ _$jni.JString string, _$jni.JObject $c) {
+ return _unregisterFromDataNotifications(string, $c);
+ }
+
+ _$jni.JObject getChanges(_$jni.JString string, _$jni.JObject $c) {
+ return _getChanges(string, $c);
+ }
+
+ bool isAvailable(Context context, _$jni.JList<_$jni.JString> list) {
+ return _isAvailable(context, list);
+ }
+
+ HealthConnectClient getOrCreate(
+ Context context, _$jni.JList<_$jni.JString> list) {
+ return _getOrCreate(context, list);
+ }
+
+ bool isAvailable$1(Context context) {
+ return _isAvailable$1(context);
+ }
+
+ HealthConnectClient getOrCreate$1(Context context) {
+ return _getOrCreate$1(context);
}
}
-final class $HealthConnectClientType extends jni.JObjType {
- const $HealthConnectClientType();
+final class $HealthConnectClient$Type
+ extends _$jni.JObjType {
+ @_$jni.internal
+ const $HealthConnectClient$Type();
- @override
+ @_$jni.internal
+ @_$core.override
String get signature =>
- r"Landroidx/health/connect/client/HealthConnectClient;";
+ r'Landroidx/health/connect/client/HealthConnectClient;';
- @override
- HealthConnectClient fromReference(jni.JReference reference) =>
+ @_$jni.internal
+ @_$core.override
+ HealthConnectClient fromReference(_$jni.JReference reference) =>
HealthConnectClient.fromReference(reference);
- @override
- jni.JObjType get superType => const jni.JObjectType();
+ @_$jni.internal
+ @_$core.override
+ _$jni.JObjType get superType => const _$jni.JObjectType();
- @override
+ @_$jni.internal
+ @_$core.override
final superCount = 1;
- @override
- int get hashCode => ($HealthConnectClientType).hashCode;
+ @_$core.override
+ int get hashCode => ($HealthConnectClient$Type).hashCode;
- @override
+ @_$core.override
bool operator ==(Object other) {
- return other.runtimeType == ($HealthConnectClientType) &&
- other is $HealthConnectClientType;
+ return other.runtimeType == ($HealthConnectClient$Type) &&
+ other is $HealthConnectClient$Type;
}
}
-/// from: androidx.health.connect.client.PermissionController$Companion
-class PermissionController_Companion extends jni.JObject {
- @override
- late final jni.JObjType $type = type;
+/// from: `androidx.health.connect.client.PermissionController$Companion`
+class PermissionController_Companion extends _$jni.JObject {
+ @_$jni.internal
+ @_$core.override
+ final _$jni.JObjType $type;
+ @_$jni.internal
PermissionController_Companion.fromReference(
- jni.JReference reference,
- ) : super.fromReference(reference);
+ _$jni.JReference reference,
+ ) : $type = type,
+ super.fromReference(reference);
- static final _class = jni.JClass.forName(
- r"androidx/health/connect/client/PermissionController$Companion");
+ static final _class = _$jni.JClass.forName(
+ r'androidx/health/connect/client/PermissionController$Companion');
/// The type which includes information such as the signature of this class.
- static const type = $PermissionController_CompanionType();
+ static const type = $PermissionController_Companion$Type();
static final _id_createRequestPermissionResultContract =
_class.instanceMethodId(
- r"createRequestPermissionResultContract",
- r"(Ljava/lang/String;)Landroidx/activity/result/contract/ActivityResultContract;",
+ r'createRequestPermissionResultContract',
+ r'(Ljava/lang/String;)Landroidx/activity/result/contract/ActivityResultContract;',
);
static final _createRequestPermissionResultContract =
- ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<(ffi.Pointer,)>)>>(
- "globalEnv_CallObjectMethod")
+ _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>(
+ 'globalEnv_CallObjectMethod')
.asFunction<
- jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr,
- ffi.Pointer)>();
+ _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>();
- /// from: public final androidx.activity.result.contract.ActivityResultContract createRequestPermissionResultContract(java.lang.String string)
+ /// from: `public final androidx.activity.result.contract.ActivityResultContract createRequestPermissionResultContract(java.lang.String string)`
/// The returned object must be released after use, by calling the [release] method.
- jni.JObject createRequestPermissionResultContract(
- jni.JString string,
+ _$jni.JObject createRequestPermissionResultContract(
+ _$jni.JString string,
) {
return _createRequestPermissionResultContract(
reference.pointer,
- _id_createRequestPermissionResultContract as jni.JMethodIDPtr,
+ _id_createRequestPermissionResultContract as _$jni.JMethodIDPtr,
string.reference.pointer)
- .object(const jni.JObjectType());
+ .object(const _$jni.JObjectType());
}
- static final _id_createRequestPermissionResultContract1 =
+ static final _id_createRequestPermissionResultContract$1 =
_class.instanceMethodId(
- r"createRequestPermissionResultContract",
- r"()Landroidx/activity/result/contract/ActivityResultContract;",
+ r'createRequestPermissionResultContract',
+ r'()Landroidx/activity/result/contract/ActivityResultContract;',
);
- static final _createRequestPermissionResultContract1 =
- ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- )>>("globalEnv_CallObjectMethod")
+ static final _createRequestPermissionResultContract$1 =
+ _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ )>>('globalEnv_CallObjectMethod')
.asFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
)>();
- /// from: public final androidx.activity.result.contract.ActivityResultContract createRequestPermissionResultContract()
+ /// from: `public final androidx.activity.result.contract.ActivityResultContract createRequestPermissionResultContract()`
/// The returned object must be released after use, by calling the [release] method.
- jni.JObject createRequestPermissionResultContract1() {
- return _createRequestPermissionResultContract1(reference.pointer,
- _id_createRequestPermissionResultContract1 as jni.JMethodIDPtr)
- .object(const jni.JObjectType());
+ _$jni.JObject createRequestPermissionResultContract$1() {
+ return _createRequestPermissionResultContract$1(reference.pointer,
+ _id_createRequestPermissionResultContract$1 as _$jni.JMethodIDPtr)
+ .object(const _$jni.JObjectType());
}
}
-final class $PermissionController_CompanionType
- extends jni.JObjType {
- const $PermissionController_CompanionType();
+final class $PermissionController_Companion$Type
+ extends _$jni.JObjType {
+ @_$jni.internal
+ const $PermissionController_Companion$Type();
- @override
+ @_$jni.internal
+ @_$core.override
String get signature =>
- r"Landroidx/health/connect/client/PermissionController$Companion;";
+ r'Landroidx/health/connect/client/PermissionController$Companion;';
- @override
- PermissionController_Companion fromReference(jni.JReference reference) =>
+ @_$jni.internal
+ @_$core.override
+ PermissionController_Companion fromReference(_$jni.JReference reference) =>
PermissionController_Companion.fromReference(reference);
- @override
- jni.JObjType get superType => const jni.JObjectType();
+ @_$jni.internal
+ @_$core.override
+ _$jni.JObjType get superType => const _$jni.JObjectType();
- @override
+ @_$jni.internal
+ @_$core.override
final superCount = 1;
- @override
- int get hashCode => ($PermissionController_CompanionType).hashCode;
+ @_$core.override
+ int get hashCode => ($PermissionController_Companion$Type).hashCode;
- @override
+ @_$core.override
bool operator ==(Object other) {
- return other.runtimeType == ($PermissionController_CompanionType) &&
- other is $PermissionController_CompanionType;
+ return other.runtimeType == ($PermissionController_Companion$Type) &&
+ other is $PermissionController_Companion$Type;
}
}
-/// from: androidx.health.connect.client.PermissionController
-class PermissionController extends jni.JObject {
- @override
- late final jni.JObjType $type = type;
+/// from: `androidx.health.connect.client.PermissionController`
+class PermissionController extends _$jni.JObject {
+ @_$jni.internal
+ @_$core.override
+ final _$jni.JObjType $type;
+ @_$jni.internal
PermissionController.fromReference(
- jni.JReference reference,
- ) : super.fromReference(reference);
+ _$jni.JReference reference,
+ ) : $type = type,
+ super.fromReference(reference);
- static final _class = jni.JClass.forName(
- r"androidx/health/connect/client/PermissionController");
+ static final _class = _$jni.JClass.forName(
+ r'androidx/health/connect/client/PermissionController');
/// The type which includes information such as the signature of this class.
- static const type = $PermissionControllerType();
+ static const type = $PermissionController$Type();
static final _id_Companion = _class.staticFieldId(
- r"Companion",
- r"Landroidx/health/connect/client/PermissionController$Companion;",
+ r'Companion',
+ r'Landroidx/health/connect/client/PermissionController$Companion;',
);
- /// from: static public final androidx.health.connect.client.PermissionController$Companion Companion
+ /// from: `static public final androidx.health.connect.client.PermissionController$Companion Companion`
/// The returned object must be released after use, by calling the [release] method.
static PermissionController_Companion get Companion =>
- _id_Companion.get(_class, const $PermissionController_CompanionType());
+ _id_Companion.get(_class, const $PermissionController_Companion$Type());
static final _id_getGrantedPermissions = _class.instanceMethodId(
- r"getGrantedPermissions",
- r"(Ljava/util/Set;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;",
+ r'getGrantedPermissions',
+ r'(Ljava/util/Set;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;',
);
- static final _getGrantedPermissions = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<
+ static final _getGrantedPermissions = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<
(
- ffi.Pointer,
- ffi.Pointer
- )>)>>("globalEnv_CallObjectMethod")
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>
+ )>)>>('globalEnv_CallObjectMethod')
.asFunction<
- jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr,
- ffi.Pointer, ffi.Pointer)>();
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>)>();
- /// from: public abstract java.lang.Object getGrantedPermissions(java.util.Set set, kotlin.coroutines.Continuation continuation)
+ /// from: `public abstract java.lang.Object getGrantedPermissions(java.util.Set set, kotlin.coroutines.Continuation continuation)`
/// The returned object must be released after use, by calling the [release] method.
- Future> getGrantedPermissions(
- jni.JSet set0,
+ _$core.Future<_$jni.JSet<_$jni.JObject>> getGrantedPermissions(
+ _$jni.JSet<_$jni.JObject> set,
) async {
- final $p = ReceivePort();
- final $c = jni.JObject.fromReference(
- ProtectedJniExtensions.newPortContinuation($p));
+ final $p = _$jni.ReceivePort();
+ final $c = _$jni.JObject.fromReference(
+ _$jni.ProtectedJniExtensions.newPortContinuation($p));
_getGrantedPermissions(
reference.pointer,
- _id_getGrantedPermissions as jni.JMethodIDPtr,
- set0.reference.pointer,
+ _id_getGrantedPermissions as _$jni.JMethodIDPtr,
+ set.reference.pointer,
$c.reference.pointer)
- .object(const jni.JObjectType());
- final $o = jni.JGlobalReference(jni.JObjectPtr.fromAddress(await $p.first));
- final $k = const jni.JSetType(jni.JObjectType()).jClass.reference.pointer;
- if (!jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
- throw "Failed";
+ .object(const _$jni.JObjectType());
+ final $o =
+ _$jni.JGlobalReference(_$jni.JObjectPtr.fromAddress(await $p.first));
+ final $k =
+ const _$jni.JSetType(_$jni.JObjectType()).jClass.reference.pointer;
+ if (!_$jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
+ throw 'Failed';
}
- return const jni.JSetType(jni.JObjectType()).fromReference($o);
+ return const _$jni.JSetType(_$jni.JObjectType()).fromReference($o);
}
static final _id_revokeAllPermissions = _class.instanceMethodId(
- r"revokeAllPermissions",
- r"(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;",
- );
-
- static final _revokeAllPermissions = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<(ffi.Pointer,)>)>>(
- "globalEnv_CallObjectMethod")
- .asFunction<
- jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr,
- ffi.Pointer)>();
-
- /// from: public abstract java.lang.Object revokeAllPermissions(kotlin.coroutines.Continuation continuation)
- /// The returned object must be released after use, by calling the [release] method.
- Future revokeAllPermissions() async {
- final $p = ReceivePort();
- final $c = jni.JObject.fromReference(
- ProtectedJniExtensions.newPortContinuation($p));
- _revokeAllPermissions(reference.pointer,
- _id_revokeAllPermissions as jni.JMethodIDPtr, $c.reference.pointer)
- .object(const jni.JObjectType());
- final $o = jni.JGlobalReference(jni.JObjectPtr.fromAddress(await $p.first));
- final $k = const jni.JObjectType().jClass.reference.pointer;
- if (!jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
- throw "Failed";
+ r'revokeAllPermissions',
+ r'(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;',
+ );
+
+ static final _revokeAllPermissions = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>(
+ 'globalEnv_CallObjectMethod')
+ .asFunction<
+ _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>();
+
+ /// from: `public abstract java.lang.Object revokeAllPermissions(kotlin.coroutines.Continuation continuation)`
+ /// The returned object must be released after use, by calling the [release] method.
+ _$core.Future<_$jni.JObject> revokeAllPermissions() async {
+ final $p = _$jni.ReceivePort();
+ final $c = _$jni.JObject.fromReference(
+ _$jni.ProtectedJniExtensions.newPortContinuation($p));
+ _revokeAllPermissions(
+ reference.pointer,
+ _id_revokeAllPermissions as _$jni.JMethodIDPtr,
+ $c.reference.pointer)
+ .object(const _$jni.JObjectType());
+ final $o =
+ _$jni.JGlobalReference(_$jni.JObjectPtr.fromAddress(await $p.first));
+ final $k = const _$jni.JObjectType().jClass.reference.pointer;
+ if (!_$jni.Jni.env.IsInstanceOf($o.pointer, $k)) {
+ throw 'Failed';
}
- return const jni.JObjectType().fromReference($o);
+ return const _$jni.JObjectType().fromReference($o);
}
static final _id_createRequestPermissionResultContract =
_class.staticMethodId(
- r"createRequestPermissionResultContract",
- r"(Ljava/lang/String;)Landroidx/activity/result/contract/ActivityResultContract;",
+ r'createRequestPermissionResultContract',
+ r'(Ljava/lang/String;)Landroidx/activity/result/contract/ActivityResultContract;',
);
static final _createRequestPermissionResultContract =
- ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<(ffi.Pointer,)>)>>(
- "globalEnv_CallStaticObjectMethod")
+ _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>(
+ 'globalEnv_CallStaticObjectMethod')
.asFunction<
- jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr,
- ffi.Pointer)>();
+ _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>();
- /// from: static public androidx.activity.result.contract.ActivityResultContract createRequestPermissionResultContract(java.lang.String string)
+ /// from: `static public androidx.activity.result.contract.ActivityResultContract createRequestPermissionResultContract(java.lang.String string)`
/// The returned object must be released after use, by calling the [release] method.
- static jni.JObject createRequestPermissionResultContract(
- jni.JString string,
+ static _$jni.JObject createRequestPermissionResultContract(
+ _$jni.JString string,
) {
return _createRequestPermissionResultContract(
_class.reference.pointer,
- _id_createRequestPermissionResultContract as jni.JMethodIDPtr,
+ _id_createRequestPermissionResultContract as _$jni.JMethodIDPtr,
string.reference.pointer)
- .object(const jni.JObjectType());
+ .object(const _$jni.JObjectType());
}
- static final _id_createRequestPermissionResultContract1 =
+ static final _id_createRequestPermissionResultContract$1 =
_class.staticMethodId(
- r"createRequestPermissionResultContract",
- r"()Landroidx/activity/result/contract/ActivityResultContract;",
+ r'createRequestPermissionResultContract',
+ r'()Landroidx/activity/result/contract/ActivityResultContract;',
);
- static final _createRequestPermissionResultContract1 =
- ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- )>>("globalEnv_CallStaticObjectMethod")
+ static final _createRequestPermissionResultContract$1 =
+ _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ )>>('globalEnv_CallStaticObjectMethod')
.asFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
)>();
- /// from: static public androidx.activity.result.contract.ActivityResultContract createRequestPermissionResultContract()
+ /// from: `static public androidx.activity.result.contract.ActivityResultContract createRequestPermissionResultContract()`
/// The returned object must be released after use, by calling the [release] method.
- static jni.JObject createRequestPermissionResultContract1() {
- return _createRequestPermissionResultContract1(_class.reference.pointer,
- _id_createRequestPermissionResultContract1 as jni.JMethodIDPtr)
- .object(const jni.JObjectType());
+ static _$jni.JObject createRequestPermissionResultContract$1() {
+ return _createRequestPermissionResultContract$1(_class.reference.pointer,
+ _id_createRequestPermissionResultContract$1 as _$jni.JMethodIDPtr)
+ .object(const _$jni.JObjectType());
+ }
+
+ /// Maps a specific port to the implemented interface.
+ static final _$core.Map _$impls = {};
+ static _$jni.JObjectPtr _$invoke(
+ int port,
+ _$jni.JObjectPtr descriptor,
+ _$jni.JObjectPtr args,
+ ) {
+ return _$invokeMethod(
+ port,
+ _$jni.MethodInvocation.fromAddresses(
+ 0,
+ descriptor.address,
+ args.address,
+ ),
+ );
+ }
+
+ static final _$jni.Pointer<
+ _$jni.NativeFunction<
+ _$jni.JObjectPtr Function(
+ _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>>
+ _$invokePointer = _$jni.Pointer.fromFunction(_$invoke);
+
+ static _$jni.Pointer<_$jni.Void> _$invokeMethod(
+ int $p,
+ _$jni.MethodInvocation $i,
+ ) {
+ try {
+ final $d = $i.methodDescriptor.toDartString(releaseOriginal: true);
+ final $a = $i.args;
+ if ($d ==
+ r'getGrantedPermissions(Ljava/util/Set;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;') {
+ final $r = _$impls[$p]!.getGrantedPermissions(
+ $a[0].as(const _$jni.JSetType(_$jni.JObjectType()),
+ releaseOriginal: true),
+ $a[1].as(const _$jni.JObjectType(), releaseOriginal: true),
+ );
+ return ($r as _$jni.JObject)
+ .as(const _$jni.JObjectType())
+ .reference
+ .toPointer();
+ }
+ if ($d ==
+ r'revokeAllPermissions(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;') {
+ final $r = _$impls[$p]!.revokeAllPermissions(
+ $a[0].as(const _$jni.JObjectType(), releaseOriginal: true),
+ );
+ return ($r as _$jni.JObject)
+ .as(const _$jni.JObjectType())
+ .reference
+ .toPointer();
+ }
+ if ($d ==
+ r'createRequestPermissionResultContract(Ljava/lang/String;)Landroidx/activity/result/contract/ActivityResultContract;') {
+ final $r = _$impls[$p]!.createRequestPermissionResultContract(
+ $a[0].as(const _$jni.JStringType(), releaseOriginal: true),
+ );
+ return ($r as _$jni.JObject)
+ .as(const _$jni.JObjectType())
+ .reference
+ .toPointer();
+ }
+ if ($d ==
+ r'createRequestPermissionResultContract()Landroidx/activity/result/contract/ActivityResultContract;') {
+ final $r = _$impls[$p]!.createRequestPermissionResultContract$1();
+ return ($r as _$jni.JObject)
+ .as(const _$jni.JObjectType())
+ .reference
+ .toPointer();
+ }
+ } catch (e) {
+ return _$jni.ProtectedJniExtensions.newDartException(e);
+ }
+ return _$jni.nullptr;
+ }
+
+ static void implementIn(
+ _$jni.JImplementer implementer,
+ $PermissionController $impl,
+ ) {
+ late final _$jni.RawReceivePort $p;
+ $p = _$jni.RawReceivePort(($m) {
+ if ($m == null) {
+ _$impls.remove($p.sendPort.nativePort);
+ $p.close();
+ return;
+ }
+ final $i = _$jni.MethodInvocation.fromMessage($m);
+ final $r = _$invokeMethod($p.sendPort.nativePort, $i);
+ _$jni.ProtectedJniExtensions.returnResult($i.result, $r);
+ });
+ implementer.add(
+ r'androidx.health.connect.client.PermissionController',
+ $p,
+ _$invokePointer,
+ [],
+ );
+ final $a = $p.sendPort.nativePort;
+ _$impls[$a] = $impl;
+ }
+
+ factory PermissionController.implement(
+ $PermissionController $impl,
+ ) {
+ final $i = _$jni.JImplementer();
+ implementIn($i, $impl);
+ return PermissionController.fromReference(
+ $i.implementReference(),
+ );
+ }
+}
+
+abstract base mixin class $PermissionController {
+ factory $PermissionController({
+ required _$jni.JObject Function(
+ _$jni.JSet<_$jni.JObject> set, _$jni.JObject $c)
+ getGrantedPermissions,
+ required _$jni.JObject Function(_$jni.JObject $c) revokeAllPermissions,
+ required _$jni.JObject Function(_$jni.JString string)
+ createRequestPermissionResultContract,
+ required _$jni.JObject Function() createRequestPermissionResultContract$1,
+ }) = _$PermissionController;
+
+ _$jni.JObject getGrantedPermissions(
+ _$jni.JSet<_$jni.JObject> set, _$jni.JObject $c);
+ _$jni.JObject revokeAllPermissions(_$jni.JObject $c);
+ _$jni.JObject createRequestPermissionResultContract(_$jni.JString string);
+ _$jni.JObject createRequestPermissionResultContract$1();
+}
+
+final class _$PermissionController with $PermissionController {
+ _$PermissionController({
+ required _$jni.JObject Function(
+ _$jni.JSet<_$jni.JObject> set, _$jni.JObject $c)
+ getGrantedPermissions,
+ required _$jni.JObject Function(_$jni.JObject $c) revokeAllPermissions,
+ required _$jni.JObject Function(_$jni.JString string)
+ createRequestPermissionResultContract,
+ required _$jni.JObject Function() createRequestPermissionResultContract$1,
+ }) : _getGrantedPermissions = getGrantedPermissions,
+ _revokeAllPermissions = revokeAllPermissions,
+ _createRequestPermissionResultContract =
+ createRequestPermissionResultContract,
+ _createRequestPermissionResultContract$1 =
+ createRequestPermissionResultContract$1;
+
+ final _$jni.JObject Function(_$jni.JSet<_$jni.JObject> set, _$jni.JObject $c)
+ _getGrantedPermissions;
+ final _$jni.JObject Function(_$jni.JObject $c) _revokeAllPermissions;
+ final _$jni.JObject Function(_$jni.JString string)
+ _createRequestPermissionResultContract;
+ final _$jni.JObject Function() _createRequestPermissionResultContract$1;
+
+ _$jni.JObject getGrantedPermissions(
+ _$jni.JSet<_$jni.JObject> set, _$jni.JObject $c) {
+ return _getGrantedPermissions(set, $c);
+ }
+
+ _$jni.JObject revokeAllPermissions(_$jni.JObject $c) {
+ return _revokeAllPermissions($c);
+ }
+
+ _$jni.JObject createRequestPermissionResultContract(_$jni.JString string) {
+ return _createRequestPermissionResultContract(string);
+ }
+
+ _$jni.JObject createRequestPermissionResultContract$1() {
+ return _createRequestPermissionResultContract$1();
}
}
-final class $PermissionControllerType
- extends jni.JObjType {
- const $PermissionControllerType();
+final class $PermissionController$Type
+ extends _$jni.JObjType {
+ @_$jni.internal
+ const $PermissionController$Type();
- @override
+ @_$jni.internal
+ @_$core.override
String get signature =>
- r"Landroidx/health/connect/client/PermissionController;";
+ r'Landroidx/health/connect/client/PermissionController;';
- @override
- PermissionController fromReference(jni.JReference reference) =>
+ @_$jni.internal
+ @_$core.override
+ PermissionController fromReference(_$jni.JReference reference) =>
PermissionController.fromReference(reference);
- @override
- jni.JObjType get superType => const jni.JObjectType();
+ @_$jni.internal
+ @_$core.override
+ _$jni.JObjType get superType => const _$jni.JObjectType();
- @override
+ @_$jni.internal
+ @_$core.override
final superCount = 1;
- @override
- int get hashCode => ($PermissionControllerType).hashCode;
+ @_$core.override
+ int get hashCode => ($PermissionController$Type).hashCode;
- @override
+ @_$core.override
bool operator ==(Object other) {
- return other.runtimeType == ($PermissionControllerType) &&
- other is $PermissionControllerType;
+ return other.runtimeType == ($PermissionController$Type) &&
+ other is $PermissionController$Type;
}
}
-/// from: androidx.health.connect.client.records.StepsRecord$Companion
-class StepsRecord_Companion extends jni.JObject {
- @override
- late final jni.JObjType $type = type;
+/// from: `androidx.health.connect.client.records.StepsRecord$Companion`
+class StepsRecord_Companion extends _$jni.JObject {
+ @_$jni.internal
+ @_$core.override
+ final _$jni.JObjType $type;
+ @_$jni.internal
StepsRecord_Companion.fromReference(
- jni.JReference reference,
- ) : super.fromReference(reference);
+ _$jni.JReference reference,
+ ) : $type = type,
+ super.fromReference(reference);
- static final _class = jni.JClass.forName(
- r"androidx/health/connect/client/records/StepsRecord$Companion");
+ static final _class = _$jni.JClass.forName(
+ r'androidx/health/connect/client/records/StepsRecord$Companion');
/// The type which includes information such as the signature of this class.
- static const type = $StepsRecord_CompanionType();
- static final _id_new0 = _class.constructorId(
- r"(Lkotlin/jvm/internal/DefaultConstructorMarker;)V",
+ static const type = $StepsRecord_Companion$Type();
+ static final _id_new$ = _class.constructorId(
+ r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V',
);
- static final _new0 = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<(ffi.Pointer,)>)>>(
- "globalEnv_NewObject")
+ static final _new$ = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>(
+ 'globalEnv_NewObject')
.asFunction<
- jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr,
- ffi.Pointer)>();
+ _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>();
- /// from: public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)
+ /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)`
/// The returned object must be released after use, by calling the [release] method.
factory StepsRecord_Companion(
- jni.JObject defaultConstructorMarker,
+ _$jni.JObject defaultConstructorMarker,
) {
- return StepsRecord_Companion.fromReference(_new0(
+ return StepsRecord_Companion.fromReference(_new$(
_class.reference.pointer,
- _id_new0 as jni.JMethodIDPtr,
+ _id_new$ as _$jni.JMethodIDPtr,
defaultConstructorMarker.reference.pointer)
.reference);
}
}
-final class $StepsRecord_CompanionType
- extends jni.JObjType {
- const $StepsRecord_CompanionType();
+final class $StepsRecord_Companion$Type
+ extends _$jni.JObjType {
+ @_$jni.internal
+ const $StepsRecord_Companion$Type();
- @override
+ @_$jni.internal
+ @_$core.override
String get signature =>
- r"Landroidx/health/connect/client/records/StepsRecord$Companion;";
+ r'Landroidx/health/connect/client/records/StepsRecord$Companion;';
- @override
- StepsRecord_Companion fromReference(jni.JReference reference) =>
+ @_$jni.internal
+ @_$core.override
+ StepsRecord_Companion fromReference(_$jni.JReference reference) =>
StepsRecord_Companion.fromReference(reference);
- @override
- jni.JObjType get superType => const jni.JObjectType();
+ @_$jni.internal
+ @_$core.override
+ _$jni.JObjType get superType => const _$jni.JObjectType();
- @override
+ @_$jni.internal
+ @_$core.override
final superCount = 1;
- @override
- int get hashCode => ($StepsRecord_CompanionType).hashCode;
+ @_$core.override
+ int get hashCode => ($StepsRecord_Companion$Type).hashCode;
- @override
+ @_$core.override
bool operator ==(Object other) {
- return other.runtimeType == ($StepsRecord_CompanionType) &&
- other is $StepsRecord_CompanionType;
+ return other.runtimeType == ($StepsRecord_Companion$Type) &&
+ other is $StepsRecord_Companion$Type;
}
}
-/// from: androidx.health.connect.client.records.StepsRecord
-class StepsRecord extends jni.JObject {
- @override
- late final jni.JObjType $type = type;
+/// from: `androidx.health.connect.client.records.StepsRecord`
+class StepsRecord extends _$jni.JObject {
+ @_$jni.internal
+ @_$core.override
+ final _$jni.JObjType $type;
+ @_$jni.internal
StepsRecord.fromReference(
- jni.JReference reference,
- ) : super.fromReference(reference);
+ _$jni.JReference reference,
+ ) : $type = type,
+ super.fromReference(reference);
- static final _class =
- jni.JClass.forName(r"androidx/health/connect/client/records/StepsRecord");
+ static final _class = _$jni.JClass.forName(
+ r'androidx/health/connect/client/records/StepsRecord');
/// The type which includes information such as the signature of this class.
- static const type = $StepsRecordType();
+ static const type = $StepsRecord$Type();
static final _id_Companion = _class.staticFieldId(
- r"Companion",
- r"Landroidx/health/connect/client/records/StepsRecord$Companion;",
+ r'Companion',
+ r'Landroidx/health/connect/client/records/StepsRecord$Companion;',
);
- /// from: static public final androidx.health.connect.client.records.StepsRecord$Companion Companion
+ /// from: `static public final androidx.health.connect.client.records.StepsRecord$Companion Companion`
/// The returned object must be released after use, by calling the [release] method.
static StepsRecord_Companion get Companion =>
- _id_Companion.get(_class, const $StepsRecord_CompanionType());
+ _id_Companion.get(_class, const $StepsRecord_Companion$Type());
static final _id_COUNT_TOTAL = _class.staticFieldId(
- r"COUNT_TOTAL",
- r"Landroidx/health/connect/client/aggregate/AggregateMetric;",
+ r'COUNT_TOTAL',
+ r'Landroidx/health/connect/client/aggregate/AggregateMetric;',
);
- /// from: static public final androidx.health.connect.client.aggregate.AggregateMetric COUNT_TOTAL
+ /// from: `static public final androidx.health.connect.client.aggregate.AggregateMetric COUNT_TOTAL`
/// The returned object must be released after use, by calling the [release] method.
- static AggregateMetric get COUNT_TOTAL =>
- _id_COUNT_TOTAL.get(_class, const $AggregateMetricType(jni.JLongType()));
+ static AggregateMetric<_$jni.JLong> get COUNT_TOTAL => _id_COUNT_TOTAL.get(
+ _class, const $AggregateMetric$Type(_$jni.JLongType()));
- static final _id_new0 = _class.constructorId(
- r"(JLjava/time/Instant;Ljava/time/ZoneOffset;Ljava/time/Instant;Ljava/time/ZoneOffset;Landroidx/health/connect/client/records/metadata/Metadata;)V",
+ static final _id_new$ = _class.constructorId(
+ r'(JLjava/time/Instant;Ljava/time/ZoneOffset;Ljava/time/Instant;Ljava/time/ZoneOffset;Landroidx/health/connect/client/records/metadata/Metadata;)V',
);
- static final _new0 = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<
+ static final _new$ = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<
(
- ffi.Int64,
- ffi.Pointer,
- ffi.Pointer,
- ffi.Pointer,
- ffi.Pointer,
- ffi.Pointer
- )>)>>("globalEnv_NewObject")
- .asFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
+ _$jni.Int64,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>
+ )>)>>('globalEnv_NewObject')
+ .asFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
int,
- ffi.Pointer,
- ffi.Pointer,
- ffi.Pointer,
- ffi.Pointer,
- ffi.Pointer)>();
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>)>();
- /// from: public void (long j, java.time.Instant instant, java.time.ZoneOffset zoneOffset, java.time.Instant instant1, java.time.ZoneOffset zoneOffset1, androidx.health.connect.client.records.metadata.Metadata metadata)
+ /// from: `public void (long j, java.time.Instant instant, java.time.ZoneOffset zoneOffset, java.time.Instant instant1, java.time.ZoneOffset zoneOffset1, androidx.health.connect.client.records.metadata.Metadata metadata)`
/// The returned object must be released after use, by calling the [release] method.
factory StepsRecord(
int j,
Instant instant,
- jni.JObject zoneOffset,
+ _$jni.JObject zoneOffset,
Instant instant1,
- jni.JObject zoneOffset1,
- jni.JObject metadata,
+ _$jni.JObject zoneOffset1,
+ _$jni.JObject metadata,
) {
- return StepsRecord.fromReference(_new0(
+ return StepsRecord.fromReference(_new$(
_class.reference.pointer,
- _id_new0 as jni.JMethodIDPtr,
+ _id_new$ as _$jni.JMethodIDPtr,
j,
instant.reference.pointer,
zoneOffset.reference.pointer,
@@ -1400,54 +2264,54 @@ class StepsRecord extends jni.JObject {
.reference);
}
- static final _id_new1 = _class.constructorId(
- r"(JLjava/time/Instant;Ljava/time/ZoneOffset;Ljava/time/Instant;Ljava/time/ZoneOffset;Landroidx/health/connect/client/records/metadata/Metadata;ILkotlin/jvm/internal/DefaultConstructorMarker;)V",
+ static final _id_new$1 = _class.constructorId(
+ r'(JLjava/time/Instant;Ljava/time/ZoneOffset;Ljava/time/Instant;Ljava/time/ZoneOffset;Landroidx/health/connect/client/records/metadata/Metadata;ILkotlin/jvm/internal/DefaultConstructorMarker;)V',
);
- static final _new1 = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<
+ static final _new$1 = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ _$jni.VarArgs<
(
- ffi.Int64,
- ffi.Pointer,
- ffi.Pointer,
- ffi.Pointer,
- ffi.Pointer,
- ffi.Pointer,
- ffi.Int64,
- ffi.Pointer
- )>)>>("globalEnv_NewObject")
- .asFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
+ _$jni.Int64,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Int32,
+ _$jni.Pointer<_$jni.Void>
+ )>)>>('globalEnv_NewObject')
+ .asFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
int,
- ffi.Pointer,
- ffi.Pointer,
- ffi.Pointer,
- ffi.Pointer,
- ffi.Pointer,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.Pointer<_$jni.Void>,
int,
- ffi.Pointer)>();
+ _$jni.Pointer<_$jni.Void>)>();
- /// from: public void (long j, java.time.Instant instant, java.time.ZoneOffset zoneOffset, java.time.Instant instant1, java.time.ZoneOffset zoneOffset1, androidx.health.connect.client.records.metadata.Metadata metadata, int i, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)
+ /// from: `synthetic public void (long j, java.time.Instant instant, java.time.ZoneOffset zoneOffset, java.time.Instant instant1, java.time.ZoneOffset zoneOffset1, androidx.health.connect.client.records.metadata.Metadata metadata, int i, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)`
/// The returned object must be released after use, by calling the [release] method.
- factory StepsRecord.new1(
+ factory StepsRecord.new$1(
int j,
Instant instant,
- jni.JObject zoneOffset,
+ _$jni.JObject zoneOffset,
Instant instant1,
- jni.JObject zoneOffset1,
- jni.JObject metadata,
+ _$jni.JObject zoneOffset1,
+ _$jni.JObject metadata,
int i,
- jni.JObject defaultConstructorMarker,
+ _$jni.JObject defaultConstructorMarker,
) {
- return StepsRecord.fromReference(_new1(
+ return StepsRecord.fromReference(_new$1(
_class.reference.pointer,
- _id_new1 as jni.JMethodIDPtr,
+ _id_new$1 as _$jni.JMethodIDPtr,
j,
instant.reference.pointer,
zoneOffset.reference.pointer,
@@ -1460,519 +2324,544 @@ class StepsRecord extends jni.JObject {
}
static final _id_getCount = _class.instanceMethodId(
- r"getCount",
- r"()J",
+ r'getCount',
+ r'()J',
);
- static final _getCount = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- )>>("globalEnv_CallLongMethod")
+ static final _getCount = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ )>>('globalEnv_CallLongMethod')
.asFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
)>();
- /// from: public final long getCount()
+ /// from: `public final long getCount()`
int getCount() {
- return _getCount(reference.pointer, _id_getCount as jni.JMethodIDPtr).long;
+ return _getCount(reference.pointer, _id_getCount as _$jni.JMethodIDPtr)
+ .long;
}
static final _id_getStartTime = _class.instanceMethodId(
- r"getStartTime",
- r"()Ljava/time/Instant;",
+ r'getStartTime',
+ r'()Ljava/time/Instant;',
);
- static final _getStartTime = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- )>>("globalEnv_CallObjectMethod")
+ static final _getStartTime = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ )>>('globalEnv_CallObjectMethod')
.asFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
)>();
- /// from: public java.time.Instant getStartTime()
+ /// from: `public java.time.Instant getStartTime()`
/// The returned object must be released after use, by calling the [release] method.
Instant getStartTime() {
return _getStartTime(
- reference.pointer, _id_getStartTime as jni.JMethodIDPtr)
- .object(const $InstantType());
+ reference.pointer, _id_getStartTime as _$jni.JMethodIDPtr)
+ .object(const $Instant$Type());
}
static final _id_getStartZoneOffset = _class.instanceMethodId(
- r"getStartZoneOffset",
- r"()Ljava/time/ZoneOffset;",
+ r'getStartZoneOffset',
+ r'()Ljava/time/ZoneOffset;',
);
- static final _getStartZoneOffset = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- )>>("globalEnv_CallObjectMethod")
+ static final _getStartZoneOffset = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ )>>('globalEnv_CallObjectMethod')
.asFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
)>();
- /// from: public java.time.ZoneOffset getStartZoneOffset()
+ /// from: `public java.time.ZoneOffset getStartZoneOffset()`
/// The returned object must be released after use, by calling the [release] method.
- jni.JObject getStartZoneOffset() {
+ _$jni.JObject getStartZoneOffset() {
return _getStartZoneOffset(
- reference.pointer, _id_getStartZoneOffset as jni.JMethodIDPtr)
- .object(const jni.JObjectType());
+ reference.pointer, _id_getStartZoneOffset as _$jni.JMethodIDPtr)
+ .object(const _$jni.JObjectType());
}
static final _id_getEndTime = _class.instanceMethodId(
- r"getEndTime",
- r"()Ljava/time/Instant;",
+ r'getEndTime',
+ r'()Ljava/time/Instant;',
);
- static final _getEndTime = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- )>>("globalEnv_CallObjectMethod")
+ static final _getEndTime = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ )>>('globalEnv_CallObjectMethod')
.asFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
)>();
- /// from: public java.time.Instant getEndTime()
+ /// from: `public java.time.Instant getEndTime()`
/// The returned object must be released after use, by calling the [release] method.
Instant getEndTime() {
- return _getEndTime(reference.pointer, _id_getEndTime as jni.JMethodIDPtr)
- .object(const $InstantType());
+ return _getEndTime(reference.pointer, _id_getEndTime as _$jni.JMethodIDPtr)
+ .object(const $Instant$Type());
}
static final _id_getEndZoneOffset = _class.instanceMethodId(
- r"getEndZoneOffset",
- r"()Ljava/time/ZoneOffset;",
+ r'getEndZoneOffset',
+ r'()Ljava/time/ZoneOffset;',
);
- static final _getEndZoneOffset = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- )>>("globalEnv_CallObjectMethod")
+ static final _getEndZoneOffset = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ )>>('globalEnv_CallObjectMethod')
.asFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
)>();
- /// from: public java.time.ZoneOffset getEndZoneOffset()
+ /// from: `public java.time.ZoneOffset getEndZoneOffset()`
/// The returned object must be released after use, by calling the [release] method.
- jni.JObject getEndZoneOffset() {
+ _$jni.JObject getEndZoneOffset() {
return _getEndZoneOffset(
- reference.pointer, _id_getEndZoneOffset as jni.JMethodIDPtr)
- .object(const jni.JObjectType());
+ reference.pointer, _id_getEndZoneOffset as _$jni.JMethodIDPtr)
+ .object(const _$jni.JObjectType());
}
static final _id_getMetadata = _class.instanceMethodId(
- r"getMetadata",
- r"()Landroidx/health/connect/client/records/metadata/Metadata;",
+ r'getMetadata',
+ r'()Landroidx/health/connect/client/records/metadata/Metadata;',
);
- static final _getMetadata = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- )>>("globalEnv_CallObjectMethod")
+ static final _getMetadata = _$jni.ProtectedJniExtensions.lookup<
+ _$jni.NativeFunction<
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
+ )>>('globalEnv_CallObjectMethod')
.asFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
+ _$jni.JniResult Function(
+ _$jni.Pointer<_$jni.Void>,
+ _$jni.JMethodIDPtr,
)>();
- /// from: public androidx.health.connect.client.records.metadata.Metadata getMetadata()
+ /// from: `public androidx.health.connect.client.records.metadata.Metadata getMetadata()`
/// The returned object must be released after use, by calling the [release] method.
- jni.JObject getMetadata() {
- return _getMetadata(reference.pointer, _id_getMetadata as jni.JMethodIDPtr)
- .object(const jni.JObjectType());
+ _$jni.JObject getMetadata() {
+ return _getMetadata(
+ reference.pointer, _id_getMetadata as _$jni.JMethodIDPtr)
+ .object(const _$jni.JObjectType());
}
static final _id_equals = _class.instanceMethodId(
- r"equals",
- r"(Ljava/lang/Object;)Z",
+ r'equals',
+ r'(Ljava/lang/Object;)Z',
);
- static final _equals = ProtectedJniExtensions.lookup<
- ffi.NativeFunction<
- jni.JniResult Function(
- ffi.Pointer,
- jni.JMethodIDPtr,
- ffi.VarArgs<(ffi.Pointer