diff --git a/experimental/pedometer/example/pubspec.yaml b/experimental/pedometer/example/pubspec.yaml index 274474375b8..aa8add51292 100644 --- a/experimental/pedometer/example/pubspec.yaml +++ b/experimental/pedometer/example/pubspec.yaml @@ -44,7 +44,7 @@ dependencies: cupertino_icons: ^1.0.2 ffi: ^2.0.1 intl: ^0.18.0 - jni: ^0.5.0 + jni: ^0.6.1 fl_chart: ^0.63.0 dev_dependencies: diff --git a/experimental/pedometer/jnigen.yaml b/experimental/pedometer/jnigen.yaml index 9c412f691ed..3d7bc151d9e 100644 --- a/experimental/pedometer/jnigen.yaml +++ b/experimental/pedometer/jnigen.yaml @@ -3,8 +3,6 @@ android_sdk_config: add_gradle_sources: true android_example: 'example/' -suspend_fun_to_async: true - output: c: library_name: health_connect diff --git a/experimental/pedometer/lib/health_connect.dart b/experimental/pedometer/lib/health_connect.dart index 3e93c2c09d3..6e9ac908c65 100644 --- a/experimental/pedometer/lib/health_connect.dart +++ b/experimental/pedometer/lib/health_connect.dart @@ -12,6 +12,7 @@ // ignore_for_file: unused_element // ignore_for_file: unused_field // ignore_for_file: unused_import +// ignore_for_file: unused_local_variable // ignore_for_file: unused_shown_name import "dart:isolate" show ReceivePort; @@ -24,6 +25,124 @@ import "package:jni/jni.dart" as jni; final ffi.Pointer Function(String sym) jniLookup = ProtectedJniExtensions.initGeneratedLibrary("health_connect"); +/// from: androidx.health.connect.client.HealthConnectClient$Companion +class HealthConnectClient_Companion extends jni.JObject { + @override + late final jni.JObjType $type = type; + + HealthConnectClient_Companion.fromRef( + jni.JObjectPtr ref, + ) : super.fromRef(ref); + + /// The type which includes information such as the signature of this class. + static const type = $HealthConnectClient_CompanionType(); + + /// from: static public final java.lang.String DEFAULT_PROVIDER_PACKAGE_NAME + static const DEFAULT_PROVIDER_PACKAGE_NAME = + r"""com.google.android.apps.healthdata"""; + + /// from: static public final java.lang.String HEALTH_CONNECT_CLIENT_TAG + static const HEALTH_CONNECT_CLIENT_TAG = r"""HealthConnectClient"""; + + static final _isAvailable = jniLookup< + ffi.NativeFunction< + jni.JniResult Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>( + "HealthConnectClient_Companion__isAvailable") + .asFunction< + jni.JniResult Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + /// from: public final boolean isAvailable(android.content.Context context, java.util.List list) + bool isAvailable( + Context context, + jni.JList list, + ) { + return _isAvailable(reference, context.reference, list.reference).boolean; + } + + static final _getOrCreate = jniLookup< + ffi.NativeFunction< + jni.JniResult Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>( + "HealthConnectClient_Companion__getOrCreate") + .asFunction< + jni.JniResult Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + /// 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, + ) { + return const $HealthConnectClientType().fromRef( + _getOrCreate(reference, context.reference, list.reference).object); + } + + static final _isAvailable1 = jniLookup< + ffi.NativeFunction< + jni.JniResult Function( + ffi.Pointer, ffi.Pointer)>>( + "HealthConnectClient_Companion__isAvailable1") + .asFunction< + jni.JniResult Function( + ffi.Pointer, ffi.Pointer)>(); + + /// from: public final boolean isAvailable(android.content.Context context) + bool isAvailable1( + Context context, + ) { + return _isAvailable1(reference, context.reference).boolean; + } + + static final _getOrCreate1 = jniLookup< + ffi.NativeFunction< + jni.JniResult Function( + ffi.Pointer, ffi.Pointer)>>( + "HealthConnectClient_Companion__getOrCreate1") + .asFunction< + jni.JniResult Function( + ffi.Pointer, ffi.Pointer)>(); + + /// 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( + Context context, + ) { + return const $HealthConnectClientType() + .fromRef(_getOrCreate1(reference, context.reference).object); + } +} + +class $HealthConnectClient_CompanionType + extends jni.JObjType { + const $HealthConnectClient_CompanionType(); + + @override + String get signature => + r"Landroidx/health/connect/client/HealthConnectClient$Companion;"; + + @override + HealthConnectClient_Companion fromRef(jni.JObjectPtr ref) => + HealthConnectClient_Companion.fromRef(ref); + + @override + jni.JObjType get superType => const jni.JObjectType(); + + @override + final superCount = 1; + + @override + int get hashCode => ($HealthConnectClient_CompanionType).hashCode; + + @override + bool operator ==(Object other) { + return other.runtimeType == ($HealthConnectClient_CompanionType) && + other is $HealthConnectClient_CompanionType; + } +} + /// from: androidx.health.connect.client.HealthConnectClient class HealthConnectClient extends jni.JObject { @override @@ -41,9 +160,10 @@ class HealthConnectClient extends jni.JObject { .asFunction(); /// from: static public final androidx.health.connect.client.HealthConnectClient$Companion Companion - /// The returned object must be deleted after use, by calling the `delete` method. - static jni.JObject get Companion => - const jni.JObjectType().fromRef(_get_Companion().object); + /// The returned object must be released after use, by calling the [release] method. + static HealthConnectClient_Companion get Companion => + const $HealthConnectClient_CompanionType() + .fromRef(_get_Companion().object); /// from: static public final java.lang.String DEFAULT_PROVIDER_PACKAGE_NAME static const DEFAULT_PROVIDER_PACKAGE_NAME = @@ -59,7 +179,7 @@ class HealthConnectClient extends jni.JObject { .asFunction)>(); /// from: public abstract androidx.health.connect.client.PermissionController getPermissionController() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. PermissionController getPermissionController() { return const $PermissionControllerType() .fromRef(_getPermissionController(reference).object); @@ -76,12 +196,13 @@ class HealthConnectClient extends jni.JObject { ffi.Pointer)>(); /// from: public abstract java.lang.Object insertRecords(java.util.List list, kotlin.coroutines.Continuation continuation) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Future insertRecords( jni.JList list, ) async { final $p = ReceivePort(); - final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + final $c = + jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _insertRecords(reference, list.reference, $c.reference).object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JObjectType().getClass().reference; @@ -102,12 +223,13 @@ class HealthConnectClient extends jni.JObject { ffi.Pointer)>(); /// from: public abstract java.lang.Object updateRecords(java.util.List list, kotlin.coroutines.Continuation continuation) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Future updateRecords( jni.JList list, ) async { final $p = ReceivePort(); - final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + final $c = + jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _updateRecords(reference, list.reference, $c.reference).object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JObjectType().getClass().reference; @@ -134,14 +256,15 @@ class HealthConnectClient extends jni.JObject { 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 deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Future deleteRecords( jni.JObject kClass, jni.JList list, jni.JList list1, ) async { final $p = ReceivePort(); - final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + final $c = + jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _deleteRecords(reference, kClass.reference, list.reference, list1.reference, $c.reference) .object; @@ -166,13 +289,14 @@ class HealthConnectClient extends jni.JObject { 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 deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Future deleteRecords1( jni.JObject kClass, TimeRangeFilter timeRangeFilter, ) async { final $p = ReceivePort(); - final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + final $c = + jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _deleteRecords1(reference, kClass.reference, timeRangeFilter.reference, $c.reference) .object; @@ -196,14 +320,15 @@ class HealthConnectClient extends jni.JObject { 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 deleted after use, by calling the `delete` method. + /// 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, }) async { final $p = ReceivePort(); - final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + final $c = + jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _readRecord(reference, kClass.reference, string.reference, $c.reference) .object; final $o = jni.JObjectPtr.fromAddress(await $p.first); @@ -225,7 +350,7 @@ class HealthConnectClient extends jni.JObject { ffi.Pointer)>(); /// from: public abstract java.lang.Object readRecords(androidx.health.connect.client.request.ReadRecordsRequest readRecordsRequest, kotlin.coroutines.Continuation continuation) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Future readRecords<$T extends jni.JObject>( ReadRecordsRequest<$T> readRecordsRequest, { jni.JObjType<$T>? T, @@ -234,7 +359,8 @@ class HealthConnectClient extends jni.JObject { (readRecordsRequest.$type as $ReadRecordsRequestType).T, ]) as jni.JObjType<$T>; final $p = ReceivePort(); - final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + final $c = + jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _readRecords(reference, readRecordsRequest.reference, $c.reference).object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JObjectType().getClass().reference; @@ -255,12 +381,13 @@ class HealthConnectClient extends jni.JObject { ffi.Pointer)>(); /// from: public abstract java.lang.Object aggregate(androidx.health.connect.client.request.AggregateRequest aggregateRequest, kotlin.coroutines.Continuation continuation) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Future aggregate( AggregateRequest aggregateRequest, ) async { final $p = ReceivePort(); - final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + final $c = + jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _aggregate(reference, aggregateRequest.reference, $c.reference).object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const $AggregationResultType().getClass().reference; @@ -280,12 +407,13 @@ class HealthConnectClient extends jni.JObject { ffi.Pointer)>(); /// from: public abstract java.lang.Object aggregateGroupByDuration(androidx.health.connect.client.request.AggregateGroupByDurationRequest aggregateGroupByDurationRequest, kotlin.coroutines.Continuation continuation) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Future> aggregateGroupByDuration( AggregateGroupByDurationRequest aggregateGroupByDurationRequest, ) async { final $p = ReceivePort(); - final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + final $c = + jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _aggregateGroupByDuration( reference, aggregateGroupByDurationRequest.reference, $c.reference) .object; @@ -307,12 +435,13 @@ class HealthConnectClient extends jni.JObject { ffi.Pointer)>(); /// from: public abstract java.lang.Object aggregateGroupByPeriod(androidx.health.connect.client.request.AggregateGroupByPeriodRequest aggregateGroupByPeriodRequest, kotlin.coroutines.Continuation continuation) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Future> aggregateGroupByPeriod( AggregateGroupByPeriodRequest aggregateGroupByPeriodRequest, ) async { final $p = ReceivePort(); - final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + final $c = + jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _aggregateGroupByPeriod( reference, aggregateGroupByPeriodRequest.reference, $c.reference) .object; @@ -334,12 +463,13 @@ class HealthConnectClient extends jni.JObject { ffi.Pointer)>(); /// from: public abstract java.lang.Object getChangesToken(androidx.health.connect.client.request.ChangesTokenRequest changesTokenRequest, kotlin.coroutines.Continuation continuation) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Future getChangesToken( ChangesTokenRequest changesTokenRequest, ) async { final $p = ReceivePort(); - final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + final $c = + jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _getChangesToken(reference, changesTokenRequest.reference, $c.reference) .object; final $o = jni.JObjectPtr.fromAddress(await $p.first); @@ -363,13 +493,14 @@ class HealthConnectClient extends jni.JObject { 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 deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Future registerForDataNotifications( jni.JString string, jni.JObject iterable, ) async { final $p = ReceivePort(); - final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + final $c = + jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _registerForDataNotifications( reference, string.reference, iterable.reference, $c.reference) .object; @@ -391,12 +522,13 @@ class HealthConnectClient extends jni.JObject { ffi.Pointer)>(); /// from: public abstract java.lang.Object unregisterFromDataNotifications(java.lang.String string, kotlin.coroutines.Continuation continuation) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Future unregisterFromDataNotifications( jni.JString string, ) async { final $p = ReceivePort(); - final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + final $c = + jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _unregisterFromDataNotifications(reference, string.reference, $c.reference) .object; final $o = jni.JObjectPtr.fromAddress(await $p.first); @@ -418,12 +550,13 @@ class HealthConnectClient extends jni.JObject { ffi.Pointer)>(); /// from: public abstract java.lang.Object getChanges(java.lang.String string, kotlin.coroutines.Continuation continuation) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Future getChanges( jni.JString string, ) async { final $p = ReceivePort(); - final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + final $c = + jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _getChanges(reference, string.reference, $c.reference).object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JObjectType().getClass().reference; @@ -458,7 +591,7 @@ class HealthConnectClient extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: static public androidx.health.connect.client.HealthConnectClient getOrCreate(android.content.Context context, java.util.List list) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static HealthConnectClient getOrCreate( Context context, jni.JList list, @@ -487,7 +620,7 @@ class HealthConnectClient extends jni.JObject { .asFunction)>(); /// from: static public androidx.health.connect.client.HealthConnectClient getOrCreate(android.content.Context context) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static HealthConnectClient getOrCreate1( Context context, ) { @@ -523,6 +656,78 @@ class $HealthConnectClientType extends jni.JObjType { } } +/// from: androidx.health.connect.client.PermissionController$Companion +class PermissionController_Companion extends jni.JObject { + @override + late final jni.JObjType $type = type; + + PermissionController_Companion.fromRef( + jni.JObjectPtr ref, + ) : super.fromRef(ref); + + /// The type which includes information such as the signature of this class. + static const type = $PermissionController_CompanionType(); + static final _createRequestPermissionResultContract = jniLookup< + ffi.NativeFunction< + jni.JniResult Function( + ffi.Pointer, ffi.Pointer)>>( + "PermissionController_Companion__createRequestPermissionResultContract") + .asFunction< + jni.JniResult Function( + ffi.Pointer, ffi.Pointer)>(); + + /// 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, + ) { + return const jni.JObjectType().fromRef( + _createRequestPermissionResultContract(reference, string.reference) + .object); + } + + static final _createRequestPermissionResultContract1 = jniLookup< + ffi + .NativeFunction)>>( + "PermissionController_Companion__createRequestPermissionResultContract1") + .asFunction)>(); + + /// 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 const jni.JObjectType() + .fromRef(_createRequestPermissionResultContract1(reference).object); + } +} + +class $PermissionController_CompanionType + extends jni.JObjType { + const $PermissionController_CompanionType(); + + @override + String get signature => + r"Landroidx/health/connect/client/PermissionController$Companion;"; + + @override + PermissionController_Companion fromRef(jni.JObjectPtr ref) => + PermissionController_Companion.fromRef(ref); + + @override + jni.JObjType get superType => const jni.JObjectType(); + + @override + final superCount = 1; + + @override + int get hashCode => ($PermissionController_CompanionType).hashCode; + + @override + bool operator ==(Object other) { + return other.runtimeType == ($PermissionController_CompanionType) && + other is $PermissionController_CompanionType; + } +} + /// from: androidx.health.connect.client.PermissionController class PermissionController extends jni.JObject { @override @@ -540,9 +745,10 @@ class PermissionController extends jni.JObject { .asFunction(); /// from: static public final androidx.health.connect.client.PermissionController$Companion Companion - /// The returned object must be deleted after use, by calling the `delete` method. - static jni.JObject get Companion => - const jni.JObjectType().fromRef(_get_Companion().object); + /// The returned object must be released after use, by calling the [release] method. + static PermissionController_Companion get Companion => + const $PermissionController_CompanionType() + .fromRef(_get_Companion().object); static final _getGrantedPermissions = jniLookup< ffi.NativeFunction< @@ -554,12 +760,13 @@ class PermissionController extends jni.JObject { ffi.Pointer)>(); /// from: public abstract java.lang.Object getGrantedPermissions(java.util.Set set, kotlin.coroutines.Continuation continuation) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Future> getGrantedPermissions( jni.JSet set0, ) async { final $p = ReceivePort(); - final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + final $c = + jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _getGrantedPermissions(reference, set0.reference, $c.reference).object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JSetType(jni.JObjectType()).getClass().reference; @@ -579,10 +786,11 @@ class PermissionController extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract java.lang.Object revokeAllPermissions(kotlin.coroutines.Continuation continuation) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Future revokeAllPermissions() async { final $p = ReceivePort(); - final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + final $c = + jni.JObject.fromRef(ProtectedJniExtensions.newPortContinuation($p)); _revokeAllPermissions(reference, $c.reference).object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JObjectType().getClass().reference; @@ -599,7 +807,7 @@ class PermissionController extends jni.JObject { .asFunction)>(); /// from: static public androidx.activity.result.contract.ActivityResultContract createRequestPermissionResultContract(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static jni.JObject createRequestPermissionResultContract( jni.JString string, ) { @@ -613,7 +821,7 @@ class PermissionController extends jni.JObject { .asFunction(); /// from: static public androidx.activity.result.contract.ActivityResultContract createRequestPermissionResultContract() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static jni.JObject createRequestPermissionResultContract1() { return const jni.JObjectType() .fromRef(_createRequestPermissionResultContract1().object); @@ -647,6 +855,60 @@ class $PermissionControllerType extends jni.JObjType { } } +/// from: androidx.health.connect.client.records.StepsRecord$Companion +class StepsRecord_Companion extends jni.JObject { + @override + late final jni.JObjType $type = type; + + StepsRecord_Companion.fromRef( + jni.JObjectPtr ref, + ) : super.fromRef(ref); + + /// The type which includes information such as the signature of this class. + static const type = $StepsRecord_CompanionType(); + static final _new0 = jniLookup< + ffi + .NativeFunction)>>( + "StepsRecord_Companion__new0") + .asFunction)>(); + + /// from: 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, + ) { + return StepsRecord_Companion.fromRef( + _new0(defaultConstructorMarker.reference).object); + } +} + +class $StepsRecord_CompanionType extends jni.JObjType { + const $StepsRecord_CompanionType(); + + @override + String get signature => + r"Landroidx/health/connect/client/records/StepsRecord$Companion;"; + + @override + StepsRecord_Companion fromRef(jni.JObjectPtr ref) => + StepsRecord_Companion.fromRef(ref); + + @override + jni.JObjType get superType => const jni.JObjectType(); + + @override + final superCount = 1; + + @override + int get hashCode => ($StepsRecord_CompanionType).hashCode; + + @override + bool operator ==(Object other) { + return other.runtimeType == ($StepsRecord_CompanionType) && + other is $StepsRecord_CompanionType; + } +} + /// from: androidx.health.connect.client.records.StepsRecord class StepsRecord extends jni.JObject { @override @@ -664,9 +926,9 @@ class StepsRecord extends jni.JObject { .asFunction(); /// from: static public final androidx.health.connect.client.records.StepsRecord$Companion Companion - /// The returned object must be deleted after use, by calling the `delete` method. - static jni.JObject get Companion => - const jni.JObjectType().fromRef(_get_Companion().object); + /// The returned object must be released after use, by calling the [release] method. + static StepsRecord_Companion get Companion => + const $StepsRecord_CompanionType().fromRef(_get_Companion().object); static final _get_COUNT_TOTAL = jniLookup>( @@ -674,12 +936,12 @@ class StepsRecord extends jni.JObject { .asFunction(); /// from: static public final androidx.health.connect.client.aggregate.AggregateMetric COUNT_TOTAL - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static AggregateMetric get COUNT_TOTAL => const $AggregateMetricType(jni.JLongType()) .fromRef(_get_COUNT_TOTAL().object); - static final _ctor = jniLookup< + static final _new0 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Int64, @@ -687,7 +949,7 @@ class StepsRecord extends jni.JObject { ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>("StepsRecord__ctor") + ffi.Pointer)>>("StepsRecord__new0") .asFunction< jni.JniResult Function( int, @@ -698,7 +960,7 @@ class StepsRecord extends jni.JObject { ffi.Pointer)>(); /// 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 deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. factory StepsRecord( int j, Instant instant, @@ -707,12 +969,12 @@ class StepsRecord extends jni.JObject { jni.JObject zoneOffset1, jni.JObject metadata, ) { - return StepsRecord.fromRef(_ctor(j, instant.reference, zoneOffset.reference, + return StepsRecord.fromRef(_new0(j, instant.reference, zoneOffset.reference, instant1.reference, zoneOffset1.reference, metadata.reference) .object); } - static final _ctor1 = jniLookup< + static final _new1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Int64, @@ -722,7 +984,7 @@ class StepsRecord extends jni.JObject { ffi.Pointer, ffi.Pointer, ffi.Int32, - ffi.Pointer)>>("StepsRecord__ctor1") + ffi.Pointer)>>("StepsRecord__new1") .asFunction< jni.JniResult Function( int, @@ -735,8 +997,8 @@ class StepsRecord extends jni.JObject { ffi.Pointer)>(); /// 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) - /// The returned object must be deleted after use, by calling the `delete` method. - factory StepsRecord.ctor1( + /// The returned object must be released after use, by calling the [release] method. + factory StepsRecord.new1( int j, Instant instant, jni.JObject zoneOffset, @@ -746,7 +1008,7 @@ class StepsRecord extends jni.JObject { int i, jni.JObject defaultConstructorMarker, ) { - return StepsRecord.fromRef(_ctor1( + return StepsRecord.fromRef(_new1( j, instant.reference, zoneOffset.reference, @@ -776,7 +1038,7 @@ class StepsRecord extends jni.JObject { .asFunction)>(); /// from: public java.time.Instant getStartTime() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Instant getStartTime() { return const $InstantType().fromRef(_getStartTime(reference).object); } @@ -788,7 +1050,7 @@ class StepsRecord extends jni.JObject { .asFunction)>(); /// from: public java.time.ZoneOffset getStartZoneOffset() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getStartZoneOffset() { return const jni.JObjectType() .fromRef(_getStartZoneOffset(reference).object); @@ -801,7 +1063,7 @@ class StepsRecord extends jni.JObject { .asFunction)>(); /// from: public java.time.Instant getEndTime() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Instant getEndTime() { return const $InstantType().fromRef(_getEndTime(reference).object); } @@ -813,7 +1075,7 @@ class StepsRecord extends jni.JObject { .asFunction)>(); /// from: public java.time.ZoneOffset getEndZoneOffset() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getEndZoneOffset() { return const jni.JObjectType().fromRef(_getEndZoneOffset(reference).object); } @@ -825,7 +1087,7 @@ class StepsRecord extends jni.JObject { .asFunction)>(); /// from: public androidx.health.connect.client.records.metadata.Metadata getMetadata() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getMetadata() { return const jni.JObjectType().fromRef(_getMetadata(reference).object); } @@ -904,7 +1166,7 @@ class TimeRangeFilter_Companion extends jni.JObject { ffi.Pointer)>(); /// from: public final androidx.health.connect.client.time.TimeRangeFilter between(java.time.Instant instant, java.time.Instant instant1) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. TimeRangeFilter between( Instant instant, Instant instant1, @@ -923,7 +1185,7 @@ class TimeRangeFilter_Companion extends jni.JObject { ffi.Pointer)>(); /// from: public final androidx.health.connect.client.time.TimeRangeFilter between(java.time.LocalDateTime localDateTime, java.time.LocalDateTime localDateTime1) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. TimeRangeFilter between1( jni.JObject localDateTime, jni.JObject localDateTime1, @@ -942,7 +1204,7 @@ class TimeRangeFilter_Companion extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public final androidx.health.connect.client.time.TimeRangeFilter before(java.time.Instant instant) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. TimeRangeFilter before( Instant instant, ) { @@ -959,7 +1221,7 @@ class TimeRangeFilter_Companion extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public final androidx.health.connect.client.time.TimeRangeFilter before(java.time.LocalDateTime localDateTime) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. TimeRangeFilter before1( jni.JObject localDateTime, ) { @@ -976,7 +1238,7 @@ class TimeRangeFilter_Companion extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public final androidx.health.connect.client.time.TimeRangeFilter after(java.time.Instant instant) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. TimeRangeFilter after( Instant instant, ) { @@ -993,7 +1255,7 @@ class TimeRangeFilter_Companion extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public final androidx.health.connect.client.time.TimeRangeFilter after(java.time.LocalDateTime localDateTime) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. TimeRangeFilter after1( jni.JObject localDateTime, ) { @@ -1001,19 +1263,19 @@ class TimeRangeFilter_Companion extends jni.JObject { .fromRef(_after1(reference, localDateTime.reference).object); } - static final _ctor = jniLookup< + static final _new0 = jniLookup< ffi .NativeFunction)>>( - "TimeRangeFilter_Companion__ctor") + "TimeRangeFilter_Companion__new0") .asFunction)>(); /// from: public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. factory TimeRangeFilter_Companion( jni.JObject defaultConstructorMarker, ) { return TimeRangeFilter_Companion.fromRef( - _ctor(defaultConstructorMarker.reference).object); + _new0(defaultConstructorMarker.reference).object); } } @@ -1062,35 +1324,35 @@ class TimeRangeFilter extends jni.JObject { .asFunction(); /// from: static public final androidx.health.connect.client.time.TimeRangeFilter$Companion Companion - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static TimeRangeFilter_Companion get Companion => const $TimeRangeFilter_CompanionType().fromRef(_get_Companion().object); - static final _ctor = jniLookup< + static final _new0 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>("TimeRangeFilter__ctor") + ffi.Pointer)>>("TimeRangeFilter__new0") .asFunction< jni.JniResult Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); /// from: public void (java.time.Instant instant, java.time.Instant instant1, java.time.LocalDateTime localDateTime, java.time.LocalDateTime localDateTime1) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. factory TimeRangeFilter( Instant instant, Instant instant1, jni.JObject localDateTime, jni.JObject localDateTime1, ) { - return TimeRangeFilter.fromRef(_ctor(instant.reference, instant1.reference, + return TimeRangeFilter.fromRef(_new0(instant.reference, instant1.reference, localDateTime.reference, localDateTime1.reference) .object); } - static final _ctor1 = jniLookup< + static final _new1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer, @@ -1098,7 +1360,7 @@ class TimeRangeFilter extends jni.JObject { ffi.Pointer, ffi.Pointer, ffi.Int32, - ffi.Pointer)>>("TimeRangeFilter__ctor1") + ffi.Pointer)>>("TimeRangeFilter__new1") .asFunction< jni.JniResult Function( ffi.Pointer, @@ -1109,8 +1371,8 @@ class TimeRangeFilter extends jni.JObject { ffi.Pointer)>(); /// from: public void (java.time.Instant instant, java.time.Instant instant1, java.time.LocalDateTime localDateTime, java.time.LocalDateTime localDateTime1, int i, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) - /// The returned object must be deleted after use, by calling the `delete` method. - factory TimeRangeFilter.ctor1( + /// The returned object must be released after use, by calling the [release] method. + factory TimeRangeFilter.new1( Instant instant, Instant instant1, jni.JObject localDateTime, @@ -1118,7 +1380,7 @@ class TimeRangeFilter extends jni.JObject { int i, jni.JObject defaultConstructorMarker, ) { - return TimeRangeFilter.fromRef(_ctor1( + return TimeRangeFilter.fromRef(_new1( instant.reference, instant1.reference, localDateTime.reference, @@ -1154,14 +1416,14 @@ class TimeRangeFilter extends jni.JObject { return _hashCode1(reference).integer; } - static final _ctor2 = jniLookup>( - "TimeRangeFilter__ctor2") + static final _new2 = jniLookup>( + "TimeRangeFilter__new2") .asFunction(); /// from: public void () - /// The returned object must be deleted after use, by calling the `delete` method. - factory TimeRangeFilter.ctor2() { - return TimeRangeFilter.fromRef(_ctor2().object); + /// The returned object must be released after use, by calling the [release] method. + factory TimeRangeFilter.new2() { + return TimeRangeFilter.fromRef(_new2().object); } static final _between = jniLookup< @@ -1173,7 +1435,7 @@ class TimeRangeFilter extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: static public final androidx.health.connect.client.time.TimeRangeFilter between(java.time.Instant instant, java.time.Instant instant1) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static TimeRangeFilter between( Instant instant, Instant instant1, @@ -1191,7 +1453,7 @@ class TimeRangeFilter extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: static public final androidx.health.connect.client.time.TimeRangeFilter between(java.time.LocalDateTime localDateTime, java.time.LocalDateTime localDateTime1) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static TimeRangeFilter between1( jni.JObject localDateTime, jni.JObject localDateTime1, @@ -1207,7 +1469,7 @@ class TimeRangeFilter extends jni.JObject { .asFunction)>(); /// from: static public final androidx.health.connect.client.time.TimeRangeFilter before(java.time.Instant instant) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static TimeRangeFilter before( Instant instant, ) { @@ -1222,7 +1484,7 @@ class TimeRangeFilter extends jni.JObject { .asFunction)>(); /// from: static public final androidx.health.connect.client.time.TimeRangeFilter before(java.time.LocalDateTime localDateTime) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static TimeRangeFilter before1( jni.JObject localDateTime, ) { @@ -1237,7 +1499,7 @@ class TimeRangeFilter extends jni.JObject { .asFunction)>(); /// from: static public final androidx.health.connect.client.time.TimeRangeFilter after(java.time.Instant instant) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static TimeRangeFilter after( Instant instant, ) { @@ -1252,7 +1514,7 @@ class TimeRangeFilter extends jni.JObject { .asFunction)>(); /// from: static public final androidx.health.connect.client.time.TimeRangeFilter after(java.time.LocalDateTime localDateTime) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static TimeRangeFilter after1( jni.JObject localDateTime, ) { @@ -1631,14 +1893,14 @@ class Context extends jni.JObject { /// from: static public final java.lang.String WINDOW_SERVICE static const WINDOW_SERVICE = r"""window"""; - static final _ctor = - jniLookup>("Context__ctor") + static final _new0 = + jniLookup>("Context__new0") .asFunction(); /// from: public void () - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. factory Context() { - return Context.fromRef(_ctor().object); + return Context.fromRef(_new0().object); } static final _getAssets = jniLookup< @@ -1648,7 +1910,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract android.content.res.AssetManager getAssets() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getAssets() { return const jni.JObjectType().fromRef(_getAssets(reference).object); } @@ -1660,7 +1922,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract android.content.res.Resources getResources() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getResources() { return const jni.JObjectType().fromRef(_getResources(reference).object); } @@ -1672,7 +1934,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract android.content.pm.PackageManager getPackageManager() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getPackageManager() { return const jni.JObjectType() .fromRef(_getPackageManager(reference).object); @@ -1685,7 +1947,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract android.content.ContentResolver getContentResolver() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getContentResolver() { return const jni.JObjectType() .fromRef(_getContentResolver(reference).object); @@ -1698,7 +1960,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract android.os.Looper getMainLooper() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getMainLooper() { return const jni.JObjectType().fromRef(_getMainLooper(reference).object); } @@ -1710,7 +1972,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public java.util.concurrent.Executor getMainExecutor() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getMainExecutor() { return const jni.JObjectType().fromRef(_getMainExecutor(reference).object); } @@ -1722,7 +1984,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract android.content.Context getApplicationContext() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Context getApplicationContext() { return const $ContextType() .fromRef(_getApplicationContext(reference).object); @@ -1770,7 +2032,7 @@ class Context extends jni.JObject { .asFunction, int)>(); /// from: public final java.lang.CharSequence getText(int i) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getText( int i, ) { @@ -1784,7 +2046,7 @@ class Context extends jni.JObject { .asFunction, int)>(); /// from: public final java.lang.String getString(int i) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JString getString( int i, ) { @@ -1800,7 +2062,7 @@ class Context extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: public final java.lang.String getString(int i, java.lang.Object[] objects) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JString getString1( int i, jni.JArray objects, @@ -1829,7 +2091,7 @@ class Context extends jni.JObject { .asFunction, int)>(); /// from: public final android.graphics.drawable.Drawable getDrawable(int i) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getDrawable( int i, ) { @@ -1843,7 +2105,7 @@ class Context extends jni.JObject { .asFunction, int)>(); /// from: public final android.content.res.ColorStateList getColorStateList(int i) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getColorStateList( int i, ) { @@ -1871,7 +2133,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract android.content.res.Resources$Theme getTheme() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getTheme() { return const jni.JObjectType().fromRef(_getTheme(reference).object); } @@ -1885,7 +2147,7 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public final android.content.res.TypedArray obtainStyledAttributes(int[] is) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject obtainStyledAttributes( jni.JArray is0, ) { @@ -1902,7 +2164,7 @@ class Context extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: public final android.content.res.TypedArray obtainStyledAttributes(int i, int[] is) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject obtainStyledAttributes1( int i, jni.JArray is0, @@ -1922,7 +2184,7 @@ class Context extends jni.JObject { ffi.Pointer)>(); /// from: public final android.content.res.TypedArray obtainStyledAttributes(android.util.AttributeSet attributeSet, int[] is) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject obtainStyledAttributes2( jni.JObject attributeSet, jni.JArray is0, @@ -1945,7 +2207,7 @@ class Context extends jni.JObject { ffi.Pointer, int, int)>(); /// from: public final android.content.res.TypedArray obtainStyledAttributes(android.util.AttributeSet attributeSet, int[] is, int i, int i1) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject obtainStyledAttributes3( jni.JObject attributeSet, jni.JArray is0, @@ -1964,7 +2226,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract java.lang.ClassLoader getClassLoader() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getClassLoader() { return const jni.JObjectType().fromRef(_getClassLoader(reference).object); } @@ -1976,7 +2238,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract java.lang.String getPackageName() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JString getPackageName() { return const jni.JStringType().fromRef(_getPackageName(reference).object); } @@ -1988,7 +2250,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public java.lang.String getOpPackageName() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JString getOpPackageName() { return const jni.JStringType().fromRef(_getOpPackageName(reference).object); } @@ -2000,7 +2262,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public java.lang.String getAttributionTag() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JString getAttributionTag() { return const jni.JStringType() .fromRef(_getAttributionTag(reference).object); @@ -2013,7 +2275,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public android.content.AttributionSource getAttributionSource() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getAttributionSource() { return const jni.JObjectType() .fromRef(_getAttributionSource(reference).object); @@ -2026,7 +2288,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public android.content.ContextParams getParams() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getParams() { return const jni.JObjectType().fromRef(_getParams(reference).object); } @@ -2038,7 +2300,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract android.content.pm.ApplicationInfo getApplicationInfo() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getApplicationInfo() { return const jni.JObjectType() .fromRef(_getApplicationInfo(reference).object); @@ -2051,7 +2313,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract java.lang.String getPackageResourcePath() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JString getPackageResourcePath() { return const jni.JStringType() .fromRef(_getPackageResourcePath(reference).object); @@ -2064,7 +2326,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract java.lang.String getPackageCodePath() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JString getPackageCodePath() { return const jni.JStringType() .fromRef(_getPackageCodePath(reference).object); @@ -2081,7 +2343,7 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public abstract android.content.SharedPreferences getSharedPreferences(java.lang.String string, int i) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getSharedPreferences( jni.JString string, int i, @@ -2134,7 +2396,7 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract java.io.FileInputStream openFileInput(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject openFileInput( jni.JString string, ) { @@ -2151,7 +2413,7 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public abstract java.io.FileOutputStream openFileOutput(java.lang.String string, int i) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject openFileOutput( jni.JString string, int i, @@ -2184,7 +2446,7 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract java.io.File getFileStreamPath(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getFileStreamPath( jni.JString string, ) { @@ -2199,7 +2461,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract java.io.File getDataDir() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getDataDir() { return const jni.JObjectType().fromRef(_getDataDir(reference).object); } @@ -2211,7 +2473,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract java.io.File getFilesDir() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getFilesDir() { return const jni.JObjectType().fromRef(_getFilesDir(reference).object); } @@ -2223,7 +2485,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract java.io.File getNoBackupFilesDir() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getNoBackupFilesDir() { return const jni.JObjectType() .fromRef(_getNoBackupFilesDir(reference).object); @@ -2238,7 +2500,7 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract java.io.File getExternalFilesDir(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getExternalFilesDir( jni.JString string, ) { @@ -2255,7 +2517,7 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract java.io.File[] getExternalFilesDirs(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JArray getExternalFilesDirs( jni.JString string, ) { @@ -2270,7 +2532,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract java.io.File getObbDir() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getObbDir() { return const jni.JObjectType().fromRef(_getObbDir(reference).object); } @@ -2282,7 +2544,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract java.io.File[] getObbDirs() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JArray getObbDirs() { return const jni.JArrayType(jni.JObjectType()) .fromRef(_getObbDirs(reference).object); @@ -2295,7 +2557,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract java.io.File getCacheDir() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getCacheDir() { return const jni.JObjectType().fromRef(_getCacheDir(reference).object); } @@ -2307,7 +2569,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract java.io.File getCodeCacheDir() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getCodeCacheDir() { return const jni.JObjectType().fromRef(_getCodeCacheDir(reference).object); } @@ -2319,7 +2581,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract java.io.File getExternalCacheDir() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getExternalCacheDir() { return const jni.JObjectType() .fromRef(_getExternalCacheDir(reference).object); @@ -2332,7 +2594,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract java.io.File[] getExternalCacheDirs() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JArray getExternalCacheDirs() { return const jni.JArrayType(jni.JObjectType()) .fromRef(_getExternalCacheDirs(reference).object); @@ -2345,7 +2607,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract java.io.File[] getExternalMediaDirs() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JArray getExternalMediaDirs() { return const jni.JArrayType(jni.JObjectType()) .fromRef(_getExternalMediaDirs(reference).object); @@ -2358,7 +2620,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract java.lang.String[] fileList() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JArray fileList() { return const jni.JArrayType(jni.JStringType()) .fromRef(_fileList(reference).object); @@ -2373,7 +2635,7 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public abstract java.io.File getDir(java.lang.String string, int i) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getDir( jni.JString string, int i, @@ -2394,7 +2656,7 @@ class Context extends jni.JObject { int, ffi.Pointer)>(); /// from: public abstract android.database.sqlite.SQLiteDatabase openOrCreateDatabase(java.lang.String string, int i, android.database.sqlite.SQLiteDatabase$CursorFactory cursorFactory) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject openOrCreateDatabase( jni.JString string, int i, @@ -2418,7 +2680,7 @@ class Context extends jni.JObject { int, ffi.Pointer, ffi.Pointer)>(); /// from: public abstract android.database.sqlite.SQLiteDatabase openOrCreateDatabase(java.lang.String string, int i, android.database.sqlite.SQLiteDatabase$CursorFactory cursorFactory, android.database.DatabaseErrorHandler databaseErrorHandler) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject openOrCreateDatabase1( jni.JString string, int i, @@ -2477,7 +2739,7 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract java.io.File getDatabasePath(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getDatabasePath( jni.JString string, ) { @@ -2492,7 +2754,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract java.lang.String[] databaseList() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JArray databaseList() { return const jni.JArrayType(jni.JStringType()) .fromRef(_databaseList(reference).object); @@ -2505,7 +2767,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract android.graphics.drawable.Drawable getWallpaper() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getWallpaper() { return const jni.JObjectType().fromRef(_getWallpaper(reference).object); } @@ -2517,7 +2779,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract android.graphics.drawable.Drawable peekWallpaper() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject peekWallpaper() { return const jni.JObjectType().fromRef(_peekWallpaper(reference).object); } @@ -3147,7 +3409,7 @@ class Context extends jni.JObject { ffi.Pointer)>(); /// from: public abstract android.content.Intent registerReceiver(android.content.BroadcastReceiver broadcastReceiver, android.content.IntentFilter intentFilter) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent registerReceiver( jni.JObject broadcastReceiver, jni.JObject intentFilter, @@ -3169,7 +3431,7 @@ class Context extends jni.JObject { ffi.Pointer, int)>(); /// from: public abstract android.content.Intent registerReceiver(android.content.BroadcastReceiver broadcastReceiver, android.content.IntentFilter intentFilter, int i) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent registerReceiver1( jni.JObject broadcastReceiver, jni.JObject intentFilter, @@ -3197,7 +3459,7 @@ class Context extends jni.JObject { ffi.Pointer)>(); /// from: public abstract android.content.Intent registerReceiver(android.content.BroadcastReceiver broadcastReceiver, android.content.IntentFilter intentFilter, java.lang.String string, android.os.Handler handler) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent registerReceiver2( jni.JObject broadcastReceiver, jni.JObject intentFilter, @@ -3232,7 +3494,7 @@ class Context extends jni.JObject { int)>(); /// from: public abstract android.content.Intent registerReceiver(android.content.BroadcastReceiver broadcastReceiver, android.content.IntentFilter intentFilter, java.lang.String string, android.os.Handler handler, int i) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent registerReceiver3( jni.JObject broadcastReceiver, jni.JObject intentFilter, @@ -3274,7 +3536,7 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract android.content.ComponentName startService(android.content.Intent intent) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject startService( Intent intent, ) { @@ -3291,7 +3553,7 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract android.content.ComponentName startForegroundService(android.content.Intent intent) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject startForegroundService( Intent intent, ) { @@ -3482,7 +3744,7 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract java.lang.Object getSystemService(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getSystemService( jni.JString string, ) { @@ -3499,7 +3761,7 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public final T getSystemService(java.lang.Class class) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. $T getSystemService1<$T extends jni.JObject>( jni.JObject class0, { required jni.JObjType<$T> T, @@ -3516,7 +3778,7 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract java.lang.String getSystemServiceName(java.lang.Class class) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JString getSystemServiceName( jni.JObject class0, ) { @@ -3748,7 +4010,7 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer, int, int, int)>(); /// from: public java.lang.Object[] checkUriPermissions(java.util.List list, int i, int i1, int i2) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JArray checkUriPermissions( jni.JList list, int i, @@ -3788,7 +4050,7 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public java.lang.Object[] checkCallingUriPermissions(java.util.List list, int i) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JArray checkCallingUriPermissions( jni.JList list, int i, @@ -3827,7 +4089,7 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public java.lang.Object[] checkCallingOrSelfUriPermissions(java.util.List list, int i) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JArray checkCallingOrSelfUriPermissions( jni.JList list, int i, @@ -4017,7 +4279,7 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public abstract android.content.Context createPackageContext(java.lang.String string, int i) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Context createPackageContext( jni.JString string, int i, @@ -4035,7 +4297,7 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract android.content.Context createContextForSplit(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Context createContextForSplit( jni.JString string, ) { @@ -4053,7 +4315,7 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract android.content.Context createConfigurationContext(android.content.res.Configuration configuration) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Context createConfigurationContext( jni.JObject configuration, ) { @@ -4070,7 +4332,7 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract android.content.Context createDisplayContext(android.view.Display display) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Context createDisplayContext( jni.JObject display, ) { @@ -4087,7 +4349,7 @@ class Context extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: public android.content.Context createWindowContext(int i, android.os.Bundle bundle) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Context createWindowContext( int i, jni.JObject bundle, @@ -4108,7 +4370,7 @@ class Context extends jni.JObject { int, ffi.Pointer)>(); /// from: public android.content.Context createWindowContext(android.view.Display display, int i, android.os.Bundle bundle) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Context createWindowContext1( jni.JObject display, int i, @@ -4128,7 +4390,7 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public android.content.Context createContext(android.content.ContextParams contextParams) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Context createContext( jni.JObject contextParams, ) { @@ -4145,7 +4407,7 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public android.content.Context createAttributionContext(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Context createAttributionContext( jni.JString string, ) { @@ -4160,7 +4422,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract android.content.Context createDeviceProtectedStorageContext() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Context createDeviceProtectedStorageContext() { return const $ContextType() .fromRef(_createDeviceProtectedStorageContext(reference).object); @@ -4173,7 +4435,7 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public android.view.Display getDisplay() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getDisplay() { return const jni.JObjectType().fromRef(_getDisplay(reference).object); } @@ -4189,37 +4451,299 @@ class Context extends jni.JObject { return _isRestricted(reference).boolean; } - static final _isDeviceProtectedStorage = jniLookup< + static final _isDeviceProtectedStorage = jniLookup< + ffi + .NativeFunction)>>( + "Context__isDeviceProtectedStorage") + .asFunction)>(); + + /// from: public abstract boolean isDeviceProtectedStorage() + bool isDeviceProtectedStorage() { + return _isDeviceProtectedStorage(reference).boolean; + } + + static final _isUiContext = jniLookup< + ffi + .NativeFunction)>>( + "Context__isUiContext") + .asFunction)>(); + + /// from: public boolean isUiContext() + bool isUiContext() { + return _isUiContext(reference).boolean; + } +} + +class $ContextType extends jni.JObjType { + const $ContextType(); + + @override + String get signature => r"Landroid/content/Context;"; + + @override + Context fromRef(jni.JObjectPtr ref) => Context.fromRef(ref); + + @override + jni.JObjType get superType => const jni.JObjectType(); + + @override + final superCount = 1; + + @override + int get hashCode => ($ContextType).hashCode; + + @override + bool operator ==(Object other) { + return other.runtimeType == ($ContextType) && other is $ContextType; + } +} + +/// from: android.content.Intent$FilterComparison +class Intent_FilterComparison extends jni.JObject { + @override + late final jni.JObjType $type = type; + + Intent_FilterComparison.fromRef( + jni.JObjectPtr ref, + ) : super.fromRef(ref); + + /// The type which includes information such as the signature of this class. + static const type = $Intent_FilterComparisonType(); + static final _new0 = jniLookup< + ffi + .NativeFunction)>>( + "Intent_FilterComparison__new0") + .asFunction)>(); + + /// from: public void (android.content.Intent intent) + /// The returned object must be released after use, by calling the [release] method. + factory Intent_FilterComparison( + Intent intent, + ) { + return Intent_FilterComparison.fromRef(_new0(intent.reference).object); + } + + static final _getIntent = jniLookup< + ffi + .NativeFunction)>>( + "Intent_FilterComparison__getIntent") + .asFunction)>(); + + /// from: public android.content.Intent getIntent() + /// The returned object must be released after use, by calling the [release] method. + Intent getIntent() { + return const $IntentType().fromRef(_getIntent(reference).object); + } + + static final _equals1 = jniLookup< + ffi.NativeFunction< + jni.JniResult Function(ffi.Pointer, + ffi.Pointer)>>("Intent_FilterComparison__equals1") + .asFunction< + jni.JniResult Function( + ffi.Pointer, ffi.Pointer)>(); + + /// from: public boolean equals(java.lang.Object object) + bool equals1( + jni.JObject object, + ) { + return _equals1(reference, object.reference).boolean; + } + + static final _hashCode1 = jniLookup< + ffi + .NativeFunction)>>( + "Intent_FilterComparison__hashCode1") + .asFunction)>(); + + /// from: public int hashCode() + int hashCode1() { + return _hashCode1(reference).integer; + } +} + +class $Intent_FilterComparisonType + extends jni.JObjType { + const $Intent_FilterComparisonType(); + + @override + String get signature => r"Landroid/content/Intent$FilterComparison;"; + + @override + Intent_FilterComparison fromRef(jni.JObjectPtr ref) => + Intent_FilterComparison.fromRef(ref); + + @override + jni.JObjType get superType => const jni.JObjectType(); + + @override + final superCount = 1; + + @override + int get hashCode => ($Intent_FilterComparisonType).hashCode; + + @override + bool operator ==(Object other) { + return other.runtimeType == ($Intent_FilterComparisonType) && + other is $Intent_FilterComparisonType; + } +} + +/// from: android.content.Intent$ShortcutIconResource +class Intent_ShortcutIconResource extends jni.JObject { + @override + late final jni.JObjType $type = type; + + Intent_ShortcutIconResource.fromRef( + jni.JObjectPtr ref, + ) : super.fromRef(ref); + + /// The type which includes information such as the signature of this class. + static const type = $Intent_ShortcutIconResourceType(); + static final _get_CREATOR = + jniLookup>( + "get_Intent_ShortcutIconResource__CREATOR") + .asFunction(); + + /// from: static public final android.os.Parcelable$Creator CREATOR + /// The returned object must be released after use, by calling the [release] method. + static jni.JObject get CREATOR => + const jni.JObjectType().fromRef(_get_CREATOR().object); + + static final _get_packageName = jniLookup< + ffi.NativeFunction< + jni.JniResult Function( + jni.JObjectPtr, + )>>("get_Intent_ShortcutIconResource__packageName") + .asFunction< + jni.JniResult Function( + jni.JObjectPtr, + )>(); + + static final _set_packageName = jniLookup< + ffi.NativeFunction< + jni.JniResult Function( + jni.JObjectPtr, ffi.Pointer)>>( + "set_Intent_ShortcutIconResource__packageName") + .asFunction< + jni.JniResult Function(jni.JObjectPtr, ffi.Pointer)>(); + + /// from: public java.lang.String packageName + /// The returned object must be released after use, by calling the [release] method. + jni.JString get packageName => + const jni.JStringType().fromRef(_get_packageName(reference).object); + + /// from: public java.lang.String packageName + /// The returned object must be released after use, by calling the [release] method. + set packageName(jni.JString value) => + _set_packageName(reference, value.reference).check(); + + static final _get_resourceName = jniLookup< + ffi.NativeFunction< + jni.JniResult Function( + jni.JObjectPtr, + )>>("get_Intent_ShortcutIconResource__resourceName") + .asFunction< + jni.JniResult Function( + jni.JObjectPtr, + )>(); + + static final _set_resourceName = jniLookup< + ffi.NativeFunction< + jni.JniResult Function( + jni.JObjectPtr, ffi.Pointer)>>( + "set_Intent_ShortcutIconResource__resourceName") + .asFunction< + jni.JniResult Function(jni.JObjectPtr, ffi.Pointer)>(); + + /// from: public java.lang.String resourceName + /// The returned object must be released after use, by calling the [release] method. + jni.JString get resourceName => + const jni.JStringType().fromRef(_get_resourceName(reference).object); + + /// from: public java.lang.String resourceName + /// The returned object must be released after use, by calling the [release] method. + set resourceName(jni.JString value) => + _set_resourceName(reference, value.reference).check(); + + static final _new0 = jniLookup>( + "Intent_ShortcutIconResource__new0") + .asFunction(); + + /// from: public void () + /// The returned object must be released after use, by calling the [release] method. + factory Intent_ShortcutIconResource() { + return Intent_ShortcutIconResource.fromRef(_new0().object); + } + + static final _fromContext = jniLookup< + ffi.NativeFunction< + jni.JniResult Function(ffi.Pointer, + ffi.Int32)>>("Intent_ShortcutIconResource__fromContext") + .asFunction, int)>(); + + /// from: static public android.content.Intent$ShortcutIconResource fromContext(android.content.Context context, int i) + /// The returned object must be released after use, by calling the [release] method. + static Intent_ShortcutIconResource fromContext( + Context context, + int i, + ) { + return const $Intent_ShortcutIconResourceType() + .fromRef(_fromContext(context.reference, i).object); + } + + static final _describeContents = jniLookup< ffi .NativeFunction)>>( - "Context__isDeviceProtectedStorage") + "Intent_ShortcutIconResource__describeContents") .asFunction)>(); - /// from: public abstract boolean isDeviceProtectedStorage() - bool isDeviceProtectedStorage() { - return _isDeviceProtectedStorage(reference).boolean; + /// from: public int describeContents() + int describeContents() { + return _describeContents(reference).integer; } - static final _isUiContext = jniLookup< + static final _writeToParcel = jniLookup< + ffi.NativeFunction< + jni.JniResult Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>("Intent_ShortcutIconResource__writeToParcel") + .asFunction< + jni.JniResult Function( + ffi.Pointer, ffi.Pointer, int)>(); + + /// from: public void writeToParcel(android.os.Parcel parcel, int i) + void writeToParcel( + jni.JObject parcel, + int i, + ) { + return _writeToParcel(reference, parcel.reference, i).check(); + } + + static final _toString1 = jniLookup< ffi .NativeFunction)>>( - "Context__isUiContext") + "Intent_ShortcutIconResource__toString1") .asFunction)>(); - /// from: public boolean isUiContext() - bool isUiContext() { - return _isUiContext(reference).boolean; + /// from: public java.lang.String toString() + /// The returned object must be released after use, by calling the [release] method. + jni.JString toString1() { + return const jni.JStringType().fromRef(_toString1(reference).object); } } -class $ContextType extends jni.JObjType { - const $ContextType(); +class $Intent_ShortcutIconResourceType + extends jni.JObjType { + const $Intent_ShortcutIconResourceType(); @override - String get signature => r"Landroid/content/Context;"; + String get signature => r"Landroid/content/Intent$ShortcutIconResource;"; @override - Context fromRef(jni.JObjectPtr ref) => Context.fromRef(ref); + Intent_ShortcutIconResource fromRef(jni.JObjectPtr ref) => + Intent_ShortcutIconResource.fromRef(ref); @override jni.JObjType get superType => const jni.JObjectType(); @@ -4228,11 +4752,12 @@ class $ContextType extends jni.JObjType { final superCount = 1; @override - int get hashCode => ($ContextType).hashCode; + int get hashCode => ($Intent_ShortcutIconResourceType).hashCode; @override bool operator ==(Object other) { - return other.runtimeType == ($ContextType) && other is $ContextType; + return other.runtimeType == ($Intent_ShortcutIconResourceType) && + other is $Intent_ShortcutIconResourceType; } } @@ -4907,7 +5432,7 @@ class Intent extends jni.JObject { .asFunction(); /// from: static public final android.os.Parcelable$Creator CREATOR - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static jni.JObject get CREATOR => const jni.JObjectType().fromRef(_get_CREATOR().object); @@ -5357,98 +5882,98 @@ class Intent extends jni.JObject { /// from: static public final int URI_INTENT_SCHEME static const URI_INTENT_SCHEME = 1; - static final _ctor = - jniLookup>("Intent__ctor") + static final _new0 = + jniLookup>("Intent__new0") .asFunction(); /// from: public void () - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. factory Intent() { - return Intent.fromRef(_ctor().object); + return Intent.fromRef(_new0().object); } - static final _ctor1 = jniLookup< + static final _new1 = jniLookup< ffi .NativeFunction)>>( - "Intent__ctor1") + "Intent__new1") .asFunction)>(); /// from: public void (android.content.Intent intent) - /// The returned object must be deleted after use, by calling the `delete` method. - factory Intent.ctor1( + /// The returned object must be released after use, by calling the [release] method. + factory Intent.new1( Intent intent, ) { - return Intent.fromRef(_ctor1(intent.reference).object); + return Intent.fromRef(_new1(intent.reference).object); } - static final _ctor2 = jniLookup< + static final _new2 = jniLookup< ffi .NativeFunction)>>( - "Intent__ctor2") + "Intent__new2") .asFunction)>(); /// from: public void (java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. - factory Intent.ctor2( + /// The returned object must be released after use, by calling the [release] method. + factory Intent.new2( jni.JString string, ) { - return Intent.fromRef(_ctor2(string.reference).object); + return Intent.fromRef(_new2(string.reference).object); } - static final _ctor3 = jniLookup< + static final _new3 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer, - ffi.Pointer)>>("Intent__ctor3") + ffi.Pointer)>>("Intent__new3") .asFunction< jni.JniResult Function( ffi.Pointer, ffi.Pointer)>(); /// from: public void (java.lang.String string, android.net.Uri uri) - /// The returned object must be deleted after use, by calling the `delete` method. - factory Intent.ctor3( + /// The returned object must be released after use, by calling the [release] method. + factory Intent.new3( jni.JString string, jni.JObject uri, ) { - return Intent.fromRef(_ctor3(string.reference, uri.reference).object); + return Intent.fromRef(_new3(string.reference, uri.reference).object); } - static final _ctor4 = jniLookup< + static final _new4 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer, - ffi.Pointer)>>("Intent__ctor4") + ffi.Pointer)>>("Intent__new4") .asFunction< jni.JniResult Function( ffi.Pointer, ffi.Pointer)>(); /// from: public void (android.content.Context context, java.lang.Class class) - /// The returned object must be deleted after use, by calling the `delete` method. - factory Intent.ctor4( + /// The returned object must be released after use, by calling the [release] method. + factory Intent.new4( Context context, jni.JObject class0, ) { - return Intent.fromRef(_ctor4(context.reference, class0.reference).object); + return Intent.fromRef(_new4(context.reference, class0.reference).object); } - static final _ctor5 = jniLookup< + static final _new5 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>("Intent__ctor5") + ffi.Pointer)>>("Intent__new5") .asFunction< jni.JniResult Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); /// from: public void (java.lang.String string, android.net.Uri uri, android.content.Context context, java.lang.Class class) - /// The returned object must be deleted after use, by calling the `delete` method. - factory Intent.ctor5( + /// The returned object must be released after use, by calling the [release] method. + factory Intent.new5( jni.JString string, jni.JObject uri, Context context, jni.JObject class0, ) { - return Intent.fromRef(_ctor5(string.reference, uri.reference, + return Intent.fromRef(_new5(string.reference, uri.reference, context.reference, class0.reference) .object); } @@ -5462,7 +5987,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: static public android.content.Intent createChooser(android.content.Intent intent, java.lang.CharSequence charSequence) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static Intent createChooser( Intent intent, jni.JObject charSequence, @@ -5482,7 +6007,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: static public android.content.Intent createChooser(android.content.Intent intent, java.lang.CharSequence charSequence, android.content.IntentSender intentSender) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static Intent createChooser1( Intent intent, jni.JObject charSequence, @@ -5500,7 +6025,7 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: public java.lang.Object clone() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject clone() { return const jni.JObjectType().fromRef(_clone(reference).object); } @@ -5512,7 +6037,7 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: public android.content.Intent cloneFilter() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent cloneFilter() { return const $IntentType().fromRef(_cloneFilter(reference).object); } @@ -5524,7 +6049,7 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: static public android.content.Intent makeMainActivity(android.content.ComponentName componentName) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static Intent makeMainActivity( jni.JObject componentName, ) { @@ -5541,7 +6066,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: static public android.content.Intent makeMainSelectorActivity(java.lang.String string, java.lang.String string1) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static Intent makeMainSelectorActivity( jni.JString string, jni.JString string1, @@ -5557,7 +6082,7 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: static public android.content.Intent makeRestartActivityTask(android.content.ComponentName componentName) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static Intent makeRestartActivityTask( jni.JObject componentName, ) { @@ -5572,7 +6097,7 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: static public android.content.Intent getIntent(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static Intent getIntent( jni.JString string, ) { @@ -5586,7 +6111,7 @@ class Intent extends jni.JObject { .asFunction, int)>(); /// from: static public android.content.Intent parseUri(java.lang.String string, int i) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static Intent parseUri( jni.JString string, int i, @@ -5601,7 +6126,7 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: static public android.content.Intent getIntentOld(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static Intent getIntentOld( jni.JString string, ) { @@ -5615,7 +6140,7 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: public java.lang.String getAction() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JString getAction() { return const jni.JStringType().fromRef(_getAction(reference).object); } @@ -5627,7 +6152,7 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: public android.net.Uri getData() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getData() { return const jni.JObjectType().fromRef(_getData(reference).object); } @@ -5639,7 +6164,7 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: public java.lang.String getDataString() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JString getDataString() { return const jni.JStringType().fromRef(_getDataString(reference).object); } @@ -5651,7 +6176,7 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: public java.lang.String getScheme() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JString getScheme() { return const jni.JStringType().fromRef(_getScheme(reference).object); } @@ -5663,7 +6188,7 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: public java.lang.String getType() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JString getType() { return const jni.JStringType().fromRef(_getType(reference).object); } @@ -5677,7 +6202,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public java.lang.String resolveType(android.content.Context context) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JString resolveType( Context context, ) { @@ -5694,7 +6219,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public java.lang.String resolveType(android.content.ContentResolver contentResolver) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JString resolveType1( jni.JObject contentResolver, ) { @@ -5711,7 +6236,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public java.lang.String resolveTypeIfNeeded(android.content.ContentResolver contentResolver) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JString resolveTypeIfNeeded( jni.JObject contentResolver, ) { @@ -5726,7 +6251,7 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: public java.lang.String getIdentifier() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JString getIdentifier() { return const jni.JStringType().fromRef(_getIdentifier(reference).object); } @@ -5753,7 +6278,7 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: public java.util.Set getCategories() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JSet getCategories() { return const jni.JSetType(jni.JStringType()) .fromRef(_getCategories(reference).object); @@ -5766,7 +6291,7 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: public android.content.Intent getSelector() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent getSelector() { return const $IntentType().fromRef(_getSelector(reference).object); } @@ -5778,7 +6303,7 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: public android.content.ClipData getClipData() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getClipData() { return const jni.JObjectType().fromRef(_getClipData(reference).object); } @@ -5961,7 +6486,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public java.lang.String getStringExtra(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JString getStringExtra( jni.JString string, ) { @@ -5978,7 +6503,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public java.lang.CharSequence getCharSequenceExtra(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getCharSequenceExtra( jni.JString string, ) { @@ -5995,7 +6520,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public T getParcelableExtra(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. $T getParcelableExtra<$T extends jni.JObject>( jni.JString string, { required jni.JObjType<$T> T, @@ -6014,7 +6539,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public T getParcelableExtra(java.lang.String string, java.lang.Class class) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. $T getParcelableExtra1<$T extends jni.JObject>( jni.JString string, jni.JObject class0, { @@ -6034,7 +6559,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public android.os.Parcelable[] getParcelableArrayExtra(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JArray getParcelableArrayExtra( jni.JString string, ) { @@ -6053,7 +6578,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public java.lang.Object[] getParcelableArrayExtra(java.lang.String string, java.lang.Class class) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JArray<$T> getParcelableArrayExtra1<$T extends jni.JObject>( jni.JString string, jni.JObject class0, { @@ -6074,7 +6599,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public java.util.ArrayList getParcelableArrayListExtra(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getParcelableArrayListExtra<$T extends jni.JObject>( jni.JString string, { required jni.JObjType<$T> T, @@ -6093,7 +6618,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public java.util.ArrayList getParcelableArrayListExtra(java.lang.String string, java.lang.Class class) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getParcelableArrayListExtra1<$T extends jni.JObject>( jni.JString string, jni.JObject class0, { @@ -6113,7 +6638,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public java.io.Serializable getSerializableExtra(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getSerializableExtra( jni.JString string, ) { @@ -6132,7 +6657,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public T getSerializableExtra(java.lang.String string, java.lang.Class class) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. $T getSerializableExtra1<$T extends jni.JObject>( jni.JString string, jni.JObject class0, { @@ -6152,7 +6677,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public java.util.ArrayList getIntegerArrayListExtra(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getIntegerArrayListExtra( jni.JString string, ) { @@ -6169,7 +6694,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public java.util.ArrayList getStringArrayListExtra(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getStringArrayListExtra( jni.JString string, ) { @@ -6187,7 +6712,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public java.util.ArrayList getCharSequenceArrayListExtra(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getCharSequenceArrayListExtra( jni.JString string, ) { @@ -6204,7 +6729,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean[] getBooleanArrayExtra(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JArray getBooleanArrayExtra( jni.JString string, ) { @@ -6221,7 +6746,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public byte[] getByteArrayExtra(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JArray getByteArrayExtra( jni.JString string, ) { @@ -6238,7 +6763,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public short[] getShortArrayExtra(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JArray getShortArrayExtra( jni.JString string, ) { @@ -6255,7 +6780,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public char[] getCharArrayExtra(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JArray getCharArrayExtra( jni.JString string, ) { @@ -6272,7 +6797,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public int[] getIntArrayExtra(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JArray getIntArrayExtra( jni.JString string, ) { @@ -6289,7 +6814,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public long[] getLongArrayExtra(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JArray getLongArrayExtra( jni.JString string, ) { @@ -6306,7 +6831,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public float[] getFloatArrayExtra(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JArray getFloatArrayExtra( jni.JString string, ) { @@ -6323,7 +6848,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public double[] getDoubleArrayExtra(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JArray getDoubleArrayExtra( jni.JString string, ) { @@ -6340,7 +6865,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public java.lang.String[] getStringArrayExtra(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JArray getStringArrayExtra( jni.JString string, ) { @@ -6357,7 +6882,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public java.lang.CharSequence[] getCharSequenceArrayExtra(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JArray getCharSequenceArrayExtra( jni.JString string, ) { @@ -6374,7 +6899,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public android.os.Bundle getBundleExtra(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getBundleExtra( jni.JString string, ) { @@ -6389,7 +6914,7 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: public android.os.Bundle getExtras() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getExtras() { return const jni.JObjectType().fromRef(_getExtras(reference).object); } @@ -6412,7 +6937,7 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: public java.lang.String getPackage() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JString getPackage() { return const jni.JStringType().fromRef(_getPackage(reference).object); } @@ -6424,7 +6949,7 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: public android.content.ComponentName getComponent() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getComponent() { return const jni.JObjectType().fromRef(_getComponent(reference).object); } @@ -6436,7 +6961,7 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: public android.graphics.Rect getSourceBounds() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getSourceBounds() { return const jni.JObjectType().fromRef(_getSourceBounds(reference).object); } @@ -6450,7 +6975,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public android.content.ComponentName resolveActivity(android.content.pm.PackageManager packageManager) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject resolveActivity( jni.JObject packageManager, ) { @@ -6469,7 +6994,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public android.content.pm.ActivityInfo resolveActivityInfo(android.content.pm.PackageManager packageManager, int i) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject resolveActivityInfo( jni.JObject packageManager, int i, @@ -6487,7 +7012,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public android.content.Intent setAction(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent setAction( jni.JString string, ) { @@ -6504,7 +7029,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public android.content.Intent setData(android.net.Uri uri) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent setData( jni.JObject uri, ) { @@ -6521,7 +7046,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public android.content.Intent setDataAndNormalize(android.net.Uri uri) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent setDataAndNormalize( jni.JObject uri, ) { @@ -6538,7 +7063,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public android.content.Intent setType(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent setType( jni.JString string, ) { @@ -6555,7 +7080,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public android.content.Intent setTypeAndNormalize(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent setTypeAndNormalize( jni.JString string, ) { @@ -6574,7 +7099,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public android.content.Intent setDataAndType(android.net.Uri uri, java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent setDataAndType( jni.JObject uri, jni.JString string, @@ -6594,7 +7119,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public android.content.Intent setDataAndTypeAndNormalize(android.net.Uri uri, java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent setDataAndTypeAndNormalize( jni.JObject uri, jni.JString string, @@ -6613,7 +7138,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public android.content.Intent setIdentifier(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent setIdentifier( jni.JString string, ) { @@ -6630,7 +7155,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public android.content.Intent addCategory(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent addCategory( jni.JString string, ) { @@ -6692,7 +7217,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public android.content.Intent putExtra(java.lang.String string, boolean z) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtra( jni.JString string, bool z, @@ -6710,7 +7235,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public android.content.Intent putExtra(java.lang.String string, byte b) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtra1( jni.JString string, int b, @@ -6728,7 +7253,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public android.content.Intent putExtra(java.lang.String string, char c) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtra2( jni.JString string, int c, @@ -6746,7 +7271,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public android.content.Intent putExtra(java.lang.String string, short s) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtra3( jni.JString string, int s, @@ -6764,7 +7289,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public android.content.Intent putExtra(java.lang.String string, int i) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtra4( jni.JString string, int i, @@ -6782,7 +7307,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public android.content.Intent putExtra(java.lang.String string, long j) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtra5( jni.JString string, int j, @@ -6800,7 +7325,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer, double)>(); /// from: public android.content.Intent putExtra(java.lang.String string, float f) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtra6( jni.JString string, double f, @@ -6818,7 +7343,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer, double)>(); /// from: public android.content.Intent putExtra(java.lang.String string, double d) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtra7( jni.JString string, double d, @@ -6838,7 +7363,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public android.content.Intent putExtra(java.lang.String string, java.lang.String string1) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtra8( jni.JString string, jni.JString string1, @@ -6858,7 +7383,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public android.content.Intent putExtra(java.lang.String string, java.lang.CharSequence charSequence) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtra9( jni.JString string, jni.JObject charSequence, @@ -6878,7 +7403,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public android.content.Intent putExtra(java.lang.String string, android.os.Parcelable parcelable) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtra10( jni.JString string, jni.JObject parcelable, @@ -6898,7 +7423,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public android.content.Intent putExtra(java.lang.String string, android.os.Parcelable[] parcelables) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtra11( jni.JString string, jni.JArray parcelables, @@ -6917,7 +7442,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public android.content.Intent putParcelableArrayListExtra(java.lang.String string, java.util.ArrayList arrayList) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putParcelableArrayListExtra( jni.JString string, jni.JObject arrayList, @@ -6938,7 +7463,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public android.content.Intent putIntegerArrayListExtra(java.lang.String string, java.util.ArrayList arrayList) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putIntegerArrayListExtra( jni.JString string, jni.JObject arrayList, @@ -6959,7 +7484,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public android.content.Intent putStringArrayListExtra(java.lang.String string, java.util.ArrayList arrayList) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putStringArrayListExtra( jni.JString string, jni.JObject arrayList, @@ -6979,7 +7504,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public android.content.Intent putCharSequenceArrayListExtra(java.lang.String string, java.util.ArrayList arrayList) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putCharSequenceArrayListExtra( jni.JString string, jni.JObject arrayList, @@ -7000,7 +7525,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public android.content.Intent putExtra(java.lang.String string, java.io.Serializable serializable) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtra12( jni.JString string, jni.JObject serializable, @@ -7021,7 +7546,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public android.content.Intent putExtra(java.lang.String string, boolean[] zs) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtra13( jni.JString string, jni.JArray zs, @@ -7041,7 +7566,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public android.content.Intent putExtra(java.lang.String string, byte[] bs) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtra14( jni.JString string, jni.JArray bs, @@ -7061,7 +7586,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public android.content.Intent putExtra(java.lang.String string, short[] ss) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtra15( jni.JString string, jni.JArray ss, @@ -7081,7 +7606,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public android.content.Intent putExtra(java.lang.String string, char[] cs) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtra16( jni.JString string, jni.JArray cs, @@ -7101,7 +7626,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public android.content.Intent putExtra(java.lang.String string, int[] is) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtra17( jni.JString string, jni.JArray is0, @@ -7121,7 +7646,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public android.content.Intent putExtra(java.lang.String string, long[] js) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtra18( jni.JString string, jni.JArray js, @@ -7141,7 +7666,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public android.content.Intent putExtra(java.lang.String string, float[] fs) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtra19( jni.JString string, jni.JArray fs, @@ -7161,7 +7686,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public android.content.Intent putExtra(java.lang.String string, double[] ds) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtra20( jni.JString string, jni.JArray ds, @@ -7181,7 +7706,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public android.content.Intent putExtra(java.lang.String string, java.lang.String[] strings) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtra21( jni.JString string, jni.JArray strings, @@ -7201,7 +7726,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public android.content.Intent putExtra(java.lang.String string, java.lang.CharSequence[] charSequences) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtra22( jni.JString string, jni.JArray charSequences, @@ -7222,7 +7747,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public android.content.Intent putExtra(java.lang.String string, android.os.Bundle bundle) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtra23( jni.JString string, jni.JObject bundle, @@ -7240,7 +7765,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public android.content.Intent putExtras(android.content.Intent intent) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtras( Intent intent, ) { @@ -7257,7 +7782,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public android.content.Intent putExtras(android.os.Bundle bundle) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent putExtras1( jni.JObject bundle, ) { @@ -7274,7 +7799,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public android.content.Intent replaceExtras(android.content.Intent intent) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent replaceExtras( Intent intent, ) { @@ -7291,7 +7816,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public android.content.Intent replaceExtras(android.os.Bundle bundle) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent replaceExtras1( jni.JObject bundle, ) { @@ -7321,7 +7846,7 @@ class Intent extends jni.JObject { .asFunction, int)>(); /// from: public android.content.Intent setFlags(int i) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent setFlags( int i, ) { @@ -7335,7 +7860,7 @@ class Intent extends jni.JObject { .asFunction, int)>(); /// from: public android.content.Intent addFlags(int i) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent addFlags( int i, ) { @@ -7364,7 +7889,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public android.content.Intent setPackage(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent setPackage( jni.JString string, ) { @@ -7381,7 +7906,7 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public android.content.Intent setComponent(android.content.ComponentName componentName) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent setComponent( jni.JObject componentName, ) { @@ -7400,7 +7925,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public android.content.Intent setClassName(android.content.Context context, java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent setClassName( Context context, jni.JString string, @@ -7420,7 +7945,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public android.content.Intent setClassName(java.lang.String string, java.lang.String string1) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent setClassName1( jni.JString string, jni.JString string1, @@ -7440,7 +7965,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: public android.content.Intent setClass(android.content.Context context, java.lang.Class class) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent setClass( Context context, jni.JObject class0, @@ -7513,7 +8038,7 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: public java.lang.String toString() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JString toString1() { return const jni.JStringType().fromRef(_toString1(reference).object); } @@ -7525,7 +8050,7 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: public java.lang.String toURI() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JString toURI() { return const jni.JStringType().fromRef(_toURI(reference).object); } @@ -7537,7 +8062,7 @@ class Intent extends jni.JObject { .asFunction, int)>(); /// from: public java.lang.String toUri(int i) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JString toUri( int i, ) { @@ -7597,7 +8122,7 @@ class Intent extends jni.JObject { ffi.Pointer)>(); /// from: static public android.content.Intent parseIntent(android.content.res.Resources resources, org.xmlpull.v1.XmlPullParser xmlPullParser, android.util.AttributeSet attributeSet) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static Intent parseIntent( jni.JObject resources, jni.JObject xmlPullParser, @@ -7615,7 +8140,7 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: static public java.lang.String normalizeMimeType(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static jni.JString normalizeMimeType( jni.JString string, ) { @@ -7681,7 +8206,7 @@ class Activity extends jni.JObject { .asFunction(); /// from: static protected final int[] FOCUSED_STATE_SET - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static jni.JArray get FOCUSED_STATE_SET => const jni.JArrayType(jni.jintType()) .fromRef(_get_FOCUSED_STATE_SET().object); @@ -7695,14 +8220,14 @@ class Activity extends jni.JObject { /// from: static public final int RESULT_OK static const RESULT_OK = -1; - static final _ctor = - jniLookup>("Activity__ctor") + static final _new0 = + jniLookup>("Activity__new0") .asFunction(); /// from: public void () - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. factory Activity() { - return Activity.fromRef(_ctor().object); + return Activity.fromRef(_new0().object); } static final _getIntent = jniLookup< @@ -7712,7 +8237,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public android.content.Intent getIntent() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent getIntent() { return const $IntentType().fromRef(_getIntent(reference).object); } @@ -7758,7 +8283,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public final android.app.Application getApplication() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getApplication() { return const jni.JObjectType().fromRef(_getApplication(reference).object); } @@ -7781,7 +8306,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public final android.app.Activity getParent() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Activity getParent() { return const $ActivityType().fromRef(_getParent(reference).object); } @@ -7793,7 +8318,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public android.view.WindowManager getWindowManager() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getWindowManager() { return const jni.JObjectType().fromRef(_getWindowManager(reference).object); } @@ -7805,7 +8330,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public android.view.Window getWindow() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getWindow() { return const jni.JObjectType().fromRef(_getWindow(reference).object); } @@ -7817,7 +8342,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public android.app.LoaderManager getLoaderManager() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getLoaderManager() { return const jni.JObjectType().fromRef(_getLoaderManager(reference).object); } @@ -7829,7 +8354,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public android.view.View getCurrentFocus() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getCurrentFocus() { return const jni.JObjectType().fromRef(_getCurrentFocus(reference).object); } @@ -7942,7 +8467,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public final android.window.SplashScreen getSplashScreen() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getSplashScreen() { return const jni.JObjectType().fromRef(_getSplashScreen(reference).object); } @@ -8133,7 +8658,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public android.app.VoiceInteractor getVoiceInteractor() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getVoiceInteractor() { return const jni.JObjectType() .fromRef(_getVoiceInteractor(reference).object); @@ -8297,7 +8822,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public java.lang.CharSequence onCreateDescription() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject onCreateDescription() { return const jni.JObjectType() .fromRef(_onCreateDescription(reference).object); @@ -8702,7 +9227,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public java.lang.Object getLastNonConfigurationInstance() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getLastNonConfigurationInstance() { return const jni.JObjectType() .fromRef(_getLastNonConfigurationInstance(reference).object); @@ -8715,7 +9240,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public java.lang.Object onRetainNonConfigurationInstance() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject onRetainNonConfigurationInstance() { return const jni.JObjectType() .fromRef(_onRetainNonConfigurationInstance(reference).object); @@ -8752,7 +9277,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public android.app.FragmentManager getFragmentManager() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getFragmentManager() { return const jni.JObjectType() .fromRef(_getFragmentManager(reference).object); @@ -8792,7 +9317,7 @@ class Activity extends jni.JObject { ffi.Pointer)>(); /// from: public final android.database.Cursor managedQuery(android.net.Uri uri, java.lang.String[] strings, java.lang.String string, java.lang.String[] strings1, java.lang.String string1) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject managedQuery( jni.JObject uri, jni.JArray strings, @@ -8847,7 +9372,7 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public T findViewById(int i) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. $T findViewById<$T extends jni.JObject>( int i, { required jni.JObjType<$T> T, @@ -8862,7 +9387,7 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public final T requireViewById(int i) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. $T requireViewById<$T extends jni.JObject>( int i, { required jni.JObjType<$T> T, @@ -8877,7 +9402,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public android.app.ActionBar getActionBar() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getActionBar() { return const jni.JObjectType().fromRef(_getActionBar(reference).object); } @@ -8970,7 +9495,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public android.transition.TransitionManager getContentTransitionManager() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getContentTransitionManager() { return const jni.JObjectType() .fromRef(_getContentTransitionManager(reference).object); @@ -9000,7 +9525,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public android.transition.Scene getContentScene() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getContentScene() { return const jni.JObjectType().fromRef(_getContentScene(reference).object); } @@ -9355,7 +9880,7 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public android.view.View onCreatePanelView(int i) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject onCreatePanelView( int i, ) { @@ -9716,7 +10241,7 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: protected android.app.Dialog onCreateDialog(int i) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject onCreateDialog( int i, ) { @@ -9733,7 +10258,7 @@ class Activity extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: protected android.app.Dialog onCreateDialog(int i, android.os.Bundle bundle) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject onCreateDialog1( int i, jni.JObject bundle, @@ -9867,7 +10392,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public final android.view.SearchEvent getSearchEvent() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getSearchEvent() { return const jni.JObjectType().fromRef(_getSearchEvent(reference).object); } @@ -10008,7 +10533,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public android.view.LayoutInflater getLayoutInflater() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getLayoutInflater() { return const jni.JObjectType() .fromRef(_getLayoutInflater(reference).object); @@ -10021,7 +10546,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public android.view.MenuInflater getMenuInflater() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getMenuInflater() { return const jni.JObjectType().fromRef(_getMenuInflater(reference).object); } @@ -10677,7 +11202,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public android.net.Uri getReferrer() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getReferrer() { return const jni.JObjectType().fromRef(_getReferrer(reference).object); } @@ -10689,7 +11214,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public android.net.Uri onProvideReferrer() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject onProvideReferrer() { return const jni.JObjectType() .fromRef(_onProvideReferrer(reference).object); @@ -10702,7 +11227,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public java.lang.String getCallingPackage() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JString getCallingPackage() { return const jni.JStringType() .fromRef(_getCallingPackage(reference).object); @@ -10715,7 +11240,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public android.content.ComponentName getCallingActivity() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getCallingActivity() { return const jni.JObjectType() .fromRef(_getCallingActivity(reference).object); @@ -10927,7 +11452,7 @@ class Activity extends jni.JObject { ffi.Pointer, int, ffi.Pointer, int)>(); /// from: public android.app.PendingIntent createPendingResult(int i, android.content.Intent intent, int i1) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject createPendingResult( int i, Intent intent, @@ -11003,7 +11528,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public java.lang.String getLocalClassName() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JString getLocalClassName() { return const jni.JStringType() .fromRef(_getLocalClassName(reference).object); @@ -11016,7 +11541,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public android.content.ComponentName getComponentName() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getComponentName() { return const jni.JObjectType().fromRef(_getComponentName(reference).object); } @@ -11028,7 +11553,7 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public android.content.SharedPreferences getPreferences(int i) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getPreferences( int i, ) { @@ -11056,7 +11581,7 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public java.lang.Object getSystemService(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getSystemService( jni.JString string, ) { @@ -11112,7 +11637,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public final java.lang.CharSequence getTitle() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getTitle() { return const jni.JObjectType().fromRef(_getTitle(reference).object); } @@ -11292,7 +11817,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public final android.media.session.MediaController getMediaController() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getMediaController() { return const jni.JObjectType() .fromRef(_getMediaController(reference).object); @@ -11325,7 +11850,7 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public android.view.View onCreateView(java.lang.String string, android.content.Context context, android.util.AttributeSet attributeSet) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject onCreateView( jni.JString string, Context context, @@ -11353,7 +11878,7 @@ class Activity extends jni.JObject { ffi.Pointer)>(); /// from: public android.view.View onCreateView(android.view.View view, java.lang.String string, android.content.Context context, android.util.AttributeSet attributeSet) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject onCreateView1( jni.JObject view, jni.JString string, @@ -11495,7 +12020,7 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public android.view.ActionMode startActionMode(android.view.ActionMode$Callback callback) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject startActionMode( jni.JObject callback, ) { @@ -11514,7 +12039,7 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public android.view.ActionMode startActionMode(android.view.ActionMode$Callback callback, int i) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject startActionMode1( jni.JObject callback, int i, @@ -11533,7 +12058,7 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public android.view.ActionMode onWindowStartingActionMode(android.view.ActionMode$Callback callback) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject onWindowStartingActionMode( jni.JObject callback, ) { @@ -11552,7 +12077,7 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public android.view.ActionMode onWindowStartingActionMode(android.view.ActionMode$Callback callback, int i) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject onWindowStartingActionMode1( jni.JObject callback, int i, @@ -11648,7 +12173,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public android.content.Intent getParentActivityIntent() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Intent getParentActivityIntent() { return const $IntentType() .fromRef(_getParentActivityIntent(reference).object); @@ -11722,7 +12247,7 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public android.view.DragAndDropPermissions requestDragAndDropPermissions(android.view.DragEvent dragEvent) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject requestDragAndDropPermissions( jni.JObject dragEvent, ) { @@ -11822,7 +12347,7 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public android.window.OnBackInvokedDispatcher getOnBackInvokedDispatcher() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject getOnBackInvokedDispatcher() { return const jni.JObjectType() .fromRef(_getOnBackInvokedDispatcher(reference).object); @@ -11870,7 +12395,7 @@ class Instant extends jni.JObject { .asFunction(); /// from: static public final java.time.Instant EPOCH - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static Instant get EPOCH => const $InstantType().fromRef(_get_EPOCH().object); static final _get_MAX = @@ -11879,7 +12404,7 @@ class Instant extends jni.JObject { .asFunction(); /// from: static public final java.time.Instant MAX - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static Instant get MAX => const $InstantType().fromRef(_get_MAX().object); static final _get_MIN = @@ -11888,7 +12413,7 @@ class Instant extends jni.JObject { .asFunction(); /// from: static public final java.time.Instant MIN - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static Instant get MIN => const $InstantType().fromRef(_get_MIN().object); static final _now = @@ -11896,7 +12421,7 @@ class Instant extends jni.JObject { .asFunction(); /// from: static public java.time.Instant now() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static Instant now() { return const $InstantType().fromRef(_now().object); } @@ -11908,7 +12433,7 @@ class Instant extends jni.JObject { .asFunction)>(); /// from: static public java.time.Instant now(java.time.Clock clock) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static Instant now1( jni.JObject clock, ) { @@ -11921,7 +12446,7 @@ class Instant extends jni.JObject { .asFunction(); /// from: static public java.time.Instant ofEpochSecond(long j) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static Instant ofEpochSecond( int j, ) { @@ -11934,7 +12459,7 @@ class Instant extends jni.JObject { .asFunction(); /// from: static public java.time.Instant ofEpochSecond(long j, long j1) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static Instant ofEpochSecond1( int j, int j1, @@ -11948,7 +12473,7 @@ class Instant extends jni.JObject { .asFunction(); /// from: static public java.time.Instant ofEpochMilli(long j) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static Instant ofEpochMilli( int j, ) { @@ -11962,7 +12487,7 @@ class Instant extends jni.JObject { .asFunction)>(); /// from: static public java.time.Instant from(java.time.temporal.TemporalAccessor temporalAccessor) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static Instant from( jni.JObject temporalAccessor, ) { @@ -11977,7 +12502,7 @@ class Instant extends jni.JObject { .asFunction)>(); /// from: static public java.time.Instant parse(java.lang.CharSequence charSequence) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. static Instant parse( jni.JObject charSequence, ) { @@ -12023,7 +12548,7 @@ class Instant extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public java.time.temporal.ValueRange range(java.time.temporal.TemporalField temporalField) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject range( jni.JObject temporalField, ) { @@ -12092,7 +12617,7 @@ class Instant extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public java.time.Instant with(java.time.temporal.TemporalAdjuster temporalAdjuster) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Instant with0( jni.JObject temporalAdjuster, ) { @@ -12109,7 +12634,7 @@ class Instant extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public java.time.Instant with(java.time.temporal.TemporalField temporalField, long j) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Instant with1( jni.JObject temporalField, int j, @@ -12127,7 +12652,7 @@ class Instant extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public java.time.Instant truncatedTo(java.time.temporal.TemporalUnit temporalUnit) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Instant truncatedTo( jni.JObject temporalUnit, ) { @@ -12144,7 +12669,7 @@ class Instant extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public java.time.Instant plus(java.time.temporal.TemporalAmount temporalAmount) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Instant plus( jni.JObject temporalAmount, ) { @@ -12161,7 +12686,7 @@ class Instant extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: public java.time.Instant plus(long j, java.time.temporal.TemporalUnit temporalUnit) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Instant plus1( int j, jni.JObject temporalUnit, @@ -12177,7 +12702,7 @@ class Instant extends jni.JObject { .asFunction, int)>(); /// from: public java.time.Instant plusSeconds(long j) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Instant plusSeconds( int j, ) { @@ -12191,7 +12716,7 @@ class Instant extends jni.JObject { .asFunction, int)>(); /// from: public java.time.Instant plusMillis(long j) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Instant plusMillis( int j, ) { @@ -12205,7 +12730,7 @@ class Instant extends jni.JObject { .asFunction, int)>(); /// from: public java.time.Instant plusNanos(long j) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Instant plusNanos( int j, ) { @@ -12221,7 +12746,7 @@ class Instant extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public java.time.Instant minus(java.time.temporal.TemporalAmount temporalAmount) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Instant minus( jni.JObject temporalAmount, ) { @@ -12238,7 +12763,7 @@ class Instant extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: public java.time.Instant minus(long j, java.time.temporal.TemporalUnit temporalUnit) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Instant minus1( int j, jni.JObject temporalUnit, @@ -12254,7 +12779,7 @@ class Instant extends jni.JObject { .asFunction, int)>(); /// from: public java.time.Instant minusSeconds(long j) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Instant minusSeconds( int j, ) { @@ -12268,7 +12793,7 @@ class Instant extends jni.JObject { .asFunction, int)>(); /// from: public java.time.Instant minusMillis(long j) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Instant minusMillis( int j, ) { @@ -12282,7 +12807,7 @@ class Instant extends jni.JObject { .asFunction, int)>(); /// from: public java.time.Instant minusNanos(long j) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. Instant minusNanos( int j, ) { @@ -12298,7 +12823,7 @@ class Instant extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public R query(java.time.temporal.TemporalQuery temporalQuery) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. $R query<$R extends jni.JObject>( jni.JObject temporalQuery, { required jni.JObjType<$R> R, @@ -12315,7 +12840,7 @@ class Instant extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public java.time.temporal.Temporal adjustInto(java.time.temporal.Temporal temporal) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject adjustInto( jni.JObject temporal, ) { @@ -12350,7 +12875,7 @@ class Instant extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public java.time.OffsetDateTime atOffset(java.time.ZoneOffset zoneOffset) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject atOffset( jni.JObject zoneOffset, ) { @@ -12367,7 +12892,7 @@ class Instant extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public java.time.ZonedDateTime atZone(java.time.ZoneId zoneId) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject atZone( jni.JObject zoneId, ) { @@ -12464,7 +12989,7 @@ class Instant extends jni.JObject { .asFunction)>(); /// from: public java.lang.String toString() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JString toString1() { return const jni.JStringType().fromRef(_toString1(reference).object); } @@ -12478,7 +13003,7 @@ class Instant extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: public java.time.temporal.Temporal minus(long j, java.time.temporal.TemporalUnit temporalUnit) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject minus2( int j, jni.JObject temporalUnit, @@ -12496,7 +13021,7 @@ class Instant extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public java.time.temporal.Temporal minus(java.time.temporal.TemporalAmount temporalAmount) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject minus3( jni.JObject temporalAmount, ) { @@ -12513,7 +13038,7 @@ class Instant extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: public java.time.temporal.Temporal plus(long j, java.time.temporal.TemporalUnit temporalUnit) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject plus2( int j, jni.JObject temporalUnit, @@ -12531,7 +13056,7 @@ class Instant extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public java.time.temporal.Temporal plus(java.time.temporal.TemporalAmount temporalAmount) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject plus3( jni.JObject temporalAmount, ) { @@ -12548,7 +13073,7 @@ class Instant extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public java.time.temporal.Temporal with(java.time.temporal.TemporalField temporalField, long j) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject with2( jni.JObject temporalField, int j, @@ -12566,7 +13091,7 @@ class Instant extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public java.time.temporal.Temporal with(java.time.temporal.TemporalAdjuster temporalAdjuster) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JObject with3( jni.JObject temporalAdjuster, ) { @@ -12625,32 +13150,32 @@ class AggregateGroupByDurationRequest extends jni.JObject { /// The type which includes information such as the signature of this class. static const type = $AggregateGroupByDurationRequestType(); - static final _ctor = jniLookup< + static final _new0 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>( - "AggregateGroupByDurationRequest__ctor") + "AggregateGroupByDurationRequest__new0") .asFunction< jni.JniResult Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); /// from: public void (java.util.Set set, androidx.health.connect.client.time.TimeRangeFilter timeRangeFilter, java.time.Duration duration, java.util.Set set1) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. factory AggregateGroupByDurationRequest( jni.JSet> set0, TimeRangeFilter timeRangeFilter, jni.JObject duration, jni.JSet set1, ) { - return AggregateGroupByDurationRequest.fromRef(_ctor(set0.reference, + return AggregateGroupByDurationRequest.fromRef(_new0(set0.reference, timeRangeFilter.reference, duration.reference, set1.reference) .object); } - static final _ctor1 = jniLookup< + static final _new1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer, @@ -12659,7 +13184,7 @@ class AggregateGroupByDurationRequest extends jni.JObject { ffi.Pointer, ffi.Int32, ffi.Pointer)>>( - "AggregateGroupByDurationRequest__ctor1") + "AggregateGroupByDurationRequest__new1") .asFunction< jni.JniResult Function( ffi.Pointer, @@ -12670,8 +13195,8 @@ class AggregateGroupByDurationRequest extends jni.JObject { ffi.Pointer)>(); /// from: public void (java.util.Set set, androidx.health.connect.client.time.TimeRangeFilter timeRangeFilter, java.time.Duration duration, java.util.Set set1, int i, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) - /// The returned object must be deleted after use, by calling the `delete` method. - factory AggregateGroupByDurationRequest.ctor1( + /// The returned object must be released after use, by calling the [release] method. + factory AggregateGroupByDurationRequest.new1( jni.JSet set0, TimeRangeFilter timeRangeFilter, jni.JObject duration, @@ -12679,7 +13204,7 @@ class AggregateGroupByDurationRequest extends jni.JObject { int i, jni.JObject defaultConstructorMarker, ) { - return AggregateGroupByDurationRequest.fromRef(_ctor1( + return AggregateGroupByDurationRequest.fromRef(_new1( set0.reference, timeRangeFilter.reference, duration.reference, @@ -12729,32 +13254,32 @@ class AggregateGroupByPeriodRequest extends jni.JObject { /// The type which includes information such as the signature of this class. static const type = $AggregateGroupByPeriodRequestType(); - static final _ctor = jniLookup< + static final _new0 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>( - "AggregateGroupByPeriodRequest__ctor") + "AggregateGroupByPeriodRequest__new0") .asFunction< jni.JniResult Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); /// from: public void (java.util.Set set, androidx.health.connect.client.time.TimeRangeFilter timeRangeFilter, java.time.Period period, java.util.Set set1) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. factory AggregateGroupByPeriodRequest( jni.JSet> set0, TimeRangeFilter timeRangeFilter, jni.JObject period, jni.JSet set1, ) { - return AggregateGroupByPeriodRequest.fromRef(_ctor(set0.reference, + return AggregateGroupByPeriodRequest.fromRef(_new0(set0.reference, timeRangeFilter.reference, period.reference, set1.reference) .object); } - static final _ctor1 = jniLookup< + static final _new1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer, @@ -12763,7 +13288,7 @@ class AggregateGroupByPeriodRequest extends jni.JObject { ffi.Pointer, ffi.Int32, ffi.Pointer)>>( - "AggregateGroupByPeriodRequest__ctor1") + "AggregateGroupByPeriodRequest__new1") .asFunction< jni.JniResult Function( ffi.Pointer, @@ -12774,8 +13299,8 @@ class AggregateGroupByPeriodRequest extends jni.JObject { ffi.Pointer)>(); /// from: public void (java.util.Set set, androidx.health.connect.client.time.TimeRangeFilter timeRangeFilter, java.time.Period period, java.util.Set set1, int i, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) - /// The returned object must be deleted after use, by calling the `delete` method. - factory AggregateGroupByPeriodRequest.ctor1( + /// The returned object must be released after use, by calling the [release] method. + factory AggregateGroupByPeriodRequest.new1( jni.JSet set0, TimeRangeFilter timeRangeFilter, jni.JObject period, @@ -12783,7 +13308,7 @@ class AggregateGroupByPeriodRequest extends jni.JObject { int i, jni.JObject defaultConstructorMarker, ) { - return AggregateGroupByPeriodRequest.fromRef(_ctor1( + return AggregateGroupByPeriodRequest.fromRef(_new1( set0.reference, timeRangeFilter.reference, period.reference, @@ -12833,50 +13358,50 @@ class AggregateRequest extends jni.JObject { /// The type which includes information such as the signature of this class. static const type = $AggregateRequestType(); - static final _ctor = jniLookup< + static final _new0 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>("AggregateRequest__ctor") + ffi.Pointer)>>("AggregateRequest__new0") .asFunction< jni.JniResult Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); /// from: public void (java.util.Set set, androidx.health.connect.client.time.TimeRangeFilter timeRangeFilter, java.util.Set set1) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. factory AggregateRequest( jni.JSet> set0, TimeRangeFilter timeRangeFilter, jni.JSet set1, ) { return AggregateRequest.fromRef( - _ctor(set0.reference, timeRangeFilter.reference, set1.reference) + _new0(set0.reference, timeRangeFilter.reference, set1.reference) .object); } - static final _ctor1 = jniLookup< + static final _new1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, - ffi.Pointer)>>("AggregateRequest__ctor1") + ffi.Pointer)>>("AggregateRequest__new1") .asFunction< jni.JniResult Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); /// from: public void (java.util.Set set, androidx.health.connect.client.time.TimeRangeFilter timeRangeFilter, java.util.Set set1, int i, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) - /// The returned object must be deleted after use, by calling the `delete` method. - factory AggregateRequest.ctor1( + /// The returned object must be released after use, by calling the [release] method. + factory AggregateRequest.new1( jni.JSet set0, TimeRangeFilter timeRangeFilter, jni.JSet set1, int i, jni.JObject defaultConstructorMarker, ) { - return AggregateRequest.fromRef(_ctor1( + return AggregateRequest.fromRef(_new1( set0.reference, timeRangeFilter.reference, set1.reference, @@ -12923,44 +13448,44 @@ class ChangesTokenRequest extends jni.JObject { /// The type which includes information such as the signature of this class. static const type = $ChangesTokenRequestType(); - static final _ctor = jniLookup< + static final _new0 = jniLookup< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer, - ffi.Pointer)>>("ChangesTokenRequest__ctor") + ffi.Pointer)>>("ChangesTokenRequest__new0") .asFunction< jni.JniResult Function( ffi.Pointer, ffi.Pointer)>(); /// from: public void (java.util.Set set, java.util.Set set1) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. factory ChangesTokenRequest( jni.JSet set0, jni.JSet set1, ) { return ChangesTokenRequest.fromRef( - _ctor(set0.reference, set1.reference).object); + _new0(set0.reference, set1.reference).object); } - static final _ctor1 = jniLookup< + static final _new1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer, ffi.Pointer, ffi.Int32, - ffi.Pointer)>>("ChangesTokenRequest__ctor1") + ffi.Pointer)>>("ChangesTokenRequest__new1") .asFunction< jni.JniResult Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); /// from: public void (java.util.Set set, java.util.Set set1, int i, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) - /// The returned object must be deleted after use, by calling the `delete` method. - factory ChangesTokenRequest.ctor1( + /// The returned object must be released after use, by calling the [release] method. + factory ChangesTokenRequest.new1( jni.JSet set0, jni.JSet set1, int i, jni.JObject defaultConstructorMarker, ) { - return ChangesTokenRequest.fromRef(_ctor1(set0.reference, set1.reference, i, + return ChangesTokenRequest.fromRef(_new1(set0.reference, set1.reference, i, defaultConstructorMarker.reference) .object); } @@ -13014,7 +13539,7 @@ class ReadRecordsRequest<$T extends jni.JObject> extends jni.JObject { ); } - static final _ctor = jniLookup< + static final _new0 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer, @@ -13022,13 +13547,13 @@ class ReadRecordsRequest<$T extends jni.JObject> extends jni.JObject { ffi.Pointer, ffi.Uint8, ffi.Int32, - ffi.Pointer)>>("ReadRecordsRequest__ctor") + ffi.Pointer)>>("ReadRecordsRequest__new0") .asFunction< jni.JniResult Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer)>(); /// from: public void (kotlin.reflect.KClass kClass, androidx.health.connect.client.time.TimeRangeFilter timeRangeFilter, java.util.Set set, boolean z, int i, java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. factory ReadRecordsRequest( jni.JObject kClass, TimeRangeFilter timeRangeFilter, @@ -13040,12 +13565,12 @@ class ReadRecordsRequest<$T extends jni.JObject> extends jni.JObject { }) { return ReadRecordsRequest.fromRef( T, - _ctor(kClass.reference, timeRangeFilter.reference, set0.reference, + _new0(kClass.reference, timeRangeFilter.reference, set0.reference, z ? 1 : 0, i, string.reference) .object); } - static final _ctor1 = jniLookup< + static final _new1 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer, @@ -13055,7 +13580,7 @@ class ReadRecordsRequest<$T extends jni.JObject> extends jni.JObject { ffi.Int32, ffi.Pointer, ffi.Int32, - ffi.Pointer)>>("ReadRecordsRequest__ctor1") + ffi.Pointer)>>("ReadRecordsRequest__new1") .asFunction< jni.JniResult Function( ffi.Pointer, @@ -13068,8 +13593,8 @@ class ReadRecordsRequest<$T extends jni.JObject> extends jni.JObject { ffi.Pointer)>(); /// from: public void (kotlin.reflect.KClass kClass, androidx.health.connect.client.time.TimeRangeFilter timeRangeFilter, java.util.Set set, boolean z, int i, java.lang.String string, int i1, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) - /// The returned object must be deleted after use, by calling the `delete` method. - factory ReadRecordsRequest.ctor1( + /// The returned object must be released after use, by calling the [release] method. + factory ReadRecordsRequest.new1( jni.JObject kClass, TimeRangeFilter timeRangeFilter, jni.JSet set0, @@ -13082,7 +13607,7 @@ class ReadRecordsRequest<$T extends jni.JObject> extends jni.JObject { }) { return ReadRecordsRequest.fromRef( T, - _ctor1( + _new1( kClass.reference, timeRangeFilter.reference, set0.reference, @@ -13165,25 +13690,25 @@ class AggregationResult extends jni.JObject { /// The type which includes information such as the signature of this class. static const type = $AggregationResultType(); - static final _ctor = jniLookup< + static final _new0 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>("AggregationResult__ctor") + ffi.Pointer)>>("AggregationResult__new0") .asFunction< jni.JniResult Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); /// from: public void (java.util.Map map, java.util.Map map1, java.util.Set set) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. factory AggregationResult( jni.JMap map, jni.JMap map1, jni.JSet set0, ) { return AggregationResult.fromRef( - _ctor(map.reference, map1.reference, set0.reference).object); + _new0(map.reference, map1.reference, set0.reference).object); } static final _getDataOrigins = jniLookup< @@ -13193,7 +13718,7 @@ class AggregationResult extends jni.JObject { .asFunction)>(); /// from: public final java.util.Set getDataOrigins() - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. jni.JSet getDataOrigins() { return const jni.JSetType(jni.JObjectType()) .fromRef(_getDataOrigins(reference).object); @@ -13238,7 +13763,7 @@ class AggregationResult extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public final T getMetric(androidx.health.connect.client.aggregate.AggregateMetric aggregateMetric) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. $T getMetric<$T extends jni.JObject>( AggregateMetric<$T> aggregateMetric, { jni.JObjType<$T>? T, @@ -13258,7 +13783,7 @@ class AggregationResult extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public final T get(androidx.health.connect.client.aggregate.AggregateMetric aggregateMetric) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. $T get0<$T extends jni.JObject>( AggregateMetric<$T> aggregateMetric, { jni.JObjType<$T>? T, @@ -13297,6 +13822,387 @@ class $AggregationResultType extends jni.JObjType { } } +/// from: androidx.health.connect.client.aggregate.AggregateMetric$AggregationType +class AggregateMetric_AggregationType extends jni.JObject { + @override + late final jni.JObjType $type = type; + + AggregateMetric_AggregationType.fromRef( + jni.JObjectPtr ref, + ) : super.fromRef(ref); + + /// The type which includes information such as the signature of this class. + static const type = $AggregateMetric_AggregationTypeType(); + static final _get_DURATION = + jniLookup>( + "get_AggregateMetric_AggregationType__DURATION") + .asFunction(); + + /// from: static public final androidx.health.connect.client.aggregate.AggregateMetric$AggregationType DURATION + /// The returned object must be released after use, by calling the [release] method. + static AggregateMetric_AggregationType get DURATION => + const $AggregateMetric_AggregationTypeType() + .fromRef(_get_DURATION().object); + + static final _get_AVERAGE = + jniLookup>( + "get_AggregateMetric_AggregationType__AVERAGE") + .asFunction(); + + /// from: static public final androidx.health.connect.client.aggregate.AggregateMetric$AggregationType AVERAGE + /// The returned object must be released after use, by calling the [release] method. + static AggregateMetric_AggregationType get AVERAGE => + const $AggregateMetric_AggregationTypeType() + .fromRef(_get_AVERAGE().object); + + static final _get_MINIMUM = + jniLookup>( + "get_AggregateMetric_AggregationType__MINIMUM") + .asFunction(); + + /// from: static public final androidx.health.connect.client.aggregate.AggregateMetric$AggregationType MINIMUM + /// The returned object must be released after use, by calling the [release] method. + static AggregateMetric_AggregationType get MINIMUM => + const $AggregateMetric_AggregationTypeType() + .fromRef(_get_MINIMUM().object); + + static final _get_MAXIMUM = + jniLookup>( + "get_AggregateMetric_AggregationType__MAXIMUM") + .asFunction(); + + /// from: static public final androidx.health.connect.client.aggregate.AggregateMetric$AggregationType MAXIMUM + /// The returned object must be released after use, by calling the [release] method. + static AggregateMetric_AggregationType get MAXIMUM => + const $AggregateMetric_AggregationTypeType() + .fromRef(_get_MAXIMUM().object); + + static final _get_TOTAL = + jniLookup>( + "get_AggregateMetric_AggregationType__TOTAL") + .asFunction(); + + /// from: static public final androidx.health.connect.client.aggregate.AggregateMetric$AggregationType TOTAL + /// The returned object must be released after use, by calling the [release] method. + static AggregateMetric_AggregationType get TOTAL => + const $AggregateMetric_AggregationTypeType().fromRef(_get_TOTAL().object); + + static final _get_COUNT = + jniLookup>( + "get_AggregateMetric_AggregationType__COUNT") + .asFunction(); + + /// from: static public final androidx.health.connect.client.aggregate.AggregateMetric$AggregationType COUNT + /// The returned object must be released after use, by calling the [release] method. + static AggregateMetric_AggregationType get COUNT => + const $AggregateMetric_AggregationTypeType().fromRef(_get_COUNT().object); + + static final _getAggregationTypeString = jniLookup< + ffi + .NativeFunction)>>( + "AggregateMetric_AggregationType__getAggregationTypeString") + .asFunction)>(); + + /// from: public final java.lang.String getAggregationTypeString() + /// The returned object must be released after use, by calling the [release] method. + jni.JString getAggregationTypeString() { + return const jni.JStringType() + .fromRef(_getAggregationTypeString(reference).object); + } + + static final _values = + jniLookup>( + "AggregateMetric_AggregationType__values") + .asFunction(); + + /// from: static public androidx.health.connect.client.aggregate.AggregateMetric$AggregationType[] values() + /// The returned object must be released after use, by calling the [release] method. + static jni.JArray values() { + return const jni.JArrayType($AggregateMetric_AggregationTypeType()) + .fromRef(_values().object); + } + + static final _valueOf = jniLookup< + ffi + .NativeFunction)>>( + "AggregateMetric_AggregationType__valueOf") + .asFunction)>(); + + /// from: static public androidx.health.connect.client.aggregate.AggregateMetric$AggregationType valueOf(java.lang.String string) + /// The returned object must be released after use, by calling the [release] method. + static AggregateMetric_AggregationType valueOf( + jni.JString string, + ) { + return const $AggregateMetric_AggregationTypeType() + .fromRef(_valueOf(string.reference).object); + } +} + +class $AggregateMetric_AggregationTypeType + extends jni.JObjType { + const $AggregateMetric_AggregationTypeType(); + + @override + String get signature => + r"Landroidx/health/connect/client/aggregate/AggregateMetric$AggregationType;"; + + @override + AggregateMetric_AggregationType fromRef(jni.JObjectPtr ref) => + AggregateMetric_AggregationType.fromRef(ref); + + @override + jni.JObjType get superType => const jni.JObjectType(); + + @override + final superCount = 1; + + @override + int get hashCode => ($AggregateMetric_AggregationTypeType).hashCode; + + @override + bool operator ==(Object other) { + return other.runtimeType == ($AggregateMetric_AggregationTypeType) && + other is $AggregateMetric_AggregationTypeType; + } +} + +/// from: androidx.health.connect.client.aggregate.AggregateMetric$Companion +class AggregateMetric_Companion extends jni.JObject { + @override + late final jni.JObjType $type = type; + + AggregateMetric_Companion.fromRef( + jni.JObjectPtr ref, + ) : super.fromRef(ref); + + /// The type which includes information such as the signature of this class. + static const type = $AggregateMetric_CompanionType(); + static final _new0 = jniLookup< + ffi + .NativeFunction)>>( + "AggregateMetric_Companion__new0") + .asFunction)>(); + + /// from: public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) + /// The returned object must be released after use, by calling the [release] method. + factory AggregateMetric_Companion( + jni.JObject defaultConstructorMarker, + ) { + return AggregateMetric_Companion.fromRef( + _new0(defaultConstructorMarker.reference).object); + } +} + +class $AggregateMetric_CompanionType + extends jni.JObjType { + const $AggregateMetric_CompanionType(); + + @override + String get signature => + r"Landroidx/health/connect/client/aggregate/AggregateMetric$Companion;"; + + @override + AggregateMetric_Companion fromRef(jni.JObjectPtr ref) => + AggregateMetric_Companion.fromRef(ref); + + @override + jni.JObjType get superType => const jni.JObjectType(); + + @override + final superCount = 1; + + @override + int get hashCode => ($AggregateMetric_CompanionType).hashCode; + + @override + bool operator ==(Object other) { + return other.runtimeType == ($AggregateMetric_CompanionType) && + other is $AggregateMetric_CompanionType; + } +} + +/// from: androidx.health.connect.client.aggregate.AggregateMetric$Converter$FromDouble +class AggregateMetric_Converter_FromDouble<$R extends jni.JObject> + extends jni.JObject { + @override + late final jni.JObjType> $type = + type(R); + + final jni.JObjType<$R> R; + + AggregateMetric_Converter_FromDouble.fromRef( + this.R, + jni.JObjectPtr ref, + ) : super.fromRef(ref); + + /// The type which includes information such as the signature of this class. + static $AggregateMetric_Converter_FromDoubleType<$R> + type<$R extends jni.JObject>( + jni.JObjType<$R> R, + ) { + return $AggregateMetric_Converter_FromDoubleType( + R, + ); + } +} + +class $AggregateMetric_Converter_FromDoubleType<$R extends jni.JObject> + extends jni.JObjType> { + final jni.JObjType<$R> R; + + const $AggregateMetric_Converter_FromDoubleType( + this.R, + ); + + @override + String get signature => + r"Landroidx/health/connect/client/aggregate/AggregateMetric$Converter$FromDouble;"; + + @override + AggregateMetric_Converter_FromDouble<$R> fromRef(jni.JObjectPtr ref) => + AggregateMetric_Converter_FromDouble.fromRef(R, ref); + + @override + jni.JObjType get superType => const jni.JObjectType(); + + @override + final superCount = 1; + + @override + int get hashCode => Object.hash($AggregateMetric_Converter_FromDoubleType, R); + + @override + bool operator ==(Object other) { + return other.runtimeType == + ($AggregateMetric_Converter_FromDoubleType<$R>) && + other is $AggregateMetric_Converter_FromDoubleType<$R> && + R == other.R; + } +} + +/// from: androidx.health.connect.client.aggregate.AggregateMetric$Converter$FromLong +class AggregateMetric_Converter_FromLong<$R extends jni.JObject> + extends jni.JObject { + @override + late final jni.JObjType> $type = + type(R); + + final jni.JObjType<$R> R; + + AggregateMetric_Converter_FromLong.fromRef( + this.R, + jni.JObjectPtr ref, + ) : super.fromRef(ref); + + /// The type which includes information such as the signature of this class. + static $AggregateMetric_Converter_FromLongType<$R> + type<$R extends jni.JObject>( + jni.JObjType<$R> R, + ) { + return $AggregateMetric_Converter_FromLongType( + R, + ); + } +} + +class $AggregateMetric_Converter_FromLongType<$R extends jni.JObject> + extends jni.JObjType> { + final jni.JObjType<$R> R; + + const $AggregateMetric_Converter_FromLongType( + this.R, + ); + + @override + String get signature => + r"Landroidx/health/connect/client/aggregate/AggregateMetric$Converter$FromLong;"; + + @override + AggregateMetric_Converter_FromLong<$R> fromRef(jni.JObjectPtr ref) => + AggregateMetric_Converter_FromLong.fromRef(R, ref); + + @override + jni.JObjType get superType => const jni.JObjectType(); + + @override + final superCount = 1; + + @override + int get hashCode => Object.hash($AggregateMetric_Converter_FromLongType, R); + + @override + bool operator ==(Object other) { + return other.runtimeType == ($AggregateMetric_Converter_FromLongType<$R>) && + other is $AggregateMetric_Converter_FromLongType<$R> && + R == other.R; + } +} + +/// from: androidx.health.connect.client.aggregate.AggregateMetric$Converter +class AggregateMetric_Converter<$T extends jni.JObject, $R extends jni.JObject> + extends jni.JObject { + @override + late final jni.JObjType> $type = type(T, R); + + final jni.JObjType<$T> T; + final jni.JObjType<$R> R; + + AggregateMetric_Converter.fromRef( + this.T, + this.R, + jni.JObjectPtr ref, + ) : super.fromRef(ref); + + /// The type which includes information such as the signature of this class. + static $AggregateMetric_ConverterType<$T, $R> + type<$T extends jni.JObject, $R extends jni.JObject>( + jni.JObjType<$T> T, + jni.JObjType<$R> R, + ) { + return $AggregateMetric_ConverterType( + T, + R, + ); + } +} + +class $AggregateMetric_ConverterType<$T extends jni.JObject, + $R extends jni.JObject> + extends jni.JObjType> { + final jni.JObjType<$T> T; + final jni.JObjType<$R> R; + + const $AggregateMetric_ConverterType( + this.T, + this.R, + ); + + @override + String get signature => + r"Landroidx/health/connect/client/aggregate/AggregateMetric$Converter;"; + + @override + AggregateMetric_Converter<$T, $R> fromRef(jni.JObjectPtr ref) => + AggregateMetric_Converter.fromRef(T, R, ref); + + @override + jni.JObjType get superType => const jni.JObjectType(); + + @override + final superCount = 1; + + @override + int get hashCode => Object.hash($AggregateMetric_ConverterType, T, R); + + @override + bool operator ==(Object other) { + return other.runtimeType == ($AggregateMetric_ConverterType<$T, $R>) && + other is $AggregateMetric_ConverterType<$T, $R> && + T == other.T && + R == other.R; + } +} + /// from: androidx.health.connect.client.aggregate.AggregateMetric class AggregateMetric<$T extends jni.JObject> extends jni.JObject { @override @@ -13324,33 +14230,36 @@ class AggregateMetric<$T extends jni.JObject> extends jni.JObject { .asFunction(); /// from: static public final androidx.health.connect.client.aggregate.AggregateMetric$Companion Companion - /// The returned object must be deleted after use, by calling the `delete` method. - static jni.JObject get Companion => - const jni.JObjectType().fromRef(_get_Companion().object); + /// The returned object must be released after use, by calling the [release] method. + static AggregateMetric_Companion get Companion => + const $AggregateMetric_CompanionType().fromRef(_get_Companion().object); - static final _ctor = jniLookup< + static final _new0 = jniLookup< ffi.NativeFunction< jni.JniResult Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>("AggregateMetric__ctor") + ffi.Pointer)>>("AggregateMetric__new0") .asFunction< jni.JniResult Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); /// from: public void (androidx.health.connect.client.aggregate.AggregateMetric$Converter converter, java.lang.String string, androidx.health.connect.client.aggregate.AggregateMetric$AggregationType aggregationType, java.lang.String string1) - /// The returned object must be deleted after use, by calling the `delete` method. + /// The returned object must be released after use, by calling the [release] method. factory AggregateMetric( - jni.JObject converter, + AggregateMetric_Converter converter, jni.JString string, - jni.JObject aggregationType, + AggregateMetric_AggregationType aggregationType, jni.JString string1, { - required jni.JObjType<$T> T, + jni.JObjType<$T>? T, }) { + T ??= jni.lowestCommonSuperType([ + (converter.$type as $AggregateMetric_ConverterType).R, + ]) as jni.JObjType<$T>; return AggregateMetric.fromRef( T, - _ctor(converter.reference, string.reference, aggregationType.reference, + _new0(converter.reference, string.reference, aggregationType.reference, string1.reference) .object); } diff --git a/experimental/pedometer/pubspec.yaml b/experimental/pedometer/pubspec.yaml index bd4a7d145a7..2a9cfce6b45 100644 --- a/experimental/pedometer/pubspec.yaml +++ b/experimental/pedometer/pubspec.yaml @@ -11,12 +11,12 @@ dependencies: flutter: sdk: flutter plugin_platform_interface: ^2.0.2 - jni: ^0.5.0 + jni: ^0.6.1 ffi: ^2.0.1 dev_dependencies: ffigen: ^9.0.0 - jnigen: ^0.5.0 + jnigen: ^0.6.0 flutter_test: sdk: flutter flutter_lints: ^2.0.0 diff --git a/experimental/pedometer/src/health_connect/dartjni.h b/experimental/pedometer/src/health_connect/dartjni.h index c0713af53a5..8f1dc7481c9 100644 --- a/experimental/pedometer/src/health_connect/dartjni.h +++ b/experimental/pedometer/src/health_connect/dartjni.h @@ -45,6 +45,7 @@ #include typedef CRITICAL_SECTION MutexLock; +typedef CONDITION_VARIABLE ConditionVariable; static inline void init_lock(MutexLock* lock) { InitializeCriticalSection(lock); @@ -58,15 +59,32 @@ static inline void release_lock(MutexLock* lock) { LeaveCriticalSection(lock); } -static inline void _destroyLock(MutexLock* lock) { +static inline void destroy_lock(MutexLock* lock) { DeleteCriticalSection(lock); } -#elif defined __DARWIN__ || defined __LINUX__ || defined __ANDROID__ || \ +static inline void init_cond(ConditionVariable* cond) { + InitializeConditionVariable(cond); +} + +static inline void signal_cond(ConditionVariable* cond) { + WakeConditionVariable(cond); +} + +static inline void wait_for(ConditionVariable* cond, MutexLock* lock) { + SleepConditionVariableCS(cond, lock, INFINITE); +} + +static inline void destroy_cond(ConditionVariable* cond) { + // Not available. +} + +#elif defined __APPLE__ || defined __LINUX__ || defined __ANDROID__ || \ defined __GNUC__ #include typedef pthread_mutex_t MutexLock; +typedef pthread_cond_t ConditionVariable; static inline void init_lock(MutexLock* lock) { pthread_mutex_init(lock, NULL); @@ -80,16 +98,39 @@ static inline void release_lock(MutexLock* lock) { pthread_mutex_unlock(lock); } -static inline void _destroyLock(MutexLock* lock) { +static inline void destroy_lock(MutexLock* lock) { pthread_mutex_destroy(lock); } +static inline void init_cond(ConditionVariable* cond) { + pthread_cond_init(cond, NULL); +} + +static inline void signal_cond(ConditionVariable* cond) { + pthread_cond_signal(cond); +} + +static inline void wait_for(ConditionVariable* cond, MutexLock* lock) { + pthread_cond_wait(cond, lock); +} + +static inline void destroy_cond(ConditionVariable* cond) { + pthread_cond_destroy(cond); +} + #else -#error "No locking support; Possibly unsupported platform" +#error "No locking/condition variable support; Possibly unsupported platform" #endif +typedef struct CallbackResult { + MutexLock lock; + ConditionVariable cond; + int ready; + jobject object; +} CallbackResult; + typedef struct JniLocks { MutexLock classLoadingLock; MutexLock methodLoadingLock; @@ -369,10 +410,15 @@ static inline JniResult to_global_ref_result(jobject ref) { FFI_PLUGIN_EXPORT intptr_t InitDartApiDL(void* data); -JNIEXPORT void JNICALL -Java_com_github_dart_1lang_jni_PortContinuation__1resumeWith(JNIEnv* env, - jobject thiz, - jlong port, - jobject result); +FFI_PLUGIN_EXPORT +JniResult DartException__ctor(jstring message); + FFI_PLUGIN_EXPORT JniResult PortContinuation__ctor(int64_t j); + +FFI_PLUGIN_EXPORT +JniResult PortProxy__newInstance(jobject binaryName, + int64_t port, + int64_t functionPtr); + +FFI_PLUGIN_EXPORT void resultFor(CallbackResult* result, jobject object); diff --git a/experimental/pedometer/src/health_connect/health_connect.c b/experimental/pedometer/src/health_connect/health_connect.c index 11cc63f2ff7..a71cf8eca1b 100644 --- a/experimental/pedometer/src/health_connect/health_connect.c +++ b/experimental/pedometer/src/health_connect/health_connect.c @@ -15,6 +15,95 @@ void setJniGetters(JniContext* (*cg)(void), JNIEnv* (*eg)(void)) { env_getter = eg; } +// androidx.health.connect.client.HealthConnectClient$Companion +jclass _c_HealthConnectClient_Companion = NULL; + +jmethodID _m_HealthConnectClient_Companion__isAvailable = NULL; +FFI_PLUGIN_EXPORT +JniResult HealthConnectClient_Companion__isAvailable(jobject self_, + jobject context, + jobject list) { + load_env(); + load_class_global_ref( + &_c_HealthConnectClient_Companion, + "androidx/health/connect/client/HealthConnectClient$Companion"); + if (_c_HealthConnectClient_Companion == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_method(_c_HealthConnectClient_Companion, + &_m_HealthConnectClient_Companion__isAvailable, "isAvailable", + "(Landroid/content/Context;Ljava/util/List;)Z"); + if (_m_HealthConnectClient_Companion__isAvailable == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + uint8_t _result = (*jniEnv)->CallBooleanMethod( + jniEnv, self_, _m_HealthConnectClient_Companion__isAvailable, context, + list); + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; +} + +jmethodID _m_HealthConnectClient_Companion__getOrCreate = NULL; +FFI_PLUGIN_EXPORT +JniResult HealthConnectClient_Companion__getOrCreate(jobject self_, + jobject context, + jobject list) { + load_env(); + load_class_global_ref( + &_c_HealthConnectClient_Companion, + "androidx/health/connect/client/HealthConnectClient$Companion"); + if (_c_HealthConnectClient_Companion == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_method(_c_HealthConnectClient_Companion, + &_m_HealthConnectClient_Companion__getOrCreate, "getOrCreate", + "(Landroid/content/Context;Ljava/util/List;)Landroidx/health/" + "connect/client/HealthConnectClient;"); + if (_m_HealthConnectClient_Companion__getOrCreate == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + jobject _result = (*jniEnv)->CallObjectMethod( + jniEnv, self_, _m_HealthConnectClient_Companion__getOrCreate, context, + list); + return to_global_ref_result(_result); +} + +jmethodID _m_HealthConnectClient_Companion__isAvailable1 = NULL; +FFI_PLUGIN_EXPORT +JniResult HealthConnectClient_Companion__isAvailable1(jobject self_, + jobject context) { + load_env(); + load_class_global_ref( + &_c_HealthConnectClient_Companion, + "androidx/health/connect/client/HealthConnectClient$Companion"); + if (_c_HealthConnectClient_Companion == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_method(_c_HealthConnectClient_Companion, + &_m_HealthConnectClient_Companion__isAvailable1, "isAvailable", + "(Landroid/content/Context;)Z"); + if (_m_HealthConnectClient_Companion__isAvailable1 == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + uint8_t _result = (*jniEnv)->CallBooleanMethod( + jniEnv, self_, _m_HealthConnectClient_Companion__isAvailable1, context); + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; +} + +jmethodID _m_HealthConnectClient_Companion__getOrCreate1 = NULL; +FFI_PLUGIN_EXPORT +JniResult HealthConnectClient_Companion__getOrCreate1(jobject self_, + jobject context) { + load_env(); + load_class_global_ref( + &_c_HealthConnectClient_Companion, + "androidx/health/connect/client/HealthConnectClient$Companion"); + if (_c_HealthConnectClient_Companion == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_method(_c_HealthConnectClient_Companion, + &_m_HealthConnectClient_Companion__getOrCreate1, "getOrCreate", + "(Landroid/content/Context;)Landroidx/health/connect/client/" + "HealthConnectClient;"); + if (_m_HealthConnectClient_Companion__getOrCreate1 == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + jobject _result = (*jniEnv)->CallObjectMethod( + jniEnv, self_, _m_HealthConnectClient_Companion__getOrCreate1, context); + return to_global_ref_result(_result); +} + // androidx.health.connect.client.HealthConnectClient jclass _c_HealthConnectClient = NULL; @@ -431,6 +520,65 @@ JniResult get_HealthConnectClient__Companion() { return to_global_ref_result(_result); } +// androidx.health.connect.client.PermissionController$Companion +jclass _c_PermissionController_Companion = NULL; + +jmethodID + _m_PermissionController_Companion__createRequestPermissionResultContract = + NULL; +FFI_PLUGIN_EXPORT +JniResult PermissionController_Companion__createRequestPermissionResultContract( + jobject self_, + jobject string) { + load_env(); + load_class_global_ref( + &_c_PermissionController_Companion, + "androidx/health/connect/client/PermissionController$Companion"); + if (_c_PermissionController_Companion == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_method( + _c_PermissionController_Companion, + &_m_PermissionController_Companion__createRequestPermissionResultContract, + "createRequestPermissionResultContract", + "(Ljava/lang/String;)Landroidx/activity/result/contract/" + "ActivityResultContract;"); + if (_m_PermissionController_Companion__createRequestPermissionResultContract == + NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + jobject _result = (*jniEnv)->CallObjectMethod( + jniEnv, self_, + _m_PermissionController_Companion__createRequestPermissionResultContract, + string); + return to_global_ref_result(_result); +} + +jmethodID + _m_PermissionController_Companion__createRequestPermissionResultContract1 = + NULL; +FFI_PLUGIN_EXPORT +JniResult +PermissionController_Companion__createRequestPermissionResultContract1( + jobject self_) { + load_env(); + load_class_global_ref( + &_c_PermissionController_Companion, + "androidx/health/connect/client/PermissionController$Companion"); + if (_c_PermissionController_Companion == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_method( + _c_PermissionController_Companion, + &_m_PermissionController_Companion__createRequestPermissionResultContract1, + "createRequestPermissionResultContract", + "()Landroidx/activity/result/contract/ActivityResultContract;"); + if (_m_PermissionController_Companion__createRequestPermissionResultContract1 == + NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + jobject _result = (*jniEnv)->CallObjectMethod( + jniEnv, self_, + _m_PermissionController_Companion__createRequestPermissionResultContract1); + return to_global_ref_result(_result); +} + // androidx.health.connect.client.PermissionController jclass _c_PermissionController = NULL; @@ -538,12 +686,34 @@ JniResult get_PermissionController__Companion() { return to_global_ref_result(_result); } +// androidx.health.connect.client.records.StepsRecord$Companion +jclass _c_StepsRecord_Companion = NULL; + +jmethodID _m_StepsRecord_Companion__new0 = NULL; +FFI_PLUGIN_EXPORT +JniResult StepsRecord_Companion__new0(jobject defaultConstructorMarker) { + load_env(); + load_class_global_ref( + &_c_StepsRecord_Companion, + "androidx/health/connect/client/records/StepsRecord$Companion"); + if (_c_StepsRecord_Companion == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_method(_c_StepsRecord_Companion, &_m_StepsRecord_Companion__new0, + "", "(Lkotlin/jvm/internal/DefaultConstructorMarker;)V"); + if (_m_StepsRecord_Companion__new0 == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + jobject _result = (*jniEnv)->NewObject(jniEnv, _c_StepsRecord_Companion, + _m_StepsRecord_Companion__new0, + defaultConstructorMarker); + return to_global_ref_result(_result); +} + // androidx.health.connect.client.records.StepsRecord jclass _c_StepsRecord = NULL; -jmethodID _m_StepsRecord__ctor = NULL; +jmethodID _m_StepsRecord__new0 = NULL; FFI_PLUGIN_EXPORT -JniResult StepsRecord__ctor(int64_t j, +JniResult StepsRecord__new0(int64_t j, jobject instant, jobject zoneOffset, jobject instant1, @@ -554,42 +724,42 @@ JniResult StepsRecord__ctor(int64_t j, "androidx/health/connect/client/records/StepsRecord"); if (_c_StepsRecord == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; - load_method(_c_StepsRecord, &_m_StepsRecord__ctor, "", + load_method(_c_StepsRecord, &_m_StepsRecord__new0, "", "(JLjava/time/Instant;Ljava/time/ZoneOffset;Ljava/time/" "Instant;Ljava/time/ZoneOffset;Landroidx/health/connect/client/" "records/metadata/Metadata;)V"); - if (_m_StepsRecord__ctor == NULL) + if (_m_StepsRecord__new0 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject( - jniEnv, _c_StepsRecord, _m_StepsRecord__ctor, j, instant, zoneOffset, + jniEnv, _c_StepsRecord, _m_StepsRecord__new0, j, instant, zoneOffset, instant1, zoneOffset1, metadata); return to_global_ref_result(_result); } -jmethodID _m_StepsRecord__ctor1 = NULL; +jmethodID _m_StepsRecord__new1 = NULL; FFI_PLUGIN_EXPORT -JniResult StepsRecord__ctor1(int64_t j, - jobject instant, - jobject zoneOffset, - jobject instant1, - jobject zoneOffset1, - jobject metadata, - int32_t i, - jobject defaultConstructorMarker) { +JniResult StepsRecord__new1(int64_t j, + jobject instant, + jobject zoneOffset, + jobject instant1, + jobject zoneOffset1, + jobject metadata, + int32_t i, + jobject defaultConstructorMarker) { load_env(); load_class_global_ref(&_c_StepsRecord, "androidx/health/connect/client/records/StepsRecord"); if (_c_StepsRecord == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( - _c_StepsRecord, &_m_StepsRecord__ctor1, "", + _c_StepsRecord, &_m_StepsRecord__new1, "", "(JLjava/time/Instant;Ljava/time/ZoneOffset;Ljava/time/Instant;Ljava/" "time/ZoneOffset;Landroidx/health/connect/client/records/metadata/" "Metadata;ILkotlin/jvm/internal/DefaultConstructorMarker;)V"); - if (_m_StepsRecord__ctor1 == NULL) + if (_m_StepsRecord__new1 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject( - jniEnv, _c_StepsRecord, _m_StepsRecord__ctor1, j, instant, zoneOffset, + jniEnv, _c_StepsRecord, _m_StepsRecord__new1, j, instant, zoneOffset, instant1, zoneOffset1, metadata, i, defaultConstructorMarker); return to_global_ref_result(_result); } @@ -890,21 +1060,21 @@ JniResult TimeRangeFilter_Companion__after1(jobject self_, return to_global_ref_result(_result); } -jmethodID _m_TimeRangeFilter_Companion__ctor = NULL; +jmethodID _m_TimeRangeFilter_Companion__new0 = NULL; FFI_PLUGIN_EXPORT -JniResult TimeRangeFilter_Companion__ctor(jobject defaultConstructorMarker) { +JniResult TimeRangeFilter_Companion__new0(jobject defaultConstructorMarker) { load_env(); load_class_global_ref( &_c_TimeRangeFilter_Companion, "androidx/health/connect/client/time/TimeRangeFilter$Companion"); if (_c_TimeRangeFilter_Companion == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; - load_method(_c_TimeRangeFilter_Companion, &_m_TimeRangeFilter_Companion__ctor, + load_method(_c_TimeRangeFilter_Companion, &_m_TimeRangeFilter_Companion__new0, "", "(Lkotlin/jvm/internal/DefaultConstructorMarker;)V"); - if (_m_TimeRangeFilter_Companion__ctor == NULL) + if (_m_TimeRangeFilter_Companion__new0 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject(jniEnv, _c_TimeRangeFilter_Companion, - _m_TimeRangeFilter_Companion__ctor, + _m_TimeRangeFilter_Companion__new0, defaultConstructorMarker); return to_global_ref_result(_result); } @@ -912,9 +1082,9 @@ JniResult TimeRangeFilter_Companion__ctor(jobject defaultConstructorMarker) { // androidx.health.connect.client.time.TimeRangeFilter jclass _c_TimeRangeFilter = NULL; -jmethodID _m_TimeRangeFilter__ctor = NULL; +jmethodID _m_TimeRangeFilter__new0 = NULL; FFI_PLUGIN_EXPORT -JniResult TimeRangeFilter__ctor(jobject instant, +JniResult TimeRangeFilter__new0(jobject instant, jobject instant1, jobject localDateTime, jobject localDateTime1) { @@ -923,38 +1093,38 @@ JniResult TimeRangeFilter__ctor(jobject instant, "androidx/health/connect/client/time/TimeRangeFilter"); if (_c_TimeRangeFilter == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; - load_method(_c_TimeRangeFilter, &_m_TimeRangeFilter__ctor, "", + load_method(_c_TimeRangeFilter, &_m_TimeRangeFilter__new0, "", "(Ljava/time/Instant;Ljava/time/Instant;Ljava/time/" "LocalDateTime;Ljava/time/LocalDateTime;)V"); - if (_m_TimeRangeFilter__ctor == NULL) + if (_m_TimeRangeFilter__new0 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = - (*jniEnv)->NewObject(jniEnv, _c_TimeRangeFilter, _m_TimeRangeFilter__ctor, + (*jniEnv)->NewObject(jniEnv, _c_TimeRangeFilter, _m_TimeRangeFilter__new0, instant, instant1, localDateTime, localDateTime1); return to_global_ref_result(_result); } -jmethodID _m_TimeRangeFilter__ctor1 = NULL; +jmethodID _m_TimeRangeFilter__new1 = NULL; FFI_PLUGIN_EXPORT -JniResult TimeRangeFilter__ctor1(jobject instant, - jobject instant1, - jobject localDateTime, - jobject localDateTime1, - int32_t i, - jobject defaultConstructorMarker) { +JniResult TimeRangeFilter__new1(jobject instant, + jobject instant1, + jobject localDateTime, + jobject localDateTime1, + int32_t i, + jobject defaultConstructorMarker) { load_env(); load_class_global_ref(&_c_TimeRangeFilter, "androidx/health/connect/client/time/TimeRangeFilter"); if (_c_TimeRangeFilter == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( - _c_TimeRangeFilter, &_m_TimeRangeFilter__ctor1, "", + _c_TimeRangeFilter, &_m_TimeRangeFilter__new1, "", "(Ljava/time/Instant;Ljava/time/Instant;Ljava/time/LocalDateTime;Ljava/" "time/LocalDateTime;ILkotlin/jvm/internal/DefaultConstructorMarker;)V"); - if (_m_TimeRangeFilter__ctor1 == NULL) + if (_m_TimeRangeFilter__new1 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject( - jniEnv, _c_TimeRangeFilter, _m_TimeRangeFilter__ctor1, instant, instant1, + jniEnv, _c_TimeRangeFilter, _m_TimeRangeFilter__new1, instant, instant1, localDateTime, localDateTime1, i, defaultConstructorMarker); return to_global_ref_result(_result); } @@ -993,19 +1163,19 @@ JniResult TimeRangeFilter__hashCode1(jobject self_) { return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } -jmethodID _m_TimeRangeFilter__ctor2 = NULL; +jmethodID _m_TimeRangeFilter__new2 = NULL; FFI_PLUGIN_EXPORT -JniResult TimeRangeFilter__ctor2() { +JniResult TimeRangeFilter__new2() { load_env(); load_class_global_ref(&_c_TimeRangeFilter, "androidx/health/connect/client/time/TimeRangeFilter"); if (_c_TimeRangeFilter == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; - load_method(_c_TimeRangeFilter, &_m_TimeRangeFilter__ctor2, "", "()V"); - if (_m_TimeRangeFilter__ctor2 == NULL) + load_method(_c_TimeRangeFilter, &_m_TimeRangeFilter__new2, "", "()V"); + if (_m_TimeRangeFilter__new2 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject(jniEnv, _c_TimeRangeFilter, - _m_TimeRangeFilter__ctor2); + _m_TimeRangeFilter__new2); return to_global_ref_result(_result); } @@ -1141,17 +1311,17 @@ JniResult get_TimeRangeFilter__Companion() { // android.content.Context jclass _c_Context = NULL; -jmethodID _m_Context__ctor = NULL; +jmethodID _m_Context__new0 = NULL; FFI_PLUGIN_EXPORT -JniResult Context__ctor() { +JniResult Context__new0() { load_env(); load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; - load_method(_c_Context, &_m_Context__ctor, "", "()V"); - if (_m_Context__ctor == NULL) + load_method(_c_Context, &_m_Context__new0, "", "()V"); + if (_m_Context__new0 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->NewObject(jniEnv, _c_Context, _m_Context__ctor); + jobject _result = (*jniEnv)->NewObject(jniEnv, _c_Context, _m_Context__new0); return to_global_ref_result(_result); } @@ -3669,102 +3839,353 @@ JniResult Context__isUiContext(jobject self_) { return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } +// android.content.Intent$FilterComparison +jclass _c_Intent_FilterComparison = NULL; + +jmethodID _m_Intent_FilterComparison__new0 = NULL; +FFI_PLUGIN_EXPORT +JniResult Intent_FilterComparison__new0(jobject intent) { + load_env(); + load_class_global_ref(&_c_Intent_FilterComparison, + "android/content/Intent$FilterComparison"); + if (_c_Intent_FilterComparison == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_method(_c_Intent_FilterComparison, &_m_Intent_FilterComparison__new0, + "", "(Landroid/content/Intent;)V"); + if (_m_Intent_FilterComparison__new0 == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + jobject _result = + (*jniEnv)->NewObject(jniEnv, _c_Intent_FilterComparison, + _m_Intent_FilterComparison__new0, intent); + return to_global_ref_result(_result); +} + +jmethodID _m_Intent_FilterComparison__getIntent = NULL; +FFI_PLUGIN_EXPORT +JniResult Intent_FilterComparison__getIntent(jobject self_) { + load_env(); + load_class_global_ref(&_c_Intent_FilterComparison, + "android/content/Intent$FilterComparison"); + if (_c_Intent_FilterComparison == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_method(_c_Intent_FilterComparison, + &_m_Intent_FilterComparison__getIntent, "getIntent", + "()Landroid/content/Intent;"); + if (_m_Intent_FilterComparison__getIntent == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + jobject _result = (*jniEnv)->CallObjectMethod( + jniEnv, self_, _m_Intent_FilterComparison__getIntent); + return to_global_ref_result(_result); +} + +jmethodID _m_Intent_FilterComparison__equals1 = NULL; +FFI_PLUGIN_EXPORT +JniResult Intent_FilterComparison__equals1(jobject self_, jobject object) { + load_env(); + load_class_global_ref(&_c_Intent_FilterComparison, + "android/content/Intent$FilterComparison"); + if (_c_Intent_FilterComparison == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_method(_c_Intent_FilterComparison, &_m_Intent_FilterComparison__equals1, + "equals", "(Ljava/lang/Object;)Z"); + if (_m_Intent_FilterComparison__equals1 == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + uint8_t _result = (*jniEnv)->CallBooleanMethod( + jniEnv, self_, _m_Intent_FilterComparison__equals1, object); + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; +} + +jmethodID _m_Intent_FilterComparison__hashCode1 = NULL; +FFI_PLUGIN_EXPORT +JniResult Intent_FilterComparison__hashCode1(jobject self_) { + load_env(); + load_class_global_ref(&_c_Intent_FilterComparison, + "android/content/Intent$FilterComparison"); + if (_c_Intent_FilterComparison == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_method(_c_Intent_FilterComparison, + &_m_Intent_FilterComparison__hashCode1, "hashCode", "()I"); + if (_m_Intent_FilterComparison__hashCode1 == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + int32_t _result = (*jniEnv)->CallIntMethod( + jniEnv, self_, _m_Intent_FilterComparison__hashCode1); + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; +} + +// android.content.Intent$ShortcutIconResource +jclass _c_Intent_ShortcutIconResource = NULL; + +jmethodID _m_Intent_ShortcutIconResource__new0 = NULL; +FFI_PLUGIN_EXPORT +JniResult Intent_ShortcutIconResource__new0() { + load_env(); + load_class_global_ref(&_c_Intent_ShortcutIconResource, + "android/content/Intent$ShortcutIconResource"); + if (_c_Intent_ShortcutIconResource == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_method(_c_Intent_ShortcutIconResource, + &_m_Intent_ShortcutIconResource__new0, "", "()V"); + if (_m_Intent_ShortcutIconResource__new0 == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + jobject _result = (*jniEnv)->NewObject(jniEnv, _c_Intent_ShortcutIconResource, + _m_Intent_ShortcutIconResource__new0); + return to_global_ref_result(_result); +} + +jmethodID _m_Intent_ShortcutIconResource__fromContext = NULL; +FFI_PLUGIN_EXPORT +JniResult Intent_ShortcutIconResource__fromContext(jobject context, int32_t i) { + load_env(); + load_class_global_ref(&_c_Intent_ShortcutIconResource, + "android/content/Intent$ShortcutIconResource"); + if (_c_Intent_ShortcutIconResource == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_static_method(_c_Intent_ShortcutIconResource, + &_m_Intent_ShortcutIconResource__fromContext, + "fromContext", + "(Landroid/content/Context;I)Landroid/content/" + "Intent$ShortcutIconResource;"); + if (_m_Intent_ShortcutIconResource__fromContext == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + jobject _result = (*jniEnv)->CallStaticObjectMethod( + jniEnv, _c_Intent_ShortcutIconResource, + _m_Intent_ShortcutIconResource__fromContext, context, i); + return to_global_ref_result(_result); +} + +jmethodID _m_Intent_ShortcutIconResource__describeContents = NULL; +FFI_PLUGIN_EXPORT +JniResult Intent_ShortcutIconResource__describeContents(jobject self_) { + load_env(); + load_class_global_ref(&_c_Intent_ShortcutIconResource, + "android/content/Intent$ShortcutIconResource"); + if (_c_Intent_ShortcutIconResource == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_method(_c_Intent_ShortcutIconResource, + &_m_Intent_ShortcutIconResource__describeContents, + "describeContents", "()I"); + if (_m_Intent_ShortcutIconResource__describeContents == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + int32_t _result = (*jniEnv)->CallIntMethod( + jniEnv, self_, _m_Intent_ShortcutIconResource__describeContents); + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; +} + +jmethodID _m_Intent_ShortcutIconResource__writeToParcel = NULL; +FFI_PLUGIN_EXPORT +JniResult Intent_ShortcutIconResource__writeToParcel(jobject self_, + jobject parcel, + int32_t i) { + load_env(); + load_class_global_ref(&_c_Intent_ShortcutIconResource, + "android/content/Intent$ShortcutIconResource"); + if (_c_Intent_ShortcutIconResource == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_method(_c_Intent_ShortcutIconResource, + &_m_Intent_ShortcutIconResource__writeToParcel, "writeToParcel", + "(Landroid/os/Parcel;I)V"); + if (_m_Intent_ShortcutIconResource__writeToParcel == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + (*jniEnv)->CallVoidMethod( + jniEnv, self_, _m_Intent_ShortcutIconResource__writeToParcel, parcel, i); + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; +} + +jmethodID _m_Intent_ShortcutIconResource__toString1 = NULL; +FFI_PLUGIN_EXPORT +JniResult Intent_ShortcutIconResource__toString1(jobject self_) { + load_env(); + load_class_global_ref(&_c_Intent_ShortcutIconResource, + "android/content/Intent$ShortcutIconResource"); + if (_c_Intent_ShortcutIconResource == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_method(_c_Intent_ShortcutIconResource, + &_m_Intent_ShortcutIconResource__toString1, "toString", + "()Ljava/lang/String;"); + if (_m_Intent_ShortcutIconResource__toString1 == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + jobject _result = (*jniEnv)->CallObjectMethod( + jniEnv, self_, _m_Intent_ShortcutIconResource__toString1); + return to_global_ref_result(_result); +} + +jfieldID _f_Intent_ShortcutIconResource__CREATOR = NULL; +FFI_PLUGIN_EXPORT +JniResult get_Intent_ShortcutIconResource__CREATOR() { + load_env(); + load_class_global_ref(&_c_Intent_ShortcutIconResource, + "android/content/Intent$ShortcutIconResource"); + if (_c_Intent_ShortcutIconResource == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_static_field(_c_Intent_ShortcutIconResource, + &_f_Intent_ShortcutIconResource__CREATOR, "CREATOR", + "Landroid/os/Parcelable$Creator;"); + jobject _result = + (*jniEnv)->GetStaticObjectField(jniEnv, _c_Intent_ShortcutIconResource, + _f_Intent_ShortcutIconResource__CREATOR); + return to_global_ref_result(_result); +} + +jfieldID _f_Intent_ShortcutIconResource__packageName = NULL; +FFI_PLUGIN_EXPORT +JniResult get_Intent_ShortcutIconResource__packageName(jobject self_) { + load_env(); + load_class_global_ref(&_c_Intent_ShortcutIconResource, + "android/content/Intent$ShortcutIconResource"); + if (_c_Intent_ShortcutIconResource == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_field(_c_Intent_ShortcutIconResource, + &_f_Intent_ShortcutIconResource__packageName, "packageName", + "Ljava/lang/String;"); + jobject _result = (*jniEnv)->GetObjectField( + jniEnv, self_, _f_Intent_ShortcutIconResource__packageName); + return to_global_ref_result(_result); +} + +FFI_PLUGIN_EXPORT +JniResult set_Intent_ShortcutIconResource__packageName(jobject self_, + jobject value) { + load_env(); + load_class_global_ref(&_c_Intent_ShortcutIconResource, + "android/content/Intent$ShortcutIconResource"); + if (_c_Intent_ShortcutIconResource == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_field(_c_Intent_ShortcutIconResource, + &_f_Intent_ShortcutIconResource__packageName, "packageName", + "Ljava/lang/String;"); + (*jniEnv)->SetObjectField(jniEnv, self_, + _f_Intent_ShortcutIconResource__packageName, value); + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; +} + +jfieldID _f_Intent_ShortcutIconResource__resourceName = NULL; +FFI_PLUGIN_EXPORT +JniResult get_Intent_ShortcutIconResource__resourceName(jobject self_) { + load_env(); + load_class_global_ref(&_c_Intent_ShortcutIconResource, + "android/content/Intent$ShortcutIconResource"); + if (_c_Intent_ShortcutIconResource == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_field(_c_Intent_ShortcutIconResource, + &_f_Intent_ShortcutIconResource__resourceName, "resourceName", + "Ljava/lang/String;"); + jobject _result = (*jniEnv)->GetObjectField( + jniEnv, self_, _f_Intent_ShortcutIconResource__resourceName); + return to_global_ref_result(_result); +} + +FFI_PLUGIN_EXPORT +JniResult set_Intent_ShortcutIconResource__resourceName(jobject self_, + jobject value) { + load_env(); + load_class_global_ref(&_c_Intent_ShortcutIconResource, + "android/content/Intent$ShortcutIconResource"); + if (_c_Intent_ShortcutIconResource == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_field(_c_Intent_ShortcutIconResource, + &_f_Intent_ShortcutIconResource__resourceName, "resourceName", + "Ljava/lang/String;"); + (*jniEnv)->SetObjectField( + jniEnv, self_, _f_Intent_ShortcutIconResource__resourceName, value); + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; +} + // android.content.Intent jclass _c_Intent = NULL; -jmethodID _m_Intent__ctor = NULL; +jmethodID _m_Intent__new0 = NULL; FFI_PLUGIN_EXPORT -JniResult Intent__ctor() { +JniResult Intent__new0() { load_env(); load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; - load_method(_c_Intent, &_m_Intent__ctor, "", "()V"); - if (_m_Intent__ctor == NULL) + load_method(_c_Intent, &_m_Intent__new0, "", "()V"); + if (_m_Intent__new0 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->NewObject(jniEnv, _c_Intent, _m_Intent__ctor); + jobject _result = (*jniEnv)->NewObject(jniEnv, _c_Intent, _m_Intent__new0); return to_global_ref_result(_result); } -jmethodID _m_Intent__ctor1 = NULL; +jmethodID _m_Intent__new1 = NULL; FFI_PLUGIN_EXPORT -JniResult Intent__ctor1(jobject intent) { +JniResult Intent__new1(jobject intent) { load_env(); load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; - load_method(_c_Intent, &_m_Intent__ctor1, "", + load_method(_c_Intent, &_m_Intent__new1, "", "(Landroid/content/Intent;)V"); - if (_m_Intent__ctor1 == NULL) + if (_m_Intent__new1 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = - (*jniEnv)->NewObject(jniEnv, _c_Intent, _m_Intent__ctor1, intent); + (*jniEnv)->NewObject(jniEnv, _c_Intent, _m_Intent__new1, intent); return to_global_ref_result(_result); } -jmethodID _m_Intent__ctor2 = NULL; +jmethodID _m_Intent__new2 = NULL; FFI_PLUGIN_EXPORT -JniResult Intent__ctor2(jobject string) { +JniResult Intent__new2(jobject string) { load_env(); load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; - load_method(_c_Intent, &_m_Intent__ctor2, "", "(Ljava/lang/String;)V"); - if (_m_Intent__ctor2 == NULL) + load_method(_c_Intent, &_m_Intent__new2, "", "(Ljava/lang/String;)V"); + if (_m_Intent__new2 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = - (*jniEnv)->NewObject(jniEnv, _c_Intent, _m_Intent__ctor2, string); + (*jniEnv)->NewObject(jniEnv, _c_Intent, _m_Intent__new2, string); return to_global_ref_result(_result); } -jmethodID _m_Intent__ctor3 = NULL; +jmethodID _m_Intent__new3 = NULL; FFI_PLUGIN_EXPORT -JniResult Intent__ctor3(jobject string, jobject uri) { +JniResult Intent__new3(jobject string, jobject uri) { load_env(); load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; - load_method(_c_Intent, &_m_Intent__ctor3, "", + load_method(_c_Intent, &_m_Intent__new3, "", "(Ljava/lang/String;Landroid/net/Uri;)V"); - if (_m_Intent__ctor3 == NULL) + if (_m_Intent__new3 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = - (*jniEnv)->NewObject(jniEnv, _c_Intent, _m_Intent__ctor3, string, uri); + (*jniEnv)->NewObject(jniEnv, _c_Intent, _m_Intent__new3, string, uri); return to_global_ref_result(_result); } -jmethodID _m_Intent__ctor4 = NULL; +jmethodID _m_Intent__new4 = NULL; FFI_PLUGIN_EXPORT -JniResult Intent__ctor4(jobject context, jobject class) { +JniResult Intent__new4(jobject context, jobject class) { load_env(); load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; - load_method(_c_Intent, &_m_Intent__ctor4, "", + load_method(_c_Intent, &_m_Intent__new4, "", "(Landroid/content/Context;Ljava/lang/Class;)V"); - if (_m_Intent__ctor4 == NULL) + if (_m_Intent__new4 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = - (*jniEnv)->NewObject(jniEnv, _c_Intent, _m_Intent__ctor4, context, class); + (*jniEnv)->NewObject(jniEnv, _c_Intent, _m_Intent__new4, context, class); return to_global_ref_result(_result); } -jmethodID _m_Intent__ctor5 = NULL; +jmethodID _m_Intent__new5 = NULL; FFI_PLUGIN_EXPORT -JniResult Intent__ctor5(jobject string, - jobject uri, - jobject context, - jobject class) { +JniResult Intent__new5(jobject string, + jobject uri, + jobject context, + jobject class) { load_env(); load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; - load_method(_c_Intent, &_m_Intent__ctor5, "", + load_method(_c_Intent, &_m_Intent__new5, "", "(Ljava/lang/String;Landroid/net/Uri;Landroid/content/" "Context;Ljava/lang/Class;)V"); - if (_m_Intent__ctor5 == NULL) + if (_m_Intent__new5 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->NewObject(jniEnv, _c_Intent, _m_Intent__ctor5, + jobject _result = (*jniEnv)->NewObject(jniEnv, _c_Intent, _m_Intent__new5, string, uri, context, class); return to_global_ref_result(_result); } @@ -4362,7 +4783,7 @@ JniResult Intent__getParcelableExtra(jobject self_, jobject string) { if (_c_Intent == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getParcelableExtra, "getParcelableExtra", - "(Ljava/lang/String;)Ljava/lang/Object;"); + "(Ljava/lang/String;)Landroid/os/Parcelable;"); if (_m_Intent__getParcelableExtra == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( @@ -4488,7 +4909,7 @@ JniResult Intent__getSerializableExtra1(jobject self_, return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getSerializableExtra1, "getSerializableExtra", - "(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;"); + "(Ljava/lang/String;Ljava/lang/Class;)Ljava/io/Serializable;"); if (_m_Intent__getSerializableExtra1 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( @@ -5930,18 +6351,18 @@ JniResult get_Intent__CREATOR() { // android.app.Activity jclass _c_Activity = NULL; -jmethodID _m_Activity__ctor = NULL; +jmethodID _m_Activity__new0 = NULL; FFI_PLUGIN_EXPORT -JniResult Activity__ctor() { +JniResult Activity__new0() { load_env(); load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; - load_method(_c_Activity, &_m_Activity__ctor, "", "()V"); - if (_m_Activity__ctor == NULL) + load_method(_c_Activity, &_m_Activity__new0, "", "()V"); + if (_m_Activity__new0 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = - (*jniEnv)->NewObject(jniEnv, _c_Activity, _m_Activity__ctor); + (*jniEnv)->NewObject(jniEnv, _c_Activity, _m_Activity__new0); return to_global_ref_result(_result); } @@ -7260,7 +7681,7 @@ JniResult Activity__findViewById(jobject self_, int32_t i) { if (_c_Activity == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__findViewById, "findViewById", - "(I)Ljava/lang/Object;"); + "(I)Landroid/view/View;"); if (_m_Activity__findViewById == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = @@ -7276,7 +7697,7 @@ JniResult Activity__requireViewById(jobject self_, int32_t i) { if (_c_Activity == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__requireViewById, "requireViewById", - "(I)Ljava/lang/Object;"); + "(I)Landroid/view/View;"); if (_m_Activity__requireViewById == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( @@ -11270,9 +11691,9 @@ JniResult get_Instant__MIN() { // androidx.health.connect.client.request.AggregateGroupByDurationRequest jclass _c_AggregateGroupByDurationRequest = NULL; -jmethodID _m_AggregateGroupByDurationRequest__ctor = NULL; +jmethodID _m_AggregateGroupByDurationRequest__new0 = NULL; FFI_PLUGIN_EXPORT -JniResult AggregateGroupByDurationRequest__ctor(jobject set, +JniResult AggregateGroupByDurationRequest__new0(jobject set, jobject timeRangeFilter, jobject duration, jobject set1) { @@ -11283,21 +11704,21 @@ JniResult AggregateGroupByDurationRequest__ctor(jobject set, if (_c_AggregateGroupByDurationRequest == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_AggregateGroupByDurationRequest, - &_m_AggregateGroupByDurationRequest__ctor, "", + &_m_AggregateGroupByDurationRequest__new0, "", "(Ljava/util/Set;Landroidx/health/connect/client/time/" "TimeRangeFilter;Ljava/time/Duration;Ljava/util/Set;)V"); - if (_m_AggregateGroupByDurationRequest__ctor == NULL) + if (_m_AggregateGroupByDurationRequest__new0 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject(jniEnv, _c_AggregateGroupByDurationRequest, - _m_AggregateGroupByDurationRequest__ctor, set, + _m_AggregateGroupByDurationRequest__new0, set, timeRangeFilter, duration, set1); return to_global_ref_result(_result); } -jmethodID _m_AggregateGroupByDurationRequest__ctor1 = NULL; +jmethodID _m_AggregateGroupByDurationRequest__new1 = NULL; FFI_PLUGIN_EXPORT -JniResult AggregateGroupByDurationRequest__ctor1( +JniResult AggregateGroupByDurationRequest__new1( jobject set, jobject timeRangeFilter, jobject duration, @@ -11311,15 +11732,15 @@ JniResult AggregateGroupByDurationRequest__ctor1( if (_c_AggregateGroupByDurationRequest == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_AggregateGroupByDurationRequest, - &_m_AggregateGroupByDurationRequest__ctor1, "", + &_m_AggregateGroupByDurationRequest__new1, "", "(Ljava/util/Set;Landroidx/health/connect/client/time/" "TimeRangeFilter;Ljava/time/Duration;Ljava/util/Set;ILkotlin/jvm/" "internal/DefaultConstructorMarker;)V"); - if (_m_AggregateGroupByDurationRequest__ctor1 == NULL) + if (_m_AggregateGroupByDurationRequest__new1 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject( jniEnv, _c_AggregateGroupByDurationRequest, - _m_AggregateGroupByDurationRequest__ctor1, set, timeRangeFilter, duration, + _m_AggregateGroupByDurationRequest__new1, set, timeRangeFilter, duration, set1, i, defaultConstructorMarker); return to_global_ref_result(_result); } @@ -11327,9 +11748,9 @@ JniResult AggregateGroupByDurationRequest__ctor1( // androidx.health.connect.client.request.AggregateGroupByPeriodRequest jclass _c_AggregateGroupByPeriodRequest = NULL; -jmethodID _m_AggregateGroupByPeriodRequest__ctor = NULL; +jmethodID _m_AggregateGroupByPeriodRequest__new0 = NULL; FFI_PLUGIN_EXPORT -JniResult AggregateGroupByPeriodRequest__ctor(jobject set, +JniResult AggregateGroupByPeriodRequest__new0(jobject set, jobject timeRangeFilter, jobject period, jobject set1) { @@ -11340,21 +11761,21 @@ JniResult AggregateGroupByPeriodRequest__ctor(jobject set, if (_c_AggregateGroupByPeriodRequest == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_AggregateGroupByPeriodRequest, - &_m_AggregateGroupByPeriodRequest__ctor, "", + &_m_AggregateGroupByPeriodRequest__new0, "", "(Ljava/util/Set;Landroidx/health/connect/client/time/" "TimeRangeFilter;Ljava/time/Period;Ljava/util/Set;)V"); - if (_m_AggregateGroupByPeriodRequest__ctor == NULL) + if (_m_AggregateGroupByPeriodRequest__new0 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject(jniEnv, _c_AggregateGroupByPeriodRequest, - _m_AggregateGroupByPeriodRequest__ctor, set, + _m_AggregateGroupByPeriodRequest__new0, set, timeRangeFilter, period, set1); return to_global_ref_result(_result); } -jmethodID _m_AggregateGroupByPeriodRequest__ctor1 = NULL; +jmethodID _m_AggregateGroupByPeriodRequest__new1 = NULL; FFI_PLUGIN_EXPORT -JniResult AggregateGroupByPeriodRequest__ctor1( +JniResult AggregateGroupByPeriodRequest__new1( jobject set, jobject timeRangeFilter, jobject period, @@ -11368,15 +11789,15 @@ JniResult AggregateGroupByPeriodRequest__ctor1( if (_c_AggregateGroupByPeriodRequest == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_AggregateGroupByPeriodRequest, - &_m_AggregateGroupByPeriodRequest__ctor1, "", + &_m_AggregateGroupByPeriodRequest__new1, "", "(Ljava/util/Set;Landroidx/health/connect/client/time/" "TimeRangeFilter;Ljava/time/Period;Ljava/util/Set;ILkotlin/jvm/" "internal/DefaultConstructorMarker;)V"); - if (_m_AggregateGroupByPeriodRequest__ctor1 == NULL) + if (_m_AggregateGroupByPeriodRequest__new1 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject( jniEnv, _c_AggregateGroupByPeriodRequest, - _m_AggregateGroupByPeriodRequest__ctor1, set, timeRangeFilter, period, + _m_AggregateGroupByPeriodRequest__new1, set, timeRangeFilter, period, set1, i, defaultConstructorMarker); return to_global_ref_result(_result); } @@ -11384,9 +11805,9 @@ JniResult AggregateGroupByPeriodRequest__ctor1( // androidx.health.connect.client.request.AggregateRequest jclass _c_AggregateRequest = NULL; -jmethodID _m_AggregateRequest__ctor = NULL; +jmethodID _m_AggregateRequest__new0 = NULL; FFI_PLUGIN_EXPORT -JniResult AggregateRequest__ctor(jobject set, +JniResult AggregateRequest__new0(jobject set, jobject timeRangeFilter, jobject set1) { load_env(); @@ -11395,38 +11816,38 @@ JniResult AggregateRequest__ctor(jobject set, "androidx/health/connect/client/request/AggregateRequest"); if (_c_AggregateRequest == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; - load_method(_c_AggregateRequest, &_m_AggregateRequest__ctor, "", + load_method(_c_AggregateRequest, &_m_AggregateRequest__new0, "", "(Ljava/util/Set;Landroidx/health/connect/client/time/" "TimeRangeFilter;Ljava/util/Set;)V"); - if (_m_AggregateRequest__ctor == NULL) + if (_m_AggregateRequest__new0 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject(jniEnv, _c_AggregateRequest, - _m_AggregateRequest__ctor, set, + _m_AggregateRequest__new0, set, timeRangeFilter, set1); return to_global_ref_result(_result); } -jmethodID _m_AggregateRequest__ctor1 = NULL; +jmethodID _m_AggregateRequest__new1 = NULL; FFI_PLUGIN_EXPORT -JniResult AggregateRequest__ctor1(jobject set, - jobject timeRangeFilter, - jobject set1, - int32_t i, - jobject defaultConstructorMarker) { +JniResult AggregateRequest__new1(jobject set, + jobject timeRangeFilter, + jobject set1, + int32_t i, + jobject defaultConstructorMarker) { load_env(); load_class_global_ref( &_c_AggregateRequest, "androidx/health/connect/client/request/AggregateRequest"); if (_c_AggregateRequest == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; - load_method(_c_AggregateRequest, &_m_AggregateRequest__ctor1, "", + load_method(_c_AggregateRequest, &_m_AggregateRequest__new1, "", "(Ljava/util/Set;Landroidx/health/connect/client/time/" "TimeRangeFilter;Ljava/util/Set;ILkotlin/jvm/internal/" "DefaultConstructorMarker;)V"); - if (_m_AggregateRequest__ctor1 == NULL) + if (_m_AggregateRequest__new1 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject( - jniEnv, _c_AggregateRequest, _m_AggregateRequest__ctor1, set, + jniEnv, _c_AggregateRequest, _m_AggregateRequest__new1, set, timeRangeFilter, set1, i, defaultConstructorMarker); return to_global_ref_result(_result); } @@ -11434,43 +11855,43 @@ JniResult AggregateRequest__ctor1(jobject set, // androidx.health.connect.client.request.ChangesTokenRequest jclass _c_ChangesTokenRequest = NULL; -jmethodID _m_ChangesTokenRequest__ctor = NULL; +jmethodID _m_ChangesTokenRequest__new0 = NULL; FFI_PLUGIN_EXPORT -JniResult ChangesTokenRequest__ctor(jobject set, jobject set1) { +JniResult ChangesTokenRequest__new0(jobject set, jobject set1) { load_env(); load_class_global_ref( &_c_ChangesTokenRequest, "androidx/health/connect/client/request/ChangesTokenRequest"); if (_c_ChangesTokenRequest == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; - load_method(_c_ChangesTokenRequest, &_m_ChangesTokenRequest__ctor, "", + load_method(_c_ChangesTokenRequest, &_m_ChangesTokenRequest__new0, "", "(Ljava/util/Set;Ljava/util/Set;)V"); - if (_m_ChangesTokenRequest__ctor == NULL) + if (_m_ChangesTokenRequest__new0 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject( - jniEnv, _c_ChangesTokenRequest, _m_ChangesTokenRequest__ctor, set, set1); + jniEnv, _c_ChangesTokenRequest, _m_ChangesTokenRequest__new0, set, set1); return to_global_ref_result(_result); } -jmethodID _m_ChangesTokenRequest__ctor1 = NULL; +jmethodID _m_ChangesTokenRequest__new1 = NULL; FFI_PLUGIN_EXPORT -JniResult ChangesTokenRequest__ctor1(jobject set, - jobject set1, - int32_t i, - jobject defaultConstructorMarker) { +JniResult ChangesTokenRequest__new1(jobject set, + jobject set1, + int32_t i, + jobject defaultConstructorMarker) { load_env(); load_class_global_ref( &_c_ChangesTokenRequest, "androidx/health/connect/client/request/ChangesTokenRequest"); if (_c_ChangesTokenRequest == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; - load_method(_c_ChangesTokenRequest, &_m_ChangesTokenRequest__ctor1, "", + load_method(_c_ChangesTokenRequest, &_m_ChangesTokenRequest__new1, "", "(Ljava/util/Set;Ljava/util/Set;ILkotlin/jvm/internal/" "DefaultConstructorMarker;)V"); - if (_m_ChangesTokenRequest__ctor1 == NULL) + if (_m_ChangesTokenRequest__new1 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject(jniEnv, _c_ChangesTokenRequest, - _m_ChangesTokenRequest__ctor1, set, + _m_ChangesTokenRequest__new1, set, set1, i, defaultConstructorMarker); return to_global_ref_result(_result); } @@ -11478,9 +11899,9 @@ JniResult ChangesTokenRequest__ctor1(jobject set, // androidx.health.connect.client.request.ReadRecordsRequest jclass _c_ReadRecordsRequest = NULL; -jmethodID _m_ReadRecordsRequest__ctor = NULL; +jmethodID _m_ReadRecordsRequest__new0 = NULL; FFI_PLUGIN_EXPORT -JniResult ReadRecordsRequest__ctor(jobject kClass, +JniResult ReadRecordsRequest__new0(jobject kClass, jobject timeRangeFilter, jobject set, uint8_t z, @@ -11492,41 +11913,41 @@ JniResult ReadRecordsRequest__ctor(jobject kClass, "androidx/health/connect/client/request/ReadRecordsRequest"); if (_c_ReadRecordsRequest == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; - load_method(_c_ReadRecordsRequest, &_m_ReadRecordsRequest__ctor, "", + load_method(_c_ReadRecordsRequest, &_m_ReadRecordsRequest__new0, "", "(Lkotlin/reflect/KClass;Landroidx/health/connect/client/time/" "TimeRangeFilter;Ljava/util/Set;ZILjava/lang/String;)V"); - if (_m_ReadRecordsRequest__ctor == NULL) + if (_m_ReadRecordsRequest__new0 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject(jniEnv, _c_ReadRecordsRequest, - _m_ReadRecordsRequest__ctor, kClass, + _m_ReadRecordsRequest__new0, kClass, timeRangeFilter, set, z, i, string); return to_global_ref_result(_result); } -jmethodID _m_ReadRecordsRequest__ctor1 = NULL; +jmethodID _m_ReadRecordsRequest__new1 = NULL; FFI_PLUGIN_EXPORT -JniResult ReadRecordsRequest__ctor1(jobject kClass, - jobject timeRangeFilter, - jobject set, - uint8_t z, - int32_t i, - jobject string, - int32_t i1, - jobject defaultConstructorMarker) { +JniResult ReadRecordsRequest__new1(jobject kClass, + jobject timeRangeFilter, + jobject set, + uint8_t z, + int32_t i, + jobject string, + int32_t i1, + jobject defaultConstructorMarker) { load_env(); load_class_global_ref( &_c_ReadRecordsRequest, "androidx/health/connect/client/request/ReadRecordsRequest"); if (_c_ReadRecordsRequest == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; - load_method(_c_ReadRecordsRequest, &_m_ReadRecordsRequest__ctor1, "", + load_method(_c_ReadRecordsRequest, &_m_ReadRecordsRequest__new1, "", "(Lkotlin/reflect/KClass;Landroidx/health/connect/client/time/" "TimeRangeFilter;Ljava/util/Set;ZILjava/lang/String;ILkotlin/jvm/" "internal/DefaultConstructorMarker;)V"); - if (_m_ReadRecordsRequest__ctor1 == NULL) + if (_m_ReadRecordsRequest__new1 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject( - jniEnv, _c_ReadRecordsRequest, _m_ReadRecordsRequest__ctor1, kClass, + jniEnv, _c_ReadRecordsRequest, _m_ReadRecordsRequest__new1, kClass, timeRangeFilter, set, z, i, string, i1, defaultConstructorMarker); return to_global_ref_result(_result); } @@ -11570,21 +11991,21 @@ JniResult ReadRecordsRequest__hashCode1(jobject self_) { // androidx.health.connect.client.aggregate.AggregationResult jclass _c_AggregationResult = NULL; -jmethodID _m_AggregationResult__ctor = NULL; +jmethodID _m_AggregationResult__new0 = NULL; FFI_PLUGIN_EXPORT -JniResult AggregationResult__ctor(jobject map, jobject map1, jobject set) { +JniResult AggregationResult__new0(jobject map, jobject map1, jobject set) { load_env(); load_class_global_ref( &_c_AggregationResult, "androidx/health/connect/client/aggregate/AggregationResult"); if (_c_AggregationResult == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; - load_method(_c_AggregationResult, &_m_AggregationResult__ctor, "", + load_method(_c_AggregationResult, &_m_AggregationResult__new0, "", "(Ljava/util/Map;Ljava/util/Map;Ljava/util/Set;)V"); - if (_m_AggregationResult__ctor == NULL) + if (_m_AggregationResult__new0 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject( - jniEnv, _c_AggregationResult, _m_AggregationResult__ctor, map, map1, set); + jniEnv, _c_AggregationResult, _m_AggregationResult__new0, map, map1, set); return to_global_ref_result(_result); } @@ -11682,12 +12103,223 @@ JniResult AggregationResult__get0(jobject self_, jobject aggregateMetric) { return to_global_ref_result(_result); } +// androidx.health.connect.client.aggregate.AggregateMetric$AggregationType +jclass _c_AggregateMetric_AggregationType = NULL; + +jmethodID _m_AggregateMetric_AggregationType__getAggregationTypeString = NULL; +FFI_PLUGIN_EXPORT +JniResult AggregateMetric_AggregationType__getAggregationTypeString( + jobject self_) { + load_env(); + load_class_global_ref(&_c_AggregateMetric_AggregationType, + "androidx/health/connect/client/aggregate/" + "AggregateMetric$AggregationType"); + if (_c_AggregateMetric_AggregationType == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_method(_c_AggregateMetric_AggregationType, + &_m_AggregateMetric_AggregationType__getAggregationTypeString, + "getAggregationTypeString", "()Ljava/lang/String;"); + if (_m_AggregateMetric_AggregationType__getAggregationTypeString == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + jobject _result = (*jniEnv)->CallObjectMethod( + jniEnv, self_, + _m_AggregateMetric_AggregationType__getAggregationTypeString); + return to_global_ref_result(_result); +} + +jmethodID _m_AggregateMetric_AggregationType__values = NULL; +FFI_PLUGIN_EXPORT +JniResult AggregateMetric_AggregationType__values() { + load_env(); + load_class_global_ref(&_c_AggregateMetric_AggregationType, + "androidx/health/connect/client/aggregate/" + "AggregateMetric$AggregationType"); + if (_c_AggregateMetric_AggregationType == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_static_method(_c_AggregateMetric_AggregationType, + &_m_AggregateMetric_AggregationType__values, "values", + "()[Landroidx/health/connect/client/aggregate/" + "AggregateMetric$AggregationType;"); + if (_m_AggregateMetric_AggregationType__values == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + jobject _result = (*jniEnv)->CallStaticObjectMethod( + jniEnv, _c_AggregateMetric_AggregationType, + _m_AggregateMetric_AggregationType__values); + return to_global_ref_result(_result); +} + +jmethodID _m_AggregateMetric_AggregationType__valueOf = NULL; +FFI_PLUGIN_EXPORT +JniResult AggregateMetric_AggregationType__valueOf(jobject string) { + load_env(); + load_class_global_ref(&_c_AggregateMetric_AggregationType, + "androidx/health/connect/client/aggregate/" + "AggregateMetric$AggregationType"); + if (_c_AggregateMetric_AggregationType == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_static_method(_c_AggregateMetric_AggregationType, + &_m_AggregateMetric_AggregationType__valueOf, "valueOf", + "(Ljava/lang/String;)Landroidx/health/connect/client/" + "aggregate/AggregateMetric$AggregationType;"); + if (_m_AggregateMetric_AggregationType__valueOf == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + jobject _result = (*jniEnv)->CallStaticObjectMethod( + jniEnv, _c_AggregateMetric_AggregationType, + _m_AggregateMetric_AggregationType__valueOf, string); + return to_global_ref_result(_result); +} + +jfieldID _f_AggregateMetric_AggregationType__DURATION = NULL; +FFI_PLUGIN_EXPORT +JniResult get_AggregateMetric_AggregationType__DURATION() { + load_env(); + load_class_global_ref(&_c_AggregateMetric_AggregationType, + "androidx/health/connect/client/aggregate/" + "AggregateMetric$AggregationType"); + if (_c_AggregateMetric_AggregationType == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_static_field(_c_AggregateMetric_AggregationType, + &_f_AggregateMetric_AggregationType__DURATION, "DURATION", + "Landroidx/health/connect/client/aggregate/" + "AggregateMetric$AggregationType;"); + jobject _result = (*jniEnv)->GetStaticObjectField( + jniEnv, _c_AggregateMetric_AggregationType, + _f_AggregateMetric_AggregationType__DURATION); + return to_global_ref_result(_result); +} + +jfieldID _f_AggregateMetric_AggregationType__AVERAGE = NULL; +FFI_PLUGIN_EXPORT +JniResult get_AggregateMetric_AggregationType__AVERAGE() { + load_env(); + load_class_global_ref(&_c_AggregateMetric_AggregationType, + "androidx/health/connect/client/aggregate/" + "AggregateMetric$AggregationType"); + if (_c_AggregateMetric_AggregationType == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_static_field(_c_AggregateMetric_AggregationType, + &_f_AggregateMetric_AggregationType__AVERAGE, "AVERAGE", + "Landroidx/health/connect/client/aggregate/" + "AggregateMetric$AggregationType;"); + jobject _result = (*jniEnv)->GetStaticObjectField( + jniEnv, _c_AggregateMetric_AggregationType, + _f_AggregateMetric_AggregationType__AVERAGE); + return to_global_ref_result(_result); +} + +jfieldID _f_AggregateMetric_AggregationType__MINIMUM = NULL; +FFI_PLUGIN_EXPORT +JniResult get_AggregateMetric_AggregationType__MINIMUM() { + load_env(); + load_class_global_ref(&_c_AggregateMetric_AggregationType, + "androidx/health/connect/client/aggregate/" + "AggregateMetric$AggregationType"); + if (_c_AggregateMetric_AggregationType == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_static_field(_c_AggregateMetric_AggregationType, + &_f_AggregateMetric_AggregationType__MINIMUM, "MINIMUM", + "Landroidx/health/connect/client/aggregate/" + "AggregateMetric$AggregationType;"); + jobject _result = (*jniEnv)->GetStaticObjectField( + jniEnv, _c_AggregateMetric_AggregationType, + _f_AggregateMetric_AggregationType__MINIMUM); + return to_global_ref_result(_result); +} + +jfieldID _f_AggregateMetric_AggregationType__MAXIMUM = NULL; +FFI_PLUGIN_EXPORT +JniResult get_AggregateMetric_AggregationType__MAXIMUM() { + load_env(); + load_class_global_ref(&_c_AggregateMetric_AggregationType, + "androidx/health/connect/client/aggregate/" + "AggregateMetric$AggregationType"); + if (_c_AggregateMetric_AggregationType == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_static_field(_c_AggregateMetric_AggregationType, + &_f_AggregateMetric_AggregationType__MAXIMUM, "MAXIMUM", + "Landroidx/health/connect/client/aggregate/" + "AggregateMetric$AggregationType;"); + jobject _result = (*jniEnv)->GetStaticObjectField( + jniEnv, _c_AggregateMetric_AggregationType, + _f_AggregateMetric_AggregationType__MAXIMUM); + return to_global_ref_result(_result); +} + +jfieldID _f_AggregateMetric_AggregationType__TOTAL = NULL; +FFI_PLUGIN_EXPORT +JniResult get_AggregateMetric_AggregationType__TOTAL() { + load_env(); + load_class_global_ref(&_c_AggregateMetric_AggregationType, + "androidx/health/connect/client/aggregate/" + "AggregateMetric$AggregationType"); + if (_c_AggregateMetric_AggregationType == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_static_field(_c_AggregateMetric_AggregationType, + &_f_AggregateMetric_AggregationType__TOTAL, "TOTAL", + "Landroidx/health/connect/client/aggregate/" + "AggregateMetric$AggregationType;"); + jobject _result = (*jniEnv)->GetStaticObjectField( + jniEnv, _c_AggregateMetric_AggregationType, + _f_AggregateMetric_AggregationType__TOTAL); + return to_global_ref_result(_result); +} + +jfieldID _f_AggregateMetric_AggregationType__COUNT = NULL; +FFI_PLUGIN_EXPORT +JniResult get_AggregateMetric_AggregationType__COUNT() { + load_env(); + load_class_global_ref(&_c_AggregateMetric_AggregationType, + "androidx/health/connect/client/aggregate/" + "AggregateMetric$AggregationType"); + if (_c_AggregateMetric_AggregationType == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_static_field(_c_AggregateMetric_AggregationType, + &_f_AggregateMetric_AggregationType__COUNT, "COUNT", + "Landroidx/health/connect/client/aggregate/" + "AggregateMetric$AggregationType;"); + jobject _result = (*jniEnv)->GetStaticObjectField( + jniEnv, _c_AggregateMetric_AggregationType, + _f_AggregateMetric_AggregationType__COUNT); + return to_global_ref_result(_result); +} + +// androidx.health.connect.client.aggregate.AggregateMetric$Companion +jclass _c_AggregateMetric_Companion = NULL; + +jmethodID _m_AggregateMetric_Companion__new0 = NULL; +FFI_PLUGIN_EXPORT +JniResult AggregateMetric_Companion__new0(jobject defaultConstructorMarker) { + load_env(); + load_class_global_ref( + &_c_AggregateMetric_Companion, + "androidx/health/connect/client/aggregate/AggregateMetric$Companion"); + if (_c_AggregateMetric_Companion == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_method(_c_AggregateMetric_Companion, &_m_AggregateMetric_Companion__new0, + "", "(Lkotlin/jvm/internal/DefaultConstructorMarker;)V"); + if (_m_AggregateMetric_Companion__new0 == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + jobject _result = (*jniEnv)->NewObject(jniEnv, _c_AggregateMetric_Companion, + _m_AggregateMetric_Companion__new0, + defaultConstructorMarker); + return to_global_ref_result(_result); +} + +// androidx.health.connect.client.aggregate.AggregateMetric$Converter$FromDouble +jclass _c_AggregateMetric_Converter_FromDouble = NULL; + +// androidx.health.connect.client.aggregate.AggregateMetric$Converter$FromLong +jclass _c_AggregateMetric_Converter_FromLong = NULL; + +// androidx.health.connect.client.aggregate.AggregateMetric$Converter +jclass _c_AggregateMetric_Converter = NULL; + // androidx.health.connect.client.aggregate.AggregateMetric jclass _c_AggregateMetric = NULL; -jmethodID _m_AggregateMetric__ctor = NULL; +jmethodID _m_AggregateMetric__new0 = NULL; FFI_PLUGIN_EXPORT -JniResult AggregateMetric__ctor(jobject converter, +JniResult AggregateMetric__new0(jobject converter, jobject string, jobject aggregationType, jobject string1) { @@ -11698,14 +12330,14 @@ JniResult AggregateMetric__ctor(jobject converter, if (_c_AggregateMetric == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( - _c_AggregateMetric, &_m_AggregateMetric__ctor, "", + _c_AggregateMetric, &_m_AggregateMetric__new0, "", "(Landroidx/health/connect/client/aggregate/" "AggregateMetric$Converter;Ljava/lang/String;Landroidx/health/connect/" "client/aggregate/AggregateMetric$AggregationType;Ljava/lang/String;)V"); - if (_m_AggregateMetric__ctor == NULL) + if (_m_AggregateMetric__new0 == NULL) return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = - (*jniEnv)->NewObject(jniEnv, _c_AggregateMetric, _m_AggregateMetric__ctor, + (*jniEnv)->NewObject(jniEnv, _c_AggregateMetric, _m_AggregateMetric__new0, converter, string, aggregationType, string1); return to_global_ref_result(_result); }